:root {
  --bg: #09090a;
  --bg2: #0f0f11;
  --surface: #131316;
  --surface2: #1a1a1e;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #ecebe8;
  --muted: #8d8c92;
  --faint: #5c5b61;
  --accent: #e8dcc2;
  --accent-rgb: 232, 220, 194;
  --minus: #8a6f69;
  --mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --latin: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(var(--accent-rgb), .07), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  transition: background-image .6s;
}
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

/* ───── 上の進み具合 ───── */
.progress { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto 0; height: 2px; background: var(--line); z-index: 30; }
.progress-bar { height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); transition: width .45s var(--ease); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: linear-gradient(var(--bg) 70%, rgba(9, 9, 10, 0));
}
.topbar[hidden] { display: none; }
.back {
  flex: none; height: 40px; margin-left: -4px; padding: 0 14px 0 8px; border: 1px solid var(--line2); background: none; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 2px; cursor: pointer; color: var(--text); font: inherit; font-size: 13px;
}
.back:hover { background: var(--surface); }
.back svg { width: 18px; height: 18px; }
.counter { font-family: var(--latin); font-weight: 300; font-size: 13px; letter-spacing: .18em; color: var(--muted); }
.counter b { color: var(--text); font-weight: 400; }
.sec-name { font-size: 12px; color: var(--muted); letter-spacing: .12em; margin-left: auto; }

/* ───── 画面 ───── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--bg); }
#app { max-width: 560px; margin: 0 auto; padding-block: 8px 120px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: content-box; }
@media (max-width: 600px) { #app { box-sizing: border-box; } }
#app { overflow-wrap: anywhere; }
#app.wide { max-width: 960px; }
.screen { animation: enter .32s var(--ease) both; }
.screen.leave { animation: leave .16s ease-in both; pointer-events: none; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .screen, .screen.leave { animation: none; } }

.eyebrow {
  font-family: var(--latin); font-weight: 400; font-size: 11px; letter-spacing: .28em;
  color: var(--accent); margin: 18px 0 6px; text-transform: uppercase;
}
.eyebrow .dim { color: var(--faint); margin-left: .6em; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 600; letter-spacing: .04em; margin: 0; }
h2.q { font-size: 26px; line-height: 1.45; margin: 4px 0 20px; text-wrap: balance; }
@media (min-width: 720px) { h2.q { font-size: 30px; } }

/* ───── 先生の吹き出し ───── */
.guide { display: flex; gap: 14px; align-items: flex-start; margin: 10px 0 18px; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .7);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .06), 0 0 22px rgba(var(--accent-rgb), .18);
  background: radial-gradient(circle at 35% 30%, #2a2a2f, #121215 70%);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--mincho); font-size: 20px; color: var(--accent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.avatar.lg { width: 76px; height: 76px; font-size: 28px; }
.avatar.narrator { font-family: var(--latin); font-size: 11px; letter-spacing: .2em; font-weight: 400; }
.bubble {
  position: relative; flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; padding: 12px 16px 13px;
}
.bubble .who { font-family: var(--latin); font-size: 10.5px; letter-spacing: .24em; color: var(--accent); margin-bottom: 2px; }
.bubble .who span { color: var(--faint); letter-spacing: .1em; font-family: var(--sans); margin-left: .5em; }
.say { margin: 0; font-size: 15px; line-height: 1.8; }
.say.flash { animation: flash .35s var(--ease); }
@keyframes flash { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ───── 選択肢 ───── */
.options { display: grid; gap: 10px; }
.options.cols2 { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 14px 18px; text-align: left; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .12s;
}
.opt:hover { border-color: var(--line2); background: var(--surface); }
.opt:active { transform: scale(.985); }
.opt .no { font-family: var(--latin); font-weight: 300; font-size: 12px; color: var(--faint); letter-spacing: .1em; width: 18px; flex: none; }
.opt .lb { font-size: 16px; font-weight: 500; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.opt .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.opt .dot { margin-left: auto; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line2); transition: all .2s; }
.opt.on { border-color: rgba(var(--accent-rgb), .85); background: rgba(var(--accent-rgb), .06); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .25), 0 0 26px rgba(var(--accent-rgb), .12); }
.opt.on .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.opt.on .no { color: var(--accent); }
.opt.multi .dot { width: 18px; height: 18px; border-radius: 5px; position: relative; }
.opt.multi.on .dot { box-shadow: 0 0 10px rgba(var(--accent-rgb), .7); }
.opt.multi.on .dot::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #0b0b0c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.multi-hint { font-size: 12px; color: var(--accent); letter-spacing: .12em; margin: -6px 0 10px; }
.opt-group { grid-column: 1 / -1; margin: 10px 0 -2px; font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.opt-group:first-child { margin-top: 0; }
/* 選択肢が多い画面でも「次へ」が画面の下に見えたままになるように */
.actions.sticky { position: sticky; bottom: 0; z-index: 2; padding: 18px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 72%, rgba(9, 9, 10, 0)); }
.cols2 .opt { min-height: 58px; padding: 12px 14px; gap: 10px; }
.cols2 .opt .no { display: none; }
.cols2 .opt .lb { font-size: 15px; }

/* ───── ボタン ───── */
.actions { margin-top: 26px; display: grid; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 14px 22px; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .9);
  background: var(--accent); color: #0b0b0c; font-weight: 700; font-size: 16px; letter-spacing: .08em;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), .25);
  transition: transform .12s, box-shadow .2s, opacity .2s;
}
.btn:hover { box-shadow: 0 0 36px rgba(var(--accent-rgb), .4); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .3; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); box-shadow: none; font-weight: 500; }
.btn.ghost:hover { border-color: rgba(var(--accent-rgb), .6); }
.btn .arrow { font-family: var(--latin); font-weight: 300; }
.link { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 8px; }

