@charset "UTF-8";
/* ==========================================================
   MGAP トイレ交換LP デザイン再現用プロトタイプ
   ========================================================== */

:root {
  --c-orange: #E68003;
  --c-orange-dark: #cf7302;
  --c-green: #06C755;
  --c-blue: #2C74B3;
  --c-navy: #333B45;
  --c-text: #3a3f46;
  --c-text-weak: #6f7680;
  --c-beige-bg: #F7EFDF;
  --c-beige-light: #FBF6EA;
  --c-cream: #FAF3E3;
  --c-line-icon: #C29A5B;
  --c-blue-icon: #3D7AB8;
  --c-border: #e8e2d5;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;

  /* HP版移植セクション（p-reason／p-area）用 変数マッピング（色はHPと一致） */
  --color-primary: var(--c-orange);
  --color-bg:      #FBF8F4;
  --color-white:   #FFFFFF;
  --color-text:    #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  /* LP全テキストでIビーム（文字入力カーソル）が出ないよう統一。
     実測診断の結果、.hero-inner 限定では他セクション全文に残存したため body 基準にする。
     リンク・ボタンは UA/既存CSS の pointer が優先され、入力欄は下で text を明示 */
  cursor: default;
}
input, textarea { cursor: text; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; }

/* ---------- placeholder（実写画像の代用） ---------- */
.placeholder {
  position: relative;
  background:
    linear-gradient(135deg, #f3e9d4 0%, #ede0c6 45%, #e5d5b6 100%);
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 35%, rgba(255,255,255,.55), transparent 70%);
}
.placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b09c74;
  font-size: 13px;
  letter-spacing: .15em;
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img { height: 38px; width: auto; }
.gnav { margin-left: auto; }
.gnav ul {
  display: flex;
  gap: 26px;
}
.gnav a {
  font-size: 13.5px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  padding: 6px 0;
  transition: color .2s;
}
.gnav a:hover, .gnav a.is-current { color: var(--c-orange); }

.header-tel {
  text-align: left;
  line-height: 1.3;
  flex-shrink: 0;
}
.header-tel-num {
  font-size: 19px;
  font-weight: 800;
  color: #d97706;
  letter-spacing: .02em;
  display: block;
}
.header-tel-num .icon { color: var(--c-orange); margin-right: 2px; }
.header-tel-note {
  font-size: 10px;
  color: #888;
  display: block;
}
.header-cta {
  flex-shrink: 0;
  background: var(--c-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
}
.header-cta:hover { background: var(--c-orange-dark); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-navy);
  transition: transform .25s, opacity .25s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  background: var(--c-beige-bg);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
}
.hero-photo::after { font-size: 15px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--c-beige-bg) 0%,
    var(--c-beige-bg) 42%,
    rgba(247,239,223,.85) 52%,
    rgba(247,239,223,.35) 68%,
    rgba(247,239,223,0) 85%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 72px; /* パンくず・「お困りごと」タグ削除分の余白を補正 */
  padding-bottom: 64px;
  cursor: default; /* FVテキスト上でIビーム（文字入力カーソル状の縦線）が出るのを防ぐ */
}
.hero-title {
  font-family: var(--font-serif);
  /* モバイルで「〜交換した／い」と1文字だけ折り返すのを防ぐ（対応ブラウザのみ。語句単位で均等に折り返す） */
  word-break: auto-phrase;
  text-wrap: balance;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #2f333a;
  line-height: 1.4;
  margin-bottom: 8px;
}
/* 見出し直後の税込価格（リードより小さく、読める大きさ） */
.hero-price-tax {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
  color: #2f333a;
  margin-bottom: 20px;
}
.hero-lead {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #3a3f46;
  line-height: 1.7;
  margin-bottom: 26px;
}
.hero-area {
  font-size: 14px;
  font-weight: 600;
  color: #55503f;
  margin-bottom: 26px;
}
.hero-area .icon { color: var(--c-orange); }
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--c-text-weak);
}
/* 価格へのテキストリンク：スマホ（〜768px）のみ表示 */
.hero-price-link { display: none; }

