/* でんしゃの うんてんし — 遊び方の 紹介ページ（about.html）
   ゲームと 同じ 色・書体。見出しは 駅名標（駅の 名前の 板）、遊び方は 路線図の 形に した。ゲーム本体は 埋めこまない（画面写真だけ） */
:root {
  --sky: #5cc3ff; --sky2: #bfe9ff; --sun: #ffc531; --coral: #ff6f61; --mint: #3ccf91; --pink: #ff8fc6; --violet: #a98bff;
  --ink: #253050; --paper: #fffdf6; --line: #253050; --mute: #55607f; --rule: #d9deea;
  --hid: #f0ae00; --kir: #f0619f; --aoz: #1f6fe0; --mok: #9c3b2e; --mid: #2f9e5a;
  --f: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --fd: "M PLUS Rounded 1c", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --fn: "Fredoka", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { color: var(--ink); background: var(--paper); font-family: var(--f); font-weight: 500; font-size: 16px; line-height: 1.95; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: #1a62c9; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 36px, 1040px); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--fd); line-height: 1.35; text-wrap: balance; }
p + p { margin-top: .9em; }

/* ---------- ボタン（ゲームの「あそぶ」と 同じ 形） ---------- */
.go { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 64px; padding: .3em 1.9em; border-radius: 999px; background: var(--coral); color: #fff; font-family: var(--fd); font-weight: 800; font-size: 24px; letter-spacing: .08em; text-decoration: none; border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line); text-shadow: 0 2px 0 rgba(0,0,0,.18); transition: transform .08s, box-shadow .08s; }
.go::after { content: ""; position: absolute; left: 18px; top: 9px; width: 26px; height: 10px; border-radius: 10px; background: rgba(255,255,255,.55); transform: rotate(-12deg); }
.go:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--line); }
.go:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--line); }
.go small { font-size: 14px; letter-spacing: .04em; font-weight: 700; }
.ghost { display: inline-flex; align-items: center; min-height: 52px; padding: .2em 1.3em; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); transition: transform .08s, box-shadow .08s; }
.ghost:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
:is(.go, .ghost, a, summary):focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }

