:root {
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #252a30; background: #fafaf8; line-height: 1.7; font-synthesis: none;
  --ink: #1b2838; --accent: #38748b; --line: #deded9; --muted: #696d71;
}
* { box-sizing: border-box; }
body { margin: 0; }
#app { min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: 5px; }
button, input, select { font: inherit; border-radius: 0; }
button, a, input, select { touch-action: manipulation; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .55; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { border: 0; }
select { appearance: none; border: 1px solid var(--line); background: transparent url('/icons/chevron-down.svg') no-repeat right 15px center / 16px; padding: 10px 40px 10px 16px; min-height: 44px; color: var(--ink); }
header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1440px; margin: auto; min-height: 72px; padding: 14px 40px; display: flex; gap: 28px; align-items: center; }
.brand { font-size: 21px; line-height: 1.2; letter-spacing: -.5px; text-decoration: none; white-space: nowrap; }
.brand span, .home-brand span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 0; margin-right: auto; align-items: center; }
.nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; color: var(--ink); }
.nav a[aria-current=page] { text-decoration: underline; }
.language { display: block; margin-left: auto; color: var(--ink); font-size: 14px; white-space: nowrap; }
.language select { min-height: 44px; font-size: inherit; background-size: 14px; }
main { width: 100%; max-width: 1080px; margin: 0 auto; flex: 1; padding: 64px 40px 80px; }
.home-page main { max-width: 1200px; display: flex; align-items: center; justify-content: center; padding: 88px 40px 64px; }
.home { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.home-brand { margin: 0 0 42px; color: var(--ink); font-size: clamp(40px, 5vw, 64px); font-weight: 400; letter-spacing: -1.65px; line-height: 1.15; white-space: nowrap; }
.home-brand strong { font-weight: 700; }
.discovery-controls { display: grid; grid-template-columns: 220px 220px 184px; align-items: stretch; gap: 18px; }
.discovery-controls select, .discovery-controls .primary { height: 54px; }
.discovery-controls > select, .discovery-controls .review-language { border-color: #cbd0d5; }
.genre-select { width: 100%; min-width: 0; font-size: 16px; text-overflow: ellipsis; }
.review-language { display: flex; align-items: center; margin: 0; border: 1px solid var(--line); color: var(--ink); font-size: 14px; padding-left: 14px; white-space: nowrap; }
.review-language select { min-width: 0; flex: 1; border: 0; padding-left: 4px; }
.discovery-controls .review-language { font-size: 16px; }
.discovery-controls .review-language select { width: 125px; height: 52px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; min-width: 170px; padding: 13px 26px; background: var(--ink); color: #fff; font-size: 16px; text-align: center; text-decoration: none; }
.primary:hover:not(:disabled) { background: #2c485b; }
.action-arrow { width: 24px; height: 24px; filter: invert(1); flex-shrink: 0; }
.text-link { font-size: 14px; background: transparent; padding: 0; text-decoration: underline; text-underline-offset: 5px; }
.home-links { display: flex; align-items: center; gap: 25px; margin: 25px 0 0; }
.home-links a { display: inline-flex; align-items: center; min-height: 44px; }
.muted { color: var(--muted); font-size: 14px; }
.connection { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.eyebrow, .kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.page-heading { font-size: 34px; line-height: 1.35; font-weight: 500; margin: 0 0 16px; }
.page-intro { color: var(--muted); font-size: 14px; margin: 0 0 35px; }
.search-bar { display: flex; align-items: end; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.search-label { display: block; flex: 1; font-size: 12px; }
.search-label input { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 12px 0; font-size: 19px; margin-top: 4px; }
.search-bar .review-language { margin: 0 0 7px; }
.tag-count { font-size: 12px; color: var(--muted); margin: 22px 0; }
.tag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.tag { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 15px; min-height: 61px; border-bottom: 1px solid var(--line); padding: 15px 0; background: none; color: var(--ink); font-size: 14px; }
.tag small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tag:hover { color: var(--accent); border-bottom-color: var(--accent); }
.notice { border-left: 3px solid var(--accent); padding: 10px 17px; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.home > .notice { max-width: 660px; margin: 24px 0 0; text-align: left; }
.prose { max-width: 720px; }
.prose h2 { font-size: 19px; font-weight: 500; margin: 35px 0 12px; }
.prose p, .prose li { font-size: 14px; color: #51565b; }
.prose li { margin: 12px 0; }
.prose ol { padding-left: 24px; }
.prose code { font-size: 13px; background: #eceeea; padding: 3px 5px; overflow-wrap: anywhere; }
.steps { counter-reset: steps; margin: 40px 0; }
.step { padding: 28px 0; border-top: 1px solid var(--line); }
.step h2 { margin: 0 0 12px; }
.step h2:before { counter-increment: steps; content: '0' counter(steps); font-size: 12px; color: var(--accent); display: inline-block; margin-right: 20px; }
.legal-nav { display: flex; gap: 24px; margin: 20px 0 35px; font-size: 13px; }
.legal-nav [aria-current=page] { color: var(--accent); }
footer { width: calc(100% - 80px); max-width: 1360px; margin: 0 auto; border-top: 1px solid var(--line); padding: 24px 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px; font-size: 12px; color: var(--muted); }
footer nav { display: flex; gap: 24px; align-items: center; }
footer a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { flex-wrap: wrap; }
.analytics-settings { padding: 0; min-height: 24px; color: inherit; background: none; font: inherit; }
.analytics-settings:hover { text-decoration: underline; text-underline-offset: 5px; }
.analytics-consent { position: fixed; bottom: 20px; right: 24px; z-index: 10; width: min(500px, calc(100% - 48px)); max-height: calc(100svh - 40px); overflow: auto; padding: 22px; background: #fafaf8; border: 1px solid var(--line); box-shadow: 0 4px 24px #1b28381a; }
.analytics-consent h2 { margin: 0 0 10px; font-size: 18px; font-weight: 500; }
.analytics-consent p { margin: 0 0 16px; font-size: 13px; }
.analytics-consent .analytics-state { color: var(--muted); }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.analytics-actions button { flex: 1; min-height: 44px; padding: 9px 14px; border: 1px solid var(--ink); background: #fafaf8; color: var(--ink); white-space: nowrap; font-size: 14px; }
.analytics-actions button:hover { background: #eceeea; }
#status { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--ink); color: white; padding: 12px 22px; font-size: 13px; z-index: 5; }
#status:empty { display: none; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 12px; top: 10px; background: white; padding: 8px; z-index: 10; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 800px) {
  .header-inner { padding: 12px 22px; gap: 20px; flex-wrap: wrap; }
  .brand { flex-basis: 100%; font-size: 21px; }
  .nav { margin-left: 0; margin-right: auto; }
  .home-page main { padding: 48px 22px; }
  .home-brand { white-space: normal; font-size: clamp(34px, 6.2vw, 48px); letter-spacing: -1.2px; }
  .home-brand strong, .home-brand span { display: block; }
  .home-brand span { margin-top: 5px; }
  .home-brand { margin-bottom: 30px; }
  .discovery-controls { width: min(100%, 440px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .discovery-controls .primary { grid-column: 1 / -1; }
  .discovery-controls .review-language { font-size: 14px; padding-left: 10px; }
  .discovery-controls .review-language select { width: 0; padding-right: 30px; background-position: right 10px center; }
  .genre-select { padding-left: 12px; padding-right: 30px; font-size: 14px; background-position: right 10px center; }
  .home-links { margin-top: 18px; }
  main { padding: 40px 22px 60px; }
  .page-heading { font-size: 28px; }
  .tag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .tag { font-size: 13px; align-items: start; }
  .tag small { font-size: 10px; }
  .search-bar { align-items: stretch; flex-direction: column; gap: 20px; }
  .search-bar .review-language { margin: 0; align-self: start; }
  footer { width: calc(100% - 44px); padding: 18px 0; flex-direction: column; align-items: start; gap: 10px; font-size: 11px; }
  footer nav { flex-wrap: wrap; gap: 18px; }
  .prose h2 { font-size: 18px; }
}
@media (max-width: 380px) {
  .discovery-controls { grid-template-columns: minmax(0, 1fr); }
  .discovery-controls .review-language select { width: auto; }
  .home-brand { font-size: 32px; }
  .tag-grid { grid-template-columns: 1fr; }
  .nav { gap: 18px; }
}
@media (max-height: 500px) and (min-width: 801px) {
  .home-page main { padding-top: 25px; padding-bottom: 25px; }
  .home-brand { font-size: 42px; }
  .home-brand { margin-bottom: 24px; }
}