/* --- Hero buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .15s, opacity .2s;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-tel { background: var(--c-orange); }
.btn-line { background: var(--c-green); }
.btn-mail { background: var(--c-blue); }

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
}
.line-badge-lg { width: 40px; height: 40px; font-size: 11px; }

/* ==========================================================
   Section common
   ========================================================== */
.sec-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  color: #2f333a;
  margin-bottom: 40px;
  /* 狭幅で「…までの流／れ」のように最後の1文字だけ落ちるのを防ぐ（対応ブラウザで行を均等化） */
  word-break: auto-phrase;
  text-wrap: balance;
}
.sec-more { text-align: center; margin-top: 36px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-orange);
  border: 1.5px solid var(--c-orange);
  background: #fff;
  padding: 12px 34px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--c-orange); color: #fff; }
.btn-outline .arrow { font-size: 16px; line-height: 1; }

/* ==========================================================
   よくあるお悩み
   ========================================================== */
.worries {
  background: var(--c-beige-light);
  padding: 64px 0 72px;
}
.worries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.worry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 28px 16px 24px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(90,70,30,.06);
}
.worry-icon {
  width: 64px;
  height: 64px;
  margin: 0 0 14px;
  color: var(--c-line-icon);
}
.worry-icon-blue { color: #4a90c4; }
.worry-title {
  font-size: 16px;
  font-weight: 700;
  color: #33383f;
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.worry-title-blue { color: #2e78b8; }
.worry-card p {
  font-size: 12.5px;
  color: var(--c-text-weak);
  line-height: 1.9;
}

/* ==========================================================
   MGAPの解決方法
   ========================================================== */
.solution {
  background: #fff;
  padding: 40px 0 72px;
}
.solution-box {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: var(--c-cream);
  border-radius: 12px;
  overflow: hidden;
}
.solution-photo { min-height: 340px; }
.solution-body { padding: 42px 44px; }
.solution-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #2f333a;
  padding-bottom: 14px;
  margin-bottom: 18px;
  word-break: auto-phrase;
  text-wrap: balance;
}
.solution-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-orange);
}
.solution-lead {
  font-size: 13.5px;
  color: #55534b;
  margin-bottom: 22px;
}
.check-list { margin-bottom: 30px; }
.check-list li {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(90,70,30,.08);
  padding: 10px 14px 10px 42px;
  font-size: 14px;
  font-weight: 600;
  color: #43474e;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-orange);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: calc(50% - 5px);
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ==========================================================
   施工事例
   ========================================================== */
.cases {
  background: #fff;
  padding: 24px 0 64px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.ba-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
}
.ba-photo {
  position: relative;
  aspect-ratio: 8 / 9;
  border-radius: 6px;
  overflow: hidden;
}
.ba-photo .placeholder {
  position: absolute;
  inset: 0;
}
.ph-before { filter: sepia(.25) brightness(.92); }
.ba-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  padding: 3px 12px;
  border-radius: 6px 0 6px 0;
}
.ba-before { background: #4a4a4a; }
.ba-after { background: var(--c-orange); }
.ba-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #8a8a8a;
  padding-bottom: 2px;
}
.case-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.case-tag {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #c9c2b0;
  color: #6d675a;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 10px;
  border-radius: 3px;
}
.case-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #33383f;
}
.case-text {
  font-size: 12px;
  color: var(--c-text-weak);
  line-height: 1.8;
}

/* ==========================================================
   取扱商品（画像なし・2カード）
   ========================================================== */
