/**
 * LP テンプレート — スタイル（ベース: template-base.json と同期）
 *
 * 仕様の単一参照: ルートの `template-base.json`（レイアウト・セクション順・画像スロット・
 * designTokens）。配色・寸法を変える場合は JSON の designTokens と本ファイルの :root を
 * **同じ内容**に揃えること。
 *
 * 【固定】レイアウト（2カラム + sticky sidebar）・レスポンシブ・コンポーネント構造
 * 【可変】配色・フォント → :root（= JSON designTokens）
 *
 * レイヤー:
 *  1. トークン（:root）… JSON: designTokens.*
 *  2. ベース
 *  3. レイアウト … JSON: layout.grid / stickySidebar
 *  4. ヒーロー（.hero）
 *  5. セクション共通 + モディファイア … JSON: components.section
 *  6. コンポーネント … JSON: components.cards / blocks（company-intro・cta-form 等）
 *  7. ボタン … JSON: components.buttons
 *  8. フッター
 *  9. レスポンシブ … JSON: responsive.stackBreakpointPx
 */

/* -------------------------------------------------------------------------- */
/* 1. トークン（:root）— 同期先: template-base.json → designTokens */
/* -------------------------------------------------------------------------- */
:root {
  /* designTokens.colors */
  --color-bg-base: #f7f3ef;
  --color-bg-section: #fffaf7;
  --color-bg-card: #ffffff;
  --color-bg-muted: #efe7e1;
  --color-text-primary: #5a4741;
  --color-text-secondary: #8b746c;
  --color-text-light: #b7a39b;
  --color-text-white: #ffffff;
  --color-gold: #d9ab4f;
  --color-coral: #e78f88;
  --color-mint: #53b8ad;
  --color-beige: #ead8cb;
  --color-border: #eadfd8;
  --color-footer-bg: #4a3f3a;

  /* designTokens.typography */
  --font-heading: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-accent: "Poppins", sans-serif;

  /* designTokens.radius */
  --radius-card: 20px;
  --radius-image: 18px;
  --radius-button: 999px;
  --radius-panel: 28px;

  /* designTokens.shadow */
  --shadow-soft: 0 8px 24px rgba(120, 92, 77, 0.08);
  --shadow-hover: 0 12px 32px rgba(120, 92, 77, 0.12);

  /* designTokens.layout */
  --section-y: clamp(48px, 6vw, 72px);
  --sticky-top: 24px;
  --layout-column-gap: clamp(20px, 3vw, 40px);
  --layout-page-padding: clamp(16px, 3vw, 32px);
  /* 狭い画面の切替幅（下の @media と同じ px。JSON: responsive.stackBreakpointPx） */
  --layout-breakpoint: 900px;
  --content-narrow-max: 960px;
  --hero-inner-max: 1200px;
  /* 内側ブロックの max-width 用トークン（layout-container の幅制限には使わない） */
  --main-stack-max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-top {
    transition: none;
  }

  .page-top:hover {
    transform: none;
  }

  .estimate-modal::backdrop,
  .area-detail-modal::backdrop {
    backdrop-filter: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.lp-gradient-art {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ページ共通グラデーション定義（非表示・各 SVG から url(#lp-grad-*) で参照） */
.lp-gradient-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 右下: ページトップ（#hero）へ戻る */
.page-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-text-white);
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.page-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(120, 92, 77, 0.18);
  background: #c99a42;
}

.page-top:focus-visible {
  outline: 3px solid var(--color-mint);
  outline-offset: 3px;
}

.page-top__icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* 3. レイアウト: 2カラム + 追従サイドバー（JSON: layout.grid / stickySidebar） */
/* -------------------------------------------------------------------------- */
.layout-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  align-items: start;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--layout-page-padding);
}

/* 2カラム＋追従: 会社紹介（lp-page-tail）より上のブロックのみ */
.lp-main-sticky-region {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  align-items: start;
  width: 100%;
  column-gap: var(--layout-column-gap);
}

/* 会社紹介・最終CTA・フッターを全幅1ストリップで接続 */
.lp-page-tail {
  grid-column: 1 / -1;
  margin-left: calc(-1 * var(--layout-page-padding));
  margin-right: calc(-1 * var(--layout-page-padding));
  width: auto;
  max-width: none;
}

.lp-page-tail > .section--tail {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
}