/* ---------- ヒーロー：ゲームの タイトルと 同じ、左に クリーム色の 板・右に 景色 ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: flex; align-items: center; border-bottom: 4px solid var(--line); background: var(--sky2); }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,253,246,.97) 0%, rgba(255,253,246,.95) 40%, rgba(255,253,246,0) 66%); }
.hero-in { padding: 56px 0 64px; }
.hero-txt { width: min(100%, 490px); }
.brand { display: inline-flex; align-items: baseline; gap: .4em; font-family: var(--fn); font-weight: 600; line-height: 1; }
.brand .b-amix { font-size: 15px; letter-spacing: .08em; }
.brand .b-kids { display: inline-flex; font-size: 26px; }
.brand .b-kids i { font-style: normal; color: #fff; text-shadow: 0 2.5px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink); }
.brand .b-kids i:nth-child(1) { color: var(--coral); } .brand .b-kids i:nth-child(2) { color: var(--sun); } .brand .b-kids i:nth-child(3) { color: var(--mint); } .brand .b-kids i:nth-child(4) { color: var(--sky); }
.series { display: inline-block; margin: 14px 0 12px; font-size: 14px; letter-spacing: .14em; background: var(--ink); color: #fff; padding: 5px 14px 6px; border-radius: 99px; transform: rotate(-3deg); line-height: 1.4; }
.hero h1 { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.hero h1 .l1 { font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: .08em; margin-left: .1em; }
.hero h1 .l2 { font-weight: 900; font-size: clamp(52px, 8.4vw, 96px); letter-spacing: .02em; color: var(--sun); margin-top: 6px;
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 2.2px 2.2px 0 var(--ink), -2.2px 2.2px 0 var(--ink), 2.2px -2.2px 0 var(--ink), -2.2px -2.2px 0 var(--ink), 0 8px 0 var(--ink); }
.hero h1 .sub { font-family: var(--f); font-weight: 700; font-size: clamp(17px, 2vw, 21px); letter-spacing: .04em; line-height: 1.5; margin-top: 26px; }
.hero .lead { margin-top: 12px; font-size: 16px; line-height: 1.9; color: #36405e; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 14px; margin-top: 26px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { font-size: 13px; font-weight: 700; line-height: 1.4; padding: 5px 12px 6px; border-radius: 99px; background: #fff; border: 2px solid var(--line); }

/* 線路を 走る 電車（読みこみ画面の 電車と 同じ 絵） */
.rail { position: relative; height: 62px; overflow: hidden; background: var(--paper); }
.rail::before { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 14px;
  background: linear-gradient(#8d8f96, #8d8f96) 0 2px / 100% 3px no-repeat, linear-gradient(#8d8f96, #8d8f96) 0 9px / 100% 3px no-repeat, repeating-linear-gradient(90deg, #b9a07c 0 6px, transparent 6px 14px); }
.rail svg { position: absolute; bottom: 14px; left: 0; width: 96px; height: 48px; animation: run 16s linear infinite; }
@keyframes run { from { transform: translateX(-110px); } to { transform: translateX(100vw); } }

/* ---------- 駅名標の 形の 見出し ---------- */
section { padding: 72px 0 8px; }
.sign { position: relative; width: min(100%, 640px); margin: 0 auto 36px; background: #fff; border: 3px solid var(--line); border-radius: 18px; box-shadow: 0 6px 0 var(--line); text-align: center; overflow: hidden; }
.sign .no { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; border: 4px solid var(--c, var(--aoz)); background: #fff; font-family: var(--fn); line-height: 1; }
.sign .no i { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; margin-bottom: -6px; }
.sign .no b { font-size: 22px; font-weight: 600; }
.sign h2 { font-weight: 900; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: .08em; padding: 20px 76px 0; }
.sign .kana { font-size: 12px; letter-spacing: .3em; color: var(--mute); padding: 2px 76px 12px; line-height: 1.6; }
.sign .band { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--c, var(--aoz)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; padding: 6px 16px 7px; }
.sign .band span:first-child::before { content: "◀ "; } .sign .band span:last-child::after { content: " ▶"; }
.sign .band span:empty::before, .sign .band span:empty::after { content: ""; }
.intro { width: min(100%, 760px); margin: 0 auto; }

/* 数字の 札 */
.stats { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 34px auto 0; width: min(100%, 860px); }
.stats li { background: #fff; border: 3px solid var(--line); border-radius: 16px; box-shadow: 0 4px 0 var(--line); padding: 12px 6px 10px; text-align: center; line-height: 1.4; }
.stats b { display: block; font-family: var(--fn); font-weight: 600; font-size: 36px; line-height: 1.1; }
.stats span { font-size: 13px; font-weight: 700; }

/* ---------- 運転の 流れ：路線図（たての 線と 駅の 丸） ---------- */
.stops { list-style: none; position: relative; counter-reset: stop; display: grid; gap: 30px; }
.stops::before { content: ""; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 10px; border-radius: 10px; background: var(--hid); border: 3px solid var(--line); }
.stop { position: relative; counter-increment: stop; display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 1fr); gap: 26px; align-items: center; padding-left: 78px; }
.stop::before { content: counter(stop); position: absolute; left: 4px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 4px solid var(--line); font-family: var(--fn); font-weight: 600; font-size: 26px; line-height: 1; }
.shot { border: 3px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 0 var(--line); background: #dfe6ee; }
.shot img { width: 100%; }
.stop h3 { font-weight: 800; font-size: 22px; letter-spacing: .06em; }
.stop h3 small { display: block; font-family: var(--f); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--mute); }
.stop p { margin-top: 8px; }
/* ゲームの 中の かけごえ。inline の まま（inline-block に すると、つづく「。」が 行の 頭に 落ちる） */
.say { font-weight: 700; white-space: nowrap; background: #fff4c7; border-radius: 6px; padding: .08em .35em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.note { margin-top: 10px; font-size: 14px; line-height: 1.8; color: #36405e; background: #fff; border: 2px solid var(--rule); border-radius: 12px; padding: 9px 13px 10px; }

/* ---------- 路線と 電車 ---------- */
.lines { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.linecard { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border: 3px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 var(--line); }
.linecard:nth-child(4) { grid-column: 2 / span 2; }
.linecard .lc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--c); color: #fff; padding: 8px 16px 9px; line-height: 1.4; }
.linecard h3 { font-weight: 800; font-size: 19px; letter-spacing: .08em; }
.linecard .lc-kind { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.22); border-radius: 99px; padding: 2px 10px 3px; white-space: nowrap; }
.linecard figure { border-bottom: 3px solid var(--line); background: #dfe6ee; }
.linecard .lc-body { padding: 14px 16px 18px; font-size: 14.5px; line-height: 1.85; }
.linecard .lc-train { font-family: var(--fd); font-weight: 800; font-size: 17px; }
.route { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 8px 0 10px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.route li { display: inline-flex; align-items: center; }
.route li + li::before { content: ""; width: 14px; height: 4px; background: var(--c); margin: 0 3px; border-radius: 4px; }
.route li span { background: #fff; border: 2.5px solid var(--c); border-radius: 99px; padding: 1px 9px 2px; white-space: nowrap; }
.route li.pass span { border-style: dashed; color: var(--mute); font-weight: 500; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-top: 10px; font-size: 13.5px; }
.spec dt { font-weight: 700; color: var(--mute); white-space: nowrap; }

/* ---------- 運転士の 仕事 ---------- */
.jobs { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
.jobs li { position: relative; background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 16px 18px 17px 74px; line-height: 1.8; font-size: 15px; }
.jobs h3 { font-weight: 800; font-size: 18px; letter-spacing: .05em; margin-bottom: 2px; }
.jobs svg { position: absolute; left: 16px; top: 18px; width: 44px; height: 44px; padding: 8px; border-radius: 50%; background: var(--t, #e8f6ff); border: 2.5px solid var(--line); }

/* ---------- とりてつ モード ---------- */
.tt { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.tt ul { margin: 12px 0 0 1.2em; }
.tt li { margin-top: 4px; }
.tt-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
figcaption { font-size: 13px; font-weight: 700; line-height: 1.6; padding: 7px 12px 8px; background: #fff; border-top: 3px solid var(--line); }
.promise { margin-top: 30px; background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 18px 22px 20px; }
.promise h3 { font-weight: 800; font-size: 18px; letter-spacing: .06em; }
.promise ol { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.promise li { counter-increment: p; position: relative; padding: 2px 0 0 44px; font-size: 14.5px; line-height: 1.75; }
.promise li::before { content: counter(p); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--line); font-family: var(--fn); font-weight: 600; font-size: 18px; line-height: 1; }
.promise li b { display: block; font-size: 15.5px; }

/* ---------- 昼・夕方・夜 ---------- */
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }

/* ---------- 操作 ---------- */
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.keycard { background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 16px 20px 18px; }
.keycard h3 { font-weight: 800; font-size: 18px; letter-spacing: .06em; margin-bottom: 8px; }
.keycard table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.7; }
.keycard th, .keycard td { text-align: left; vertical-align: top; padding: 7px 0; border-top: 2px dotted var(--rule); }
.keycard tr:first-child th, .keycard tr:first-child td { border-top: 0; }
.keycard th { width: 42%; font-weight: 500; padding-right: 10px; }
kbd { display: inline-block; min-width: 2em; text-align: center; font-family: var(--fn); font-size: 13px; font-weight: 600; line-height: 1.5; padding: 1px 8px 2px; border-radius: 8px; background: #fff; border: 2px solid var(--line); box-shadow: 0 2px 0 var(--line); margin-right: 3px; }

/* ---------- おうちの方へ・よくある質問 ---------- */
.parents { background: #fff; border: 3px solid var(--line); border-radius: 22px; box-shadow: 0 6px 0 var(--line); padding: 26px 30px 30px; width: min(100%, 860px); margin: 0 auto; }
.parents h3 { font-weight: 800; font-size: 17px; letter-spacing: .05em; margin-top: 20px; }
.parents h3:first-child { margin-top: 0; }
.parents p { margin-top: 4px; font-size: 15px; }
.faq { width: min(100%, 860px); margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 3px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 14px 52px 15px 20px; font-weight: 700; line-height: 1.7; border-radius: 13px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 11px; height: 11px; border-right: 3.5px solid var(--line); border-bottom: 3.5px solid var(--line); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 16px; font-size: 15px; }

/* ---------- 終点：あそぶ ---------- */
.last { margin-top: 84px; padding: 60px 0 0; background: linear-gradient(#bfe9ff, #8fd6ff); border-top: 4px solid var(--line); text-align: center; }
.last h2 { font-weight: 900; font-size: clamp(26px, 4.4vw, 40px); letter-spacing: .1em; }
.last p { margin-top: 8px; }
.last .go { margin-top: 24px; }
.last .rail { margin-top: 44px; background: transparent; }
footer { background: var(--ink); color: #fff; padding: 22px 0 26px; font-size: 13px; line-height: 1.8; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
footer a { color: #fff; }
footer small { display: block; text-align: center; margin-top: 8px; font-size: 12px; opacity: .8; }

/* ---------- せまい 画面 ---------- */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-img { position: static; aspect-ratio: 3 / 2; border-bottom: 4px solid var(--line); }
  .hero-img img { object-position: 60% 50%; }
  .hero::before { display: none; }
  .hero-in { padding: 26px 0 40px; }
  .hero-txt { width: 100%; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stop { grid-template-columns: 1fr; gap: 14px; padding-left: 62px; }
  .stops::before { left: 17px; } .stop::before { left: -2px; top: 0; translate: 0 0; width: 46px; height: 46px; font-size: 22px; }
  .lines { grid-template-columns: repeat(2, 1fr); } .linecard, .linecard:nth-child(4) { grid-column: auto; }
  .jobs { grid-template-columns: 1fr; }
  .tt { grid-template-columns: 1fr; gap: 18px; }
  .promise ol { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  section { padding-top: 56px; }
  .sign h2 { padding: 62px 16px 0; } .sign .kana { padding: 2px 16px 12px; }
  .sign .no { left: 50%; top: 10px; translate: -50% 0; width: 46px; height: 46px; } .sign .no b { font-size: 19px; }
  .stats { grid-template-columns: repeat(2, 1fr); } .stats li:last-child { grid-column: 1 / -1; }
  .lines { grid-template-columns: 1fr; }
  .tt-sub, .times { grid-template-columns: 1fr; }
  .parents { padding: 20px 18px 24px; }
  .go { font-size: 21px; min-height: 60px; padding: .3em 1.4em; }
  .hero .cta .go { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rail svg { animation: none; transform: translateX(24px); } }

/* 文字の ふち取りを なめらかに（ゲームと 同じ。8方向だと スマホで ギザギザ）2026-10-05 */
:root {
  --ol-logo: 3px 0px 0 var(--line), 2.77px 1.15px 0 var(--line), 2.12px 2.12px 0 var(--line), 1.15px 2.77px 0 var(--line), 0px 3px 0 var(--line), -1.15px 2.77px 0 var(--line), -2.12px 2.12px 0 var(--line), -2.77px 1.15px 0 var(--line), -3px 0px 0 var(--line), -2.77px -1.15px 0 var(--line), -2.12px -2.12px 0 var(--line), -1.15px -2.77px 0 var(--line), 0px -3px 0 var(--line), 1.15px -2.77px 0 var(--line), 2.12px -2.12px 0 var(--line), 2.77px -1.15px 0 var(--line);
  --ol-logo-dn: 3px 5px 0 var(--line), 2.77px 6.15px 0 var(--line), 2.12px 7.12px 0 var(--line), 1.15px 7.77px 0 var(--line), 0px 8px 0 var(--line), -1.15px 7.77px 0 var(--line), -2.12px 7.12px 0 var(--line), -2.77px 6.15px 0 var(--line), -3px 5px 0 var(--line), -2.77px 3.85px 0 var(--line), -2.12px 2.88px 0 var(--line), -1.15px 2.23px 0 var(--line), 0px 2px 0 var(--line), 1.15px 2.23px 0 var(--line), 2.12px 2.88px 0 var(--line), 2.77px 3.85px 0 var(--line);
  --ol-kids: 2px 0px 0 var(--line), 1.85px 0.77px 0 var(--line), 1.41px 1.41px 0 var(--line), 0.77px 1.85px 0 var(--line), 0px 2px 0 var(--line), -0.77px 1.85px 0 var(--line), -1.41px 1.41px 0 var(--line), -1.85px 0.77px 0 var(--line), -2px 0px 0 var(--line), -1.85px -0.77px 0 var(--line), -1.41px -1.41px 0 var(--line), -0.77px -1.85px 0 var(--line), 0px -2px 0 var(--line), 0.77px -1.85px 0 var(--line), 1.41px -1.41px 0 var(--line), 1.85px -0.77px 0 var(--line);
  --ol-kids-dn: 2px 2.5px 0 var(--line), 1.85px 3.27px 0 var(--line), 1.41px 3.91px 0 var(--line), 0.77px 4.35px 0 var(--line), 0px 4.5px 0 var(--line), -0.77px 4.35px 0 var(--line), -1.41px 3.91px 0 var(--line), -1.85px 3.27px 0 var(--line), -2px 2.5px 0 var(--line), -1.85px 1.73px 0 var(--line), -1.41px 1.09px 0 var(--line), -0.77px 0.65px 0 var(--line), 0px 0.5px 0 var(--line), 0.77px 0.65px 0 var(--line), 1.41px 1.09px 0 var(--line), 1.85px 1.73px 0 var(--line);
}
.hero h1 .l2 { text-shadow: var(--ol-logo), var(--ol-logo-dn); }
.brand .b-kids i { text-shadow: var(--ol-kids), var(--ol-kids-dn); }

/* AMIX GAMES KIDS の ロゴ（2026-10-06・本人の ロゴ） */
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 24px; width: auto; }
@media (max-width: 600px) { .brand img { height: 21px; } }
