:root {
  --blue: #1463d6;
  --blue-d: #0d4fb0;
  --navy: #0f2433;
  --coral: #ee5a4a;
  --coral-d: #c93a2a;
  --yellow: #ffc84a;
  --pale: #e2ecfc;
  --bg: #f4f7fc;
  --line: #cfdaea;
  --mute: #4a5d73;
  --white: #fff;
  --ok: #0a7a52;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
main { max-width: 1040px; margin: 0 auto; padding: 0 20px 72px; }
#app:focus, #app:focus-visible { outline: none; }

/* 上の帯（1段） */
.bar { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 16px; padding: 10px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; min-height: 44px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--yellow) 0 33%, var(--coral) 0 66%, var(--blue) 0); box-shadow: inset 0 0 0 6px var(--navy), 0 0 0 2px #fff; }
.brand-tag { font-size: 14px; font-weight: 700; background: var(--yellow); color: var(--navy); padding: 1px 10px; border-radius: 99px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #dbe6f5; text-decoration: none; font-size: 15px; font-weight: 700; padding: 9px 14px; border-radius: 99px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--navy); }

.eyebrow { font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: .06em; }
.tag { display: inline-block; font-size: 14px; font-weight: 800; background: var(--pale); color: var(--blue-d); padding: 2px 12px; border-radius: 99px; }
.tag-demo { background: var(--yellow); color: var(--navy); margin-right: 10px; }
.note { font-size: 14px; color: var(--mute); line-height: 1.7; }

/* 入口 */
.hero { padding: 56px 0 28px; }
.hero-s { padding-bottom: 8px; }
.hero h1 { font-size: clamp(32px, 6.2vw, 60px); line-height: 1.25; font-weight: 900; letter-spacing: -.01em; margin: 10px 0 18px; }
.hero h1 em { font-style: normal; color: var(--blue); background: linear-gradient(transparent 68%, var(--yellow) 68%); padding: 0 .08em; }
.lead { font-size: 17px; max-width: 40em; color: #24384d; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.door { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 54px; border-radius: var(--r); text-decoration: none; color: #fff; min-height: 190px; transition: transform .2s ease, box-shadow .2s ease; }
.door:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15, 36, 51, .22); }
.door-a { background: var(--blue); }
.door-b { background: var(--navy); }
.door-c { background: var(--coral-d); }
.door-k { font-size: 14px; font-weight: 800; opacity: .92; }
.door b { font-size: 24px; line-height: 1.35; font-weight: 900; }
.door span:not(.door-k) { font-size: 15px; line-height: 1.6; }
.door i { position: absolute; left: 22px; bottom: 16px; font-style: normal; font-size: 22px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 900; transition: transform .2s ease; }
.door:hover i { transform: translateX(6px); }

