@charset "utf-8";

/* =========================================================
   有限会社建友ホーム 様 ご提案専用サンプル
   テーマ：木のあたたかさ＋誠実＋クリア
   文字サイズは 03_レビューゲート の18px仕様に従う。
   数値を直接書かず、必ず :root の変数を使う。
   ========================================================= */

:root {
  color-scheme: only light;

  --fs-body: 18px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-label: 15px;
  --fs-note: 14px;
  --fs-deco: 15px;

  --paper: #ffffff;
  --wood: #f6f1ea;
  --wood-line: #e3d9cb;
  --ink: #2a2724;
  --ink-soft: #6b635a;
  --blue: #005bab;
  --blue-deep: #00417a;
  --green: #0db14b;
  --alert: #b8471f;

  --wrap: 1120px;
  --read: 700px;

  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", meiryo, sans-serif;
  --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* なめらかスクロールは使わない */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--blue);
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 100;
  background: #fff;
  padding: 10px 16px;
  border: 2px solid var(--blue);
}

/* ---------- 提案バー（濃色ベタにしない＝注釈の見た目） ---------- */

.proposal {
  background: var(--wood);
  border-bottom: 1px solid var(--wood-line);
  color: var(--ink-soft);
  font-size: var(--fs-note);
  line-height: 1.6;
  padding-block: 8px;
}

.proposal .wrap {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.proposal b {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- ヘッダー ---------- */

.site-head {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--wood-line);
}

.head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.head-top .logo {
  margin: 0;
}

.head-top .logo img {
  width: 260px;
}

.head-tel {
  margin: 0;
  text-align: right;
  line-height: 1.4;
}

.head-tel .num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.head-tel .cap {
  font-size: var(--fs-label);
  color: var(--ink-soft);
}

.site-nav {
  border-top: 1px solid var(--wood-line);
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  flex: 1 1 0;
  min-width: 0;
}

.site-nav a {
  display: block;
  text-align: center;
  padding: 16px 8px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-left: 1px solid var(--wood-line);
  white-space: nowrap;
}

.site-nav li:last-child a {
  border-right: 1px solid var(--wood-line);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--blue);
}

.menu-btn {
  display: none;
}

/* ---------- ボタン ---------- */

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 26px;
  font-size: var(--fs-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-tel {
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
}

.btn-line {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}

/* ---------- 第一画面（トップ） ---------- */

.hero {
  border-bottom: 1px solid var(--wood-line);
}

.hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 56px 60px;
}

.hero h1 {
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.45;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero h1 em {
  font-style: normal;
  border-bottom: 4px solid var(--green);
  padding-bottom: 2px;
}

.hero p {
  margin: 0 0 28px;
  color: var(--ink-soft);
}

.hero .photo img {
  width: 100%;
  border: 1px solid var(--wood-line);
}

.hero .credit {
  font-size: var(--fs-note);
  color: var(--ink-soft);
  margin: 8px 0 0;
}

/* ---------- 下層ページの見出し ---------- */

.page-head {
  background: var(--wood);
  border-bottom: 1px solid var(--wood-line);
  padding-block: 40px 44px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.35;
  font-weight: 700;
}

.page-head p {
  margin: 14px 0 0;
  max-width: var(--read);
  color: var(--ink-soft);
}

.crumb {
  margin: 0 0 14px;
  font-size: var(--fs-label);
  color: var(--ink-soft);
}

.crumb a {
  color: var(--ink-soft);
}

/* ---------- セクション共通 ---------- */

.sec {
  padding-block: 72px;
}

.sec-wood {
  background: var(--wood);
  border-block: 1px solid var(--wood-line);
}

.sec-head {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
}

.sec-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--blue);
  margin-top: 14px;
}

.sec-lead {
  margin: 18px 0 36px;
  color: var(--ink-soft);
  max-width: var(--read);
}

.more {
  margin-top: 32px;
}

.back-link {
  margin: 0;
  padding-block: 40px 48px;
  font-size: var(--fs-body);
}

/* ---------- 4つの入口 ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.door {
  background: #fff;
  border: 1px solid var(--wood-line);
  border-top: 3px solid var(--blue);
  border-radius: 4px;
}

.door a {
  display: block;
  padding: 24px 20px 20px;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}

.door h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  line-height: 1.4;
  font-weight: 700;
}

.door h3 span {
  display: inline-block;
}

.door p {
  margin: 0 0 14px;
  font-size: var(--fs-body);
  color: var(--ink-soft);
  line-height: 1.7;
}

.door .go {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--blue);
}

/* ---------- 見せ場：工法くらべ ---------- */

.kouhou {
  border: 1px solid var(--wood-line);
  background: #fff;
  border-radius: 4px;
}

.kouhou-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--wood-line);
}

.kouhou-tab {
  appearance: none;
  background: var(--wood);
  border: 0;
  border-left: 1px solid var(--wood-line);
  padding: 18px 12px;
  font-family: inherit;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 56px;
  line-height: 1.4;
}