.products {
  background: #fff;
  padding: 60px 0 72px;
}
.products .sec-title { margin-bottom: 14px; }
.products-lead {
  text-align: center;
  font-size: 14px;
  color: #55534b;
  margin-bottom: 30px;
  word-break: auto-phrase;
  text-wrap: balance;
}
/* リード文の改行（config の \n）は幅480px以下（取扱商品カードが1列になる幅）だけで使い、それより広い画面は1行のまま */
@media (min-width: 481px) { .products-lead br { display: none; } }
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.product-card {
  background: var(--c-cream);
  border-radius: 12px;
  padding: 30px 16px 26px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(90,70,30,.06);
}
.product-name {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  color: #2f333a;
}
.product-type {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #43474e;
  word-break: auto-phrase;
}
.product-feature {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 14px;
  background: #fff;
  border: 1px solid var(--c-orange);
  border-radius: 999px;
  color: var(--c-orange);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
/* 品番例（型番より小さく控えめに） */
.product-code {
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-text-weak);
}
.products-desc {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 14px;
  color: #43474e;
  text-align: center;
}
.products-note {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 12px;
  color: var(--c-text-weak);
  text-align: center;
}
/* 交換後のイメージ（1枚。表示サイズの調整のみ） */
.products-gallery {
  max-width: 560px;
  margin: 16px auto 0;
}
.products-gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941; /* 読み込み前から高さを確保（元画像と同じ比率。切り取り・変形なし） */
  border-radius: 12px;
}
.products-gallery-note {
  max-width: 720px;
  margin: 10px auto 28px; /* 下のリード文との間 */
  font-size: 12px;
  color: var(--c-text-weak);
  text-align: center;
  word-break: auto-phrase;
  text-wrap: balance;
}

/* ==========================================================
   費用目安
   ========================================================== */
