/* レイアウト：白い紙に、太いゴシックの見出しを字間を大きく空けて組む。絵は「2色の線をつなぎ、つなぎ目に点」。
   上の帯はアイコンつきの小さなメニュー、3つの鏡は中央にそろえた3列（スマホは1列）。
   参考：株式会社いろあわせの公式サイト（2026-11-15 に撮影して確認）。ロゴ・絵柄・文章・ミントの地に白文字はまねしない。
   背景はすべて白、文字はゴシック1種類（オーナー指示 2026-11-15） */
:root {
  --paper: #ffffff;
  --tint: #f5f6f7;
  --ink: #1d1d1f;
  --muted: #5f6368;
  --hair: #e6e8ea;
  --accent: #1d7a60;
  --on-accent: #ffffff;
  --link: #0a6d96;
  --on-color: #1d1d1f;
  /* 絵の線の色（文字には使わない） */
  --i-cyan: #12a9e0;
  --i-pink: #e5508f;
  --i-yellow: #f5c400;
  --i-mint: #55b79c;
  /* 3つの力：淡い面と、文字・数字に使う濃い色（白・面のどちらでも 4.5:1 以上） */
  --c-kiku: #e5f5fc;
  --c-kakeru: #fdeaf2;
  --c-kaeri: #fff6d1;
  --s-kiku: #0a6d96;
  --s-kakeru: #ad2f68;
  --s-kaeri: #7a5f00;
  --c-care: #fdeaea;
  /* 押せる部品の縁取り。白・薄い灰色のどちらに対しても 3:1 以上 */
  --ctl: #858f98;
  --ax: var(--c-kiku);
  --ax-s: var(--s-kiku);
  --ax-i: var(--i-cyan);
  --ax-j: var(--i-mint);
  /* ゴシック1種類にそろえる（オーナー指示 2026-11-15）。文字の形は端末に入っているものだけ */
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴシック", "Yu Gothic", "YuGothic", "BIZ UDPGothic", Meiryo, "Noto Sans JP", sans-serif;
  --display: var(--body);
  --r: 0.625rem;
}
/* 暗い設定の端末でも、背景はいつも白（オーナー指示 2026-11-15）。暗い配色は作らない */
:root, :root[data-theme="dark"] { color-scheme: light; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
#app { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; padding-block: 0 4rem; }
a { color: var(--link); text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 0.375rem; }
h1:focus { outline: none; }

.ax-kiku { --ax: var(--c-kiku); --ax-s: var(--s-kiku); --ax-i: var(--i-cyan); --ax-j: var(--i-mint); }
.ax-kakeru { --ax: var(--c-kakeru); --ax-s: var(--s-kakeru); --ax-i: var(--i-pink); --ax-j: var(--i-yellow); }
.ax-kaeri { --ax: var(--c-kaeri); --ax-s: var(--s-kaeri); --ax-i: var(--i-yellow); --ax-j: var(--i-mint); }
.ax-flat { --ax: var(--tint); --ax-s: var(--muted); --ax-i: var(--ctl); --ax-j: var(--ctl); }

/* 2色の線をつないだ帯（このサイトの合図）。左右で色が変わり、つなぎ目に点 */
.duo { --l: var(--ax-i); --r2: var(--ax-j); }

/* 上の帯：名前と、アイコンつきの小さなメニュー */
.top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap; padding-block: 0.9rem; border-bottom: 1px solid var(--hair); }
.brand { color: var(--ink); font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: 0.16em; display: inline-flex; align-items: center; min-height: 44px; }
.gnav { display: flex; gap: 0.15rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.gnav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; min-width: 3.3rem; min-height: 48px; padding: 0.25rem 0.3rem; border-radius: 0.5rem; color: var(--ink); text-decoration: none; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.gnav-item:hover { background: var(--tint); }
.gnav-item.here { background: var(--tint); }
.art.nav { width: 1.5rem; }
.foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 1.25rem; }