.kouhou-tab:first-child {
  border-left: 0;
}

.kouhou-tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--blue);
}

.kouhou-panel[hidden] {
  display: none;
}

.kouhou-body {
  padding: 32px 32px 36px;
}

.kouhou-body h3 {
  margin: 0 0 4px;
  font-size: var(--fs-h3);
  font-weight: 700;
}

.kouhou-body .yomi {
  font-size: var(--fs-label);
  color: var(--ink-soft);
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.kouhou-body .desc {
  margin: 0 0 24px;
  max-width: var(--read);
}

.tokucho {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.tokucho li {
  position: relative;
  padding-left: 26px;
  font-size: var(--fs-body);
  line-height: 1.7;
}

.tokucho li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.kouhou-note {
  margin: 22px 0 0;
  font-size: var(--fs-note);
  color: var(--ink-soft);
}

/* ---------- 施工事例カード ---------- */

.works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work {
  background: #fff;
  border: 1px solid var(--wood-line);
  border-radius: 4px;
  overflow: hidden;
}

.work > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work .cap {
  padding: 14px 16px 16px;
}

.work h3 {
  margin: 0;
  font-size: var(--fs-h4);
  line-height: 1.5;
  font-weight: 700;
}

.work h3 span {
  display: inline-block;
}

.work h3 span + span {
  margin-left: 0.4em;
}

.work .kind {
  display: inline-block;
  margin-top: 6px;
  font-size: var(--fs-label);
  color: var(--ink-soft);
}

/* ---------- 施工事例ページ：写真の一覧 ---------- */

.case {
  padding-block: 56px;
  border-bottom: 1px solid var(--wood-line);
}

.case:last-of-type {
  border-bottom: 0;
}

.case-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.case-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
}

.case-head h2 span {
  display: inline-block;
}

.case-head h2 span + span {
  margin-left: 0.4em;
}

.case-head .kind {
  font-size: var(--fs-label);
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 4px;
  padding: 3px 12px;
  white-space: nowrap;
}

.case .wrap > p {
  margin: 0 0 24px;
  max-width: var(--read);
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery li {
  margin: 0;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--wood-line);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shot:hover {
  border-color: var(--blue);
}

.ba-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 14px;
}

.ba-label .tag {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-en);
  color: #fff;
  background: var(--ink-soft);
  padding: 3px 14px;
  border-radius: 4px;
}

.ba-label .tag.after {
  background: var(--blue);
}

.ba-label h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
}

/* ---------- 写真を大きく見る ---------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 18, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.viewer[hidden] {
  display: none;
}

.viewer img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  border: 2px solid #fff;
  background: #fff;
}

.viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 48px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.viewer-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  color: #fff;
  font-size: var(--fs-label);
  margin: 0;
}

/* ---------- 改修前・改修後（トップ） ---------- */

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

.ba figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--wood-line);
  border-radius: 4px;
  overflow: hidden;
}

.ba img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ba figcaption {
  padding: 14px 18px 16px;
}

.ba .tag {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-en);
  color: #fff;
  background: var(--ink-soft);
  padding: 2px 12px;
  border-radius: 4px;
}

.ba .tag.after {
  background: var(--blue);
}

.ba figcaption p {
  margin: 8px 0 0;
  font-size: var(--fs-body);
  color: var(--ink-soft);
}

/* ---------- 塀・耐震 ---------- */

.alert-box {
  border: 2px solid var(--alert);
  border-radius: 4px;
  background: #fff;
  padding: 32px;
}

.alert-box h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--alert);
}

.alert-box .lead {
  margin: 14px 0 22px;
  max-width: var(--read);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.badge {
  font-size: var(--fs-label);
  font-weight: 700;
  border: 1px solid var(--wood-line);
  background: var(--wood);
  border-radius: 4px;
  padding: 6px 14px;
}

/* ---------- 相談例・流れ ---------- */

.souda {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: var(--read);
}

.souda li {
  background: #fff;
  border: 1px solid var(--wood-line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 16px 20px;
}

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  max-width: var(--read);
}

.flow li {
  position: relative;
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--wood-line);
  border-radius: 4px;
  padding: 18px 22px 20px 66px;
}

.flow li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-en);
  font-size: var(--fs-h4);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow h3 {
  margin: 0 0 4px;
  font-size: var(--fs-h4);
  font-weight: 700;
}

.flow p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- 会社の裏付け ---------- */

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.proof > li {
  background: #fff;
  border: 1px solid var(--wood-line);
  border-radius: 4px;
  padding: 22px 22px 26px;
}

.proof h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--blue);
}

.proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-body);
  line-height: 1.7;
}

.proof-list li {
  padding: 5px 0;
  border-bottom: 1px solid var(--wood-line);
}

.proof-list li:last-child {
  border-bottom: 0;
}

.proof-list b {
  display: inline-block;
  font-weight: 700;
}