.price {
  background: var(--c-beige-light);
  padding: 60px 0 72px;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.price-card {
  display: grid;
  grid-template-columns: 1fr 168px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(90,70,30,.08);
}
.price-main { padding: 28px 26px 24px; }
.price-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.price-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.price-icon svg { width: 30px; height: 30px; }
.price-icon-blue { background: #2e6fb7; }
.price-icon-purple { background: #7d5fc0; }
.price-name {
  font-size: 18px;
  font-weight: 800;
  color: #2f333a;
  letter-spacing: .04em;
}
.price-badge {
  background: var(--c-beige-bg);
  color: #8a7a55;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.price-desc {
  font-size: 12.5px;
  color: #55534b;
  margin-bottom: 8px;
}
.price-photo { min-height: 100%; }
.price-photo::after { font-size: 11px; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq {
  background: var(--c-beige-light);
  padding: 60px 0 72px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  align-items: start;
}
.faq-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(90,70,30,.06);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: #33383f;
  padding: 15px 18px;
}
.faq-toggle {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #a8a08c;
  transform: translate(-50%, -50%);
  transition: transform .25s;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-a > p {
  overflow: hidden;
  font-size: 12.5px;
  color: var(--c-text-weak);
  padding: 0 18px;
  transition: padding .3s ease;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a > p { padding: 0 18px 15px; }

/* ==========================================================
   CTA
   ========================================================== */
.cta {
  position: relative;
  background: #fdfaf3;
  overflow: hidden;
}
.cta-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    #fdfaf3 0%,
    #fdfaf3 58%,
    rgba(253,250,243,.8) 70%,
    rgba(253,250,243,.2) 92%);
  z-index: 1;
}
.cta-inner {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 60px;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  color: #2f333a;
  margin-bottom: 10px;
  word-break: auto-phrase;
  text-wrap: balance;
}
.cta-lead {
  text-align: center;
  font-size: 13.5px;
  color: #55534b;
  margin-bottom: 34px;
}
.cta-btns {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}
.cta-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
  transition: transform .15s, opacity .2s;
}
.cta-btn:hover { opacity: .92; transform: translateY(-2px); }
.cta-btn-tel { background: var(--c-orange); }
.cta-btn-line { background: var(--c-green); }
.cta-btn-mail { background: var(--c-blue); }
.cta-btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-btn-icon .icon { width: 30px; height: 30px; }
.cta-btn-tel .cta-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.cta-btn-body { line-height: 1.4; }
.cta-btn-sub { display: block; font-size: 11.5px; font-weight: 600; }
.cta-btn-main { display: block; font-size: 25px; font-weight: 800; letter-spacing: .02em; }
.cta-btn-note { display: block; font-size: 10.5px; opacity: .9; }
.cta-btn-main-s { display: block; font-size: 16px; font-weight: 800; }
.cta-btn-sub2 { display: block; font-size: 12px; opacity: .95; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  /* gnav を隠す幅ではハンバーガーを出す（〜1100pxではナビもハンバーガーも無い状態だった不具合を解消）。
     ドロップダウンの top は header 高さ 68px 基準。768px以下では下のブロックが 60px に上書きする */
  .header-tel { margin-left: auto; }
  .menu-toggle { display: flex; }
  .gnav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    padding: 12px 20px 18px;
  }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #f0ece0;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body { font-size: 14px; }

  .header-inner { height: 60px; gap: 10px; }
  .logo-img { height: 32px; }
  .header-tel { display: none; }
  /* 電話番号を隠すと右寄せの基準（margin-left: auto）がなくなるため、お問い合わせボタンに持たせてハンバーガーを右端へ寄せる */
  .header-cta { margin-left: auto; padding: 8px 10px; font-size: 11px; }
  .menu-toggle { display: flex; }

  .gnav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    padding: 12px 20px 18px;
  }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #f0ece0;
    font-size: 14px;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    height: 220px;
  }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(247,239,223,0) 0%,
      rgba(247,239,223,0) 55%,
      var(--c-beige-bg) 78%);
  }
  .hero-inner { padding-top: 20px; padding-bottom: 44px; }
  .hero-title { font-size: 27px; }
  .hero-lead { font-size: 17px; }
  .hero-price-tax { font-size: 16px; margin-bottom: 16px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; }

  .sec-title { font-size: 22px; margin-bottom: 28px; }

  .worries { padding: 44px 0 52px; }
  .worries-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .worry-card { padding: 22px 12px 20px; }
  .worry-icon { width: 52px; height: 52px; }

  .solution { padding: 28px 0 52px; }
  .solution-box { grid-template-columns: 1fr; }
  .solution-photo { min-height: 200px; }
  .solution-body { padding: 26px 22px 30px; }
  .solution-title { font-size: 21px; }

  .cases { padding: 12px 0 48px; }
  .cases-grid { grid-template-columns: 1fr; gap: 34px; }

  .products { padding: 44px 0 52px; }
  .products-grid { gap: 12px; }
  .product-card { padding: 22px 8px 20px; }
  .product-name { font-size: 34px; }
  .product-type { font-size: 13px; }
  .products-desc,
  .products-note { text-align: left; }

  .price { padding: 44px 0 52px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .price-photo { min-height: 140px; }
  .price-value { font-size: 20px; }
  .price-table tr.is-total .price-value { font-size: 30px; }

  .faq { padding: 44px 0 52px; }
  .faq-grid { grid-template-columns: 1fr; }

  .cta-photo { display: none; }
  .cta::before { display: none; }
  .cta-inner { padding-top: 44px; padding-bottom: 48px; }
  .cta-title { font-size: 22px; }
  .cta-btns { grid-template-columns: 1fr; }
}

/* ==========================================================
   ▼ 完成形フォーマット追加分（repro の世界観に合わせて拡張）
   ========================================================== */

/* ---------- Hero 実写画像 ---------- */
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- よくあるお悩み：5カード＋写真併載 ---------- */
.worries-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.worries-grid-5 .worry-title { font-size: 15px; letter-spacing: .02em; }
.worries-grid-5 .worry-card { padding-left: 10px; padding-right: 10px; }
.worries-grid-5 .worry-card p { font-size: 12px; letter-spacing: 0; }
/* お悩み本文：config の固定改行（\n→<br>）はカード幅によって二次折り返しし、
   「ませ／ん。」等の不自然な切れ方になるため無効化し、自然な折り返しに任せる。
   auto-phrase / balance は対応ブラウザのみ効く（非対応は通常の折り返し） */
