/* シェアトク — 安さで選ぶシェアハウス。ビルド工程なし。
   赤・生成り・墨色と手描きの線画で、家賃を抑える暮らしを明るく伝える。 */
:root {
  --white: #ffffff;
  --gray: #f2eee6;
  --black: #302c28;
  --accent: #d93832;          /* 朱色 */
  --accent-hover: #b92a26;
  --accent-ink: #ffffff;
  --accent-soft: #fff0ec;
  --accent-line: #efc6bd;
  --green: #1d6b45;           /* 空室あり */
  --green-soft: #e5f2ea;
  --bg: #faf8f3;
  --surface: var(--white);
  --text: #302c28;
  --text-soft: #3d3835;
  --muted: #716a61;
  --line: #ded8ce;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

*, *::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(--accent-ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--text); line-height: 1.55; margin: 0 0 .55em; font-weight: 700; letter-spacing: .025em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }

.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 { background: #fff; border-bottom: 1px solid var(--line); box-shadow: inset 0 3px var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.logo:hover { color: var(--text); }
.logo-copy { display: grid; line-height: 1; }
.logo-text { font-size: 1.45rem; font-weight: 800; letter-spacing: .06em; }
.logo-em { color: var(--accent); }
.logo-tagline { margin-top: 6px; 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(--accent); }
.nav .nav-cta { color: var(--accent-ink); background: var(--accent); padding: 10px 18px; border-radius: 5px; }
.nav .nav-cta:hover { color: var(--accent-ink); 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: 1fr .8fr .8fr 1.2fr; gap: clamp(26px, 5vw, 60px); }
.logo-footer { margin-bottom: 18px; }
.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: var(--accent); }
.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: #b3a9a4; }
.breadcrumb a { color: var(--muted); }
.lead { font-size: clamp(1rem, 1.8vw, 1.08rem); color: var(--text-soft); max-width: 46em; }
.section { margin-top: 72px; }
.page-head { margin-top: 22px; max-width: 920px; }
.small { font-size: .84rem; color: var(--muted); }
.empty { color: var(--muted); }
.note { font-size: .86rem; color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }
.section-kicker, .eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .74rem; 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; }
.section-link { white-space: nowrap; color: var(--muted); }
.text-link:hover { color: var(--accent); }
.h-small { font-size: 1.1rem; }
.main-link { margin: 14px 0 0; }
.sources { margin: 14px 0 0; font-size: .78rem; line-height: 1.75; color: var(--muted); }
.sources a { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; 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(--accent-ink); background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr); gap: clamp(28px, 5vw, 60px); align-items: center; padding: 44px 0 42px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); line-height: 1.5; margin-bottom: 18px; letter-spacing: .03em; }
/* 日本語の見出しを語のまとまりで折り返す (1 文字だけ次の行に落ちるのを防ぐ。シェアスペックと同じ .ph) */
.ph { display: inline-block; }
.hero-accent { position: relative; display: inline-block; z-index: 0; color: var(--accent); }
.hero .lead { margin-bottom: 24px; max-width: 38em; color: var(--muted); font-size: .95rem; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; }
.btn-hero { padding: 12px 22px; }
.hero-side { min-width: 0; }
.hero-side-label { margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: var(--text-soft); }