/* ───── 表紙 ───── */
.intro { padding-top: 7vh; }
.intro .mark { font-family: var(--latin); font-weight: 300; font-size: 11px; letter-spacing: .4em; color: var(--accent); }
.intro h1 { font-size: 34px; line-height: 1.5; margin: 18px 0 14px; }
@media (min-width: 720px) { .intro h1 { font-size: 44px; } }
.intro .lede { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.intro .parts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 24px; }
.intro .part { background: var(--bg2); padding: 16px 18px; display: flex; gap: 16px; align-items: baseline; }
.intro .part .n { font-family: var(--latin); font-weight: 200; font-size: 28px; color: var(--accent); width: 34px; flex: none; }
.intro .part .t { font-family: var(--mincho); font-weight: 600; font-size: 17px; }
.intro .part .d { color: var(--muted); font-size: 13px; }
.intro .part.off .n, .intro .part.off .t { opacity: .45; }
.promise { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.promise li { position: relative; padding-left: 22px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.promise li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 1px; background: var(--accent); }

/* ───── 先生をえらぶ ───── */
.teachers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 720px) { .teachers { grid-template-columns: 1fr 1fr 1fr; } }
.tcard {
  --c: #fff; position: relative; padding: 18px 12px 16px; text-align: center; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .25s, transform .12s;
}
.tcard:active { transform: scale(.985); }
.tcard .avatar { margin: 0 auto 10px; width: 64px; height: 64px; border-color: var(--c); box-shadow: 0 0 0 4px rgba(255,255,255,.02), 0 0 18px color-mix(in srgb, var(--c) 25%, transparent); color: var(--c); font-size: 24px; }
.tcard .pers { font-family: var(--mincho); font-weight: 600; font-size: 17px; }
.tcard .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tcard .catch { font-size: 11.5px; color: var(--faint); margin-top: 6px; line-height: 1.5; }
.tcard .swatch { position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.tcard.on { border-color: var(--c); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 0 30px color-mix(in srgb, var(--c) 20%, transparent); }
.tcard .pic { display: block; width: 100%; max-width: 168px; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 12px; overflow: hidden; background: #17171a; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.tcard .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard { padding-top: 12px; }
.tfilters { display: grid; gap: 8px; margin: 4px 0 10px; }
.tfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tfilter .lab { flex: none; width: 3em; font-size: 12px; color: var(--muted); }
.chip.sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.tcount { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.tcount.none { color: var(--text); font-size: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; }

/* ───── 名前 ───── */
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip {
  min-height: 52px; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line); font-size: 16px; font-weight: 500;
  transition: all .2s;
}
.names .chip { font-family: var(--mincho); font-size: 19px; }
.chip.on { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 22px rgba(var(--accent-rgb), .15); background: rgba(var(--accent-rgb), .06); }
.free-input { display: flex; gap: 8px; margin-top: 14px; }
.free-input input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px;
}
.free-input input:focus { outline: none; border-color: rgba(var(--accent-rgb), .8); }
.free-input input::placeholder { color: var(--faint); }
.free-input button { flex: none; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: none; cursor: pointer; }

/* ───── 割合 ───── */
.ratio-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 4px 0 22px; }
.ratio-bar span { display: block; height: 100%; background: var(--accent); transition: flex-grow .35s var(--ease); }
.ratio-bar span:nth-child(2) { opacity: .55; }
.ratio-bar span:nth-child(3) { opacity: .25; }
.ratio-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.ratio-row:last-of-type { border-bottom: 1px solid var(--line); }
.ratio-row .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ratio-row:nth-of-type(2) .sw { opacity: .55; }
.ratio-row:nth-of-type(3) .sw { opacity: .25; }
.ratio-row .lb { flex: 1; font-size: 15px; font-weight: 500; }
.ratio-row .val { font-family: var(--latin); font-weight: 200; font-size: 34px; width: 92px; text-align: right; line-height: 1; }
.ratio-row .val small { font-size: 15px; color: var(--muted); margin-left: 2px; }
.step {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: none; cursor: pointer;
  font-family: var(--latin); font-weight: 300; font-size: 22px; line-height: 1; display: grid; place-items: center;
}
.step:hover { border-color: rgba(var(--accent-rgb), .7); color: var(--accent); }
.step[disabled] { opacity: .25; cursor: default; }

