/* Will Way v0.2 — 路線図の考え方（12週＝12駅、4区間＝4路線色） */
:root {
  --ink: #18212e;
  --ink-2: #4f5b6c;
  --ink-3: #8a94a3;
  --bg: #ffffff;
  --panel: #f2f4f7;
  --line: #dde2e8;
  --l1: #2e9e5b;  /* 1〜4週 土台 */
  --l2: #1f6fb5;  /* 5〜8週 読む・聞く */
  --l3: #7b4fa6;  /* 9〜11週 書く・話す */
  --l4: #ee7a1a;  /* 12週 直前 */
  --stamp: #d7263d; /* 面談の確認印・赤ペン */
  --jp: "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --num: "Barlow Semi Condensed", "BIZ UDPGothic", sans-serif;
  --en: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp); font-size: 16px; line-height: 1.8; }
a { color: var(--l2); }
:focus-visible { outline: 3px solid var(--l4); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.num { font-family: var(--num); }

/* ヘッダー：駅の案内板のような黒帯 */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; height: 54px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo .mark { display: flex; gap: 3px; }
.logo .mark i { width: 7px; height: 22px; border-radius: 2px; display: block; }
.logo b { font-family: var(--num); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { color: #c9d1dc; text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 4px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on { color: #fff; box-shadow: inset 0 -3px 0 var(--l4); border-radius: 0; }
@media (max-width: 760px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 4px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .nav a { white-space: nowrap; font-size: 13px; padding: 6px 9px; }
}
.proto { background: #fff6d6; color: #6b5300; font-size: 12px; text-align: center; padding: 3px 16px; }

/* ===== トップ ===== */
.lede { padding: 44px 0 8px; }
.lede h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.35; margin: 0 0 14px; font-weight: 700; letter-spacing: .01em; }
.lede h1 .num { font-size: 1.25em; font-weight: 700; }
.lede p { font-size: 17px; color: var(--ink-2); max-width: 36em; margin: 0; }

/* 路線図（看板） */
.route { margin: 30px 0 10px; position: relative; }
.route svg { width: 100%; height: auto; display: block; overflow: visible; }
.route .st { cursor: pointer; }
.route .st:hover circle.ring, .route .st:focus circle.ring { stroke-width: 7; }
.route text { font-family: var(--jp); }
.route .lbl { font-size: 13px; fill: var(--ink-2); }
.route .wk { font-family: var(--num); font-size: 13px; font-weight: 700; }
.route-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.route-legend span::before { content: ""; display: inline-block; width: 22px; height: 6px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: 3px; }
.route-path { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.6s ease-out .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .route-path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 760px) { .route .route-wide { display: none; } }
@media (min-width: 761px) { .route .route-tall { display: none; } }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: #fff; cursor: pointer; font-family: inherit; }
.btn.go { background: var(--ink); color: #fff; }
.btn.go::after { content: "→"; font-family: var(--num); }
.btn.sm { padding: 5px 12px; font-size: 13px; border-width: 1.5px; }

/* 区切り：時刻表の見出しのような帯 */
.bar-h { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin: 54px 0 16px; }
.bar-h h2 { margin: 0; font-size: 21px; }
.bar-h small { color: var(--ink-3); font-size: 13px; }

/* できることの一覧（カードにしない） */
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu li { border-bottom: 1px solid var(--line); }
.menu a { display: grid; grid-template-columns: 210px 1fr auto; gap: 16px; padding: 14px 4px; text-decoration: none; color: var(--ink); align-items: baseline; }
.menu a:hover { background: var(--panel); }
.menu b { font-size: 16.5px; }
.menu span { color: var(--ink-2); font-size: 14.5px; }
.menu em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 760px) { .menu a { grid-template-columns: 1fr; gap: 0; } }

/* コーチングの案内 */
.coach { display: grid; grid-template-columns: 1fr 300px; gap: 28px; border: 2px solid var(--ink); border-radius: 8px; padding: 22px 24px; }
.coach h3 { margin: 0 0 6px; font-size: 19px; }
.coach p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.coach .price { border-left: 1px solid var(--line); padding-left: 24px; }
.coach .price b { font-family: var(--num); font-size: 40px; line-height: 1; }
.coach .price small { font-size: 13px; color: var(--ink-3); }
.coach ul { margin: 8px 0 14px; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .coach { grid-template-columns: 1fr; } .coach .price { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; border-top: 1px solid var(--line); }
.links a { padding: 14px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.links b { display: block; font-size: 15px; }
.links span { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 760px) { .links { grid-template-columns: 1fr; } }

.site-foot { margin-top: 60px; background: var(--panel); padding: 24px 0 36px; font-size: 12.5px; color: var(--ink-3); }
.site-foot p { margin: 3px 0; }

/* ===== コース（駅名標） ===== */
.course-top { padding: 34px 0 6px; }
.course-top h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); }
.course-top p { margin: 0; color: var(--ink-2); max-width: 40em; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; color: var(--ink-2); margin: 14px 0 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts b { color: var(--ink); }
.stations { display: grid; gap: 22px; margin-top: 26px; }
.station { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; scroll-margin-top: 80px; }
.sign { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 18px 10px; gap: 14px; }
.sign .name { text-align: center; }
.sign .badge { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 5px solid var(--c); border-radius: 50%; font-family: var(--num); font-weight: 700; font-size: 26px; background: #fff; }
.sign h3 { margin: 4px 0 0; font-size: 20px; }
.sign .zone { font-size: 12px; color: var(--c); font-weight: 700; }
.sign .prev, .sign .next { font-size: 12.5px; color: var(--ink-3); }
.sign .prev { text-align: left; }
.sign .next { text-align: right; }
.sign .prev b, .sign .next b { display: block; color: var(--ink-2); font-size: 13.5px; font-weight: 400; }
.station .stripe { height: 8px; background: var(--c); }
.station .in { padding: 14px 20px 16px; }
.minutes { display: flex; height: 24px; font-size: 12px; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.minutes div { display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap; overflow: hidden; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { padding: 6px 0 6px 30px; position: relative; border-bottom: 1px solid var(--panel); font-size: 15px; }
.todo li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 16px; height: 16px; border: 2px solid #9aa3b0; border-radius: 3px; }
.todo li.paid::after { content: "コーチングのみ"; font-size: 11px; border: 1px solid var(--ink-3); color: var(--ink-2); border-radius: 3px; padding: 0 5px; margin-left: 8px; }
.pass { margin-top: 10px; padding: 8px 12px; border-left: 4px solid var(--c); background: var(--panel); font-size: 14px; }
.pass b { margin-right: 6px; }
.station .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.station.start { box-shadow: 0 0 0 3px var(--l4); }
.station.start .sign h3::before { content: "ここから"; font-size: 11px; background: var(--l4); color: #fff; border-radius: 3px; padding: 1px 6px; margin-right: 8px; vertical-align: 3px; }
@media (max-width: 760px) {
  .sign { grid-template-columns: 1fr; text-align: center; gap: 4px; }
  .sign .prev, .sign .next { text-align: center; }
  .sign .prev { order: 2; } .sign .next { order: 3; }
}

/* 印刷：週の用紙 */
.sheet { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  .site-head, .proto, .site-foot, .course-top, .noprint, .station .foot .btn { display: none !important; }
  .station { display: none; }
  body.print-one .station.printing { display: block; border: 1.5px solid #333; }
  .station .stripe, .minutes div, .sign .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet { display: block; }
}
.sheet-head { font-size: 11pt; border-bottom: 1px solid #999; padding: 4px 20px; }
.days { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 10.5pt; }
.days td { border: 1px solid #999; padding: 4px; text-align: center; height: 52px; vertical-align: top; }
.boxes { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 8px; margin-top: 10px; font-size: 10pt; }
.boxes div { border: 1px solid #999; height: 60px; padding: 4px 8px; border-radius: 4px; }
.boxes .hanko { border-color: var(--stamp); color: var(--stamp); }

/* ===== 診断 ===== */
.quiz { max-width: 720px; margin: 0 auto; padding: 32px 0 10px; }
.quiz h1 { font-size: 30px; margin: 0 0 6px; }
.quiz > p { color: var(--ink-2); margin: 0 0 16px; }
.progress { position: sticky; top: 54px; background: #fff; padding: 8px 0; z-index: 5; }
.progress .bar { height: 6px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.progress .bar div { height: 100%; width: 0; background: var(--ink); transition: width .25s; }
.progress small { color: var(--ink-3); font-family: var(--num); }
.q { border-top: 1px solid var(--line); padding: 18px 0 16px; }
.q .qn { font-family: var(--num); font-weight: 700; color: var(--ink-3); font-size: 14px; }
.q .qn span { font-family: var(--jp); font-weight: 400; margin-left: 8px; }
.q .qt { margin: 4px 0 10px; font-size: 16px; }
.q .en, .q .passage { font-family: var(--en); font-size: 17px; line-height: 1.7; }
.q .passage { background: var(--panel); padding: 10px 14px; border-radius: 4px; margin-bottom: 10px; }
.opts { display: grid; gap: 6px; }
.opts label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 12px; cursor: pointer; background: #fff; }
.opts input { margin-top: 7px; accent-color: var(--ink); }
.opts label.sel { border-color: var(--ink); }
.opts .en { font-family: var(--en); font-size: 16px; }
.q .fb { display: none; font-size: 14px; margin-top: 8px; color: var(--ink-2); }
.q.ok .fb, .q.ng .fb { display: block; }
.q.ok .fb b { color: var(--l1); } .q.ng .fb b { color: var(--stamp); }
.result { display: none; border: 2px solid var(--ink); border-radius: 8px; padding: 22px 24px; margin: 10px 0 30px; }
.result .score { font-family: var(--num); font-size: 48px; font-weight: 700; line-height: 1; }
.result h2 { margin: 8px 0 8px; font-size: 22px; }
.result p { color: var(--ink-2); margin: 0 0 6px; }
.note { font-size: 12.5px; color: var(--ink-3); }

/* ===== 今日の1題 ===== */
.day-layout { display: grid; grid-template-columns: 190px 1fr; gap: 26px; padding: 28px 0; }
.day-list { position: sticky; top: 74px; align-self: start; max-height: 80vh; overflow: auto; border-right: 1px solid var(--line); padding-right: 10px; }
.day-list a { display: block; padding: 5px 8px; text-decoration: none; color: var(--ink-2); font-size: 14px; border-radius: 4px; }
.day-list a.on { background: var(--ink); color: #fff; }
.day-list .today { font-size: 12px; color: var(--ink-3); padding: 0 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; line-height: 1.6; }
.panel { border-top: 2px solid var(--ink); padding: 14px 0 22px; margin-bottom: 18px; }
.panel .kind { font-size: 13px; color: var(--ink-3); }
.panel h2 { margin: 2px 0 10px; font-size: 22px; }
.panel h2.en-t { font-family: var(--en); font-weight: 600; }
.panel .en p { font-family: var(--en); font-size: 18px; line-height: 1.85; }
.timer { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.timer b { font-family: var(--num); font-size: 20px; color: var(--ink); min-width: 3.2em; }
.mq { border-top: 1px solid var(--line); padding: 12px 0; }
.mq .qt { font-family: var(--en); font-size: 16.5px; margin-bottom: 8px; }
.mq .ex { display: none; border-left: 4px solid var(--l1); background: var(--panel); padding: 8px 12px; font-size: 14px; margin-top: 8px; }
.mq.done .ex { display: block; }
.mq .opts label.right { border-color: var(--l1); }
.mq .opts label.wrong { border-color: var(--stamp); }
details.tr { margin-top: 10px; font-size: 14px; }
details.tr summary { cursor: pointer; color: var(--l2); }
audio { width: 100%; margin: 6px 0; }
.script { font-family: var(--en); font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .day-layout { grid-template-columns: 1fr; } .day-list { position: static; max-height: none; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; } .day-list a { white-space: nowrap; } .day-list .today { display: none; } }

/* ===== コーチング ===== */
.page-top { padding: 36px 0 6px; }
.page-top h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; line-height: 1.4; }
.page-top p { color: var(--ink-2); max-width: 38em; margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.table th { width: 40%; font-weight: 400; }
.table td.y { text-align: center; width: 20%; font-family: var(--num); font-weight: 700; }
.table thead th { border-bottom: 2px solid var(--ink); font-size: 13px; color: var(--ink-2); font-weight: 700; }
.steps-list { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: 10px 0 10px 46px; border-bottom: 1px solid var(--line); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); font-family: var(--num); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps-list b { display: block; }
.steps-list span { color: var(--ink-2); font-size: 14.5px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

sup.r { font-size: .45em; vertical-align: super; margin-left: .05em; font-weight: 400; }
.table thead th + th { text-align: center; width: 30%; }
.table td.y { width: 30%; }

.home-link { font-size: 12px; color: #9aa6b6; text-decoration: none; border-left: 1px solid #3a4658; padding-left: 12px; white-space: nowrap; }
.home-link:hover { color: #fff; }
.site-foot a { color: var(--ink-2); }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px !important; }
.foot-brand img { height: 30px; background: #fff; border-radius: 999px; padding: 5px 12px; display: block; }
@media (max-width: 760px) { .home-link { display: none; } }

/* 乗車記録 */
.stamp-btn { background: none; border: 1.5px dashed var(--ink-3); border-radius: 6px; padding: 5px 12px; font-family: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.stamp-btn.on { border-style: solid; border-color: var(--stamp); color: var(--stamp); }
.stamp-btn .hanko { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--stamp); border-radius: 50%; font-weight: 700; font-size: 11px; transform: rotate(-12deg); }
.route .st.done circle.ring { fill: currentColor; }
.route .st.done text.wk { fill: #fff; }
.stamp-note { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
@media print { .stamp-btn { display: none; } }
