:root {
  color-scheme: dark;
  --paper: #20151d;
  --surface: #281b25;
  --ink: #f4ebdf;
  --muted: #c4b2ba;
  --line: #99848d;
  --soft-line: #51404a;
  --wine: #eea9bf;
  --burgundy: #772d4c;
  --selected: #432935;
  --hover: #34242f;
  --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", "MS PMincho", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: .025em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 9; clip-path: none; width: auto; height: auto; padding: 10px; background: var(--surface); }
.wrap { width: min(1100px, calc(100% - 72px)); margin-inline: auto; }
.page-shell { min-height: 100vh; padding-top: env(safe-area-inset-top, 0px); }
.header { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: fit-content; align-items: center; white-space: nowrap; }
.wordmark { display: inline-flex; gap: .15em; align-items: center; font: 500 31px/1 var(--serif); letter-spacing: .045em; }
.brand-heart { color: var(--wine); display: inline-flex; }
.brand-heart svg { width: 1em; height: 1em; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 5px; font-size: 13px; white-space: nowrap; }
.site-nav svg { flex: none; width: 18px; height: 18px; }
.site-nav a[aria-current="page"], .site-nav a:hover, .account-link:hover { color: var(--wine); }
.account-link { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; font: 500 16px/1 var(--serif); white-space: nowrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; min-height: 44px; font-weight: 670; text-align: center; }
.button.ink, .button.wine { background: var(--burgundy); color: var(--ink); }
.button.outline { background: transparent; border-color: var(--line); }
.button:disabled { background: var(--hover); border-color: var(--soft-line); color: var(--muted); }
.button:hover:not(:disabled) { filter: brightness(.91); }
.block { width: 100%; }

.models { margin-top: 28px; scroll-margin-top: 16px; }
.home-models { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.model-intro h1 { font-size: clamp(25px, 3vw, 38px); line-height: 1.3; }
.model-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.model-grid { display: flex; gap: 26px; }
.model-grid a { display: grid; gap: 5px; justify-items: center; font-size: 14px; }
.model-grid a:hover { color: var(--wine); }
.model-grid img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; object-position: center 43%; }
.home-models .model-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.home-models .model-grid a { display: flex; gap: 12px; align-items: center; justify-content: center; min-width: 0; padding: 3px 0; font: 500 17px/1.2 var(--serif); white-space: nowrap; }
.home-models .model-grid img { flex: none; width: 58px; height: 58px; }
.model-directory { min-height: 25vh; flex-wrap: wrap; margin-top: 24px; }
.model-directory img { width: 110px; height: 110px; }
.model-directory small { color: var(--muted); font-size: 12px; }

.feature { padding: 19px 0 0; }
.section-title { display: flex; align-items: center; gap: .5em; font-size: clamp(22px, 2.5vw, 29px); line-height: 1.25; }
.section-title::before { content: ""; flex: none; width: .14em; height: .9em; background: var(--wine); }
.feature .section-title { margin-bottom: 15px; }
.feature-cover { display: block; }
.feature-cover img { width: 100%; height: auto; max-height: 492px; aspect-ratio: 1.64; object-fit: cover; object-position: center top; border-radius: 8px; background: var(--surface); }
.feature-cover:hover img { filter: brightness(1.05); }
.feature-caption { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 63px; font: 500 clamp(22px, 2.65vw, 30px)/1.25 var(--serif); }
.feature-caption p { margin: 0; }
.feature-caption a { display: inline-flex; min-height: 44px; align-items: center; flex: none; color: var(--wine); font-size: .72em; text-decoration: underline; text-underline-offset: .32em; }
.feature-caption a:hover, .text-link:hover { color: var(--ink); }
.works { padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.section-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 11px; }
.filter-menu summary { display: flex; align-items: center; gap: 7px; justify-content: flex-end; min-height: 44px; cursor: pointer; color: var(--muted); font-size: 12px; list-style: none; }
.filter-menu summary::-webkit-details-marker { display: none; }
.filter-menu summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.filter-menu[open] summary::after { margin-top: 2px; transform: rotate(225deg); }
.filters { position: absolute; z-index: 2; right: 0; top: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 100%; padding: 4px; border: 1px solid var(--soft-line); border-radius: 7px; background: var(--surface); }
.filters button { white-space: nowrap; min-height: 44px; border: 0; border-radius: 4px; background: transparent; padding: 0 10px; color: var(--muted); font-size: 12px; }
.filters button[aria-pressed="true"] { color: var(--wine); background: var(--selected); }
.work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.work-card { position: relative; }
.work-link { display: block; }
.quick-save { position: absolute; right: 0; bottom: 5px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.quick-save:hover { color: var(--wine); background: var(--selected); }
.quick-save[aria-pressed="true"] { color: var(--wine); }
.quick-save[aria-pressed="true"] path { fill: currentColor; }
.card-line, .card-meta { padding-right: 42px; }
.work-link img { width: 100%; height: auto; aspect-ratio: 1.13; object-fit: cover; object-position: center 47%; border-radius: 8px; background: var(--surface); }
.work-link:hover .card-line { color: var(--wine); }
.card-line { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 9px; font: 720 17px/1.35 var(--sans); }
.card-line svg { flex: none; width: 17px; height: 17px; color: var(--muted); }
.card-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.card-meta span { color: var(--line); padding-inline: 3px; }

.footer { margin-top: 36px; padding: 16px 0 20px; border-top: 1px solid var(--soft-line); }
.footer-top { display: flex; gap: 15px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer .wordmark { font-size: 19px; }
.footer nav { display: flex; gap: 8px 15px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.footer p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.breadcrumb { margin-top: 21px; color: var(--muted); font-size: 12px; }
.breadcrumb span { padding-inline: 4px; }
.detail { margin: 19px auto 38px; max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px,5vw,65px); align-items: start; }
.detail-image { background: var(--surface); }
.detail-image img { width: 100%; height: auto; aspect-ratio: .82; object-fit: cover; object-position: center 52%; }
.detail-feature img { aspect-ratio: auto; }
.detail-copy { padding-top: 8px; }
.detail h1, .simple h1 { margin: 0 0 13px; font-size: clamp(31px, 4vw, 48px); line-height: 1.25; }
.detail h2, .simple h2 { font-size: 23px; margin: 0 0 7px; }
.label, .disclosure, .small-note { color: var(--muted); font-size: 12px; }
.disclosure { margin: 12px 0 18px; }
.model-link, .text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--wine); text-decoration: underline; text-underline-offset: .2em; }
.model-link { margin-bottom: 16px; }
button.text-link { border: 0; background: transparent; padding: 0; }
.buy-panel { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.buy-panel .label { margin-bottom: 3px; }
.buy-panel .text-link { margin-left: 10px; font-size: 13px; }
.simple { max-width: 640px; margin: 54px auto 70px; min-height: 45vh; }
.simple.wide { max-width: none; }
.simple.account { max-width: 420px; }
.simple h2:not(:first-child) { margin-top: 20px; }
.simple form { display: grid; gap: 15px; margin: 22px 0; }
.simple form label:not(.agreement) { display: grid; gap: 6px; font-weight: 600; }
.simple form input:not([type="checkbox"]):not([type="hidden"]), .simple textarea { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 400; }
.simple form :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
.agreement { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.agreement input { accent-color: var(--burgundy); }
.agreement a { text-decoration: underline; }
.trap { position: absolute; left: -999em; }
.notice { padding: 10px 13px; border-left: 3px solid var(--wine); background: var(--selected); }
.legal-list > div { display: grid; grid-template-columns: 8em 1fr; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--soft-line); }
.legal-list dd { margin: 0; }
.detail-image, .detail-image img { border-radius: 9px; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 24px); }
  .page-shell { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .header { min-height: 46px; grid-template-columns: 1fr auto; gap: 12px; }
  .wordmark { font-size: 23px; }
  .account-link { font-size: 14px; }
  .site-nav { position: fixed; z-index: 3; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); border-top: 1px solid var(--line); background: var(--paper); }
  .site-nav a { flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 3px 2px; font: 500 11px/1.2 var(--serif); }
  .site-nav svg { width: 22px; height: 22px; }
  .home-models { padding: 8px 0; }
  .home-models .model-grid { gap: 6px; }
  .home-models .model-grid a { gap: 7px; font-size: 13px; }
  .home-models .model-grid img { width: clamp(38px, 14vw, 57px); height: clamp(38px, 14vw, 57px); }
  .model-directory img { width: 83px; height: 83px; }
  .feature { padding-top: 12px; }
  .section-title { font-size: 20px; }
  .feature .section-title { margin-bottom: 10px; }
  .feature-cover img { border-radius: 7px; }
  .feature-caption { min-height: 44px; font-size: 21px; }
  .feature-caption a { font-size: 14px; }
  .works { padding-top: 2px; }
  .section-head { margin-bottom: 2px; }
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 8px; }
  .work-link img { border-radius: 7px; }
  .card-line { margin-top: 6px; font-size: 14px; }
  .quick-save { bottom: 0; }
  .quick-save svg { width: 18px; }
  .card-line, .card-meta { padding-right: 39px; }
  .card-meta { font-size: 11px; }
  .footer { margin-top: 25px; }
  .footer-top { gap: 10px; }
  .detail { grid-template-columns: 1fr; gap: 17px; }
  .detail-image img { aspect-ratio: .94; }
  .detail-feature img { aspect-ratio: auto; }
  .detail-copy { padding-top: 0; }
  .simple { margin-top: 28px; }
}
@media (max-width: 360px) {
  .home-models .model-grid a { gap: 5px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
