:root {
  --bg: #ffffff;
  --ink: #15171a;
  --muted: #656b73;
  --line: #e7e9ec;
  --soft: #f6f7f8;
  --accent: #315d55;
  --max: 1180px;
  --sans: Inter, "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10; background: var(--ink); color: white; padding: 8px 14px; }
.skip-link:focus { top: 16px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 720; letter-spacing: -.025em; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.language-link { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.menu-button { display: none; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 7px 12px; color: var(--ink); }

.hero { padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 22px; color: var(--accent); font-size: 12px; font-weight: 740; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 0; font-size: clamp(42px, 7.2vw, 84px); line-height: 1.06; letter-spacing: -.055em; font-weight: 690; }
.lead { max-width: 700px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.8; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 36px 0 0; color: var(--muted); font-size: 13px; }
.hero-note span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: .08em; }

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 48px; align-items: start; margin-bottom: 44px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; letter-spacing: -.035em; }
.section-head p { max-width: 620px; margin: 2px 0 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-card { min-height: 220px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: background .18s ease; }
.category-card:hover { background: var(--soft); }
.category-card .num { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.category-card h3 { margin: 36px 0 8px; font-size: 20px; line-height: 1.4; letter-spacing: -.02em; }
.category-card p { margin: 0; color: var(--muted); font-size: 13px; }
.category-card .arrow { margin-top: 18px; color: var(--accent); font-size: 18px; }

.breadcrumb { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.category-hero { padding: clamp(56px, 8vw, 96px) 0 56px; }
.category-hero h1 { font-size: clamp(38px, 6vw, 68px); }
.category-hero .lead { max-width: 760px; }
.filter-note { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.sample-list { display: grid; gap: 28px; }
.sample-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); border: 1px solid var(--line); background: white; }
.preview-wrap { background: var(--soft); padding: 24px; display: flex; align-items: flex-start; justify-content: center; border-right: 1px solid var(--line); }
.preview-wrap img { width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: contain; object-position: center; border: 1px solid #dcdfe3; box-shadow: 0 12px 28px rgba(27, 31, 35, .08); background: white; }
.sample-body { min-width: 0; padding: 30px 32px; }
.sample-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.test-id { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 740; letter-spacing: .08em; }
.sample-body h2 { margin: 0; font-size: 25px; line-height: 1.3; letter-spacing: -.025em; }
.copy-id { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); padding: 2px 0; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sample-description { margin: 16px 0 0; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.facts li, .tag { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: #4f555c; background: var(--soft); font-size: 12px; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 3px; padding: 8px 16px; background: var(--ink); color: white; font-size: 13px; font-weight: 650; text-decoration: none; }
.button.secondary { background: white; color: var(--ink); border-color: var(--line); }
.apps { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.apps-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.app-links a { color: var(--accent); font-size: 13px; }
details { margin-top: 20px; }
summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 14px 0 0; font-size: 12px; }
.metadata div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.metadata dt { color: var(--muted); }
.metadata dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.coming-soon { min-height: 330px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--soft); text-align: center; padding: 48px 24px; }
.coming-soon strong { display: block; font-size: 28px; letter-spacing: -.03em; }
.coming-soon p { max-width: 520px; margin: 12px auto 0; color: var(--muted); }
.share-section { border-top: 1px solid var(--line); padding: 34px 0; }
.share-block { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.share-title { margin: 0; font-size: 14px; font-weight: 680; }
.share-note { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.share-controls { min-width: 0; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.share-link { appearance: none; min-height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; background: white; color: var(--muted); font: inherit; font-size: 12px; line-height: 1.7; text-decoration: none; cursor: pointer; }
.share-link:hover { border-color: #cdd1d5; color: var(--ink); }
.share-status { min-height: 1.5em; margin: 5px 2px 0; color: var(--accent); font-size: 11px; text-align: right; }
.language-choice { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.choice-panel { width: min(720px, 100%); }
.choice-panel h1 { font-size: clamp(44px, 10vw, 76px); }
.choice-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 42px; }
.choice-links a { padding: 22px; border: 1px solid var(--line); text-decoration: none; }
.choice-links a:hover { background: var(--soft); }
.choice-links strong { display: block; font-size: 20px; }
.choice-links span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; color: var(--muted); font-size: 12px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }
.footer-privacy { margin-top: 24px; }
.analytics-privacy { max-width: 760px; margin-top: 0; color: var(--muted); }
.analytics-privacy summary { width: fit-content; }
.analytics-privacy-body { max-width: 720px; padding-top: 10px; font-size: 12px; line-height: 1.75; }
.analytics-privacy-body p { margin: 0 0 7px; }
.root-footer { padding-top: 28px; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-card { grid-template-columns: 210px minmax(0, 1fr); }
  .metadata { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 66px; }
  .menu-button { display: block; }
  .js .nav[hidden] { display: none; }
  .nav { position: absolute; z-index: 5; top: 66px; left: 0; right: 0; padding: 18px 16px; border-bottom: 1px solid var(--line); background: white; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav a { padding: 8px 0; }
  .brand small { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 170px; }
  .sample-card { grid-template-columns: 1fr; }
  .preview-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  .preview-wrap img { width: min(72%, 260px); }
  .sample-body { padding: 24px 20px; }
  .sample-top { display: block; }
  .copy-id { margin-top: 10px; }
  .metadata div { grid-template-columns: 92px minmax(0, 1fr); }
  .share-block { flex-direction: column; gap: 14px; }
  .share-actions { justify-content: flex-start; }
  .share-status { text-align: left; }
  .footer-inner { flex-direction: column; }
  .choice-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
