/**
 * レイアウト — DESIGN.md v3 §4（ハイブリッド 520px / 1200px）
 * 一般リンク: 下記 `a`。補足導線は `.link--subtle`（DESIGN.md §6-3）
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-scroll-pad);
}

body {
  font-family: var(--font-body);
  color: var(--bh-text);
  background: var(--bh-white);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bh-logo-blue-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* DESIGN.md §6-3 控えめテキストリンク（補足導線） */
.link--subtle {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--bh-logo-blue-dark) 50%, transparent);
}
.link--subtle:hover {
  text-decoration: underline;
  text-decoration-color: var(--bh-logo-blue-dark);
}

/* ── ページシェル ── */
.page {
  width: 100%;
  min-width: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bh-white);
  box-shadow: var(--shadow-soft);
  border-left: 1px solid rgba(221, 232, 235, 0.9);
  border-right: 1px solid rgba(221, 232, 235, 0.9);
  overflow-x: clip;
}

.site-top {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.breadcrumb {
  padding: 14px var(--section-pad-x) 0;
  font-size: 12px;
  color: var(--bh-muted);
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--bh-logo-blue-dark);
  font-weight: 600;
}

/* ── セクション（White ⇔ Pale Blue 交互） ── */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-white);
  min-width: 0;
}

.section--muted {
  background: var(--bh-pale-blue);
}

.page-hero,
.hero-sell {
  padding: var(--section-pad-y-marketing) var(--section-pad-x);
  text-align: center;
  background: var(--bh-pale-blue);
  border-bottom: 1px solid var(--bh-border);
}

.cta-section {
  padding: var(--section-pad-y-marketing) var(--section-pad-x);
}

/* 下層：.section クラスなしの section にも余白を適用 */
main.page > section:not(.section) {
  padding: var(--section-pad-y) var(--section-pad-x);
}

#top.section {
  padding: 16px var(--section-pad-x) var(--section-pad-y);
}

/* ── SP：極小幅はフルブリード ── */
@media (max-width: 519px) {
  .page {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

/* ── PC：1200px カラム＋外周 Pale Blue ── */
@media (min-width: 768px) {
  body {
    background: var(--bh-pale-blue);
  }

  .page {
    border-left: none;
    border-right: none;
  }

  #top.section {
    padding-top: 24px;
    padding-bottom: var(--section-pad-y-marketing);
  }

  .agents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .site-footer__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .cta-inner .cta-btns {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-pad-y-marketing: 96px;
  }
}

/* ── フッター（ダーク） ── */

.site-footer {
  width: 100%;
  background: var(--bh-logo-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.75;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--section-pad-x) 28px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.site-footer__logo {
  height: 28px;
  width: auto;
  margin: 0;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer__sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-footer__sns-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.site-footer__sns-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

.site-footer__heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 10px;
}

.site-footer__text {
  font-size: 11px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__text a {
  font-weight: 700;
  color: #fff;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
}

.site-footer__links a {
  font-size: 12px;
  line-height: 1.4;
}

.site-footer__links a.nav-link--buy,
.site-footer__links a.nav-link--sell {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__legal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__legal a {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__copy {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ── タイポグラフィ・ラベル ── */

.section-label,
.sec-label {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 10px;
  padding: 5px 12px;
  color: var(--bh-logo-blue-dark);
  background: var(--bh-pale-blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2 {
  color: var(--bh-text);
  font-weight: 700;
}

h3 {
  color: var(--bh-charcoal);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}

h2,
.sec-title {
  font-size: clamp(22px, 5.5vw, 26px);
  line-height: 1.4;
  text-align: center;
  margin-bottom: 16px;
}

.lead {
  margin-bottom: 14px;
  color: var(--bh-muted);
  line-height: 1.85;
}

.small {
  font-size: 12px;
  color: var(--bh-muted);
  line-height: 1.7;
}

.micro {
  font-size: 12px;
  color: var(--bh-muted);
  text-align: center;
  line-height: 1.6;
  margin-top: 8px;
}

.center {
  text-align: center;
}

.inner,
.inner-lg,
.page-hero-inner,
.filter-inner,
.cta-inner {
  max-width: 100%;
  margin: 0 auto;
}