.worry-card p br { display: none; }
.worry-card p {
  word-break: auto-phrase;
  text-wrap: balance;
}
.worry-photo {
  width: 100%;
  margin: 0 0 14px;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.worry-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 解決方法：実写画像 ---------- */
.solution-photo { position: relative; min-height: 340px; }
.solution-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 施工事例：差し替え注記 ---------- */
.cases-note {
  text-align: center;
  font-size: 12px;
  color: var(--c-text-weak);
  margin-top: 28px;
}

/* ---------- 施工事例：実写画像（8:9 の枠いっぱいに表示。雛形はプレースホルダー用の指定のみだったため追加） ---------- */
.ba-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 価格（1プラン・内訳表） ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(90,70,30,.08);
}
.plan-card-featured {
  border-color: var(--c-orange);
  box-shadow: 0 4px 14px rgba(230,128,3,.18);
}
.plan-label {
  background: var(--c-navy);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 8px 10px;
}
.plan-card-featured .plan-label { background: var(--c-orange); }
.plan-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.plan-name {
  font-size: 17px;
  font-weight: 800;
  color: #2f333a;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th,
.price-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.price-table th {
  padding-right: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #43474e;
  white-space: nowrap;
}
.price-table td { text-align: right; }
.price-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.3;
  color: #2f333a;
  white-space: nowrap;
}
/* 税込（税抜より小さく、明瞭に読める大きさ） */
.price-tax-in {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #55534b;
  white-space: nowrap;
}
/* 合計行を最も目立たせる */
.price-table tr.is-total th,
.price-table tr.is-total td {
  padding-top: 18px;
  border-bottom: none;
}
.price-table tr.is-total th { font-size: 16px; color: #2f333a; }
.price-table tr.is-total .price-value { font-size: 34px; color: var(--c-orange); }
.price-table tr.is-total .price-tax-in { font-size: 16px; color: #2f333a; }
.plans-note {
  text-align: center;
  font-size: 12px;
  color: var(--c-text-weak);
  margin-top: 30px;
  word-break: auto-phrase;
}

/* ---------- ご相談〜工事完了の流れ（5STEP） ---------- */
.flow {
  background: #fff;
  padding: 60px 0 72px;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.flow-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(90,70,30,.06);
}
.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--c-orange);
  z-index: 2;
}
.flow-step {
  display: flex;
  align-items: baseline;
  gap: 4px;
  background: var(--c-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 7px 7px 0 0;
}
.flow-num { font-size: 16px; }
.flow-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.flow-photo img { width: 100%; height: 100%; object-fit: cover; }
.flow-body { padding: 14px 14px 18px; }
.flow-title {
  font-size: 14px;
  font-weight: 700;
  color: #33383f;
  margin-bottom: 6px;
  word-break: auto-phrase;
}
.flow-text {
  font-size: 11.5px;
  color: var(--c-text-weak);
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy);
  color: #fff;
  padding: 44px 0 30px;
}
.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.site-footer-name { font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.site-footer-tagline { font-size: 12px; opacity: .85; margin-top: 2px; }
.site-footer-info { margin: 0; display: grid; gap: 4px; font-size: 12.5px; }
.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}
.site-footer-row dt { font-weight: 700; opacity: .7; }
.site-footer-row dt::after { content: "："; }
.site-footer-row dd { margin: 0; opacity: .92; }
.site-footer-sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.site-footer-sns a {
  font-size: 12.5px;
  font-weight: 600;
  opacity: .9;
  text-decoration: underline;
}
.site-footer-sns a:hover { opacity: 1; }
.site-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 12.5px;
}
.site-footer-menu a { opacity: .9; }
.site-footer-menu a:hover { opacity: 1; text-decoration: underline; }
.site-footer-legal { margin: 0; }
.site-footer-legal-link { font-size: 12px; opacity: .9; text-decoration: underline; }
.site-footer-copyright { font-size: 11.5px; opacity: .7; }