/* ワンルームとの比較の箱 */
.compare { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.hero .compare { margin-top: 0; }
.compare-col { display: grid; gap: 2px; padding: 14px 16px; }
.compare-col + .compare-col { border-left: 1px solid var(--line); }
.compare-share { background: var(--accent-soft); box-shadow: inset 0 4px var(--accent); }
.compare-label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.compare-share .compare-label { color: var(--text-soft); }
.compare-value { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.compare-share .compare-value { color: var(--accent); }
.compare-note { grid-column: 1 / -1; margin: 0; padding: 9px 14px 10px; border-top: 1px solid var(--line); font-size: .74rem; line-height: 1.7; color: var(--muted); }
.compare-note strong { display: block; margin-bottom: 2px; color: var(--text); font-size: .86rem; }

/* エリアごとの比較の表 (スマホでは行ごとの箱にする) */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; overflow: hidden; }
.compare-table th, .compare-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; font-variant-numeric: tabular-nums; }
.compare-table thead th { background: var(--gray); color: var(--muted); font-size: .74rem; font-weight: 700; line-height: 1.5; text-align: right; }
.compare-table thead th:first-child, .compare-table tbody th { text-align: left; }
.compare-table tbody th { font-weight: 700; }
.compare-table tbody th a { text-decoration: none; }
.compare-table tbody th a:hover { text-decoration: underline; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .gap { font-weight: 700; white-space: nowrap; }
.compare-table .gap-cheaper { color: var(--accent); }
.compare-table .na { color: var(--muted); }
.table-note { margin-top: 10px; line-height: 1.75; }

/* 入口 (価格帯・ドミトリー・区市) */
.entry-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entry-grid a, .entry-off { position: relative; display: grid; gap: 2px; align-content: end; height: 100%; padding: 18px 44px 18px 20px; 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; }
.entry-grid a::after { content: "→"; position: absolute; right: 18px; bottom: 16px; color: var(--muted); }
.entry-grid a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.entry-off { color: var(--muted); background: var(--gray); }
.entry-label { font-size: .9rem; font-weight: 700; }
.entry-count { font-size: 2rem; font-weight: 800; line-height: 1.3; color: var(--accent); font-variant-numeric: tabular-nums; }
.entry-off .entry-count { color: var(--muted); }
.entry-count small { margin-left: 2px; font-size: .9rem; font-weight: 700; color: var(--text-soft); }
.entry-sub { font-size: .78rem; color: var(--muted); font-weight: 600; }
.dorm-entry { position: relative; display: flex; margin-top: 18px; border-radius: var(--radius); background: var(--black); color: #fff; text-decoration: none; overflow: hidden; }
.dorm-entry-text { display: grid; gap: 2px; align-content: center; flex: 1; min-width: 0; padding: 20px 48px 20px 22px; }
.dorm-entry::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .7); }
.dorm-entry:hover { color: #fff; background: #2d2623; }
.dorm-entry-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: #f3a58f; }
.dorm-entry-title { font-size: 1.15rem; font-weight: 700; }
.dorm-entry-title strong { color: #ffb59f; white-space: nowrap; }
.dorm-entry-sub { font-size: .82rem; color: rgba(255, 255, 255, .75); }

.a2-group { margin-top: 30px; }
.a2-group h3 { margin: 0 0 10px; font-size: 1.05rem; }
.a2-group h3 a { text-decoration: none; }
.a2-group h3 a:hover { color: var(--accent); text-decoration: underline; }
.a2-group-count { margin-left: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.a2-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.a2-grid a { display: grid; gap: 1px; align-content: end; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; line-height: 1.55; }
.a2-grid a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.a2-name { font-weight: 700; }
.a2-count { font-size: .76rem; color: var(--muted); font-weight: 700; }
.a2-rent { font-size: .82rem; font-weight: 700; color: var(--accent); }
.a2-studio { font-size: .74rem; color: var(--muted); }

/* チップ */
.chips, .band-nav { margin-top: 18px; }
.chips-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; }
.filters-sub { margin-top: 10px; }
.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; line-height: 1.6; }
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-count { color: var(--muted); font-weight: 600; }
.filter-chip.is-on .chip-count { color: inherit; }

/* 一覧 */
.listing { margin-top: 48px; }
.disclosure { margin: 0 0 22px; font-size: .8rem; color: var(--muted); background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; line-height: 1.8; }
.rent-note { margin: 18px 0 10px; }
.band { margin-top: 40px; scroll-margin-top: 16px; }
.band:first-of-type { margin-top: 0; }
.band-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; padding-left: 12px; border-left: 5px solid var(--accent); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.4; }
.band-count { font-size: .84rem; font-weight: 600; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .18s ease; }
.card:hover { border-color: #a79c96; }
.card-full .card-media img { filter: grayscale(.55); opacity: .82; }
.card-media { position: relative; display: block; color: var(--muted); text-decoration: none; aspect-ratio: 4 / 2.7; overflow: hidden; background: #ece7e4; }
.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: 15px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.08rem; margin: 0 0 4px; }
.card-title a { text-decoration: none; }
.card-place { margin: 0; color: var(--text-soft); font-size: .85rem; font-weight: 600; }
.card-meta { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.card-rent { margin: 12px 0 0; padding: 10px 12px; background: var(--gray); border-radius: var(--radius-sm); }
.card-rent > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.card-rent dt { font-size: .74rem; font-weight: 700; color: var(--muted); }
.card-rent dd { margin: 0; font-variant-numeric: tabular-nums; }
.rent-main dd { font-size: 1.2rem; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.card-full .rent-main dd { color: var(--text-soft); }
.rent-sub dd { font-size: .88rem; font-weight: 700; color: var(--text-soft); }
.card-actions { margin: auto 0 0; padding-top: 14px; }
.card-actions .btn { width: 100%; padding: 8px 12px; font-size: .84rem; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.badge { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--gray); color: var(--text-soft); line-height: 1.6; }
.badge-vacant { background: var(--green-soft); color: var(--green); }
.badge-full { background: #4b4441; color: #fff; }
.badge-offer { background: var(--accent-soft); color: var(--accent-hover); }
.badge-featured { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* About / prose */
.about-short { max-width: 760px; }
.article { max-width: 760px; margin-inline: auto; }
.article > h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.prose { color: var(--text-soft); }
.prose h2 { margin-top: 1.9em; }
.prose ul { 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; }

/* よくある質問 */
.faq h2 { margin-bottom: .6rem; }
.faq-list { margin: 0; padding: 0; }
.faq-item { padding: .9rem 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.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(--accent-ink); 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); }

/* 物件カードの紹介動画プレビュー (assets/card-preview.js)。シェアスペックと同じ見せ方 */
.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; }

/* ---- ページの画像 (管理画面 /admin/ から登録。lib/page-images.php・docs/design.md §11) ----
   画像は飾り (alt は空)。登録の無いページ・カードは今までの見た目のまま */
.page-hero { margin: 4px 0 22px; aspect-ratio: 5 / 2; overflow: hidden; border-radius: var(--radius); background: var(--gray); }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-side .page-hero { margin: 0 0 18px; aspect-ratio: 3 / 2; }
/* 価格帯の入口: 写真をカードの上に */
.entry-grid a.has-media { padding-top: 0; overflow: hidden; }
.entry-media { display: block; margin: 0 -44px 12px -20px; aspect-ratio: 2 / 1; overflow: hidden; background: var(--gray); }
.entry-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.entry-grid a.has-media:hover .entry-media img { transform: scale(1.03); }
/* ドミトリーの入口: 写真を左に */
.dorm-media { position: relative; flex: 0 0 26%; max-width: 280px; min-height: 120px; background: #2d2623; }
.dorm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }   /* 高さは文字の側で決める */
/* 区・市の一覧: エリアの見出しと区・市のカードに写真 */
.a2-group-h { margin: 0 0 10px; }
.a2-group-head { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.a2-group-head:hover .a2-group-title { color: var(--accent); text-decoration: underline; }
.a2-group-media { flex: 0 0 auto; width: 84px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--gray); }
.a2-group-media img { width: 100%; height: 100%; object-fit: cover; }
.a2-grid a.has-media { padding-top: 0; overflow: hidden; }
.a2-media { display: block; margin: 0 -14px 8px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--gray); }
.a2-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 950px) {
  .nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { max-width: 640px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
  .compare-table thead th { font-size: .7rem; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
}

@media (max-width: 760px) {
  /* 表は行ごとの箱に組み替える (ページを横にスクロールさせない) */
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; }
  .compare-table { border: 0; background: transparent; overflow: visible; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare-table tbody { display: grid; gap: 10px; }
  .compare-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
  .compare-table tbody th { grid-column: 1 / -1; padding: 10px 12px; background: var(--gray); border-bottom: 1px solid var(--line); }
  .compare-table tbody td { display: grid; gap: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
  .compare-table tbody td:nth-of-type(even) { border-left: 1px solid var(--line); }
  .compare-table tbody td::before { content: attr(data-label); font-size: .68rem; font-weight: 700; color: var(--muted); line-height: 1.5; }
  .compare-table tbody tr td:nth-last-of-type(-n+2) { border-bottom: 0; }
  .compare-table tbody tr:last-child th { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .wrap { padding-inline: 16px; }
  .header-inner { min-height: 0; padding-top: 14px; flex-wrap: wrap; gap: 10px; }
  .logo-text { font-size: 1.25rem; }
  .nav { order: 2; display: flex; width: 100%; margin: 0; gap: 0; border-top: 1px solid #eee8e5; font-size: .74rem; }
  .nav a { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 46px; padding: 0 3px; text-align: center; line-height: 1.4; }
  .nav .nav-cta { padding: 0 3px; border-radius: 0; }
  main { padding-top: 14px; }
  .hero { padding: 26px 0 30px; gap: 24px; }
  .hero h1 { font-size: clamp(1.65rem, 7.4vw, 2.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section { margin-top: 56px; }
  .section-head { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-grid a, .entry-off { grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 40px 14px 16px; }
  .entry-label { grid-column: 1; }
  .entry-count { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; }
  .entry-sub { grid-column: 1; }
  .entry-grid a::after { bottom: auto; top: 50%; transform: translateY(-50%); right: 14px; }
  .entry-media { grid-column: 1 / -1; margin: 0 -40px 10px -16px; }
  .entry-grid a.has-media .entry-count { grid-row: 2 / span 2; }
  .entry-grid a.has-media::after { top: auto; bottom: 16px; transform: none; }
  .page-hero { aspect-ratio: 3 / 2; margin-bottom: 18px; }
  .dorm-entry.has-media { flex-direction: column; }
  .dorm-media { flex: none; max-width: none; min-height: 0; aspect-ratio: 5 / 2; }
  .dorm-media img { position: static; }
  .dorm-entry.has-media::after { top: auto; bottom: 20px; transform: none; }
  .a2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-legal { grid-column: 1 / -1; }
  .footer-bottom { align-items: start; flex-direction: column; }
}

@media (max-width: 420px) {
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--line); }
  .a2-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .a2-grid a { padding: 10px 11px; }
  .a2-media { margin: 0 -11px 8px; }
  .a2-grid a.has-media { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@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, .sticky-bar { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- スマホ: ページの途中でも押せるメニュー。ヘッダーが画面の外に出たら、ロゴとメニューのボタンの細い帯を上に出す
   (帯の中身は 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 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(27, 23, 21, .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 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(27, 23, 21, .14); }
  .sticky-bar__menu[hidden] { display: none; }
  .sticky-bar__menu > a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid #eee8e5; 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(--accent-ink); }
}

/* ---- 2026.10: 赤い線画と、暮らしの余白 ---- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.design-icon { display: block; width: 48px; height: 48px; flex-shrink: 0; }
.icon-red { stroke: var(--accent); }
.site-header { margin: 10px 10px 0; border: 0; border-radius: 26px 26px 0 0; box-shadow: none; background: var(--bg); }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 38px; background: var(--accent); z-index: -1; }
.header-inner { min-height: 106px; gap: 24px; }
.logo { gap: 12px; }
.logo-mark { width: 47px; height: 50px; color: var(--accent); }
.logo-mark .design-icon { width: 47px; height: 50px; stroke-width: 2.4; }
.logo-text { font-size: 1.9rem; color: var(--accent); font-weight: 900; letter-spacing: -.07em; }
.logo-tagline { margin-top: 8px; font-size: .63rem; letter-spacing: .1em; color: var(--text-soft); }
.nav { gap: 30px; font-size: .83rem; }
.nav a { position: relative; }
.nav a:not(.nav-cta)::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--accent-line); vertical-align: middle; }
.nav .nav-cta { border-radius: 50px; padding: 12px 22px; }
main { padding-top: 0; }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); gap: 0; min-height: 556px; padding: 44px 0 54px; border: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; font-size: .7rem; letter-spacing: .04em; }
.hero-eyebrow > span { font-size: .65rem; letter-spacing: .12em; border: 1px solid var(--accent); border-radius: 50px; padding: 4px 11px; transform: rotate(-3deg); }
.hero h1 { margin: 22px -50px 22px 0; font-size: clamp(2rem, 3.55vw, 3.15rem); font-weight: 900; line-height: 1.7; letter-spacing: .025em; position: relative; z-index: 1; }
.hero-accent::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 9px; border-top: 2px solid var(--accent); border-radius: 50%; transform: rotate(-1.5deg); }
.hero-intro { font-size: 1rem; font-weight: 700; line-height: 1.9; margin-bottom: 13px; }
.hero .lead { font-size: .85rem; line-height: 1.9; margin-bottom: 26px; }
.hero-actions { gap: 22px; }
.btn { border-radius: 50px; min-height: 48px; }
.btn-hero { min-width: 205px; padding: 15px 25px; justify-content: space-between; }
.btn-hero span { font-size: 1.1rem; }
.hero-small { color: var(--muted); font-size: .69rem; margin: 16px 0 0; }
.hero-visual { position: relative; min-width: 0; padding-top: 10px; }
.hero-illustration { width: 100%; height: auto; mix-blend-mode: multiply; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent); mask-composite: intersect; }
.hero-caption { text-align: center; font-size: .8rem; letter-spacing: .07em; font-weight: 700; color: var(--text-soft); margin: 4px 0 0; }
.hero-caption span { display: inline-block; font-size: 1.5rem; color: var(--accent); vertical-align: middle; margin-right: 9px; }
.hero-visual .page-hero { aspect-ratio: 3 / 2; margin: 0; border-radius: 48% 48% 16px 16px; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 14px; }
.home-steps a { position: relative; display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 0 22px; font-size: .71rem; color: var(--muted); }
.home-steps a + a { border-left: 1px dashed var(--line); }
.home-steps .design-icon { width: 39px; height: 39px; color: var(--text); }
.home-steps small { display: block; color: var(--text); font-size: .95rem; font-weight: 700; margin-top: 2px; }
.step-number { font-size: .61rem; color: var(--accent); position: absolute; top: -7px; left: 19px; background: #fff; }
.step-arrow { color: var(--accent); font-size: 1.2rem; margin-left: auto; }
.home-steps a:hover small { color: var(--accent); }
.section { margin-top: 100px; }
.section-head { border: 0; padding: 0; margin-bottom: 22px; }
.section-kicker { color: var(--accent); font-size: .68rem; letter-spacing: .15em; margin-bottom: 14px; }
.section-kicker::before { display: none; }
.section-kicker span { display: inline-block; margin-left: 12px; color: var(--muted); font-size: .7rem; letter-spacing: .02em; font-weight: 500; }
.section-head h2 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); letter-spacing: .04em; font-weight: 800; }
.section-link { font-size: .75rem; }
.section-link strong { font-size: 1.35rem; color: var(--accent); margin: 0 4px; }
.section-intro, .is-home .section > .lead { font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.entry-grid { gap: 22px; margin-bottom: 16px; }
.entry-grid a, .entry-off { position: relative; padding: 28px 26px 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; gap: 0; align-content: start; }
.entry-grid a::after { bottom: 28px; right: 25px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--accent-line); border-radius: 50%; color: var(--accent); }
.entry-grid a:hover { transform: translateY(-3px); background: #fff; border-color: var(--accent); }
.entry-grid a { transition: transform .2s, border-color .2s; }
.entry-art { position: absolute; top: 31px; right: 26px; transform: rotate(-7deg); }
.entry-art .design-icon { width: 56px; height: 56px; }
.entry-kicker { font-size: .6rem; color: var(--accent); letter-spacing: .14em; font-weight: 700; margin-bottom: 24px; }
.entry-label { display: block; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.5; letter-spacing: -.03em; padding-right: 30px; color: var(--accent); }
.entry-description { font-size: .78rem; color: var(--text-soft); margin: 5px 0 22px; }
.entry-count { font-size: 1.55rem; color: var(--text); line-height: 1.3; }
.entry-count small { font-size: .7rem; margin-left: 6px; font-weight: 500; }
.entry-sub { font-size: .68rem; color: var(--muted); margin-top: 6px; }
.entry-grid a.has-media { padding-top: 0; }
.entry-media { margin: 0 -26px 22px; border-bottom: 1px solid var(--line); }
.dorm-entry { margin-top: 28px; border: 1px solid var(--accent-line); background: #fff0ec; border-radius: 16px; color: var(--text); align-items: center; }
.dorm-entry:hover { background: #ffe7e1; color: var(--text); }
.dorm-art { padding-left: 30px; }
.dorm-art .design-icon { width: 63px; height: 63px; }
.dorm-entry-text { padding: 22px 60px 22px 28px; }
.dorm-entry-kicker { color: var(--accent); font-size: .68rem; }
.dorm-entry-title { font-size: 1rem; }
.dorm-entry-title strong { color: var(--accent); margin-left: 8px; }
.dorm-entry-sub { color: var(--muted); font-size: .74rem; }
.dorm-entry::after { color: var(--accent); right: 28px; }
.home-compare-example { display: grid; grid-template-columns: .65fr 1fr; gap: 38px; padding: 34px; background: #f1eee6; border-radius: 20px; margin: 28px 0 34px; align-items: center; }
.compare-story .design-icon { width: 50px; height: 50px; margin-bottom: 14px; }
.compare-story p { font-size: 1.45rem; font-weight: 800; margin-bottom: 8px; }
.compare-story > span { font-size: .79rem; color: var(--muted); }
.home-compare-example .compare { margin: 0; }
.compare { border-radius: 14px; border-color: var(--line); }
.compare-col { padding: 20px; }
.compare-share { box-shadow: none; }
.compare-value { font-size: 1.7rem; }
.compare-note { padding: 12px 20px; font-size: .69rem; }
.compare-note strong { color: var(--accent); }
.table-heading { font-size: 1rem; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.table-heading span { color: var(--muted); font-size: .7rem; font-weight: 500; }
.compare-table { border-radius: 14px; font-size: .8rem; }
.compare-table thead th { background: #eeeae1; font-size: .68rem; padding: 16px 12px; }
.compare-table tbody th, .compare-table td { padding: 16px 12px; }
.compare-table tbody td:nth-of-type(3) { font-weight: 800; color: var(--accent); background: #fff9f6; }
.compare-table tbody tr:hover { background: #fdfbf7; }
.table-note { margin-top: 18px; font-size: .73rem; }
.sources { font-size: .7rem; }
.a2-group { margin-top: 28px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.a2-group h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px dashed var(--line); }
.a2-group h3::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; flex: 0 0 auto; }
.a2-group-count { font-size: .7rem; }
.a2-grid { gap: 14px; }
.a2-grid a { background: var(--bg); border-color: transparent; border-radius: 10px; padding: 17px; }
.a2-grid a:hover { border-color: var(--accent-line); }
.a2-name { font-size: .94rem; margin-bottom: 4px; }
.a2-count { font-size: .7rem; font-weight: 500; }
.a2-rent { font-size: .77rem; margin-top: 6px; }
.a2-studio { font-size: .67rem; }
.a2-media { margin: -17px -17px 12px; }
.a2-grid a.has-media { padding-top: 17px; }
.about-short { position: relative; text-align: center; max-width: 800px; margin-inline: auto; padding: 48px 46px; border: 1px dashed #bdb3a5; border-radius: 48% 48% 18px 18px / 12% 12% 18px 18px; }
.about-short p:last-child { margin-bottom: 0; text-align: left; font-size: .85rem; }
.about-illustration { display: flex; justify-content: center; margin-bottom: 22px; }
.about-illustration .design-icon { width: 64px; height: 64px; transform: rotate(-12deg); }
.page-head { max-width: none; padding: 38px; background: #f1eee6; border-radius: 22px; margin-top: 24px; border: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.page-head .lead { font-size: .9rem; max-width: 60em; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head .page-hero { width: 100%; max-width: 920px; margin: 24px auto; aspect-ratio: auto; }
/* 横長のイラストをスマートフォンでも切り取らず、ページのテーマ全体を見せる。 */
.page-head .page-hero img { height: auto; }
.page-head .compare { max-width: 720px; }
.breadcrumb { margin-top: 14px; }
.breadcrumb ol { font-size: .73rem; margin-bottom: 20px; }
.filter-chip { border-radius: 50px; padding: 8px 15px; font-size: .78rem; }
.listing { margin-top: 38px; }
.band { margin-top: 52px; }
.cards { gap: 24px; }
.card { border-radius: 18px; }
.card-rent { background: #fff3ef; border-radius: 10px; padding: 13px; }
.card-full .card-rent { background: var(--gray); }
.card-body { padding: 20px; }
.card-title { font-size: 1.02rem; }
.card-actions .btn { min-height: 44px; background: #fff; color: var(--accent); border-color: var(--accent-line); }
.card-actions .btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.disclosure { background: #f1eee6; border: 0; font-size: .75rem; padding: 18px; border-radius: 12px; }
.faq { max-width: 900px; margin-inline: auto; }
.faq > h2 { text-align: center; margin-bottom: 28px; }
.faq-item { padding-block: 23px; }
.faq-item dt { font-size: .91rem; }
.faq-item dt::before { color: var(--accent); background: none; font-size: 1.1em; }
.faq-item dd { font-size: .84rem; margin-top: 8px; }
.site-footer { margin-top: 100px; padding-top: 0; border: 0; background: #f0ece3; border-radius: 40px 40px 0 0; }
.footer-message { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; padding-block: 50px 40px; margin-bottom: 35px; font-size: clamp(1.3rem, 2.5vw, 2rem); color: var(--accent); font-weight: 800; border-bottom: 1px dashed #cec4b5; }
.footer-message .design-icon { margin-left: auto; width: 64px; height: 64px; }
.footer-grid { grid-template-columns: 1.2fr 1fr .8fr 1.2fr; gap: 36px; }
.logo-footer .logo-text { font-size: 1.65rem; }
.footer-note, .footer-brand p { font-size: .73rem; }
.footer-nav { font-size: .75rem; gap: 10px; }
.footer-copy { font-size: .7rem; }

@media (min-width: 701px) and (max-width: 1000px) {
  .header-inner { min-height: 96px; }
  .nav { gap: 15px; font-size: .73rem; }
  .logo-text { font-size: 1.6rem; }
  .logo-mark, .logo-mark .design-icon { width: 37px; }
  .hero { grid-template-columns: 1fr 1fr; padding-top: 35px; min-height: 480px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-eyebrow { flex-wrap: wrap; gap: 6px; }
  .home-steps a { gap: 8px; padding-inline: 12px; }
  .home-steps small { font-size: .8rem; }
  .home-steps .design-icon { width: 30px; }
  .entry-grid { gap: 14px; }
  .entry-grid a, .entry-off { padding: 22px 20px; }
  .entry-art { top: 20px; right: 17px; }
  .entry-art .design-icon { width: 42px; height: 42px; }
  .entry-label { padding-right: 0; }
  .entry-count small { font-size: .62rem; }
  .entry-media { margin-inline: -20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-compare-example { grid-template-columns: .5fr 1fr; padding: 26px; gap: 24px; }
}
@media (max-width: 700px) {
  .site-header { margin: 7px 7px 0; border-radius: 22px 22px 0 0; }
  .header-inner { padding-top: 22px; gap: 22px; }
  .logo-text { font-size: 1.65rem; }
  .logo-mark, .logo-mark .design-icon { width: 40px; height: 43px; }
  .nav { font-size: .68rem; gap: 0; border-top: 1px solid var(--line); }
  .nav a { min-height: 46px; }
  .nav a:not(.nav-cta)::before { display: none; }
  .nav .nav-cta { border-radius: 0 0 12px 12px; padding: 0 7px; }
  .hero { grid-template-columns: 1fr; padding: 34px 4px 30px; min-height: 0; }
  .hero-eyebrow { flex-wrap: wrap; gap: 10px; font-size: .65rem; }
  .hero-eyebrow > span { font-size: .58rem; }
  .hero h1 { font-size: clamp(1.65rem, 7.4vw, 2.75rem); margin: 22px 0 24px; line-height: 1.65; }
  .hero-intro { font-size: .88rem; }
  .hero .lead { font-size: .79rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 16px; }
  .btn-hero { min-width: 170px; padding: 13px 20px; font-size: .8rem; }
  .hero-actions .text-link { font-size: .77rem; }
  .hero-small { font-size: .62rem; }
  .hero-visual { width: min(100%, 480px); justify-self: center; padding-top: 14px; }
  .hero-caption { font-size: .7rem; margin-top: -5px; }
  .home-steps { padding: 12px 7px; border-radius: 14px; }
  .home-steps a { flex-direction: column; padding: 12px 4px 2px; gap: 6px; text-align: center; font-size: .59rem; }
  .home-steps .design-icon { width: 32px; height: 32px; }
  .home-steps small { font-size: .65rem; margin-top: 3px; }
  .step-number { top: -7px; left: 8px; }
  .step-arrow { display: none; }
  .section { margin-top: 64px; }
  .section-head { flex-direction: row; align-items: end; gap: 10px; }
  .section-kicker { font-size: .6rem; margin-bottom: 12px; }
  .section-kicker span { font-size: .6rem; margin-left: 8px; }
  .section-head h2 { font-size: 1.35rem; line-height: 1.7; }
  .section-link { font-size: .64rem; }
  .section-link strong { font-size: 1.1rem; }
  .section-intro, .is-home .section > .lead { font-size: .79rem; margin-bottom: 22px; }
  .entry-grid { grid-template-columns: 1fr; gap: 14px; }
  .entry-grid a, .entry-off { padding: 22px 80px 22px 22px; grid-template-columns: 1fr; align-items: start; }
  .entry-art { top: 25px; right: 23px; }
  .entry-art .design-icon { width: 45px; height: 45px; }
  .entry-kicker { margin-bottom: 9px; font-size: .55rem; }
  .entry-label { grid-column: auto; font-size: 1.5rem; padding: 0; }
  .entry-description { font-size: .73rem; margin: 3px 0 16px; }
  .entry-count { grid-row: auto; grid-column: auto; font-size: 1.4rem; }
  .entry-count small { font-size: .67rem; }
  .entry-sub { grid-column: auto; font-size: .65rem; }
  .entry-grid a::after, .entry-grid a.has-media::after { top: auto; bottom: 24px; right: 24px; transform: none; }
  .entry-media { margin: 0 -80px 18px -22px; grid-column: auto; aspect-ratio: 5 / 2; }
  .entry-grid a.has-media .entry-count { grid-row: auto; }
  .price-section > .small { font-size: .68rem; }
  .dorm-art { padding-left: 18px; }
  .dorm-art .design-icon { width: 43px; height: 43px; }
  .dorm-entry-text { padding: 22px 36px 22px 16px; }
  .dorm-entry-title { font-size: .87rem; }
  .dorm-entry-title strong { display: inline-block; margin-left: 0; }
  .dorm-entry-sub { font-size: .68rem; }
  .dorm-entry::after { right: 14px; }
  .home-compare-example { grid-template-columns: 1fr; padding: 22px; gap: 22px; margin-top: 24px; }
  .compare-story { position: relative; padding-left: 58px; }
  .compare-story .design-icon { position: absolute; left: 0; top: 6px; width: 37px; height: 37px; }
  .compare-story p { font-size: 1.1rem; }
  .compare-story > span { font-size: .72rem; }
  .compare { grid-template-columns: 1fr 1fr; }
  .compare-col { padding: 14px 12px; }
  .compare-col + .compare-col { border-top: 0; border-left: 1px solid var(--line); }
  .compare-label { font-size: .65rem; }
  .compare-value { font-size: 1.15rem; }
  .compare-note { padding: 12px; font-size: .65rem; }
  .compare-note strong { font-size: .78rem; }
  .table-heading { font-size: .82rem; flex-wrap: wrap; }
  .compare-table tbody { gap: 16px; }
  .compare-table tbody th, .compare-table tbody td { padding: 12px; }
  .compare-table tbody th { font-size: .9rem; }
  .table-note, .sources { font-size: .68rem; }
  .a2-group { padding: 20px 16px; border-radius: 14px; }
  .a2-group h3 { font-size: .95rem; gap: 7px; }
  .a2-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .a2-grid a { padding: 12px; }
  .a2-name { font-size: .82rem; }
  .a2-rent { font-size: .68rem; }
  .a2-studio { font-size: .61rem; }
  .a2-media { margin: -12px -12px 10px; }
  .a2-grid a.has-media { padding-top: 12px; }
  .a2-group-media { width: 65px; }
  .about-short { padding: 34px 24px; }
  .about-short h2 { font-size: 1.14rem; }
  .about-short p:last-child { font-size: .78rem; }
  .page-head { padding: 24px 20px; margin-top: 18px; border-radius: 18px; }
  .page-head h1 { font-size: 1.5rem; }
  .page-head .lead { font-size: .83rem; }
  .page-head .page-hero { margin: 20px 0; }
  .page-head .compare { margin-inline: -7px; }
  .breadcrumb { margin-top: 20px; }
  .breadcrumb ol { font-size: .66rem; }
  .filter-chip { font-size: .72rem; padding: 8px 12px; }
  .listing { margin-top: 30px; }
  .rent-note { font-size: .75rem; }
  .cards { gap: 22px; }
  .card-media { aspect-ratio: 4 / 2.6; }
  .card-rent { padding: 14px; }
  .faq-item dt { font-size: .81rem; }
  .faq-item dd { font-size: .78rem; }
  .site-footer { margin-top: 64px; border-radius: 26px 26px 0 0; }
  .footer-message { padding-block: 34px 28px; font-size: 1.2rem; margin-bottom: 30px; display: block; position: relative; }
  .footer-message > span { display: block; padding-right: 55px; }
  .footer-message .design-icon { position: absolute; right: 20px; bottom: 35px; width: 45px; height: 45px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-legal, .footer-brand { grid-column: 1 / -1; }
  .sticky-bar__brand .logo-mark { width: 28px; height: 33px; }
  .sticky-bar__brand .logo-mark .design-icon { width: 28px; height: 33px; }
  .sticky-bar__brand .logo-text { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .entry-grid a:hover { transform: none; } }

/* ---- お問い合わせフォーム (/contact/・2026-10-25。作りはシェアスペックと同じ) ---- */
.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 var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.req { font-size: .7rem; font-weight: 700; color: var(--accent); margin-left: 4px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: var(--accent-soft); color: var(--accent-hover); border-radius: var(--radius-sm); padding: 13px 17px 13px 34px; margin: 16px 0 0; }
.form-done { font-weight: 700; color: var(--green); }

/* ---- シェアクリップのバナー広告 (lib/sc-ads.php・2026-10-25) ----
   TOPバナー広告S (.sc-ad--top) はトップの最初の画面のすぐ下に 1 枚、バナー広告A (.sc-ad--a) は全ページの本文の下に 2 枚。
   PC 用とスマホ用を両方描き、767px を境に片方を隠す (本体の広告と同じ境目)。衛星サイトで同じ形 (色だけ各サイトの変数) */
.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; } }

/* ---- 費用の比較ツール (/compare/)・読みもの (/guides/)・表 (2026-10-26・docs/design.md §14・§15) ---- */
/* 費用の表。スマホでは行ごとの箱にする (ページを横にスクロールさせない) */
.cost-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .84rem; line-height: 1.7; }
.cost-table th, .cost-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cost-table thead th { background: #eeeae1; color: var(--muted); font-size: .72rem; font-weight: 700; }
.cost-table tbody th, .cost-table tfoot th { font-weight: 700; color: var(--text); }
.cost-table td.num, .cost-table thead th:not(:first-child) { white-space: nowrap; }
.cost-table td.num, .cost-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cost-table tfoot th, .cost-table tfoot td { background: #fff9f6; border-bottom: 0; }
.cost-table tbody tr:last-child th, .cost-table tbody tr:last-child td { border-bottom: 0; }
.cost-table tbody + tfoot tr th, .cost-table tbody + tfoot tr td { border-top: 1px solid var(--line); }
.cost-table strong { color: var(--accent); }
.cost-summary td.num { font-size: .95rem; }
.cost-area-table td.num { font-size: .82rem; }
.cost-table td:not(.num) { color: var(--text-soft); font-size: .78rem; }
.prose .cost-table td:not(.num) { white-space: normal; }

/* 記事 */
.article { max-width: 820px; }
.article > .eyebrow { margin-top: 26px; }
.article > h1 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); line-height: 1.6; }
.article-meta { color: var(--muted); font-size: .76rem; }
.article .page-hero { margin: 22px 0 28px; aspect-ratio: auto; }
.article .page-hero img { height: auto; }
.article-toc { margin: 22px 0 30px; padding: 18px 22px 14px; background: #f1eee6; border-radius: 16px; }
.article-toc__title { margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.article-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; border-top: 1px dashed var(--line); }
.article-toc li:first-child { border-top: 0; }
.article-toc a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; text-decoration: none; font-size: .9rem; line-height: 1.5; }
.article-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 1.6em; font-size: .72rem; font-weight: 700; color: var(--accent); }
.article .prose { font-size: .95rem; }
.article .prose > p, .article .prose li { line-height: 2; }
.prose h2[id] { scroll-margin-top: 16px; }
.prose h2 { padding-left: 14px; border-left: 5px solid var(--accent); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; }
.prose .faq > h2 { border: 0; padding: 0; }
.prose .faq { margin-top: 60px; }
.area-details { margin: 6px 0 18px; }
.area-details > summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--accent); }
.draft-note { display: inline-block; margin-top: 18px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
.calc-sources { padding-left: 1.2em; font-size: .8rem; line-height: 1.8; }
.calc-sources li { margin-bottom: .7em; }
.calc-sources span { color: var(--muted); }

/* 読みものの一覧 */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.guide-list a { display: flex; gap: 22px; align-items: center; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.guide-list a:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.guide-media { flex: 0 0 220px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--gray); }
.guide-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-icon { flex: 0 0 auto; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--text); }
.guide-icon .design-icon { width: 46px; height: 46px; }
.guide-body { display: grid; gap: 4px; min-width: 0; }
.guide-kicker { font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.guide-title { font-size: 1.05rem; font-weight: 800; line-height: 1.6; }
.guide-desc { font-size: .78rem; color: var(--muted); line-height: 1.8; }

/* トップ・一覧の「計算する」の箱 */
.calc-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 34px; padding: 30px 34px; background: #fff0ec; border: 1px solid var(--accent-line); border-radius: 20px; }
.calc-callout > div { flex: 1 1 420px; min-width: 0; }
.calc-callout h2, .calc-callout h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 8px; }
.calc-callout p { margin: 0; font-size: .85rem; color: var(--text-soft); }
.calc-callout .section-kicker { margin-bottom: 10px; color: var(--accent); }
.calc-callout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* 計算ツール */
.calc-head .page-hero { max-width: 760px; }
.calc-area { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-top: 22px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.calc-area .calc-field { flex: 1 1 260px; }
.calc-area .calc-hint { flex-basis: 100%; margin: 0; }
.calc-area select { width: 100%; font: inherit; font-size: .9rem; padding: 10px 12px; border: 1px solid #cfc6bb; border-radius: 10px; background: #fff; color: var(--text); }
.btn-light { background: #fff; color: var(--accent); border-color: var(--accent-line); }
.btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.calc-reset { margin: 24px 0 0; padding: 14px 18px; background: #fff0ec; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent-hover); font-weight: 700; font-size: .85rem; }
.calc-result { margin-top: 40px; }
.calc-result h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.calc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0 12px; }
.calc-card { padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.calc-card.is-main { border-color: var(--accent); box-shadow: inset 0 4px var(--accent); }
.calc-card-label { margin: 0 0 8px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.calc-card dl { margin: 0; display: grid; gap: 4px; }
.calc-card dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.calc-card dt { font-size: .72rem; color: var(--muted); }
.calc-card dd { margin: 0; font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-card .is-sh dd { color: var(--accent); }
.calc-card-diff { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .76rem; font-weight: 700; color: var(--text-soft); }
.calc-form { margin-top: 40px; padding: 28px; background: #f1eee6; border-radius: 20px; }
.calc-form h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.calc-set { margin: 18px 0 0; padding: 18px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.calc-set legend { padding: 0 8px; font-weight: 800; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 20px; }
.calc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.calc-label { font-size: .82rem; font-weight: 700; line-height: 1.5; }
.calc-input { display: flex; align-items: center; gap: 6px; }
.calc-input input { width: 100%; min-width: 0; font: inherit; font-size: .95rem; padding: 9px 11px; border: 1px solid #cfc6bb; border-radius: 10px; background: #fff; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.calc-input input:focus, .calc-area select:focus { outline: 3px solid var(--accent-line); border-color: var(--accent); }
.calc-unit { flex: none; font-size: .78rem; color: var(--muted); }
.calc-hint { font-size: .7rem; color: var(--muted); line-height: 1.6; }
.calc-months { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.calc-choice { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.calc-choice input { accent-color: var(--accent); width: 18px; height: 18px; }
.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 22px 0 0; }
.calc-breakdowns h3 { font-size: .95rem; margin: 0; }
.calc-breakdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.calc-breakdown-grid > div { min-width: 0; }
.calc-notes { max-width: 860px; }

@media (max-width: 950px) {
  .calc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-breakdown-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav .nav-sub { display: none; }   /* スマホの段はドミトリーを外して 4 つにする (細い帯のメニューには残る) */
  .cost-table, .cost-table tbody, .cost-table tfoot, .cost-table tr, .cost-table th, .cost-table td { display: block; }
  .cost-table { border: 0; background: transparent; overflow: visible; }
  .cost-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cost-table tbody, .cost-table tfoot { display: grid; gap: 10px; }
  .cost-table tfoot { margin-top: 10px; }
  .cost-table tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .cost-table tbody th, .cost-table tfoot th { padding: 10px 12px; background: var(--gray); border-bottom: 1px solid var(--line); }
  .cost-table td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px dashed var(--line); white-space: normal; }
  .cost-table td:last-child { border-bottom: 0; }
  .cost-table td::before { content: attr(data-label); flex: none; max-width: 48%; font-size: .68rem; font-weight: 700; color: var(--muted); text-align: left; }
  .cost-table td:empty { display: none; }
  .cost-table td:not(.num) { display: block; }
  .cost-table td:not(.num)::before { display: block; max-width: none; margin-bottom: 2px; }
  .cost-table tfoot th, .cost-table tfoot td { border-top: 0; }
  .cost-table tbody tr:last-child th { border-bottom: 1px solid var(--line); }
  .article .prose { font-size: .88rem; }
  .article-toc { padding: 14px 16px 10px; }
  .article-toc a { font-size: .82rem; }
  .guide-list a { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .guide-media { flex: none; }
  .guide-icon { width: 60px; height: 60px; }
  .guide-icon .design-icon { width: 34px; height: 34px; }
  .guide-title { font-size: .95rem; }
  .calc-callout { padding: 22px 20px; margin-top: 26px; }
  .calc-callout > div { flex-basis: 100%; }
  .calc-area { padding: 14px; }
  .calc-cards { gap: 10px; }
  .calc-card { padding: 14px 12px; }
  .calc-card dd { font-size: .95rem; }
  .calc-form { padding: 18px 14px; margin-inline: -4px; }
  .calc-set { padding: 14px 14px 16px; }
  .calc-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 380px) {
  .calc-cards { grid-template-columns: 1fr; }
}
