
:root {
  --ink: #0A1628;
  --ink-2: #1E2235;
  --muted: #4A5068;
  --faint: #8B91A8;
  --line: #E8E9EF;
  --paper: #F4F5F8;
  --card: #FFFFFF;
  --blue: #2952A3;
  --blue-soft: #EBF2FF;
  --gold: #D4A017;
  --gold-deep: #92670A;
  --gold-soft: #FDF4D0;
  --bad: #B4472F;
  --bad-soft: #FBEDE9;
  --good: #2F7D5B;
  --good-soft: #E8F4EE;

  --lane-vendor: #6B7FA8;
  --lane-mcp: #C07A2B;
  --lane-diy: #7A5BA6;
  --lane-musou: #2952A3;

  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fs-body: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt" 0;
}
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--ink); color: #fff;
}
.bar__name { font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em; }
.bar__tag { font-size: 0.75rem; background: var(--gold); color: var(--ink); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.sound {
  margin-left: auto; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; cursor: pointer;
}
.sound[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }

main { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
.screen { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.btn {
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  font-weight: 700; font-size: 1rem; line-height: 1.2; min-height: 48px;
  transition: transform .15s var(--ease), background .15s;
}
.btn:active { transform: scale(.97); }
.btn--main { background: var(--gold); color: var(--ink); box-shadow: 0 2px 0 var(--gold-deep); }
.btn--main:hover { background: #E8BA35; }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn--link { background: transparent; color: var(--blue); text-decoration: underline; padding-inline: 8px; }
.btn[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.intro {
  background: var(--card); border-radius: var(--radius); padding: 28px 22px;
  border-top: 4px solid var(--gold); box-shadow: 0 1px 2px rgba(10,22,40,.06);
  display: grid; gap: 18px;
}
.intro__kicker { color: var(--gold-deep); font-weight: 700; font-size: 0.8125rem; letter-spacing: .1em; }
.intro__title { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); line-height: 1.4; letter-spacing: .02em; }
.intro__lead { color: var(--ink-2); }
.intro__lanes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.intro__lanes li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-weight: 700; font-size: 0.9375rem; }
.intro .btn--main { justify-self: start; min-width: 200px; font-size: 1.0625rem; }
.intro__maker { font-size: 0.875rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }

.dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.dot--vendor { background: var(--lane-vendor); }
.dot--mcp { background: var(--lane-mcp); }
.dot--diy { background: var(--lane-diy); }
.dot--musou { background: var(--lane-musou); }

.office {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px; min-height: 76px;
}
.office__title { font-size: 0.75rem; letter-spacing: .1em; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.office__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.office__chips li {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 3px 10px; border-radius: 999px; font-size: 0.875rem;
  animation: pop .35s var(--ease) both;
}
.office__chips .tnum { font-weight: 700; color: var(--gold); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.ask { background: var(--card); border-radius: var(--radius); padding: 22px 18px; display: grid; gap: 16px; box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.ask__step { color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.q { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.q__title { font-size: clamp(1.0625rem, 1rem + .5vw, 1.25rem); font-weight: 700; line-height: 1.6; padding: 0; }
.q__hint { color: var(--muted); font-size: 0.875rem; }
.num { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.num input {
  width: 9em; max-width: 60vw; font-size: 1.5rem; font-weight: 700; padding: 8px 12px;
  border: 2px solid var(--line); border-radius: 10px; background: var(--paper);
  font-variant-numeric: tabular-nums; text-align: right;
}
.num input:focus { border-color: var(--blue); outline: none; background: #fff; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-size: 0.9375rem; min-height: 40px;
}
.chip:hover { border-color: var(--blue); }

.soft { display: grid; gap: 10px; }
.soft__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.soft__more summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 8px 0; }
.soft__more[open] summary { margin-bottom: 8px; }
.soft__item {
  border: 2px solid var(--line); border-radius: 12px; padding: 10px; background: var(--paper);
  display: grid; gap: 8px; transition: border-color .15s, background .15s;
}
.soft__item.is-on { border-color: var(--blue); background: #fff; }
.soft__name { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; min-height: 32px; }
.soft__name input { width: 20px; height: 20px; accent-color: var(--blue); }
.soft__amount { display: flex; gap: 6px; }
.soft__amount label { flex: 1; }
.soft__amount input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.soft__amount span {
  display: block; text-align: center; padding: 4px 0; border-radius: 8px; border: 1px solid var(--line);
  font-size: 0.875rem; cursor: pointer; background: #fff;
}
.soft__amount input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.soft__amount input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.soft__count { display: flex; align-items: center; gap: 4px; }
.soft__count input { width: 100%; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; text-align: right; font-variant-numeric: tabular-nums; font-size: 16px; }
.by-count { display: flex; gap: 8px; align-items: center; font-size: 0.9375rem; color: var(--muted); }

.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
  display: block; text-align: center; padding: 12px 8px; border: 2px solid var(--line); border-radius: 12px;
  cursor: pointer; font-weight: 700; background: var(--paper);
}
.pick input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.error { color: var(--bad); font-weight: 700; min-height: 1.7em; }
.ask__nav { display: flex; justify-content: space-between; gap: 10px; }
.ask__nav .btn--main { min-width: 140px; }

.months { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.months li {
  text-align: center; font-size: 0.6875rem; color: var(--faint); padding: 4px 0 6px;
  border-bottom: 4px solid var(--line); font-variant-numeric: tabular-nums;
  transition: color .3s, border-color .3s;
}
.months li.is-past { border-color: var(--faint); }
.months li.is-now { color: var(--ink); font-weight: 700; border-color: var(--gold); }
.months li.has-event::after { content: "●"; display: block; font-size: 0.5rem; line-height: 1; color: var(--gold-deep); }

.card {
  background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
  border-left: 6px solid var(--gold); box-shadow: 0 4px 16px rgba(10,22,40,.08);
  min-height: 112px; perspective: 800px;
}
.card.is-flip { animation: flip .55s var(--ease) both; }
@keyframes flip {
  0% { transform: rotateX(70deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.card__month { font-weight: 700; color: var(--gold-deep); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.card__text { font-size: clamp(1.0625rem, 1rem + .6vw, 1.375rem); font-weight: 700; line-height: 1.55; margin-top: 4px; }

.lanes { display: grid; gap: 8px; }
.lane {
  background: var(--card); border-radius: 12px; padding: 12px 14px;
  border-left: 6px solid var(--c); display: grid; gap: 6px;
  transition: background .3s;
}
.lane[data-lane="vendor"] { --c: var(--lane-vendor); }
.lane[data-lane="mcp"] { --c: var(--lane-mcp); }
.lane[data-lane="diy"] { --c: var(--lane-diy); }
.lane[data-lane="musou"] { --c: var(--lane-musou); }
.lane__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lane__name { font-weight: 700; font-size: 0.9375rem; }
.lane__stats { display: flex; gap: 12px; font-size: 0.8125rem; color: var(--muted); flex-wrap: wrap; }
.lane__stats b { color: var(--ink); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.lane__stats .is-up { animation: bump .5s var(--ease); display: inline-block; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: var(--bad); } 100% { transform: scale(1); } }
.lane__effect { font-size: 0.9375rem; line-height: 1.6; min-height: 1.6em; }
.lane.k-bad { background: var(--bad-soft); }
.lane.k-good { background: var(--good-soft); }
.lane.k-work { background: var(--blue-soft); }
.lane.k-off { background: #ECEDF1; color: var(--muted); }
.lane.k-bad .lane__effect::before { content: "▲ "; color: var(--bad); }
.lane.k-good .lane__effect::before { content: "▼ "; color: var(--good); }
.lane.is-off .lane__stats { visibility: hidden; }
.lane__bar { position: relative; height: 18px; border-radius: 999px; background: rgba(10,22,40,.07); overflow: hidden; }
.lane__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(135deg, #D9826C 0 6px, #C9654C 6px 12px); border-radius: 999px; transition: width .6s var(--ease); }
.lane__bar span { position: relative; display: block; padding-left: 8px; font-size: 0.75rem; line-height: 18px; font-weight: 700; color: var(--ink); }

.run__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }

.result__title { font-family: var(--serif); font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem); margin-bottom: 14px; }
.result__table { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.rt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rt th, .rt td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.rt th:first-child, .rt td:first-child { text-align: left; }
.rt thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 700; background: var(--paper); }
.rt tbody th { font-weight: 700; font-size: 0.9375rem; }
.rt tbody th .dot { display: inline-block; margin-right: 8px; vertical-align: -1px; }
.rt td b { font-size: 1.25rem; }
.rt td.is-bad b { color: var(--bad); }
.rt td small { color: var(--muted); }
.result__closing { margin-top: 14px; padding: 14px 16px; background: var(--good-soft); border-radius: 12px; font-weight: 700; }
.result__combo { margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; }
.result__note { margin-top: 6px; color: var(--muted); font-size: 0.8125rem; }
.nextq { margin-top: 16px; background: var(--gold-soft); border-radius: 12px; padding: 12px 16px; }
.nextq summary { cursor: pointer; font-weight: 700; }
.nextq ol { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
.result__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.result__contact { margin-top: 16px; font-size: 0.9375rem; }
.tbd { color: var(--faint); font-size: 0.8125rem; }

@media (max-width: 560px) {
  .rt thead { display: none; }
  .rt, .rt tbody, .rt tr, .rt th, .rt td { display: block; width: 100%; }
  .rt tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .rt th, .rt td { border: 0; padding: 2px 0; text-align: left; }
  .rt td { display: flex; justify-content: space-between; }
  .rt td::before { content: attr(data-label); color: var(--muted); font-size: 0.8125rem; }
}

.rules { width: min(860px, 94vw); max-height: 88vh; border: 0; border-radius: var(--radius); padding: 0; }
.rules::backdrop { background: rgba(10,22,40,.5); }
.rules__head { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rules__head h2 { font-size: 1.125rem; }
.rules__body { padding: 16px 18px 24px; display: grid; gap: 18px; font-size: 0.9375rem; }
.rules__body h3 { font-size: 1rem; margin-bottom: 6px; }
.rules__body table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.rules__body th, .rules__body td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.rules__body a { color: var(--blue); word-break: break-all; }
.rules__body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.foot { max-width: 960px; margin: 0 auto; padding: 18px 16px 32px; color: var(--muted); font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; border-top: 1px solid var(--line); }
.foot__links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (min-width: 720px) {
  .lanes { grid-template-columns: 1fr 1fr; }
  .intro { padding: 40px; }
  .ask { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.q__title { margin-bottom: 4px; }
.rt td small { display: block; }
@media (max-width: 560px) {
  .rt td small { display: inline; margin-left: 4px; }
  .rt td[data-label="職員さんが覚える使い方"] > span { text-align: right; }
}

@media (max-width: 719px) {
  .lane { padding: 10px 12px; gap: 4px; }
  .lane__effect { font-size: 0.875rem; }
  .card { min-height: 96px; padding: 14px 16px; margin-bottom: 10px; }
  #run { padding-bottom: 84px; }
  .run__nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244,245,248,.96); border-top: 1px solid var(--line);
    flex-wrap: nowrap;
  }
  .run__nav .btn { padding-inline: 14px; font-size: 0.9375rem; }
  .run__nav .btn--link { padding-inline: 4px; font-size: 0.8125rem; }
}

.share { display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: var(--line); }
.share span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem; font-weight: 700; white-space: nowrap; overflow: hidden; transition: flex .25s var(--ease); min-width: 3px; }
.share__sum { font-size: 0.8125rem; color: var(--muted); margin-top: -4px; }
.soft__pct { display: flex; align-items: center; gap: 8px; }
.soft__pct input[type="range"] { flex: 1; min-width: 0; accent-color: var(--blue); height: 28px; }
.soft__pct output { width: 3.2em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.soft__item { min-width: 0; }
.soft__pct { min-width: 0; }
.soft__pct input[type="range"] { width: 100%; }
.share__legend { list-style: none; margin: -2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8125rem; font-weight: 700; }
.share__legend li { display: flex; align-items: center; gap: 5px; }
.share__legend i { width: 10px; height: 10px; border-radius: 2px; }

.rules__body thead th { white-space: nowrap; }
.rules__body table { min-width: 720px; }
.rules__body td:last-child { min-width: 280px; }

.rt__holder small { display: block; font-size: 0.75rem; line-height: 1.5; }
@media (max-width: 560px) {
  .rt td.rt__holder > span { text-align: right; max-width: 60%; }
}
.aware { margin-top: 20px; background: var(--card); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--blue); box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.aware__title { font-size: 1.0625rem; margin: 0 0 12px; }
.aware__cols { display: grid; gap: 14px; }
.aware__head { font-size: 0.875rem; color: var(--blue); margin: 0 0 6px; }
.aware ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 0.9375rem; }
.aware__offer { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.9375rem; font-weight: 700; }
@media (min-width: 720px) { .aware__cols { grid-template-columns: 1fr 1fr; } }

.lane__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lane__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-s { font-size: 0.8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; animation: pop .3s var(--ease) both; }
.c-bad { background: var(--bad); color: #fff; }
.c-good { background: var(--good); color: #fff; }
.c-work { background: var(--blue); color: #fff; }
.c-same { background: var(--line); color: var(--muted); }
.c-off { background: #DADCE3; color: var(--muted); }
.lane__meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m { display: flex; flex-direction: column; align-items: center; background: var(--paper); border-radius: 8px; padding: 4px 0; line-height: 1.2; }
.m b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.m small { font-size: 0.6875rem; color: var(--muted); }
.lane.k-bad, .lane.k-good, .lane.k-work, .lane.k-off { background: var(--card); }
.lane.k-bad { box-shadow: inset 0 0 0 2px var(--bad); }
.lane.k-good { box-shadow: inset 0 0 0 2px var(--good); }
.lane.k-bad .lane__effect::before, .lane.k-good .lane__effect::before { content: none; }
.lane.is-off .lane__meters { display: none; }
.lane__bar { height: 8px; }
.lane__effect { display: none; font-size: 0.8125rem; color: var(--muted); }
.lanes.show-text .lane__effect { display: block; }
.text-toggle { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--blue); text-decoration: underline; font-size: 0.875rem; cursor: pointer; padding: 6px; }
.card__all { margin-top: 8px; font-size: 0.9375rem; color: var(--bad); font-weight: 700; }

.result__cards { display: grid; gap: 10px; }
@media (min-width: 720px) { .result__cards { grid-template-columns: 1fr 1fr; } }
.rc { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.rc__name { font-size: 1rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.rc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rm { background: var(--paper); border-radius: 10px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.rm b { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rm b small { font-size: 0.75rem; margin-left: 1px; }
.rm span { font-size: 0.6875rem; color: var(--muted); line-height: 1.3; }
.rm em { font-style: normal; font-size: 0.6875rem; font-weight: 700; color: var(--ink-2); }
.rm.is-bad { background: var(--bad-soft); }
.rm.is-bad b { color: var(--bad); }
.rc__off { color: var(--muted); font-size: 0.9375rem; }
.result__combo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--card); border-radius: 12px; padding: 10px 14px; font-size: 0.875rem; }
.result__combo span { color: var(--muted); }
.aware__head { display: inline-block; font-size: 0.75rem; color: #fff; padding: 2px 10px; border-radius: 999px; }
.aware__head--sec { background: var(--blue); }
.aware__head--edu { background: var(--gold-deep); }
.aware ul { font-size: 0.9375rem; }
.aware__more { margin-top: 10px; font-size: 0.875rem; }
.aware__more summary { cursor: pointer; color: var(--blue); }
.aware__more ul { margin-top: 8px; color: var(--ink-2); font-size: 0.8125rem; }

.fwhen { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 999px; padding: 4px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.fwhen__btn { border: 0; background: transparent; border-radius: 999px; padding: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; color: var(--muted); }
.fwhen__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ftabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
@media (min-width: 720px) { .ftabs { grid-template-columns: repeat(4, 1fr); } }
.ftab { text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 10px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
.ftab b { font-size: 0.9375rem; }
.ftab small { grid-column: 2; font-size: 0.6875rem; color: var(--muted); line-height: 1.3; }
.ftab[aria-selected="true"] { border-color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(10,22,40,.12); }
.fscene { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.fscene__when { font-weight: 700; color: var(--gold-deep); font-size: 0.875rem; margin-bottom: 8px; }
.fscene__off { color: var(--muted); padding: 20px 0; text-align: center; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(5, 1fr); } }
.fcell { background: var(--paper); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 118px; }
.fcell.is-bad { background: var(--bad-soft); }
.fcell__title { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.fcell__pics { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; min-height: 28px; flex: 1; }
.fcell__value { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.fcell.is-bad .fcell__value { color: var(--bad); }
.ic { width: 24px; height: 24px; animation: pop .3s var(--ease) both; }
.ic--paper { color: var(--faint); }
.ic--book { color: var(--blue); }
.ic--person { color: var(--ink-2); }
.ic--key { color: var(--gold-deep); }
.fcell.is-bad .ic--paper, .fcell.is-bad .ic--book, .fcell.is-bad .ic--person { color: var(--bad); }
.ic-more { font-weight: 700; font-size: 0.8125rem; margin-left: 2px; }
.ic-none { font-size: 0.8125rem; color: var(--muted); }
.fissue { margin-top: 12px; font-weight: 700; font-size: 1rem; line-height: 1.6; }
.fsig__title { font-size: 1.0625rem; margin: 20px 0 8px; }
.fsig { background: var(--card); border-radius: var(--radius); padding: 10px; box-shadow: 0 1px 2px rgba(10,22,40,.06); overflow-x: auto; }
.fsig__head, .fsig__row { display: grid; grid-template-columns: minmax(120px, 1.6fr) repeat(4, minmax(48px, 1fr)); align-items: center; gap: 4px; }
.fsig__head span { font-size: 0.6875rem; color: var(--muted); text-align: center; line-height: 1.3; }
.fsig__head .dot { display: block; margin: 0 auto 2px; }
.fsig__row { width: 100%; border: 0; background: transparent; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.fsig__row[aria-pressed="true"] { background: var(--blue-soft); border-radius: 8px; }
.fsig__label { font-size: 0.875rem; font-weight: 700; }
.sig { display: inline-block; width: 18px; height: 18px; border-radius: 50%; justify-self: center; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.sig--red { background: #D9452B; }
.sig--yellow { background: #E8B020; }
.sig--blue { background: #2F8FD8; }
.sig--gray { background: #C9CCD6; }
.fsig__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 0.75rem; color: var(--muted); margin-top: 8px; padding: 0 4px; }
.fsig__legend .sig { width: 12px; height: 12px; margin-right: 2px; vertical-align: -1px; }
.fsig__detail { margin-top: 8px; padding: 10px 12px; background: var(--paper); border-radius: 8px; font-size: 0.9375rem; }

.r-q { font-size: clamp(1.3125rem, 1.1rem + 1vw, 1.75rem); font-weight: 900; line-height: 1.45; margin: 4px 0 14px; }
.r-card { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.r-lbl { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.r-item, .r-fit { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 0.9375rem; }
.r-item:first-child, .r-fit:first-child { border-top: 0; }
.r-where { font-size: 0.8125rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.r-where.is-head { background: var(--bad-soft); color: var(--bad); }
.r-where.is-kept { background: var(--blue-soft); color: var(--blue); }
.r-fit__job small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.r-big { background: var(--ink); color: #fff; border-radius: 16px; padding: 18px; margin-bottom: 10px; animation: rise .5s var(--ease) both; }
.r-big.is-kept { background: #1E3A6B; }
.r-big__t { font-size: 0.8125rem; color: #C7CCDA; font-weight: 700; }
.r-big__n { font-size: 2.75rem; font-weight: 900; color: var(--gold); line-height: 1.1; margin: 4px 0; font-variant-numeric: tabular-nums; }
.r-big__n small { font-size: 1.125rem; color: #fff; margin-left: 4px; }
.r-big__s { font-size: 0.9375rem; font-weight: 700; }
.r-people { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 10px 0 4px; }
.r-people i { width: 22px; height: 22px; border-radius: 50%; background: #3A4560; }
.r-people i.out { background: var(--gold); }
.r-people b { font-size: 0.8125rem; margin-left: 4px; }
.pill { font-size: 0.75rem; font-weight: 700; color: #fff; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.p-musou { background: var(--blue); }
.p-vendor { background: #7A8BAE; }
.p-ai { background: #2F8F6B; }
.p-keep { background: var(--line); color: var(--muted); }
.r-cta { display: block; text-align: center; text-decoration: none; margin-top: 6px; }
.r-note { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.r-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.r-tbd { font-size: 0.75rem; color: var(--faint); margin-top: 8px; }

.pick--list { grid-template-columns: 1fr; }
.pick--list span { text-align: left; display: flex; align-items: center; gap: 10px; padding: 14px; font-size: 1rem; }
.pick--list em { font-style: normal; font-size: 1.5rem; width: 30px; text-align: center; }
.pick--fear input:checked + span { border-color: var(--bad); background: var(--bad-soft); color: var(--ink); }
.pick--wish input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }

.fw-fear { background: #1B1F2E; color: #fff; border-radius: 16px; padding: 18px; animation: rise .5s var(--ease) both; }
.fw-fear__t { font-size: 0.75rem; font-weight: 700; color: #F0A99A; }
.fw-fear__h { font-size: 1.25rem; font-weight: 900; margin: 4px 0 8px; line-height: 1.45; }
.fw-fear__n { font-size: 0.875rem; color: #DCE0EA; line-height: 1.6; }
.fw-fear__n b { color: var(--gold); font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.fw-fear__f { font-size: 0.75rem; color: #A9B0C3; margin-top: 2px; }
.fw-path { text-align: center; font-size: 0.8125rem; font-weight: 700; color: var(--muted); padding: 8px 0; }
.fw-path b { display: block; font-size: 1.25rem; color: var(--gold); }
.fw-wish { background: linear-gradient(135deg, #FFF7DD, #FFFFFF); border: 2px solid var(--gold); border-radius: 16px; padding: 16px 18px; animation: rise .6s var(--ease) both; }
.fw-wish__t { font-size: 0.75rem; font-weight: 700; color: var(--gold-deep); }
.fw-wish__h { font-size: 1.25rem; font-weight: 900; margin-top: 4px; line-height: 1.45; }

.fw-need { background: #fff; border-radius: 16px; padding: 12px 14px; margin: 12px 0; box-shadow: 0 1px 2px rgba(10,22,40,.06); }
.fw-need__lbl { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.fw-head, .fw-row summary { display: grid; grid-template-columns: 1fr repeat(4, 34px); gap: 4px; align-items: center; }
.fw-head span { font-size: 0.5625rem; color: var(--muted); text-align: center; line-height: 1.2; }
.fw-head .mu { color: var(--blue); font-weight: 900; }
.fw-row { border-top: 1px solid var(--line); }
.fw-row summary { list-style: none; cursor: pointer; padding: 10px 0; }
.fw-row summary::-webkit-details-marker { display: none; }
.fw-row__label { font-size: 0.875rem; font-weight: 700; line-height: 1.45; }
.mk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-style: normal; font-weight: 900; font-size: 0.75rem; justify-self: center; }
.mk--ok { background: #2F8F6B; }
.mk--mid { background: #D99A1E; }
.mk--ng { background: #C9452B; }
.mk--musou { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.fw-why { list-style: none; margin: 0 0 10px; padding: 8px 10px; background: var(--paper); border-radius: 10px; display: grid; gap: 6px; font-size: 0.8125rem; }
.fw-why .mk { width: 18px; height: 18px; font-size: 0.625rem; vertical-align: -3px; }
.fw-need__hint { font-size: 0.6875rem; color: var(--faint); margin-top: 4px; }
.fw-sum { display: grid; grid-template-columns: 1fr repeat(4, 34px); gap: 4px; align-items: center; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; font-weight: 900; }
.fw-sum span { font-size: 0.8125rem; }
.fw-sum b { text-align: center; font-size: 1.125rem; }
.fw-sum b.is-musou { color: var(--blue); }
.r-cta--sub { margin-top: 8px; }

.pick--pain input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
.pick--consider input:checked + span { border-color: var(--ink); background: #E9EBF2; color: var(--ink); }
.pick--list input:checked + span::after { content: "✓"; margin-left: auto; font-weight: 900; }
.fw-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fw-chips li { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(240,169,154,.18); color: #F6C8BD; }
.fw-wish__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.fw-wish__list li { font-size: 1.0625rem; font-weight: 900; line-height: 1.45; }
.fw-wish__list li::before { content: "★ "; color: var(--gold); }
.fw-head .is-musou { color: var(--blue); font-weight: 900; }
.fw-head .is-consider { color: var(--ink); font-weight: 900; background: var(--gold-soft); border-radius: 6px; padding: 2px 0; }
.fw-sum b.is-musou { color: var(--blue); }
.fw-sum b.is-consider { background: var(--gold-soft); border-radius: 6px; }
.mk.is-musou { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.mk.is-consider { outline: 3px solid var(--gold); outline-offset: 1px; }
.fw-consider { margin-top: 8px; font-size: 0.875rem; font-weight: 700; background: var(--gold-soft); border-radius: 10px; padding: 8px 10px; }

.pick--ai input:checked + span { border-color: var(--ink); background: #E9EBF2; color: var(--ink); }
.fw-ainote { margin-top: 8px; font-size: 0.8125rem; background: var(--bad-soft); color: var(--ink); border-radius: 10px; padding: 8px 10px; }

.mk--unk { background: #9AA1AE; }
.fw-src { display: block; font-size: 0.6875rem; color: var(--faint); margin-top: 1px; }
.fw-ways { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0 0 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: 0.75rem; line-height: 1.55; }
.fw-ways dt { font-weight: 900; white-space: nowrap; }
.fw-ways dd { margin: 0; color: var(--ink-2, #333); }

.fw-row__label, .fw-wish__list li, .fw-fear__h, .fw-fear__n { text-wrap: pretty; }
.fw-fear__s { font-size: 0.875rem; line-height: 1.7; color: #F3D9D3; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(240,169,154,.35); text-wrap: pretty; }

.fw-sec { background: #2A1A1A; color: #F6E7E3; border-radius: 16px; padding: 18px; margin-top: 10px; animation: rise .55s var(--ease) both; }
.fw-sec__t { font-size: 1.125rem; font-weight: 900; color: #fff; line-height: 1.45; }
.fw-sec__q { font-size: 0.9375rem; font-weight: 700; line-height: 1.7; margin-top: 8px; color: #FFD7CC; text-wrap: pretty; }
.fw-sec p:not([class]) { font-size: 0.875rem; line-height: 1.75; margin-top: 10px; text-wrap: pretty; }
.fw-sec__k { font-size: 0.8125rem; font-weight: 700; color: #F0A99A; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(240,169,154,.35); }
.fw-sec__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.fw-sec__list li { font-size: 0.875rem; line-height: 1.6; padding-left: 26px; position: relative; text-wrap: pretty; }
.fw-sec__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border: 2px solid #F0A99A; border-radius: 4px; }
.fw-sec__steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.fw-sec__steps li { position: relative; font-size: 0.875rem; line-height: 1.7; padding: 10px 12px; background: rgba(255,255,255,.06); border-radius: 10px; text-wrap: pretty; }
.fw-sec__steps li + li { margin-top: 22px; }
.fw-sec__steps li + li::before { content: "↓"; position: absolute; left: 50%; top: -21px; transform: translateX(-50%); color: #F0A99A; font-weight: 900; }
.fw-sec__steps li:last-child { background: #7A1F12; color: #fff; font-weight: 700; }
.fw-sec__after { font-size: 0.9375rem; font-weight: 700; line-height: 1.7; margin-top: 14px; color: #FFD7CC; text-wrap: pretty; }
.fw-sec__fact { font-size: 0.8125rem; line-height: 1.7; margin-top: 12px; padding: 10px 12px; border-left: 3px solid #F0A99A; background: rgba(255,255,255,.04); color: #E9D3CD; text-wrap: pretty; }
.fw-sec__exit { font-size: 0.875rem; line-height: 1.75; margin-top: 12px; padding: 12px; border-radius: 10px; background: #F6E7E3; color: #2A1A1A; text-wrap: pretty; }

.mk--best { background: #1F6F52; box-shadow: inset 0 0 0 2px #fff; }

.rules { max-width: calc(100vw - 16px); }
.rules li, .rules td, .rules p { overflow-wrap: anywhere; word-break: normal; }

.rules__body { grid-template-columns: minmax(0, 1fr); }
.rules__body > section { min-width: 0; }

.dots { margin-top: 12px; }
.dots__grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.dots__grid i { aspect-ratio: 1; border-radius: 2px; background: rgba(255,255,255,.16); }
.dots__grid i.on { background: #E5533A; animation: dot-on .25s ease-out both; animation-delay: calc(var(--i) * 18ms + .3s); }
@keyframes dot-on { from { transform: scale(.2); background: rgba(255,255,255,.16); } to { transform: scale(1); } }
.dots__cap { font-size: 0.8125rem; font-weight: 700; margin-top: 6px; color: #FFD7CC; }
.dots__cap small { font-weight: 400; color: #C9B2AC; margin-left: 4px; }

@media (prefers-reduced-motion: reduce) {
  .dots__grid i.on { animation: none; }
}

.dots--fear .dots__grid i:not(.on) { background: rgba(255,255,255,.12); }

.fw-sec { overflow: hidden; }

.fw-fear { padding-top: 0; overflow: hidden; }
.fw-fear__img { display: block; width: calc(100% + 36px); max-width: none; height: auto; margin: 0 -18px 14px; aspect-ratio: 3 / 2; object-fit: cover; }
.fw-sec__hero { display: block; width: calc(100% + 36px); max-width: none; height: auto; margin: 12px -18px 4px; aspect-ratio: 3 / 2; object-fit: cover; }
.fall { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 18px; }
.fall li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 12px 8px 8px;
  animation: fall-in .45s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * .35s + .3s); }
.fall li + li::before { content: "↓"; position: absolute; left: 40px; top: -19px; color: #F0A99A; font-weight: 900; font-size: 0.875rem; }
.fall img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #F6E7E3; }
.fall span { font-size: 0.9375rem; font-weight: 700; line-height: 1.45; color: #F6E7E3; text-wrap: pretty; }
.fall li:last-child { background: #7A1F12; }
.fall li:last-child span { color: #fff; font-size: 1rem; }
@keyframes fall-in { from { opacity: 0; transform: translateY(-14px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fall li { animation: none; } }