/* ───── 5段階 ───── */
.scale { margin-top: 10px; }
.scale .ends { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.scale .ends span { max-width: 46%; line-height: 1.5; }
.scale .ends span:last-child { text-align: right; }
.scale .dots { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; position: relative; }
.scale .dots::before { content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 1px; background: var(--line); }
.sdot {
  position: relative; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg); cursor: pointer; padding: 0;
  transition: all .2s var(--ease); flex: none;
}
.sdot:hover { border-color: rgba(var(--accent-rgb), .6); }
.sdot.s0, .sdot.s4 { width: 54px; height: 54px; }
.sdot.s1, .sdot.s3 { width: 42px; height: 42px; }
.sdot.s2 { width: 30px; height: 30px; }
.sdot.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12), 0 0 26px rgba(var(--accent-rgb), .55); }
.scale .hint { display: flex; justify-content: space-between; font-family: var(--latin); font-size: 10px; letter-spacing: .2em; color: var(--faint); margin-top: 12px; }

/* ───── PCの見方 ───── */
.howto { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); }
.howto summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; margin-left: auto; font-family: var(--latin); font-weight: 300; font-size: 20px; color: var(--accent); }
.howto[open] summary::after { content: "−"; }
.howto .tag { font-family: var(--latin); font-size: 10px; letter-spacing: .2em; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .4); padding: 2px 8px; border-radius: 999px; }
.howto .body { padding: 0 16px 16px; }
.howto ol { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; }
.howto ol li { counter-increment: s; position: relative; padding-left: 30px; font-size: 14px; line-height: 1.6; }
.howto ol li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--latin); font-size: 12px; color: var(--accent); }
.howto img { border-radius: 8px; border: 1px solid var(--line); width: 100%; }
.howto .note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.howto .note strong { color: var(--text); font-weight: 500; }

