:root {
  --paper: #f4efe6;
  --paper-deep: #e9e0d3;
  --paper-light: #fbf8f2;
  --ink: #1b2a35;
  --muted: #687078;
  --line: #cfc5b6;
  --line-dark: #a89c8c;
  --red: #a84338;
  --blue: #2b5f8e;
  --teal: #2b746b;
  --amber: #a66b16;
  --codex: #1f4e79;
  --claude: #7b4b2f;
  --shadow: 0 16px 36px rgba(51, 42, 32, .09);
  color-scheme: light;
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-synthesis: none;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
section[id], #filters { scroll-margin-top: 94px; }
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #e29b2f; outline-offset: 3px; }

.page-frame { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 8px 14px; color: #fff; background: var(--ink); transform: translateY(-180%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(244, 239, 230, .94); backdrop-filter: blur(10px); }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--paper-light); background: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; transform: rotate(-4deg); }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-size: 15px; letter-spacing: .06em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.header-nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 12px; }
.header-nav a { white-space: nowrap; text-decoration: none; }
.header-nav a:hover { color: var(--red); }

.back-to-filters { position: fixed; z-index: 9; right: 20px; bottom: 20px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #e9b187; color: var(--paper-light); background: var(--ink); box-shadow: 4px 5px 0 rgba(27, 42, 53, .18); font-size: 12px; font-weight: 700; text-decoration: none; }
.back-to-filters:hover { background: #243741; }
.back-to-filters[hidden] { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 72px; align-items: center; min-height: 600px; padding-top: 74px; padding-bottom: 86px; }
.eyebrow, .section-number, .ledger-caption, .theme-no { margin: 0; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.eyebrow { display: flex; gap: 17px; align-items: center; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; letter-spacing: -.04em; }
h1 { max-width: 650px; margin: 22px 0 28px; font-size: clamp(43px, 6.4vw, 78px); line-height: 1.14; }
h1 em, h2 em { color: var(--red); font-style: normal; text-decoration: underline; text-decoration-color: rgba(168, 67, 56, .25); text-decoration-thickness: 7px; text-underline-offset: 6px; }
.headline-chunk { display: inline-block; white-space: nowrap; }
.hero-lede { max-width: 570px; margin-bottom: 32px; color: #4e5a60; font-size: 17px; line-height: 2; }
.hero-lede strong { color: var(--ink); font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 14px; min-height: 47px; padding: 0 18px; border: 1px solid var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 4px 5px 0 rgba(27, 42, 53, .18); }
.button--primary { color: var(--paper-light); background: var(--ink); }
.button--quiet { border-color: var(--line-dark); color: var(--ink); background: transparent; }
.button--quiet:hover { background: var(--paper-light); }
.hero-ledger { position: relative; min-height: 368px; padding: 24px 28px 28px; border: 1px solid var(--line-dark); background: var(--paper-light); box-shadow: var(--shadow); transform: rotate(1.3deg); }
.hero-ledger::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line); pointer-events: none; }
.ledger-caption { position: relative; display: flex; justify-content: space-between; padding-bottom: 20px; color: var(--muted); font-size: 12px; }
.ledger-line { position: relative; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; min-height: 64px; border-top: 1px solid var(--line); font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-size: 17px; }
.ledger-line:last-of-type { border-bottom: 1px solid var(--line); }
.ledger-index { color: var(--red); font-family: "BIZ UDPGothic", sans-serif; font-size: 12px; font-weight: 800; }
.ledger-line b { color: var(--blue); font-family: "BIZ UDPGothic", sans-serif; font-size: 12px; letter-spacing: .08em; }
.ledger-stamp { position: absolute; right: 28px; bottom: 23px; display: grid; place-items: center; width: 69px; height: 69px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; transform: rotate(-13deg); }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 15px; min-height: 126px; align-items: center; padding: 20px 24px 20px 0; }
.trust-item + .trust-item { padding-left: 24px; border-left: 1px solid var(--line); }
.trust-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.trust-icon--blue { background: var(--blue); }
.trust-icon--red { background: var(--red); }
.trust-icon--teal { background: var(--teal); }
.trust-item p { margin: 0; }
.trust-item strong, .trust-item small { display: block; }
.trust-item strong { font-size: 13px; }
.trust-item small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.section { padding-top: 105px; padding-bottom: 106px; }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.section-heading--stacked { display: block; max-width: 540px; margin-bottom: 44px; }
.section-heading--stacked h2 { margin-top: 14px; font-size: clamp(37px, 5vw, 58px); }
.section-lede { margin: 28px 0 0; color: #566167; font-size: 15px; line-height: 2; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.theme-card { position: relative; display: flex; min-height: 182px; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); color: var(--ink); background: var(--paper-light); cursor: pointer; font-family: inherit; text-align: left; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.theme-card:hover { border-color: var(--ink); box-shadow: 6px 6px 0 rgba(27, 42, 53, .13); transform: translate(-2px, -2px); }
.theme-card--blue { border-top: 5px solid var(--blue); }
.theme-card--teal { border-top: 5px solid var(--teal); }
.theme-card--amber { border-top: 5px solid var(--amber); }
.theme-card--red { border-top: 5px solid var(--red); }
.theme-card--ink { border-top: 5px solid var(--ink); }
.theme-card--paper { border-top: 5px solid var(--line-dark); }
.theme-no { color: var(--muted); font-size: 12px; }
.theme-title { margin-top: 24px; font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-size: 22px; }
.theme-caption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.theme-arrow { position: absolute; right: 20px; bottom: 18px; color: var(--red); font-size: 20px; }

.intro-section { border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-grid article { padding: 23px 25px 24px 0; }
.principle-grid article + article { padding-left: 25px; border-left: 1px solid var(--line); }
.principle-grid span { color: var(--red); font-size: 12px; font-weight: 800; }
.principle-grid h3 { margin: 13px 0 8px; font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-size: 22px; font-weight: 500; }
.principle-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }

.comparison-section { padding: 99px 0 111px; border-top: 1px solid var(--line); background: var(--ink); color: var(--paper-light); }
.section-heading--comparison h2 { color: var(--paper-light); }
.section-heading--comparison > p { color: #bdc9cb; }
.section-heading--comparison .section-number { color: #efad8a; }
.filter-panel { padding: 24px 26px 19px; border: 1px solid #54636a; background: #243741; }
.filter-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.filter-heading h3 { margin: 4px 0 0; font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-size: 23px; font-weight: 500; }
.filter-heading .section-number { color: #efad8a; }
.text-button { padding: 5px 0; border: 0; border-bottom: 1px solid #89969a; color: #e2eaeb; background: transparent; cursor: pointer; font-size: 12px; }
.text-button:hover { color: #fff; border-bottom-color: #fff; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.filter-grid label { display: block; }
.filter-grid label > span { display: block; margin-bottom: 6px; color: #b6c3c5; font-size: 12px; }
.filter-grid select, .filter-grid input { width: 100%; min-height: 42px; padding: 7px 10px; border: 1px solid #607278; border-radius: 0; color: var(--paper-light); background: #1b2a35; font-size: 12px; }
.filter-grid input::placeholder { color: #90a0a3; }
.filter-grid select:hover, .filter-grid select:focus, .filter-grid input:focus { border-color: #e9b187; }
.filter-search { grid-column: span 2; }
.filter-help { margin: 15px 0 0; color: #a9b7b9; font-size: 12px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0 14px; color: #c6d0d1; font-size: 12px; }
.results-bar p { margin: 0; }
.results-note { display: inline-flex; align-items: center; gap: 7px; color: #c3ced0; }
.results-note strong { color: #fff2e9; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #efad8a; }
.comparison-table-mount { overflow: hidden; border: 1px solid #526269; background: var(--paper-light); color: var(--ink); }
.table-scroll { overflow-x: auto; }
.comparison-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
.comparison-table th, .comparison-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table thead th { height: 55px; padding: 12px 15px; color: #e9efef; background: #314953; font-size: 12px; font-weight: 700; text-align: left; }
.comparison-table thead th:first-child { width: 25%; color: #cbd7d8; background: #243741; }
.comparison-table tbody > tr:last-child th, .comparison-table tbody > tr:last-child td { border-bottom: 0; }
.comparison-table th:last-child, .comparison-table td:last-child { border-right: 0; }
.comparison-table tbody > tr > th { padding: 18px 17px; background: #faf7f0; text-align: left; }
.comparison-table tbody > tr > td { padding: 12px; background: #fffdf9; }
.feature-kicker { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.feature-kicker span + span { padding-left: 7px; border-left: 1px solid var(--line-dark); color: var(--muted); }
.feature-intro h3 { margin: 8px 0 7px; font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-size: 19px; font-weight: 500; }
.feature-intro > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.feature-use { margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed var(--line); }
.feature-use strong { display: block; margin-bottom: 2px; color: var(--blue); font-size: 12px; letter-spacing: .08em; }
.variant-details summary, .shared-details summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; list-style: none; cursor: pointer; }
.variant-details summary::-webkit-details-marker, .shared-details summary::-webkit-details-marker { display: none; }
.variant-details summary::after, .shared-details summary::after { content: "+"; color: var(--red); font-weight: 800; }
.variant-details[open] summary::after, .shared-details[open] summary::after { content: "−"; }
.variant-summary__label { min-width: 0; flex: 1; color: var(--ink); font-size: 12px; font-weight: 800; }
.variant-summary__action { color: var(--muted); font-size: 12px; white-space: nowrap; }
.variant-summary__close { display: none; }
.variant-details[open] .variant-summary__open { display: none; }
.variant-details[open] .variant-summary__close { display: inline; }
.availability { display: inline-flex; align-items: center; width: fit-content; padding: 3px 7px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.availability--available { color: #205f4d; background: #d9ede2; }
.availability--conditional { color: #82530b; background: #f8e6bd; }
.availability--unavailable { color: #8d3d36; background: #f4d5cf; }
.availability--verify { color: #6f4e13; background: #f3e4b9; }
.variant-detail { margin-top: 15px; padding-top: 12px; border-top: 1px dashed var(--line); }
.variant-detail__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.variant-label { color: var(--ink); font-size: 12px; font-weight: 800; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 53px 1fr; gap: 8px; padding: 6px 0; border-top: 1px dotted var(--line); }
.detail-list dt { color: var(--blue); font-size: 12px; font-weight: 800; }
.detail-list dd { margin: 0; color: #536066; font-size: 12px; line-height: 1.7; }
.detail-note { margin: 11px 0 0; padding-left: 9px; border-left: 2px solid #e4ad72; color: #6d6357; font-size: 12px; line-height: 1.7; }
code, kbd { padding: 1px 4px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: #eee8dd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.shared-details { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.shared-details summary { color: var(--blue); font-size: 12px; font-weight: 800; }
.shared-details__body { margin-top: 13px; }
.shared-details__body p { margin: 10px 0; color: #536066; font-size: 12px; line-height: 1.75; }
.shared-details__body strong { display: block; color: var(--ink); font-size: 12px; letter-spacing: .03em; }
.detail-sources { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.source-chip { display: inline-block; padding: 3px 6px; border: 1px solid var(--line); color: var(--blue); background: #f6f0e6; font-size: 12px; line-height: 1.3; text-decoration: none; }
.source-chip:hover { border-color: var(--blue); text-decoration: underline; }
.media-block { margin: 12px 0 0; }
.media-block img, .media-block video { display: block; width: 100%; max-height: 240px; object-fit: contain; background: #e9e1d5; }
.media-block figcaption { margin-top: 5px; color: var(--muted); font-size: 12px; }
.comparison-cards-mount { display: none; }
.card-filter-hint { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #e4ad72; color: #d7e0e0; background: #243741; font-size: 12px; line-height: 1.6; }
.card-filter-hint a { color: #fff2e9; font-weight: 700; }
.empty-state, .load-error { margin-top: 20px; padding: 44px 24px; border: 1px dashed #748389; text-align: center; }
.empty-state__reset { margin-top: 16px; }
.empty-state span { display: block; color: #efad8a; font-size: 35px; }
.empty-state h3 { margin: 10px 0 4px; font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-weight: 500; }
.empty-state p, .load-error { color: #c6d0d1; font-size: 12px; }
.load-error { border-color: #e4ad72; color: #f4d5cf; }

.model-section { border-bottom: 1px solid var(--line); }
.model-grid, .model-grid-mount { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.model-card { min-height: 190px; padding: 18px; border: 1px solid var(--line); background: var(--paper-light); }
.model-card__head { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.model-card h3 { margin: 0; font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-size: 16px; font-weight: 500; }
.model-card p { margin-bottom: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.model-card .detail-note { margin-top: 15px; }

.sources-section { padding: 78px 0 89px; background: var(--paper-deep); }
.sources-layout { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 70px; }
.sources-layout h2 { margin: 11px 0 13px; font-size: 40px; }
.sources-layout > div > p:last-child { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; margin: 0; padding: 0; list-style: none; counter-reset: source; }
.source-list li { position: relative; padding: 0 0 16px 31px; border-bottom: 1px solid var(--line); counter-increment: source; }
.source-list li::before { content: counter(source, decimal-leading-zero); position: absolute; top: 1px; left: 0; color: var(--red); font-size: 12px; font-weight: 800; }
.source-list li:nth-child(n + 3) { padding-top: 16px; }
.source-list a { display: block; color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.source-list a:hover { color: var(--red); text-decoration: underline; }
.source-list span { display: block; margin-top: 4px; color: #4f5b61; font-size: 12px; }

.site-footer { color: #d4dfe0; background: #14232b; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-top: 33px; padding-bottom: 38px; }
.footer-inner p { margin: 0; }
.footer-inner strong { font-family: "BIZ UDPMincho", "Yu Mincho", serif; font-size: 15px; font-weight: 500; }
.footer-inner span, .footer-note { color: #8fa0a4; font-size: 12px; }
.footer-note { text-align: right; line-height: 1.8; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding-top: 60px; }
  .hero-ledger { max-width: 620px; width: 100%; margin-left: auto; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid, .model-grid-mount { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-search { grid-column: span 2; }
}

@media (max-width: 680px) {
  .page-frame { width: min(100% - 30px, 560px); }
  .masthead { min-height: 65px; }
  .header-nav { gap: 12px; font-size: 12px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 12px; }
  .hero { padding-top: 48px; padding-bottom: 63px; }
  .eyebrow { font-size: 12px; }
  h1 { margin-top: 18px; font-size: clamp(34px, 10.5vw, 58px); }
  .hero-lede { font-size: 15px; line-height: 1.9; }
  .hero-ledger { min-height: 300px; padding: 19px 19px 22px; }
  .ledger-line { min-height: 56px; font-size: 14px; }
  .ledger-stamp { right: 19px; bottom: 18px; width: 60px; height: 60px; font-size: 12px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 0; padding: 17px 0; }
  .trust-item + .trust-item { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .section { padding-top: 73px; padding-bottom: 75px; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section-heading > p { margin-top: 18px; }
  .section-heading h2 { font-size: 35px; }
  .theme-grid { grid-template-columns: 1fr; gap: 10px; }
  .theme-card { min-height: 133px; }
  .theme-title { margin-top: 17px; font-size: 20px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article + article { padding: 19px 0; border-left: 0; }
  .principle-grid article + article { border-top: 1px solid var(--line); }
  .comparison-section { padding: 73px 0 78px; }
  .filter-panel { padding: 19px 16px 16px; }
  .filter-grid { grid-template-columns: 1fr; gap: 12px; }
  .filter-search { grid-column: auto; }
  .results-bar { display: block; padding-top: 17px; }
  .results-note { margin-top: 9px; }
  .comparison-table-mount { display: none; }
  .comparison-cards-mount { display: block; }
  .comparison-cards { display: grid; gap: 10px; }
  .feature-card { padding: 17px; border: 1px solid var(--line); color: var(--ink); background: var(--paper-light); }
  .feature-card__variants { display: grid; margin-top: 17px; }
  .feature-card .variant-details { border-top: 1px solid var(--line); }
  .feature-card .variant-details + .variant-details { border-top: 1px dashed var(--line); }
  .feature-card .variant-details summary { padding: 10px 0; }
  .feature-card .variant-detail { margin-top: 0; padding: 0 0 13px; border-top: 0; }
  .model-grid, .model-grid-mount { grid-template-columns: 1fr; }
  .sources-section { padding: 61px 0 68px; }
  .sources-layout { grid-template-columns: 1fr; gap: 30px; }
  .source-list { grid-template-columns: 1fr; }
  .source-list li:nth-child(n + 2) { padding-top: 16px; }
  .footer-inner { display: block; padding-top: 29px; padding-bottom: 32px; }
  .footer-note { margin-top: 22px !important; text-align: left; }
  .back-to-filters { right: 15px; bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