/* 文字 */
.view { display: flex; flex-direction: column; gap: 3.25rem; }
.view > section, .hero, .lesson-head { display: flex; flex-direction: column; gap: 0.9rem; }
h1, h2 { font-family: var(--display); line-height: 1.55; margin: 0; text-wrap: balance; letter-spacing: 0.1em; font-weight: 800; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
/* 区画の見出し：下に2色をつないだ短い線、つなぎ目に点 */
.view > section > h2 {
  padding-bottom: 0.65rem;
  background:
    radial-gradient(circle, var(--ink) 0 2.5px, transparent 3px) 2rem calc(100% + 0.2rem) / 0.6rem 0.6rem no-repeat,
    linear-gradient(90deg, var(--ax-i) 0 2.3rem, var(--ax-j) 2.3rem 4.6rem, transparent 4.6rem) left bottom / 100% 4px no-repeat;
}
p { margin: 0; }
.lead { font-size: 1.0625rem; }
.meta, .src { font-size: 0.8125rem; color: var(--muted); line-height: 1.75; }

/* 絵（2色の線） */
.art { display: inline-block; width: 4rem; flex: none; }
.art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art.mini { width: 1.6rem; }
.art.mini3 { width: 3rem; }
.tilt-l, .tilt-r { transform: none; }

/* トップ：大きく太い文字を、字間・行間を広く */
.hero { gap: 1.1rem; padding-block: 2.25rem 0.5rem; }
.hero-art { display: flex; gap: 1.25rem; align-items: flex-end; }
.hero-art .art { width: clamp(3rem, 13vw, 4.25rem); }
.hero h1 { font-size: clamp(1.75rem, 8.6vw, 2.75rem); line-height: 1.75; letter-spacing: 0.3em; font-weight: 800; white-space: nowrap; }
.hero .lead { max-width: 30em; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .art { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero-art .art:nth-child(2) { animation-delay: 0.1s; }
  .hero-art .art:nth-child(3) { animation-delay: 0.2s; }
  @keyframes rise { from { translate: 0 0.5rem; } }
  .btn, .choice, .lesson-link, .mirror-link, .gnav-item { transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease; }
}

/* 押せるもの */
.btn, .choice, .lesson-link {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ctl); border-radius: var(--r);
  padding: 0.7rem 1.4rem; text-decoration: none; cursor: pointer;
  font-weight: 700; text-align: center; line-height: 1.5; letter-spacing: 0.06em;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { font-size: 1.0625rem; padding: 1rem 2rem; align-self: flex-start; }
.btn.small { font-size: 0.8125rem; padding: 0.3rem 0.95rem; align-self: flex-start; }
.btn:active, .choice:active, .lesson-link:active, .mirror-link:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.ghost { border-color: transparent; color: var(--link); text-decoration: underline; text-underline-offset: 0.22em; padding-inline: 0.25rem; }
.btn.ghost:hover { border-color: transparent; }
.btn, .choice { min-height: 44px; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.choices { display: flex; flex-direction: column; gap: 0.6rem; }
.choice { text-align: left; padding: 0.95rem 1.1rem; font-size: 1.0625rem; font-weight: 500; }
.choice:hover { border-color: var(--ax-s); }
.choice.on { background: var(--ax); border-color: var(--ax-s); color: var(--on-color); font-weight: 700; }
.choice.ng { background: var(--tint); color: var(--muted); }

/* トップ：3つの鏡（PCは中央にそろえた3列、スマホは絵と文の横並び） */
.mirrors { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.mirror-link { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem; align-items: start; text-decoration: none; color: var(--on-color); border: 1.5px solid var(--ctl); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--paper); min-width: 0; }
.mirror-link::before { content: ""; grid-row: span 2; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: conic-gradient(var(--ax-i) 0 50%, var(--ax-j) 50% 100%); -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 4px), #000 calc(50% - 3.5px)); mask: radial-gradient(circle, transparent 0 calc(50% - 4px), #000 calc(50% - 3.5px)); }
.mirror-link strong { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.1em; color: var(--ink); }
.mirror-link span { font-size: 0.8125rem; line-height: 1.75; color: var(--muted); }
.mirror-link:hover { border-color: var(--ax-s); background: var(--ax); }
@media (min-width: 40rem) {
  .mirrors { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .mirror-link { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 0.6rem; padding: 1.5rem 1rem; }
  .mirror-link::before { grid-row: auto; width: 4rem; height: 4rem; }
}

/* 順番 */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 0.75rem; padding-block: 0.9rem; border-bottom: 1px solid var(--hair); }
.steps li::before { content: counter(s); grid-row: span 2; font-weight: 800; font-size: 1.5rem; line-height: 1.4; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps strong { font-weight: 800; letter-spacing: 0.08em; }
.steps span { font-size: 0.9375rem; grid-column: 2; color: var(--muted); }

.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.8rem; }
.lesson-link { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; padding: 1.25rem 1rem; color: var(--on-color); }
.lesson-link:hover { border-color: var(--ax-s); background: var(--ax); }
.lesson-link .art { width: 3.25rem; }
.ll-name { font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.1em; }
.ll-goal { font-weight: 400; font-size: 0.8125rem; line-height: 1.65; color: var(--muted); }

.view > section.now, .view > section.next { border-radius: var(--r); padding: 1.35rem; background: var(--tint); }
.now > h2, .next > h2 { background: none; padding-bottom: 0; }
.now-text { font-weight: 800; font-size: 1.1875rem; line-height: 1.7; letter-spacing: 0.06em; }
.plain { border-top: 1px solid var(--hair); padding-top: 1.5rem; font-size: 0.9375rem; }
.notice { border-radius: var(--r); background: var(--c-kaeri); color: var(--on-color); padding: 0.85rem 1.1rem; font-weight: 700; margin-top: 1.25rem; }

/* 1画面1問 */
.quiz { gap: 1rem; padding-top: 1.5rem; }
.count { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ax-s); letter-spacing: 0.16em; }
.bar { height: 0.5rem; border-radius: 999px; background: var(--tint); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--ax-s); min-width: 0; }
.bar span.zero { background: transparent; }
.q-pre { color: var(--muted); font-size: 0.9375rem; }
.q-text { font-weight: 800; font-size: 1.4375rem; line-height: 1.75; letter-spacing: 0.08em; min-height: 5em; }
p.q-text { min-height: 0; font-size: 1.125rem; }

.checks, .rq { display: flex; flex-direction: column; gap: 0.5rem; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; border: 1.5px solid var(--ctl); border-radius: var(--r); padding: 0.8rem 1rem; cursor: pointer; background: var(--paper); }
.check:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.keep .check { border: 0; padding: 0; background: none; }
.check input { width: 1.2rem; height: 1.2rem; margin: 0.3rem 0 0; flex: none; accent-color: var(--accent); }
.check .sub { display: block; }
.rq { border: 0; padding: 0; margin: 0; }
.rq legend { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.06em; padding: 0; margin-bottom: 0.6rem; }

/* 結果 */
.view > section.type { border-radius: var(--r); background: var(--ax); color: var(--on-color); padding: 1.5rem; margin-top: 1.5rem; border-top: 5px solid; border-image: linear-gradient(90deg, var(--ax-i) 0 50%, var(--ax-j) 50% 100%) 1; border-radius: 0 0 var(--r) var(--r); }
.type .art { width: 4.25rem; }
.type h1 { font-size: clamp(1.6rem, 7.5vw, 2.25rem); line-height: 1.5; color: var(--ax-s); }
.type-pre { font-size: 0.875rem; color: var(--muted); }
.type.ax-flat h1 { color: var(--ink); }
.gauges { display: flex; flex-direction: column; gap: 1.1rem; }
.gauge { display: flex; flex-direction: column; gap: 0.35rem; }
.g-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.g-name { font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.06em; }
.g-sub { order: 3; flex-basis: 100%; min-width: 0; overflow-wrap: anywhere; font-size: 0.8125rem; color: var(--muted); }
.g-num { margin-left: auto; font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1; color: var(--ax-s); }
.gauge .bar { height: 0.625rem; }

/* 窓口 */
.view > section.care { border-radius: var(--r); background: var(--c-care); padding: 1.35rem; margin-top: 1.5rem; }
.care > h2 { background: none; padding-bottom: 0; }
.windows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.windows li { display: flex; flex-direction: column; padding-bottom: 0.9rem; border-bottom: 1px solid var(--ctl); }
.windows li:last-child { border-bottom: 0; padding-bottom: 0; }
.w-name { font-weight: 700; font-size: 0.9375rem; }
.w-tel { align-self: flex-start; font-weight: 800; font-size: 1.75rem; line-height: 1.35; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; user-select: all; color: var(--ink); }
.w-note { font-size: 0.8125rem; color: var(--muted); }
.urgent { font-weight: 700; }

/* 講座 */
.lesson-head { flex-direction: row; align-items: center; gap: 1rem; padding-top: 1.5rem; }
.lesson-head > div { min-width: 0; }
.cards { list-style: none; margin: 0; padding: 0; counter-reset: c; display: flex; flex-direction: column; gap: 1rem; }
.card { counter-increment: c; border: 1.5px solid var(--hair); border-radius: var(--r); padding: 1.35rem; display: flex; flex-direction: column; gap: 0.65rem; background: var(--paper); min-width: 0; }
.card h2 { font-size: 1.1875rem; display: flex; gap: 0.6rem; align-items: baseline; }
.card h2::before { content: counter(c); flex: none; font-size: 1.25rem; font-weight: 800; color: var(--ax-s); font-variant-numeric: tabular-nums; }
.ex { display: flex; flex-direction: column; gap: 0.45rem; }
.ex p { border-radius: var(--r); padding: 0.65rem 0.9rem; font-weight: 500; line-height: 1.75; }
.ex-b { background: var(--tint); color: var(--muted); }
.ex-a { background: var(--ax); color: var(--on-color); font-weight: 700; }
.ex p.meta { background: none; padding: 0; font-weight: 400; }
.tag { display: block; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.lquiz { border-top: 1px solid var(--hair); padding-top: 1.5rem; }
.ok, .retry { font-weight: 700; }
.retry:empty { display: none; }
.act-group h2 { display: flex; align-items: center; gap: 0.6rem; }

/* 返しグセチェック：子どもの一言 */
.says { border-radius: var(--r); background: var(--ax); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.2rem; border-left: 5px solid; border-image: linear-gradient(var(--ax-i) 0 50%, var(--ax-j) 50% 100%) 1; border-radius: 0 var(--r) var(--r) 0; }
.who { font-size: 0.8125rem; color: var(--muted); }
.says-text { font-size: 1.3125rem; line-height: 1.7; letter-spacing: 0.08em; }

/* かがみ */
.tally { flex-direction: row !important; flex-wrap: wrap; gap: 0.8rem !important; }
.tally-box { flex: 1 1 9rem; min-width: 0; border-radius: var(--r); background: var(--ax); color: var(--on-color); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.8125rem; line-height: 1.6; }
.tally-box.ax-flat { color: var(--ink); }
.tally-num { font-weight: 800; font-size: 2.75rem; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ax-s); }
.finds { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.finds li::marker { color: var(--accent); }

.michi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.michi .card { border-left: 5px solid var(--ax-s); }
.michi .card h2::before { content: none; }
.review-out:empty, .quiz-result:empty { display: none; }

/* ===== 0004：続けて使える形 ===== */

/* きょうやること（トップのいちばん上の1枚） */
.view > section.today { margin-top: 1.25rem; position: relative; border: 1.5px solid var(--ax-s); border-radius: var(--r); padding: 1.35rem 1.35rem 1.5rem; background: var(--ax); gap: 0.6rem; }
.view > section.today::before { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: -1.5px; height: 6px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(90deg, var(--ax-i) 0 50%, var(--ax-j) 50% 100%); }
.today > h2 { background: none; padding-bottom: 0; font-size: 1.375rem; }
.today-label { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em; color: var(--ax-s); margin-top: 0.25rem; }

/* 選択肢：主な文字と、小さな補足 */
.choice .c-main { display: block; }
.choice .c-sub { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--muted); margin-top: 0.1rem; }
.choices.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.choices.grid2 .choice { text-align: center; padding-inline: 0.6rem; }
.choices.days { flex-direction: row; flex-wrap: wrap; gap: 0.45rem; }
.choices.days .choice { padding: 0.5rem 0.85rem; font-size: 0.9375rem; text-align: center; min-width: 3rem; }
.q-text.short { min-height: 0; }

/* 記録したあと・残しますか・1行の案内 */
.view > section.done { align-items: flex-start; border-radius: var(--r); background: var(--ax); padding: 1.35rem; margin-top: 1.5rem; }
.done h1 { font-size: 1.75rem; }
.view > section.ask { border: 1.5px solid var(--accent); border-radius: var(--r); padding: 1.25rem; background: var(--paper); }
.ask > h2 { background: none; padding-bottom: 0; }
.keep-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem 1rem; border-radius: var(--r); background: var(--tint); font-size: 0.875rem; }

