:root {
  color-scheme: light;
  --ink: #161820;
  --muted: #535761;
  --line: #e4e5e9;
  --page: #f8f8fa;
  --paper: #fff;
  --accent: #c51230;
  --accent-dark: #9e1027;
  --accent-wash: #fff0f2;
  --radius: 12px;
  --header: 64px;
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
:focus-visible { outline: 3px solid #9a235e; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.36; overflow-wrap: anywhere; }
p,dd,td,th { overflow-wrap: anywhere; }
h2 { font-size: 1.31rem; letter-spacing: -.018em; }
h3 { font-size: 1rem; }
.icon { display: inline-block; flex: none; width: 20px; height: 20px; vertical-align: -.2em; }
.sr-only,.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 20; left: 10px; top: 8px; padding: 10px 16px; background: white; border-radius: 6px; }
.site-header { position: sticky; z-index: 6; top: 0; height: var(--header); background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1600px; height: 100%; margin: auto; padding: 0 26px; display: grid; grid-template-columns: minmax(195px, 1fr) minmax(140px, 440px) minmax(150px, 1fr); align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; width: fit-content; font-size: 1.25rem; letter-spacing: -.065em; font-weight: 800; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); }
.brand-icon svg { width: 31px; height: 31px; }
.brand-dot { color: var(--accent); }
.top-search,.search-field { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid #dcdde3; border-radius: 8px; padding-inline: 12px; min-width: 0; color: var(--muted); }
.top-search { background: #f7f7f9; }
.top-search:focus-within,.search-field:focus-within { border-color: var(--accent); }
.top-search input,.search-field input { border: none; background: transparent; min-width: 0; flex: 1; padding: 10px 0; outline: none; color: var(--ink); width: 100%; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
details { position: relative; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.language-menu summary,.mobile-menu summary,.icon-button { display: flex; align-items: center; min-height: 42px; padding: 6px 10px; gap: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: .87rem; font-weight: 650; list-style: none; }
.language-popover,.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; max-height: min(70vh, 500px); overflow: auto; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px #1c19331e; }
.language-popover a,.mobile-menu nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.language-popover a:hover,.language-popover a[aria-current] { color: var(--accent); background: var(--accent-wash); }
.mobile-menu,.mobile-search,.mobile-tabs { display: none; }
.site-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); max-width: 1600px; min-height: calc(100vh - var(--header)); margin-inline: auto; }
.sidebar { position: sticky; top: var(--header); align-self: start; min-height: calc(100vh - var(--header)); max-height: calc(100vh - var(--header)); overflow: auto; padding: 24px 12px 20px; border-right: 1px solid var(--line); background: var(--paper); }
.sidebar nav { display: grid; gap: 3px; }
.nav-label { margin: 0 0 8px 12px; font-size: .75rem; font-weight: 750; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.sidebar a { display: flex; gap: 9px; align-items: center; min-height: 43px; padding: 9px 11px; border-radius: 7px; font-size: .87rem; line-height: 1.4; font-weight: 650; }
.sidebar a:hover,.sidebar a[aria-current] { background: var(--accent-wash); color: var(--accent-dark); }
.sidebar a[aria-current] { box-shadow: inset 3px 0 var(--accent); }
.side-note { display: flex; gap: 8px; align-items: center; margin: 18px 4px 0; border-top: 1px solid var(--line); padding-top: 16px; font-size: .75rem; color: var(--muted); }
.side-note .feature-icon { width: 32px; height: 32px; }
.site-main { width: 100%; min-width: 0; max-width: 1380px; margin: 0 auto; padding: 22px clamp(20px, 3vw, 46px) 0; }
.hero { min-height: 310px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; overflow: hidden; border: 1px solid #f0d5dc; border-radius: 18px; background: #fff3f5; }
.hero-copy { padding: 30px 0 30px clamp(24px, 3vw, 42px); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--accent-dark); font-size: .77rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2rem, 3.28vw, 3.42rem); line-height: 1.18; letter-spacing: -.055em; text-wrap: balance; }
[lang="ja"] .hero h1 { letter-spacing: -.045em; max-width: 12em; }
.hero-copy > p:not(.eyebrow) { margin: 13px 0 18px; max-width: 54ch; color: #4d4045; }
.hero-figure { min-width: 0; padding-right: 15px; }
.hero-figure svg { display: block; width: 100%; max-height: 310px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 7px; font-size: .875rem; font-weight: 720; line-height: 1.3; text-align: center; }
.button:hover { color: var(--accent-dark); border-color: #dea8b3; }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-dark); color: white; }
.button.ghost { background: #fffbfc; border-color: #e8c4cd; }
.button.subtle { background: var(--page); }
.button.selected { background: var(--accent-wash); border-color: #dea8b3; color: var(--accent-dark); }
.home-actions { display: grid; grid-template-columns: repeat(4,minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.home-actions a { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 81px; padding: 11px; border: 1px solid var(--line); background: white; border-radius: 10px; }
.home-actions a:hover { border-color: #d98b9a; }
.home-actions strong,.home-actions small { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.home-actions strong { font-size: .89rem; }
.home-actions small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.home-actions a > .icon { width: 15px; color: var(--muted); }
.feature-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--accent-wash); color: var(--accent-dark); }
.home-finder { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.home-module { margin-top: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.text-link { display: inline-flex; gap: 5px; align-items: center; color: var(--accent-dark); font-size: .85rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 17px; }
.filters { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters .search-field { flex: 1 1 230px; }
.filters label:has(select) { display: flex; align-items: stretch; }
select,input:not(.top-search input,.search-field input,[type="checkbox"],[type="hidden"]),textarea { width: 100%; max-width: 100%; background: white; color: var(--ink); border: 1px solid #dcdde3; border-radius: 7px; padding: 9px 10px; }
select { min-height: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { display: flex; align-items: center; padding: 6px 11px; border: 1px solid var(--line); min-height: 35px; border-radius: 7px; background: white; color: var(--ink); font-size: .83rem; font-weight: 640; }
.chips a:hover,.chips .active { border-color: #e9b7c0; background: var(--accent-wash); color: var(--accent-dark); }
.list-chips { margin-bottom: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,205px),1fr)); gap: 13px; }
.card { min-width: 0; border: 1px solid var(--line); overflow: hidden; border-radius: var(--radius); background: white; }
.card:focus-within,.card:hover { border-color: #d7a5b0; }
.card-cover { display: block; }
.art { --art-main: #b8213d; --art-line: #fff3f5; position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16/9; background: #ffedf1; }
.art svg { width: 100%; height: 100%; display: block; }
.art-1 { --art-main: #6d43a6; background: #f0e9fb; }
.art-2 { --art-main: #435aa0; background: #edf1ff; }
.art-3 { --art-main: #b7213b; background: #ffecef; }
.art-4 { --art-main: #126962; background: #e7f5f0; }
.art-5 { --art-main: #985327; background: #fcf0e6; }
.play-chip { position: absolute; bottom: 10px; right: 10px; border-radius: 6px; background: #18131bdc; color: white; width: 38px; height: 31px; display: grid; place-items: center; }
.play-chip .icon { width: 22px; height: 22px; }
.card-body { padding: 11px 12px 13px; }
.badge { display: inline-block; color: var(--accent-dark); background: var(--accent-wash); border-radius: 5px; padding: 2px 7px; font-size: .7rem; font-weight: 760; }
.card h3 { margin: 6px 0; line-height: 1.45; }
.card-body p { color: var(--muted); font-size: .83rem; line-height: 1.58; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.page-heading { margin: 8px 0 17px; }
.page-heading h1 { font-size: clamp(1.65rem, 2.6vw, 2.55rem); letter-spacing: -.03em; }
.page-heading > p:not(.eyebrow) { margin-top: 7px; color: var(--muted); max-width: 72ch; }
.back-link { display: inline-flex; padding: 7px 0; color: var(--accent-dark); font-size: .84rem; font-weight: 700; }
.back-link::before { content: "←"; margin-right: 7px; }
.panel,.empty-state,.clinic-row,.table-wrap,.reading,.feed-post { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: clamp(15px, 2vw, 23px); }
.panel + .panel,.panel + .section-head,.info-box + .section-head { margin-top: 16px; }
.panel h2 { margin-bottom: 10px; }
.panel p + p { margin-top: 10px; }
.empty-state { min-height: 110px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 15px; color: var(--muted); }
.info-box { display: flex; gap: 10px; align-items: flex-start; background: #fff7f8; border: 1px solid #f0d4db; border-radius: 9px; padding: 12px 14px; color: #56313a; margin-block: 12px; }
.info-box .icon { color: var(--accent-dark); margin-top: 2px; }
.urgent { border-left: 4px solid var(--accent); }
.clinic-list { display: grid; gap: 8px; }
.clinic-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px; }
.clinic-row h3 { margin: 2px 0; }
.clinic-row p,.minor { color: var(--muted); font-size: .85rem; }
.clinic-end { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; justify-content: flex-end; }
.compare-control { display: flex; align-items: center; min-height: 42px; gap: 5px; font-size: .83rem; cursor: pointer; }
.compare-control input { width: 16px; height: 16px; accent-color: var(--accent); }
.circle-link { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid var(--line); border-radius: 8px; }
.compare-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-block: 12px; color: var(--muted); font-size: .84rem; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 9px; }
.compare-grid article { padding: 12px; background: var(--page); border-radius: 8px; }
.facts { display: grid; grid-template-columns: minmax(65px,auto) 1fr; column-gap: 17px; row-gap: 6px; margin: 0 0 12px; }
.facts dt { color: var(--muted); font-size: .87rem; }
.facts dd { margin: 0; font-weight: 580; }
.facts a { color: var(--accent-dark); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 630px; text-align: start; }
th,td { text-align: start; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 670; }
thead { background: #f2f2f5; }
tbody th a { color: var(--accent-dark); }
tr:last-child td,tr:last-child th { border-bottom: 0; }
.money,.date { white-space: nowrap; }
.money { font-weight: 750; }
.date { color: var(--muted); font-size: .84rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-block: 18px 4px; }
.pagination a,.pagination span { padding: 5px 9px; background: white; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; }
.reading-layout,.community-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(185px, 245px); align-items: start; gap: 15px; }
.reading { min-width: 0; padding: clamp(14px,2vw,24px); }
.reading .page-heading { margin-top: 0; }
.reading-side h2 { font-size: 1.03rem; }
.reading-side .panel { padding: 14px; }
.reading-side p { font-size: .88rem; }
.side-link { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 4px; font-size: .87rem; font-weight: 660; }
.side-link + .side-link { border-top: 1px solid var(--line); }
.side-link .icon { color: var(--accent-dark); }
.article-art { max-width: 460px; margin: 0 auto 21px 0; overflow: hidden; border-radius: 9px; }
.video-player { display: block; width: 100%; aspect-ratio: 16/9; margin-bottom: 16px; border-radius: 9px; background: #191720; }
.read-body { font-size: 1rem; line-height: 1.84; }
.read-body h2,.read-body h3 { margin-top: 1.35em; }
.read-body p { margin: 0 0 .85em; }
.read-body h2 + p,.read-body h3 + p { margin-top: .55em; }
.read-body p:last-child { margin-bottom: 0; }
.comments { margin-top: 23px; }
.comments h2 { margin-bottom: 9px; }
.comment { margin-block: 8px; background: white; border-left: 3px solid #d8a5b0; padding: 10px 12px; }
.post-form { margin-block: 14px; display: grid; gap: 10px; }
.post-form label,.report label { display: grid; gap: 4px; font-size: .87rem; font-weight: 650; }
.post-form button { justify-self: start; }
.form-note { color: var(--muted); font-size: .83rem; }
.form-row { display: grid; grid-template-columns: minmax(120px, .4fr) 1fr; gap: 8px; }
.report { width: fit-content; padding: 6px 3px; }
.report summary { color: var(--muted); font-size: .8rem; }
.report form { display: flex; align-items: end; flex-wrap: wrap; gap: 5px; padding: 8px 0; }
.feed-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-block: 6px 11px; }
.segmented { display: flex; align-items: center; padding: 3px; gap: 2px; background: #eeeef2; border-radius: 7px; }
.segmented a { min-height: 34px; padding: 5px 10px; border-radius: 5px; color: var(--muted); font-size: .85rem; font-weight: 650; }
.segmented .active { background: white; color: var(--ink); }
.feed-post { display: grid; grid-template-columns: 37px minmax(0,1fr); gap: 11px; margin-bottom: 9px; padding: 12px; }
.vote-display { display: grid; place-items: center; align-self: start; background: var(--accent-wash); color: var(--accent-dark); padding: 4px; border-radius: 7px; font-size: .85rem; }
.feed-post h2 { margin: 4px 0; font-size: 1.1rem; }
.feed-preview { margin: 5px 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.thread .read-body { margin-block: 7px 11px; }
.support-panel ol { margin-block: 7px 14px; padding-left: 1.5em; }
.support-panel li + li { margin-top: 7px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 25px; margin-top: 30px; padding: 17px 0 21px; border-top: 1px solid var(--line); }
.site-footer p,.footer-links { color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: start; gap: 8px 14px; }
@media (max-width: 1150px) {
  .home-actions { grid-template-columns: repeat(2,minmax(0, 1fr)); }
  .home-actions a { min-height: 64px; }
  .hero-copy { padding-block: 25px; }
}
@media (max-width: 950px) {
  .site-layout { grid-template-columns: 62px minmax(0,1fr); }
  .sidebar { padding-inline: 8px; }
  .sidebar .nav-label,.sidebar a span,.sidebar .side-note { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
  .sidebar a { justify-content: center; }
  .site-main { padding-inline: 19px; }
  .header-inner { padding-inline: 15px; }
}
@media (max-width: 720px) {
  :root { --header: 56px; }
  .site-layout { display: block; }
  .sidebar,.top-search { display: none; }
  .header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
  .mobile-menu,.mobile-search { display: block; }
  .icon-button { display: grid; place-items: center; }
  .mobile-tabs { display: grid; position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 4px 3px max(5px,env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); }
  .mobile-tabs a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-height: 46px; padding: 2px; color: var(--muted); font-size: .66rem; font-weight: 700; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
  .mobile-tabs a[aria-current] { color: var(--accent-dark); }
  .site-main { padding: 12px 12px calc(58px + env(safe-area-inset-bottom)); }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 19px 17px 0; }
  .hero h1 { font-size: clamp(1.65rem, 6.5vw, 2.55rem); }
  .hero-copy > p:not(.eyebrow) { margin-block: 9px 13px; font-size: .93rem; }
  .hero-figure { padding: 0 8px 4px; }
  .hero-figure svg { max-height: 145px; }
  .reading-layout,.community-layout { grid-template-columns: minmax(0,1fr); }
  .reading-side { display: block; }
  .home-finder { padding: 13px; margin-top: 14px; }
  .home-module { margin-top: 22px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .card-body { padding: 8px; }
  .card h3 { font-size: .94rem; }
  .clinic-row { grid-template-columns: minmax(0,1fr) auto; }
  .clinic-row > .feature-icon { display: none; }
  .clinic-end { gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .language-menu summary span,.language-menu summary .icon:last-child { display: none; }
  .home-actions a { grid-template-columns: auto minmax(0,1fr); padding: 7px; }
  .home-actions a > .icon { display: none; }
  .home-actions .feature-icon { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; }
}
.care-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-block: 12px; }
.care-options .panel { margin: 0; }
.care-options .feature-icon { margin-bottom: 9px; }
@media (max-width: 720px) {
  .brand { gap: 7px; font-size: 1.08rem; }
  .brand-icon { width: 31px; height: 31px; border-radius: 8px; }
  .brand-icon svg { width: 28px; height: 28px; }
  .header-tools { gap: 5px; flex-shrink: 0; }
  .language-menu summary,.mobile-menu summary,.icon-button { padding-inline: 8px; }
  [lang="ja"] .hero h1 { max-width: none; }
}
@media (max-width: 440px) {
  .language-menu summary .icon:last-child { display: none; }
  .care-options { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .brand { font-size: 1rem; }
  .language-menu summary .icon:first-child { display: block; }
}
