:root {
  --cream: #FBF3E6;
  --paper: #FFFDF9;
  --navy: #1F4A8C;
  --navy-d: #15305E;
  --sky: #1F4A8C;
  --sky-p: #E9EEF6;
  --orange: #A84A12;
  --orange-p: #FCEBDD;
  --ink: #2B2420;
  --sub: #6E6258;
  --mute: #6E6258;
  --line: #EADCC8;
  --line2: #F3EADC;
  --ok: #1F6B41;
  --ok-p: #E3F3EA;
  --calc: #1F6E6E;
  --tri: #8A5A00;
  --tri-p: #FBF0D9;
  --ng: #B23A31;
  --ng-p: #FBE5E2;
  --r: 16px;
  --shadow: 0 1px 0 rgba(43, 36, 32, .04), 0 6px 20px rgba(91, 64, 33, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
img { display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px calc(120px + var(--safe-b)); }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 20; background: rgba(251, 243, 230, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1080px; margin: 0 auto; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.brand small { display: block; font-size: 11px; color: var(--sub); font-weight: 700; line-height: 1.1; }
.brand b { display: block; font-size: 16px; line-height: 1.2; white-space: nowrap; }
.pill { font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px; border: 1px solid currentColor; }
.pill.beta { color: var(--orange); }
.pill.ver { color: var(--navy); background: var(--sky-p); border-color: transparent; }
.hd .sp { flex: 1; }
.back { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; color: var(--navy); padding: 8px 4px; min-width: 44px; min-height: 44px; }

/* 共通の部品 */
.card { background: #fff; border-radius: 14px; padding: 18px; }
.card + .card, .card + .sec, .sec + .card, .sec + .sec { margin-top: 8px; }
/* 近いものは8px、話の切れ目は32px */
.sec-t { font-size: 13px; font-weight: 800; color: var(--sub); margin: 32px 2px 8px; letter-spacing: .06em; }
.gap, .gap8 { margin-top: 8px; }
.btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 14px; font-weight: 800; font-size: 17px; transition: transform .08s, background .2s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 4px 0 var(--navy-d); }
.btn.primary:active { box-shadow: 0 2px 0 var(--navy-d); transform: translateY(2px); }
.btn.primary[disabled] { background: #9DAFCB; box-shadow: 0 4px 0 #8597B3; cursor: default; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-size: 15px; min-height: 48px; }
.btn.text-warn { background: none; color: var(--ng); font-size: 14px; min-height: 44px; margin-top: 8px; }
.btn.warn { background: #fff; border: 1.5px solid var(--ng); color: var(--ng); font-size: 15px; min-height: 48px; }
.btn + .btn { margin-top: 10px; }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 32px; }
.row-btns .btn { margin: 0; }
.row-btns.one { grid-template-columns: 1fr; }
/* 計画の控え（今日のカードのすぐ下。PDF と文字のコピーを1タップで） */
.keep { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.keep span { flex: none; font-size: 12px; font-weight: 800; color: var(--sub); }
.keep .btn { margin: 0; flex: 1 1 auto; min-height: 44px; padding: 8px 10px; font-size: 13px; }
/* 「計画表をPDFにする」が375px（iPhone SE）で「る」だけ次の行に落ちていた。字を折らず、幅は字の長さで分ける（340px より狭い時だけ折る） */
.keep .btn { white-space: nowrap; }
@media (max-width: 340px) { .keep .btn { white-space: normal; } }
/* ホーム画面への追加の案内（入口に1か所だけ） */
.home-add { font-size: 12px; color: var(--mute); line-height: 1.6; }
.home-add summary { min-height: 44px; margin-top: 4px; color: var(--navy); font-weight: 700; white-space: nowrap; display: flex; align-items: center; cursor: pointer; list-style: none; text-decoration: underline; }
.home-add[open] { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px 12px; margin-top: 8px; font-size: 13px; color: var(--sub); }
.home-add[open] summary { margin-top: 0; font-weight: 700; color: var(--ink); text-decoration: none; }
.home-add p { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.home-add summary::-webkit-details-marker { display: none; }
.home-add summary::after { content: '＋'; margin-left: 6px; color: var(--navy); font-weight: 700; }
.home-add[open] summary::after { content: '閉じる'; margin-left: auto; color: var(--navy); text-decoration: underline; }
.home-add ul { margin: 0; padding: 0 0 0 18px; line-height: 1.6; }
.home-add li + li { margin-top: 4px; }
.home-add p.home-add-note { margin: 8px 0 0; font-weight: 400; color: var(--sub); }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.k-重点 { background: var(--sky-p); color: var(--navy); }
.k-復習 { background: #EFEDEA; color: #5E5650; }
.k-解き直し { background: var(--orange-p); color: var(--orange); }
.r-o { background: var(--ok-p); color: var(--ok); }
.r-m { background: #E1F2F2; color: var(--calc); }
.r-t { background: var(--tri-p); color: var(--tri); }
.r-x { background: var(--ng-p); color: var(--ng); }

/* 入口（左に文字とボタン、右とその下に作った後の本物の画面） */
.wrap.top { padding-bottom: 40px; }
.hero2 { padding: 28px 0 0; }
.hero2 h1 { font-size: 34px; line-height: 1.28; letter-spacing: -.01em; font-weight: 900; }
.hero2 h1 em { font-style: normal; color: var(--navy); }
.hero2 .lead { margin-top: 12px; color: var(--sub); font-size: 15px; }
.cta { margin-top: 18px; }
.fine2 { margin-top: 10px; font-size: 12px; color: var(--mute); line-height: 1.6; }
.look { margin-top: 36px; }
.look-t { font-size: 13px; font-weight: 800; color: var(--sub); letter-spacing: .06em; margin-bottom: 12px; }
.phone { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(91, 64, 33, .16); border: 1px solid var(--line); }
.phone img { width: 100%; height: auto; display: block; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.three.n2 { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
.three figure { margin: 0; }
.three .phone { border-radius: 14px; box-shadow: 0 6px 18px rgba(91, 64, 33, .12); }
.three figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--sub); font-weight: 700; }
.three figcaption b { display: block; color: var(--ink); font-size: 13px; }
@media (min-width: 900px) {
  .wrap.top { max-width: 1040px; }
  .top2 { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; padding: 48px 0 8px; }
  .hero2 h1 { font-size: 46px; }
  .hero2 .lead { font-size: 17px; margin-top: 16px; }
  .top2 .cta .btn { width: auto; min-width: 280px; display: inline-flex; }
  .top2 .cta .btn + .btn { margin-left: 10px; margin-top: 0; }
  .cta { margin-top: 26px; }
  .side .phone { border-radius: 26px; }
  .three { gap: 20px; max-width: 740px; }
  .three figcaption { font-size: 13px; }
}
@media (max-width: 899px) {
  .side { display: none; }
  .three, .three.n2 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
  .three figure { flex: 0 0 64%; scroll-snap-align: start; }
  /* 1画面に収めるため、見本は上の方だけを見せる（大事な所は上にある） */
  .three .phone img { aspect-ratio: 390 / 560; object-fit: cover; object-position: top; }
  .three figcaption { font-size: 13px; }
  .look { margin-top: 20px; }
  .hero2 { padding-top: 20px; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 質問 */
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 18px 0 6px; }
.progress i { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .35s ease; }
.step-no { font-size: 13px; color: var(--sub); font-weight: 700; }
.q-title { font-size: 22px; line-height: 1.4; margin: 6px 0 4px; }
.q-note { color: var(--sub); font-size: 14px; margin-bottom: 14px; }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 56px; display: flex; align-items: center; gap: 12px; transition: border-color .15s, background .15s; }
.opt b { font-size: 17px; }
.opt .meta { margin-left: auto; font-size: 12px; color: var(--sub); text-align: right; }
.opt.sel { border-color: var(--navy); background: var(--sky-p); box-shadow: inset 0 0 0 1px var(--navy); }
.opt .rank { font-size: 11px; font-weight: 900; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.rank-S { background: var(--orange); color: #fff; }
.rank-A { background: var(--sky-p); color: var(--navy); }
.rank-B { background: var(--line2); color: var(--sub); }
.opt.big { flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px; }
.opt.big .ic { font-size: 28px; }
.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 17px; min-height: 52px; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 74, 140, .15); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.6; }
.num { display: flex; align-items: center; gap: 8px; }
.num .input { text-align: center; font-weight: 800; font-size: 22px; }
.num button { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); font-size: 22px; font-weight: 800; color: var(--navy); }
.days { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; }
.day-row b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-size: 15px; }
.day-row.we b { color: var(--orange); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.quick button { font-size: 13px; font-weight: 700; background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 14px; min-height: 44px; color: var(--navy); }
.week-sum { margin-top: 12px; font-size: 14px; color: var(--sub); }
.week-sum b { color: var(--navy); font-size: 18px; }
.err { color: var(--ng); font-size: 14px; font-weight: 700; margin-top: 10px; }
.foot-err { max-width: 720px; margin: 0 auto 8px; background: var(--ng-p); border-radius: 10px; padding: 8px 12px; }
.opt-t { font-size: 13px; font-weight: 800; color: #A8520F; margin: 4px 2px 8px; }
.more { display: flex; width: 100%; align-items: center; justify-content: space-between; margin: 12px 0 10px; padding: 12px 16px; border-radius: 14px; border: 1.5px dashed var(--line); background: transparent; font-weight: 800; font-size: 15px; color: var(--navy); }
.more::after { content: "＋"; font-weight: 900; }
.more.open::after { content: "−"; }
/* 下の帯は塗りつぶす（透けると、下をくぐる見出しが帯に重なって見える） */
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--cream); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + var(--safe-b)); }
.foot-in { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.foot-in .btn.ghost { width: 96px; flex: none; min-height: 54px; }

/* 計画を作っている間 */
.making { min-height: calc(100vh - 56px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 120px; text-align: center; }
.making .face { width: 132px; height: 132px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 6px var(--sky-p), 0 18px 30px rgba(31, 74, 140, .2); animation: think 1.6s ease-in-out infinite; }
.making .bubble { margin-top: 18px; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 16px; font-weight: 800; position: relative; }
.making .bubble::before { content: ""; position: absolute; top: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--navy); }
.dots i { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
.steps-log { list-style: none; margin-top: 22px; width: 100%; max-width: 440px; text-align: left; display: grid; gap: 8px; }
.steps-log li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 40px; font-size: 14px; position: relative; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.steps-log li.show { opacity: 1; transform: none; }
.steps-log li::before { content: ""; position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.steps-log li.done::before { border-color: var(--navy); background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps-log li.ai { border-color: #D3DDEC; background: var(--sky-p); }
.steps-log li.ai::before { border-color: var(--sky); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps-log li.ai.done::before { animation: none; border-color: var(--navy); }
.steps-log small { display: block; color: var(--sub); font-size: 12px; }
@keyframes think { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-6px) rotate(-3deg); } 60% { transform: translateY(0) rotate(3deg); } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 今日の計画 */
.plan-grid { display: block; }
/* 影を残すのは「今日の計画」の1枚だけ */
.today { background: var(--navy); color: #fff; padding: 20px; margin-top: 16px; box-shadow: 0 10px 24px rgba(21, 48, 94, .22); }
.today .fixed { margin-top: 8px; font-size: 13px; color: #FFD9BD; }
.today .fixed button { min-height: 44px; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.today .eyebrow { font-size: 13px; font-weight: 700; color: #CFE0F7; }
.today h2 { font-size: 26px; line-height: 1.35; margin-top: 4px; }
.today .sub { font-size: 14px; color: #E2ECFA; margin-top: 2px; }
.today .think { margin-top: 12px; background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.today .btn.primary { background: #fff; color: var(--navy); box-shadow: 0 4px 0 #B8CBE6; margin-top: 14px; }
.change { background: var(--orange-p); margin-top: 16px; animation: pop .5s ease; }
.change h3 { font-size: 15px; color: var(--orange); }
.change p { font-size: 14px; margin-top: 4px; }
@keyframes pop { 0% { transform: scale(.96); opacity: 0; } 60% { transform: scale(1.01); opacity: 1; } 100% { transform: none; } }
.tasks { list-style: none; display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 14px; width: 100%; text-align: left; transition: box-shadow .15s; }
.task:hover { box-shadow: 0 0 0 1.5px #D9E2EF; }
.task .lbl.mine { font-size: 16px; }
.task .lbl { font-size: 18px; font-weight: 800; min-width: 64px; }
.task .why { font-size: 13px; color: var(--sub); line-height: 1.45; }
/* 印は薄く塗ったボタン（押せると見て分かるように） */
.task .res { margin-left: auto; flex: none; min-width: 48px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--sky-p); color: var(--navy); padding: 0 8px; }
.task.new { animation: slidein .5s ease both; }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.note { background: none; padding: 0; }
.note .say { background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 15px; }
.note .src { font-size: 11px; color: var(--sub); margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding-top: 18px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.bar .col { width: 100%; max-width: 34px; background: #D9E2EF; border-radius: 6px 6px 3px 3px; position: relative; transition: height .9s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.bar .col i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--navy); transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.bar.now .col { background: #C3D0E4; box-shadow: 0 0 0 2px var(--orange); }
.bar .v { position: absolute; top: -18px; font-size: 11px; font-weight: 800; color: var(--sub); }
.bar .w { font-size: 11px; color: var(--sub); margin-top: 4px; font-weight: 700; }
.bar.up .v { color: var(--orange); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--sub); margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.stat { background: #fff; border-radius: 14px; padding: 12px 8px; text-align: center; }
.stat small { display: block; font-size: 12px; color: var(--sub); font-weight: 700; }
.stat b { font-size: 22px; color: var(--navy); }
.stat b span { font-size: 13px; margin-left: 2px; }
.ahead { display: grid; gap: 6px; }
.ahead { gap: 0; padding: 8px 18px; }
.ahead-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14px; padding: 8px 0; }
.ahead-row + .ahead-row { border-top: 1px solid var(--line2); }
.ahead-row b { font-weight: 700; color: var(--sub); }
.warnbox { background: var(--orange-p); }
.warnbox h3 { color: #9A4A14; font-size: 15px; }
.words { font-size: 15px; padding: 0; }
details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--navy); }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "＋"; color: var(--navy); }
details[open] > summary::after { content: "−"; }
.words summary { min-height: 48px; padding: 14px 18px; font-size: 14px; color: var(--sub); }
.later summary { min-height: 44px; font-size: 14px; padding: 10px 0 2px; border-top: 1px solid var(--line2); margin-top: 8px; }
.wk-num { display: flex; align-items: baseline; gap: 6px; }
.wk-num b { font-size: 28px; color: var(--navy); line-height: 1; }
.wk-num span { font-size: 14px; color: var(--sub); font-weight: 700; }
.track { height: 8px; border-radius: 99px; background: var(--sky-p); margin-top: 10px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.words-in { padding: 0 18px 16px; }
.words .src { font-size: 11px; color: var(--sub); margin-top: 6px; }
.stats.n1 { grid-template-columns: 1fr; }
.stats.n2 { grid-template-columns: 1fr 1fr; }
.rest { text-align: center; }

@media (min-width: 960px) {
  .wrap.wide { max-width: 1080px; }
  .plan-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  /* 右の列は貼り付けない（窓より背が高いと、下の端が下の帯の下から出てこない） */
  .plan-grid .col-r > .sec-t:first-child { margin-top: 16px; }
}

/* 進み具合（今週と12週の切り替え） */
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 32px 2px 8px; }
.sec-hd .sec-t { margin: 0 0 10px; }
.seg { display: flex; background: #EFE6D8; border-radius: 99px; padding: 3px; }
.seg button { min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 800; color: var(--sub); }
.seg button.sel { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(91, 64, 33, .15); }
/* 一覧の下の「報告して、明日の計画を直す」 */
.send { margin-top: 12px; }
.send p { font-size: 14px; font-weight: 700; color: var(--sub); margin: 0 2px 8px; }

/* 報告・1問 */
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; text-align: left; min-height: 84px; }
.res-btn b { font-size: 24px; font-weight: 900; display: block; line-height: 1.2; }
.res-btn span { font-size: 12px; color: var(--sub); line-height: 1.4; display: block; margin-top: 2px; }
.res-grid.short { grid-template-columns: repeat(4, 1fr); }
.res-grid.short .res-btn { min-height: 56px; text-align: center; padding: 8px 4px; }
.res-grid.short .res-btn b { font-size: 22px; }
.sheet-hd .x.q { margin-left: auto; font-weight: 900; color: var(--navy); }
.sheet-hd .x.q + .x { margin-left: 0; }
.res-btn.sel.r-o, .res-btn.sel.r-m, .res-btn.sel.r-t, .res-btn.sel.r-x { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.res-btn:not(.sel) { background: #fff !important; color: var(--ink) !important; }
.cause-list { display: grid; gap: 8px; }
.cause { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 15px; }
.cause b { width: 28px; height: 28px; border-radius: 8px; background: var(--line2); display: grid; place-items: center; flex: none; }
.cause.sel { border-color: var(--navy); background: var(--sky-p); }
.cause.sel b { background: var(--navy); color: #fff; }
.mins { display: flex; flex-wrap: wrap; gap: 8px; }
.mins button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; min-height: 44px; min-width: 64px; font-weight: 700; }
.mins button.sel { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 下から出るパネル */
.sheet-bg { position: fixed; inset: 0; background: rgba(30, 22, 14, .45); z-index: 50; animation: fade .2s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--cream); border-radius: 22px 22px 0 0; max-height: 92vh; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 30px rgba(0, 0, 0, .15); }
.sheet-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-in { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px calc(18px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.sheet-hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px 8px; }
.sheet-hd h3 { font-size: 18px; }
.sheet-hd .x { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 20px; color: var(--sub); }
.grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 8px auto 0; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 600px; transform: translate(-50%, -50%); border-radius: 22px; animation: fade .2s ease; max-height: 86vh; }
  .grab { display: none; }
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 気になった所（ヘッダーの右）・AIコーチの入口 */
.fb-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 12px 6px 9px; font-size: 13px; font-weight: 800; color: var(--sub); white-space: nowrap; }
.fb-btn svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 430px) {
  .hd-in { gap: 8px; padding: 0 12px; }
  .hd .pill.ver { display: none; }
  .back { font-size: 26px; padding: 0 0 4px; margin-left: -8px; }
  .back span { display: none; }
  .brand img { width: 32px; height: 32px; }
  .brand b { font-size: 15px; }
  .fb-btn { padding: 6px 10px 6px 8px; font-size: 12px; }
}
@media (max-width: 360px) { .fb-btn span { display: none; } }
.fab-fb { position: fixed; z-index: 30; left: 12px; bottom: calc(86px + var(--safe-b)); background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px 8px 10px; font-size: 13px; font-weight: 800; color: var(--sub); box-shadow: var(--shadow); display: flex; align-items: center; gap: 6px; }
.fab-fb svg { width: 18px; height: 18px; }
/* 広い画面の浮いた入口。顔は上の帯にあるので、印と文字だけ（文字に何も重ねない） */
.fab-coach { position: fixed; z-index: 30; right: 24px; bottom: calc(24px + var(--safe-b)); display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; border-radius: 99px; padding: 12px 20px 12px 16px; font-size: 15px; font-weight: 800; box-shadow: 0 8px 20px rgba(21, 48, 94, .28); }
.fab-coach svg { width: 20px; height: 20px; flex: none; }
/* 狭い画面のコーチは下の帯に入れる（浮いた顔が問題の行の印に重なるため） */
.coach-bar { background: #fff; border: 1.5px solid var(--line); color: var(--navy); min-height: 50px; font-size: 16px; }
.coach-bar svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
@media (max-width: 1251px) { .fab-coach { display: none; } }
@media (min-width: 1252px) { .in-foot, .coach-foot { display: none !important; } }
body.no-foot .fab-fb { bottom: calc(16px + var(--safe-b)); }
body.no-foot .fab-coach { bottom: calc(16px + var(--safe-b)); }

/* AIコーチ */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 4px; }
.msg { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: 15px; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 14px 4px 14px 14px; }
.msg.ai { align-self: flex-start; background: #fff; border-radius: 4px 14px 14px 14px; }
.msg.ai.wait { color: var(--sub); }
.msg-row { display: flex; gap: 8px; align-items: flex-start; }
.msg-row img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.starters button { background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 12px; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--navy); }
.chat-in { display: flex; gap: 8px; padding: 10px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--cream); }
.chat-in textarea { flex: 1; min-height: 48px; max-height: 120px; resize: none; font-size: 16px; }
.chat-in .btn { width: 76px; flex: none; min-height: 48px; font-size: 15px; }

#toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); width: max-content; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast .toast-sub { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; opacity: .9; }
.wk-when { font-size: 12px; color: var(--sub); margin-bottom: 2px; }
.keep-note { margin: 6px 2px 0; font-size: 12px; color: var(--sub); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 計画を調整する */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-col .field { margin-top: 0; }
.days.two-col .day-row { grid-template-columns: 36px 1fr; gap: 8px; }
.days.two-col .day-row b { width: 36px; height: 36px; font-size: 14px; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; min-height: 44px; font-size: 14px; font-weight: 700; }
.chipbtn.sel { background: var(--navy); border-color: var(--navy); color: #fff; }
.chipbtn.more-chip { background: none; border-style: dashed; color: var(--navy); }
.adj-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 10px 10px 16px; font-weight: 700; font-size: 15px; }
.small-num { gap: 6px; flex: none; }
.small-num button { width: 44px; height: 44px; font-size: 20px; }
.small-num output { min-width: 52px; text-align: center; font-weight: 800; font-size: 17px; color: var(--navy); }
.hint { font-size: 13px; color: #9A4A14; margin: 8px 2px 0; }
.linkbtn { color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; margin: 2px 2px 0; min-height: 44px; }

/* 計画表（PDF）。画面では紙を縮めて見せ、印刷ではA4の4ページにする */
.wrap.print-wrap { max-width: 860px; }
.print-bar { margin: 18px 0 16px; }
.print-bar .btn { margin-top: 4px; }
.pdf-btn { grid-column: 1 / -1; }
.paper { width: 794px; }
.pg { position: relative; width: 794px; min-height: 1123px; background: #fff; padding: 56px 60px 64px; margin-bottom: 16px; color: #222; font-size: 13px; line-height: 1.6; box-shadow: 0 2px 10px rgba(91, 64, 33, .12); }
.pg-brand { font-size: 12px; font-weight: 800; color: var(--orange); letter-spacing: .08em; }
.pg-h1 { font-size: 32px; font-weight: 900; margin-top: 6px; line-height: 1.3; }
.pg-meta { font-size: 12px; color: #666; margin-top: 2px; }
.pg-name { display: flex; align-items: flex-end; gap: 12px; margin-top: 22px; font-weight: 800; }
.pg-name i { flex: 1; max-width: 320px; border-bottom: 1.5px solid #333; height: 26px; }
.pg-h2 { font-size: 16px; font-weight: 900; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--navy); line-height: 1.3; }
.pg-h2.first { margin-top: 0; }
.pg-kv { width: 100%; border-collapse: collapse; }
.pg-kv th, .pg-kv td { border-bottom: 1px solid #DDD; padding: 8px 6px; text-align: left; vertical-align: top; }
.pg-kv th { width: 150px; color: #555; font-weight: 700; }
.pg-kv td { font-weight: 700; }
.pg-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pg-grid th, .pg-grid td { border: 1px solid #CCC; padding: 5px 6px; text-align: center; }
.pg-grid th { background: #F1F4F9; font-weight: 800; color: #333; }
.pg-grid th.we { color: var(--orange); }
.pg-grid.plan12 td:nth-child(3) { text-align: left; }
.pg-grid.plan12 th:nth-child(1) { width: 52px; }
.pg-grid.plan12 th:nth-child(2) { width: 160px; }
.pg-grid.plan12 td:nth-child(2) { white-space: nowrap; }
.pg-grid.plan12 th:nth-child(4), .pg-grid.plan12 th:nth-child(5), .pg-grid.plan12 th:nth-child(6) { width: 76px; }
.pg-grid.plan12 tr.now td { background: #FCEBDD; font-weight: 800; }
.pg-grid.plan12 small { display: block; font-size: 10px; color: var(--orange); font-weight: 800; line-height: 1.2; }
.pg-grid.sheet7 td, .pg-grid.sheet7 th { height: var(--rh, 8mm); padding: 2px 6px; }
.pg-grid.sheet7 th:nth-child(1) { width: 92px; }
.pg-grid.sheet7 th:nth-child(2) { width: 150px; }
.pg-grid.sheet7 th:nth-child(4) { width: 70px; }
.pg-grid.sheet7 th:nth-child(5) { width: 80px; }
.pg-grid.sheet7 td.q { text-align: left; }
.pg-grid.sheet7 td.mk { text-align: center; }
.pg-grid.sheet7 td small { margin-left: 6px; font-size: 10px; color: #777; }
.pg-grid.sheet7 td.d { font-weight: 800; background: #FAFAFA; }
.pg-grid.sheet7 tr.off td { color: #999; }
.pg-grid.sheet7 .mk { white-space: nowrap; }
.pg-grid.sheet7 .mk span { display: inline-block; min-width: 30px; margin: 0 3px; color: #555; }
.pg-grid.sheet7 .mk span.on { border: 1.5px solid #222; border-radius: 99px; color: #222; font-weight: 800; }
.pg-grid.sheet7 td.mn { text-align: right; }
.pg-grid.sheet7 td.mn small { margin-left: 2px; }
.pg-grid.causes th { width: 36px; }
.pg-grid.causes td { text-align: left; }
.pg-grid.causes td:nth-child(3) { color: var(--navy); font-weight: 700; }
.pg-tips { list-style: none; counter-reset: tip; display: grid; gap: 6px; }
.pg-tips li { counter-increment: tip; display: grid; grid-template-columns: 26px 1fr auto; column-gap: 8px; align-items: baseline; border-bottom: 1px solid #EEE; padding: 4px 0 6px; }
.pg-tips li::before { content: counter(tip); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pg-tips b { font-size: 14px; }
.pg-tips span { grid-column: 2; color: #444; }
.pg-tips small { grid-column: 3; grid-row: 1; font-size: 11px; color: #888; }
.pg-trivia { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-trivia > div { background: #FBF3E6; border-radius: 10px; padding: 12px 14px; }
.pg-trivia b { display: block; font-size: 14px; line-height: 1.5; }
.pg-trivia p { margin-top: 6px; color: #444; }
.pg-trivia small { display: block; margin-top: 6px; font-size: 11px; color: #888; }
.pg-note { font-size: 11.5px; color: #666; margin-top: 8px; }
.pg-note.top { margin: -2px 0 10px; }
.pg-foot { position: absolute; left: 60px; right: 60px; bottom: 28px; display: flex; justify-content: space-between; font-size: 10px; color: #999; }

@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; min-height: 0; }
  .hd, .print-bar, #sheet-root, #toast, .foot, .fab-coach { display: none !important; }
  .wrap.print-wrap { max-width: none; padding: 0; margin: 0; }
  .paper { zoom: 1 !important; width: auto; }
  .pg { width: 210mm; height: 296mm; min-height: 0; margin: 0; box-shadow: none; overflow: hidden; padding: 14mm 15mm 16mm; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pg:last-child { break-after: auto; page-break-after: auto; }
  .pg-foot { left: 15mm; right: 15mm; bottom: 8mm; }
}
.pg-grid.sheet7.dense td, .pg-grid.sheet7.dense th { font-size: 11px; line-height: 1.15; padding: 0 6px; }
.pg-grid.sheet7.dense .mk span { min-width: 24px; margin: 0 2px; }
.pg-grid.sheet7.tiny td, .pg-grid.sheet7.tiny th { font-size: 9.5px; line-height: 1.05; }
.pg-grid.sheet7.tiny .mk span { border-width: 1px; }

/* ログイン（2026-10-23） */
.login .q-title { margin-top: 0; }
.login .input { font-size: 17px; }
.carry { margin: 14px 0 0; }
.carry p { margin: 4px 0 10px; font-size: 14px; }
.carry .btn + .btn { margin-top: 8px; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 0 2px; font-size: 13px; color: var(--sub); }
.who .linkbtn { margin: 0; }
/* 先取り（今日の分を全部記録した後） */
.send .btn.ghost { margin-top: 10px; }
.top-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: 8px; }
.top-links .top-login { margin: 0; font-size: 15px; }
.top-links .home-add { margin-left: auto; }
.top-links .home-add summary { margin-top: 0; }
.top-links .home-add[open] { flex-basis: 100%; margin-left: 0; }

/* 英語の計画（app-en.js） */
.subj2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.subj2 .btn { margin: 0; padding-left: 8px; padding-right: 8px; }
@media (min-width: 900px) { .top2 .cta .subj2 { display: inline-grid; grid-template-columns: auto auto; } .top2 .cta .subj2 .btn { min-width: 220px; } .top2 .cta .subj2 .btn + .btn { margin-left: 0; } .top2 .cta .subj2 + .btn { margin-left: 10px; } }
.subj-tabs { margin-top: 16px; }
.subj-tabs button { flex: 1; min-width: 0; padding: 0 4px; }
.subj-tabs .add { flex: 0 0 44px; font-size: 20px; color: var(--navy); }
.subj-add { margin-top: 8px; }
.en-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; }
.en-table th, .en-table td { padding: 8px 10px; text-align: left; border-top: 1px solid var(--line2); }
.en-table tr:first-child th, .en-table tr:first-child td { border-top: 0; }
.en-table th { width: 64px; color: var(--navy); white-space: nowrap; }
.opt .en-no { background: var(--navy); color: #fff; }
.task .en-lbl { font-size: 16px; }
.en-steps { margin: 2px 0 4px 20px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.en-steps li + li { margin-top: 2px; }
.en-amts { display: grid; gap: 12px; }
.en-amt .wk-num b { font-size: 22px; }
.en-amt-n { min-width: 72px; color: var(--ink) !important; }
.pg-grid td.en-els { font-size: 9pt; line-height: 1.35; }
.pg-grid.en12 td { font-size: 9pt; }
/* 英語の書き込み表は「やること」が長い（英単語の復習の番号が並ぶ）ので、「やること」を一番広くする */
.pg-grid.sheet7.en7 th:nth-child(2) { width: auto; }
.pg-grid.sheet7.en7 th:nth-child(3) { width: 112px; }
.pg-grid.sheet7.en7 th:nth-child(4) { width: 64px; }
.pg-grid.sheet7.en7 td.q small { white-space: nowrap; }
/* 英語は要素の列が最大4つ並ぶので、日付は2行にして、要素の列は同じ幅で分ける（数学の幅の決まりを打ち消す） */
.pg-grid.en12 th:nth-child(2) { width: 126px; }
.pg-grid.en12 .nw { display: inline-block; white-space: nowrap; }
.pg-grid.en12 th:nth-child(n+3) { width: auto; }
.pg-grid.en12 td:nth-child(2) { white-space: normal; }
.pg-grid.en12 td:nth-child(3) { text-align: center; }
.en-how td { font-size: 9pt; line-height: 1.45; }
/* 文の終わりだけが次の行に残らないよう、ひとまとまりで折り返す */
.lead .keep { display: inline-block; }

/* AIコーチの今日の残り（10/30 工藤さん「残り何回などと表示が出るといい」）。0回の日は薄く */
.coach-left { color: var(--ink); font-weight: 700; margin-top: 2px; }
.coach-left.none { color: var(--sub); font-weight: 400; }

/* 外部のAIに質問する（10/30 工藤さん。AIコーチの代わり） */
.sheet-in.ask { display: flex; flex-direction: column; gap: 10px; }
.ask-lead { font-size: 15px; line-height: 1.7; }
/* 生徒さん向けの使い方（10/30 工藤さん「操作画面つきのマニュアル」）。public/guide/ai.html を別のタブに開く */
.ask-guide { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--navy, #1f4a8c); text-decoration: underline; text-underline-offset: 3px; }
.ask-lbl { font-weight: 800; font-size: 15px; margin-top: 6px; }
.ask-lbl .muted { font-weight: 500; font-size: 13px; }
.sheet-in.ask textarea { min-height: 96px; resize: vertical; font-size: 16px; }

/* 1週間チャレンジ（public/challenge.js）。今日の計画の上と、英語の計画を作る前の最初の画面。白黒で刷っても読めるように、色だけで分けず「済み」と番号で分ける */
.ch { margin-top: 16px; border: 2px solid var(--orange); }
.ch-page { margin-top: 20px; }
.ch-eye { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ch-tag { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--orange); border-radius: 99px; padding: 2px 10px; letter-spacing: .04em; }
.ch-eye b { font-size: 18px; color: var(--orange); }
.ch-of { font-size: 13px; color: var(--sub); font-weight: 700; }
.ch-head { font-size: 19px; line-height: 1.45; margin-top: 6px; color: var(--ink); }
.ch-page .ch-head { font-size: 22px; }
.ch-lead { font-size: 14px; color: var(--sub); margin-top: 6px; }
.ch-steps { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.ch-steps li { display: flex; gap: 10px; align-items: flex-start; }
.ch-no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; border: 2px solid var(--ink); color: var(--ink); background: #fff; }
.ch-steps li.cur .ch-no { background: var(--orange); border-color: var(--orange); color: #fff; }
.ch-steps li.done .ch-no { background: var(--ok-p); border-color: var(--ok); color: var(--ok); }
.ch-st { flex: 1; min-width: 0; }
.ch-st small { display: block; font-size: 12px; font-weight: 800; color: var(--sub); }
.ch-steps li.cur .ch-st small { color: var(--orange); }
.ch-st p { font-size: 14px; line-height: 1.6; color: var(--ink); }
.ch-steps li.done .ch-st p { color: var(--sub); }
.ch-steps li.cur .ch-st p { font-weight: 700; }
.ch-btn { margin-top: 8px; }
.ch-strip { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; }
.ch-strip b { color: var(--orange); }
.ch-strip + .progress { margin-top: 10px; }
.ch-all { margin-top: 10px; padding: 0 18px; }
.ch-all summary { min-height: 48px; display: flex; align-items: center; font-weight: 800; color: var(--navy); cursor: pointer; }
.ch-all ol { list-style: none; padding-bottom: 14px; display: grid; gap: 6px; font-size: 14px; }
.ch-all li b { display: inline-block; min-width: 3.5em; color: var(--sub); }
.ch-all li.now b { color: var(--orange); }
.ch-day { margin-top: 10px; padding: 0 18px; }
.ch-day summary { min-height: 52px; display: flex; gap: 10px; align-items: center; font-weight: 800; color: var(--navy); cursor: pointer; }
.ch-day summary b { flex: none; min-width: 3.5em; color: var(--sub); }
.ch-day[open] { padding-bottom: 16px; }
.ch-day .ch-lead { margin-top: 0; }
.ch-math { margin-top: 20px; }
.ch-math .btn { margin-top: 8px; }
.ch-fold { align-items: center; }
.ch-fold .ch-st small { font-size: 13px; color: var(--ok); }
/* 語の途中で折らない（wrap-ja.js）。.ja は <wbr> の所だけで折り、1つの句が1行に入りきらない時だけ行の端で折る。.u は「＋」でつないだ内訳の1項目 */
.ja { word-break: keep-all; overflow-wrap: anywhere; }
.ja .nw { white-space: nowrap; }
.u { display: inline-block; }

/* 量の修正案・無理なところを伝える（今と案を曜日ごとに並べる） */
.suggest { background: #fff; margin-top: 16px; border: 1.5px solid var(--sky); }
.suggest h3 { font-size: 15px; color: var(--navy); }
.suggest .row-btns { margin-top: 12px; }
.dow-t { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; table-layout: fixed; }
.dow-t th, .dow-t td { padding: 6px 2px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dow-t th:first-child { width: 2.6em; text-align: left; color: var(--sub); font-weight: 700; }
.dow-t tr:first-child th { color: var(--sub); font-weight: 700; }
.dow-t td.chg { color: var(--navy); font-weight: 800; background: var(--sky-p); }
.un-cmp { background: #fff; }
.un-cmp .dow-t + .dow-t { margin-top: 14px; }
.amt-cmp { list-style: none; display: grid; gap: 6px; margin-top: 10px; font-size: 14px; }
.amt-cmp li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.amt-cmp li b { color: var(--navy); }
.dh-list { display: grid; gap: 8px; }
.dh-opt { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 44px; }
.dh-opt.sel { border-color: var(--navy); box-shadow: 0 0 0 1.5px var(--navy) inset; }
.dh-opt b { font-size: 16px; }
.dh-opt .small { display: block; margin-top: 4px; color: var(--sub); }
.dh-opt[disabled] { opacity: .55; }
/* 今日の計画の枠の一番上の行の右のボタン（今日使える時間・今日の問題数を変える）。押せる高さは44pxのまま、行の高さは増やさない */
.today .eb-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.today .eb-link { flex: none; color: #fff; font-weight: 800; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; margin: -12px -8px -12px 0; padding: 0 8px; }