/* かがみ：前の30日とくらべる */
.cmp { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.cmp-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding-block: 0.65rem; border-bottom: 1px solid var(--hair); }
.cmp-name { font-weight: 700; }
.cmp-val { font-variant-numeric: tabular-nums; }
.cmp-val strong { font-size: 1.375rem; font-weight: 800; color: var(--ax-s); }
.cmp-prev { color: var(--muted); }

/* かがみ：週ごとの棒（8週） */
.weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.4rem; align-items: end; height: 9rem; padding-bottom: 1.6rem; position: relative; border-bottom: 1px solid var(--ctl); }
.wk { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; position: relative; min-width: 0; }
.wk-bar { display: flex; flex-direction: column-reverse; width: 100%; max-width: 1.75rem; height: 100%; justify-content: flex-start; }
.vb { display: block; width: 100%; min-height: 0; }
.vb-hiraku { background: var(--s-kaeri); border-radius: 0 0 2px 2px; }
.vb-tojiru { background: var(--s-kakeru); }
.vb-betsu { background: var(--ctl); }
.wk-num { font-size: 0.75rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-label { position: absolute; bottom: -1.5rem; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.8125rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; margin-right: 0.35rem; vertical-align: -0.05em; }
.lg-hiraku::before { background: var(--s-kaeri); }
.lg-tojiru::before { background: var(--s-kakeru); }
.lg-betsu::before { background: var(--ctl); }

/* はじめての方への案内 */
.hajime { gap: 1.25rem; padding-top: 1.5rem; }
.view > section.ob { align-items: flex-start; gap: 1rem; padding-block: 1rem; }
.ob h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
.art.ob-art { width: 5.5rem; }
.ob-last { display: flex; flex-direction: column; gap: 0.9rem; }
.ob-last h2 { font-size: 1.125rem; }
.choices.grade .choice { font-size: 0.9375rem; }

/* せってい */
/* ファイルを選ぶ欄：ブラウザの英語のボタンは隠し、日本語のボタン（label）を押させる。キーボードで選んだときは枠を出す */
.file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-label { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 44px; padding: 0.7rem 1.4rem; border: 1.5px solid var(--ctl); border-radius: var(--r); font-weight: 700; cursor: pointer; background: var(--paper); }
.file-label:hover { border-color: var(--ink); }
.file-label:has(+ .file:focus-visible) { outline: 2px solid var(--link); outline-offset: 3px; }
.imp-out { display: flex; flex-direction: column; gap: 0.6rem; }
.how { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.dl { display: grid; grid-template-columns: 6rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; }

/* トップの下：たたんだ説明 */
details.more { display: flex; flex-direction: column; gap: 0.9rem; }
details.more summary { cursor: pointer; font-weight: 800; letter-spacing: 0.06em; min-height: 44px; display: flex; align-items: center; }
details.more[open] summary { margin-bottom: 0.75rem; }
details.more > p { margin-top: 0.75rem; }

/* 月のまとめ：印刷用の書きこみ欄 */
.lines { height: 9rem; background: repeating-linear-gradient(to bottom, transparent 0 calc(2.25rem - 1px), var(--ctl) calc(2.25rem - 1px) 2.25rem); }

@media print {
  .top, .foot, .no-print, .btn, .keep-inline, .notice { display: none !important; }
  body { padding: 0; font-size: 11pt; }
  #app { max-width: none; padding: 0; }
  .view { gap: 1.25rem; }
  .tally-box, .card, .now { break-inside: avoid; }
}

/* ===== 0004 見た目の仕上げ ===== */
/* 色つきの箱の中の見出しには、区画の下線を出さない（.view > section > h2 より強く指定） */
.view > section.today > h2, .view > section.ask > h2, .view > section.now > h2, .view > section.next > h2, .view > section.care > h2, .view > section.type > h2, .view > section.done > h2 { background: none; padding-bottom: 0; }
.today > h2 { letter-spacing: 0.06em; line-height: 1.5; }
/* 「続きを話しやすい返し」は落ち着いた緑で */
.vb-hiraku, .lg-hiraku::before { background: var(--accent); }
/* たたんだ説明の開け閉めの印 */
details.more summary { list-style: none; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "＋"; font-weight: 800; color: var(--accent); }
details.more[open] summary::after { content: "−"; }
/* スマホではメニューを横いっぱいに均等に */
@media (max-width: 30rem) {
  .gnav { width: 100%; justify-content: space-between; margin-left: 0; }
  .gnav-item { flex: 1 1 auto; min-width: 0; white-space: nowrap; padding-inline: 0.1rem; }
}

/* ===== 0005：親世代にわかりやすく・見やすく ===== */

/* 本文へ（スキップリンク）：ふだんは隠し、Tab で出す */
.skip { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: 0.5rem; z-index: 20; transform: translateY(-200%); background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r); padding: 0.6rem 1rem; font: inherit; font-weight: 800; min-height: 44px; }
.skip:focus-visible { transform: none; }

/* おかえりの一言 */
.welcome { margin-top: 1.25rem; padding: 0.75rem 1rem; border-radius: var(--r); background: var(--tint); font-weight: 700; }

/* はじめての方へ（短い案内） */
.view > section.guide { margin-top: 1.25rem; border: 1.5px solid var(--ctl); border-radius: var(--r); padding: 1.25rem; gap: 0.75rem; }
.view > section.guide > h2 { background: none; padding-bottom: 0; font-size: 1.125rem; }
.guide-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9375rem; }
.guide-list li::marker { color: var(--accent); }

