/* シェアスペック — 設備で選ぶシェアハウス。ビルド工程なし。 */
:root {
  --white: #ffffff;
  --gray: #f3f4f5;
  --black: #151719;
  --accent: #c4e000;
  --accent-hover: #b2cc00;
  --bg: var(--white);
  --surface: var(--white);
  --surface-strong: var(--white);
  --text: #17191b;
  --text-soft: #383c40;
  --muted: #6b7075;
  --line: #dcdfe1;
  --ink: var(--black);
  --blue: #24282c;
  --blue-dark: #111315;
  --blue-soft: var(--gray);
  --amber: #777c81;
  --amber-dark: #4f5459;
  --amber-soft: #f4f4f3;
  --featured: #34383c;
  --featured-soft: #eeeeed;
  --accent-ink: var(--black);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 12px 32px rgba(10, 12, 14, .08);
  --shadow-soft: 0 4px 18px rgba(10, 12, 14, .055);
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-head: var(--font);
  --font-display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--black); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--text); line-height: 1.55; margin: 0 0 .55em; font-family: var(--font-head); font-weight: 700; letter-spacing: .025em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
em { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 8px; z-index: 100; }

/* Header / footer */
.site-header { position: static; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 82px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.logo-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 3px; box-shadow: inset 0 -4px var(--accent); }
.logo-mark span { font-size: .67rem; font-weight: 700; letter-spacing: .04em; font-family: var(--font-head); }
.logo-copy { display: grid; line-height: 1; }
.logo-text { font-family: var(--font-head); font-size: 1.32rem; font-weight: 800; letter-spacing: .06em; }
.logo-tagline { margin-top: 5px; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 24px; font-size: .9rem; font-weight: 700; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta { color: var(--black); background: var(--accent); padding: 10px 18px; border-radius: 5px; }
.nav .nav-cta:hover { color: var(--black); background: var(--accent-hover); }

.site-footer { margin-top: 84px; padding: 48px 0 26px; background: var(--gray); border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.site-footer a { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.05fr .9fr 1.25fr; gap: clamp(30px, 6vw, 78px); }
.logo-footer { color: var(--text); margin-bottom: 18px; }
.logo-footer .logo-tagline { color: var(--muted); }
.footer-brand p { max-width: 32ch; }
.footer-label { color: var(--text); font-size: .74rem; font-weight: 700; letter-spacing: .1em; }
.footer-nav { display: grid; align-items: start; gap: 7px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #000; }
.footer-note { max-width: 48em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }
.footer-bottom p { margin: 0; }

/* Common blocks */
main { padding-top: 18px; }
.breadcrumb ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; font-size: .79rem; font-weight: 600; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 7px; color: #9eacab; }
.breadcrumb a { color: var(--muted); }
.lead { font-size: clamp(1rem, 1.8vw, 1.1rem); color: var(--text-soft); max-width: 46em; }
.section { margin-top: 72px; }
.page-head { margin-top: 26px; max-width: 900px; }
.small { font-size: .86rem; color: var(--muted); }
.center { text-align: center; }
.empty { color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }
.section-kicker, .eyebrow { margin: 0 0 8px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.section-kicker::before { content: ""; display: inline-block; width: 14px; height: 4px; margin-right: 8px; background: var(--accent); vertical-align: .18em; }
.section-link, .text-link { color: var(--text); font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-link:hover, .text-link:hover { color: var(--blue); }
.callout { background: var(--blue-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 48px); }
.callout ul { margin: 0; padding-left: 1.2em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--accent); font-size: .88rem; cursor: pointer; font-family: inherit; transition: background-color .18s ease, border-color .18s ease; }
.btn:hover { color: var(--black); background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: #aeb2b5; }
.btn-ghost:hover { color: var(--text); background: var(--gray); border-color: #7b8084; }
.btn-light { background: var(--accent); color: var(--black); border-color: var(--accent); }
.btn-light:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--black); }
.btn-wide { display: flex; max-width: 500px; margin: 0 auto; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: clamp(30px, 5vw, 60px); align-items: center; margin-top: 0; padding: 48px 0 42px; border-bottom: 1px solid var(--line); }
.hero-copy { padding-block: 6px; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.15rem); line-height: 1.55; margin-bottom: 19px; letter-spacing: .035em; }
.hero-accent { position: relative; display: inline-block; margin-left: .05em; z-index: 0; }
.hero-accent::after { content: ""; position: absolute; z-index: -1; right: -.05em; bottom: .14em; left: -.05em; height: .19em; background: var(--accent); }
.hero .lead { margin-bottom: 26px; max-width: 39em; color: var(--muted); font-size: .95rem; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 23px; }
.btn-hero { background: var(--accent); border-color: var(--accent); color: var(--black); padding: 12px 22px; }
.btn-hero:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--black); }

.hero-side { display: grid; gap: 14px; min-width: 0; padding: 0; }
.hero-side-noimage { padding-bottom: 0; }
.hero-side-noimage .hero-data { position: relative; inset: auto; }
.hero-visual { position: relative; margin: 0; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 5px; background: #e4e5e6; }
.hero-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(10, 12, 14, .08); border-radius: inherit; pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual figcaption { position: absolute; right: 9px; bottom: 8px; z-index: 1; margin: 0; padding: 3px 7px; border-radius: 2px; background: rgba(15, 17, 19, .78); color: rgba(255, 255, 255, .86); font-size: .62rem; line-height: 1.5; }
.hero-data { position: relative; inset: auto; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; background: #f3f4f4; border-radius: 5px; border: 1px solid var(--line); }
.compare-col { display: grid; gap: 2px; padding: 12px 14px; background: transparent; border: 0; }
.compare-col + .compare-col { border-left: 1px solid var(--line); }
.compare-with { border-color: var(--line); background: #fff; box-shadow: inset 0 4px var(--accent); }
.compare-label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.compare-with .compare-label { color: var(--text-soft); }
.compare-value { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.compare-note { grid-column: 1 / -1; margin: 0; padding: 7px 13px; border-top: 1px solid var(--line); font-size: .66rem; line-height: 1.55; color: var(--muted); }

/* Facilities */
.facility-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.facility-grid a { position: relative; display: block; height: 100%; min-height: 116px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); transition: border-color .18s ease, background-color .18s ease; }
.facility-grid a.has-media { display: grid; grid-template-columns: minmax(150px, 42%) minmax(0, 1fr); min-height: 184px; }
.facility-grid a::before { content: none; }
.facility-grid a::after { content: "→"; position: absolute; right: 18px; bottom: 14px; color: var(--muted); font-size: 1rem; transition: color .18s ease; }
.facility-grid li:nth-child(3n + 2) a, .facility-grid li:nth-child(3n + 3) a { background: #fff; }
.facility-grid a:hover { border-color: #9eb400; background: #fafbf5; }
.facility-grid a:hover::after { color: var(--black); }
.facility-media { display: block; min-width: 0; min-height: 184px; overflow: hidden; background: var(--gray); }
.facility-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.facility-grid a:hover .facility-media img { transform: scale(1.025); }
.facility-body { display: block; min-width: 0; padding: 18px 46px 18px 18px; }
.facility-code { display: inline-block; margin: 0 0 7px; padding: 1px 6px; border-radius: 2px; background: var(--accent); color: var(--black); font-size: .61rem; font-weight: 800; line-height: 1.7; letter-spacing: .1em; }
.facility-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.55; }
.facility-count { display: inline-block; margin-top: 5px; color: var(--text-soft); font-weight: 700; font-size: .74rem; }
.facility-blurb { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; line-height: 1.65; }

.cost-note { margin: 18px 0 0; padding: 16px 19px; background: var(--amber-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; }
.cost-note p { margin: 0; }
.cost-note .source { margin-top: 6px; font-size: .78rem; color: var(--muted); }

/* Hubs (乗り換えなしで行ける駅) */
.hub-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hub-grid a { position: relative; display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .18s ease, background-color .18s ease; }
.hub-grid a::after { content: "→"; position: absolute; right: 14px; bottom: 12px; color: var(--muted); }
.hub-grid a:hover { border-color: #9eb400; background: #fafbf5; }
.hub-media { display: block; aspect-ratio: 3 / 1.65; overflow: hidden; background: var(--gray); }
.hub-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hub-grid a:hover .hub-media img { transform: scale(1.025); }
.hub-card-body { display: grid; gap: 2px; padding: 13px 38px 14px 15px; }
.hub-name { font-weight: 700; line-height: 1.5; }
.hub-count { color: var(--muted); font-size: .76rem; font-weight: 700; }
.hub-grid-note { margin-top: 9px; }
.hubs { margin-top: 18px; }
.hubs-label { margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; align-items: center; }
.filter-chip { display: inline-block; padding: 6px 13px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: .84rem; font-weight: 600; }
.filter-chip:hover { border-color: #9eb400; color: var(--black); }
.filter-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--black); }
.filter-chip.is-off { color: var(--muted); background: transparent; }
.page-head .note, .hubs .note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.lines { font-size: .92rem; }
.card-hubs { color: var(--blue-dark); font-weight: 600; }

/* Listings */
.disclosure { margin: 0 0 18px; font-size: .8rem; color: var(--muted); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: none; transition: border-color .18s ease; }
.card:hover { border-color: #8b8f93; box-shadow: none; }
.card-featured { border-color: #a7bd12; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 2.7; overflow: hidden; background: #e8ece8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.02); }
.card-noimage { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .83rem; }
.card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.12rem; margin: 0 0 6px; font-weight: 700; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-place { margin: 0; color: var(--text-soft); font-size: .85rem; font-weight: 600; }
.card-meta { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.card-rent { margin: 10px 0 0; color: var(--blue-dark); font-weight: 700; }
.ftags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.ftag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; background: var(--blue-soft); color: var(--blue-dark); text-decoration: none; }
.ftag:hover { background: var(--accent); color: var(--black); }
.ftag.is-on { background: var(--accent); color: var(--black); }
.ftag-pet { background: #eceeef; color: #34383c; }
.card-note { margin: 12px 0 0; padding: 10px 12px; background: var(--bg); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .83rem; color: var(--text-soft); }
.card-note p { margin: 0; }
.card-note cite { display: block; margin-top: 4px; font-style: normal; font-size: .72rem; color: var(--muted); }
.card-actions { margin: auto 0 0; padding-top: 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.card-actions .btn { padding: 7px 12px; font-size: .78rem; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); }
.badge-featured { background: var(--accent); color: var(--black); }
.badge-offer { background: #e7e8e9; color: #34383c; }

/* Tools callout on home */
.tools-callout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 72px); align-items: start; overflow: hidden; background: #17191b; color: rgba(255, 255, 255, .72); border: 0; box-shadow: none; }
.tools-callout::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -180px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.tools-callout > * { position: relative; z-index: 1; }
.tools-callout h2 { color: #fff; }
.tools-callout .section-kicker { color: #d8dadd; }
.about-short { max-width: 760px; }

/* Guide list (tools index) */
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 22px; box-shadow: none; }
.guide-list a { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.5; }
.guide-list p { margin: 8px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }

/* Guide list thumbnails / article */
.guide-list li.has-thumb { display: grid; grid-template-columns: 122px 1fr; gap: 18px; align-items: start; }
.guide-thumb { display: block; border-radius: 13px; overflow: hidden; background: var(--line); aspect-ratio: 3 / 2; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article > h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
/* 日本語の見出しを語のまとまりで折り返す (<span class="ph">このサイトへの</span><span class="ph">掲載について</span>)。1 文字だけが次の行に落ちるのを防ぐ */
.ph { display: inline-block; }
.article-meta { color: var(--muted); font-size: .83rem; }
.article-hero { margin: 22px 0 32px; }
.article-hero img { width: 100%; max-height: 450px; object-fit: cover; border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow-soft); }
.draft-note { display: inline-block; background: var(--featured-soft); color: var(--featured); font-weight: 600; font-size: .82rem; padding: 5px 11px; border-radius: 999px; }
.prose h3 { margin-top: 1.5em; }
.prose blockquote { margin: 1.2em 0; padding: .8em 1.1em; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose .note { background: var(--blue-soft); border-radius: var(--radius); padding: 17px 19px; }
.prose table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0 0 1.2em; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .91rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose .cards { margin: 1.2em 0; }
.prose .disclosure { margin-top: 1.2em; }
.page-hero { width: min(calc(100vw - 48px), calc(var(--wrap) - 48px)); aspect-ratio: 5 / 2; margin: 16px 0 20px; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.page-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .guide-list li.has-thumb { grid-template-columns: 94px 1fr; gap: 14px; } .prose table { display: block; overflow-x: auto; } }

/* Articles / prose */
.article { max-width: 760px; margin-inline: auto; }
.prose { color: var(--text-soft); }
.prose h2 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.facts { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0 0 1.2em; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .91rem; }
.facts th, .facts td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 9em; color: var(--muted); font-weight: 600; }
.sources { font-size: .84rem; color: var(--muted); }

/* Calculator and forms */
.result { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.result-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 23px; box-shadow: none; }
.result-sh { border-color: #a7bd12; background: var(--gray); box-shadow: inset 0 4px var(--accent); }
.result-col h2 { font-family: var(--font); font-size: .84rem; margin: 0; color: var(--muted); letter-spacing: .04em; }
.result-total { color: var(--text); font-family: var(--font-head); font-size: 2.1rem; font-weight: 900; margin: 5px 0 0; font-variant-numeric: tabular-nums; }
.result-sub { margin: 0; color: var(--muted); font-size: .85rem; }
.result-note { margin-top: 12px; }
.calc { margin-top: 32px; display: grid; gap: 18px; }
.calc fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; background: var(--surface); display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px 19px; margin: 0; }
.calc legend { font-weight: 700; padding: 0 7px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: .86rem; font-weight: 700; }
.field-input { display: flex; align-items: center; gap: 7px; }
.field-input input, .calc select { width: 100%; font: inherit; padding: 10px 11px; border: 1px solid #bfc3c6; border-radius: 6px; background: #fff; color: var(--text); }
.field-input input:focus, .calc select:focus, .form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 3px solid rgba(196, 224, 0, .32); border-color: #8fa300; }
.unit { color: var(--muted); font-size: .84rem; }
.field-hint { font-size: .76rem; color: var(--muted); }
.choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 17px; }
.breakdown table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.breakdown caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.breakdown th, .breakdown td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .89rem; }
.breakdown td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.breakdown tfoot th, .breakdown tfoot td { font-weight: 800; border-bottom: 0; }
.row-note { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }

.form { display: grid; gap: 17px; max-width: 600px; margin-top: 20px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.form-row label { font-weight: 700; font-size: .89rem; }
.form-row input, .form-row select, .form-row textarea { font: inherit; padding: 11px 13px; border: 1px solid #bfc3c6; border-radius: 6px; background: var(--surface); color: var(--text); }
.req { font-size: .7rem; font-weight: 700; color: var(--featured); margin-left: 4px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: var(--featured-soft); color: var(--featured); border-radius: var(--radius-sm); padding: 13px 17px 13px 34px; margin: 16px 0 0; }
.form-done { font-weight: 700; color: var(--blue-dark); }

@media (max-width: 950px) {
  .nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-side { max-width: 760px; padding-bottom: 0; }
  .facility-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .wrap { padding-inline: 20px; }
  .header-inner { min-height: 0; padding-top: 16px; flex-wrap: wrap; gap: 10px; }
  .logo-mark { width: 36px; }
  .logo-text { font-size: 1.15rem; }
  .logo-tagline { display: none; }
  .nav { order: 2; display: flex; width: 100%; margin: 0; gap: 0; border-top: 1px solid #eceeef; font-size: .72rem; }
  .nav a, .nav a:first-child { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 46px; padding: 0 3px; text-align: center; }
  .nav .nav-cta { padding: 0 3px; border-radius: 0; background: var(--accent); color: var(--black); }
  .nav .nav-cta:hover { color: var(--black); background: var(--accent-hover); }
  main { padding-top: 16px; }
  .hero { margin-top: 0; padding: 28px 0 30px; gap: 24px; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); line-height: 1.55; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-side { padding-bottom: 0; }
  .hero-visual { border-radius: 4px; }
  .hero-data { position: relative; inset: auto; width: 100%; margin: 0; }
  .compare { grid-template-columns: 1fr 1fr; padding: 0; }
  .section { margin-top: 60px; }
  .section-head { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 19px; }
  .facility-grid, .cards, .guide-list { grid-template-columns: 1fr; }
  .facility-grid a.has-media { grid-template-columns: 1fr; min-height: 0; }
  .facility-media { min-height: 0; aspect-ratio: 2 / 1; }
  .facility-body { padding: 17px 48px 18px 18px; }
  .page-hero { width: 100%; aspect-ratio: 3 / 2; }
  .tools-callout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; }
}

@media (max-width: 420px) {
  .logo-mark { width: 34px; }
  .logo-text { font-size: 1.06rem; }
  .nav, .nav .nav-cta { font-size: .68rem; }
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-top: 1px solid var(--line); border-left: 0; }
  .card-actions { align-items: stretch; flex-direction: column; }
  .card-actions .btn { width: 100%; }
}

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

@media print {
  .site-header, .site-footer, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- よくある質問 (docs/design.md §12) ---- */
.faq h2 { margin-bottom: .6rem; }
.faq-list { margin: 0; padding: 0; }
.faq-item { padding: .9rem 0; border-top: 1px solid var(--line, #e2e6ea); }
.faq-item:last-child { border-bottom: 1px solid var(--line, #e2e6ea); }
.faq-item dt { margin: 0 0 .35rem; padding-left: 1.6em; text-indent: -1.6em; font-weight: 700; line-height: 1.6; }
.faq-item dt::before { content: "Q"; display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-right: .25em; border-radius: 2px; background: var(--accent); color: var(--black); text-indent: 0; font-weight: 800; line-height: 1; }
.faq-item dd { margin: 0; padding-left: 1.6em; font-size: .95rem; line-height: 1.85; color: var(--muted, #4b5563); }

/* 記事の目次 (lib/articles.php の article_toc)。本文の h2 から作る */
.article-toc { margin: 0 0 32px; padding: 18px 22px 16px; background: var(--gray); border-radius: var(--radius); }
.article-toc__title { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.article-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.article-toc li:first-child { border-top: 0; }
.article-toc a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; color: var(--text); text-decoration: none; font-size: .93rem; line-height: 1.5; }
.article-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 1.6em; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.article-toc a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose h2[id] { scroll-margin-top: 16px; }

/* ---- 物件カードの紹介動画プレビュー (assets/card-preview.js)。本体 share-clip.com の一覧と同じ見せ方 ----
   写真の上に透明で重ね、流れ始めたら (.is-playing) 見せる。クリックは下のリンクへ通す。
   対象は、本体でおすすめ枠があり紹介動画を公開している物件だけ (フィードの video_preview) */
.card-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; pointer-events: none; background: transparent; }
.card-preview.is-playing { opacity: 1; }
.card-preview-badge { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 2px 9px 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; pointer-events: none; }

/* ---- スマホ: ページの途中でも押せるメニュー。ヘッダーが画面の外に出たら、ロゴとメニューのボタンの細い帯を上に出す
   (帯の中身は assets/sticky-bar.js がヘッダーから作る。先頭にいるあいだの見た目は変えない) */
.sticky-bar { display: none; }
@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  .sticky-bar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px 0 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(21, 23, 25, .08); transform: translateY(-110%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
  .sticky-bar.is-visible { transform: none; visibility: visible; transition: transform .22s ease; }
  .sticky-bar__brand .logo-tagline { display: none; }
  .sticky-bar__toggle { width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
  .sticky-bar__menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 56px); overflow-y: auto; padding: 2px 20px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(21, 23, 25, .14); }
  .sticky-bar__menu[hidden] { display: none; }
  .sticky-bar__menu > a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid #eceeef; color: var(--text); font-size: .95rem; font-weight: 700; text-decoration: none; }
  .sticky-bar__menu > a.is-cta { justify-content: center; gap: 6px; min-height: 46px; margin-top: 14px; border: 0; border-radius: 5px; background: var(--accent); color: var(--black); }
}
@media print { .sticky-bar { display: none !important; } }

/* ---- シェアクリップのバナー広告 (lib/sc-ads.php・2026-10-25) ----
   TOPバナー広告S (.sc-ad--top) はトップの最初の画面のすぐ下に 1 枚、バナー広告A (.sc-ad--a) は全ページの本文の下に 2 枚。
   PC 用とスマホ用を両方描き、767px を境に片方を隠す (本体の広告と同じ境目)。4 サイトで同じ形 (色だけ各サイトの変数) */
.sc-ad__set { margin: 40px auto; }
.sc-ad--top .sc-ad__set { max-width: 760px; }
.sc-ad__label { margin: 0 0 6px; font-size: 11px; line-height: 1.4; letter-spacing: .08em; color: var(--muted); }
.sc-ad__list { display: grid; gap: 12px; }
/* 本文の幅が狭いページ (650px 未満) では 1 列。1 枚しか無いときに 750px より大きく引き伸ばさない */
.sc-ad--a .sc-ad__set--pc .sc-ad__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.sc-ad--a .sc-ad__item { max-width: 750px; }
.sc-ad__item { display: block; overflow: hidden; border-radius: 8px; background: #f3f4f5; transition: opacity .2s; }
.sc-ad__item[hidden] { display: none; }
.sc-ad__item:hover { opacity: .9; }
.sc-ad__item img, .sc-ad__item video { display: block; width: 100%; height: auto; }
.sc-ad__set--sp { display: none; }
@media (max-width: 767px) {
  .sc-ad__set { margin: 32px auto; }
  .sc-ad__set--pc { display: none; }
  .sc-ad__set--sp { display: block; }
}
@media print { .sc-ad { display: none !important; } }

