/* アオミチ v10：縦に読む記事。1画面目に答えと「まず知りたい4つ」。白地と余白で見せ、箱を重ねない。
   色・文字・余白はデジタル庁デザインシステム v2.18.2、骨組みは Apple HIG（docs/design/RULES.md）。 */
:root {
  --white: #fff; --gray-50: #f2f2f2; --gray-100: #e6e6e6; --gray-200: #ccc; --gray-420: #949494; --gray-600: #666; --gray-800: #333; --gray-900: #1a1a1a;
  --blue-50: #e8f1fe; --blue-900: #0017c1; --blue-1000: #00118f; --magenta-900: #8b008b; --orange-800: #c74700; --yellow-300: #ffd43d;
  --green-800: #197a4b; --line: #00843d; --mark: #fff0b3;
  --font: "Noto Sans JP", "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Yu Gothic UI", Meiryo, sans-serif;
  --gut: 20px; --col: 720px; --r: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--gray-800); font-family: var(--font); font-size: 16px; line-height: 1.8; letter-spacing: .02em; overflow-wrap: anywhere; line-break: strict; word-break: auto-phrase; -webkit-font-smoothing: antialiased; }
@media (min-width: 768px) { body { font-size: 18px; line-height: 1.8; } }
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; color: var(--gray-900); letter-spacing: .01em; word-break: auto-phrase; text-wrap: balance; }
p, li { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
b, strong { font-weight: 700; }
mark { background: linear-gradient(transparent 60%, var(--mark) 60%); color: inherit; font-weight: 700; }
a { color: var(--blue-1000); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:visited { color: var(--magenta-900); }
@media (hover: hover) { a:hover { color: var(--blue-900); text-decoration-thickness: 3px; } }
a:active { color: var(--orange-800); }
:focus-visible { outline: 4px solid #000; outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 2px var(--yellow-300); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 8px; background: var(--gray-900); color: var(--white) !important; }
.skip:focus { top: 8px; }

/* ===== 上のバー：ロゴと記事一覧だけ。下の細い線が、どこまで読んだか ===== */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.12); }
.hd__in { display: flex; align-items: center; justify-content: space-between; height: 56px; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gray-900) !important; font-weight: 700; font-size: 18px; letter-spacing: .08em; text-decoration: none; }
.hd__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 16px; }
.hd__prog { height: 2px; }
.hd__prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--blue-900); }
@media (prefers-reduced-transparency: reduce) { .hd { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ===== 骨組み：本文は読みやすい幅の1列。広い画面では右に目次を置く ===== */
.page { padding: 0 var(--gut); }
.art { max-width: var(--col); margin: 0 auto; padding: 16px 0 96px; }
@media (min-width: 768px) { :root { --gut: 40px; } .art { padding-top: 24px; } }
@media (min-width: 1120px) {
  .art { display: grid; grid-template-columns: minmax(0, var(--col)) 240px; column-gap: 48px; max-width: calc(var(--col) + 48px + 240px); }
  .art > * { grid-column: 1; }
  .art > .toc { grid-column: 2; grid-row: 1 / span 40; align-self: start; margin-top: 0 !important; }
}
@media (min-width: 1120px) and (min-height: 720px) { .art > .toc { position: sticky; top: 80px; } }

/* ===== 1画面目 ===== */
.crumb { font-size: 14px; line-height: 1.6; color: var(--gray-600); }
.art__h1 { margin-top: 16px; font-size: 32px; line-height: 1.35; }
@media (min-width: 768px) { .art__h1 { margin-top: 24px; font-size: 40px; } }
.def { margin-top: 16px; font-size: 20px; line-height: 1.7; font-weight: 700; color: var(--gray-900); }
@media (min-width: 768px) { .def { font-size: 24px; line-height: 1.65; } }
.def mark { font-weight: 700; }
.def__sub { margin-top: 8px; font-size: 16px; color: var(--gray-600); }

.four { margin-top: 32px; }
.four__t { font-size: 16px; line-height: 1.5; color: var(--gray-600); letter-spacing: .04em; }
.four__list { margin-top: 8px; border-top: 1px solid var(--gray-200); }
.four__list li { border-bottom: 1px solid var(--gray-200); }
.four__list a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "q ar" "a ar"; align-items: center; column-gap: 12px; padding: 16px 0; color: var(--gray-800) !important; text-decoration: none; }
.four__list a::after { content: ""; grid-area: ar; width: 10px; height: 10px; border-right: 2px solid var(--gray-600); border-bottom: 2px solid var(--gray-600); transform: rotate(45deg) translate(-2px, -2px); justify-self: center; }
.four__q { grid-area: q; font-size: 14px; line-height: 1.5; font-weight: 700; color: var(--blue-900); }
.four__a { grid-area: a; margin-top: 4px; font-size: 17px; line-height: 1.6; font-weight: 700; color: var(--gray-900); word-break: auto-phrase; }
.four__a b { color: var(--gray-900); }
@media (min-width: 768px) { .four__a { font-size: 19px; } .four__list a { grid-template-columns: 200px minmax(0, 1fr) 20px; grid-template-areas: "q a ar"; padding: 20px 0; } .four__q { font-size: 16px; } .four__a { margin-top: 0; } }
@media (hover: hover) { .four__list a:hover .four__a { text-decoration: underline; text-underline-offset: 4px; } }
.four__note { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--gray-600); }
.meta { margin-top: 16px; font-size: 14px; color: var(--gray-600); }

/* ===== 目次 ===== */
.toc { margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.toc__t { font-size: 16px; line-height: 1.5; color: var(--gray-600); }
.toc ol { margin-top: 8px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; min-height: 44px; padding: 8px 0; font-size: 16px; line-height: 1.6; text-decoration: none; color: var(--gray-800) !important; }
.toc a::before { content: counter(t); font-size: 14px; font-weight: 700; color: var(--gray-600); }
@media (hover: hover) { .toc a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.toc a[aria-current="true"] { color: var(--blue-900) !important; font-weight: 700; }
.toc a[aria-current="true"]::before { color: var(--blue-900); }
@media (min-width: 1120px) { .toc { padding: 0; border: 0; } .toc a { font-size: 16px; min-height: 44px; padding: 8px 0; } }

/* ===== 本文の節：見出し → 短い答え → 図 ===== */
.sec { margin-top: 80px; }
@media (min-width: 768px) { .sec { margin-top: 112px; } }
.sec > h2 { font-size: 24px; line-height: 1.45; }
@media (min-width: 768px) { .sec > h2 { font-size: 30px; } }
.ans { margin-top: 16px; font-size: 17px; line-height: 1.85; }
@media (min-width: 768px) { .ans { font-size: 19px; } }
.fig { margin-top: 24px; }
.sec > .note, .fig .note, figcaption.note { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--gray-600); }
.fig__t { font-size: 16px; line-height: 1.6; font-weight: 700; color: var(--gray-900); }

/* 3方式の比べ（表。スマホでは表の中だけ横に動く） */
.cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.cmp th, .cmp td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-200); }
.cmp thead th { font-size: 15px; border-bottom: 2px solid var(--gray-800); }
.cmp tbody th { width: 112px; font-size: 14px; color: var(--gray-600); font-weight: 700; }
.cmp .is-me { background: var(--blue-50); font-weight: 700; color: var(--gray-900); }
.cmp thead .is-me { color: var(--blue-900); border-radius: 12px 12px 0 0; }
@media (min-width: 768px) { .cmp table { min-width: 0; font-size: 16px; } .cmp thead th { font-size: 16px; } }

