/* maniauka ─ CASE 2「ヒーローバンド」/ Fluent方向
   Segoe UI系・MS青(#0067C0)・白カード+ごく薄い影。琥珀は締切の緊張色として維持 */
:root {
  --font: "Segoe UI Variable", "Segoe UI", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  --ms-blue: #0067C0;
  --ms-blue-d: #005A9E;
  --ms-blue-l: #EFF6FC;
  --ink: #1B1A19;
  --sub: #605E5C;
  --hair: #EDEBE9;
  --stroke: #D2D0CE;
  --bg: #FAF9F8;
  --card: #FFFFFF;
  --amber: #C97F1F;
  --amber-ink: #8A5A14;
  --amber-bg: #FDF3E7;
  --ok: #107C41;
  --warn: #A4262C;
  --shadow-2: 0 1.6px 3.6px rgba(0,0,0,.10), 0 .3px .9px rgba(0,0,0,.07);
  --shadow-8: 0 6.4px 14.4px rgba(0,0,0,.11), 0 1.2px 3.6px rgba(0,0,0,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.65; overflow-x: hidden;
  word-break: keep-all; overflow-wrap: break-word; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
a { color: var(--ms-blue-d); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--ms-blue); outline-offset: 2px; border-radius: 2px;
}

/* ==== ヘッダー / フッター ==== */
.site-head { background: var(--card); border-bottom: 1px solid var(--hair); position: relative; z-index: 3; }
.head-in { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ms-blue-d); }
.brand-mark { color: var(--ms-blue-d); }
.brand-t { font-weight: 600; font-size: 16px; line-height: 1.15; letter-spacing: -.01em; }
.brand-t small { display: block; font-weight: 400; font-size: 10px; letter-spacing: .28em; color: var(--sub); }
.nav a { text-decoration: none; font-size: 13px; margin-left: 20px; color: var(--ink); }
.nav a:hover { color: var(--ms-blue-d); }
.site-foot { border-top: 1px solid var(--hair); margin-top: 64px; padding: 22px 0 44px; color: var(--sub); font-size: 12px; background: var(--card); }
.foot-meta { margin-top: 8px; font-size: 11px; font-variant-numeric: tabular-nums; }

/* ==== ヒーロー(青の面) ==== */
.hero { margin: 0 calc(50% - 50vw); background: linear-gradient(120deg, #0B4A8F, #0067C0 70%); color: #fff; }
.hero-in { max-width: 820px; margin: 0 auto; padding: 46px 20px 64px; }
.hero h1 { font-size: clamp(26px, 4.6vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.32; }
.hero p { margin-top: 12px; font-size: 14px; opacity: .92; max-width: 54ch; }
.hero .nowrap { white-space: nowrap; }

/* ==== 浮遊カード(入力) ==== */
.ask-card { position: relative; z-index: 2; background: var(--card); border-radius: 10px;
  box-shadow: var(--shadow-8); padding: 22px; margin-top: -40px; }
.mode-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--hair); margin-bottom: 20px; }
.mode-tabs button { all: unset; cursor: pointer; font-family: inherit; font-size: 13.5px; color: var(--sub);
  padding: 2px 2px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mode-tabs button.on { color: var(--ms-blue-d); font-weight: 600; border-color: var(--ms-blue); }
.genre-tabs button .mono { font-size: 11px; color: var(--sub); margin-left: 2px; }
.genre-tabs button.on .mono { color: var(--ms-blue-d); }
.q { font-size: clamp(19px, 3.2vw, 24px); font-weight: 600; line-height: 2.05; letter-spacing: -.01em; }
.slot { display: inline-block; position: relative; margin: 0 2px; white-space: nowrap; }
.slot select, .slot input[type="date"] {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .8em; color: var(--ms-blue-d);
  background: var(--card); border: 1px solid var(--stroke); border-bottom: 2px solid var(--ms-blue);
  border-radius: 4px; padding: 4px 26px 4px 10px; line-height: 1.5;
}
.slot::after { content: "⌄"; position: absolute; right: 9px; top: 50%; transform: translateY(-58%);
  font-size: .62em; color: var(--ms-blue); pointer-events: none; }
.slot-exam select { max-width: 13em; overflow: hidden; text-overflow: ellipsis; }

.lv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lv label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--stroke); background: var(--card);
  padding: 7px 14px; font-size: 12.5px; color: var(--sub); cursor: pointer; border-radius: 4px; user-select: none; }
