/* bamenlearning.com: station signage on a night platform. Built by app/scripts/build-website.mjs (this file is hand-written). */
@font-face { font-family: "Overpass"; src: url("overpass.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("zen-kaku-500.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("zen-kaku-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --night: #16233A;
  --night-2: #1F3352;
  --board: #FAFBFC;
  --page: #E9EDF1;
  --ink: #1B2A41;
  --ink-2: #56657B;
  --rule: #C8D1DC;
  --blue: #2F66AC;
  --yellow: #F6C343;
  --ui: "Overpass", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.6 var(--ui); }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[lang="ja"] { font-family: var(--jp); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--yellow); color: var(--night); padding: 8px 14px; border-radius: 6px; }

/* ---------- header ---------- */
.top { background: var(--night); color: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px max(20px, calc((100% - var(--wrap)) / 2)); }
.top :focus-visible, .hero :focus-visible { outline-color: var(--yellow); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.top nav a { color: #C9D5E6; text-decoration: none; font-weight: 600; font-size: .98rem; }
.top nav a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--night); color: #fff; font: 700 1.02rem/1 var(--ui); text-decoration: none;
  padding: 16px 22px 14px; border-radius: 10px; }
.btn:hover { background: var(--night-2); }
.hero .btn { background: var(--yellow); color: var(--night); }
.hero .btn:hover { background: #FFD45E; }

/* ---------- hero: the station board ---------- */
.hero { background: var(--night); color: #fff; }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 7vw, 88px) 20px clamp(44px, 7vw, 84px);
  display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.025em; }
.lede { margin-top: 22px; font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: #D3DDEB; max-width: 34em; }
.cta { margin-top: 30px; }
.fine { margin-top: 12px; font-size: .92rem; color: #A9B8CD; }

.board { margin: 0; background: var(--board); color: var(--ink); border-radius: 12px; overflow: hidden;
  border: 6px solid #0D1626; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.board-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.board-station { font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.board-jp { padding: 18px 20px 0; font-size: clamp(1.5rem, 2.9vw, 2.15rem); font-weight: 700; line-height: 1.9; letter-spacing: .02em; }
.board-jp rt { font-size: .38em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.board-ro { padding: 2px 20px 0; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; }
.board-en { padding: 6px 20px 22px; color: var(--ink-2); font-size: 1.05rem; }
.board-band { display: flex; justify-content: space-between; background: #0079C2; color: #fff; font-weight: 700;
  padding: 11px 20px 9px; font-size: .98rem; }

.badge { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 50%;
  border: 4px solid var(--c); background: #fff; color: var(--ink); font: 800 .82rem/1 var(--ui); letter-spacing: -.02em; }
.board .badge { min-width: 50px; height: 50px; font-size: .95rem; }

.play { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--night); color: #fff; display: grid; place-items: center; }
.play:hover { background: var(--blue); }
.play.on { background: var(--blue); box-shadow: 0 0 0 6px rgba(47, 102, 172, .25); }
.play:focus-visible { outline-color: var(--blue); }

/* the yellow tactile strip at the platform edge */
.tactile { height: 18px; background-color: var(--yellow);
  background-image: radial-gradient(circle at center, rgba(22, 35, 58, .22) 2.2px, transparent 2.6px);
  background-size: 13px 13px; background-position: 6px 3px; }

/* ---------- sections ---------- */
.steps, .lines, .faq { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) 20px 0; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }

.steps ol { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 820px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { counter-increment: step; position: relative; padding-top: 58px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); position: absolute; top: 14px; left: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .95rem; background: var(--page); }
.steps h3 { font-size: 1.35rem; font-weight: 800; }
.steps p { margin-top: 8px; color: #344359; max-width: 34em; }

.lines-lede { margin-top: 14px; max-width: 40em; color: #344359; }
.tier { margin-top: 44px; }
.tier-head { border-left: 6px solid var(--ink); padding-left: 16px; }
.tier-jp { font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.tier h3 { font-size: 1.5rem; font-weight: 800; margin-top: 2px; }
.tier-sub { margin-top: 6px; color: var(--ink-2); }
.line-list { list-style: none; padding: 0; margin: 18px 0 0; }
.line-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .line-row { grid-template-columns: 38px 11rem minmax(0, 1fr); } }
.line-row .badge { grid-row: span 2; }
@media (min-width: 760px) { .line-row .badge { grid-row: auto; } }
.line-name { font-weight: 800; padding-top: 8px; }
.stops { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 8px; grid-column: 2; color: #2A394F; }
@media (min-width: 760px) { .stops { grid-column: 3; } }
.stops span { position: relative; padding-left: 15px; }
.stops span::before { content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px; border-radius: 50%;
  border: 2.5px solid var(--c, var(--ink-2)); background: #fff; }

.price { margin-top: clamp(56px, 8vw, 96px); background: var(--board); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.price-in { max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 6vw, 72px) 20px; }
.price-big { margin-top: 14px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; }
.price-big span { font-weight: 800; }
.price-in p:not(.price-big) { margin-top: 14px; max-width: 40em; color: #344359; }
.price-in p:last-child { margin-top: 26px; }

.faq { padding-bottom: clamp(56px, 8vw, 96px); }
.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--rule); max-width: 46em; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: #344359; max-width: 40em; }
.faq-more { margin-top: 22px; }

/* ---------- legal pages ---------- */
.doc { max-width: 46em; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 20px clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; }
.doc .updated { margin-top: 10px; color: var(--ink-2); }
.doc h2 { font-size: 1.25rem; margin-top: 34px; }
.doc p { margin-top: 10px; }
.doc .btn { margin-top: 24px; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #C9D5E6; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 44px; display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; }
.foot strong { color: #fff; }
.foot a { color: #C9D5E6; }
.foot a:hover { color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot :focus-visible { outline-color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