/* 何で選ばれる：3つを横の線で区切って並べる */
.prep { border-top: 1px solid var(--gray-200); }
.prep li { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.prep__k { grid-row: span 2; align-self: start; display: inline-flex; justify-content: center; padding: 4px 0; border-radius: 20px; background: var(--blue-50); color: var(--blue-900); font-size: 15px; line-height: 1.5; font-weight: 700; }
.prep li p { font-size: 16px; line-height: 1.7; }
.prep li p b { display: block; font-size: 17px; color: var(--gray-900); }
.prep__do { margin-top: 8px; font-size: 15px !important; color: var(--green-800); font-weight: 700; }

/* 出願資格：見る所を3つ */
.gates { padding: 24px; border-radius: var(--r); background: var(--gray-50); }
.gates ol { margin-top: 16px; display: grid; gap: 16px; counter-reset: g; }
.gates li { counter-increment: g; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
.gates li::before { content: counter(g); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 2px solid var(--gray-800); font-weight: 700; font-size: 16px; }
.gates b { font-size: 17px; line-height: 1.5; }
.gates span { font-size: 15px; line-height: 1.6; color: var(--gray-600); }

/* 日程：月を横に並べた帯（1秒で「総合型がいちばん早い」と分かる） */
.cal { padding: 24px 16px; border-radius: var(--r); background: var(--gray-50); }
.cal__grid { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); grid-template-rows: 28px repeat(3, 64px); row-gap: 8px; position: relative; }
.cal__m { grid-row: 1; grid-column: var(--c); font-size: 13px; font-size: 14px; color: var(--gray-600); text-align: left; border-left: 1px solid var(--gray-200); padding-left: 4px; }
.cal__k { grid-row: var(--r); grid-column: 1; align-self: center; font-size: 15px; font-weight: 700; color: var(--gray-800); }
.cal__k.is-me { color: var(--blue-900); }
.cal__bar { grid-row: var(--r); grid-column: var(--a) / var(--b); align-self: start; height: 12px; margin-top: 10px; border-radius: 6px; background: var(--gray-420); position: relative; }
.cal__bar.is-me { background: var(--blue-900); }
.cal__bar b, .cal__dot b { position: absolute; left: 0; top: 18px; font-size: 14px; line-height: 1.4; white-space: nowrap; color: var(--gray-800); }
.cal__bar.is-me b, .cal__dot.is-me b { color: var(--blue-900); }
.cal__dot { grid-row: var(--r); grid-column: var(--a); align-self: start; width: 16px; height: 16px; margin-top: 8px; margin-left: -8px; border-radius: 50%; background: var(--white); border: 3px solid var(--gray-420); position: relative; z-index: 1; }
.cal__dot.is-me { border-color: var(--blue-900); }
.cal__dot b { left: 0; }
@media (max-width: 479px) { .cal__grid { grid-template-columns: 48px repeat(7, minmax(0, 1fr)); grid-template-rows: 28px repeat(3, 76px); } .cal__bar b, .cal__dot b { font-size: 13px; font-size: 14px; } .cal__dot b { top: 40px; } }
.motion .cal:not(.is-in) .cal__bar { transform: scaleX(0); transform-origin: left; }
.cal__bar { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.cal__bar:nth-of-type(2) { transition-delay: .1s; }

/* 専願／併願：2つを横に並べる（線で区切る。箱を入れ子にしない） */
.two { display: grid; gap: 0; border-top: 1px solid var(--gray-200); }
.two__i { padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.two__k { display: inline-block; padding: 4px 12px; border-radius: 16px; background: var(--gray-900); color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.6; }
.two__i + .two__i .two__k { background: var(--white); color: var(--gray-900); box-shadow: inset 0 0 0 2px var(--gray-900); }
.two__v { margin-top: 8px; font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--gray-900); }
.two__s { margin-top: 4px; font-size: 15px; line-height: 1.7; color: var(--gray-600); }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; } .two__i { border-top: 1px solid var(--gray-200); } }

/* 割合 */
.share__bar { display: flex; height: 28px; margin-top: 12px; border-radius: 8px; overflow: hidden; gap: 4px; }
.share__bar span { flex: var(--w) 1 0; min-width: 0; background: var(--gray-200); transition: flex-grow 1s cubic-bezier(.2,.7,.2,1); }
.share__bar span:nth-child(2) { background: var(--gray-420); }
.share__bar .is-me { background: var(--blue-900); }
.motion .share:not(.is-in) .share__bar span { flex-grow: .001; }
.share__key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.share__key li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.share__key b { font-size: 20px; color: var(--gray-900); }
.share__key .is-me b { color: var(--blue-900); }

/* AO → 総合型 */
.ao { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; gap: 8px; }
.ao__col { padding: 16px; border-radius: var(--r); background: var(--gray-50); height: 100%; }
.ao__col.is-me { background: var(--blue-50); }
.ao__y { font-size: 14px; color: var(--gray-600); }
.ao__n { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.ao__col.is-me .ao__n { color: var(--blue-900); }
.ao__s { margin-top: 4px; font-size: 15px; line-height: 1.6; }
.ao__ar { height: 2px; background: var(--gray-800); position: relative; }
.ao__ar::after { content: ""; position: absolute; right: 0; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--gray-800); border-right: 0; }

/* よい点・気をつけたい点 */
.pc { display: grid; gap: 24px; }
@media (min-width: 600px) { .pc { grid-template-columns: 1fr 1fr; gap: 32px; } }
.pc__k { font-size: 15px; font-weight: 700; color: var(--green-800); padding-bottom: 8px; border-bottom: 2px solid var(--green-800); }
.pc__col.is-care .pc__k { color: var(--orange-800); border-color: var(--orange-800); }
.pc li { padding: 12px 0; border-bottom: 1px solid var(--gray-200); font-size: 16px; line-height: 1.6; }

/* 落ちたら */
.next { border-top: 1px solid var(--gray-200); }
.next li { display: grid; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.next b { font-size: 17px; color: var(--gray-900); }
.next span { font-size: 15px; color: var(--gray-600); }

/* まず何をすれば：手順 */
.steps { counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; display: grid; padding: 0 0 24px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gray-900); color: var(--white); font-size: 15px; font-weight: 700; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; border-left: 2px solid var(--gray-200); }
.steps b { font-size: 17px; line-height: 1.6; color: var(--gray-900); }
.steps span { font-size: 15px; color: var(--gray-600); }

/* プレゼント（記事の最後に1つだけ） */
.gift { margin-top: 32px; padding: 24px 20px; border: 1px solid var(--gray-420); border-radius: 20px; }
@media (min-width: 768px) { .gift { padding: 32px; } }
.gift__k { font-size: 14px; font-weight: 700; color: var(--green-800); }
.gift__t { margin-top: 4px; font-size: 20px; line-height: 1.5; }
@media (min-width: 768px) { .gift__t { font-size: 24px; } }
.gift__sheet { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--gray-50); font-size: 14px; line-height: 1.5; overflow: hidden; }
.gift__sh { font-weight: 700; color: var(--gray-900); }
.gift__row { display: grid; grid-template-columns: 1.6fr 1.2fr .7fr 1fr; margin-top: 8px; border-bottom: 1px solid var(--gray-200); }
.gift__row span { padding: 8px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 32px; background: var(--white); border-right: 1px solid var(--gray-200); }
.gift__row--h span { background: var(--gray-900); color: var(--white); font-weight: 700; }
.gift__d { margin-top: 12px; font-size: 16px; }
.gift__how { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--gray-600); }
.btn { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 20px; padding: 12px 24px; border-radius: 28px; background: var(--line); color: var(--white) !important; font-size: 17px; font-weight: 700; text-decoration: none; transition: transform .15s; }
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:hover { background: #006b31; } }
@media (min-width: 768px) { .btn { display: inline-flex; } }
.gift__note { margin-top: 12px; font-size: 14px; color: var(--gray-600); }

/* 次に読む・出典 */
.tail { margin-top: 80px; }
.tail h2 { font-size: 20px; line-height: 1.5; }
.rel { margin-top: 12px; border-top: 1px solid var(--gray-200); }
.rel a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--gray-200); font-size: 16px; text-decoration: none; color: var(--gray-800) !important; }
.rel a::after { content: "›"; font-size: 24px; color: var(--gray-600); }
@media (hover: hover) { .rel a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.src { margin-top: 12px; display: grid; gap: 8px; font-size: 14px; line-height: 1.7; color: var(--gray-600); }
.src li { padding-left: 16px; position: relative; }
.src li::before { content: "・"; position: absolute; left: 0; }

/* 下 */
.ft { padding: 32px var(--gut) 48px; background: var(--gray-50); font-size: 14px; }
.ft__in { max-width: 1120px; margin: 0 auto; }
.ft ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.ft a { display: inline-flex; align-items: center; min-height: 44px; }

/* 画面に入ったら動く（意味のある所だけ） */
/* 日程の帯：方式名は帯の上に置き、文字が重ならないようにする */
.cal__grid, .cal__grid { grid-template-columns: 0 repeat(7, minmax(0, 1fr)) !important; grid-template-rows: 28px repeat(3, 92px) !important; row-gap: 4px; }
.cal__k { grid-column: 1 / -1; align-self: start; margin-top: 8px; }
.cal__bar { margin-top: 40px; }
.cal__dot { margin-top: 36px; }
.cal__bar b, .cal__dot b { top: 20px; }
.cal__dot b { top: 18px; left: 8px; }
.cal__bar[style*="--a:7"] b { left: auto; right: 0; }
.cal__dot b { white-space: nowrap; }
@media (max-width: 479px) { .cal__dot b { top: 18px; } }
.cal__dot { margin-left: 0; }
.cal__grid .cal__dot[style*="--a:4"] b, .cal__grid .cal__dot[style*="--a:5"] b { left: 0; }
.cal__m { white-space: nowrap; letter-spacing: 0; padding-left: 4px; }
@media (max-width: 359px) { .cal { padding: 24px 12px; } }

/* 帯の文字（帯の外。帯の始まりにそろえる） */
.cal__lb { grid-row: var(--r); grid-column: var(--a) / -1; align-self: start; margin-top: 56px; font-size: 14px; line-height: 1.4; font-weight: 700; white-space: nowrap; color: var(--gray-800); }
.cal__lb.is-me { color: var(--blue-900); }
.cal__lb--end { grid-column: 1 / -1; justify-self: end; }
.cal__bar b { display: none; }
/* 表：スマホでは表の中だけ横に動く。右端に続きがあることを影で示す */
.cmp__scroll { background: linear-gradient(to right, var(--white) 30%, rgba(255,255,255,0)) left / 24px 100% no-repeat local, linear-gradient(to left, var(--white) 30%, rgba(255,255,255,0)) right / 24px 100% no-repeat local, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), transparent) right / 12px 100% no-repeat scroll; }
@media (max-width: 479px) { .ao { grid-template-columns: minmax(0, 1fr); } .ao__ar { width: 2px; height: 24px; justify-self: center; } .ao__ar::after { right: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 8px solid var(--gray-800); border-bottom: 0; } }
@media (max-width: 479px) { .ao__ar { width: 16px; height: 24px; background: linear-gradient(var(--gray-800), var(--gray-800)) center / 2px 100% no-repeat; } .ao__ar::after { right: 2px; } }