.lp-page-tail > .section--tail:last-of-type {
  border-bottom: none;
}

/* 会社紹介: 左画像・右テーブル */
.company-intro {
  max-width: var(--content-narrow-max);
  margin-inline: auto;
}

.company-intro__heading {
  margin: 0 0 clamp(18px, 2.5vw, 24px);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-text-primary);
}

.company-intro__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.company-intro__media {
  min-width: 0;
  border-radius: var(--radius-image);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-section);
}

.company-intro__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.company-intro__panel {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-image);
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 10.5em;
  font-weight: 600;
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
}

.company-table td {
  color: var(--color-text-secondary);
  background: var(--color-bg-card);
}

.company-table td a {
  color: var(--color-mint);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.company-table td a:hover {
  color: var(--color-text-primary);
}

.company-table__list {
  margin: 0;
  padding-left: 1.2em;
}

.company-table__list li {
  margin: 0 0 6px;
}

.company-table__list li:last-child {
  margin-bottom: 0;
}

.lp-page-tail .lp-gradient-art {
  width: 100%;
}

.lp-page-tail .cta-panel {
  max-width: var(--content-narrow-max);
  margin-inline: auto;
}

.footer--tail {
  border-radius: 0;
  border-top: none;
  margin-top: 0;
}

.sidebar {
  grid-area: sidebar;
  min-width: 0;
  position: sticky;
  top: var(--sticky-top);
  align-self: start;
  padding: var(--section-y) 0;
}

.sidebar__box {
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
}

.sidebar__name {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
}

.sidebar__text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* サイドバー内：電話案内 */
.sidebar__contact {
  margin: 0 0 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--color-border);
}

.sidebar__contact-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.sidebar__contact-room {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.sidebar__contact-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.sidebar__contact-tel {
  margin: 0 0 8px;
  font-family: var(--font-accent);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.sidebar__contact-tel a {
  color: var(--color-coral);
  text-decoration: none;
}

.sidebar__contact-tel a:hover {
  text-decoration: underline;
}

.sidebar__contact-hours {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* サムネ枠: 非表示（再表示する場合は display を戻す） */
.sidebar__thumb {
  display: none;
  margin-bottom: 20px;
  border-radius: var(--radius-image);
  overflow: hidden;
  border: 1px solid var(--color-border);
  width: 100%;
}

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

.sidebar__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-content {
  grid-area: main;
  min-width: 0;
  width: 100%;
  padding: var(--section-y) 0 calc(var(--section-y) + 16px);
}

/* -------------------------------------------------------------------------- */
/* 4. ヒーロー */
/* -------------------------------------------------------------------------- */
.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 36px);
  background: linear-gradient(135deg, #fffaf7 0%, #efe7e1 45%, #f7f3ef 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero__inner {
  width: 100%;
  max-width: var(--hero-inner-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.hero__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

/* hero__inner 外: CTA 横並び（gold / mint） */
.hero__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--hero-inner-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  box-sizing: border-box;
}

.hero__actions .btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
  color: var(--color-text-white);
}

/* 無料調査申込 + 自動見積（ヒーロー・サイドバー横並び） */
.cta-pair--hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: min(720px, 100%);
}

/* sidebar__box 内 CTA も2列（狭いカラム向けに少し詰める） */
.cta-pair--stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.sidebar__cta .btn {
  padding: 10px 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.hero__visual {
  justify-self: end;
  max-width: 420px;
  width: 100%;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-soft);
}

/* ヒーロー右カラム: インライン SVG グラデーション（viewBox 4:5 と一致） */
.hero__gradient-svg {
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 600px);
}

/* -------------------------------------------------------------------------- */
/* 5. セクション共通 */
/* -------------------------------------------------------------------------- */
.section {
  width: 100%;
  margin-bottom: var(--section-y);
  padding: clamp(28px, 4vw, 40px);
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
}

.main-content > .section:last-child {
  margin-bottom: 0;
}

.section--intro {
  background: var(--color-bg-card);
}

.section--concept {
  background: var(--color-bg-card);
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--final {
  background: linear-gradient(180deg, #fffaf7, #efe7e1);
}

.section__title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section__lead {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

/* -------------------------------------------------------------------------- */
/* 6. コンポーネント */
/* -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.feature-card__image {
  margin-bottom: 14px;
  border-radius: var(--radius-image);
  overflow: hidden;
}

.feature-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card__desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.problem-card {
  padding: 22px;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.problem-card__badge {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-family: var(--font-accent);
  letter-spacing: 0.08em;
  color: var(--color-coral);
}

.problem-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.problem-card__desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* その他のメニュー・オプション（#menu_block_02）: 常に2列（狭い画面は1列） */
.service-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 20px);
}

.service-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  min-height: 280px;
}