/* ---------- モバイル固定CTAバー ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  grid-template-columns: 1fr 1fr 1fr;
  box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.mobile-cta .icon { width: 18px; height: 18px; }
.mobile-cta .line-badge { width: 20px; height: 20px; font-size: 7px; }
.mobile-cta-tel { background: var(--c-orange); }
.mobile-cta-line { background: var(--c-green); }
.mobile-cta-mail { background: var(--c-blue); }

/* ---------- Responsive（追加セクション分） ---------- */
@media (max-width: 1100px) {
  .worries-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
  .flow-card:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  .worries-grid-5 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .worry-photo { margin: 0 0 12px; }
}

/* お悩み：狭幅（〜480px）では2列だとカードが窮屈で本文が不自然に折り返すため1列にして幅を確保（方針A）。
   アイコン・写真・見出し・本文の縦余白は既存値を維持する */
@media (max-width: 480px) {
  .worries-grid-5 { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 768px) {

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .flow { padding: 44px 0 52px; }
  .flow-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  /* 固定CTAバー表示。フッターに被らないよう余白確保 */
  .mobile-cta { display: grid; }
  body { padding-bottom: 56px; }
}

/* ---------- スマホ（〜768px）：価格までのスクロールを短くする（PCは変更なし） ---------- */
@media (max-width: 768px) {
  /* ヒーロー：税込価格の行のすぐ下に、価格へのテキストリンク（控えめに・左そろえ） */
  .hero-price-tax { margin-bottom: 6px; }
  .hero-price-link {
    display: block;
    width: fit-content;
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--c-text-weak);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* よくあるお悩み：写真を隠し、2列でコンパクトに（見出し14px・本文12pxは維持） */
  .worry-photo { display: none; }
  .worries-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } /* 中身の幅に引っ張られず2列を均等に */
  .worry-card p { overflow-wrap: anywhere; } /* 語句単位の折り返しを保ちつつ、入りきらない語句だけ途中で折る */
  .worries-grid-5 .worry-card { padding: 16px 10px 14px; }
  .worry-icon { width: 40px; height: 40px; margin: 0 0 8px; }
  .worries-grid-5 .worry-title { font-size: 14px; margin-bottom: 6px; word-break: auto-phrase; text-wrap: balance; overflow-wrap: anywhere; } /* 1文字だけ次の行に落ちるのを防ぐ */

  /* 解決方法：写真を隠す */
  .solution-photo { display: none; }

  /* 交換後のイメージ：画面幅いっぱいに表示 */
  .products-gallery { max-width: none; margin-left: -20px; margin-right: -20px; }
  .products-gallery-item img { border-radius: 0; }
}

/* ---------- 取扱商品：幅480px以下はカードを1列に（2行目の商品説明を語の途中で折り返さないため） ---------- */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ---------- 極小幅（〜380px）でヘッダーを収める ---------- */
@media (max-width: 380px) {
  .header-inner { gap: 8px; padding: 0 10px; }
  .logo-img { height: 28px; }
  .header-cta { font-size: 10px; padding: 7px 8px; gap: 4px; }
  .menu-toggle { width: 32px; }
}

/* ---------- 極小幅（〜380px）でヒーロー見出しを2行に収める ---------- */
@media (max-width: 380px) {
  .hero-title { font-size: 24px; }
}

/* ---------- 狭幅（〜400px）で価格表をカード内に収める（合計額の幅で表がはみ出すのを防ぐ） ---------- */
@media (max-width: 400px) {
  .plan-body { padding-left: 16px; padding-right: 16px; }
  .price-table th { font-size: 13px; padding-right: 8px; }
  .price-value { font-size: 18px; }
  .price-table tr.is-total .price-value { font-size: 24px; }
}

/* ==========================================================
   ▼ HP版移植：選ばれる理由（p-reason）・対応エリア（p-area）
   出典：_refs_hinagata/hp_transplant_reason_area.txt
   ※コンテナは final 既存の .container を使用（.l-container 相当）
   ※モバイルファースト（min-width方式）— HPと同一
   ========================================================== */