/* ===== 1周目②（Apple）で直した所 ===== */
.def { font-size: 18px; line-height: 1.75; font-weight: 400; color: var(--gray-800); }
.def b { color: var(--gray-900); }
@media (min-width: 768px) { .def { font-size: 21px; } }
.art__h1 { font-size: 30px; }
@media (min-width: 768px) { .art__h1 { font-size: 38px; } }
/* 要点一覧の右は「下の説明へ移動」と文字で示す */
.four__list a { grid-template-columns: minmax(0, 1fr) auto; }
.four__list a::after { content: "詳しく ↓"; width: auto; height: auto; border: 0; transform: none; font-size: 14px; font-weight: 700; color: var(--blue-1000); white-space: nowrap; }
@media (min-width: 768px) { .four__list a { grid-template-columns: 200px minmax(0, 1fr) auto; } }
/* 3方式：スマホは縦に3つ、広い画面は表 */
.kinds { display: grid; gap: 0; border-top: 1px solid var(--gray-200); }
.kinds li { padding: 16px 0 16px 16px; border-bottom: 1px solid var(--gray-200); border-left: 4px solid var(--gray-200); }
.kinds li.is-me { border-left-color: var(--blue-900); }
.kinds__n { font-size: 18px; font-weight: 700; color: var(--gray-900); line-height: 1.5; }
.kinds li.is-me .kinds__n { color: var(--blue-900); }
.kinds__n small { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--gray-600); }
.kinds li p + p { margin-top: 4px; font-size: 16px; line-height: 1.75; }
.cmp { display: none; }
@media (min-width: 600px) { .kinds { display: none; } .cmp { display: block; } .cmp table { min-width: 0; } }
/* 何で選ばれる：見出しを上に（スマホ）、広い画面は2列 */
.prep li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
.prep__k { grid-row: auto; justify-self: start; display: block; padding: 0; border-radius: 0; background: none; color: var(--gray-900); font-size: 18px; line-height: 1.5; }
.prep__w { font-size: 16px; font-weight: 700; color: var(--gray-800); }
@media (min-width: 600px) { .prep li { grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px; } .prep__k { grid-row: span 3; } }
/* 日程：始まる日は点、一般選抜の試験だけ期間の棒 */
.cal__grid { grid-template-rows: 28px repeat(3, 84px) !important; }
.cal__pt { grid-row: var(--r); grid-column: var(--a); align-self: start; width: 16px; height: 16px; margin: 36px 0 0 -8px; border-radius: 50%; border: 3px solid var(--gray-600); background: var(--white); position: relative; z-index: 1; }
.cal__pt.is-fill { border-radius: 2px; transform: rotate(45deg); background: var(--gray-600); }
.cal__pt.is-me { border-color: var(--blue-900); }
.cal__pt.is-me.is-fill { background: var(--blue-900); }
.cal__grid .cal__lb { margin-top: 60px; justify-self: start; }
.cal__grid .cal__lb--end { justify-self: end; grid-column: 1 / -1; }
@media (max-width: 479px) { .cal__grid .cal__lb { white-space: normal; grid-column: 1 / -1; } .cal__grid .cal__lb--end { justify-self: end; } .cal__grid { grid-template-rows: 28px repeat(3, 100px) !important; } }
/* 割合：名前・横棒・数字を1行ずつ */
.share__rows { display: grid; gap: 12px; margin-top: 12px; }
.share__rows li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; align-items: center; column-gap: 12px; font-size: 15px; }
.share__b { height: 16px; width: calc(var(--w) * 1%); max-width: 100%; border-radius: 8px; background: var(--gray-420); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.share__rows li.is-me .share__b { background: var(--blue-900); }
.share__rows b { text-align: right; font-size: 17px; color: var(--gray-900); }
.share__rows li.is-me b, .share__rows li.is-me .share__n { color: var(--blue-900); font-weight: 700; }
.motion .share:not(.is-in) .share__b { width: 0; }
@media (max-width: 374px) { .share__rows li { grid-template-columns: 104px minmax(0, 1fr) 52px; column-gap: 8px; } }
.sub { margin-top: 40px; font-size: 19px; line-height: 1.5; }
.sec > .sub + p { margin-top: 8px; font-size: 16px; }
/* よい点と注意点：対になる組ごとに並べる */
.pairs { display: grid; gap: 16px; }
.pairs li { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--gray-200); }
.pairs p { font-size: 16px; line-height: 1.7; }
.pairs span { display: block; font-size: 14px; font-weight: 700; }
.pairs__g span { color: var(--green-800); }
.pairs__c span { color: var(--orange-800); }
.pairs__g { font-weight: 700; color: var(--gray-900); }
@media (min-width: 600px) { .pairs li { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
/* プレゼント：記入例は縦に1件、説明は3つのまとまり */
.gift__ex { margin: 8px 0 0; display: grid; gap: 0; }
.gift__ex div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--gray-420); }
.gift__ex dt { font-size: 14px; color: var(--gray-600); }
.gift__ex dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--gray-900); }
.gift__sheet { background: var(--white); border: 1px solid var(--gray-420); font-size: 16px; }
.gift__sh { font-size: 14px; color: var(--gray-600); }
.gift__info { display: grid; gap: 16px; margin-top: 16px; }
.gift__h { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.gift__info p:not(.gift__h) { font-size: 15px; line-height: 1.7; }
.gift__steps { counter-reset: gs; }
.gift__steps li { counter-increment: gs; font-size: 15px; line-height: 1.7; }
.gift__steps li::before { content: counter(gs) "．"; font-weight: 700; }
.src b { color: var(--gray-800); }
/* 余白 */
.sec { margin-top: 64px; }
@media (min-width: 768px) { .sec { margin-top: 88px; } }
.share__n, .share__rows b { white-space: nowrap; }
@media (max-width: 374px) { .share__rows li { grid-template-columns: 108px minmax(0, 1fr) 52px; font-size: 14px; } .share__rows b { font-size: 16px; } }
.src li { text-wrap: balance; }

/* ===== 1周目②（デジタル庁）で直した所 ===== */
:root { --line-c: #949494; }
body { font-size: 17px; }
@media (min-width: 768px) { body { font-size: 18px; } }
h2, h3 { scroll-margin-top: 80px; }
.sec > h2 { font-size: 24px; line-height: 1.5; }
@media (min-width: 768px) { .sec > h2 { font-size: 28px; } }
.sub, .gift__t { font-size: 20px; }
/* 区切り線は背景と3:1以上 */
.four__list, .four__list li, .toc, .prep, .prep li, .two, .two__i, .pc li, .next, .next li, .rel, .rel a, .kinds, .kinds li, .pairs li { border-color: var(--line-c) !important; }
.cmp th, .cmp td { border-bottom-color: #888; }
.hd { border-bottom-color: #949494; }
/* 要点一覧：質問と「詳しく ↓」を上の行に、答えは全幅 */
.four__list a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q ar" "a a"; row-gap: 8px; }
.four__list a::after { grid-area: ar; align-self: start; }
.four__a { margin-top: 0; font-weight: 400; color: var(--gray-800); }
.four__a b { font-weight: 700; }
@media (min-width: 768px) { .four__list a { grid-template-columns: 200px minmax(0, 1fr) auto; grid-template-areas: "q a ar"; } .four__list a::after { align-self: center; } }
.four__note, .note--key { font-size: 16px !important; line-height: 1.7; color: var(--gray-800) !important; }
/* 目次はリンクだと分かる見た目に */
.toc a { color: var(--blue-1000) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.toc a::before { color: var(--gray-600); text-decoration: none; }
.toc a[aria-current="true"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--blue-900); padding-left: 8px; }
@media (hover: hover) { .toc a:hover { text-decoration-thickness: 3px; } }
/* 3方式（スマホ）：同じ順の項目 */
.kinds dl { margin: 8px 0 0; display: grid; gap: 8px; }
.kinds dl div { display: grid; gap: 0; }
.kinds dt { font-size: 14px; color: var(--gray-600); font-weight: 700; }
.kinds dd { margin: 0; font-size: 16px; line-height: 1.6; }
.kinds li { padding-top: 20px; padding-bottom: 20px; }
/* 日程：凡例と棒の色 */
.cal__key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 12px; font-size: 14px; color: var(--gray-800); }
.cal__key span { display: inline-flex; align-items: center; gap: 8px; }
.cal__key i { display: inline-block; width: 14px; height: 14px; }
.cal__key .k-o { border-radius: 50%; border: 3px solid var(--gray-800); background: var(--white); }
.cal__key .k-d { width: 12px; height: 12px; border-radius: 2px; transform: rotate(45deg); background: var(--gray-800); }
.cal__key .k-b { width: 24px; height: 10px; border-radius: 5px; background: #767676; }
.cal__bar { background: #767676 !important; }
.cal__pt { border-color: #767676; }
.cal__pt.is-fill { background: #767676; }
/* 割合：名前と％の下に、共通の幅の棒 */
.share__rows { gap: 20px; }
.share__rows li { grid-template-columns: minmax(0, 1fr) auto !important; row-gap: 8px; }
.share__t { grid-column: 1 / -1; display: block; height: 14px; border-radius: 7px; background: var(--gray-100); }
.share__b { display: block; height: 14px; }
.share__rows b { font-size: 18px; }
/* 特典：入れ子の枠を減らす（記入例は面だけ） */
.gift__sheet { border: 0; background: var(--gray-50); }
.gift__d { margin-top: 8px; }
.btn { min-height: 52px; }
/* 出典はリンク */
.src { gap: 16px; }
.src li { padding-left: 0; display: grid; gap: 2px; }
.src li::before { content: none; }
.src a { font-size: 16px; font-weight: 700; }
.src__t { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.src span:not(.src__t) { font-size: 14px; color: var(--gray-600); }
/* 固定目次：画面に収まるときだけ（v10.js で判定） */
@media (min-width: 1120px) and (min-height: 720px) { .art > .toc { position: static; } .art > .toc.is-fit { position: sticky; top: 80px; } }
.src li { gap: 4px; }
.src a { display: flex; align-items: center; min-height: 44px; }

/* ===== 2周目①：自分の志望校を調べる・節を送る ===== */
.find { margin-top: 40px; padding: 24px 20px; border-radius: var(--r); background: var(--blue-50); }
@media (min-width: 768px) { .find { padding: 32px; } }
.find__t { font-size: 20px; line-height: 1.5; }
.find__d { margin-top: 8px; font-size: 16px; line-height: 1.7; }
.find__q { width: 100%; min-height: 52px; margin-top: 16px; padding: 0 16px; border: 1px solid var(--gray-600); border-radius: 26px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 17px; }
.find__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.find__chips button { min-height: 44px; padding: 0 16px; border: 1px solid var(--gray-600); border-radius: 22px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 15px; cursor: pointer; }
.find__chips button[aria-pressed="true"] { background: var(--gray-900); border-color: var(--gray-900); color: var(--white); }
.find__n { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--gray-800); }
.find__list { display: grid; gap: 8px; margin-top: 8px; }
.find__i { display: grid; width: 100%; min-height: 56px; padding: 8px 16px; border: 1px solid var(--gray-420); border-radius: 12px; background: var(--white); color: var(--gray-900); font: inherit; text-align: left; cursor: pointer; }
.find__i b { font-size: 16px; } .find__i span { font-size: 14px; color: var(--gray-600); }
@media (hover: hover) { .find__i:hover { border-color: var(--gray-900); } }
.find__card { margin-top: 16px; padding: 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--gray-420); scroll-margin-top: 72px; }
.find__card[hidden] { display: none; }
.plan__k { font-size: 14px; font-weight: 700; color: var(--blue-900); }
.plan__t { margin-top: 4px; font-size: 19px; line-height: 1.5; }
.plan__m { margin-top: 4px; font-size: 14px; color: var(--gray-600); }
.plan__g { margin-top: 20px; }
.plan__g h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--gray-900); }
.plan__g ul, .plan__g ol { margin-top: 8px; display: grid; gap: 4px; padding-left: 20px; list-style: disc; }
.plan__g ol { list-style: decimal; }
.plan__g li { font-size: 16px; line-height: 1.7; }
.plan__s { list-style: none; margin-left: -20px; font-size: 14px !important; color: var(--gray-600); }
.plan__src { margin-top: 16px; font-size: 14px; }
.plan__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.plan__act button, .sshare button { min-height: 44px; padding: 0 16px; border: 1px solid var(--gray-600); border-radius: 22px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 15px; cursor: pointer; }
.plan__act button[data-act="ics"] { background: var(--gray-900); color: var(--white); border-color: var(--gray-900); }
.rel1 { margin-top: 20px; font-size: 16px; font-weight: 700; }
.rel1 a::after { content: " ›"; }
.sshare { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sshare button { font-size: 14px; }
.toast { position: fixed; left: 50%; top: 72px; z-index: 95; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 24px; background: var(--gray-900); color: var(--white); font-size: 15px; transform: translate(-50%, -8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
.sec { margin-top: 56px; }
@media (min-width: 768px) { .sec { margin-top: 80px; } }

/* ===== 2周目②：探す・保存する道具として ===== */
.hd__nav { display: flex; align-items: center; gap: 4px; }
.hd__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 15px; white-space: nowrap; }
.hd__nav a:last-child { display: none; }
@media (min-width: 600px) { .hd__nav a:last-child { display: inline-flex; } }
.find__scope { margin-top: 4px; font-size: 14px; color: var(--gray-800); }
.find__l { display: block; margin-top: 16px; font-size: 16px; font-weight: 700; }
.find__q { margin-top: 8px; border-color: #767676; font-size: 17px; }
.find__ex { margin-top: 8px; font-size: 14px; color: var(--gray-800); }
.find__f { margin: 16px 0 0; padding: 0; border: 0; display: grid; gap: 4px; }
.find__f legend { padding: 0; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.find__f label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.find__f input { width: 24px; height: 24px; accent-color: var(--blue-900); }
.res { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 16px; border: 1px solid #767676; border-radius: 12px; background: var(--white); }
.res__t { grid-column: 1; font-size: 16px; line-height: 1.5; }
.res__t a { display: inline-block; min-height: 24px; }
.res__p { grid-column: 1; font-size: 14px; color: var(--gray-800); }
.res__m { grid-column: 1; margin-top: 4px; }
.res__save { grid-column: 2; grid-row: 1 / span 3; align-self: center; min-height: 44px; min-width: 64px; padding: 0 12px; border: 1px solid #767676; border-radius: 22px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 14px; cursor: pointer; }
.res__save[aria-pressed="true"] { background: var(--gray-900); color: var(--white); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.tag--open { background: #e6f5ec; color: #115a36; }
.tag--soon { background: var(--blue-50); color: var(--blue-1000); }
.tag--closed { background: var(--gray-100); color: var(--gray-900); }
.tag--unk { background: var(--gray-100); color: var(--gray-800); }
.find__card { padding: 20px 20px; margin-left: -20px; margin-right: -20px; border-radius: 0; border-left: 0; border-right: 0; }
@media (min-width: 768px) { .find__card { margin-left: 0; margin-right: 0; border-radius: 16px; border: 1px solid #767676; padding: 28px; } }
.plan__back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.plan__back::before { content: "‹ "; }
.plan__t { font-size: 20px; line-height: 1.45; }
.plan__t small { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; color: var(--gray-800); }
.plan__st { margin-top: 12px; }
.plan__next { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--blue-50); }
.plan__nk { font-size: 14px; font-weight: 700; color: var(--blue-1000); }
.plan__next p + p { margin-top: 4px; font-size: 16px; font-weight: 700; }
.plan__save { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 24px; background: var(--blue-900); color: var(--white); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.plan__save[aria-pressed="true"] { background: var(--white); color: var(--blue-900); box-shadow: inset 0 0 0 2px var(--blue-900); }
@media (min-width: 768px) { .plan__save { width: auto; padding: 0 28px; } }
.plan__g { margin-top: 24px; }
.plan__g h4 small { font-size: 14px; font-weight: 400; color: var(--gray-600); margin-left: 4px; }
.plan__g li small { font-size: 14px; color: var(--gray-600); margin-left: 4px; }
.plan__s, .plan__note { font-size: 14px !important; color: var(--gray-800) !important; }
.plan__note { margin-top: 8px; }
.plan__tasks { list-style: none !important; padding-left: 0 !important; }
.plan__tasks label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.plan__tasks input { width: 22px; height: 22px; accent-color: var(--blue-900); }
.plan__act button { border-color: #767676; }
.plan__act button[data-act="ics"] { background: var(--white); color: var(--gray-900); border-color: #767676; }
.plan__teacher { margin-top: 12px; padding: 16px; border-radius: 12px; background: var(--gray-50); }
.plan__teacher[hidden] { display: none; }
.plan__tt { font-size: 15px; font-weight: 700; }
.plan__teacher pre { margin: 8px 0 0; white-space: pre-wrap; font: inherit; font-size: 15px; line-height: 1.7; }
.plan__tc, .find__retry, .find__clear { min-height: 44px; margin-top: 8px; padding: 0 16px; border: 1px solid #767676; border-radius: 22px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 15px; cursor: pointer; }
.saved { margin-top: 24px; }
.saved[hidden] { display: none; }
.saved__t { font-size: 17px; }
.saved ul { margin-top: 8px; display: grid; gap: 8px; }
.saved li { display: grid; padding: 12px 16px; border-radius: 12px; background: var(--white); border: 1px solid #767676; }
.saved li a { font-weight: 700; }
.saved li span { font-size: 14px; color: var(--gray-800); }
/* 節末：次の行動を主に、共有は控えめに */
.sshare button { border: 0; background: transparent; padding: 0 8px; color: var(--blue-1000); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.share__rows li:not(.is-me) .share__b { background: #767676; }
.sec > .sub, #more .sub { margin-top: 40px; font-size: 21px; }
#more .sub:first-of-type { margin-top: 24px; }
.sub2 { margin: 32px 0 0; font-size: 18px; }
.gift__now { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--blue-50); }
.gift__now p:not(.gift__h) { font-size: 15px; line-height: 1.7; }
.gift__h2 { margin-top: 16px; }
.logo span { white-space: nowrap; }
@media (max-width: 374px) { .logo span { display: none; } .hd__nav a { padding: 0 6px; font-size: 14px; } }
.find__f { gap: 8px; }
.find__f input, .plan__tasks input { margin: 0; flex: none; }
.step__go { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; }
.hd__nav { gap: 8px; }
@media (max-width: 374px) { .logo { min-width: 44px; justify-content: center; } .hd__nav a { padding: 0 4px; } }
.plan__note { margin-left: 0 !important; }

/* ===== 3周目①：入試を探すシート（アプリの画面のように前面に開く） ===== */
.find { margin-top: 32px; }
.find__go { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 600px) { .find__go { grid-template-columns: auto auto; justify-content: start; } }
.find__b { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid #767676; border-radius: 24px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.find__b--main { background: var(--blue-900); border-color: var(--blue-900); color: var(--white); }
.find__cont { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--white); border: 1px solid #767676; }
.find__cont[hidden] { display: none; }
.find__ck { font-size: 14px; font-weight: 700; color: var(--blue-1000); }
.find__cont p + p { margin-top: 4px; font-size: 16px; }
.find__cs { font-size: 15px !important; color: var(--gray-800); }
.find__cont .find__b { margin-top: 12px; }
.hd__b { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--blue-1000); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
body.tool-open { overflow: hidden; }
.tool { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--white); }
.tool[hidden] { display: none; }
.motion .tool:not([hidden]) { animation: toolIn .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes toolIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.tool__bar { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; height: 56px; padding: 0 12px; border-bottom: 1px solid #949494; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.tool__t { font-size: 17px; text-align: center; }
.tool__x, .tool__sv { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--blue-1000); font: inherit; font-size: 15px; cursor: pointer; }
.tool__body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 16px 20px 48px; }
.tool__side { max-width: 640px; margin: 0 auto; }
.tool .find__card { max-width: 640px; margin: 24px auto 0; }
@media (min-width: 1120px) { .tool__body { display: grid; grid-template-columns: 360px minmax(0, 720px); justify-content: center; gap: 32px; overflow: hidden; padding: 0 32px; } .tool__side, .tool .find__card { overflow: auto; max-height: calc(100dvh - 56px); padding: 24px 4px 48px; margin: 0; } .tool .find__card { border: 0; } .tool:not(.has-plan) .tool__body::after { content: "方式を選ぶと、ここに準備リストが出ます"; align-self: center; justify-self: center; color: var(--gray-600); font-size: 16px; } }
.res { grid-template-columns: minmax(0, 1fr); }
.res__t { font-size: 16px; font-weight: 700; }
.res__a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.res__open { min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--blue-900); color: var(--white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.res__save { grid-row: auto; grid-column: auto; }
.saved__o { display: grid; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--gray-900); font: inherit; text-align: left; cursor: pointer; }
.saved li { padding: 0; }
.saved__o b { font-size: 16px; color: var(--blue-1000); text-decoration: underline; text-underline-offset: 3px; }
.saved__o span { font-size: 14px; color: var(--gray-800); }
.plan__back { min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue-1000); font: inherit; font-size: 15px; cursor: pointer; }
.plan__back::before { content: "‹ "; }
@media (min-width: 1120px) { .plan__back { display: none; } }
.plan__tr { margin: 16px 0 0; padding: 12px 16px; border: 1px solid #949494; border-radius: 12px; display: grid; gap: 4px; }
.plan__tr legend { padding: 0 4px; font-size: 15px; font-weight: 700; }
.plan__tr label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-top: 10px; font-size: 15px; line-height: 1.5; }
.plan__tr input { margin: 2px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--blue-900); }
.plan__why { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plan__why button, .plan__go { min-height: 44px; padding: 0 16px; border: 1px solid var(--blue-900); border-radius: 22px; background: var(--white); color: var(--blue-1000); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.plan__go { margin-top: 12px; text-align: left; }
.ev { list-style: none !important; padding: 0 !important; margin-top: 8px; display: grid; gap: 0 !important; border-left: 2px solid #949494; }
.ev li { position: relative; display: grid; padding: 8px 0 8px 16px; }
.ev li::before { content: ""; position: absolute; left: -7px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid #767676; }
.ev li.is-past { color: var(--gray-600); }
.ev li.is-past::before { background: #949494; border-color: #949494; }
.ev li.is-next::before { background: var(--blue-900); border-color: var(--blue-900); box-shadow: 0 0 0 4px var(--blue-50); }
.ev__d { font-size: 14px; font-weight: 700; }
.ev__k { font-size: 16px; }
.ev__k em { margin-left: 8px; padding: 0 8px; border-radius: 10px; background: var(--blue-900); color: var(--white); font-size: 13px; font-size: 14px; font-style: normal; font-weight: 700; }
.ev__s { font-size: 14px; color: var(--gray-800); }
.ev li.is-past .ev__s, .ev li.is-past .ev__k { color: var(--gray-600); }
.plan__share { margin-top: 8px; font-size: 14px; color: var(--gray-800); }
.kinds__s { margin-top: 4px; font-size: 16px; line-height: 1.7; }
.toast { top: auto; bottom: 24px; }

/* ===== 3周目②：入試を探すは「別の画面」（モーダルにしない。URLと戻るで行き来） ===== */
body.tool-open { overflow: auto; }
.tool-open .hd, .tool-open .page, .tool-open .ft, .tool-open .ft2, .tool-open .skip { display: none; }
.tool { position: static; inset: auto; min-height: 100dvh; display: block; }
.tool__bar { position: sticky; top: 0; z-index: 10; }
.tool__x { justify-self: start; }
.tool__body { overflow: visible; padding-bottom: 64px; }
@media (min-width: 1120px) { .tool__body { display: grid; grid-template-columns: 360px minmax(0, 720px); align-items: start; overflow: visible; } .tool__side, .tool .find__card { position: sticky; top: 56px; max-height: calc(100dvh - 56px); overflow: auto; } }
@media (max-width: 1119px) { .tool.is-plan .tool__side { display: none; } .tool.is-plan .find__card { margin-top: 0; } }
.tool.is-saved .find__scope, .tool.is-saved .find__l, .tool.is-saved .find__q, .tool.is-saved .find__ex, .tool.is-saved .find__cond, .tool.is-saved .find__n, .tool.is-saved .find__list { display: none; }
@media (max-width: 1119px) { .tool:not(.is-saved) .saved { display: none; } }
.saved__d { margin-top: 4px; font-size: 14px; color: var(--gray-800); }
.saved__none { padding: 12px 16px; font-size: 15px; }
.find__cond { margin-top: 16px; }
.find__cond summary { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; cursor: pointer; }
.find__cn { margin-left: 4px; color: var(--blue-1000); }
.find__r { margin: 8px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
.find__r legend, .find__f legend { padding: 0; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.find__r label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.find__r input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue-900); }
.res.is-now { background: var(--blue-50); border: 2px solid var(--blue-900); }
.res__now { font-size: 14px; font-weight: 700; color: var(--blue-1000); }
.find__go.is-sub { margin-top: 8px; }
.find__go.is-sub .find__b--main { background: var(--white); color: var(--gray-900); border-color: #767676; }
.find__cont a.find__b { text-decoration: none; }
.find__more { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--gray-800); }
.find__cont { order: -1; }
.find { display: flex; flex-direction: column; }
.find__t { order: -3; } .find__d { order: -2; }
.plan__nh { margin-top: 4px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.plan__ns { margin-top: 4px; font-size: 16px; line-height: 1.6; }
.plan__next p + p:not(.plan__nh) { font-weight: 400; }
a.plan__go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 16px; border: 1px solid var(--blue-900); border-radius: 22px; background: var(--white); color: var(--blue-1000) !important; font-weight: 700; text-decoration: none; }
.plan__sv { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.plan__ok { font-size: 16px; font-weight: 700; color: #006b3f; }
.plan__ok::before { content: "✓ "; }
.plan__un, .plan__undo, .plan__tre { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--blue-1000); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plan__svd { flex-basis: 100%; font-size: 14px; color: var(--gray-800); }
.plan__msg { flex-basis: 100%; font-size: 15px; color: #006b3f; }
.plan__msg:empty { display: none; }
.plan__save { width: auto; padding: 0 28px; }
.plan__trs { margin-top: 12px; font-size: 15px; }
.plan__tr label span small { display: block; font-size: 14px; color: var(--gray-600); }
.ev__st { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--gray-800); }
.ev li.is-past .ev__st { color: var(--gray-600); }
.plan__s2 { margin-top: 4px; font-size: 14px; color: var(--gray-800); }
.toast { bottom: 24px; }
.tool__bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.tool__t { white-space: nowrap; font-size: 16px; }
.tool__sv { justify-self: end; text-align: right; }
.tool__x, .tool__sv { font-size: 14px; line-height: 1.3; }
.tool.is-plan .plan__k { display: none; }
.tag { padding: 4px 12px; }
.plan__tr { gap: 8px; }
.plan__tr label { padding-top: 12px; }
.plan__tr input { margin: 4px 0 0; }
.plan__tr label span small { text-wrap: balance; word-break: normal; }
/* ===== 4周目①：比べる・書類ごとのチェック ===== */
.res__c { margin-top: 6px; margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--gray-800); }
.plan__docs { list-style: none !important; padding-left: 0 !important; }
.plan__docs label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.plan__docs input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--blue-900); }
.plan__vb { font-size: 14px; color: var(--gray-600); }
.plan__wye { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--blue-1000); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.saved li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.saved__pick { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-left: 12px; font-size: 14px; }
.saved__pick input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue-900); }
.saved__cmp, .saved__none { grid-column: 1 / -1; padding: 12px 16px; border: 0 !important; background: none !important; }
.res__open[disabled] { background: var(--gray-100); color: var(--gray-800); cursor: default; }
a.res__open { display: inline-flex; align-items: center; text-decoration: none; color: var(--white) !important; }
.cmp2__sum { margin-top: 8px; display: grid; gap: 4px; padding-left: 20px; list-style: disc; font-size: 16px; }
.cmp2__ab { margin-top: 12px; font-size: 15px; font-weight: 700; }
.cmp2__ab span, .cmp2 dd span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--gray-900); color: var(--white); font-size: 13px; font-size: 14px; }
.cmp2 { margin: 16px 0 0; display: grid; gap: 0; }
.cmp2__r { padding: 12px 0; border-top: 1px solid #949494; }
.cmp2__r dt { font-size: 15px; font-weight: 700; }
.cmp2__r dt em { margin-left: 8px; padding: 0 8px; border-radius: 10px; background: #fff8e1; color: #8a5700; font-size: 14px; font-style: normal; }
.cmp2__r dd { margin: 8px 0 0; display: flex; align-items: baseline; font-size: 16px; line-height: 1.6; }
@media (min-width: 768px) { .cmp2__r { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 16px; } .cmp2__r dd { margin: 0; } }
.gift__how2 { margin-top: 16px; font-size: 15px; }
.ev__st { display: inline-block; white-space: nowrap; }
.gift__ex dd { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 374px) { .gift__ex div { grid-template-columns: 1fr; gap: 0; } }
/* ===== 4周目②：比べる・開閉・識別子 ===== */
.find__cond summary { list-style: none; gap: 8px; }
.find__cond summary::-webkit-details-marker { display: none; }
.find__cond summary::before { content: ""; width: 10px; height: 10px; border-right: 3px solid var(--gray-800); border-bottom: 3px solid var(--gray-800); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.find__cond[open] summary::before { transform: rotate(45deg); }
.cal__m { color: #666; }
.cmp2__ab span, .cmp2 th span { flex: none; display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 8px; border-radius: 50%; background: var(--gray-900); color: var(--white); font-size: 14px; }
.cmp2__ab small { display: block; margin-left: 32px; font-size: 14px; font-weight: 400; color: var(--gray-800); }
.cmp2__who { margin-top: 12px; display: grid; gap: 8px; }
.cmp2__uk { margin-top: 12px; color: #664b00 !important; }
.cmp2 { margin-top: 16px; }
.cmp2__t { width: 100%; border-collapse: collapse; border-top: 1px solid #949494; }
.cmp2__t caption { padding: 12px 0 4px; text-align: left; font-size: 15px; font-weight: 700; }
.cmp2__t caption em { margin-left: 8px; padding: 2px 8px; border-radius: 10px; font-size: 14px; font-style: normal; }
.st--diff { background: var(--blue-50); color: var(--blue-1000); }
.st--same { background: var(--gray-100); color: var(--gray-800); }
.st--unk { background: #fff8e1; color: #664b00; }
.cmp2__t th { display: flex; align-items: center; padding: 8px 8px 0 0; font-size: 14px; font-weight: 700; color: var(--gray-800); text-align: left; }
.cmp2__t td { padding: 4px 0 8px 32px; font-size: 16px; line-height: 1.6; }
@media (min-width: 768px) { .cmp2__t tr { display: grid; grid-template-columns: 200px 1fr; } .cmp2__t td { padding: 8px 0; } }
.cmp2__go { display: grid; gap: 8px; margin-top: 20px; }
.cmp2__go .find__b { text-decoration: none; }
@media (min-width: 600px) { .cmp2__go { grid-template-columns: 1fr 1fr; } }
.res__c { margin: 8px 0 0; display: grid; gap: 2px; font-size: 14px; }
.res__c div { display: grid; grid-template-columns: 9em 1fr; gap: 8px; }
.res__c dt { color: var(--gray-600); }
.res__c dd { margin: 0; color: var(--gray-900); }
.plan__pv { list-style: disc; margin-left: 20px; color: var(--gray-800); }
.plan__save2 { margin-top: 8px; }
.plan__tasks label { word-break: normal; overflow-wrap: anywhere; }
.cmp2__t caption em { padding: 4px 8px; }
.cmp2__t td a { display: inline-flex; align-items: center; min-height: 44px; }
.plan__tasks label { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); align-items: center; }
.plan__tasks label input { grid-column: 1; }
.plan__pv, .plan__tasks label { overflow-wrap: anywhere; }
.plan__pv { text-wrap: pretty; }
.find__fs { display: block; font-weight: 400; font-size: .875rem; color: #555; }
/* 5周目①：今の段階の作業・書類の材料・比べる区分・保存一覧 */
.plan__nk2 { margin-top: 12px; }
.plan__next .plan__tasks { margin-top: 4px; }
.plan__past { margin-top: 8px; }
.plan__past summary, .wr summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--blue-1000); cursor: pointer; list-style: none; }
.plan__past summary::-webkit-details-marker, .wr summary::-webkit-details-marker { display: none; }
.plan__past summary::before, .wr summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.plan__past[open] summary::before, .wr[open] summary::before { transform: rotate(45deg); }
.wr { border-top: 1px solid var(--gray-200); }
.wr summary small { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--gray-800); }
.wr__k { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--gray-800); }
.wr__q { margin: 4px 0 12px; padding: 8px 0 8px 12px; border-left: 4px solid var(--gray-420); font-size: 15px; line-height: 1.7; color: var(--gray-900); }
.wr__l { display: grid; gap: 4px; margin-top: 12px; font-size: 15px; font-weight: 700; }
.wr__l input { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #767676; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 400; background: var(--white); color: var(--gray-900); }
.wr__l input:focus { outline: 3px solid var(--yellow-300); outline-offset: 1px; border-color: var(--gray-900); }
.wr .plan__src { margin-bottom: 12px; }
.wr__send { margin-top: 12px; width: 100%; }
.res__hint { padding: 12px 16px; border-radius: 12px; background: var(--blue-50); list-style: none; }
.res__hint p { font-size: 15px; font-weight: 700; }
.res__hint .find__b { margin-top: 8px; width: 100%; }
.saved li { grid-template-columns: minmax(0, 1fr) !important; }
.saved__pick { border-top: 1px solid var(--gray-100); padding-left: 16px !important; }
.saved__o .saved__go { margin-top: 4px; font-weight: 700; color: var(--blue-1000); }
.cmp2__tr { display: grid; gap: 4px; margin: 8px 0 0 32px; font-size: 14px; color: var(--gray-800); }
.cmp2__tr select { min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid #767676; border-radius: 8px; font: inherit; font-size: 16px; color: var(--gray-900); background: var(--white); }
.cmp2__dt { margin-top: 8px; font-size: 15px; font-weight: 400 !important; }
.st--tr, .st--gen { background: #fff8e1; color: #664b00; }
.find__ex { margin-top: 12px; font-size: 15px; }
.find__ex a { display: inline-flex; align-items: center; min-height: 44px; }
.cmp2__tr { min-width: 0; }
.cmp2__tr select { width: 100%; box-sizing: border-box; }
.plan__pq { display: inline-flex; align-items: center; min-height: 44px; }
.tool.is-saved:not(.is-plan) .tool__sv { visibility: hidden; }
/* 5周目②：材料メモ・比べる区分・返事 */
.wr__uni { padding-bottom: 8px; }
.wr__n { margin-top: 4px; font-size: 16px; font-weight: 700; }
.wr__memo { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--gray-420); }
.wr__h { margin-top: 4px; font-size: 16px; line-height: 1.7; color: var(--gray-800); }
.wr__l { gap: 8px !important; margin-top: 24px !important; font-size: 16px !important; }
.wr__l textarea { width: 100%; min-height: 80px; padding: 12px; border: 1px solid #767676; border-radius: 8px; font: inherit; font-size: 16px; line-height: 1.6; font-weight: 400; background: var(--white); color: var(--gray-900); resize: vertical; box-sizing: border-box; overflow: hidden; }
.wr__l textarea:focus { outline: 3px solid var(--yellow-300); outline-offset: 1px; border-color: var(--gray-900); }
.wr__st { margin-top: 8px; font-size: 16px; color: var(--gray-800); }
.wr__out { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.wr__oh { font-size: 16px; font-weight: 700; }
.wr__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.wr__btns .find__b { min-height: 48px; width: 100%; }
.wr__om, .plan__ck, .cmp2__trm { margin-top: 8px; font-size: 16px; color: var(--green-800); font-weight: 700; }
.wr__om:empty, .cmp2__trm:empty { display: none; }
.cmp2__tr { border: 0; padding: 0; margin: 12px 0 0 32px; }
.cmp2__tr legend { font-size: 15px; font-weight: 700; color: var(--gray-900); padding: 0; }
.cmp2__trd { margin-top: 4px; font-size: 14px; color: var(--gray-800); }
.cmp2__tr label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px; font-size: 16px; }
.cmp2__tr input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue-900); }
.res__hint p { font-size: 16px; }
.res__hint .find__b { min-height: 48px; }
.cmp2__tr label + label { margin-top: 8px; }
.wr__k { overflow-wrap: anywhere; text-wrap: pretty; }
/* 6周目①：記事から材料へ・学校の書類の状態・比べるの区分 */
.prep__go { margin-top: 4px; font-size: 15px; }
.prep__go a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.find__sc { margin-top: 8px; font-size: 14px; color: var(--gray-800); }
.wr__qd summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--blue-1000); cursor: pointer; }
.sch { border: 0; padding: 0; margin: 0 0 8px; }
.sch legend { padding: 0; font-size: 16px; font-weight: 700; }
.sch legend small { margin-left: 8px; font-weight: 400; font-size: 14px; color: var(--gray-800); }
.sch label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 44px; font-size: 16px; }
.sch label + label { margin-top: 4px; }
.sch input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue-900); }
.plan__sch { list-style: none !important; padding-left: 0 !important; }
.plan__sch > li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.saved__w { min-height: 44px; margin: 0 16px 8px; padding: 0 16px; border: 1px solid var(--blue-900); border-radius: 22px; background: var(--white); color: var(--blue-1000); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; justify-self: start; }
.cmp2__trs { margin-top: 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--gray-200); }
.cmp2__trs .cmp2__tr { margin-left: 0; }
.cmp2__tr legend span { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 8px; border-radius: 50%; background: var(--gray-900); color: var(--white); font-size: 14px; }
.cmp2__tr label small { display: block; font-size: 14px; color: var(--gray-800); }
.gift__d { margin-top: 4px; font-size: 16px; line-height: 1.7; }
.cmp2__tr label span, .cmp2__tr small, .find__sc { overflow-wrap: anywhere; }
.cmp2__tr label span, .find__sc { padding-right: 8px; }
/* 6周目②：未記録・材料の対象・戻り先 */
.plan__write h4 { font-size: 20px; }
.wr__for { margin-top: 8px; font-size: 16px; color: var(--gray-800); }
.sch label { min-height: 48px; }
.plan__sch > li + li { margin-top: 24px; padding-top: 16px; }
.saved__more { display: flex; justify-content: center; margin-top: 12px; min-height: 48px; }
/* 7周目①：未定の人の案内・終了の案内・材料は1問から・学校の書類は状態だけ */
.guide { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--gray-200); }
.guide__q { border: 0; padding: 0; margin: 0; }
.guide__q legend { padding: 0; font-size: 16px; font-weight: 700; }
.guide__q label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px; font-size: 16px; }
.guide__q label + label { margin-top: 4px; }
.guide__q input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue-900); }
.guide__a { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.guide__h { font-size: 16px; font-weight: 700; }
.guide__a ol { margin-top: 8px; padding-left: 1.4em; font-size: 16px; line-height: 1.7; }
.guide__a li + li { margin-top: 4px; }
.guide__a li a { display: inline-flex; min-height: 44px; align-items: center; }
.guide__a .find__b { margin-top: 12px; width: 100%; justify-content: center; }
.res__hint { background: none !important; padding: 0 0 8px !important; }
.res__hint p { font-size: 15px !important; font-weight: 400 !important; color: var(--gray-800); }
.res__hb { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue-1000); font: inherit; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.wr__more { margin-top: 16px; }
.wr__more summary { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--blue-1000); cursor: pointer; }
.sch__now { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 16px; }
.sch__now b { grid-column: 1 / -1; }
.sch__now span { color: var(--gray-800); }
.sch__ed { min-height: 44px; padding: 0 16px; border: 1px solid var(--blue-900); border-radius: 22px; background: var(--white); color: var(--blue-1000); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.sch { margin-top: 8px !important; }
.saved__w { border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 16px 4px !important; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.gift__more { margin-top: 12px; }
.gift__more summary { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--blue-1000); cursor: pointer; }
/* 7周目②：補足の開閉は同じ形（左の印・16px以上・48px）。保存カードの主操作は塗り */
.guide { padding: 0 16px; }
.guide > summary, .gift__more > summary, .wr__more > summary, .wr__qd > summary, .plan__past > summary, .wr > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--blue-1000); cursor: pointer; list-style: none; }
.guide > summary::-webkit-details-marker, .gift__more > summary::-webkit-details-marker, .wr__more > summary::-webkit-details-marker, .wr__qd > summary::-webkit-details-marker { display: none; }
.guide > summary::before, .gift__more > summary::before, .wr__more > summary::before, .wr__qd > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.guide[open] > summary::before, .gift__more[open] > summary::before, .wr__more[open] > summary::before, .wr__qd[open] > summary::before { transform: rotate(45deg); }
.guide[open] > summary { margin-bottom: 8px; }
.guide[open] { padding-bottom: 16px; }
.saved__o .saved__go { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; padding: 0 16px; border-radius: 24px; background: var(--blue-1000); color: var(--white); font-size: 16px; }
@media (hover: hover) { .saved__o:hover .saved__go { background: var(--blue-900); } }
.saved__w { margin-top: 8px !important; min-height: 44px; }
#plan-write, #plan-docs, #plan-steps { scroll-margin-top: 72px; }
/* 8周目①：再訪時はたたむ・求める人物像と照らす・未定の案内 */
.plan__fold { margin-top: 16px; border-top: 1px solid var(--gray-200); }
.plan__fold > summary, .wr__ap > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--blue-1000); cursor: pointer; list-style: none; }
.plan__fold > summary::-webkit-details-marker, .wr__ap > summary::-webkit-details-marker { display: none; }
.plan__fold > summary::before, .wr__ap > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.plan__fold[open] > summary::before, .wr__ap[open] > summary::before { transform: rotate(45deg); }
.wr__ap { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--gray-200); }
.guide__a li a { display: inline-flex; min-height: 44px; align-items: center; margin-left: 4px; }
.guide__s { margin-top: 8px; font-size: 15px; color: var(--gray-800); }
.guide__s a { display: inline-flex; min-height: 44px; align-items: center; margin-left: 4px; }
#guide[open] ~ .find__ex { display: none; }
.wr[open] details:not([open]) > summary::before { transform: rotate(-45deg); }
/* 8周目②：求める人物像は「大学の要点」と「自分の入力」を分ける・たたんだ見出しに記録の有無 */
.wr__apk { margin-top: 32px; }
.wr__apq { font-size: 16px; line-height: 1.7; }
.wr__apq span { display: block; font-size: 14px; font-weight: 700; color: var(--gray-800); }
.wr__apk .wr__l { margin-top: 16px !important; }
.plan__fold > summary small, .wr__ap > summary small { margin-left: auto; padding-left: 8px; font-size: 14px; font-weight: 400; color: var(--gray-800); }
.plan__fold > summary { font-size: 18px; }
.plan__fold + .plan__fold, .plan__fold + .plan__g { margin-top: 32px; }
/* 9周目①：最近見た方式・材料メモの見出し・登録の説明 */
.rec { list-style: none; }
.rec__h { font-size: 15px; font-weight: 700; color: var(--gray-800); }
.rec ul { margin-top: 8px; display: grid; gap: 8px; list-style: none; padding: 0; }
.rec a { display: grid; gap: 2px; min-height: 48px; padding: 12px 16px; border: 1px solid #767676; border-radius: 12px; background: var(--white); text-decoration: none; color: var(--gray-900); }
.rec a b { color: var(--blue-1000); text-decoration: underline; text-underline-offset: 3px; }
.rec a span { font-size: 14px; color: var(--gray-800); }
.rec__clr { margin-top: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue-1000); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.wr > summary small { margin-left: auto; padding-left: 8px; font-size: 14px; font-weight: 400; color: var(--gray-800); }
.gift__what { margin-top: 12px; font-size: 16px; line-height: 1.7; }
.rec a { display: flex; flex-direction: column; justify-content: center; }
.rec a { gap: 4px; }
/* 9周目②：締切の近さは独立した短い行（色に頼らず言葉で）・履歴の削除と元に戻す */
.plan__soon { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--gray-900); }
.saved__o .saved__soon { font-weight: 700; color: var(--gray-900); }
.rec__clr, .rec__undo { min-height: 48px !important; font-size: 16px !important; }
.rec__undo { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--blue-1000); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rec__m { font-size: 16px; color: var(--gray-800); }
/* 10周目①：上に書いた材料を使う */
.wr__use { margin-top: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue-1000); font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wr__pick { margin-top: 8px; display: grid; gap: 8px; }
.wr__mat { min-height: 48px; padding: 8px 12px; border: 1px solid #767676; border-radius: 8px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 15px; line-height: 1.6; text-align: left; cursor: pointer; }
/* 10周目②：材料の再利用は開閉部品にそろえ、候補は「本文＋この欄に追加」の全幅ボタン */
.wr__use { margin-top: 8px; padding: 0; border: 0; background: none; text-decoration: none; }
.wr__use > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--blue-1000); cursor: pointer; list-style: none; }
.wr__use > summary::-webkit-details-marker { display: none; }
.wr__use > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.wr__use[open] > summary::before { transform: rotate(45deg) !important; }
.wr .wr__use:not([open]) > summary::before { transform: rotate(-45deg); }
.wr__pick { margin-top: 8px; display: grid; gap: 8px; }
.wr__mat { display: grid; gap: 4px; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--blue-900); border-radius: 12px; background: var(--white); color: var(--gray-900); font: inherit; font-size: 16px; line-height: 1.6; text-align: left; cursor: pointer; }
.wr__mat b { font-size: 16px; color: var(--blue-1000); }
.wr__um { margin-top: 8px; font-size: 16px; color: var(--green-800); font-weight: 700; }
.wr__um:empty { display: none; }
.wr__undo { margin-left: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue-1000); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.wr__pick .wr__h { font-weight: 400; color: var(--gray-800); }
/* 書き換える前の文章に戻す */
.wr__pv { margin-top: 8px; }
.wr__pv > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--blue-1000); cursor: pointer; list-style: none; }
.wr__pv > summary::-webkit-details-marker { display: none; }
.wr__pv > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.wr .wr__pv[open] > summary::before { transform: rotate(45deg); }
.wr .wr__pv:not([open]) > summary::before { transform: rotate(-45deg); }
.wr__pvt { margin-top: 4px; padding: 8px 0 8px 12px; border-left: 4px solid var(--gray-420); font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.wr__pvb { margin-top: 8px; width: 100%; min-height: 48px; }
.wr__pvm { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--green-800); }
.wr__pvm:empty { display: none; }