/* 見る・知る・ためす（3つの入口） */
.tiles { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.tile { display: grid; grid-template-columns: 3rem 1fr; column-gap: 0.9rem; row-gap: 0.15rem; align-items: start; text-decoration: none; color: var(--on-color); border: 1.5px solid var(--ctl); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--paper); min-width: 0; }
.tile .art { grid-row: span 2; width: 3rem; }
.tile strong { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.08em; }
.tile span { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }
.tile .row { grid-column: 1 / -1; margin-top: 0.5rem; }
a.tile:hover { border-color: var(--ax-s); background: var(--ax); }
@media (min-width: 40rem) { .tiles { grid-template-columns: 1fr 1fr; } .tile-2 { grid-column: 1 / -1; } }
.center { text-align: center; }

/* 講座：1枚ずつめくる。出典はどのカードも同じ場所（カードの下） */
.ll-time { font-size: 0.8125rem; font-weight: 700; color: var(--ax-s); margin-top: 0.25rem; }
.card.slide { min-height: 22rem; }
.slide-no { font-size: 0.875rem; font-weight: 800; color: var(--ax-s); letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.card.slide h2::before { content: none; }
.slide-hint { font-weight: 400; color: var(--muted); letter-spacing: 0; font-size: 0.75rem; }
.cal td:not(.on):not(.empty) .cal-d { opacity: 0.6; }
.slide-src { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--hair); }
.slide-nav { justify-content: space-between; }
.slide-end { display: flex; flex-direction: column; gap: 2rem; }