.service-card__bg {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* サービスカード背景を img から SVG にしたときも同じクロップ感 */
.service-card__bg.lp-gradient-art {
  object-fit: unset;
}

.service-card__body {
  padding: 18px 20px 22px;
}

.service-card__name {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.service-card__summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.concept {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: center;
}

/* コンセプト: 画像2枚を縦並び */
.concept__images {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.concept__figure {
  margin: 0;
  border-radius: var(--radius-image);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-section);
}

.concept__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.concept__text {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

.achievements {
  margin: 0 0 20px;
  padding-left: 1.2em;
  color: var(--color-text-secondary);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius-image);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.treatment-card {
  padding: 16px;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.treatment-card__image {
  display: block;
  width: 100%;
  border-radius: var(--radius-image);
  margin-bottom: 12px;
}

.treatment-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.treatment-card__desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.text-block {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

.profile {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 24px;
  align-items: start;
}

.profile__photo {
  border-radius: var(--radius-image);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.profile__name {
  margin: 0 0 6px;
  font-weight: 600;
}

.profile__role {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.profile__message {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

/* lp-page-tail 内: 担当者紹介（3カード横並び） */
.staff-tail {
  max-width: var(--content-narrow-max);
  margin-inline: auto;
}

.staff-tail__heading {
  margin-bottom: clamp(20px, 3vw, 28px);
  text-align: center;
}

.staff-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.staff-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.staff-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.staff-card__photo .lp-gradient-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.staff-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.staff-card__name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.staff-card__role {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.staff-card__bio {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.faq__q {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__a {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.media-block {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1.2fr;
  gap: 24px;
  align-items: center;
}

.media-block__photo {
  border-radius: var(--radius-image);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.media-block__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.media-block__text {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

.cta-banner {
  text-align: center;
  padding: clamp(28px, 5vw, 40px);
  background: var(--color-bg-muted);
  border-radius: var(--radius-panel);
  border: 1px dashed var(--color-beige);
}

.cta-banner__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.cta-banner__sub {
  margin: 0 0 20px;
  color: var(--color-text-secondary);
}

/* 対応エリア（#service_area 内の cta-banner） */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
  max-width: 520px;
  margin: 0 auto 14px;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.area-list li {
  margin: 0;
  padding: 8px 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-align: center;
}

.area-list__note {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.55;
}

.area-detail-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.area-detail-actions__btn {
  max-width: min(100%, 420px);
  width: 100%;
  cursor: pointer;
}

/* 簡易自動見積もりモーダル（<dialog>） */
.estimate-modal {
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 0;
  border: none;
  background: transparent;
}

.estimate-modal::backdrop {
  background: rgba(90, 71, 65, 0.5);
  backdrop-filter: blur(2px);
}

.estimate-modal__panel {
  position: relative;
  padding: clamp(22px, 4vw, 28px) clamp(20px, 4vw, 28px) 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-hover);
  text-align: left;
}

.estimate-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.estimate-modal__close:hover {
  background: var(--color-beige);
}

.estimate-modal__title {
  margin: 0 36px 14px 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-primary);
}

.estimate-modal__lead {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.estimate-modal__note {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

.estimate-modal__field {
  margin-bottom: 18px;
}

.estimate-modal__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.estimate-modal__input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text-primary);
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.estimate-modal__input:focus {
  outline: none;
  border-color: var(--color-mint);
  box-shadow: 0 0 0 3px rgba(83, 184, 173, 0.22);
}

.estimate-modal__fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: none;
}

.estimate-modal__legend {
  padding: 0;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.estimate-modal__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.estimate-modal__radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.estimate-modal__radio {
  width: 18px;
  height: 18px;
  accent-color: var(--color-mint);
}

.estimate-modal__result {
  margin: 0;
  padding: 16px 18px;
  background: var(--color-bg-muted);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.estimate-modal__result-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.estimate-modal__result-value {
  font-family: var(--font-accent), var(--font-body);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
}

.estimate-modal__cta-wrap {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.estimate-modal__cta-wrap .btn {
  cursor: pointer;
}

/* 対応エリア詳細モーダル（<dialog>） */
.area-detail-modal {
  max-width: min(720px, calc(100% - 32px));
  width: calc(100% - 32px);
  padding: 0;
  border: none;
  background: transparent;
}

.area-detail-modal::backdrop {
  background: rgba(90, 71, 65, 0.5);
  backdrop-filter: blur(2px);
}

.area-detail-modal__panel {
  position: relative;
  padding: clamp(22px, 4vw, 28px) clamp(18px, 3vw, 24px) 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-hover);
  text-align: left;
}

.area-detail-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.area-detail-modal__close:hover {
  background: var(--color-beige);
}

.area-detail-modal__title {
  margin: 0 40px 14px 0;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text-primary);
}

.area-detail-modal__body {
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 4px;
}

.area-detail-block {
  margin: 0 0 18px;
}

.area-detail-block:last-child {
  margin-bottom: 0;
}

.area-detail-block__heading {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.area-detail-block__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.area-detail-block__text--emph {
  color: var(--color-text-primary);
  font-weight: 500;
}

.area-detail-block--note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.cta-panel {
  text-align: center;
  padding: clamp(32px, 5vw, 48px);
}

.cta-panel__title {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* 最終CTA: フォームエリア */
.cta-panel__form-slot {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: start;
}

/* お問い合わせ・ご予約フォーム */
.cta-form {
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
}

.cta-form__lead {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.cta-form__field {
  margin-bottom: 18px;
}

.cta-form__field--check {
  margin-bottom: 0;
  margin-top: 4px;
}

.cta-form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-primary);
}

.cta-form__req {
  margin-left: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--color-coral);
}

.cta-form__optional {
  margin-left: 6px;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.cta-form__control,
.cta-form__textarea,
.cta-form__select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cta-form__control::placeholder,
.cta-form__textarea::placeholder {
  color: var(--color-text-light);
}

.cta-form__control:focus,
.cta-form__textarea:focus,
.cta-form__select:focus {
  outline: none;
  border-color: var(--color-mint);
  box-shadow: 0 0 0 3px rgba(83, 184, 173, 0.22);
}

.cta-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.cta-form__hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.cta-form__check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.cta-form__check-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-mint);
}

.cta-form__check-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.cta-form__link {
  color: var(--color-mint);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-form__link:hover {
  color: var(--color-text-primary);
}

.cta-form__actions {
  margin-top: 22px;
}

.cta-form__actions .btn {
  min-height: 48px;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* 7. ボタン */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-text-white);
}

.btn--coral {
  background: var(--color-coral);
  color: var(--color-text-white);
}

.btn--mint {
  background: var(--color-mint);
  color: var(--color-text-white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/* 8. フッター */
/* -------------------------------------------------------------------------- */
footer {
  width: 100%;
  margin-top: 0;
  padding: 40px 24px 48px;
  background: var(--color-footer-bg);
  color: var(--color-text-white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__inner {
  max-width: var(--content-narrow-max);
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.footer__copy {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* -------------------------------------------------------------------------- */
/* 9. レスポンシブ（JSON: responsive.stackBreakpointPx と同値） */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-pair--hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    justify-self: center;
    max-width: 360px;
  }

  .layout-container {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .lp-main-sticky-region {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main";
  }

  .lp-page-tail {
    margin-left: calc(-1 * var(--layout-page-padding));
    margin-right: calc(-1 * var(--layout-page-padding));
  }

  .sidebar {
    position: relative;
    top: auto;
    padding: 24px 0 0;
  }

  /* スタック時はサイドバー全幅のため CTA 文字を通常サイズに戻す */
  .sidebar__cta .btn {
    padding: 12px 14px;
    font-size: 14px;
    letter-spacing: 0.06em;
    line-height: normal;
  }

  .concept,
  .profile,
  .media-block {
    grid-template-columns: 1fr;
  }

  /* 会社紹介: 狭い画面では画像→テーブルの順（1列） */
  .company-intro__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  /* その他メニュー: 極窄のみ1列（それ以外は2列） */
  .service-grid--2col {
    grid-template-columns: 1fr;
  }
}

/* 担当者カード: 狭い幅では1列 */
@media (max-width: 720px) {
  .staff-card-grid {
    grid-template-columns: 1fr;
  }
}
