:root {
  --ink: #181512;
  --paper: #f4f0e8;
  --cream: #fbf8f2;
  --red: #8b241d;
  --red-dark: #601813;
  --gold: #c69a4b;
  --muted: #736e66;
  --line: #d9d1c5;
  --green: #3d6651;
  --shadow: 0 20px 60px rgba(31, 22, 16, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  line-height: 1.65;
  line-break: strict;
  word-break: normal;
}
button, select { font: inherit; }
a { color: inherit; }

.hero {
  min-height: 620px;
  padding: 0 clamp(22px, 6vw, 92px) 72px;
  color: #fff;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(198,154,75,.18), transparent 28%),
    linear-gradient(118deg, #161310 0%, #261814 58%, #501813 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  right: -100px;
  bottom: -235px;
  box-shadow: 0 0 0 56px rgba(255,255,255,.022), 0 0 0 112px rgba(255,255,255,.018);
}
.topbar {
  height: 88px;
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.brand { font: 700 12px/1.2 ui-monospace, monospace; letter-spacing: .16em; text-decoration: none; }
.private-badge { font-size: 11px; letter-spacing: .14em; color: #d8c49e; }
.private-badge span { color: #72a881; font-size: 8px; vertical-align: 1px; margin-right: 7px; }
.hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: clamp(42px, 7vw, 110px);
  padding-top: 86px;
  position: relative;
  z-index: 1;
}
.eyebrow { margin: 0 0 16px; color: #d6b774; font: 700 12px/1.2 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--red); }
h1 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; font-size: clamp(47px, 6.2vw, 84px); line-height: 1.13; letter-spacing: -.045em; }
h1 em { color: #e5c98c; font-style: normal; }
.lead { max-width: 710px; margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 2; text-wrap: pretty; word-break: auto-phrase; }
.hero-card {
  padding: 30px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 70px rgba(0,0,0,.22);
}
.hero-card > p { margin: 0 0 12px; color: #d9bd82; font-size: 12px; font-weight: 700; }
.hero-card strong { display: block; font-family: "Yu Mincho", serif; font-size: 24px; line-height: 1.5; }
.hero-card strong span { color: #bd8a4b; padding: 0 4px; }
.hero-card small { display: block; margin: 16px 0 24px; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.8; text-wrap: pretty; word-break: auto-phrase; }
.hero-card a { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }

main { position: relative; }
.compare-section { max-width: 1320px; margin: auto; padding: 92px clamp(18px, 4vw, 58px) 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section-heading h2, .detail-title-row h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(32px, 4vw, 50px); font-weight: 600; letter-spacing: -.035em; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 13px; text-wrap: pretty; word-break: auto-phrase; }
.toolbar { display: flex; align-items: end; gap: 14px; padding: 20px; margin-bottom: 26px; background: #eae3d8; border: 1px solid #ded5c7; }
.toolbar label { min-width: 210px; }
.toolbar label span { display: block; margin-bottom: 7px; color: #655f57; font-size: 11px; font-weight: 700; }
.toolbar select { width: 100%; min-height: 44px; padding: 0 40px 0 13px; color: var(--ink); background: var(--cream); border: 1px solid #ccc2b2; border-radius: 0; }
.reset-button { min-height: 44px; padding: 0 18px; margin-left: auto; color: var(--red); background: transparent; border: 1px solid #bdaea0; cursor: pointer; font-weight: 700; font-size: 12px; }
.reset-button:hover, .reset-button:focus-visible { background: #fff; }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.method-card { min-height: 218px; padding: 23px; text-align: left; background: var(--cream); border: 1px solid var(--line); cursor: pointer; position: relative; transition: .2s ease; }
.method-card:hover { transform: translateY(-3px); border-color: #bfae99; box-shadow: 0 12px 28px rgba(47,33,22,.08); }
.method-card:focus-visible { outline: 3px solid rgba(139,36,29,.28); outline-offset: 2px; }
.method-card.selected { color: #fff; background: var(--red-dark); border-color: var(--red-dark); box-shadow: var(--shadow); }
.method-card[hidden] { display: none; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 28px; color: var(--red); background: #efe4d2; border-radius: 50%; font: 700 12px/1 ui-monospace, monospace; }
.method-card.selected .rank { color: #fff; background: rgba(255,255,255,.16); }
.method-card h3 { margin: 20px 0 6px; font-family: "Yu Mincho", serif; font-size: 23px; line-height: 1.3; text-wrap: balance; word-break: keep-all; }
.method-card p { margin: 0; color: var(--muted); font-size: 12px; text-wrap: pretty; word-break: auto-phrase; }
.method-card.selected p { color: rgba(255,255,255,.68); }
.card-metrics { display: flex; gap: 16px; margin-top: 21px; }
.card-metrics span { font-size: 11px; color: #726b62; }
.method-card.selected .card-metrics span { color: #dcc6bf; }
.card-metrics b { display: block; margin-top: 3px; color: var(--ink); font: 700 14px/1.2 ui-monospace, monospace; }
.method-card.selected .card-metrics b { color: #fff; }
.method-role { position: absolute; top: 22px; right: 22px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.method-card.selected .method-role { color: #e4c98f; }
.empty { grid-column: 1 / -1; padding: 42px; text-align: center; background: #ece5da; color: var(--muted); }

.matrix-wrap { margin-top: 34px; overflow-x: auto; border: 1px solid var(--line); background: var(--cream); }
table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 12px; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
th, td { padding: 16px 14px; border-bottom: 1px solid #e4ddd2; text-align: left; vertical-align: middle; }
th { color: #6d665d; background: #eae3d8; font-size: 10px; letter-spacing: .04em; }
tbody tr { cursor: pointer; transition: .15s; }
tbody tr:hover, tbody tr.active { background: #f2e9dc; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 800; color: var(--red-dark); }
.meter { display: inline-flex; align-items: center; gap: 3px; }
.meter i { display: block; width: 11px; height: 4px; background: #ded4c7; }
.meter i.on { background: var(--red); }
.meter.load i.on { background: #9a7746; }
.scope-note { margin: 14px 0 0; color: #827b72; font-size: 11px; }

.detail-section { padding: 80px max(22px, calc((100vw - 1200px) / 2)); color: #fff; background: #1c1916; }
.detail-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.detail-title-row h2 { color: #fff; }
.role-badge { padding: 8px 12px; color: #e0c385; border: 1px solid rgba(224,195,133,.45); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.detail-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 22px; }
.proposal-card { min-height: 260px; padding: 32px; background: var(--red); display: flex; flex-direction: column; justify-content: space-between; }
.proposal-card span { color: #e6c5b0; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.proposal-card p { margin: 50px 0 0; font-family: "Yu Mincho", serif; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.65; text-wrap: pretty; word-break: auto-phrase; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.detail-columns article { padding: 30px; background: #25211d; }
.detail-columns h3 { margin: 0 0 20px; font-size: 14px; }
.icon { display: inline-flex; justify-content: center; align-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 50%; }
.icon.good { color: #bfd6c7; background: #355244; }
.icon.caution { color: #edd3a5; background: #6c512b; }
.detail-columns ul { margin: 0; padding-left: 19px; color: rgba(255,255,255,.7); font-size: 13px; }
.detail-columns li { text-wrap: pretty; word-break: auto-phrase; }
.detail-columns li + li { margin-top: 13px; }
.next-check { display: grid; grid-template-columns: 180px 1fr; gap: 20px; margin-top: 22px; padding: 22px 26px; background: rgba(255,255,255,.055); border-left: 3px solid var(--gold); }
.next-check span { color: #d7b976; font-size: 11px; font-weight: 800; }
.next-check p { margin: 0; color: rgba(255,255,255,.82); font-size: 13px; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 24px clamp(22px, 6vw, 90px); color: #8b847b; background: #13110f; font-size: 10px; }
footer p { margin: 0; }
footer span { color: #544c44; padding: 0 4px; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 62px; gap: 38px; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { height: 72px; }
  .brand { font-size: 10px; }
  .hero { padding-bottom: 44px; }
  .hero-grid { padding-top: 48px; }
  .lead { font-size: 13px; }
  .hero-card { padding: 24px; }
  .compare-section { padding-top: 62px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .toolbar { display: grid; grid-template-columns: 1fr; }
  .toolbar label { min-width: 0; }
  .reset-button { margin-left: 0; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 190px; }
  .detail-section { padding-top: 58px; padding-bottom: 58px; }
  .detail-title-row { align-items: flex-start; flex-direction: column; }
  .detail-columns { grid-template-columns: 1fr; }
  .proposal-card { min-height: 220px; }
  .next-check { grid-template-columns: 1fr; gap: 7px; }
  footer { display: block; }
  footer p + p { margin-top: 7px; }
}

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