.lv input { width: 15px; height: 15px; accent-color: var(--ms-blue); }
.lv label:has(input:checked) { background: var(--ms-blue); border-color: var(--ms-blue); color: #fff; }
.lv label:has(input:checked) input { accent-color: #fff; }

.go { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.btn, .btn-run { display: inline-block; background: var(--ms-blue); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px; padding: 10px 24px; border-radius: 4px; text-decoration: none; }
.btn:hover, .btn-run:hover { background: var(--ms-blue-d); }
.btn-sec { display: inline-block; background: var(--card); color: var(--ink); border: 1px solid var(--stroke);
  border-radius: 4px; padding: 10px 20px; font-size: 13.5px; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn-sec:hover { border-color: var(--ms-blue); color: var(--ms-blue-d); }
.hint { font-size: 12px; color: var(--sub); }
.capline { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ms-blue-d); font-variant-numeric: tabular-nums; min-height: 1.4em; }

/* ==== 結果 ==== */
.result { margin-top: 26px; }
.r-verdict { font-size: clamp(20px, 3.4vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.r-verdict b { color: var(--ms-blue-d); font-size: 1.3em; }
.r-cond { font-size: 11.5px; color: var(--sub); margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.r-group { margin-top: 18px; }
.r-group h3 { font-size: 13px; font-weight: 600; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid var(--ms-blue); }
.r-ng h3 { border-color: var(--stroke); color: var(--sub); }
.r-row { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--hair); border-radius: 6px;
  margin-top: 8px; box-shadow: var(--shadow-2); text-decoration: none; color: var(--ink); }
.r-row > span:first-child { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.r-row:hover { background: var(--ms-blue-l); }
.r-row b { font-size: 14px; }
.r-row small { display: block; font-size: 11.5px; color: var(--sub); }
.r-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.m-t { font-size: 12px; font-weight: 600; }
.ok { color: var(--ok); }
.tight { color: var(--amber-ink); }
.meter { width: 130px; height: 6px; background: var(--hair); border-radius: 3px; position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ms-blue); border-radius: 3px; }
.meter.gi i { background: var(--amber); }
.r-chip { display: inline-block; font-size: 10.5px; border: 1px solid var(--hair); border-radius: 3px;
  padding: 1px 7px; margin-left: 5px; color: var(--sub); background: var(--card); }
.r-ng .r-row { opacity: .74; }
.r-none { font-size: 12px; color: var(--sub); margin-top: 14px; }
.r-warn { font-size: 13.5px; color: var(--warn); margin-top: 10px; }
.m2 { background: var(--card); border: 1px solid var(--hair); border-radius: 6px; box-shadow: var(--shadow-2);
  padding: 14px 16px; margin-top: 10px; }
.m2-lv { font-size: 11px; color: var(--sub); }
.m2-ready { font-size: 15px; margin-top: 4px; }
.m2-ready b, .m2-target b { color: var(--ms-blue-d); }
.m2-target { font-size: 14px; margin-top: 6px; }
.m2-sub { font-size: 12px; color: var(--sub); margin-top: 4px; }
.m2-over { font-size: 13px; color: var(--amber-ink); background: var(--amber-bg);
  border-left: 3px solid var(--amber); border-radius: 4px; padding: 10px 14px; margin-top: 10px; }
.m2-over b { color: var(--amber-ink); }

/* ==== セクション / 締切 / チップ ==== */
section { margin-top: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sec-head h2 { font-size: 16px; font-weight: 600; color: var(--ink); }
.sec-sub { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.dl-list { list-style: none; }
.dl-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--hair); border-radius: 6px; padding: 12px 14px;
  margin-top: 8px; box-shadow: var(--shadow-2); }
.dl-row.urgent { border-left: 3px solid var(--amber); }
.dl-date { font-size: 13px; font-weight: 600; color: var(--ms-blue-d); font-variant-numeric: tabular-nums; }
.dl-body { min-width: 0; overflow-wrap: anywhere; }
.dl-body a { font-weight: 600; text-decoration: none; color: var(--ink); }
.dl-body a:hover { color: var(--ms-blue-d); }
.dl-body small { display: block; font-size: 11.5px; color: var(--sub); }
.dl-days { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.urgent .dl-days { color: var(--amber-ink); font-weight: 700; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chip-link { display: inline-block; font-size: 12px; background: var(--card); border: 1px solid var(--stroke);
  border-radius: 4px; padding: 5px 12px; color: var(--ink); text-decoration: none; }
.chip-link:hover { border-color: var(--ms-blue); color: var(--ms-blue-d); }
.chip.c-fix { border-color: var(--ms-blue); color: var(--ms-blue-d); }
.chip.c-cbt { border-color: var(--ok); color: var(--ok); }
.chip.c-warn { background: var(--amber-bg); border-color: var(--amber); color: var(--amber-ink); }
.cta { text-align: center; }

/* ==== 横断プロモ枠(PR) ==== */
.promo { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--stroke); border-bottom: 1px dashed var(--stroke); padding-bottom: 22px; }
.cat-promo { margin-top: 14px; padding-top: 14px; padding-bottom: 22px; border-bottom: 1px dashed var(--stroke); }
.promo .sec-sub { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--sub);
  border: 1px solid var(--stroke); border-radius: 3px; padding: 1px 7px; }
.promo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.promo-item { display: block; background: var(--card); border: 1px solid var(--hair); border-radius: 6px;
  padding: 12px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-2); }
.promo-item:hover { border-color: var(--ms-blue); }
.promo-item b { display: block; font-size: 13.5px; color: var(--ms-blue-d); }
.promo-item small { display: block; font-size: 11.5px; color: var(--sub); margin-top: 3px; line-height: 1.5; }
.chip-ad { text-decoration: none; }
.chip-ad:hover { border-color: var(--ms-blue); color: var(--ms-blue-d); }

/* ==== 一覧 ==== */
.page-title { font-size: 24px; font-weight: 600; margin-top: 30px; letter-spacing: -.01em; }
.lede { color: var(--sub); font-size: 13px; margin-top: 4px; }
.lst { margin-top: 36px; }
.lst-h { font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--ms-blue); padding-bottom: 8px; }
.lst-h span { font-size: 11px; color: var(--sub); font-weight: 400; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 6px; padding: 13px 14px;
  margin-top: 8px; box-shadow: var(--shadow-2); text-decoration: none; color: var(--ink); }
.lrow-n { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.lrow-r { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lrow:hover { background: var(--ms-blue-l); }
.lrow b { font-size: 14px; }
.lrow small { display: block; font-size: 11.5px; color: var(--sub); }
.lrow-r { font-size: 11.5px; color: var(--sub); text-align: right; max-width: 48%; font-variant-numeric: tabular-nums; }

/* ==== 詳細 ==== */
.crumbs { font-size: 11px; color: var(--sub); margin-top: 18px; }
.crumbs a { color: var(--sub); }
.d-head { margin-top: 12px; }
.d-head h1 { font-size: clamp(22px, 4.6vw, 28px); font-weight: 600; letter-spacing: -.01em; line-height: 1.4; margin: 4px 0; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--ms-blue-d); }
.d-org { font-size: 12.5px; color: var(--sub); margin-bottom: 10px; }
.kensan { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; box-shadow: var(--shadow-2); padding: 18px; }
.k-form { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: baseline; font-size: 13.5px; }
.kf { display: inline-flex; gap: 8px; align-items: baseline; color: var(--sub); }
.k-form .slot select, .k-form .slot input { font-size: 13px; padding: 4px 24px 4px 8px; }
.kensan .lv { margin-top: 14px; }
.kensan .btn-run { margin-top: 16px; font-size: 13.5px; padding: 9px 20px; }
.k-out { margin-top: 6px; }
.sess { background: var(--card); border: 1px solid var(--hair); border-radius: 6px; box-shadow: var(--shadow-2);
  padding: 14px 16px; margin-top: 8px; }
.sess.s-open { border-left: 3px solid var(--ms-blue); }
.sess.s-finished { opacity: .55; }
.sess-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sess-head h3 { font-size: 14.5px; font-weight: 600; }
.badge { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 2px 9px; white-space: nowrap; }
.b-open { background: #DEECF9; color: var(--ms-blue-d); }
.b-before { background: var(--ms-blue-l); color: var(--ms-blue-d); }
.b-waiting, .b-tba { background: var(--hair); color: var(--sub); }
.b-finished { background: var(--hair); color: #A19F9D; }
.sess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sess-grid dt { font-size: 11px; color: var(--sub); }
.sess-grid dd { font-size: 13px; font-weight: 600; color: var(--ms-blue-d); font-variant-numeric: tabular-nums; }
.sess-note { font-size: 11.5px; color: var(--sub); margin-top: 8px; border-top: 1px dashed var(--hair); padding-top: 8px; }
table.hours { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--hair); display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hours th, .hours td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--hair); font-size: 13px; }
.hours thead th { border-top: none; font-size: 11px; color: var(--sub); font-weight: 600; background: var(--bg); }
.h-num { font-weight: 600; color: var(--ms-blue-d); white-space: nowrap; font-variant-numeric: tabular-nums; }
.h-num .unit { font-size: 11px; color: var(--sub); margin-left: 3px; font-weight: 400; }
.h-cond { color: var(--sub); font-size: 12px; }
.basis { font-size: 11.5px; color: var(--sub); margin-top: 8px; }
.alert { background: var(--amber-bg); border: 1px solid var(--amber); border-radius: 6px; padding: 14px 16px; }
.alert h2 { font-size: 14px; font-weight: 600; color: var(--amber-ink); margin-bottom: 6px; }
.alert p { font-size: 13px; }
.official { text-align: center; }

/* ==== 読み物(記事) ==== */
.art-head { margin-top: 16px; }
.art-head h1 { font-size: clamp(22px, 4.4vw, 30px); font-weight: 600; letter-spacing: -.01em; line-height: 1.5; margin: 6px 0 8px; }
.art-meta { font-size: 11.5px; color: var(--sub); }
.art-body { margin-top: 30px; max-width: 68ch; }
.art-body p { margin: 16px 0; font-size: 14.5px; line-height: 1.85; }
.art-body h2 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ms-blue); }
.art-body table.hours { margin: 6px 0 4px; }
.art-body .basis { margin-top: 20px; }
.art-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); }
.art-foot .btn-sec { display: inline-block; margin-top: 14px; }
.art-row .lrow-n small { margin-top: 3px; }
.art-body li { min-width: 0; overflow-wrap: anywhere; }
.small { font-size: 11.5px; color: var(--sub); margin-top: 10px; }

/* ==== レスポンシブ / 配慮 ==== */
@media (max-width: 560px) {
  .hero-in { padding: 34px 20px 56px; }
  .ask-card { padding: 18px 16px; }
  .q { line-height: 2.15; font-size: 20px; }
  /* iOS Safariは16px未満の入力でタップ時に自動ズームするため16pxに固定 */
  .slot select, .slot input[type="date"],
  .k-form .slot select, .k-form .slot input { font-size: 16px; padding: 5px 26px 5px 10px; }
  .btn, .btn-run { padding: 12px 26px; }
  .dl-row { grid-template-columns: 1fr auto; }
  .dl-date { grid-column: 1 / -1; }
  .sess-grid { grid-template-columns: 1fr; }
  .r-row, .lrow { flex-direction: column; align-items: stretch; gap: 6px; }
  .r-right { align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-run, .btn-sec, .chip-link, .mode-tabs button, .r-row, .lrow { transition: background .12s ease, border-color .12s ease, color .12s ease; }
}
