@charset "UTF-8";

/* =========================
   Base
========================= */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{ font-size: 100%; }

body{
  margin: 0;
  background: #000;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.8rem;
  color: #fff;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

.wrapper{
  max-width: 870px;
  margin: auto;
  padding: 0 1rem;
  border-radius: 20px;
}

h2{
  text-align: center;
  color: #fff;
  margin: 1rem 0;
  text-shadow:
    0 0 1px #fff, 0 0 #000,
    0 0 5px #005FB0, 0 0 10px #005FB0,
    0 0 60px #000, 0 10px 3px #000;
}

/* =========================
   Hero (header)
   - .hhh1 は「背景画像(main.png)の比率」で高さを決める
   - 窓(heroWindow)の中に表紙(coverBox)を必ず収める
========================= */
header.hero{ margin: 0; }

/* 重要：containで余白が出ないように、背景画像の比率で箱を作る */
.hhh1{
  position: relative;
  width: 100%;
  overflow: hidden;

  /* ✅ ここが「sectionとの隙間」を作らない肝 */
  /* ユーザー計測：スマホ 443x560 */
  --hero-ar: 480 / 560;
  aspect-ratio: var(--hero-ar);

  background: url("../img/main.png") top center / contain no-repeat;

  /* ネオン枠(窓)の余白：スマホは「下にはみ出る」→窓を上へ */
  --win-top: 14%;
  --win-bottom: 48%;
  --win-left: 6%;
  --win-right: 6%;

  /* 窓の内側の余白（表紙と枠の当たり防止） */
  --win-pad: 10px;
}

/* PC：ユーザー計測 967x720 */
@media (min-width: 450px){
  .hhh1{
    --hero-ar: 967 / 720;

    /* PCは「あと少し」→ほんの少し上へ寄せる */
    --win-top: 23%;
    --win-bottom: 20%;
    --win-left: 6%;
    --win-right: 6%;

    --win-pad: 12px;
  }
}

/* ネオン枠内の“窓” */
.heroWindow{
  position: absolute;
  top: var(--win-top);
  right: var(--win-right);
  bottom: var(--win-bottom);
  left: var(--win-left);

  padding: var(--win-pad);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 表紙(2:3)は窓の中に必ず収める */
.coverBox{
  height: 100%;
  max-height: 100%;
  aspect-ratio: 2 / 3;

  width: auto;
  max-width: 100%;

  position: relative;
  overflow: hidden;
}

/* =========================
   Cycle: “左上にデカく出る”対策
   - Cycleがinline styleを書いても崩れないように固定
========================= */
#fade{
  width: auto !important;
  height: 100% !important;
  max-height: 100% !important;
}

#fade .cycle{
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;

  /* Cycleが付ける黒背景を殺す */
  background: transparent !important;
  background-color: transparent !important;
}

#fade .cycle a,
#fade .cycle img{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

#fade .cycle img{
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

/* =========================
   Main sections
   - header直下の“空き”は .hhh1 を比率固定したので基本解消
   - それでも詰めたい場合は section の margin-top を小さく
========================= */

h1{
	line-height: 2rem;
	  text-align: center;
  color: #fff;
  margin: 1rem 0;
  text-shadow:
    0 0 1px #fff, 0 0 10px #005FB0,
    0 0 10px #005FB0, 0 0 10px #005FB0,
    0 0 60px #000, 0 10px 3px #000;
  border-radius: 0.5rem;
		font-size: 1.6rem;
  position: relative;
}
.pink{
	font-size: 1.8rem;
	color: #fff;
	  text-shadow:
    0 0 1px #fff, 0 0 5px #DA4A94,
    0 0 10px #DA4A94, 0 0 5px #DA4A94,
    0 0 60px #000, 0 10px 3px #000;
}
.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.7rem;
  width: 100%;
  height: 2px; /* 下線の太さ */
  background: #fff;
  box-shadow:
    0 0 2px #fff,
    0 0 3px #DA4A94,
    0 0 10px #DA4A94,
    0 0 20px #DA4A94;
}

.message h2{
	margin: 2rem 0;
}
.message p{
	width: 87%;
	margin: 2rem auto;
	font-size: 1rem;
	text-align: justify;
	  text-shadow:
    0 0 1px #fff, 0 0 5px #DA4A94,
    0 0 10px #DA4A94, 0 0 5px #DA4A94,
    0 0 60px #000, 0 10px 3px #000;
}
/* =========================
   sections
   - header直下の“空き”は .hhh1 を比率固定したので基本解消
   - それでも詰めたい場合は section の margin-top を小さく
========================= */
section{
  min-height: 30rem;
  border: 1px #fff solid;
  border-radius: 0.5rem;
  box-shadow:
    0 0 1px #fff,
    inset 0 0 1px #fff,
    0 0 10px #005FB0,
    inset 0 0 10px #005FB0,
    0 0 20px #005FB0,
    inset 0 0 10px #005FB0;
  padding: 20px 20px;

  /* ✅ headerとの間が空くのを詰める */
  margin: 1rem 0 4rem;
}

#box_content1,#box_content2,#box_content3,#box_content4,#box_content5{
  display: flex;
  gap: 1rem;
  justify-content: space-around;
}
.box_photo{ width: 40%; }
.box_text{ width: 58%; }

/* ボタン */
.btn{
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  font-size: 0.6rem;
  margin: 1rem 0;
}
.btn a{
  text-decoration: none;
  color: #fff;
}
.sample{
  width: 100%;
  white-space: nowrap;
  border: #fff 1px solid;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  padding: 0.3rem 0.5rem;
}
section hr{ margin: 1rem 0; }

.space{ margin-bottom: 30rem; }
/* =========================
   list
========================= */
.left{
	list-style-position: inside;
}
ol li {
  text-indent: -1.2rem;
  padding-left: 1.2rem;
}

/* =========================
   Footer fixed illustration
========================= */
.fixed-illust{
  width: 100%;
  position: fixed;
  right: auto;
  bottom: 0;
  z-index: 9999;
  display: inline-block;
}
.fixed-illust img{
  width: 100%;
  height: auto;
  display: block;
}
.fixed-illust:hover{
  transform: translateY(10px);
  transition: 0.2s;
}

/* =========================
   Desktop layout example
========================= */
@media (min-width: 450px){
  .box{
    display: flex;
    gap: 1rem;
    border: 1px solid #8B5824;
    border-radius: 20px;
    padding: 1rem;
  }
  section{ width: 50%; }
}
@media (max-width: 449px){
  header .hhh1{
    padding-bottom: 1px !important;   /* 1pxでOK：marginの合体を防ぐ */
    overflow: hidden;                 /* 既にあるならそのままでOK */
  }
  header .fadeWrap{
    margin-bottom: 0 !important;
  }
}
@media (max-width: 449px){
  header .hhh1{
    --cover-h: 300px !important; /* 例：278px→290px→300px みたいに微調整 */
  }
}