.c-section-head { margin-bottom: 40px; text-align: center; }
.c-section-head__title { color: var(--color-text); font-size: 24px; font-weight: 700; margin-bottom: 12px; word-break: auto-phrase; text-wrap: balance; }
.c-section-head__desc { color: var(--color-text); font-size: 14px; }

.p-reason { background: var(--color-white); padding-block: 56px; }
.p-reason__list { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.p-reason__card { align-items: center; background: var(--color-bg); border-radius: 12px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; padding: 24px 16px; text-align: center; }
.p-reason__icon { height: 64px; width: 64px; object-fit: contain; }
.p-reason__title { font-size: 14px; font-weight: 700; line-height: 1.5; }
.p-reason__desc { color: var(--color-text); font-size: 12px; line-height: 1.6; }
.p-reason__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.p-reason__item:last-child:nth-child(odd) .p-reason__card { margin-inline: auto; max-width: 200px; }

.p-area { align-items: center; display: flex; min-height: 400px; overflow: hidden; position: relative; }
.p-area__bg { inset: 0; position: absolute; z-index: 0; }
.p-area__bg-img { height: 100%; width: 100%; object-fit: cover; object-position: 60% center; }
.p-area__inner { padding-block: 56px; position: relative; width: 100%; z-index: 1; }
.p-area__content { background: rgba(255, 255, 255, 0.88); border-radius: 16px; max-width: 480px; padding: 32px 24px; width: 100%; }
.p-area__title { color: var(--color-text); font-size: 14px; font-weight: 700; margin-bottom: 4px; word-break: auto-phrase; text-wrap: balance; }
.p-area__subtitle { color: var(--color-text); font-size: 24px; font-weight: 700; margin-bottom: 12px; word-break: auto-phrase; text-wrap: balance; }
.p-area__desc { color: var(--color-text); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.p-area__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.p-area__tag { background: var(--color-primary); border-radius: 20px; color: var(--color-white); font-size: 12px; font-weight: 700; padding: 4px 12px; }
.p-area__note { border-top: 1px solid rgba(0, 0, 0, 0.1); color: var(--color-text); font-size: 13px; margin-bottom: 0; margin-top: 16px; padding-top: 12px; }
.p-area__detail { margin-top: 12px; }
.p-area__detail-toggle { align-items: center; color: var(--color-primary); cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 700; gap: 6px; list-style: none; padding: 4px 0; }
.p-area__detail-toggle::-webkit-details-marker { display: none; }
.p-area__detail-toggle::after { content: "▼"; font-size: 10px; transition: transform 0.2s; }
details[open] .p-area__detail-toggle::after { transform: rotate(180deg); }
.p-area__detail-body { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.p-area__detail-label { color: var(--color-text); font-size: 13px; font-weight: 700; margin-top: 8px; }
.p-area__detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-area__detail-tag { background: rgba(230, 128, 3, 0.1); border: 1px solid rgba(230, 128, 3, 0.3); border-radius: 20px; color: var(--color-primary); font-size: 11px; padding: 3px 10px; }
.p-area__detail-tag--all { font-weight: 700; }

@media screen and (min-width: 768px) {
  .p-reason { padding-block: 80px; }
  .p-reason__list { gap: 20px; grid-template-columns: repeat(3, 1fr); }
  .p-reason__item:last-child:nth-child(odd) { grid-column: auto; }
}

@media screen and (min-width: 1024px) {
  .c-section-head { margin-bottom: 56px; }
  .c-section-head__title { font-size: 32px; }
  .c-section-head__desc { font-size: 16px; }
  .p-reason { padding-block: 100px; }
  .p-reason__list { gap: 24px; grid-template-columns: repeat(5, 1fr); }
  .p-reason__title { font-size: 15px; }
  .p-reason__desc { font-size: 13px; }
  .p-area { min-height: 480px; }
  .p-area__inner { padding-block: 80px; }
  .p-area__content { padding: 40px 32px; }
  .p-area__subtitle { font-size: 28px; }
}