/* ───── ごほうび ───── */
.reward { border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 18px; padding: 24px 20px; background: linear-gradient(180deg, rgba(var(--accent-rgb), .06), rgba(var(--accent-rgb), 0) 60%), var(--bg2); position: relative; overflow: hidden; }
.reward::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .18), transparent); pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.badge.warn { border-color: var(--line2); color: var(--text); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.reward h3 { font-size: 26px; margin: 14px 0 8px; }
.reward p { color: var(--muted); font-size: 14px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { font-size: 13.5px; padding-left: 20px; position: relative; line-height: 1.65; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 8px; height: 1px; background: var(--accent); }
.extras { display: grid; gap: 10px; margin-top: 14px; }
.extra { border-top: 1px solid var(--line); padding-top: 12px; }
.extra b { font-weight: 500; font-size: 14.5px; }
.extra p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.subhead { font-family: var(--latin); font-size: 10.5px; letter-spacing: .26em; color: var(--faint); margin: 22px 0 4px; }

.code-reveal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 6px; }
.code-reveal .k { text-align: center; padding: 16px 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); animation: pop .5s var(--ease) both; }
.code-reveal .k:nth-child(2) { animation-delay: .12s; } .code-reveal .k:nth-child(3) { animation-delay: .24s; } .code-reveal .k:nth-child(4) { animation-delay: .36s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.code-reveal .kj { font-family: var(--mincho); font-weight: 700; font-size: 34px; color: var(--accent); text-shadow: 0 0 22px rgba(var(--accent-rgb), .5); line-height: 1.2; }
.code-reveal .ax { font-size: 10.5px; color: var(--faint); letter-spacing: .1em; }
.code-reveal .lbl { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ───── 仕事ベスト10 ───── */
.count { font-family: var(--latin); font-weight: 200; font-size: 30px; line-height: 1; }
.count small { font-size: 14px; color: var(--muted); }
.pickhead { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.pickhead .lb { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { min-height: 44px; font-size: 14px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; }
.chips .chip .rk { font-family: var(--latin); font-size: 12px; color: var(--accent); }
.chip.dis { opacity: .35; }
.more { margin-top: 14px; }
.more summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 6px 0; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; color: var(--accent); }
.more .jobname { font-size: 11px; color: var(--faint); letter-spacing: .14em; margin: 12px 0 6px; }

.trow { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.trow:last-of-type { border-bottom: 1px solid var(--line); }
.trow .top { display: flex; align-items: center; gap: 12px; }
.trow .rk { font-family: var(--latin); font-weight: 200; font-size: 22px; color: var(--accent); width: 30px; flex: none; }
.trow .nm { flex: 1; font-weight: 500; font-size: 15px; line-height: 1.45; min-width: 0; }
.trow .del { border: 0; background: none; color: var(--faint); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; }
.trow .del:hover { color: var(--text); background: var(--surface); }
.trow .ctl { display: flex; align-items: center; gap: 10px; margin: 10px 0 0 42px; flex-wrap: wrap; }
.hours { display: flex; align-items: center; gap: 6px; }
.hours .step { width: 38px; height: 38px; font-size: 19px; }
.hours .v { font-family: var(--latin); font-weight: 200; font-size: 26px; min-width: 64px; text-align: center; line-height: 1; }
.hours .v small { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-left: 2px; }
.hours .w { font-size: 11px; color: var(--muted); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; margin-left: auto; }
.seg button { border: 0; background: none; cursor: pointer; font-size: 12px; padding: 7px 10px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: rgba(var(--accent-rgb), .14); color: var(--accent); }
@media (max-width: 400px) { .seg { margin-left: 0; } .trow .ctl { margin-left: 0; } }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; color: var(--muted); font-size: 13px; }
.total b { font-family: var(--latin); font-weight: 200; font-size: 30px; color: var(--text); }

/* ───── 読み込み ───── */
.loading { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.loading .ring { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); border-top-color: var(--accent); margin: 0 auto 20px; animation: spin 1s linear infinite; box-shadow: 0 0 24px rgba(var(--accent-rgb), .15); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── 結果 ───── */
.rsec { padding: 34px 0 6px; border-top: 1px solid var(--line); }
.rsec:first-of-type { border-top: 0; }
.rsec > .eyebrow { margin-top: 0; }
.rsec > h3 { font-size: 22px; margin: 2px 0 14px; }
.rgrid { display: grid; gap: 0 40px; }
@media (min-width: 880px) { .rgrid { grid-template-columns: 1fr 1fr; } .rgrid .full { grid-column: 1 / -1; } }

.typecard {
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px 22px 24px;
  border: 1px solid rgba(var(--accent-rgb), .45);
  background: radial-gradient(90% 70% at 100% 0%, rgba(var(--accent-rgb), .16), transparent 60%), linear-gradient(180deg, #141417, #0c0c0e);
  box-shadow: 0 30px 80px -40px rgba(var(--accent-rgb), .45);
}
.typecard .lab { font-family: var(--latin); font-size: 10.5px; letter-spacing: .3em; color: var(--accent); }
.typecard .you { font-size: 13px; color: var(--muted); margin-top: 18px; }
.typecard .tname { font-family: var(--mincho); font-weight: 700; font-size: clamp(28px, 9vw, 50px); line-height: 1.3; margin: 2px 0 4px; letter-spacing: .04em; white-space: nowrap; }
.typecard .x { font-family: var(--latin); font-weight: 200; color: var(--accent); margin: 0 .2em; }
.typecard .style { font-family: var(--mincho); font-size: 20px; font-weight: 600; }
.typecard .code { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--mincho); font-size: 18px; letter-spacing: .3em; color: var(--accent); }
.typecard .code i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.typecard .desc { font-size: 14.5px; color: #c9c8c4; margin: 14px 0 0; line-height: 1.9; }
.typecard .sign { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.typecard .sign .avatar { width: 34px; height: 34px; font-size: 14px; }

.axbar { padding: 12px 0; }
.axbar .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--faint); gap: 12px; }
.axbar .row .on { color: var(--text); font-weight: 500; }
.axbar .nm { font-size: 11px; color: var(--faint); letter-spacing: .2em; text-align: center; margin-bottom: 2px; }
.axbar .row .kj { font-family: var(--mincho); font-weight: 700; font-size: 15px; margin: 0 6px; color: inherit; }
.axbar .row .on .kj { color: var(--accent); }
.axbar .track { position: relative; height: 1px; background: var(--line2); margin: 12px 0 4px; }
.axbar .track::after { content: ""; position: absolute; left: 50%; top: -4px; width: 1px; height: 9px; background: var(--line2); }
.axbar .fill { position: absolute; top: -1px; height: 3px; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .6); border-radius: 2px; }
.axbar .knob { position: absolute; top: -6px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .7); }

.stages { display: grid; gap: 0; position: relative; }
.stage { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage .n { font-family: var(--latin); font-weight: 200; font-size: 26px; color: var(--faint); line-height: 1; }
.stage .nm { font-family: var(--mincho); font-weight: 600; font-size: 16px; color: var(--muted); }
.stage .nm small { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--faint); margin-top: 1px; }
.stage .flag { font-size: 11px; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.stage.now .n, .stage.next .n { color: var(--accent); }
.stage.now .nm, .stage.next .nm { color: var(--text); }
.stage.now .flag { background: var(--accent); color: #0b0b0c; font-weight: 700; }
.stage.next .flag { border: 1px solid var(--accent); color: var(--accent); }
.stage.between .n { color: var(--muted); }

.dlg { display: grid; gap: 0; }
.dlg .item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.dlg .item:last-child { border-bottom: 1px solid var(--line); }
.dlg .nm { font-size: 14.5px; font-weight: 500; }
.dlg .lv { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.dlg .lv.high { border-color: var(--accent); color: var(--accent); }
.dlg .lv.mid { border-color: rgba(var(--accent-rgb), .45); color: var(--text); }
.dlg .bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.dlg .bar .tr { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; display: flex; }
.dlg .bar .keep { background: rgba(255,255,255,.35); }
.dlg .bar .cut { background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), .6); }
.dlg .bar .t { font-family: var(--latin); font-weight: 300; white-space: nowrap; }

.advice { list-style: none; padding: 0; margin: 0; counter-reset: a; display: grid; gap: 0; }
.advice li { counter-increment: a; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.8; }
.advice li:last-child { border-bottom: 1px solid var(--line); }
.advice li::before { content: counter(a, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--latin); font-weight: 200; font-size: 22px; color: var(--accent); line-height: 1.2; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.kpi { background: var(--bg2); padding: 16px 16px 14px; }
.kpi.big { grid-column: 1 / -1; padding: 22px 18px 18px; }
.kpi .k { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.kpi .v { font-family: var(--latin); font-weight: 200; font-size: 38px; line-height: 1.1; margin-top: 4px; letter-spacing: 0; }
.kpi.big .v { font-size: 68px; color: var(--accent); text-shadow: 0 0 30px rgba(var(--accent-rgb), .35); }
.kpi .v small { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 4px; letter-spacing: .04em; }
.kpi.big .v small { font-size: 16px; }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .readout { min-height: 22px; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.chart .readout b { font-family: var(--latin); font-weight: 300; color: var(--text); font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.days { display: grid; grid-template-columns: 34px 1fr 1.35fr; gap: 0 10px; }
.days .colhead { font-size: 12px; color: var(--muted); padding-bottom: 8px; display: flex; justify-content: space-between; gap: 6px; }
.days .colhead b { font-family: var(--mincho); font-size: 15px; color: var(--text); }
.days .colhead .end { font-family: var(--latin); font-weight: 300; font-size: 12px; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
.lanes .lh { font-family: var(--latin); font-size: 9.5px; letter-spacing: .2em; color: var(--faint); margin-bottom: 4px; }
.lanes .lh.sec { color: var(--accent); }
.tcol { position: relative; }
.ticks-col { position: relative; }
.ticks-col span { position: absolute; right: 0; transform: translateY(-50%); font-family: var(--latin); font-weight: 300; font-size: 10px; color: var(--faint); }
.gridl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.blk { position: absolute; left: 0; right: 0; border-radius: 5px; padding: 3px 6px; overflow: hidden; font-size: 10.5px; line-height: 1.3; border: 1px solid var(--line2); background: rgba(255,255,255,.05); }
.blk .bt { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk .bt.wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.blk .bm { font-family: var(--latin); font-weight: 300; font-size: 10px; color: var(--muted); }
.blk.other { background: transparent; border-style: dashed; color: var(--muted); }
.blk.lunch { background: transparent; border-color: transparent; color: var(--faint); text-align: center; }
.blk.free { background: rgba(var(--accent-rgb), .2); border-color: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .18); }
.blk.free .bm { color: var(--text); }
.blk.sec { background: repeating-linear-gradient(135deg, rgba(var(--accent-rgb), .12) 0 6px, rgba(var(--accent-rgb), .03) 6px 12px); border-color: rgba(var(--accent-rgb), .55); }
.blk.over { background: rgba(138, 111, 105, .22); border-color: var(--minus); }
.overline { position: absolute; left: -4px; right: -4px; height: 0; border-top: 1px dashed var(--minus); }
.overline span { position: absolute; right: 0; top: -15px; font-size: 9.5px; color: var(--minus); }
.scene { margin: 18px 0 0; padding: 16px 18px; border-left: 1px solid var(--accent); background: linear-gradient(90deg, rgba(var(--accent-rgb), .06), transparent); font-family: var(--mincho); font-size: 16px; line-height: 1.9; }
.scene .lab { display: block; font-family: var(--latin); font-size: 10px; letter-spacing: .26em; color: var(--accent); margin-bottom: 4px; }

.next-card { border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 22px; padding: 26px 20px; text-align: center; background: radial-gradient(80% 90% at 50% 0%, rgba(var(--accent-rgb), .12), transparent 70%), var(--bg2); }
.next-card h3 { font-size: 22px; line-height: 1.6; margin: 14px 0 6px; }
.next-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.next-card .avatar { margin: 0 auto; }

.foot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 30px 0 10px; }

/* ───── 画像の保存 ───── */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .82); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: enter .25s var(--ease); }
.modal[hidden] { display: none; }
.modal .box { width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.modal .box img { width: 100%; border-radius: 10px; border: 1px solid var(--line); -webkit-touch-callout: default; }
.modal .box p { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0; }
.modal .actions { margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--surface2); border: 1px solid var(--line2); border-radius: 999px; padding: 10px 18px; font-size: 13px; animation: enter .25s var(--ease); max-width: calc(100% - 32px); }

/* ───── 第2部：つなぐ順番と未来 ───── */
.p2-sub { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.p2-ask { font-size: 14px; color: var(--text); margin: 22px 0 10px; }
.opt .rec { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #0b0b0c; vertical-align: 2px; }
.p2-order { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.p2-order li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.p2-order li:last-child { border-bottom: 1px solid var(--line); }
.p2-order .n { font-family: var(--latin); font-weight: 300; font-size: 13px; color: var(--accent); letter-spacing: .06em; }
.p2-order li.fixed .n { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.p2-order b { display: block; font-weight: 500; font-size: 15px; }
.p2-order small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.p2-order .mv { display: flex; gap: 6px; }
.p2-order .mv button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-size: 16px; cursor: pointer; }
.p2-order .mv button[disabled] { opacity: .25; cursor: default; }
.p2-time { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; }
.p2-time .n { font-family: var(--latin); font-weight: 200; font-size: 72px; line-height: 1; color: var(--accent); text-shadow: 0 0 30px rgba(var(--accent-rgb), .35); }
.p2-time .u { font-family: var(--mincho); font-size: 22px; font-weight: 600; }
.p2 .rsec { padding-top: 24px; }
.opt .sub.why { color: var(--faint); font-size: 11.5px; }
.p2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p2-chips span { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); }
.p2-chips span i { font-style: normal; font-family: var(--latin); font-weight: 300; font-size: 11px; color: var(--muted); }
.p2-chips span.new { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .12); }

/* ───── 導入効果の見せ方（1年のグラフ・数え上がる数字・1日の帯） ───── */
.chart.effect .ax { font-family: var(--latin); font-weight: 300; font-size: 11px; fill: #6f6e74; }
.chart.effect .ax.cum { fill: rgba(var(--accent-rgb), .7); }
.chart.effect .ax.cur { fill: var(--accent); font-weight: 500; }
.chart.effect .bar { animation: grow .7s var(--d, 0s) var(--ease) both; }
.chart.effect .bar.later { opacity: .22; }
.chart.effect .bar.now { filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .75)); }
.chart.effect .bar.sel { filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .8)); }
.chart.effect .cumline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.chart.effect .cumline.lit { stroke: var(--text); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .35s var(--ease) forwards; }
.chart.effect .cumline.later { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 3 4; }
.chart.effect .here { fill: var(--accent); stroke: var(--bg); stroke-width: 2; filter: drop-shadow(0 0 8px var(--accent)); }
.chart.effect .legend i.ln { background: none; border-top: 1.6px solid var(--text); height: 0; border-radius: 0; vertical-align: 3px; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kpis.finale .kpi.big .v { font-size: 84px; }
.kpis.finale .days-of { margin-top: 6px; font-family: var(--mincho); font-size: 17px; font-weight: 600; color: var(--text); }
.daybars { margin: 22px 0 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.daybars .per { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.daybars .per .k { font-size: 12px; color: var(--muted); }
.daybars .per .v { font-family: var(--latin); font-weight: 200; font-size: 40px; line-height: 1; color: var(--accent); }
.daybars .per .v small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 4px; }
.daybars .row { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.5px; }
.daybars .lb { color: var(--muted); }
.daybars .track { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.daybars .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; transition: width .9s var(--ease); }
.daybars .fill.now { background: rgba(255, 255, 255, .28); }
.daybars .fill.at { background: rgba(255, 255, 255, .5); }
.daybars .gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(var(--accent-rgb), .55) 0 3px, transparent 3px 6px); border-left: 1px solid var(--accent); }
.daybars .t { font-family: var(--latin); font-weight: 300; font-size: 13px; white-space: nowrap; }
.daybars .note { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .chart.effect .bar, .chart.effect .cumline.lit { animation: none; stroke-dashoffset: 0; }
  .daybars .fill { transition: none; }
}

/* ───── あなたのまとめ ───── */
.sum-date { font-family: var(--mincho); font-size: 15px; color: var(--accent); margin: -10px 0 6px; }
.sum-shared { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; margin: 6px 0 12px; }
.sum-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 18px; }
.sum-tabs button {
  min-height: 52px; padding: 8px 2px; border-radius: 12px; cursor: pointer; text-align: center;
  background: var(--bg2); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 12px; line-height: 1.35; text-wrap: balance;
}
.sum-tabs button span { display: block; font-family: var(--latin); font-size: 15px; color: var(--faint); }
.sum-tabs button.on { border-color: var(--accent); color: var(--text); box-shadow: 0 0 18px rgba(var(--accent-rgb), .14); }
.sum-tabs button.on span { color: var(--accent); }
.sum-group + .sum-group { margin-top: 16px; }
.sum-dl { margin: 6px 0 0; display: grid; gap: 0; }
.sum-dl > div { display: grid; grid-template-columns: minmax(7.5em, 34%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sum-dl dt { color: var(--muted); font-size: 13px; }
.sum-dl dd { margin: 0; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.sum-teacher { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.sum-teacher b { font-family: var(--mincho); font-size: 22px; display: block; }
.sum-teacher small { color: var(--muted); font-size: 13px; }
.sum-tasks { margin: 6px 0 0; padding-left: 1.6em; }
.sum-tasks li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sum-tasks .nm { display: block; }
.sum-tasks .mt { display: block; font-size: 12px; color: var(--muted); }
.sum-big { font-family: var(--mincho); font-size: 26px; font-weight: 600; margin: 6px 0 0; line-height: 1.4; }
.sum-big .x { color: var(--accent); margin: 0 .3em; }
.sum-mid { font-family: var(--mincho); font-size: 19px; font-weight: 600; margin: 10px 0 4px; }
.sum-lv { margin-left: .6em; font-size: 12px; color: var(--accent); }
.sum-month + .sum-month, .sum-point + .sum-point { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-m { font-family: var(--mincho); font-size: 18px; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.sum-nav { justify-content: space-between; }
.sum-hist { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sum-hist .eyebrow { width: 100%; margin: 0; }
.sum-contact { grid-column: 1 / -1; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sum-contact p { margin: 0 0 4px; }
.sum-contact .who { color: var(--text); }
.sum-contact .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sum-contact a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.share-box h3 { margin: 4px 0 0; }
.share-url { width: 100%; box-sizing: border-box; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); font: 12px/1.5 var(--latin); resize: none; word-break: break-all; }
.share-box p { text-align: left; }
.summary .p2-order li { grid-template-columns: 4.8em 1fr; }
.summary .p2-order .n { font-size: 12px; }
.back[hidden] { display: none; }
.modal .box p.share-err { color: var(--text); }
.p2-name { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.p2-name span { display: block; margin-bottom: 6px; }
.p2-name input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px; }
.p2-name input:focus { outline: none; border-color: rgba(var(--accent-rgb), .8); }
.p2-name input::placeholder { color: var(--faint); }

/* ───── 使っているAI ───── */
.ai-rows { display: grid; gap: 8px; }
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; }
.ai-row .nm { flex: 1 1 9em; min-width: 0; font-size: 15px; font-weight: 500; }
.ai-row .lv { display: flex; flex-wrap: wrap; gap: 6px; }

/* ───── 幅の広い画面：選択肢の多い画面を横に広げ、見渡せるようにする（スマホの幅は変えない） ───── */
@media (min-width: 1000px) {
  #app.pick { max-width: 1180px; padding-bottom: 24px; }
  #app.pick .screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 28px; align-items: start; }
  #app.pick .screen > * { grid-column: 1 / -1; min-width: 0; }
  #app.pick .screen > .eyebrow { grid-column: 1; grid-row: 1; }
  #app.pick .screen > h2.q { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  #app.pick .screen > .guide, #app.pick .screen > .gslot { grid-column: 2; grid-row: 1 / span 2; }
  #app.pick .guide { margin: 0 0 12px; }
  #app.pick .options.cols2 { display: block; columns: 4; column-gap: 10px; }
  #app.pick .options.cols2 .opt { width: 100%; min-height: 46px; padding: 8px 12px; margin-bottom: 8px; break-inside: avoid; }
  #app.pick .opt-group { margin: 0 0 6px; padding-top: 2px; break-after: avoid; }
  #app.pick .ai-rows { display: block; columns: 2; column-gap: 10px; }
  #app.pick .ai-row { padding: 6px 12px; margin-bottom: 6px; break-inside: avoid; flex-wrap: nowrap; }
  #app.pick .actions.sticky { padding: 10px 0 12px; margin-top: 8px; justify-items: end; }
  #app.pick .actions.sticky .btn { width: auto; min-width: 260px; }
  #app.pick .p2-name { margin: 6px 0; display: flex; align-items: center; gap: 14px; }
  #app.pick .p2-name span { margin: 0; flex: none; }
  #app.pick .tfilters { grid-auto-flow: column; justify-content: start; gap: 8px 24px; margin: 0 0 6px; }
  #app.pick .tcount { margin: 0 0 6px; }
  #app.pick .teachers { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
}

/* ───── 表紙のスタート ───── */
.options.start .opt { gap: 12px; }
.options.start .opt:first-child { border-color: rgba(var(--accent-rgb), .7); }
.options.start .arrow { margin-left: auto; flex: none; font-family: var(--latin); font-weight: 300; color: var(--muted); }
