/* アオミチ v10 見た目の層：グレーの土台に白いカード、アイコンと図、動き。v10.css のあとに読む。
   根拠：Apple HIG（docs/design/hig-jp/notes/）・DADS・docs/design/RULES.md */
:root {
  --bg: #f2f4f7; --card: #fff; --ink: #1a1a1a; --sub: #555;
  --brand: #0017c1; --brand-d: #00118f; --brand-50: #e8f1fe; --brand-100: #c5d7fb;
  --line-g: #06c755; --line-d: #00873c;
  --sh1: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --sh2: 0 2px 4px rgba(16, 24, 40, .08), 0 16px 40px rgba(16, 24, 40, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
body { background: var(--bg); }
.hd { background: rgba(242, 244, 247, .82); }
.ic { width: 24px; height: 24px; flex: none; color: currentColor; }

/* ===== ボタンの訪問済み色を消す（ボタンに見える物はリンクでも同じ色） ===== */
a.find__b, a.find__b:visited { color: var(--brand-d); }
a.find__b--main, a.find__b--main:visited, a.btn, a.btn:visited, a.b-line, a.b-line:visited { color: #fff !important; }
.find__b, .btn, .b-line, .plan__save, .res__open, .saved__o .saved__go { transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.find__b:active, .btn:active, .b-line:active, .plan__save:active, .res__open:active { transform: scale(.97); }

/* ===== 1画面目：答えの帯、式の図、まず知りたい4つ ===== */
.art__h1 { font-size: 34px; letter-spacing: .02em; }
@media (min-width: 768px) { .art__h1 { font-size: 44px; } }
.def { position: relative; padding: 20px 20px 20px 24px; border-radius: 20px; background: linear-gradient(135deg, #fff 0%, #f3f6ff 100%); box-shadow: var(--sh1); }
.def::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 4px; margin-top: 16px; }
.eq__i { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 16px 4px; border-radius: 16px; background: var(--card); box-shadow: var(--sh1); text-align: center; }
.eq__i .ic { width: 32px; height: 32px; padding: 6px; border-radius: 12px; box-sizing: content-box; background: var(--brand-50); color: var(--brand); }
.eq__i b { font-size: 16px; color: var(--ink); line-height: 1.4; }
.eq__i span { font-size: 14px; line-height: 1.4; color: var(--sub); }
.eq__op { align-self: center; font-size: 20px; font-weight: 700; color: var(--brand); }
.motion .eq:not(.is-in) .eq__i { opacity: 0; transform: translateY(12px) scale(.96); }
.eq__i { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.eq__i:nth-of-type(2) { transition-delay: .12s; } .eq__i:nth-of-type(3) { transition-delay: .24s; }

.four__list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .four__list { grid-template-columns: 1fr 1fr; } }
.four__list li { border: 0 !important; }
.four__list a { display: grid !important; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "i q" "i a"; column-gap: 12px; row-gap: 2px; height: 100%; padding: 16px !important; border-radius: 18px; background: var(--card); box-shadow: var(--sh1); text-decoration: none; color: var(--gray-800) !important; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) { .four__list a:hover { transform: translateY(-2px); box-shadow: var(--sh2); } }
.four__list a .ic { grid-area: i; width: 40px; height: 40px; padding: 8px; box-sizing: border-box; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.four__list .four__q { grid-area: q; font-size: 16px !important; color: var(--brand-d) !important; }
.four__list .four__a { grid-area: a; font-size: 15px; line-height: 1.6; }

/* ===== 入口：気になる大学では、何が必要？ ===== */
.find { padding: 24px 20px !important; border-radius: 24px !important; background: linear-gradient(160deg, #0b2bd6 0%, #0017c1 55%, #00118f 100%) !important; color: #fff; box-shadow: var(--sh2); }
.find .find__t { color: #fff; }
.find .find__d, .find .find__sc { color: rgba(255, 255, 255, .9); }
.find .find__d b { color: #fff; }
.find .find__b--main { background: #fff !important; color: var(--brand-d) !important; border-color: #fff !important; }
.find .find__ex a, .find .find__ex a:visited { color: #fff; }
.find .guide { margin-top: 16px; padding: 4px 16px; border: 0 !important; border-radius: 18px; background: rgba(255, 255, 255, .12); color: #fff; }
.find .guide[open] { background: #fff; color: var(--gray-800); padding-bottom: 16px; }
.find .guide > summary { display: grid !important; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; min-height: 64px; padding: 8px 0; color: #fff; align-content: center; }
.find .guide[open] > summary { color: var(--brand-d); }
.find .guide > summary::before { grid-row: 1 / span 2; align-self: center; }
.guide__s1 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.guide__s2 { font-size: 14px; font-weight: 400; line-height: 1.5; opacity: .9; }
.find .find__cont { color: var(--gray-800); }

/* ===== 本文の節：白いカード。見出しの頭に番号 ===== */
.art { counter-reset: sec; }
.sec { position: relative; margin-top: 24px !important; padding: 32px 20px; border-radius: 24px; background: var(--card); box-shadow: var(--sh1); counter-increment: sec; }
@media (min-width: 768px) { .sec { padding: 40px; } }
.sec > h2 { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: start; font-size: 24px !important; }
.sec > h2::before { content: counter(sec, decimal-leading-zero); display: inline-grid; place-items: center; min-width: 40px; height: 32px; margin-top: 2px; padding: 0 8px; border-radius: 16px; background: var(--brand-50); color: var(--brand); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.sec .ans { margin-top: 16px; font-size: 17px; line-height: 1.8; color: var(--ink); }
.toc { padding: 20px !important; border-radius: 20px; background: var(--card); box-shadow: var(--sh1); }
.meta { margin-top: 16px; }
.motion .sec { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion .sec.pre { opacity: 0; transform: translateY(24px); }

/* 3つの方式：アイコンつきのカード */
.kinds { display: grid; gap: 12px; border: 0 !important; }
@media (min-width: 768px) { .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kinds li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 16px !important; border: 0 !important; border-radius: 18px; background: var(--bg); }
.kinds li .ic { grid-row: 1 / span 2; width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 14px; background: #fff; color: #555; }
.kinds li.is-me { background: var(--brand-50); box-shadow: inset 0 0 0 2px var(--brand); }
.kinds li.is-me .ic { background: var(--brand); color: #fff; }
@media (min-width: 768px) { .kinds li { grid-template-columns: 1fr; } .kinds li .ic { grid-row: auto; margin-bottom: 8px; } }
.motion .kinds:not(.is-in) li { opacity: 0; transform: translateY(16px); }
.kinds li { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.kinds li:nth-child(2) { transition-delay: .1s; } .kinds li:nth-child(3) { transition-delay: .2s; }

/* 出願資格の3つ：番号の縦の流れ */
.gates { padding: 20px !important; border-radius: 20px; background: var(--bg) !important; }
.gates ol { position: relative; }
.gates ol::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: var(--brand-100); }

/* 選考の3つ：アイコンのカードを「＋」でつなぐ */
.prep { display: grid; gap: 28px; border: 0 !important; }
@media (min-width: 768px) { .prep { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.prep li { position: relative; padding: 20px !important; border: 0 !important; border-radius: 20px; background: var(--bg); }
.prep li > .ic { width: 48px; height: 48px; padding: 12px; box-sizing: border-box; border-radius: 16px; background: var(--brand); color: #fff; margin-bottom: 8px; }
.prep li + li::before { content: "＋"; position: absolute; left: 50%; top: -26px; transform: translateX(-50%); font-size: 20px; font-weight: 700; color: var(--brand); }
@media (min-width: 768px) { .prep li + li::before { left: -20px; top: 40px; transform: none; } }

/* 日程：月の目盛りに、各方式の帯と始まる日。今日の線 */
.tl { padding: 20px 16px; border-radius: 20px; background: var(--bg); }
.tl__chart { position: relative; margin-top: 16px; }
.tl__months { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tl__months span { padding-left: 4px; border-left: 1px solid #c4c9d4; font-size: 14px; line-height: 1.4; color: var(--sub); white-space: nowrap; letter-spacing: 0; }
.tl__row { margin-top: 20px; }
.tl__name { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.tl__row.is-me .tl__name { color: var(--brand); }
.tl__track { position: relative; height: 104px; }
.tl__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #dfe3ea; }
.tl__span { position: absolute; top: 50%; height: 12px; margin-top: -6px; left: calc(var(--s) / 7 * 100%); width: calc((var(--e) - var(--s)) / 7 * 100%); border-radius: 6px; background: #8a92a3; transform-origin: left; transition: transform .9s var(--ease); }
.tl__row.is-me .tl__span { background: linear-gradient(90deg, var(--brand) 0%, #4a68ff 100%); }
.tl__span--exam { height: 32px; margin-top: -16px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.tl__span--exam b { font-size: 14px; color: #fff; white-space: nowrap; }
.tl__pin { position: absolute; left: calc(var(--x) / 7 * 100%); top: 50%; display: grid; justify-items: start; transition: opacity .4s var(--ease) .5s, transform .4s var(--ease) .5s; }
.tl__pin i { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid #8a92a3; box-sizing: border-box; }
.tl__pin--d i { border-radius: 4px; transform: rotate(45deg); background: #8a92a3; }
.tl__row.is-me .tl__pin i { border-color: var(--brand); }
.tl__row.is-me .tl__pin--d i { background: var(--brand); }
.tl__pin b, .tl__pin small { position: relative; white-space: nowrap; line-height: 1.3; }
.tl__pin b { font-size: 14px; color: var(--gray-800); }
.tl__pin small { font-size: 14px; color: var(--sub); }
.tl__row.is-me .tl__pin b { color: var(--brand); }
.tl__pin--up { transform: translateY(-52px); }
.tl__pin--dn { transform: translateY(16px); }
.tl__pin--up b, .tl__pin--up small, .tl__pin--dn b, .tl__pin--dn small { left: -4px; }
.tl__today { position: absolute; top: 20px; bottom: 0; left: calc(var(--x) / 7 * 100%); width: 0; border-left: 2px dashed #c74700; pointer-events: none; }
.tl__today span { position: absolute; top: -20px; left: 4px; padding: 0 6px; border-radius: 8px; background: #c74700; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.motion .tl:not(.is-in) .tl__span { transform: scaleX(0); }
.motion .tl:not(.is-in) .tl__pin { opacity: 0; }

/* 併願：分かれ道 */
.fork { position: relative; max-width: 440px; margin-left: auto; margin-right: auto; height: 200px; }
.fork__svg { position: absolute; inset: 40px 0 auto 0; width: 100%; height: auto; }
.fork__ln { stroke: var(--brand-100); stroke-dasharray: 400; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
.motion .fork:not(.is-in) .fork__ln { stroke-dashoffset: 400; }
.fork__top { position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 8px 20px; border-radius: 20px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; }
.fork__a, .fork__b { position: absolute; bottom: 0; width: 46%; padding: 12px; border-radius: 16px; background: var(--bg); text-align: center; font-size: 14px; line-height: 1.5; }
.fork__a { left: 0; } .fork__b { right: 0; background: var(--brand-50); }
.fork__a b, .fork__b b { display: block; font-size: 16px; color: var(--ink); }
.fork__b b { color: var(--brand); }

/* 落ちたら：時間の流れ */
.next { display: grid; gap: 0; border: 0 !important; }
.next li { position: relative; padding: 12px 0 12px 40px !important; border: 0 !important; }
.next li::before { content: ""; position: absolute; left: 10px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #8a92a3; box-sizing: border-box; }
.next li.is-me::before { border-color: var(--brand); background: var(--brand); }
.next li + li::after { content: ""; position: absolute; left: 16px; top: -12px; height: 30px; width: 4px; border-radius: 2px; background: #dfe3ea; }
.next li b { display: block; font-size: 16px; }
.next li span { font-size: 15px; color: var(--sub); }

/* まず何を：番号つきの手順 */
.steps li { border-radius: 18px; }

/* 5人に1人 */
.people { padding: 20px; border-radius: 20px; background: var(--bg); text-align: center; }
.people__row { display: flex; justify-content: center; gap: 8px; }
.people__p { width: 44px; height: 44px; color: #c4c9d4; transition: transform .5s var(--ease), color .5s; }
.people__p.is-me { color: var(--brand); }
.motion .people:not(.is-in) .people__p { transform: translateY(12px); opacity: 0; }
.people__p:nth-child(2) { transition-delay: .06s; } .people__p:nth-child(3) { transition-delay: .12s; } .people__p:nth-child(4) { transition-delay: .18s; } .people__p:nth-child(5) { transition-delay: .24s; }
.people__t { margin-top: 8px; font-size: 16px; }
.people__t b { font-size: 24px; color: var(--brand); }
.share__b { transition: width 1s var(--ease) !important; }
.motion .share:not(.is-in) .share__b { width: 0 !important; }

/* ===== この内容をLINEで送る：LINEの緑とアイコン ===== */
.i-line { width: 24px; height: 24px; flex: none; }
.b-line { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 48px !important; padding: 0 20px 0 12px !important; border: 0 !important; border-radius: 24px !important; background: var(--line-g) !important; color: #fff !important; font: inherit; font-size: 16px !important; font-weight: 700; text-decoration: none !important; cursor: pointer; box-shadow: 0 4px 12px rgba(6, 199, 85, .28); }
.b-line .i-line rect { fill: #fff; }
@media (hover: hover) { .b-line:hover { background: #05b34c !important; } }
.sshare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px !important; padding-top: 20px; border-top: 1px solid #e6e8ee; }
.sshare .b-copy { min-height: 44px; padding: 0 4px !important; border: 0 !important; background: none !important; color: var(--brand-d) !important; font-size: 15px !important; text-decoration: underline; cursor: pointer; }
.plan__line { margin-top: 12px; width: 100%; }

/* ===== 入試を探す：大学名（入力候補）と学部（選択） ===== */
.find__two { display: grid; gap: 16px; margin-top: 8px; }
.find__fld { display: grid; gap: 4px; }
.cbx { position: relative; }
.cbx__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(16, 24, 40, .18), 0 0 0 1px rgba(16, 24, 40, .08); max-height: 320px; overflow: auto; }
.cbx__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.cbx__list li span { font-size: 14px; color: var(--sub); white-space: nowrap; }
.cbx__list li[aria-selected="true"] { background: var(--brand-50); }
@media (hover: hover) { .cbx__list li:hover { background: var(--brand-50); } }
.find__fac { width: 100%; min-height: 52px; padding: 0 44px 0 16px; border: 1px solid #767676; border-radius: 26px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 20px; font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.find__fac:disabled { background-color: #f2f4f7; color: var(--sub); border-color: #c4c9d4; }

/* ===== 道具の画面も土台をグレーに、カードを白に ===== */
.tool { background: var(--bg); }
.tool .find__list .res { border: 0 !important; border-radius: 18px; background: #fff; box-shadow: var(--sh1); }
.tool #plan { border-radius: 24px; background: #fff; box-shadow: var(--sh1); }

/* ===== いちばん最後：LINEの先行登録（特典） ===== */
.end { margin-top: 32px; padding: 32px 20px; border-radius: 28px; background: linear-gradient(160deg, #0a8f45 0%, #06c755 60%, #2ad46f 100%); color: #fff; box-shadow: var(--sh2); }
@media (min-width: 768px) { .end { padding: 48px; } }
.end__k { display: inline-block; padding: 4px 12px; border-radius: 14px; background: rgba(255, 255, 255, .2); font-size: 14px; font-weight: 700; }
.end__t { margin-top: 12px; color: #fff; font-size: 26px; line-height: 1.4; }
@media (min-width: 768px) { .end__t { font-size: 32px; } }
.end__d { margin-top: 12px; font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, .95); }
.end__d b { color: #fff; }
.end__pv { margin-top: 20px; padding: 20px; border-radius: 20px; background: #fff; color: var(--gray-800); box-shadow: 0 12px 32px rgba(0, 60, 25, .25); transform: rotate(-1deg); }
.end__stat { display: flex; align-items: baseline; gap: 4px 6px; flex-wrap: wrap; }
.end__stat b { font-size: 40px; line-height: 1; color: var(--line-d); }
.end__stat span { font-size: 16px; font-weight: 700; margin-right: 12px; }
.end__rows { margin-top: 12px; border-top: 1px solid #e6e8ee; }
.end__rows li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid #e6e8ee; font-size: 15px; line-height: 1.5; }
.end__rows li span:first-child { font-weight: 700; color: var(--ink); }
.end__rows li span:last-child { font-size: 14px; color: var(--sub); }
.end__blur { filter: blur(4px); user-select: none; }
.end__pv figcaption { margin-top: 8px; font-size: 14px; color: var(--sub); }
.end__how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; counter-reset: st; }
.end__how li { counter-increment: st; display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; background: rgba(255, 255, 255, .16); font-size: 14px; line-height: 1.4; text-align: center; font-weight: 700; }
.end__how li::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--line-d); font-size: 15px; }
.end .end__btn { display: flex; gap: 10px; width: 100%; min-height: 60px; margin-top: 20px; border-radius: 30px; background: #fff !important; color: var(--line-d) !important; font-size: 17px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 60, 25, .3); }
@media (min-width: 768px) { .end .end__btn { display: inline-flex; width: auto; padding: 0 32px; } }
.end .end__btn .i-line rect { fill: var(--line-g); }
.end .end__btn .i-line path { fill: #fff; }
.end__note { margin-top: 12px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.tail { margin-top: 24px; padding: 24px 20px; border-radius: 24px; background: var(--card); box-shadow: var(--sh1); }

@media (prefers-reduced-motion: reduce) {
  .motion .sec.pre, .motion .eq:not(.is-in) .eq__i, .motion .kinds:not(.is-in) li, .motion .people:not(.is-in) .people__p { opacity: 1 !important; transform: none !important; }
}
/* 日程の図：印は線の上に固定し、文字だけを上下に出す */
.tl__pin { transform: none !important; width: 0; height: 0; }
.tl__pin b, .tl__pin small { position: absolute !important; left: -4px; }
.tl__pin--up b { bottom: 32px; } .tl__pin--up small { bottom: 13px; }
.tl__pin--dn b { top: 14px; } .tl__pin--dn small { top: 33px; }
.tl__track { height: 112px; }
.tl__span--exam { height: 16px; margin-top: -8px; }
.tl__exl { position: absolute; right: 0; top: calc(50% + 14px); font-size: 14px; font-weight: 700; color: var(--gray-800); white-space: nowrap; }
.tl__today { top: 22px; bottom: 8px; }
.tl__today span { top: auto; bottom: -26px; left: -2px; transform: translateX(-50%); }
.tl__chart { padding-bottom: 24px; }
.tl__chart { padding-bottom: 40px; } .tl figcaption { margin-top: 8px; }
/* 検索欄：虫めがね・消去ボタン。受付状況は横並びの切り替え */
.cbx .find__q { padding-left: 44px !important; padding-right: 48px !important; }
.cbx__ic { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--sub); pointer-events: none; z-index: 1; }
.cbx__x { position: absolute; right: 4px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 22px; background: none; color: var(--sub); font-size: 22px; line-height: 1; cursor: pointer; z-index: 1; }
.cbx__x:active { background: #e6e8ee; }
.cbx__h { min-height: 32px !important; font-size: 14px !important; font-weight: 700; color: var(--sub); cursor: default !important; background: none !important; }
.seg { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px !important; border: 0 !important; border-radius: 12px; background: #e3e6ec; }
.seg legend { grid-column: 1 / -1; margin-bottom: 6px; padding: 0; float: left; width: 100%; }
.seg label { position: relative; display: grid !important; place-items: center; min-height: 44px; margin: 0 !important; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--gray-800); }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg label:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .16); color: var(--brand-d); }
.seg label:has(input:focus-visible) { outline: 4px solid #000; outline-offset: 0; box-shadow: 0 0 0 6px var(--yellow-300); }
/* 押している状態：枠だけのボタン・文字だけのボタンも1段濃く */
.find__b:active, .plan__un:active, .sch__ed:active, .res__save:active, .b-copy:active, .rec__clr:active { background-color: #e6e8ee !important; }
/* 本文はiPhoneの標準に合わせて17px */
@media (max-width: 767px) { body { font-size: 17px; } }
.seg { background: none !important; padding: 0 !important; }
.seg legend { margin-bottom: 8px; }
.seg label { background: #e3e6ec; border-radius: 0; }
.seg label:first-of-type { border-radius: 12px 0 0 12px; } .seg label:last-of-type { border-radius: 0 12px 12px 0; }
.seg label:has(input:checked) { background: var(--brand); color: #fff; box-shadow: none; }
/* 点検の修正：LINEの緑は文字が読める濃さ（白文字4.5:1以上）に */
:root { --line-g: #00843d; --line-d: #00692f; }
.b-line { box-shadow: 0 4px 12px rgba(0, 132, 61, .28); }
@media (hover: hover) { .b-line:hover { background: #00692f !important; } }
.end { background: linear-gradient(160deg, #005c2a 0%, #00753a 55%, #00843d 100%); }
.find__fld { gap: 8px; }
.tl__months span { padding-left: 2px; letter-spacing: -.04em; }
.prep__go a { display: inline !important; min-height: 0; line-height: 1.7; }
.prep__go { padding: 8px 0; }
/* 点検の修正2：グラデーションの下地色（読み上げ・点検用）、4pxの格子、短い行 */
.find { background-color: #0017c1 !important; }
.end { background-color: #00753a; }
.four__list a { row-gap: 4px; }
.cbx__list { padding: 8px; }
.end__stat { gap: 4px 8px; }
.end__rows li { gap: 4px; padding: 12px 0; }
.end .end__btn { gap: 8px; }
.tl__today span { padding: 0 8px; bottom: -24px; }
.tl__pin--up b { bottom: 32px; } .tl__pin--up small { bottom: 12px; }
.tl__pin--dn b { top: 12px; } .tl__pin--dn small { top: 32px; }
.tl__span { margin-top: 0 !important; transform: translateY(-50%); }
.motion .tl:not(.is-in) .tl__span { transform: translateY(-50%) scaleX(0); }
.kinds__n small { display: block; margin: 0 !important; }
.prep li > .ic, .kinds li > .ic { display: block; }
.people__t, .end__how li { text-wrap: balance; }
.end__how { grid-template-columns: 1fr; gap: 8px; }
.end__how li { grid-template-columns: 28px minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; font-size: 15px; }
@media (min-width: 768px) { .end__how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.src span, .src a { overflow-wrap: anywhere; }
@media (max-width: 359px) { body { font-size: 16px; } .sec > h2 { font-size: 21px !important; } .four__list .four__a { font-size: 14px; } }
.people__t b, .people__t span { display: block; }
.prep li { display: block !important; }
.prep__k { display: block !important; margin-top: 4px; }
.prep__go a { white-space: normal !important; overflow-wrap: anywhere; }
.src li span { white-space: normal !important; }
.tl__exl { top: calc(50% + 12px); }
.cbx__ic { left: 12px; margin-top: 0; transform: translateY(-50%); }
@media (max-width: 359px) { .eq__i span { display: none; } }
.tl__months span { padding-left: 4px; letter-spacing: -.06em; }
.fork { max-width: none; }
.fork__svg { left: 50%; width: min(100%, 440px); transform: translateX(-50%); }
.fork__a, .fork__b { width: calc(50% - 8px); }
@media (max-width: 359px) { .tl__months span { font-size: 14px; letter-spacing: -.1em; padding-left: 4px; } }
.src span { word-break: normal; line-break: auto; display: block; }
/* まず知りたい4つ：どの幅でも「アイコン｜問い・答え・詳しく」の形 */
.four__list a, .four__list a:visited { grid-template-columns: 40px minmax(0, 1fr) !important; grid-template-areas: "i q" "i a" "i ar" !important; align-items: start !important; row-gap: 4px !important; }
.four__list a::after { grid-area: ar !important; justify-self: end; align-self: end !important; margin-top: 4px; }
.four__list .four__a { max-width: none !important; font-size: 15px !important; }
.four__list a .ic { align-self: start; }
.four__t { border-bottom: 0 !important; }

/* ===== 道具の画面をシートで開く（HIG「シート」）：iPhone＝下からせり上がる、iPad＝中央のカード、PC＝左右2列の画面のまま ===== */
.tool__dim { position: fixed; inset: 0; z-index: 89; background: rgba(10, 16, 30, .42); }
.tool__dim[hidden] { display: none; }
.motion .tool__dim:not([hidden]) { animation: dimIn .3s var(--ease) both; }
@keyframes dimIn { from { opacity: 0; } to { opacity: 1; } }
.tool__grab { display: none; }
@media (max-width: 1119px) {
  body.sheet-open { overflow: hidden !important; }
  .sheet-open .page, .sheet-open .hd, .sheet-open .ft, .sheet-open .ft2 { display: block !important; }
  .sheet-open .hd { display: block !important; }
  .tool { position: fixed !important; z-index: 90; left: 0; right: 0; bottom: 0; top: auto; display: flex !important; flex-direction: column; height: calc(100dvh - 40px); min-height: 0 !important; border-radius: 16px 16px 0 0; background: var(--bg); box-shadow: 0 -8px 40px rgba(10, 16, 30, .25); overflow: hidden; transition: transform .3s var(--ease), height .3s var(--ease); }
  .tool[hidden] { display: none !important; }
  .tool.is-mid { height: 56dvh; }
  .tool.is-drag { transition: none; }
  .motion .tool:not([hidden]) { animation: sheetIn .36s var(--ease) both; }
  .motion .tool.is-out { animation: sheetOut .26s ease-in both; }
  @keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @keyframes sheetOut { from { transform: translateY(0); } to { transform: translateY(100%); } }
  .tool__grab { display: grid; place-items: center; flex: none; width: 100%; height: 20px; padding: 0; border: 0; background: rgba(255, 255, 255, .92); cursor: grab; touch-action: none; }
  .tool__grab span { width: 36px; height: 5px; border-radius: 3px; background: #b8bdc8; }
  .tool__bar { position: relative !important; top: auto !important; flex: none; border-radius: 0; touch-action: none; }
  .tool__body { flex: 1; min-height: 0; overflow: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(48px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width: 768px) and (max-width: 1119px) {
  .tool { left: 50%; right: auto; bottom: auto; top: 50%; width: min(700px, calc(100vw - 64px)); height: min(900px, calc(100dvh - 64px)); border-radius: 20px; transform: translate(-50%, -50%); }
  .tool.is-mid { height: min(900px, calc(100dvh - 64px)); }
  .tool__grab { display: none; }
  .motion .tool:not([hidden]) { animation: cardIn .3s var(--ease) both; }
  .motion .tool.is-out { animation: cardOut .22s ease-in both; }
  @keyframes cardIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
  @keyframes cardOut { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
}
@media (prefers-reduced-motion: reduce) { .tool, .tool__dim { animation: none !important; transition: none !important; } }
/* 上の棒は見た目だけの印。バー全体を下に引くと閉じる */
@media (max-width: 767px) {
  .tool__bar { padding-top: 12px !important; height: auto !important; min-height: 68px; cursor: grab; }
  .tool__grab { display: block !important; position: absolute; left: 50%; top: 6px; width: 36px; height: 5px; margin-left: -18px; padding: 0; border-radius: 3px; background: #b8bdc8; }
}
@media (max-width: 767px) { .tool__grab { margin-left: 0 !important; transform: translateX(-50%); top: 8px !important; height: 4px !important; border-radius: 2px !important; } }
@media (max-width: 1119px) { .tool__bar { -webkit-user-select: none; user-select: none; } }

/* ===== 各H2の動く図解（RULES.md 9章。動きは画面に入ったとき1回だけ。動かさない設定では完成形） ===== */
@keyframes bounce1 { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ill { margin-top: 20px; padding: 20px 16px; border-radius: 20px; background: var(--bg); }
.ill__cap { margin-top: 16px; font-size: 15px; line-height: 1.6; text-align: center; color: var(--gray-800); }
.ill__cap b { color: var(--brand-d); }

/* 01 入口は3つ：人から3本の道が伸び、総合型の扉が1回弾む */
.lanes { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; column-gap: 0; }
.lanes__me { width: 44px; height: 44px; color: var(--brand); }
.lanes ol { display: grid; gap: 12px; }
.lanes li { display: grid; grid-template-columns: minmax(16px, 1fr) auto; align-items: center; }
.lanes__ln { height: 4px; border-radius: 2px; background: #c4c9d4; transform-origin: left; transition: transform .6s var(--ease); }
.lanes li.is-me .lanes__ln { background: var(--brand); }
.lanes__d { display: grid; grid-template-columns: 36px auto; column-gap: 8px; align-items: center; width: 200px; padding: 8px 12px 8px 8px; border-radius: 16px; background: #fff; box-shadow: var(--sh1); }
.lanes__d .ic { grid-row: 1 / span 2; width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 12px; background: #eef0f4; color: #555; }
.lanes__d b { font-size: 15px; line-height: 1.4; color: var(--ink); }
.lanes__d small { font-size: 14px; line-height: 1.4; color: var(--sub); }
.lanes li.is-me .lanes__d { box-shadow: inset 0 0 0 2px var(--brand), var(--sh1); }
.lanes li.is-me .lanes__d .ic { background: var(--brand); color: #fff; }
.lanes li.is-me .lanes__d b { color: var(--brand-d); }
.motion .lanes:not(.is-in) .lanes__ln { transform: scaleX(0); }
.motion .lanes:not(.is-in) .lanes__d { opacity: 0; }
.motion .lanes.is-in .lanes__d { animation: rise .45s var(--ease) both; }
.motion .lanes.is-in li:nth-child(1) .lanes__d { animation: bounce1 .55s var(--ease) .55s both; }
.lanes li:nth-child(2) .lanes__ln { transition-delay: .15s; } .motion .lanes.is-in li:nth-child(2) .lanes__d { animation-delay: .7s; }
.lanes li:nth-child(3) .lanes__ln { transition-delay: .3s; } .motion .lanes.is-in li:nth-child(3) .lanes__d { animation-delay: .85s; }
@media (max-width: 359px) { .lanes__d { width: 176px; } }

/* 02 3つの関門：人が道を進み、通った関門から順に色が付く */
.gt { position: relative; }
.gt__road { position: relative; height: 44px; margin: 0 calc(100% / 6); }
.gt__ln { position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 2px; background: #c4c9d4; }
.gt__ln::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--brand); transform-origin: left; transition: transform 1.2s var(--ease) .1s; }
.gt__me { position: absolute; top: 0; left: 100%; width: 40px; height: 40px; margin-left: -20px; color: var(--brand); transition: left 1.2s var(--ease) .1s; }
.gt ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.gt li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.gt__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--brand); color: #fff; transition: background-color .3s, color .3s; }
.gt__ic .ic { width: 28px; height: 28px; }
.gt li b { font-size: 15px; line-height: 1.4; color: var(--ink); }
.motion .gt:not(.is-in) .gt__ln::after { transform: scaleX(0); }
.motion .gt:not(.is-in) .gt__me { left: 0; }
.motion .gt:not(.is-in) .gt__ic { background: #fff; color: #8a92a3; }
.gt li:nth-child(1) .gt__ic { transition-delay: .15s; } .gt li:nth-child(2) .gt__ic { transition-delay: .65s; } .gt li:nth-child(3) .gt__ic { transition-delay: 1.15s; }

/* 03 3つが1つに集まる：線が描かれ、結論が1回弾む */
.mg { text-align: center; }
.mg__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mg__in li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 16px; background: #fff; box-shadow: var(--sh1); }
.mg__in .ic { width: 32px; height: 32px; padding: 6px; box-sizing: content-box; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.mg__in b { font-size: 15px; line-height: 1.4; color: var(--ink); }
.mg__in em { font-style: normal; font-size: 14px; font-weight: 700; color: #fff; background: var(--brand); padding: 0 8px; border-radius: 12px; line-height: 1.6; }
.mg__ln { display: block; width: 100%; height: 56px; }
.mg__ln path { stroke: var(--brand-100); stroke-dasharray: 200; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) .4s; }
.mg__out { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 24px; background: var(--brand); color: #fff; }
.mg__out .ic { width: 24px; height: 24px; }
.mg__out b { font-size: 16px; color: #fff; }
.motion .mg:not(.is-in) .mg__in li { opacity: 0; }
.motion .mg.is-in .mg__in li { animation: rise .45s var(--ease) both; }
.motion .mg.is-in .mg__in li:nth-child(2) { animation-delay: .1s; } .motion .mg.is-in .mg__in li:nth-child(3) { animation-delay: .2s; }
.motion .mg:not(.is-in) .mg__ln path { stroke-dashoffset: 200; }
.motion .mg:not(.is-in) .mg__out { opacity: 0; }
.motion .mg.is-in .mg__out { animation: bounce1 .55s var(--ease) 1.1s both; }

/* 06 落ちても道は続く：線が上から描かれ、点が順に出る */
.next.ill { padding: 16px 16px 8px; }
.next li::after { transform-origin: top; transition: transform .4s var(--ease); }
.next li::before { transition: transform .35s var(--ease), opacity .35s; }
.motion .next:not(.is-in) li::after { transform: scaleY(0); }
.motion .next:not(.is-in) li::before { transform: scale(0); opacity: 0; }
.motion .next:not(.is-in) li > * { opacity: 0; }
.next li > * { transition: opacity .4s; }
.next li:nth-child(2)::after { transition-delay: .3s; } .next li:nth-child(2)::before, .next li:nth-child(2) > * { transition-delay: .6s; }
.next li:nth-child(3)::after { transition-delay: .8s; } .next li:nth-child(3)::before, .next li:nth-child(3) > * { transition-delay: 1.1s; }

/* 07 手順：アイコンつき。道が上から伸びて、番号が順に出る */
.steps.ill { padding: 20px 16px 4px; }
.steps li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding-left: 48px !important; }
.steps li > .ic { grid-row: 1 / span 2; width: 32px; height: 32px; padding: 6px; box-sizing: border-box; border-radius: 10px; background: #fff; color: var(--brand); box-shadow: var(--sh1); }
.steps li::before { background: var(--brand) !important; transition: transform .35s var(--ease); }
.steps li:not(:last-child)::after { border-left-color: var(--brand-100) !important; transform-origin: top; transition: transform .45s var(--ease); }
.motion .steps:not(.is-in) li::before { transform: scale(0); }
.motion .steps:not(.is-in) li::after { transform: scaleY(0); }
.motion .steps:not(.is-in) li > * { opacity: 0; }
.steps li > * { transition: opacity .4s; }
.steps li:nth-child(2)::before, .steps li:nth-child(2) > * { transition-delay: .5s; } .steps li:nth-child(1)::after { transition-delay: .2s; }
.steps li:nth-child(3)::before, .steps li:nth-child(3) > * { transition-delay: 1s; } .steps li:nth-child(2)::after { transition-delay: .7s; }

/* 09 AO→総合型：置き換え（古い方が薄く小さく、新しい方が弾んで出る） */
.ao.ill { gap: 8px; }
.ao__col { background: #fff !important; box-shadow: var(--sh1); transition: transform .5s var(--ease), opacity .5s; }
.ao__col.is-me { box-shadow: inset 0 0 0 2px var(--brand), var(--sh1); }
.ao__ic { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 12px; background: var(--brand); color: #fff; }
.ao__ar { transform-origin: left; transition: transform .5s var(--ease) .3s; background: var(--brand) !important; }
.ao__ar::after { border-left-color: var(--brand) !important; }
.motion .ao.is-in .ao__col:not(.is-me) { transform: scale(.96); opacity: .7; }
.motion .ao:not(.is-in) .ao__ar { transform: scaleX(0); }
.motion .ao:not(.is-in) .ao__col.is-me { opacity: 0; }
.motion .ao.is-in .ao__col.is-me { animation: bounce1 .6s var(--ease) .7s both; }

/* 入口の見本：大学名を入れると、3つが順に出る */
.demo { margin-top: 16px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .12); }
.demo__q { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; color: var(--ink); font-size: 16px; }
.demo__q .ic { width: 20px; height: 20px; color: var(--sub); }
.demo__t { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--brand); width: 4.2em; transition: width .8s steps(4); }
.demo__r { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.demo__r span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 8px; border-radius: 16px; background: #fff; color: var(--brand-d); font-size: 14px; font-weight: 700; transition: opacity .35s, transform .35s var(--ease); }
.demo__r .ic { width: 20px; height: 20px; }
.motion .demo:not(.is-in) .demo__t { width: 0; }
.motion .demo:not(.is-in) .demo__r span { opacity: 0; transform: translateY(8px); }
.demo__r span:nth-child(1) { transition-delay: .9s; } .demo__r span:nth-child(2) { transition-delay: 1.05s; } .demo__r span:nth-child(3) { transition-delay: 1.2s; }

/* まず知りたい4つ：カードが順に出る */
.four__list li { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.motion .four__list:not(.is-in) li { opacity: 0; transform: translateY(12px); }
.four__list li:nth-child(2) { transition-delay: .08s; } .four__list li:nth-child(3) { transition-delay: .16s; } .four__list li:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ill *, .ill *::before, .ill *::after, .demo *, .four__list li { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .gt__me { left: calc(500% / 6 - 20px) !important; } .gt__ln::after { transform: none !important; } .demo__t { width: 4.2em !important; }
}
.lanes .ill__cap { grid-column: 1 / -1; }
.ao__ar { background: var(--brand) !important; height: 4px; border-radius: 2px; }
.ao__ar::after { border-left-color: var(--brand) !important; top: -4px; }
@media (max-width: 479px) {
  .ao__ar { width: 4px !important; height: 28px !important; background: var(--brand) !important; transform-origin: top; }
  .ao__ar::after { content: ""; right: auto !important; left: -4px; top: auto !important; bottom: -8px !important; border: 6px solid transparent !important; border-top: 8px solid var(--brand) !important; border-bottom: 0 !important; }
  .motion .ao:not(.is-in) .ao__ar { transform: scaleY(0); }
}
/* 図解の調整：狭い幅でも折り返さない・はみ出さない */
.lanes li { grid-template-columns: minmax(12px, 1fr) minmax(0, 200px); }
.lanes__d { width: auto; }
.gt__road { margin: 0; }
.gt__ln { left: calc(100% / 6); right: calc(100% / 6); }
.gt__me { margin-left: 0; left: calc(500% / 6 - 20px); }
.motion .gt:not(.is-in) .gt__me { left: calc(100% / 6 - 20px); }
@media (max-width: 359px) {
  .sec { padding-left: 16px; padding-right: 16px; }
  .ill { padding-left: 8px; padding-right: 8px; }
  .gt li b, .mg__in b { font-size: 14px; letter-spacing: 0; }
  .mg__in li { padding: 12px 0; }
  .mg__in em { padding: 0 4px; }
  .lanes { grid-template-columns: 36px minmax(0, 1fr); } .lanes__me { width: 36px; height: 36px; }
}
@media (max-width: 479px) {
  .ao__ar { width: 16px !important; background: linear-gradient(var(--brand), var(--brand)) center / 4px 100% no-repeat !important; }
  .ao__ar::after { left: 2px !important; }
}
@media (max-width: 374px) { .mg__in em { font-size: 14px; white-space: nowrap; letter-spacing: -.04em; } }

/* ===== 学部：Appleのポップアップボタンとメニュー（HIG「ポップアップボタン」「メニュー」） ===== */
.pop { position: relative; }
.pop__b { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 0 12px 0 20px; border: 1px solid #767676; border-radius: 26px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.pop__b:disabled { background: #f2f4f7; border-color: #c4c9d4; color: var(--sub); font-weight: 400; cursor: default; }
.pop__b:not(:disabled):active { background: #eef0f4; transform: scale(.98); }
.pop__b[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.pop__chev { width: 20px; height: 20px; flex: none; color: var(--brand); }
.pop__b:disabled .pop__chev { color: #8a92a3; }
.pop__m { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); max-height: min(400px, 56vh); overflow: auto; margin: 0; padding: 8px; list-style: none; border-radius: 22px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 16px 48px rgba(10, 16, 30, .22); transform-origin: top center; outline: none; overscroll-behavior: contain; }
.pop__m.is-up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
@media (prefers-reduced-transparency: reduce) { .pop__m { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.motion .pop__m:not([hidden]) { animation: popIn .32s cubic-bezier(.2, .9, .25, 1.15) both; }
.motion .pop__m.is-out { animation: popOut .16s ease-in both; }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes popOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.96); } }
.pop__m li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px 8px 8px; border-radius: 12px; font-size: 16px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.pop__m li small { font-size: 14px; color: var(--sub); white-space: nowrap; }
.pop__ck { width: 20px; height: 20px; color: var(--brand); visibility: hidden; }
.pop__m li[aria-selected="true"] { font-weight: 700; color: var(--brand-d); }
.pop__m li[aria-selected="true"] .pop__ck { visibility: visible; }
.pop__m li.is-act { background: rgba(0, 23, 193, .08); }
@media (hover: hover) { .pop__m li:hover { background: rgba(0, 23, 193, .08); } }
.pop__m li:active { background: rgba(0, 23, 193, .14); }
.pop__all { margin-bottom: 8px; position: relative; }
.pop__all::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -4px; height: 1px; background: rgba(0, 0, 0, .1); }

/* ===== 動く図解のエンジン（v10-motion.js）が使う部品 ===== */
.lanes, .mg, .fork, .next { position: relative; }
.mo__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.mo__lines path { fill: none; stroke: #c4c9d4; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.mo__lines path.is-me { stroke: var(--brand); }
.lanes > *:not(.mo__lines), .mg > *:not(.mo__lines), .fork > *:not(.mo__lines) { position: relative; z-index: 1; }
.fork > .fork__top, .fork > .fork__a, .fork > .fork__b { position: absolute; }
.mo__dot { position: absolute; left: 0; top: 0; z-index: 2; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0, 23, 193, .18); offset-rotate: 0deg; offset-anchor: center; pointer-events: none; }
.mo__dot.is-sub { background: #8a92a3; box-shadow: 0 0 0 4px rgba(138, 146, 163, .2); }
.mo__dot { margin: 0; }
.mo__w { display: inline-block; white-space: pre; }
.mo__b { font-weight: 700; color: var(--brand-d); }
.mo-wait > *:not(.mo__lines) { opacity: 0; }
.lanes .lanes__ln { display: none; }
.lanes li { grid-template-columns: minmax(24px, 1fr) minmax(0, 200px); }
.next.mo-done li::before, .next.mo-done li::after { transition: none; }
@media (prefers-reduced-motion: reduce) { .mo-wait > * { opacity: 1 !important; } }
.lanes li { display: flex !important; justify-content: flex-end; }
.lanes__d { width: min(220px, calc(100% - 32px)) !important; }
@media (max-width: 359px) { .lanes__d { width: calc(100% - 16px) !important; padding-right: 8px; } .lanes__d b { font-size: 14px; } }
/* 動きの数値の調整（RULES.md 10章）：棒は軸から400〜700ms、40msずらし。数字は桁の幅を固定 */
.share__b { transition: width .6s cubic-bezier(.05, .7, .1, 1) !important; }
.share li:nth-child(2) .share__b { transition-delay: .04s !important; } .share li:nth-child(3) .share__b { transition-delay: .08s !important; }
.share b, .end__stat b, .people__t b { font-variant-numeric: tabular-nums; }
.tl__span { transition: transform .8s cubic-bezier(.2, 0, 0, 1) !important; }
.tl__pin { transition: opacity .25s linear .55s !important; }

/* ===== 図解（内容から作り直し 2026-10-26。review/diagram-design.md） ===== */
.ill__lead { margin-bottom: 16px; font-size: 16px; line-height: 1.6; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.ill__lead b { color: var(--brand-d); }
.ill__note { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--sub); }
.ill .ic-s { width: 16px; height: 16px; }

/* 01 3つの入口が時間の順に並ぶ道 */
.road__list { position: relative; display: grid; gap: 12px; }
.road__list li { position: relative; display: grid; grid-template-columns: 52px 24px minmax(0, 1fr); align-items: center; column-gap: 8px; }
.road__list::before { content: ""; position: absolute; left: 70px; top: 24px; bottom: 24px; width: 4px; border-radius: 2px; background: #dfe3ea; }
.road__m { font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--sub); text-align: right; }
.road__list li.is-me .road__m { color: var(--brand); }
.road__node { position: relative; z-index: 1; width: 20px; height: 20px; margin-left: 2px; border-radius: 50%; background: #fff; border: 4px solid #8a92a3; box-sizing: border-box; }
.road__list li.is-me .road__node { border-color: var(--brand); background: var(--brand); }
.road__c { display: grid; gap: 4px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--sh1); }
.road__list li.is-me .road__c { box-shadow: inset 0 0 0 2px var(--brand), var(--sh1); }
.road__c > b { font-size: 16px; line-height: 1.4; color: var(--ink); }
.road__list li.is-me .road__c > b { color: var(--brand-d); }
.road__k { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 2px 10px 2px 6px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.road__k .ic { width: 18px; height: 18px; }
.road__k.is-open { background: var(--brand-50); color: var(--brand-d); }
.road__k.is-lock { background: #fff3e6; color: #8a3b00; }
.road__how { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 14px; line-height: 1.5; color: var(--sub); }
.road__how .ic { width: 18px; height: 18px; color: #8a92a3; }
.road__list li.is-me .road__how .ic { color: var(--brand); }
.road .mo__lines { z-index: 0; }

/* 02 方式ごとに必要な条件だけが濃く付く */
.cond__list { display: grid; gap: 12px; }
.cond__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; row-gap: 8px; align-items: start; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--sh1); }
.cond__list li > span { grid-column: 2; }
.cond__n { grid-row: 1 / span 3; align-self: center; font-size: 15px; color: var(--ink); }
.cond__i { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 12px 4px 8px; border-radius: 14px; font-size: 14px; line-height: 1.5; color: #8a92a3; background: #f2f4f7; }
.cond__i .ic { width: 18px; height: 18px; }
.cond__i.is-on { background: var(--brand); color: #fff; font-weight: 700; }
@media (min-width: 600px) { .cond__list li { grid-template-columns: 64px repeat(3, auto) 1fr; } .cond__list li > span { grid-column: auto; } .cond__n { grid-row: auto; } }

/* 03 方式ごとの帯が部品で組み上がる */
.mix__key { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mix__key li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #fff; }
.mix__key .ic { width: 18px; height: 18px; }
.k-doc { background: #2a47c9; } .k-talk { background: #0b7a6c; } .k-pen { background: #b93c00; }
.mix__rows { display: grid; gap: 12px; }
.mix__rows li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; align-items: center; }
.mix__n { font-size: 15px; color: var(--ink); }
.mix__bar { display: flex; gap: 4px; }
.mix__bar i { flex: 1 1 0; display: grid; place-items: center; min-height: 44px; padding: 4px; border-radius: 10px; font-style: normal; font-size: 14px; line-height: 1.3; font-weight: 700; color: #fff; text-align: center; transform-origin: left center; }

/* 05 合格したあと、ほかの大学への道が残るか */

/* 06 落ちても道は続く */
.nx .next { margin: 0; }
.nx__k { display: inline-block; margin-bottom: 4px; padding: 0 8px; border-radius: 10px; background: #fff3e6; color: #8a3b00; font-size: 14px; font-weight: 700; line-height: 1.6; }
.st .steps { margin: 0; }
.ao__lead { grid-column: 1 / -1; }
.ill { position: relative; }
.nx__k { justify-self: start; width: fit-content; }
.next li { display: grid; justify-items: start; }
.road .mo__lines { z-index: 1; }
.road__node { z-index: 2; }
/* HIG「タイポグラフィ」：見出しの段（タイトル1 28／タイトル2 22）。iPhoneの和文は26に */
.sec > h2 { font-size: 26px !important; line-height: 1.4; }
@media (min-width: 768px) { .sec > h2 { font-size: 28px !important; } }
.sub { font-size: 22px; line-height: 1.45; }
.cbx .find__q::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.cbx .find__q::placeholder { color: #767676; }
/* HIG「アクセシビリティ」：コントラストを上げる設定 */
@media (prefers-contrast: more) {
  :root { --sub: #333; --brand-50: #d6e4fd; }
  .sec, .tail, .toc, .ill, .road__c, .cond__list li, .four__list a { box-shadow: 0 0 0 1px #333 !important; }
  .cond__i:not(.is-on) { color: #333 !important; opacity: 1 !important; }
}
/* 図の狭い幅：併願の2場面は縦に並べ、道の月の列を細く */
@media (max-width: 359px) {
  .road__list li { grid-template-columns: 44px 24px minmax(0, 1fr); }
  .road__list::before { left: 62px; }
  .road__c { padding: 12px; }
}
.ao__lead { text-wrap: balance; }
/* 点検の修正：4pxの格子・文字の濃さ（必要でない条件は点線の枠＋読める濃さ） */
.road__m small, .road__m span { display: block; }
.road__m small { font-size: 14px; font-weight: 400; }
.road__node { margin-left: 0; justify-self: center; }
.road__k { padding: 0 12px 0 8px; }
.road__how { gap: 4px; }
.cond__i { gap: 8px; }
.cond__i:not(.is-on) { color: #5f6672; background: transparent; box-shadow: inset 0 0 0 1px #b0b6c3; }
.mix__key li { padding: 0 12px 0 8px; }
@media (max-width: 359px) { .sec > h2 { font-size: 22px !important; } }
@media (max-width: 359px) { .road__list li { grid-template-columns: 48px 24px minmax(0, 1fr); column-gap: 4px; } .road__list::before { left: 62px; } .road__m span { letter-spacing: -.04em; } }

/* 05 専願・併願：進学先が「いつ決まるか」を、時間の背骨をはさんだ2本の道で比べる */
.hg__g { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); column-gap: 8px; row-gap: 20px; align-items: center; margin-top: 12px; }
.hg__g > *:not(.mo__lines) { position: relative; z-index: 1; }
.hg__h { justify-self: center; padding: 4px 12px; white-space: nowrap; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.6; box-shadow: var(--sh1); }
.hg__h.is-me { background: var(--brand); color: #fff; }
.hg__k { color: var(--sub); font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; }
.hg__c { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px; background: #fff; box-shadow: var(--sh1); text-align: center; }
.hg__c b { color: var(--ink); font-size: 15px; line-height: 1.35; }
.hg__c em { color: var(--sub); font-size: 14px; font-style: normal; line-height: 1.35; }
.hg__c.is-pass { background: var(--brand); }
.hg__c.is-pass b, .hg__c.is-pass em { color: #fff; }
.hg__c.is-shut { background: #eceef2; box-shadow: none; }
.hg__c.is-shut b, .hg__c.is-shut em { color: #5f6672; }
.hg__c.is-shut b { text-decoration: line-through; text-decoration-thickness: 2px; }
.hg__c .ic { width: 20px; height: 20px; color: #5f6672; }
.hg__st { padding: 0 8px; border-radius: 8px; background: #fff3e6; color: #8a3b00; font-size: 14px; font-weight: 700; line-height: 1.7; }
.hg__tg { padding: 0 8px; border-radius: 8px; background: #fff; color: var(--brand-d); font-size: 14px; font-weight: 700; line-height: 1.7; }
.hg__pk { position: relative; display: flex; gap: 4px; }
.hg__pk i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f2f4f7; color: var(--ink); font-size: 14px; font-weight: 700; font-style: normal; }
.hg__ring { position: absolute; left: 30px; top: -2px; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--brand); }
.hg .mo__lines path.is-shut { stroke: #c4c9d4; stroke-dasharray: .02 .025; }
.hg__note { margin-top: 12px; color: var(--sub); font-size: 14px; line-height: 1.6; }
@media (prefers-contrast: more) { .hg__c, .hg__h { box-shadow: 0 0 0 1px #333 !important; } }

/* キネティック・タイポグラフィ：見出しは言葉ごとに下からせり上がり、図の結論は読んだ所から灯る（スクロールに連動・戻すと逆再生） */
.kt__w { display: inline-block; white-space: pre; }
.kt__m { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; }
.kt__m > .kt__w { will-change: transform; }
.ill__lead b { background: linear-gradient(var(--hl), var(--hl)) 0 88% / 100% .42em no-repeat; }
:root { --hl: #c5d7fb; }
.kt__l { display: block; min-width: 0; }
@media (max-width: 359px) {
  .hg__g { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); column-gap: 4px; }
  .hg__h { padding: 4px 8px; font-size: 14px; }
  .hg__c b { font-size: 14px; }
  .hg__pk { gap: 2px; }
  .hg__pk i { width: 24px; height: 24px; font-size: 14px; }
  .hg__ring { left: 25px; top: -2px; width: 28px; height: 28px; }
}
.nw { display: inline-block; }
@media (max-width: 359px) { .hg__st, .hg__tg { padding: 0 4px; } .hg__c { padding: 8px 4px; } .hg__pk { gap: 4px; } .hg__pk i { width: 22px; height: 22px; } .hg__ring { left: 24px; width: 28px; height: 28px; top: -3px; } }

/* ===== 2026-11-02 第3回点検：重なり・二重の帯・閉じ方（ゆうき「操作しずらい」） ===== */
/* 候補・学部の一覧は、下の物を覆わず押し下げる（覆うと下のボタンが隠れ、カードからはみ出して下の節に重なっていた） */
.cbx__list, .pop__m { position: static !important; margin-top: 8px; max-height: min(360px, 50vh); box-shadow: 0 0 0 1px #d9dce3 !important; background: #fff; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.pop__m.is-up { margin-top: 8px; }
.motion .pop__m:not([hidden]) { animation: popDown .22s var(--ease) both; }
@keyframes popDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1119px) {
  /* シートを開いたら、ページの見出しの帯は暗い幕の下へ（帯が二重に見えて、どこを操作するか分からなかった） */
  .sheet-open .hd { z-index: 1 !important; }
  /* シートの帯：閉じるは左のカプセルのボタン、題は1行、保存した準備は右の小さなボタン（2行に折れていた） */
  .tool__bar { grid-template-columns: auto minmax(0, 1fr) auto !important; }
  .tool__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px !important; }
  .tool__x { min-height: 36px !important; padding: 0 14px !important; border-radius: 999px !important; background: #eef0f4 !important; color: var(--ink) !important; font-weight: 700 !important; }
  .tool__sv { white-space: nowrap; font-size: 14px !important; }
}
/* 出てくる動きは短く（0.6秒以下）。読みに来た人を待たせない（第3回点検 A5） */
.motion .sec { transition-duration: .4s !important; transition-delay: 0s !important; }
.fork__ln, .share__b, .gt__ln::after, .tl__span { transition-duration: .6s !important; }
.gt__me { transition-duration: .6s !important; transition-delay: 0s !important; }
.mg__ln path { transition-duration: .5s !important; transition-delay: .1s !important; }
/* 大学名の候補（検索欄の中）は浮かせたまま、白い不透明の面とはっきりした縁にして、下の物と混ざって見えないようにする */
.fq__sug { z-index: 60 !important; background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 0 0 1px #c4c9d4, 0 16px 40px rgba(10, 16, 30, .28) !important; }
/* この記事について（ほかの記事と同じ形にそろえる。2026-11-02「全部合わせる」） */
.about-art { margin-top: 32px; padding: 20px; border-radius: 20px; background: var(--card, #fff); box-shadow: var(--sh1); }
.about-art h2 { margin: 0 0 8px; font-size: 20px; }
.about-art ul { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.7; color: var(--ink); }
.about-art li { margin: 4px 0; }
.about-art .srcs { margin-top: 12px; }
