:root {
  --ink: #10201d;
  --forest: #103f36;
  --teal: #13705f;
  --mint: #d8eee7;
  --paper: #f5f2e9;
  --white: #fff;
  --line: #d8d9d1;
  --muted: #5c6865;
  --orange: #ef6848;
  --orange-dark: #c94d32;
  --max: 1120px;
  --sans: "Manrope", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.03em; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--white); border: 2px solid var(--orange); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid #ffb19f; outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; gap: 30px; background: #101a18; border-bottom: 1px solid rgba(255,255,255,.14); color: white; }
.site-header > a { margin-right: auto; }
.site-header img { width: 142px; height: auto; aspect-ratio: 639 / 139; object-fit: contain; }
.site-header nav { display: flex; gap: 24px; color: #c8d3d0; font: 600 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: white; }

main { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 0; color: var(--muted); font: 500 11px/1.5 var(--mono); }
.breadcrumbs a { color: var(--teal); }

article { padding: 56px 0 96px; }
.article-header { max-width: 900px; }
.category { color: var(--teal); font: 600 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
h1 { margin-top: 18px; font-size: clamp(42px, 6vw, 76px); }
.dek { max-width: 800px; margin-top: 24px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.6; }
.byline { margin-top: 24px; color: var(--muted); font: 500 11px/1.7 var(--mono); }
.byline a { color: var(--teal); border-bottom: 1px solid currentColor; }

.article-hero { margin: 52px 0 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.article-hero img { width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.article-hero figcaption { padding: 12px 16px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }

.article-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 1fr); gap: 72px; align-items: start; margin-top: 64px; }
.article-body > section { margin-top: 58px; }
.article-body > section:first-child { margin-top: 0; }
.article-body h2, .related h2 { font-size: clamp(29px, 4vw, 42px); }
.article-body p { margin-top: 18px; font-size: 17px; }
.article-body ul { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.article-body li { position: relative; padding: 14px 12px 14px 30px; border-bottom: 1px solid var(--line); }
.article-body li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 9px; height: 2px; background: var(--orange); }
.article-body blockquote { margin: 28px 0 0; padding: 22px 24px; border-left: 3px solid var(--orange); background: var(--white); font-size: 19px; font-weight: 700; }

aside { position: sticky; top: 104px; padding: 24px; background: var(--forest); color: white; }
aside strong { font-size: 18px; line-height: 1.3; }
aside p { margin-top: 12px; color: #bed1cc; font-size: 13px; }
aside a { display: inline-block; margin-top: 18px; color: #a8dfd2; font: 600 11px/1.5 var(--mono); text-transform: uppercase; border-bottom: 1px solid currentColor; }

.article-faq details { border-bottom: 1px solid var(--line); }
.article-faq summary { padding: 20px 0; font-weight: 800; cursor: pointer; }
.article-faq details p { padding-bottom: 20px; margin-top: 0; color: var(--muted); }

.editor-note { max-width: 720px; margin-top: 64px; padding: 22px 24px; background: var(--mint); border-left: 3px solid var(--teal); }
.editor-note p { margin-top: 7px; color: #34564f; font-size: 13px; }
.editor-note a { display: inline-block; margin-top: 10px; color: var(--teal); font: 600 11px/1.5 var(--mono); border-bottom: 1px solid currentColor; }

.related { margin-top: 80px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 24px; border: 1px solid var(--line); }
.related-grid a { min-height: 180px; padding: 24px; border-right: 1px solid var(--line); background: var(--white); }
.related-grid a:last-child { border-right: 0; }
.related-grid span { display: block; color: var(--teal); font: 600 10px/1.4 var(--mono); text-transform: uppercase; }
.related-grid strong { display: block; margin-top: 34px; font-size: 19px; line-height: 1.35; }

.collection, .profile, .policy { padding: 0 0 100px; }
.collection > header, .profile > .category, .policy > .category { margin-top: 72px; }
.collection h1, .profile h1, .policy h1 { max-width: 920px; }
.profile h1 small { display: block; margin-top: 12px; color: var(--teal); font-size: .35em; letter-spacing: 0; }
.collection > header .dek, .profile > .dek, .policy > .dek { max-width: 800px; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border: 1px solid var(--line); }
.collection-card { display: flex; flex-direction: column; min-height: 360px; padding: 26px; border-right: 1px solid var(--line); background: var(--white); }
.collection-card:last-child { border-right: 0; }
.collection-card > span { color: var(--teal); font: 600 10px/1.4 var(--mono); text-transform: uppercase; }
.collection-card h2 { margin-top: 50px; font-size: 24px; }
.collection-card p { margin-top: 13px; color: var(--muted); font-size: 13px; }
.collection-card b { margin-top: auto; padding-top: 22px; color: var(--orange-dark); font: 600 11px/1.4 var(--mono); text-transform: uppercase; }

.profile section, .policy section { max-width: 760px; margin-top: 52px; }
.profile section h2, .policy section h2 { font-size: 34px; }
.profile section p, .policy section p { margin-top: 16px; font-size: 17px; }
.profile section a, .policy section a { color: var(--teal); border-bottom: 1px solid currentColor; }
.author-articles { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.author-articles li { padding: 14px 0; border-bottom: 1px solid var(--line); }

.site-footer { min-height: 100px; padding: 30px max(24px, calc((100vw - var(--max)) / 2)); display: flex; flex-wrap: wrap; gap: 22px; align-items: center; background: #09110f; color: #a8bab5; font-size: 12px; }
.site-footer span { margin-right: auto; }

@media (max-width: 820px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  aside { position: static; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .collection-card:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  main { width: min(var(--max), calc(100% - 32px)); }
  .site-header { height: 66px; padding: 0 16px; }
  .site-header img { width: 112px; }
  .site-header nav { gap: 12px; font-size: 9px; }
  .site-header nav a:first-child { display: none; }
  article { padding-top: 42px; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .article-hero { margin-top: 36px; }
  .article-layout { margin-top: 46px; }
  .article-body p, .profile section p, .policy section p { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .related-grid a:last-child { border-bottom: 0; }
  .collection > header, .profile > .category, .policy > .category { margin-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.site-header nav{display:flex;flex-wrap:wrap;gap:16px}.site-header nav a{font-size:14px}.article-body{font-size:17px;line-height:1.85}.article-body li{margin-bottom:12px}.related-grid a{padding:20px;font-size:16px}.policy h2{margin:30px 0 12px}.policy p{font-size:16px;line-height:1.85}.collection-card{min-width:0}.collection-card h2{overflow-wrap:anywhere}@media(max-width:640px){.site-header{flex-wrap:wrap;gap:16px}.site-header nav{gap:12px}.article-header h1{font-size:32px}.article-layout{display:block}.article-layout aside{margin:28px 0}.related-grid{grid-template-columns:1fr}.collection-grid{grid-template-columns:1fr}}

.article-photo{margin:0 0 2rem}.article-photo img{display:block;width:100%;height:auto;border-radius:4px}.article-photo figcaption{font-size:.85rem;line-height:1.7;color:#5b6963;margin-top:.6rem}

.site-brand { display: block; font: 800 20px/1.2 var(--sans); letter-spacing: .025em; white-space: nowrap; }
@media(max-width:640px) { .site-brand { font-size:16px; } .site-header { min-height:66px; height:auto; padding-block:14px; } }
