/* はつめいロボバトルDX — 紹介ページ（about.html）だけの見た目
   ゲームの画面と同じ「太い紺の線・黄・オレンジ・空色」でそろえる。左だけ太い線の飾りは使わない。 */
:root {
  --ink: #192038;
  --ink-2: #475569;
  --sky: #4dabf7;
  --sky-d: #1c7ed6;
  --paper: #f0f9ff;
  --y: #ffd426;
  --o: #ff6b2b;
  --g: #20c96b;
  --b: #228be6;
  --p: #7950f2;
  --navy: #192038;
  --head: "Dela Gothic One", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
}
img, video { max-width: 100%; }
a { color: #1b46a6; }
a, button, summary { touch-action: manipulation; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1100px, 100%); margin: 0 auto; padding: 0 20px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.small { font-size: 14px; color: var(--ink-2); }
.small.light, .light { color: #c5d0ec; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #2b8fe6 0%, #5cb8ff 52%, #b9e3ff 100%);
  color: #fff;
  padding: 22px 0 0;
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-sky .g { position: absolute; color: rgba(255, 255, 255, 0.5); opacity: 0.32; }
.hero-sky .g1 { width: 220px; height: 220px; left: -60px; top: 40px; }
.hero-sky .g2 { width: 120px; height: 120px; right: 4%; top: 14px; }
.hero-sky .g3 { width: 160px; height: 160px; right: 38%; bottom: 40px; opacity: 0.18; }
@media (prefers-reduced-motion: no-preference) {
  .hero-sky .g1 { animation: spin 40s linear infinite; }
  .hero-sky .g2 { animation: spin 26s linear infinite reverse; }
  .hero-sky .g3 { animation: spin 50s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: center;
  padding-bottom: 46px;
}
.brand { margin: 0 0 10px; line-height: 0; }
.brand img { width: 190px; height: auto; filter: drop-shadow(0 2px 2px rgba(25, 32, 56, 0.35)); }
.hero-logo { margin: 0 0 6px; width: min(540px, 100%); line-height: 0; }
.hero-logo img { width: 100%; height: auto; display: block; }
.lead {
  margin: 10px 0 0;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.75;
  text-shadow: 0 1px 0 rgba(25, 32, 56, 0.55), 0 2px 8px rgba(25, 32, 56, 0.25);
}
.lead span { display: inline-block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin: 22px 0 0; }
.cta {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 12px 34px;
  border-radius: 999px;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, #ff9450, var(--o));
  color: #fff;
  text-decoration: none;
  font-family: var(--head);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 0 var(--ink), 0 12px 22px rgba(25, 32, 56, 0.25);
  text-shadow: 0 2px 0 rgba(25, 32, 56, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.cta small { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 900; font-size: 14px; letter-spacing: 0; }
.cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
}
.ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  font-size: 13.5px;
}

.screen { margin: 0; }
.screen-frame {
  position: relative;
  padding: 12px;
  border-radius: 24px;
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 0 8px 0 #0e1428, 0 22px 40px rgba(25, 32, 56, 0.35);
}
.screen-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #22304f url("../image/about/hero.webp") center / cover no-repeat;
  object-fit: cover;
}
.bolt {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--y);
  border: 2px solid #0e1428;
}
.b1 { left: -8px; top: -8px; } .b2 { right: -8px; top: -8px; } .b3 { left: -8px; bottom: -8px; } .b4 { right: -8px; bottom: -8px; }
.video-toggle {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 12px 4px 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(25, 32, 56, 0.78);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
}
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle[hidden] { display: none !important; }
.screen figcaption { margin-top: 12px; font-size: 12.5px; font-weight: 800; color: #1d3a66; text-align: center; }
.hero-ground {
  position: relative;
  height: 54px;
  border-top: 4px solid var(--ink);
  background:
    linear-gradient(180deg, #ff8a3d 0 8px, var(--ink) 8px 11px, transparent 11px),
    repeating-linear-gradient(90deg, #6ccf5c 0 60px, #5cc04d 60px 120px);
}

/* ---------- セクション共通 ---------- */
.sec { padding: 76px 0; border-top: 3px solid var(--ink); }
.hero + main > .sec:first-child { border-top: 0; }
.sec-white { background: #fff; }
.sec-sky { background: #e7f5ff; }
.sec-yellow { background: #fff6cf; }
.sec-orange { background: #ffeedd; }
.sec-grid {
  background-color: #f2f8ff;
  background-image:
    linear-gradient(rgba(77, 171, 247, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 171, 247, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
}
.sec-navy {
  background: radial-gradient(120% 80% at 50% 0%, #26315a 0%, var(--navy) 60%);
  color: #fff;
}

.sh { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.sh-center { justify-content: center; margin-bottom: 36px; }
.sh-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--head);
  font-size: 22px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 0 rgba(25, 32, 56, 0.35);
}
.c-blue { background: var(--b); }
.c-green { background: var(--g); }
.c-orange { background: var(--o); }
.c-purple { background: var(--p); }
.c-yellow { background: var(--y); color: var(--ink); text-shadow: none; }
.c-white { background: #fff; color: var(--ink); text-shadow: none; }
.sh-light .sh-no { box-shadow: 0 4px 0 #0b1022; border-color: #0b1022; }
.sh-k { margin: 0 0 2px; font-weight: 900; font-size: 14px; color: var(--ink-2); letter-spacing: 0.08em; }
.sh-light .sh-k { color: var(--y); }
.sh h2 {
  margin: 0;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(23px, 3.4vw, 32px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-wrap: balance;
  word-break: auto-phrase;
}
.intro { max-width: 46em; margin: 0 auto 30px; text-align: left; }
.intro.small { margin-top: 26px; margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.split > .ph-wrap:first-child { order: -1; }
.split:has(> .ph-wrap:first-child) { grid-template-columns: auto minmax(0, 1fr); }
.split-even { grid-template-columns: repeat(2, auto) !important; justify-content: center; gap: 40px; margin-top: 36px; }

/* スマホの形の枠 */
.ph-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; }
.ph {
  width: min(280px, 74vw);
  border: 5px solid var(--ink);
  border-radius: 34px;
  background: var(--ink);
  box-shadow: 0 8px 0 var(--ink), 0 20px 32px rgba(25, 32, 56, 0.18);
  overflow: hidden;
}
.ph img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 1105; border-radius: 29px; background: #dbeaf7; }
.ph-sm { width: min(220px, 62vw); border-radius: 28px; }
.ph-sm img { border-radius: 23px; }
.ph-wrap figcaption { margin-top: 16px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); text-align: center; max-width: 280px; }
.sec-navy .ph { border-color: #0b1022; box-shadow: 0 8px 0 #0b1022, 0 20px 32px rgba(0, 0, 0, 0.35); }
.sec-navy .ph-wrap figcaption { color: #c5d0ec; }

/* 1. どんなゲーム */
.stats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px 9px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink);
  text-align: center;
}
.stats b { font-family: var(--head); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--o); }
.stats span { font-size: 12.5px; font-weight: 800; line-height: 1.4; }

/* 2. 遊びの流れ */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: start; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.flow-txt {
  width: 100%;
  max-width: 300px;
  padding: 14px 16px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink);
  text-align: center;
  font-size: 15px;
}
.flow-no { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 4px; font-family: var(--head); font-size: 21px; line-height: 1.3; }
.flow-no svg { width: 30px; height: 30px; }
.flow-arrow { align-self: center; margin-top: -60px; }
.flow-arrow svg { width: 38px; height: 38px; }
.loop-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  width: fit-content;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 12px 22px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 800;
  text-align: center;
}
.loop-note svg { width: 30px; height: 30px; flex: none; }
.loop-note span { display: inline-block; }

/* 3. つくる・機能の一覧 */
.feat { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.feat li { display: flex; gap: 12px; align-items: flex-start; }
.feat svg { flex: none; width: 34px; height: 34px; margin-top: 2px; }
.feat b { display: block; font-weight: 900; font-size: 16.5px; line-height: 1.5; }
.feat div { font-size: 15px; line-height: 1.75; }
.sec-orange .feat div, .sec-grid .feat div { color: var(--ink); }
.parts-box {
  margin-top: 26px;
  padding: 14px 16px 16px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink);
}
.parts-h { margin: 0 0 8px; font-weight: 900; font-size: 15px; }
.parts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.parts li { padding: 2px 10px; border-radius: 10px; background: #e7f5ff; border: 2px solid #a5d8ff; font-weight: 800; font-size: 13.5px; }

/* 4. ずのう */
.rules { display: grid; gap: 10px; margin: 22px 0 16px; }
.rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
}
.rule-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  font-family: var(--head);
  font-size: 15px;
}
.chip-if, .chip-do {
  display: inline-flex;
  flex-direction: column;
  padding: 3px 12px 5px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.35;
}
.chip-if small, .chip-do small { font-size: 10.5px; font-weight: 800; color: var(--ink-2); }
.chip-if { background: #d0ebff; }
.chip-do { background: #d3f9d8; }
.rule-ar { width: 22px; height: 22px; flex: none; }
.grow { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.grow li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 12em) minmax(0, 1fr);
  gap: 4px 12px;
  padding: 8px 14px 8px 36px;
  background: #fff;
  border: 2px solid #c5d6ea;
  border-radius: 12px;
  font-size: 14.5px;
}
.grow li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--y);
  border: 2px solid var(--ink);
}
.grow b { font-weight: 900; }

/* 5. バトル */
.pads { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pads li { display: flex; gap: 18px; align-items: center; }
.pad {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 3.5px solid #0b1022;
  box-shadow: 0 5px 0 #0b1022;
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}
.pad svg { width: 32px; height: 32px; }
.pad-dash { background: #74c0fc; }
.pad-waza { background: #ff922b; }
.pad-burst { background: #fff; box-shadow: 0 5px 0 #0b1022, 0 0 0 5px var(--y); }
.pads h3 { margin: 0 0 4px; font-family: var(--head); font-weight: 400; font-size: 20px; color: var(--y); }
.pads p { margin: 0; color: #dbe4ff; font-size: 15px; }
.sec-navy .small { margin-top: 20px; }
.finish {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 64px;
}
.finish-img { margin: 0; }
.finish-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; border: 4px solid #0b1022; box-shadow: 0 6px 0 #0b1022; }
.finish-txt h3 { margin: 0 0 14px; font-family: var(--head); font-weight: 400; font-size: 24px; color: #fff; }
.ends { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ends li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #dbe4ff;
  font-size: 15px;
  line-height: 1.6;
}
.ends svg { flex: none; width: 36px; height: 36px; }
.ends b { display: block; color: #fff; font-weight: 900; font-size: 16px; }

/* 6. カップ */
.cups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cup {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink);
}
.cup-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 0 8px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid var(--ink);
  color: #fff;
  font-family: var(--head);
  font-size: 19px;
  line-height: 1;
}
.cup h3 { margin: 0 0 6px; font-family: var(--head); font-weight: 400; font-size: 19px; line-height: 1.35; }
.cup-class { margin: 0 0 2px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.cup-arena { margin: 0 0 12px; font-weight: 800; font-size: 13.5px; line-height: 1.6; }
.boss { margin-top: auto; padding: 10px 12px; border-radius: 14px; background: #f1f4fa; border: 2px solid #d6deeb; }
.boss-h { margin: 0; font-size: 11.5px; font-weight: 900; color: var(--c); letter-spacing: 0.06em; }
.boss-name { margin: 0; font-family: var(--head); font-size: 21px; line-height: 1.35; }
.boss-say { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; line-height: 1.6; }

/* 7. 会場 */
.arenas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.arena {
  grid-column: span 2;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink);
  overflow: hidden;
}
.arena.a-wide { grid-column: span 3; }
.arena figure { margin: 0; border-bottom: 3px solid var(--ink); }
.arena img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #cfe3f5; }
.arena-txt { padding: 12px 16px 14px; }
.arena h3 { margin: 0 0 4px; font-family: var(--head); font-weight: 400; font-size: 18px; line-height: 1.4; }
.arena p { margin: 0; font-size: 14.5px; line-height: 1.7; }

/* 8. 結果 */
.result-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.rp {
  padding: 16px 18px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink);
  font-size: 15px;
}
.rp svg { width: 40px; height: 40px; }
.rp h3 { margin: 4px 0 6px; font-weight: 900; font-size: 17px; line-height: 1.45; }
.rp p { margin: 0; }

/* 9. ずかん・いろ・しゃしん */
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.trio li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 20px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  font-size: 15px;
}
.trio h3 { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; font-family: var(--head); font-weight: 400; font-size: 20px; }
.trio h3 svg { width: 30px; height: 30px; }
.trio p { margin: 0; align-self: stretch; }
.book-count { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; }
.book-count div { display: flex; align-items: baseline; gap: 4px; padding: 2px 10px; border-radius: 10px; background: #ebfbee; border: 2px solid #8ce99a; font-size: 13px; font-weight: 800; }
.book-count dt { margin: 0; }
.book-count dd { margin: 0; font-family: var(--head); font-size: 15px; }

/* 11. れんしゅう */
.tasks { list-style: none; margin: 18px 0 18px; padding: 0; display: grid; gap: 10px; counter-reset: t; }
.tasks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 900;
  font-size: 15.5px;
  line-height: 1.5;
}
.tasks svg { flex: none; width: 32px; height: 32px; }

/* 12. 操作 */
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.keycard {
  padding: 18px 20px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
}
.keycard h3 { margin: 0 0 10px; font-weight: 900; font-size: 18px; }
.keycard h4 { margin: 16px 0 6px; font-weight: 900; font-size: 15px; }
.keycard table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.keycard th, .keycard td { padding: 8px 6px; border-top: 1.5px solid #e2e8f0; text-align: left; vertical-align: top; line-height: 1.6; }
.keycard tr:first-child th, .keycard tr:first-child td { border-top: 0; }
.keycard th { width: 34%; font-weight: 900; white-space: nowrap; }
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0 6px;
  border: 2px solid var(--ink);
  border-bottom-width: 4px;
  border-radius: 7px;
  background: #f1f5f9;
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* 13・14. おうちの方へ・よくある質問 */
.parents { background: #e7f5ff; border-top: 3px solid var(--ink); }
.parents .sec { border-top: 0; padding-bottom: 40px; }
.parents .sec + .sec { padding-top: 30px; padding-bottom: 76px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pbox { padding: 16px 18px; background: #fff; border: 2.5px solid #93c5fd; border-radius: 16px; font-size: 14.5px; }
.pbox h3 { margin: 0 0 6px; font-weight: 900; font-size: 16.5px; }
.pbox p { margin: 0; }
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 2.5px solid #93c5fd; border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; position: relative; padding: 14px 46px 14px 18px; font-weight: 900; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--sky-d); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; color: var(--ink-2); }

/* フッター（AMIX GAMES KIDS の about と同じ並び） */
.end { background: linear-gradient(180deg, #6cc8ff, #38a8f2); color: #fff; text-align: center; padding: 52px 0 36px; border-top: 3px solid var(--ink); }
.end-h { margin: 0 0 20px; font-family: var(--head); font-size: clamp(22px, 4.6vw, 30px); line-height: 1.4; text-shadow: 0 2px 0 rgba(25, 32, 56, 0.45); }
.end-h span { display: inline-block; }
.foot { margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 13px; font-weight: 700; }
.foot a { color: #fff; }
.foot > span + span::before { content: "/"; margin: 0 9px; opacity: 0.8; display: inline-block; }

/* ---------- 画面の幅ごと ---------- */
@media (max-width: 1000px) {
  .cups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; padding-bottom: 36px; }
  .hero-logo { margin-left: auto; margin-right: auto; }
  .cta-row, .chips { justify-content: center; }
  .split, .split:has(> .ph-wrap:first-child) { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .split > .ph-wrap:first-child { order: 2; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .flow-arrow { margin: 0 auto; transform: rotate(90deg); }
  .finish { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .result-points, .trio { grid-template-columns: minmax(0, 1fr); }
  .trio li { max-width: 520px; margin: 0 auto; width: 100%; }
  .arenas { grid-template-columns: minmax(0, 1fr); }
  .arena, .arena.a-wide { grid-column: auto; }
  .keys, .pgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 54px 0; }
  .parents .sec + .sec { padding-bottom: 56px; }
  .sh { gap: 12px; align-items: flex-start; }
  .sh-center { justify-content: flex-start; margin-bottom: 26px; }
  .sh-no { width: 46px; height: 46px; font-size: 19px; }
  .brand img { width: 160px; }
  .lead { font-size: 15.5px; }
  .cta { font-size: 21px; padding: 10px 28px; min-height: 56px; }
  .screen-frame { padding: 8px; border-radius: 18px; }
  .screen-video { border-radius: 9px; }
  .video-toggle { right: 14px; bottom: 14px; }
  .stats { display: flex; flex-wrap: wrap; justify-content: center; }
  .stats li { flex: 0 0 calc((100% - 20px) / 3); }
  .stats b { font-size: 26px; }
  .flow-step { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 12px; align-items: center; }
  .flow-step .ph-sm { width: 100%; border-width: 4px; border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
  .flow-step .ph-sm img { border-radius: 16px; }
  .flow-txt { text-align: left; padding: 12px 14px; font-size: 14.5px; }
  .flow-no { justify-content: flex-start; font-size: 19px; }
  .flow-no svg { width: 26px; height: 26px; }
  .flow-arrow svg { width: 30px; height: 30px; }
  .rule { gap: 6px; padding: 9px 10px; }
  .rule-no { width: 26px; height: 26px; font-size: 13px; }
  .chip-if, .chip-do { padding: 2px 8px 4px; font-size: 13.5px; }
  .rule-ar { width: 16px; height: 16px; }
  .cups { grid-template-columns: minmax(0, 1fr); }
  .split-even { gap: 14px; }
  .split-even .ph { width: min(160px, 42vw); border-width: 4px; border-radius: 22px; box-shadow: 0 5px 0 var(--ink); }
  .split-even .ph img { border-radius: 18px; }
  .split-even figcaption { font-size: 12px; max-width: 160px; }
  .grow li { grid-template-columns: minmax(0, 1fr); }
  .pads li { gap: 14px; }
  .pad { width: 74px; height: 74px; font-size: 12px; }
  .pad svg { width: 28px; height: 28px; }
  .keycard th { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .ghost { transition: none; }
}

/* おうちの方へ：学びや興味につながるところ・オンライン対戦（2026-12-03）。2列の格子を横いっぱいに使う */
.pbox--wide { grid-column: 1 / -1; }
.pbox-learn { border-color: #f59f00; background: #fffdf5; }
.pbox-learn > p { margin: 0 0 10px; }
.learn { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.learn li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #fff; border: 2px solid #ffe08a; border-radius: 12px; }
.learn b { font-weight: 900; font-size: 15px; }
.learn span { font-size: 14px; color: var(--ink-2); }
.pbox-learn .learn-tip { margin: 0; font-size: 14px; font-weight: 700; }
@media (max-width: 900px) {
  .learn { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- ヒーローの下のマーキー（バトルの場面・UI を消したもの。2026-12-03） ----------
   2つの同じ列を並べて -50% まで動かし、切れ目なくくり返す。マウスをのせても止めない（本人の指定）。
   動きを減らす設定では止めて、横にスクロールして見られるようにする */
.mq {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 22px 0 24px;
}
.mq-track {
  display: flex;
  width: max-content;
  animation: mq-run 72s linear infinite;
  will-change: transform;
}
.mq-set {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 16px 0 0;
  list-style: none;
}
.mq-set li {
  flex: none;
  width: clamp(250px, 31vw, 420px);
  aspect-ratio: 16 / 9;
  border: 3px solid #0b1022;
  border-radius: 16px;
  overflow: hidden;
  background: #2b3a5c;
  box-shadow: 0 6px 0 #0b1022;
}
.mq-set img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes mq-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq { overflow-x: auto; }
  .mq-track { animation: none; }
  .mq-set[aria-hidden="true"] { display: none; }
  .mq-set { padding-left: 16px; }
}
