/* トップページ（index.html）だけの見た目 */

/* ---------- いちばん上 ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--sky);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/shots/hero_castle.webp") center 60% / cover no-repeat;
  filter: saturate(1.15);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(94, 196, 255, .55) 0%, rgba(94, 196, 255, .1) 45%, rgba(29, 26, 58, .55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 920px;
}
.hero-logo {
  width: min(620px, 88vw);
  margin: 0 auto;
  filter: drop-shadow(0 10px 0 rgba(29, 26, 58, .35));
  animation: bob 3.2s ease-in-out infinite;
}
.hero-catch {
  margin: 18px 0 6px;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  color: #fff;
  text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink);
}
.hero-sub {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, .92);
  border: var(--line);
  border-radius: 999px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.sp { display: none; }
@media (max-width: 600px) { .sp { display: inline; } }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

/* 流れる雲 */
.clouds { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.clouds span {
  position: absolute;
  width: 220px;
  height: 70px;
  background: #fff;
  border-radius: 999px;
  opacity: .85;
  animation: drift linear infinite;
}
.clouds span::before, .clouds span::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.clouds span::before { width: 100px; height: 100px; left: 30px; top: -50px; }
.clouds span::after { width: 80px; height: 80px; left: 110px; top: -34px; }
.clouds span:nth-child(1) { top: 12%; animation-duration: 60s; animation-delay: -10s; }
.clouds span:nth-child(2) { top: 30%; animation-duration: 85s; animation-delay: -50s; transform: scale(.7); }
.clouds span:nth-child(3) { top: 8%; animation-duration: 75s; animation-delay: -30s; transform: scale(.5); }
.clouds span:nth-child(4) { top: 45%; animation-duration: 95s; animation-delay: -70s; transform: scale(.6); }
@keyframes drift {
  from { left: -260px; }
  to { left: 110%; }
}

/* ---------- 区切りのかたまり ---------- */
.section { padding: 70px 20px; }
.section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section-sky { background: var(--sky) url("../img/shots/hub_sky.webp") center / cover; position: relative; border-top: var(--line); border-bottom: var(--line); }
.section-sky::before { content: ""; position: absolute; inset: 0; background: rgba(94, 196, 255, .86); }
.section-sky > * { position: relative; }
.section-yellow { background: var(--yellow-light); border-top: var(--line); border-bottom: var(--line); }
.section-red { background: var(--red); border-top: var(--line); }

.lead { text-align: center; font-size: 1.08rem; max-width: 760px; }
.lead strong { background: linear-gradient(transparent 55%, var(--yellow) 55%); }
.lead-light { color: #fff; }
.more { text-align: center; margin-top: 30px; }

/* ---------- ゲーム紹介 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.feature {
  position: relative;
  padding: 28px 24px 22px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature:nth-child(1) { --c: var(--red); }
.feature:nth-child(2) { --c: var(--blue); }
.feature:nth-child(3) { --c: var(--green); }
.feature-num {
  position: absolute;
  top: -20px;
  left: 18px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  background: var(--c);
  border: var(--line);
  border-radius: 12px;
  padding: 0 12px;
}
.feature h3 { font-size: 1.25rem; margin-bottom: 6px; color: var(--c); }
.feature p { margin: 0; }

/* ---------- ステージ ---------- */
.stage-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 34px;
}
.stage-card {
  --c: var(--orange);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease;
}
.stage-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.stage-pic { position: relative; aspect-ratio: 16 / 9; border-bottom: var(--line); overflow: hidden; background: var(--sky); }
.stage-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.stage-card:hover .stage-pic img { transform: scale(1.06); }
.stage-no {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 48px;
  padding: 2px 12px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: #fff;
  background: var(--c);
  border: var(--line);
  border-radius: 12px;
}
.stage-body { padding: 16px 20px 20px; flex: 1; }
.stage-catch { margin: 0; font-weight: 800; font-size: .92rem; color: var(--c); }
.stage-body h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.4rem; margin: 2px 0 8px; }
.stage-body p { margin: 0; font-size: .95rem; }
.stage-card.hidden-stage { background: #fffbea; }

/* ---------- キャラ ---------- */
.chara-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.chara-card {
  --c: var(--orange);
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chara-pic {
  height: 260px;
  display: grid;
  place-items: end center;
  padding-top: 14px;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, .7) 0 30%, transparent 31%),
    repeating-conic-gradient(from 0deg at 50% 70%, var(--c) 0 10deg, color-mix(in srgb, var(--c) 75%, #fff) 10deg 20deg);
  border-bottom: var(--line);
}
.chara-pic img { max-height: 240px; width: auto; object-fit: contain; transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.chara-card:hover .chara-pic img { transform: scale(1.06) translateY(-4px); }
.chara-role {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0 12px;
  font-weight: 800;
  font-size: .85rem;
  background: #fff;
  border: var(--line);
  border-radius: 999px;
}
.chara-body { padding: 14px 18px 18px; }
.chara-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.chara-body p { margin: 0; font-size: .93rem; }
.chara-info { margin: 10px 0 0; padding: 0; list-style: none; font-size: .88rem; }
.chara-info li { display: flex; gap: 8px; border-top: 2px dashed #d8d4ea; padding: 4px 0; }
.chara-info b { flex: 0 0 auto; color: var(--c); }

/* 色の名前 → 色 */
[data-color="orange"] { --c: var(--orange); }
[data-color="blue"] { --c: var(--blue); }
[data-color="teal"] { --c: var(--teal); }
[data-color="gold"] { --c: var(--gold); }
[data-color="purple"] { --c: var(--purple); }
[data-color="aqua"] { --c: var(--aqua); }
[data-color="green"] { --c: var(--green); }
[data-color="brown"] { --c: var(--brown); }
[data-color="pink"] { --c: var(--pink); }
[data-color="red"] { --c: var(--red); }

/* ---------- 操作 ---------- */
.controls-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}
@media (max-width: 860px) { .controls-wrap { grid-template-columns: 1fr; } }
.controls-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.controls-table th, .controls-table td { padding: 10px 14px; text-align: left; border-bottom: 2px solid #ece9f6; }
.controls-table thead th { background: var(--ink); color: #fff; font-size: .9rem; }
.controls-table tbody tr:last-child td { border-bottom: none; }
.controls-table td:first-child { font-weight: 800; }
.key, .pad {
  display: inline-block;
  min-width: 34px;
  margin: 2px 3px 2px 0;
  padding: 0 8px;
  text-align: center;
  font-weight: 800;
  font-size: .85rem;
  line-height: 28px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #f4f2fb;
  box-shadow: 0 3px 0 var(--ink);
}
.pad { border-radius: 999px; background: var(--yellow); }
.pad.pad-A { background: var(--green); color: #fff; }
.pad.pad-B { background: var(--red); color: #fff; }
.moves { display: grid; gap: 12px; }
.move {
  padding: 12px 16px;
  background: var(--paper);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-small);
}
.move b { display: block; color: var(--blue); }
.move span { font-size: .93rem; }

/* ---------- 更新情報 ---------- */
.news-list { list-style: none; padding: 0; margin: 20px auto 0; max-width: 820px; }
.news-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 3px dashed #c9c4e2;
}
.news-date { font-weight: 800; }
.news-ver {
  display: inline-block;
  margin-top: 4px;
  padding: 0 10px;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.news-item:first-child .news-ver { background: var(--red); }
.news-item h3 { font-size: 1.1rem; }
.news-item ul { margin: 6px 0 0; padding-left: 1.2em; font-size: .94rem; }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 推奨年齢 ---------- */
.age-badge {
  display: inline-block;
  margin: 12px 0 0;
  padding: 2px 16px;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--ink);
}
.hero-inner .age-badge { display: table; margin: 14px auto 0; }

/* ---------- 動画 ---------- */
.section-dark { background: var(--ink); border-top: var(--line); }
.movie-list {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}
@media (max-width: 860px) { .movie-list { grid-template-columns: 1fr; } }
.movie { margin: 0; }
.movie-tall { max-width: 340px; width: 100%; justify-self: center; }
.movie-frame {
  position: relative;
  border: 4px solid #fff;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 6px 6px 0 var(--yellow);
}
.frame-16x9 { aspect-ratio: 16 / 9; }
.frame-9x16 { aspect-ratio: 9 / 16; }
.movie-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.movie figcaption { margin-top: 12px; text-align: center; font-weight: 800; color: #fff; }
.movie figcaption a { margin-left: 8px; font-size: .88rem; color: var(--yellow); }

/* ---------- ご注意 ---------- */
.caution { background: #111; }
.caution-box {
  max-width: 820px;
  padding: 34px 30px;
  text-align: center;
  color: #f2f2f2;
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
}
.caution-title { font-family: var(--font-title); font-weight: 400; font-size: 2.4rem; color: var(--yellow); }
.caution-age { margin: 8px 0 18px; font-weight: 800; font-size: 1.15rem; }
.caution-items { display: inline-block; margin: 0; padding: 0; list-style: none; text-align: left; }
.caution-items li { position: relative; padding-left: 1.2em; margin: 10px 0; }
.caution-items li::before { content: "・"; position: absolute; left: 0; }
.caution-text { margin-top: 24px; padding-top: 20px; border-top: 2px dashed #555; }
.caution-text p { margin: 0 0 12px; }

/* ---------- ダウンロード ---------- */
.dl-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 760px;
  margin-top: 30px;
}
.dl-card {
  padding: 22px;
  text-align: center;
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dl-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.dl-card .btn { width: 100%; }
.dl-state { margin: 10px 0 0; font-size: .88rem; color: var(--ink-soft); }
.dl-note { text-align: center; color: #fff; margin-top: 26px; }
.dl-note code { color: var(--ink); }
.dl-age { text-align: center; margin: 14px 0 0; }