/* ---------- 会社概要の表 ---------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--wood-line);
  font-size: var(--fs-body);
  text-align: left;
}

.spec th,
.spec td {
  border-bottom: 1px solid var(--wood-line);
  padding: 16px 12px;
  vertical-align: top;
  line-height: 1.7;
}

.spec th {
  width: 200px;
  background: var(--wood);
  font-weight: 700;
  white-space: nowrap;
}

.spec td b {
  display: inline-block;
  font-weight: 700;
}

.greeting {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: var(--read);
}

.greeting p {
  margin: 0;
}

.greeting .sign {
  margin-top: 10px;
  font-weight: 700;
}

/* ---------- お問い合わせ ---------- */

.map {
  border: 1px solid var(--wood-line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
  max-width: var(--wrap);
}

.map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.form-note {
  background: var(--wood);
  border: 1px solid var(--wood-line);
  border-left: 4px solid var(--alert);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 0 0 28px;
  max-width: var(--read);
}

.form {
  max-width: var(--read);
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.field .req {
  font-size: var(--fs-label);
  font-weight: 700;
  color: #fff;
  background: var(--alert);
  border-radius: 4px;
  padding: 2px 10px;
  margin-left: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.6;
  padding: 12px 14px;
  border: 1px solid var(--ink-soft);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  min-height: 56px;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--blue);
  color: #fff;
  padding-block: 56px;
  text-align: center;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
}

.cta p {
  margin: 0 0 26px;
  color: #e4eef7;
}

.cta .num {
  display: block;
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
}

.cta .btn-tel {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}

.cta .btn-line {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* ---------- フッター ---------- */

.site-foot {
  background: var(--wood);
  border-top: 1px solid var(--wood-line);
  padding-block: 44px 28px;
  font-size: var(--fs-body);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.site-foot .logo {
  margin: 0 0 12px;
}

.site-foot .logo img {
  width: 240px;
}

.tagline {
  margin: 6px 0 12px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--blue);
}

.site-foot address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.9;
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  color: var(--ink);
  text-decoration: none;
}

.foot-note {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--wood-line);
  font-size: var(--fs-note);
  color: var(--ink-soft);
  line-height: 1.7;
}

.copy {
  margin: 12px 0 0;
  font-size: var(--fs-note);
  color: var(--ink-soft);
  font-family: var(--font-en);
}

.sp-tel {
  display: none;
}

/* =========================================================
   スマートフォン・タブレット
   ========================================================= */

@media (max-width: 900px) {
  .wrap {
    padding-inline: 16px;
  }

  .head-top {
    padding-block: 10px;
    gap: 12px;
  }

  .head-top .logo img {
    width: 190px;
  }

  .head-tel {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 48px;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid var(--blue);
    border-radius: 4px;
    color: var(--blue);
    font-family: inherit;
    font-size: var(--fs-body);
    font-weight: 700;
    cursor: pointer;
  }

  .menu-btn .bars {
    display: inline-block;
    width: 20px;
    flex: 0 0 auto;
  }

  .menu-btn .bars i {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blue);
    margin: 4px 0;
  }

  /* ドロップダウン（position:fixed にしない） */
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--wood-line);
    border-bottom: 2px solid var(--blue);
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav .wrap {
    padding-inline: 0;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav a {
    text-align: left;
    padding: 16px 20px;
    border-left: 0;
    border-bottom: 1px solid var(--wood-line);
    min-height: 56px;
  }

  .site-nav li:last-child a {
    border-right: 0;
    border-bottom: 0;
  }

  .hero .inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 28px 32px;
  }

  .sec {
    padding-block: 44px;
  }

  .sec-head,
  .case-head h2,
  .alert-box h2,
  .cta h2 {
    font-size: 25px;
  }

  .page-head {
    padding-block: 26px 30px;
  }

  .doors,
  .works,
  .proof {
    grid-template-columns: minmax(0, 1fr);
  }

  .kouhou-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .kouhou-tab {
    border-left: 0;
    border-bottom: 1px solid var(--wood-line);
  }

  .kouhou-body {
    padding: 24px 18px 28px;
  }

  .tokucho,
  .ba {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .alert-box {
    padding: 22px 18px 26px;
  }

  .case {
    padding-block: 36px;
  }

  .spec th {
    width: auto;
    display: block;
    border-bottom: 0;
    padding-bottom: 6px;
  }

  .spec td {
    display: block;
    padding-top: 6px;
  }

  .cta .num {
    font-size: clamp(28px, 8.5vw, 36px);
  }

  /* 狭い画面ではボタンを全幅にして、文字を折り返させる（メニューボタンは除く） */
  .btn {
    width: 100%;
    white-space: normal;
    padding-inline: 16px;
    text-align: center;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-foot {
    padding-bottom: 96px;
  }

  .sp-tel {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--blue);
    border-top: 1px solid var(--blue-deep);
    padding: 8px 12px;
  }

  .sp-tel a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    color: #fff;
    text-decoration: none;
    font-size: var(--fs-h4);
    font-weight: 700;
  }
}