/* 記録したあと：チェックの線が描かれる動き */
.art.done-check { width: 4.5rem; }
.done-check svg path:nth-of-type(2) { stroke-dasharray: 60; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .done-check svg path:nth-of-type(2) { animation: drawcheck 0.6s 0.15s cubic-bezier(0.3, 0.7, 0.2, 1) backwards; }
  .done-check svg { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
  @keyframes drawcheck { from { stroke-dashoffset: 60; } }
  @keyframes pop { from { transform: scale(0.85); } }
}
.praise { font-weight: 700; color: var(--accent); }

/* かがみ：この30日のひとこと（要約） */
.view > section.summary { position: relative; border: 1.5px solid var(--ax-s); border-radius: var(--r); padding: 1.35rem; background: var(--ax); gap: 0.6rem; }
.view > section.summary::before { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: -1.5px; height: 6px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(90deg, var(--ax-i) 0 50%, var(--ax-j) 50% 100%); }
.view > section.summary > h2 { background: none; padding-bottom: 0; font-size: 1.3125rem; line-height: 1.55; }
.summary-num { font-weight: 800; color: var(--ax-s); font-variant-numeric: tabular-nums; }

/* 場面で分けて見る（横に並ぶボタン） */
.chips-wrap { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.choices.chips { gap: 0.4rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.choices.chips .choice { flex: none; white-space: nowrap; }
.choices.chips .choice { padding: 0.4rem 0.8rem; font-size: 0.875rem; }

/* チェックのカレンダー */
.view > section.cal-box { border: 1.5px solid var(--hair); border-radius: var(--r); padding: 1rem; gap: 0.6rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.view > section.cal-box .cal-head h2 { background: none; padding-bottom: 0; font-size: 1.125rem; }
.cal-head .btn.small { min-width: 44px; font-size: 1.125rem; padding: 0.2rem 0.6rem; }
.cal-spacer { width: 44px; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-variant-numeric: tabular-nums; }
.cal th { font-size: 0.75rem; color: var(--muted); font-weight: 700; padding-bottom: 0.3rem; }
.cal td { height: 2.75rem; vertical-align: middle; position: relative; border-radius: 0.5rem; }
.cal-d { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.2; }
.cal td.on { background: var(--c-kaeri); }
.cal td.on .cal-d { color: var(--ink); font-weight: 700; }
.cal-check { display: block; font-weight: 800; color: var(--accent); line-height: 1.1; font-size: 1rem; }
.cal td.today { box-shadow: inset 0 0 0 2px var(--ink); }

/* たたんだ「くわしく見る」 */
details.more-box { border-top: 1px solid var(--hair); padding-top: 0.5rem; display: block; }
details.more-box > summary { cursor: pointer; font-weight: 800; letter-spacing: 0.04em; min-height: 44px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
details.more-box > summary::-webkit-details-marker { display: none; }
details.more-box > summary::after { content: "＋"; color: var(--accent); font-weight: 800; }
details.more-box[open] > summary::after { content: "−"; }
details.more-box[open] > *:not(summary) { margin-top: 1.75rem; }
.how-title { font-weight: 700; margin-top: 0.75rem; }

/* 月のまとめ：問いと書きこむ線 */
.tq { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
.tq-q { font-weight: 700; }
.lines.short { height: 6.75rem; }

/* ===== 0006 トップを1画面に ===== */
.view.home { gap: 0.75rem; }
.view.home > section.today { margin-top: 0.75rem; padding: 1.1rem 1.1rem 1.2rem; gap: 0.45rem; }
.view.home .today h1 { font-size: 1.375rem; line-height: 1.5; letter-spacing: 0.06em; font-weight: 800; }
.view.home .today .welcome { margin: 0 0 0.15rem; padding: 0; background: none; font-size: 0.875rem; color: var(--muted); }
.view.home .today .row { gap: 0.5rem 0.75rem; margin-top: 0.25rem; }
.view.home .today .btn.big { padding: 0.8rem 1.6rem; }
details.fold { border: 1.5px solid var(--ctl); border-radius: var(--r); background: var(--paper); }
details.fold > summary { list-style: none; cursor: pointer; min-height: 48px; padding: 0.55rem 2.6rem 0.55rem 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; position: relative; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "＋"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 800; }
details.fold[open] > summary::after { content: "−"; }
details.fold > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
.fold-title { margin: 0; font-size: 1rem; line-height: 1.9; font-weight: 800; letter-spacing: 0.06em; flex: none; max-width: 100%; }
.fold-peek { flex: 1 1 8em; font-size: 0.875rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.fold[open] .fold-peek { visibility: hidden; }
.fold-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.25rem 1rem 1.1rem; }
.motto { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.2em; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.25rem; }
.quick .q { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; min-height: 76px; padding: 0.5rem 0.25rem; border: 1.5px solid var(--ctl); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 0.8125rem; font-weight: 800; text-align: center; line-height: 1.35; }
.quick .q .art { width: 2rem; }
.quick .q:hover { border-color: var(--ink); }
@media (min-width: 40rem) { .quick .q { font-size: 0.9375rem; } .quick .q .art { width: 2.5rem; } }
#app:has(.view.home) { gap: 0.75rem; }
.view.home > section.today { margin-top: 0.25rem; }
.view.home .today > p:not(.today-label):not(.welcome) { line-height: 1.7; }
.view.home .today .row.two { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; }
.view.home .today .row.two > .btn { align-self: stretch; justify-content: center; text-align: center; padding-inline: 1.1rem; letter-spacing: 0.04em; }
.view.home .today .row.two > .btn.big { font-size: 1.0625rem; }
.quick .q { min-height: 64px; padding: 0.4rem 0.2rem; gap: 0.15rem; }
.quick .q .art { width: 1.6rem; }
details.fold > summary { min-height: 48px; padding-block: 0.4rem; }
.view.home .today .row.two > .btn { display: flex; align-items: center; justify-content: center; word-break: keep-all; overflow-wrap: anywhere; min-width: 0; padding-inline: 0.8rem; letter-spacing: 0.02em; }
.view.home .today .row.two > .btn:not(.big) { font-size: 0.9375rem; }
.view.home .today .today-label.welcome { margin: 0.25rem 0 0; padding: 0; background: none; font-size: 0.875rem; letter-spacing: 0.06em; color: var(--ax-s); }
.quick .q span { word-break: keep-all; overflow-wrap: anywhere; }