.block { margin-top: 44px; }
.block > h2, .sec-h h2 { font-size: 24px; font-weight: 900; line-height: 1.4; }
.block > h2 { margin-bottom: 16px; }
.sec-h { margin-bottom: 14px; }
.sec-h p { font-size: 15px; color: var(--mute); }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: f; }
.flow-i { position: relative; background: #fff; border: 2px solid var(--line); border-top-width: 8px; border-radius: 12px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.flow-i:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 10px; height: 2px; background: var(--navy); }
.flow-n { font-size: 14px; font-weight: 900; color: var(--mute); }
.flow-i b { font-size: 19px; font-weight: 900; line-height: 1.4; }
.flow-i span:last-child { font-size: 14px; line-height: 1.6; color: #24384d; }
.flow-staff { border-color: var(--navy); }
.flow-auto { border-color: var(--coral); background: #fff4f2; }
.flow-me { border-color: var(--blue); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; font-weight: 700; }
.lg::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.lg-staff::before { background: var(--navy); }
.lg-auto::before { background: var(--coral); }
.lg-me::before { background: var(--blue); }

.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r); overflow: hidden; border: 2px solid var(--line); }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.65; }
.cmp thead th { background: var(--navy); color: #fff; font-size: 15px; }
.cmp thead th:last-child { background: var(--blue); }
.cmp tbody th { width: 9.5em; font-weight: 800; background: #f1f4f8; }
.cmp td.new { font-weight: 800; background: #f3f8ff; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h2 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.card.ok { border-color: var(--blue); }
.card.yet { border-color: #9fb2c6; background: #f8fafc; }
.card.ok li, .card.yet li { position: relative; padding: 5px 0 5px 26px; font-size: 15px; line-height: 1.6; }
.card.ok li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 13px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.card.yet li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 12px; height: 3px; background: #7c8ea3; }
.card.next { border-color: var(--yellow); background: #fffaf0; }
.card.next p { font-size: 15px; }

/* 受講生の画面 */
.lhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 32px 0 14px; }
.h-name { font-size: clamp(28px, 4.6vw, 40px); font-weight: 900; line-height: 1.3; }
.meta { font-size: 15px; color: var(--mute); font-weight: 700; }
.who { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 800; color: var(--mute); }
.who select { min-height: 44px; padding: 6px 12px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; font-weight: 800; font-size: 16px; color: var(--navy); }

.clock { background: #fff8e3; border: 2px dashed #d9a520; border-radius: var(--r); padding: 12px 16px 14px; }
.clock-t { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 6px 16px; border-radius: 99px; border: 2px solid var(--navy); background: #fff; font-weight: 800; font-size: 15px; cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { background: var(--pale); }
.chip.on { background: var(--navy); color: #fff; }
.chip.ghost { border-style: dashed; font-weight: 700; }

.dash { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--blue); color: #fff; border-radius: 22px; padding: 30px 32px; margin-top: 18px; }
.count-k { font-size: 17px; font-weight: 800; }
.count { display: flex; align-items: baseline; gap: 10px; font-weight: 900; line-height: 1; margin: 6px 0 20px; }
.count span { font-size: 24px; }
.count b { font-size: clamp(84px, 17vw, 148px); letter-spacing: -.04em; font-feature-settings: "tnum"; }
.count b.word { font-size: clamp(44px, 9vw, 72px); letter-spacing: 0; line-height: 1.3; }
.fin { font-weight: 800; font-size: 17px; }
.ring { position: relative; width: 132px; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--yellow); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); }
.ring-txt { position: absolute; left: 0; top: 0; width: 132px; height: 132px; display: flex; justify-content: center; align-items: baseline; gap: 2px; padding-top: 44px; line-height: 1; }
.ring-l { text-align: center; font-size: 14px; font-weight: 800; margin-top: 8px; white-space: nowrap; }
.ring-txt b { font-size: 40px; font-weight: 900; }
.ring-txt span { font-size: 16px; font-weight: 800; }

.btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 10px 24px; border-radius: 12px; border: 2px solid transparent; font-weight: 900; font-size: 17px; line-height: 1.4; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; text-align: left; }
.btn small { font-size: 14px; font-weight: 700; opacity: .9; }
.btn:active { transform: scale(.98); }
.btn-main { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 #c9951c; }
.btn-main:hover { background: #ffd66f; transform: translateY(-2px); box-shadow: 0 6px 0 #c9951c; }
.btn-line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--pale); }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: 15px; background: #fff; border-color: var(--navy); color: var(--navy); border-radius: 10px; white-space: nowrap; }
.btn-sm:hover { background: var(--navy); color: #fff; }
.link-btn { background: none; border: 0; padding: 10px 4px; min-height: 44px; color: var(--blue); font-weight: 800; text-decoration: underline; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; }

/* 道のり */
.track { margin-top: 26px; padding-top: 34px; }
.track-line { position: relative; height: 12px; background: #d5e0ef; border-radius: 99px; margin: 0 8px; }
.track-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--coral); border-radius: 99px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.track-dot { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 6px solid var(--coral); transition: left .8s cubic-bezier(.2, .8, .2, 1); }
.track-dot span { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--coral-d); color: #fff; font-size: 14px; font-weight: 900; padding: 1px 10px; border-radius: 99px; white-space: nowrap; font-style: normal; }
.track-gate { position: absolute; top: -8px; bottom: -8px; width: 4px; margin-left: -2px; background: var(--navy); border-radius: 2px; }
.track-gate span { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 14px; font-weight: 900; font-style: normal; white-space: nowrap; }
.segs { display: grid; grid-template-columns: repeat(4, 20%) 20%; margin: 12px 8px 0; }
.seg { padding: 4px 8px 0 0; border-left: 2px solid transparent; }
.seg-l { display: block; font-size: 14px; font-weight: 900; color: var(--mute); }
.seg-t { display: block; font-size: 14px; line-height: 1.5; color: var(--mute); font-weight: 700; }
.seg.now .seg-l, .seg.now .seg-t { color: var(--navy); }
.seg.now .seg-l { display: inline-block; background: var(--yellow); padding: 0 10px; border-radius: 99px; }
.seg.past .seg-l, .seg.past .seg-t { color: #6d7f94; }

/* 章 */
.ch { background: #fff; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.ch[open] { border-color: var(--blue); }
.ch summary { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "n t c" "n b b"; column-gap: 12px; row-gap: 6px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; min-height: 60px; }
.ch summary::-webkit-details-marker { display: none; }
.ch-n { grid-area: n; width: 40px; height: 40px; border-radius: 50%; background: var(--pale); color: var(--blue-d); font-weight: 900; display: grid; place-items: center; font-size: 17px; }
.ch.full .ch-n { background: var(--ok); color: #fff; }
.ch-t { grid-area: t; font-weight: 800; font-size: 17px; line-height: 1.45; }
.ch-c { grid-area: c; font-size: 14px; font-weight: 800; color: var(--mute); white-space: nowrap; }
.ch-bar { grid-area: b; height: 6px; background: #e3eaf3; border-radius: 99px; overflow: hidden; }
.ch-bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .5s ease; }
.ch.full .ch-bar i { background: var(--ok); }
.ls { border-top: 1px solid var(--line); padding: 6px 8px 10px; }
.ls a { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 8px; min-height: 44px; border-radius: 8px; text-decoration: none; color: var(--navy); font-size: 15px; line-height: 1.55; }
.ls a:hover { background: var(--pale); }
.ls em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--blue-d); background: var(--pale); padding: 0 10px; border-radius: 99px; white-space: nowrap; }
.ls a.is-done span:not(.sr) { color: #56677b; }
.ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #9fb2c6; display: inline-block; position: relative; flex: none; }
.is-done .ck, .ck.on { background: var(--ok); border-color: var(--ok); }
.is-done .ck::after, .ck.on::after { content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 5px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.late { margin-top: 18px; padding: 14px 14px 6px; background: #fff4f2; border: 2px solid var(--coral); border-radius: var(--r); }
.late h3 { font-size: 17px; font-weight: 900; color: var(--coral-d); margin-bottom: 10px; }

.wk { margin-bottom: 10px; }
.wk > summary { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--navy); color: #fff; border-radius: 12px; cursor: pointer; list-style: none; min-height: 56px; }
.wk > summary::-webkit-details-marker { display: none; }
.wk-l { font-weight: 900; font-size: 17px; white-space: nowrap; }
.wk-t { font-weight: 800; font-size: 16px; line-height: 1.4; }
.wk-t small { display: block; font-size: 14px; font-weight: 700; color: #c9d7e8; }
.wk-s { font-size: 14px; font-weight: 900; padding: 1px 12px; border-radius: 99px; white-space: nowrap; }
.wk-s1 { background: var(--yellow); color: var(--navy); }
.wk-s0 { background: #32506b; color: #fff; }
.wk-s2 { background: #fff; color: var(--navy); }
.wk-b { padding: 10px 0 4px; }

.makes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.make { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: #fff; border: 2px solid var(--navy); border-radius: var(--r); text-decoration: none; color: var(--navy); transition: transform .15s ease, box-shadow .15s ease; }
.make:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--pale); }
.make b { font-size: 21px; font-weight: 900; }
.make span:last-child { font-size: 15px; line-height: 1.6; color: #24384d; }
.make-s { align-self: flex-start; font-size: 14px; font-weight: 900; padding: 0 12px; border-radius: 99px; background: #e3eaf3; color: #33465a; }
.make.done { border-color: var(--ok); }
.make.done .make-s { background: var(--ok); color: #fff; }

/* 開く前 */
.locked { background: var(--navy); color: #fff; border-radius: 22px; padding: 34px 32px; margin-top: 18px; }
.locked .count b { color: var(--yellow); }
.locked-d { font-size: 17px; font-weight: 700; max-width: 34em; }
.locked .track-line { background: #2c4a63; }
.locked .seg-l, .locked .seg-t { color: #c9d7e8; }
.locked .track-gate { background: #fff; }
.inside { margin-top: 28px; }
.inside h2 { font-size: 19px; font-weight: 900; margin-bottom: 10px; }
.inside ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.inside li { background: #fff; color: var(--navy); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.inside li b { font-size: 14px; color: var(--blue-d); }
.inside li span { font-size: 15px; font-weight: 800; line-height: 1.45; }
.locked-a { margin-top: 22px; }

/* レッスン */
.crumb { padding: 22px 0 6px; }
.crumb a { font-weight: 800; font-size: 15px; display: inline-flex; min-height: 44px; align-items: center; }
.lesson { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 30px 32px; max-width: 760px; }
.lesson h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.45; font-weight: 900; margin: 6px 0 12px; }
.ph { border: 2px dashed #9fb2c6; border-radius: 12px; padding: 30px 22px; background: #f8fafc; margin: 18px 0; }
.ph b { font-size: 18px; }
.ph p { font-size: 15px; color: var(--mute); margin-top: 4px; }
.prose p { margin: 14px 0; font-size: 17px; }
.prose .rule { background: #fff8e3; border-left: 6px solid var(--yellow); padding: 12px 16px; font-weight: 800; border-radius: 0 10px 10px 0; }
.lesson-f { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.done-m { display: flex; align-items: center; gap: 8px; font-weight: 800; width: 100%; }
.hint-a { margin: 8px 0; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 800; font-size: 15px; }
.form input, .form select, .form textarea { min-height: 48px; padding: 10px 12px; border: 2px solid #8194aa; border-radius: 10px; background: #fff; font-size: 16px; font-weight: 500; width: 100%; }
.form textarea { line-height: 1.6; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid var(--pale); }
.form .btn { align-self: flex-start; }
.saved { font-weight: 800; color: var(--ok); font-size: 15px; }

/* レジュメ */
.rz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.rz h1 { font-size: 28px; font-weight: 900; line-height: 1.4; }
.rz-a { display: flex; gap: 10px; flex-wrap: wrap; }
.paper { background: #fff; border: 1px solid #b8c7d6; box-shadow: 0 10px 30px rgba(15, 36, 51, .12); padding: 40px 38px; min-height: 620px; font-family: Georgia, "Times New Roman", serif; color: #111; line-height: 1.6; }
.p-name { font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.p-contact, .p-avail { font-size: 14px; }
.p-avail { margin-top: 2px; font-style: italic; }
.paper h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid #111; margin: 22px 0 8px; padding-bottom: 2px; font-family: Arial, Helvetica, sans-serif; }
.paper p, .paper li { font-size: 15px; }
.p-job { display: flex; justify-content: space-between; gap: 12px; }
.p-place { font-style: italic; }
.paper ul { list-style: disc; padding-left: 20px; margin-top: 4px; }
.p-skills { columns: 2; }
.p-ph { color: #8a97a6; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 14px; }

/* スタッフ */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.tile { background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; }
.tile b { font-size: 44px; font-weight: 900; line-height: 1.1; font-feature-settings: "tnum"; }
.tile span { font-size: 14px; font-weight: 800; color: var(--mute); }
.tile-w { background: var(--coral-d); border-color: var(--coral-d); color: #fff; }
.tile-w span { color: #fff; }
.tile-s { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile-s span { color: #dbe6f5; }
.tbl-wrap { background: #fff; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.tbl thead th { background: #f1f4f8; font-size: 14px; font-weight: 800; color: var(--mute); }
.tbl tbody th b { display: block; font-size: 17px; font-weight: 900; }
.tbl small { display: block; font-size: 14px; color: var(--mute); font-weight: 700; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl tr.is-behind { background: #fff4f2; }
.tbl tr.is-behind th { box-shadow: inset 6px 0 0 var(--coral); }
.pb { display: block; width: 120px; max-width: 100%; height: 10px; background: #e3eaf3; border-radius: 99px; overflow: hidden; }
.pb i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.sts { display: block; }
.st { display: inline-block; font-size: 14px; font-weight: 900; padding: 1px 12px; border-radius: 99px; white-space: nowrap; margin: 2px 4px 2px 0; }
.st-before { background: #e3eaf3; color: #33465a; }
.st-open { background: var(--blue); color: #fff; }
.st-arrived { background: var(--ok); color: #fff; }
.st-behind { background: var(--coral-d); color: #fff; }
.mails { counter-reset: m; margin: 10px 0; }
.mails li { position: relative; padding: 10px 0 10px 44px; border-left: 3px solid var(--line); margin-left: 14px; display: flex; flex-direction: column; }
.mails li::before { counter-increment: m; content: counter(m); position: absolute; left: -16px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: 14px; display: grid; place-items: center; }
.mails li:last-child { border-left-color: transparent; }
.mails b { font-size: 16px; font-weight: 900; }
.mails span { font-size: 15px; line-height: 1.55; color: #24384d; }
.mails.on li::before { background: var(--coral-d); }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 200, 74, .9); } 100% { box-shadow: 0 0 0 18px rgba(255, 200, 74, 0); } }

/* ToDoリスト */
.td { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.td-g { background: #fff; border: 2px solid var(--line); border-top: 8px solid var(--blue); border-radius: 12px; padding: 14px 14px 10px; }
.td-g:nth-child(2) { border-top-color: var(--coral); }
.td-g:nth-child(3) { border-top-color: var(--yellow); }
.td-g:nth-child(4) { border-top-color: var(--navy); }
.td-g h3 { font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.td-g label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 9px 0; min-height: 44px; font-size: 15px; line-height: 1.55; cursor: pointer; }
.td-g input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.td-g input:checked + span { color: #56677b; text-decoration: line-through; }
.td-a { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.foot { max-width: 1040px; margin: 0 auto; padding: 22px 20px 44px; border-top: 2px solid var(--line); display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot p { font-size: 14px; color: var(--mute); max-width: 46em; }

@media (max-width: 860px) {
  .doors, .two, .makes { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-i { border-top-width: 2px; border-left-width: 8px; }
  .flow-i:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -14px; width: 2px; height: 12px; }
  .rz { grid-template-columns: 1fr; }
  .paper { padding: 28px 22px; min-height: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile-s { grid-column: 1 / -1; }
  .td { grid-template-columns: 1fr 1fr; }
  .inside ul { grid-template-columns: 1fr; }
  .inside li { flex-direction: row; gap: 12px; align-items: baseline; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl tr { padding: 12px 14px 14px; border-bottom: 2px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl th, .tbl td { border: 0; padding: 4px 0; }
  .tbl td[data-h] { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 8px; align-items: center; }
  .tbl td[data-h]::before { content: attr(data-h); font-size: 14px; font-weight: 800; color: var(--mute); }
  .tbl td[data-h] small { grid-column: 2; }
  .tbl tr.is-behind th { box-shadow: none; }
  .tbl tr.is-behind { box-shadow: inset 6px 0 0 var(--coral); }
}
@media (max-width: 600px) {
  main { padding: 0 16px 56px; }
  .bar { padding: 6px 10px; gap: 6px; flex-wrap: nowrap; }
  .brand-name, .brand-tag, .nav-x { display: none; }
  .nav { margin-left: auto; gap: 0; flex-wrap: nowrap; }
  .nav a { padding: 8px 11px; font-size: 14px; white-space: nowrap; }
  .hero { padding-top: 36px; }
  .dash { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; }
  .dash-b { justify-self: start; }
  .locked { padding: 26px 20px; }
  .lesson { padding: 22px 18px; }
  .segs { grid-template-columns: repeat(5, 20%); }
  .seg { padding-right: 2px; }
  .seg-t { display: none; }
  .seg-l { white-space: nowrap; }
  .seg.now .seg-l { padding: 0 7px; margin-left: -7px; }
  .td { grid-template-columns: 1fr; }
  .cmp tbody th { width: 6.5em; }
  .cmp th, .cmp td { padding: 10px; font-size: 14px; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .form .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  .bar, .foot, .no-print, .hero, .clock { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .rz { display: block; }
  .paper { box-shadow: none; border: 0; padding: 0; }
  .block { margin-top: 0; }
}
