@charset "UTF-8";

/* =========================================================
   NOVENA ドローン高圧洗浄 LP
   Figma: 2026.08.07 NOVENA LP 修正版 (node 249:97)
   ========================================================= */

:root {
  /* Brand */
  --navy: #123b52;
  --navy-deep: #092d44;
  --blue: #0d78af;
  --blue-mid: #0d84bb;
  --blue-bright: #109edc;
  --sky: #1ab2ec;
  --sky-light: #34c7ff;
  --sky-pale: #e3f3fb;
  --sky-bg: #e8f2f8;
  --sky-cta: #2ebef4;
  --blue-safety: #1aa0da;
  --blue-case: #1898d2;

  /* Accent */
  --yellow: #ffc31a;
  --yellow-shadow: #d69a00;
  --yellow-text: #ffe033;
  --yellow-hero: #ffd633;
  --gold: #ffd666;
  --gold-sub: #fad485;
  --orange: #eb4d29;

  /* Neutral */
  --ink: #1f2a30;
  --ink-cta: #22303a;
  --gray: #5b6771;
  --gray-mid: #6b747c;
  --gray-tab: #5a6b76;
  --gray-head: #5a626a;
  --line: #d9e2e8;
  --panel: #f2f6f9;
  --panel-alt: #f6f8f9;
  --panel-row: #edf1f4;
  --card-bg: #eef1f3;
  --white: #fff;

  /* Layout */
  --w-wide: 1160px;
  --w-main: 1100px;
  --w-narrow: 1000px;
  --shadow-card: 0 8px 20px rgba(9, 45, 68, 0.25);
  --shadow-soft: 0 6px 22px rgba(18, 59, 82, 0.1);
  --text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  /* 画面外に待機しているドロワーで横スクロールが出ないようにする
     （overflow-x:hidden と違い clip は position:sticky を壊さない） */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* かつて word-break:auto-phrase を入れていたが、文節単位でしか折り返せず
     本文が右に40〜150px空いたまま改行されてしまうため撤去した。
     日本語は任意の位置で折り返すのが標準。句読点や閉じ括弧の行頭禁則は
     ブラウザの既定(line-break:auto)が面倒を見る。
     見出しの行長そろえは text-wrap:balance 側で担保する。 */
}

/* balance は行長を意図的にそろえる指定。左揃えの見出しに掛けると
   右側が大きく空いて「変なところで改行している」ように見えるため、
   中央揃えの見出しだけに限定する。
   （.h-sub / .bcard__title / .flow__title は左揃えなので対象外） */
h1, h2, h3,
.sec-title,
.hero__ribbon,
.consult__title,
.compare__emphasis,
.tabpanel__title,
.case__title,
.scard__title {
  text-wrap: balance;
}

/* 本文には text-wrap を指定しない（既定の wrap ＝行末まで詰める）。
   pretty は Chrome が最終行付近だけを調整するのに対し、WebKit は段落全体を
   最適化するため、iOSでだけ各行が短く揃った折り返しになってしまう。
   既定の wrap はエンジン間で挙動が一致するので、本文はこれで統一する。

   balance は行長を意図的にそろえるものなので、
   「中央揃えの短いリード文」だけに残す。左揃えの本文には使わない。 */
.sec-lead,
.ba__note,
.callbar__note {
  text-wrap: balance;
}

/* スマホでだけ効かせる改行。PC/タブレットでは無視される */
.br-sp {
  display: none;
}

@media (max-width: 699px) {
  .br-sp {
    display: inline;
  }
}

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

/* iOS Safari は <button> の既定文字色がシステム青になる。
   Chromeでは buttontext(黒) のため気づきにくいが、色指定の無いボタンは
   実機で青文字になってしまう。既定を継承に倒して事故を防ぐ */
button {
  color: inherit;
}

p {
  margin: 0;
}

/* figure はブラウザ既定で左右40pxのマージンが付き、
   ギャラリーが1列に落ちる原因になるため打ち消す */
figure {
  margin: 0;
}

/* ---------- shared ---------- */

.section {
  padding: 64px 40px;
}

/* セクション別の余白（Figma 2026.08.14 修正版の実測値に準拠） */
#service        { padding: 100px 40px 64px; }
#services       { padding: 80px 40px 64px; }
#range          { padding: 80px 40px; }
#before-after   { padding: 80px 40px 64px; }
#compare        { padding: 80px 40px; }
#flow           { padding: 80px 40px 64px; }
#faq            { padding: 80px 40px; }
/* .safety / .callbar / .merit / .consult / .footer は各セクションの定義側で指定 */

/* 見出し→リード文の間隔はセクションごとの gap に合わせる */
#services .sec-lead { margin-top: 24px; }
#before-after .sec-lead { margin-top: 16px; }
#compare .sec-lead { margin-top: 16px; }

.inner-wide {
  width: min(var(--w-wide), 100%);
  margin-inline: auto;
}

.inner-main {
  width: min(var(--w-main), 100%);
  margin-inline: auto;
}

.inner-narrow {
  width: min(var(--w-narrow), 100%);
  margin-inline: auto;
}

.sec-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  color: var(--blue-mid);
  margin: 0;
}

.sec-title--blue {
  color: var(--blue);
}

.sec-title--white {
  color: var(--white);
}

.sec-lead {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  text-align: center;
  margin: 14px 0 0;
}

/* 本文の右端をそろえる（両端揃え）。最終行は左揃えのまま。
   <br> で区切った行はそれぞれ最終行の扱いになるため引き伸ばされず、
   自然に折り返して次行へ続く行だけがそろう。
   対象は「複数行に流れる本文」だけ。次のものは意図的に外している：
   - 見出し・リード（.sec-title / .sec-lead / .h-sub / .hero__title）…
     中央揃えや行末まで詰める指定が別途あるため
   - 体裁を固定したい引用・キャプション・住所
     （.voice__quote / .voice__meta / .modal__contact）
   - ボタン・ラベル・表のセル（.qa__text / .form__label / .compare__* など）
   text-wrap / word-break 系は iOS で折り返しが崩れるため併用しない */
.body-text,
.note-text,
.intro__text p,
.scard__body p,
.bcard__text p,
.tabpanel__note,
.flow__desc,
.qa__a,
.meritbar__text,
.voice__excerpt,
.form__privacy,
.footer__text,
.modal__body p:not(.modal__contact):not(.voice__quote):not(.voice__meta),
.modal__body li {
  text-align: justify;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink-cta);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 100px;
  box-shadow: 0 5px 0 var(--yellow-shadow);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--yellow-shadow);
}

.btn-cta:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--yellow-shadow);
}

/* ---------- 01 header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 40px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(18, 59, 82, 0.08);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.logo {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  width: 179px;
  height: auto;
}

.header__tagline {
  font-size: 15px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
}

/* 語句の途中では折り返さず、意味の区切りだけで改行させる */
.header__tagline span {
  display: inline-block;
}


.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__hours {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-align: right;
}

.header .btn-cta {
  padding: 13px 22px;
  font-size: 15px;
}

/* ヘッダーの2ボタン（電話／資料請求） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn--tel {
  background: var(--blue-bright);
  color: var(--white);
  box-shadow: 0 5px 0 #1e69ab;
}

.btn--doc {
  background: var(--yellow);
  color: var(--ink-cta);
  box-shadow: 0 5px 0 var(--yellow-shadow);
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 currentColor;
}

.btn--tel:hover {
  box-shadow: 0 3px 0 #1e69ab;
}

.btn--doc:hover {
  box-shadow: 0 3px 0 var(--yellow-shadow);
}

.ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---------- ハンバーガー / ドロワー（スマホ） ---------- */

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--blue-mid);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(320px, 86vw);
  height: 100dvh;
  padding: 76px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--white);
  box-shadow: -6px 0 24px rgba(18, 59, 82, 0.18);
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.26s ease, visibility 0.26s;
}

.drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}

/* ドロワー右上の閉じるボタン。
   ハンバーガーは背面に隠れるため、閉じる導線をドロワー内にも置く */
.drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease;
}

.drawer__close:hover,
.drawer__close:focus-visible {
  background: var(--line);
}

.drawer__close svg {
  width: 20px;
  height: 20px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
}

.drawer__nav a {
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.drawer__nav a:active {
  color: var(--blue-mid);
}

.drawer__foot {
  margin-top: 22px;
}

.drawer__hours {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-align: center;
}

.drawer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin-bottom: 10px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.drawer__btn--tel {
  background: var(--blue-bright);
  color: var(--white);
  box-shadow: 0 4px 0 #1e69ab;
}

.drawer__btn--doc {
  background: var(--yellow);
  color: var(--ink-cta);
  box-shadow: 0 4px 0 var(--yellow-shadow);
}

.drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(9, 45, 68, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s ease, visibility 0.24s;
}

.drawer__overlay.is-open {
  visibility: visible;
  opacity: 1;
}

body.is-locked {
  overflow: hidden;
}

/* ヘッダーが sticky なので、アンカーで飛んだときに見出しが隠れないよう
   ヘッダーの実測高さ(--header-h)ぶん手前で止める */
[id] {
  scroll-margin-top: calc(var(--header-h, 102px) + 16px);
}

/* ---------- スマホ用 固定CTAバー ---------- */

.mobilebar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -2px 12px rgba(18, 59, 82, 0.16);
  backdrop-filter: blur(6px);
}

.mobilebar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}

.mobilebar__btn small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

.mobilebar__btn--tel {
  background: var(--blue-bright);
  color: var(--white);
}

.mobilebar__btn--doc {
  background: var(--yellow);
  color: var(--ink-cta);
}

.mobilebar__btn:active {
  filter: brightness(0.94);
}

/* ---------- 02 hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 100px 40px 100px 80px;
  overflow: hidden;
  isolation: isolate;
}

/* 動画はGPU合成レイヤーになるため、z-index:-1 に置くとiOS Safariで
   通常フローのテキストより手前に描かれることがある（スクロールするまで
   見出しが見えない不具合）。負の値をやめ、文字側を明示的に上へ重ねる */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__ribbon,
.hero__title,
.hero__cards {
  position: relative;
  z-index: 1;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* FV動画の上に敷くフィルター。水色だと映像が青被りするため、
     ニュートラルなダークグレーで沈ませて白文字の可読性を確保する */
  background: rgba(29, 29, 29, 0.3);
}

/* 先方確認用（fv-compare.html から ?fv=light で呼ばれたときだけ効く）。
   フィルターを薄くし、そのぶん見出しに影を足して可読性を保つ。
   採用が決まったらこのブロックの値を上の既定値に移して削除する */
body.fv-light .hero__media::after {
  background: rgba(29, 29, 29, 0.12);
}

body.fv-light .hero__title {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero__ribbon {
  padding: 8px 26px;
  border-radius: 4px;
  background: var(--blue-mid);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.hero__title {
  margin: 0;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
  text-shadow: var(--text-shadow);
}

/* カードを下げて中央を空け、FV動画のドローンが隠れないようにする。
   タイトル・リボンの位置は変えない（SP側は別途 padding-top を上書き） */
.hero__cards {
  display: flex;
  gap: 18px;
  padding-top: 240px;
}

.hcard {
  width: 261px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 14px 32px;
  border-radius: 6px;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.hcard__chk {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-mid);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.hcard__title {
  font-size: 26px;
  font-weight: 900;
  color: var(--orange);
}

.hcard__body {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- 04 service intro ---------- */

.intro__title {
  margin-bottom: 40px;
}

/* ポイント帯のまとまり（Figma: Frame 3 / gap 12） */
.meritbars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.meritbar {
  display: flex;
  align-items: stretch;
  border-radius: 2px;
  background: var(--panel);
  overflow: hidden;
}

.meritbar__label {
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--sky-light);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.meritbar__text {
  flex: 1;
  padding: 20px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--blue-mid);
}

.intro__body {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding-top: 12px;
}

.intro__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.8;
}

.intro__img {
  width: 400px;
  height: 247px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---------- 04b service tabs ---------- */

.tabs {
  margin-top: 24px;
  padding-top: 18px;
}

.tabbar {
  display: flex;
}

.tabbar__btn {
  flex: 1;
  height: 54px;
  border: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  background: var(--gray-tab);
  color: var(--white);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tabbar__btn:last-child {
  border-right: 0;
}

.tabbar__btn:hover {
  background: #4c5c66;
}

.tabbar__btn[aria-selected="true"] {
  background: var(--sky);
  font-weight: 900;
  cursor: default;
}

.tabpanel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
  border: 4px solid var(--sky);
  background: var(--white);
}

.tabpanel[hidden] {
  display: none;
}

.tabpanel__title {
  font-size: 26px;
  font-weight: 900;
  color: var(--blue);
  text-align: center;
}

.tabpanel__row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  width: 100%;
}

.tabpanel__points {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point {
  padding: 14px 16px;
  border-radius: 2px;
  background: var(--panel);
  font-weight: 900;
  line-height: 1.5;
}

.point b {
  font-size: 13px;
  color: #1096d2;
  margin-right: 8px;
}

.point span {
  font-size: 19px;
  color: var(--blue);
}

.tabpanel__img {
  width: 340px;
  height: 220px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.tabpanel__note {
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

/* ---------- 05 range ---------- */

.range {
  background: var(--panel);
}

.range__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.range__lead {
  display: flex;
  gap: 40px;
  align-items: center;
}

.range__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h-sub {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  /* <h3> なので上の balance が当たるが、これは左揃えの見出し。
     行をそろえると右が大きく空くので行末まで詰める */
  text-wrap: wrap;
}

.body-text {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.8;
}

.note-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.8;
}

.range__img {
  width: 480px;
  height: 320px;
  object-fit: cover;
  flex-shrink: 0;
}

.gallery {
  padding-top: 24px;
}

.gallery__head {
  padding: 12px;
  border-radius: 6px 6px 0 0;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 18px;
  padding: 32px 26px 64px;
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  background: var(--white);
}

.gallery__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.gallery__item img {
  width: 200px;
  max-width: none;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
}

.gallery__item figcaption {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.assure {
  display: flex;
  gap: 34px;
  align-items: center;
  padding-top: 32px;
}

.assure__img {
  width: 360px;
  height: 230px;
  object-fit: cover;
  flex-shrink: 0;
}

.assure__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- 06 safety ---------- */

.safety {
  background: var(--blue-safety);
  padding: 60px 40px 40px;
  text-align: center;
}

.safety__cards {
  display: flex;
  gap: 28px;
  align-items: stretch;
  margin: 48px auto 0;
}

.scard {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  text-align: left;
}

.scard img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* 折り返してほしくない語句 */
.nobr {
  white-space: nowrap;
}

.scard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
}

.scard__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-mid);
  text-align: center;
}

.scard__body p:not(.scard__title) {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.7;
}

.badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 28px auto 0;
}

/* 月桂樹エンブレム（Figma: 344x150 / 白抜き・明朝体）
   --em で全体を等比縮小できるようにしている */
.emblem {
  --em: 1;
  position: relative;
  width: calc(344px * var(--em));
  height: calc(150px * var(--em));
  flex-shrink: 0;
}

/* 344px×3 + gap24×2 = 1080px。左右パディング80pxとスクロールバーを足すと
   ビューポート1175px未満で横に溢れるため、その手前から等比縮小する。
   （961px未満はタブレット用の --em:0.68、それ以下は縦積みで別途対応） */
@media (min-width: 961px) and (max-width: 1180px) {
  .badges {
    gap: 16px;
  }

  .emblem {
    --em: 0.8;
  }
}

/* 左右は同じSVGを使い、右だけ反転させる（Figmaも同一シェイプのミラー） */
.emblem__leaf {
  position: absolute;
  top: calc(8px * var(--em));
  width: calc(54px * var(--em));
  height: calc(127.6px * var(--em));
}

.emblem__leaf--l {
  left: calc(2px * var(--em));
}

.emblem__leaf--r {
  left: calc(288px * var(--em));
  transform: scaleX(-1);
}

.emblem__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - 8px * var(--em)));
  width: calc(260px * var(--em));
  font-family: "Noto Serif JP", serif;
  color: #fffefb;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

.emblem__text small {
  display: block;
  font-size: calc(20.9px * var(--em));
  font-weight: 500;
}

.emblem__text strong {
  display: block;
  font-size: calc(35.3px * var(--em));
  font-weight: 700;
}

.emblem--insurance .emblem__text {
  transform: translate(-50%, calc(-50% - 5px * var(--em)));
}

.emblem--insurance .emblem__text strong {
  font-size: calc(34.3px * var(--em));
}

/* 「10」だけ大きく（Figma 84.3px） */
.emblem--insurance .emblem__text em {
  font-style: normal;
  font-size: calc(84.3px * var(--em));
  line-height: 1;
}

/* ---------- callbar ---------- */

.callbar {
  padding: 40px;
  background: var(--white);
}

.callbar__card {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.callbar__tagrow {
  display: flex;
  gap: 16px;
  align-items: center;
}

.callbar__tag {
  padding: 8px 20px;
  border-radius: 2px;
  background: var(--sky);
  color: var(--yellow-text);
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
}

.callbar__note {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.callbar__btns {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.callbar__btn {
  padding: 18px 30px;
  font-size: 19px;
}


/* ---------- 08 case ---------- */

.case__tabs {
  display: flex;
  margin-top: 36px;
}

.case__tab {
  flex: 1;
  padding: 24px 0;
  border: 0;
  background: var(--gray-tab);
  color: var(--white);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.case__tab:hover {
  background: #4c5c66;
}

.case__tab[aria-selected="true"] {
  background: var(--sky);
  cursor: default;
}

.case__panel {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 48px;
  border: 4px solid var(--sky);
  background: var(--panel);
}

.case__panel[hidden] {
  display: none;
}

.case__img {
  width: 398px;
  height: 280px;
  object-fit: cover;
  flex-shrink: 0;
}

.case__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case__title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

.case__text p:not(.case__title) {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

/* ---------- 07b before / after ---------- */

.ba__wrap {
  position: relative;
  margin: 16px auto 0;
  padding-top: 14px;
  height: 474px;
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カンプ時代は1枚の写真を暗くして「洗浄前」に見せていたが、
   実写のBefore/Afterに差し替えたので加工は不要 */
.ba__before {
  clip-path: inset(0 50% 0 0);
}

.ba__divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  margin-left: -2px;
  background: var(--white);
  pointer-events: none;
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  display: grid;
  place-items: center;
}

.ba__handle img {
  width: 100%;
  height: 100%;
}

.ba__handle span {
  position: absolute;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  pointer-events: none;
}

.ba__badge {
  position: absolute;
  top: 20px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.ba__badge--before {
  left: 20px;
  background: rgba(18, 59, 82, 0.85);
}

.ba__badge--after {
  right: 20px;
  background: var(--blue-bright);
}

.ba__note {
  margin: 12px auto 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-mid);
  text-align: center;
}

/* ---------- 09 cases ---------- */
/* ---------- 08c お客様の声 ---------- */

.voice {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 32px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 59, 82, 0.12);
  overflow: hidden;
}

.voice__img {
  width: 42%;
  flex-shrink: 0;
  /* グローバルの img に height:auto が無く、HTMLのheight属性(720)が
     そのまま効いてカードが縦に伸びるため打ち消す。
     高さは align-self:stretch で本文側に合わせる */
  height: auto;
  align-self: stretch;
  object-fit: cover;
}

.voice__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 32px;
}

.voice__quote {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--blue);
  /* <br>での改行だけを効かせ、行の均等化はしない */
  text-wrap: wrap;
}

.voice__company {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.voice__subject {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray);
}

.voice__excerpt {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.85;
}

.voice__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 13px 26px;
  border: 2px solid var(--blue-mid);
  border-radius: 100px;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-mid);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.voice__more:hover {
  background: var(--blue-mid);
  color: var(--white);
}

.voice__more svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---- モーダル内 ---- */

.voice__quote--modal {
  font-size: 19px;
  line-height: 1.6;
}

.voice__meta {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--gray);
}

.modal__body .voice__quote--modal + .voice__meta {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 960px) {
  .voice {
    flex-direction: column;
  }

  .voice__img {
    width: 100%;
    height: 240px;
  }

  .voice__body {
    padding: 24px 20px 26px;
  }

  .voice__quote {
    font-size: 19px;
  }

  .voice__more {
    align-self: stretch;
    justify-content: center;
    margin-top: 6px;
  }
}

@media (max-width: 699px) {
  .voice__img {
    height: 190px;
  }

  /* 「社名がはっきり目立つようになりました」(18字)を1行に収める。
     17.5pxだと箱310pxに対して315pxでわずかに溢れ、末尾が1文字だけ
     次行に落ちるため、実機のフォント差も見込んで16.5pxまで下げる */
  .voice__quote {
    font-size: 16.5px;
  }

  .voice__excerpt {
    font-size: 14px;
  }

  .voice__quote--modal {
    font-size: 16.5px;
  }
}


.merit {
  background: var(--blue-case);
  padding: 80px 40px;
}

.merit__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.bcard {
  display: flex;
  gap: 52px;
  align-items: flex-end;
  padding: 40px 40px 52px;
  border-radius: 8px;
  background: var(--white);
}

.bcard__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bcard__badge {
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 4px;
  background: var(--sky-light);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.bcard__title {
  font-size: 29px;
  font-weight: 900;
  line-height: 1.4;
}

.bcard__text p:not(.bcard__title) {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

.bcard__img {
  width: 360px;
  height: 220px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---------- 08b comparison ---------- */

.compare__table {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
}

.compare__row {
  display: flex;
  gap: 3px;
}

.compare__row > * {
  padding: 20px 16px;
  display: flex;
  align-items: center;
}

.compare__head {
  width: 180px;
  flex-shrink: 0;
  background: var(--panel-row);
  font-size: 15px;
  font-weight: 700;
}

.compare__old,
.compare__new {
  flex: 1;
  min-width: 0;
}

.compare__old {
  background: var(--panel-alt);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-mid);
}

.compare__new {
  background: var(--sky-pale);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.compare__row--head .compare__head {
  background: var(--white);
}

.compare__row--head .compare__old {
  background: var(--gray-head);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  justify-content: center;
  text-align: center;
}

.compare__row--head .compare__new {
  background: var(--blue-bright);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  text-align: center;
}

.compare__new--strong {
  font-weight: 900;
}

.compare__new--big {
  font-size: 18px;
  font-weight: 900;
}

/* スワイプを促す指のヒント（スマホのみ表示） */
.swipe-hint {
  display: none;
}

.compare__emphasis {
  margin-top: 8px;
  padding: 18px;
  border-radius: 6px;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

/* ---------- 10 flow ---------- */

.flow__steps {
  margin-top: 30px;
  width: min(960px, 100%);
  margin-inline: auto;
  /* <ol> のブラウザ既定 padding-inline-start(40px) を打ち消す。
     PC(960px固定)では中央寄せで目立たないが、SPの全幅レイアウトで
     左だけ40px空くように見えていた */
  padding: 0;
  list-style: none;
}

.flow__step {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.flow__step:last-child {
  border-bottom: 0;
}

.flow__num {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 27px;
  font-weight: 700;
}

.flow__title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.flow__desc {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray);
}

/* ---------- 11 Q&A ---------- */

.qa {
  background: var(--sky-bg);
}

.qa .sec-title {
  color: var(--navy);
}

.qa__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.qa__item {
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
}

.qa__q {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 32px;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.qa__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
}

.qa__text {
  flex: 1;
  font-size: 19px;
  font-weight: 700;
  /* 見出し用の balance が効いて行を均等割りしてしまうので解除し、
     行末まで詰める */
  text-wrap: wrap;
}

.qa__toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--sky);
  transition: transform 0.2s ease;
}

.qa__q[aria-expanded="true"] .qa__toggle {
  transform: rotate(45deg);
}

.qa__a {
  padding: 0 32px 32px 90px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.qa__a[hidden] {
  display: none;
}

/* ---------- 12 consult ---------- */

.consult {
  background: var(--sky-cta);
  text-align: center;
  padding: 80px 40px;
}

.consult__title {
  font-size: 38px;
  font-weight: 900;
  color: var(--yellow-text);
  margin: 0;
}

.consult__lead {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}

.consult__cards {
  display: flex;
  gap: 18px;
  margin: 28px auto 0;
}

.ccard {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 18px;
  border-radius: 10px;
  background: var(--white);
}

.ccard__ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
}

.ccard p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.consult__cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.consult__btn {
  min-width: 288px;
  min-height: 64px;
  font-size: 20px;
}

.consult__tel {
  margin: 22px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.consult__tel a {
  color: inherit;
}

/* ---------- 13 form ---------- */

.form__lead {
  margin: 22px auto 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
}

.form {
  width: min(920px, 100%);
  margin: 36px auto 0;
}

.form__row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.form__label {
  width: 200px;
  flex-shrink: 0;
  padding-top: 14px;
  font-size: 16px;
  font-weight: 700;
}

.form__label span {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e2453c;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.form__field {
  flex: 1;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}

.form__field textarea {
  min-height: 130px;
  resize: vertical;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  border-color: var(--sky);
}

.form__privacy {
  margin: 28px auto 0;
  width: min(920px, 100%);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.7;
}

.form__agree {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.form__submit {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.form__submit button {
  padding: 20px 60px;
  font-size: 20px;
}

/* ---------- 14 footer ---------- */

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 44px 40px 32px;
}

.footer__cols {
  display: flex;
  gap: 80px;
}

.footer__col {
  flex: 1;
}

/* 濃紺背景に載せるので、ワードマークが白いロゴを使う */
.footer__logo {
  margin: 0 0 16px;
  line-height: 0;
}

.footer__logo img {
  width: 179px;
  height: auto;
}

.footer__text {
  font-size: 13.5px;
  font-weight: 500;
  color: #8fb4c8;
  line-height: 1.8;
}

.footer__copy {
  margin-top: 30px;
  font-size: 12px;
  font-weight: 500;
  color: #8fb4c8;
}

/* 濃紺背景なので、下線だけで判別できるようにして色は本文と揃える */
.footer__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__link:hover {
  color: var(--white);
}

/* =========================================================
   Responsive
   ========================================================= */

/* ヘッダーが1行に収まらなくなる幅。
   段組みは変えず、文字とボタンを縮めて1行を維持する */
@media (max-width: 1320px) {
  .header {
    gap: 14px;
    padding: 20px 28px;
  }

  .logo img {
    width: 164px;
  }

  .header__tagline {
    font-size: 13px;
  }

  .header__hours {
    font-size: 11px;
  }

  .header__right {
    gap: 12px;
  }

  .btn {
    padding: 11px 18px;
    font-size: 14px;
  }
}

@media (max-width: 1120px) {
  .header {
    gap: 10px;
    padding: 18px 20px;
  }

  .logo img {
    width: 148px;
  }

  .header__tagline {
    font-size: 12px;
  }

  /* 受付時間はボタン内・ドロワー・フッターにもあるため、ここで一番先に落とす */
  .header__hours {
    display: none;
  }

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

@media (max-width: 1200px) {
  .hero {
    padding-left: 40px;
  }

  .hero__cards {
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 48px 20px;
  }

  /* 26px なら最長の見出し（13文字）も1行に収まり、泣き別れが出ない */
  .sec-title {
    font-size: 26px;
  }

  /* ===== 問い合わせフォーム =====
     .form__field に幅指定が無く入力欄が194pxに潰れていたため全幅にする */
  .form__field {
    width: 100%;
  }

  .form__field input,
  .form__field select,
  .form__field textarea {
    /* iOSは16px未満だとフォーカス時に自動ズームするため16pxを死守 */
    font-size: 16px;
    padding: 14px 14px;
  }

  .form__field textarea {
    min-height: 120px;
  }

  .form__row {
    gap: 8px;
    padding: 12px 0;
  }

  .form__label {
    font-size: 15px;
  }

  .form__label span {
    margin-left: 6px;
    padding: 2px 7px;
    font-size: 11px;
  }

  .form__privacy {
    font-size: 12.5px;
  }

  .form__submit button {
    width: 100%;
    padding: 17px 20px;
    font-size: 17px;
  }

  /* ===== 比較表（スマホ）=====
     文字を小さくせずPC版の見え方を保つため、横スクロールで見せる。
     セクションの左右padding(20px)を打ち消して画面端まで使い、
     「まだ右に続く」ことが伝わるようにする */
  #compare .inner-narrow {
    margin-inline: -20px;
    width: calc(100% + 40px);
  }

  .compare__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 6px;
  }

  .compare__table {
    gap: 3px;
    margin-top: 12px;
    width: 660px;
  }

  .compare__row {
    gap: 3px;
  }

  .compare__row > * {
    padding: 14px 14px;
  }

  .compare__head {
    width: 130px;
    flex-shrink: 0;
    font-size: 14px;
  }

  .compare__old,
  .compare__new {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .compare__row--head .compare__old {
    font-size: 15px;
  }

  .compare__row--head .compare__new {
    font-size: 15px;
  }

  .compare__new--big {
    font-size: 16px;
  }

  /* スワイプを促す指のヒント。
     表の上に重ねて置き、一度でも横に動かしたら消える */
  .swipe-hint {
    display: flex;
    justify-content: center;
    margin: 10px 0 4px;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .swipe-hint.is-done {
    opacity: 0;
  }

  .swipe-hint__finger {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(18, 59, 82, 0.72);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(18, 59, 82, 0.28);
    animation: swipeFinger 1.8s ease-in-out infinite;
  }

  .swipe-hint__finger svg {
    width: 26px;
    height: 26px;
  }

  /* 指が右へ動いて戻る＝横スワイプの動作をそのまま見せる */
  @keyframes swipeFinger {
    0%,
    100% {
      transform: translateX(-18px);
    }
    50% {
      transform: translateX(18px);
    }
  }

  /* 動きを減らす設定の人には点滅だけにする */
  @media (prefers-reduced-motion: reduce) {
    .swipe-hint__finger {
      animation: none;
    }
  }

  .compare__emphasis {
    margin: 12px 20px 0;
    padding: 16px 14px;
    font-size: 15px;
  }

  /* ===== 問合せ帯のCTAを中央揃えに ===== */
  .callbar__card {
    align-items: center;
    text-align: center;
  }

  .callbar__tagrow {
    align-items: center;
  }

  .callbar__note {
    text-align: center;
  }

  /* --- スマホの文字階層 ---
     h2 26px ＞ カード内見出し 19px ＞ タブ・ラベル 16px ＞ 本文 15px ＞ 補足 13px
     PC値のままだと小見出しがh2と同格になり、全体が大きく見える */
  .tabpanel__title,
  .scard__title,
  .case__title {
    font-size: 19px;
  }

  .bcard__title {
    font-size: 19px;
  }

  .flow__title {
    font-size: 18px;
  }

  .consult__title {
    font-size: 24px;
  }

  .case__tab {
    font-size: 16px;
    padding: 12px 8px;
  }

  .gallery__head {
    font-size: 17px;
    padding: 10px;
  }

  .callbar__tag {
    font-size: 17px;
  }

  /* 番号丸・Qマークも本文とのバランスで縮める */
  .flow__num {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  .qa__mark {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .qa__text {
    font-size: 15.5px;
  }

  .meritbar__text,
  .point span {
    font-size: 16px;
  }

  .form__lead {
    font-size: 15px;
  }

  .form__agree {
    font-size: 14px;
  }

  .compare__emphasis {
    font-size: 15px;
    padding: 14px 16px;
  }

  /* --- 見出しまわりの余白リズムを統一 ---
     h2 直下は 32px（リード文がある場合は 12px → 本体まで 28px）
     h3 は本文15.5pxに対して28pxは大きすぎるので 20px に落とす */
  .h-sub {
    font-size: 20px;
    line-height: 1.5;
  }

  .intro__title {
    margin-bottom: 32px;
  }

  .sec-lead {
    margin-top: 12px;
  }

  #services .sec-lead,
  #before-after .sec-lead,
  #compare .sec-lead {
    margin-top: 12px;
  }

  .range__inner {
    gap: 32px;
  }

  .safety__cards {
    margin-top: 32px;
  }

  .badges {
    margin-top: 24px;
  }

  .merit__list {
    margin-top: 24px;
  }

  .case__tabs {
    margin-top: 28px;
  }

  .flow__steps {
    margin-top: 24px;
  }

  .qa__list {
    margin-top: 28px;
  }

  .consult__cards {
    margin-top: 24px;
  }

  .form {
    margin-top: 28px;
  }

  .tabs {
    margin-top: 20px;
  }

  /* ヘッダーは「ロゴ＋電話アイコン」だけに絞り、
     資料請求・受付時間は画面下の固定バーへ逃がす */
  .header {
    padding: 10px 14px;
  }

  /* ヘッダーは「ロゴ＋ハンバーガー」だけ。
     電話・資料請求は画面下の固定バーとドロワーへ逃がす */
  .header__hours,
  .header .btn--tel,
  .header .btn--doc {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__right {
    gap: 10px;
  }

  /* 横1列だと説明文が3行に折れるため、
     1段目=ロゴ+ハンバーガー / 2段目=説明文 の2段組みにする */
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo burger"
      "tag  tag";
    align-items: center;
    gap: 1px 10px;
    padding: 10px 14px 8px;
  }

  .header__left {
    display: contents;
  }

  .logo {
    grid-area: logo;
  }

  .logo {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .logo img {
    width: 128px;
  }

  /* ロゴのすぐ下に、ロゴの左端から始まるように置く */
  /* スクロールしたら説明文を畳んでヘッダーを最小化する */
  .header--compact .header__tagline {
    display: none;
  }

  .header__tagline {
    grid-area: tag;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    text-align: left;
  }

  .header__right {
    grid-area: burger;
  }

  /* セクション余白のスマホ値。
     PC側を ID で指定しているため、同じ強さで上書きしないと効かない */
  #service      { padding: 56px 20px 40px; }
  #services     { padding: 48px 20px 40px; }
  #range        { padding: 48px 20px; }
  .safety       { padding: 40px 20px 32px; }
  .callbar      { padding: 28px 20px; }
  #cases        { padding: 40px 20px; }
  #before-after { padding: 48px 20px 40px; }
  .merit        { padding: 48px 20px; }
  #compare      { padding: 48px 20px; }
  #flow         { padding: 48px 20px 40px; }
  #faq          { padding: 48px 20px; }
  .consult      { padding: 48px 20px; }
  #contact      { padding: 40px 20px; }
  .footer       { padding: 32px 20px 24px; }

  /* --- カード内側の余白をスマホ用に圧縮 ---
     PC値のままだと 350px 幅のカードで左右40〜48pxを取られ、
     画像も文章も潰れて「窮屈なのに間延びする」状態になるため */
  .bcard {
    padding: 20px 20px 24px;
    gap: 16px;
  }

  .tabpanel {
    padding: 20px;
    gap: 20px;
  }

  .case__panel {
    padding: 20px;
    gap: 18px;
  }

  .qa__q {
    padding: 20px 18px;
    gap: 12px;
  }

  .qa__a {
    padding: 0 18px 20px;
  }

  .scard__body {
    padding: 18px 18px 22px;
  }

  /* 画像はカード幅いっぱいに使う（中途半端な固定幅で潰さない） */
  .bcard__img,
  .case__img,
  .tabpanel__img,
  .range__img,
  .assure__img,
  .intro__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .scard img {
    height: 170px;
  }

  /* ギャラリーは2列。1列だと8枚で1700px近くになり縦に間延びする */
  /* グリッドではなく flex で2列にする（列幅を自前で計算して確実に収める） */
  .gallery__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 14px;
    padding: 20px 16px 24px;
  }

  .gallery__item {
    width: calc(50% - 8px);
    min-width: 0;
  }

  .gallery__item img {
    width: 100%;
    height: 96px;
  }

  /* 最長の「ガラスファサード・看板」(11文字)が
     360px端末でも1行に収まるサイズ */
  .gallery__item figcaption {
    font-size: 12px;
    line-height: 1.4;
  }

  /* ===== FV：ヘッダー下から画面下までを1画面（100dvh）で使う =====
     dvh はアドレスバーの伸縮に追従するので、スマホで下が切れない */
  .hero {
    min-height: calc(100dvh - var(--header-h, 102px));
    /* リボンとタイトルは上に置いたまま、カードだけを下端へ寄せる。
       中央寄せのままだとカードを下げても全体が押し下がってしまう */
    justify-content: flex-start;
    gap: 28px;
    /* 固定CTAバー(72px)ぶんの逃げは取らず、カードを画面下まで寄せる。
       重なるのはカード下の内側余白14pxまでで、本文はバーの上に出る。
       元は112px、洗浄シーンを大きく見せるため52px下げている */
    padding: 36px 16px 60px;
  }

  .hero__ribbon {
    align-self: flex-start;
    padding: 7px 16px;
    font-size: 13px;
  }

  /* 29pxだと「ドローン高圧洗浄が / 拓く、」で分断されるため26pxに。
     3行で均等に割れて、行送りも詰まりすぎない */
  .hero__title {
    font-size: 26px;
    line-height: 1.5;
    letter-spacing: 0.01em;
  }

  .hero__cards {
    gap: 12px;
    padding-top: 0;
  }

  .hero__ribbon {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* PC用の強制改行を解除し、balance に行分けを任せる
     （残したままだと3行目に「世界。」だけ落ちる） */
  .hero__title br {
    display: none;
  }

  .hero__cards {
    flex-direction: column;
    gap: 10px;
    /* 余白を全部このカード群の上に寄せて、下端に押し下げる。
       動画のドローンが通る中央〜上部を空ける */
    margin-top: auto;
    padding-top: 18px;
  }

  .hcard {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    /* SPはカードがFVの洗浄シーンに重なるため、半透明にして映像を透かす。
       文字の可読性は背景のぼかしで担保する */
    background: rgba(238, 241, 243, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .hcard__chk {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    font-size: 17px;
    border-width: 2px;
  }

  .hcard__title {
    font-size: 17px;
    width: 118px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .hcard__body {
    font-size: 12px;
    line-height: 1.5;
  }

  /* 固定CTAバーを表示し、フッターが隠れないよう余白を確保 */
  .mobilebar {
    display: flex;
  }

  body {
    padding-bottom: 80px;
  }

  /* flex子要素は min-width:auto のため、
     長い日本語で親をはみ出すことがある。全ての縦積み要素で解除する */
  .range__text,
  .assure__text,
  .intro__text,
  .bcard__text,
  .case__text,
  .tabpanel__points,
  .callbar__tagrow,
  .scard__body {
    min-width: 0;
  }

  /* POINTラベルを独立行にして「最大／120m」のような分断を防ぐ */
  .point b {
    display: block;
    margin: 0 0 4px;
  }

  /* ポイント帯は「左にラベル・右に本文」の横並び。
     ラベルは面で塗らず小さなバッジにして、行数ぶん縦に伸びるのを防ぐ */
  .meritbar {
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .meritbar__label {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
  }

  .meritbar__text {
    flex: 1;
    min-width: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .intro__body,
  .range__lead,
  .assure,
  .tabpanel__row,
  .case__panel,
  .bcard,
  .safety__cards,
  .consult__cards,
  .footer__cols {
    flex-direction: column;
  }

  /* 横並び用の80pxが縦積みでそのまま効いて間延びしていた */
  .footer__cols {
    gap: 24px;
  }

  .intro__img,
  .range__img,
  .assure__img,
  .tabpanel__img,
  .case__img,
  .bcard__img {
    width: 100%;
    height: auto;
  }

  .tabbar {
    flex-wrap: wrap;
  }

  .tabbar__btn {
    flex: 1 0 50%;
    font-size: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  }

  /* エンブレムは 344px 固定。スマホ幅では等比縮小して縦に積む */
  .badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .emblem {
    --em: 0.92;
  }

  .callbar__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .callbar__tagrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .callbar__tag {
    font-size: 18px;
  }

  .callbar__note {
    white-space: normal;
  }

  /* カードが align-items:center なので、
     ボタン列自体を伸ばさないと中のwidth:100%が効かない */
  .callbar__btns {
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
    width: 100%;
  }

  .callbar__btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 16px;
  }

  .ba__wrap {
    height: 260px;
  }

  .qa__text {
    font-size: 16px;
  }

  .qa__a {
    padding-left: 26px;
  }

  .consult__title {
    font-size: 26px;
  }

  /* 288px固定のボタンが2つ並ぶと画面幅を超えるため縦積みにする */
  .consult__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .consult__btn {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    font-size: 17px;
  }

  .form__row {
    flex-direction: column;
    gap: 8px;
  }

  .form__label {
    width: 100%;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .hcard {
    width: 100%;
  }


}

/* ---------- プライバシーポリシー モーダル ---------- */

/* リンクに見えるボタン。<a href="#"> だと履歴が汚れるので button を使う */
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.form__agree .link-btn {
  color: var(--blue);
  font-weight: 700;
}

.link-btn:hover {
  opacity: 0.75;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 45, 68, 0.55);
}

.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  /* 画面より高くならないようにして、本文だけをスクロールさせる */
  max-height: min(760px, calc(100dvh - 48px));
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(9, 45, 68, 0.35);
  transform: translateY(12px);
  transition: transform 0.22s ease;
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--blue-mid);
}

.modal__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  color: var(--navy);
  cursor: pointer;
}

.modal__close:hover {
  background: var(--panel-row);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
}

.modal__body h3 {
  margin: 26px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
}

.modal__body h3:first-of-type {
  margin-top: 22px;
}

.modal__body p {
  margin: 0;
}

/* 規約文は行を詰めて読ませたいので、全体の pretty / auto-phrase を解除する */
.modal__body p,
.modal__body li {
  text-wrap: wrap;
  word-break: normal;
  line-break: strict;
}

.modal__body ul {
  margin: 8px 0 0;
  padding-left: 1.3em;
}

.modal__body li {
  margin-top: 2px;
}

.modal__contact {
  margin-top: 10px !important;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--panel);
  font-size: 14px;
}

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

.modal__foot {
  flex-shrink: 0;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.modal__ok {
  min-width: 200px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 100px;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #1e69ab;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.modal__ok:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1e69ab;
}

@media (max-width: 960px) {
  .modal {
    padding: 16px 14px;
  }

  .modal__panel {
    max-height: calc(100dvh - 32px);
  }

  .modal__head {
    padding: 18px 18px;
  }

  .modal__title {
    font-size: 17px;
  }

  .modal__body {
    padding: 18px;
    font-size: 14px;
    line-height: 1.85;
  }

  .modal__body h3 {
    font-size: 15px;
    margin-top: 22px;
  }

  .modal__foot {
    padding: 14px 18px 18px;
  }

  .modal__ok {
    width: 100%;
  }
}

/* ---------- キーボード操作のフォーカス表示 ----------
   マウス操作では出さず、Tabキーで辿ったときだけリングを出す。
   これが無いと今どこにいるのか分からず、キーボードだけで操作できない */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 濃紺・青背景の上では青いリングが沈むので白に切り替える */
.safety a:focus-visible,
.safety button:focus-visible,
.consult a:focus-visible,
.consult button:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible,
.case__tab:focus-visible,
.tab:focus-visible {
  outline-color: var(--white);
}

/* =========================================================
   タブレット（700〜960px）
   960px以下はスマホ用に一列化しているが、iPad幅では横幅に余裕が
   あるため、指定された箇所だけ横並びに戻す。
   スマホ用ブロックより後ろに置き、同詳細度で上書きする。
   ========================================================= */

@media (min-width: 700px) and (max-width: 960px) {

  /* ---- ① 月桂樹バッジを横3つ ---- */
  .badges {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
  }

  /* 344px × 3 では収まらないので等比縮小する */
  .emblem {
    --em: 0.68;
  }

  /* ---- ② 安全カードを2枚横並び ---- */
  .safety__cards {
    flex-direction: row;
    gap: 20px;
  }

  .scard {
    flex: 1 1 0;
    min-width: 0;
  }

  /* 全幅1枚だと 765×170 の極端な横長になり人物の顔が切れる。
     2枚並べて縦横比を緩め、さらに上寄りでトリミングする */
  .scard img {
    height: 200px;
    object-position: center 32%;
  }

  /* ---- ③ POINT 01/02 を横並び ---- */
  .tabpanel__points {
    flex-direction: row;
    gap: 12px;
  }

  .tabpanel__points .point {
    flex: 1 1 0;
    min-width: 0;
  }

  /* 横並びで幅が半分になるぶん、ラベルは独立行のまま本文を少し詰める */
  .tabpanel__points .point span {
    font-size: 16px;
  }

  /* ---- ④ 問合せ帯のボタンを2つ横並び ---- */
  .callbar__btns {
    flex-direction: row;
    justify-content: center;
    align-self: center;
    width: auto;
    gap: 12px;
  }

  .callbar__btn {
    width: auto;
    min-width: 220px;
  }

  /* ---- ⑤ 比較表：スクロールしないので、その前提の作りを解除 ---- */
  /* スマホでは画面端まで表を伸ばすため負マージンを当てているが、
     タブレットでは全幅に収まるので通常の内寄せに戻す */
  #compare .inner-narrow {
    margin-inline: auto;
    width: 100%;
  }

  .compare__scroll {
    overflow-x: visible;
    padding: 0;
  }

  /* 660px固定をやめて全幅に広げる */
  .compare__table {
    width: 100%;
    margin-top: 20px;
    gap: 4px;
  }

  .compare__head {
    width: 150px;
    font-size: 14.5px;
  }

  .compare__old,
  .compare__new {
    font-size: 14.5px;
  }

  .compare__new--big {
    font-size: 18px;
  }

  /* スクロールしない以上、スワイプ誘導は誤解のもとなので出さない */
  .swipe-hint {
    display: none;
  }

  .compare__emphasis {
    margin: 20px 0 0;
    font-size: 17px;
  }

  /* ---- ⑥ 相談受付の3カードを横並び ---- */
  .consult__cards {
    flex-direction: row;
    gap: 14px;
  }

  .ccard {
    flex: 1 1 0;
    min-width: 0;
  }

  /* ---- ⑦ Before/After の縦幅を確保 ---- */
  /* スマホ用の260pxだと横幅765pxに対して平たすぎる（約2.9:1）。
     PCの474px（約2.1:1）に近い比率になるよう広げる */
  .ba__wrap {
    height: 380px;
  }

  /* ---- ⑨ FVは1画面ぴったりにしない ---- */
  /* スマホは指1本で読み進める前提で100dvhに収めているが、
     タブレットは画面が大きく、下に続きがあることが分かる方が良い */
  .hero {
    min-height: 0;
    padding: 48px 32px calc(48px + 76px);
    gap: 24px;
  }

  /* ---- ⑩ FVのカードを下げてドローンが見える余白をつくる ----
     タブレットは min-height:0（内容依存）なので margin-top:auto が効かない。
     PC同様に固定値で押し下げる。あわせて960px以下で縦積みになっていた
     カードを横3列に戻し、右側が空かないよう全幅に伸ばす */
  .hero__cards {
    flex-direction: row;
    align-self: stretch;
    gap: 12px;
    padding-top: 230px;
  }

  .hero__cards .hcard {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px 22px;
    text-align: center;
  }

  /* ---- ⑧ 本文まわりの写真は縦を抑える ---- */
  /* スマホ用の 16:10 のままだと横765pxに対して高さ478pxになり、
     写真だけで1画面が埋まる。高さを固定してトリミングで見せる */
  .intro__img,
  .range__img,
  .assure__img,
  .tabpanel__img,
  .case__img {
    width: 100%;
    height: 300px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .bcard__img {
    width: 100%;
    height: 260px;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* ---------- お問い合わせフォームの送信結果・ハニーポット ---------- */

/* ボット検出用の入力欄。display:none だと埋めないボットがいるため、
   画面外へ飛ばして「見えないが存在する」状態にする */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__msg {
  margin: 20px auto 0;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
}

.form__msg.is-ok {
  border: 1px solid #9ed7b6;
  background: #eaf7f0;
  color: #1b6b45;
}

.form__msg.is-ng {
  border: 1px solid #f0b4ae;
  background: #fdeeec;
  color: #a3271c;
}

.form__msg ul {
  margin: 8px 0 0;
  padding-left: 1.3em;
  font-weight: 500;
}

.btn-cta:disabled {
  opacity: 0.6;
  cursor: default;
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--yellow-shadow);
}

/* ---------- mail.php が返す結果ページ ---------- */

body.result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 40px 20px;
}

.result__box {
  width: min(560px, 100%);
  text-align: center;
}

.result__logo {
  display: inline-block;
  margin-bottom: 28px;
  line-height: 0;
}

.result__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
  color: var(--blue-mid);
}

.result__text {
  font-size: 15px;
  color: var(--gray);
}

.msg__list {
  display: inline-block;
  margin: 16px 0 0;
  padding: 14px 18px 14px 34px;
  border-radius: 8px;
  background: #fdeeec;
  color: #a3271c;
  font-size: 14px;
  text-align: left;
}

.result__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 54px;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 #1e69ab;
}

/* =========================================================
   サンクスページ（thanks.html）
   ========================================================= */

body.thanks {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--sky-bg);
}

.thanks__header {
  padding: 20px 24px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(18, 59, 82, 0.08);
}

.thanks__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.thanks__box {
  width: min(680px, 100%);
  padding: 48px 40px 40px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.thanks__mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--blue-bright);
  color: var(--white);
}

.thanks__mark svg {
  width: 36px;
  height: 36px;
}

.thanks__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--blue-mid);
}

.sp-br { display: none; }

.thanks__lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.thanks__lead b {
  color: var(--blue);
}

.thanks__note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--panel);
  font-size: 14.5px;
  line-height: 1.8;
  text-align: left;
}

.thanks__note b {
  color: var(--blue);
}

.thanks__caution {
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray);
}

.thanks__flow {
  margin-top: 32px;
  text-align: left;
}

.thanks__flow-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
}

.thanks__steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thanks__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--panel);
  font-size: 14.5px;
  font-weight: 700;
}

.thanks__steps span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 13px;
}

.thanks__contact {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.thanks__contact-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
}

.thanks__tel {
  margin-top: 12px;
  min-width: 260px;
  min-height: 56px;
  font-size: 17px;
}

.thanks__hours {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--gray);
}

.thanks__back {
  display: inline-block;
  margin-top: 28px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thanks__footer {
  padding: 20px;
  background: var(--navy);
  color: #8fb4c8;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 600px) {
  .sp-br { display: inline; }

  .thanks__box {
    padding: 36px 20px 32px;
  }

  .thanks__mark {
    width: 64px;
    height: 64px;
  }

  .thanks__lead {
    font-size: 15px;
  }

  .thanks__tel {
    width: 100%;
  }
}

/* =========================================================
   FV右下のフローティングバナー
   参考デザインの構成（左上の斜めフラグ／大きな主役文字／
   下部の濃色CTA帯）を、NOVENAの配色に置き換えたもの
   ========================================================= */

.fvbanner {
  /* スクロールに追従させるので fixed。FV下のセクションを読み始めた
     ところで JS が .is-hidden を付けて引っ込める。
     z-index は固定CTAバー(60)・ヘッダー(70)より下に置く */
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  width: 268px;
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 0 10px 28px rgba(9, 45, 68, 0.32);
  text-decoration: none;
  overflow: hidden;
  /* 出現時のポムポムアニメーション */
  animation: fvbannerPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s backwards;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

/* スクロールしたらJSが付与して消す。
   SPは追従せずカードの下に並べるだけなので、この挙動は効かせない */
@media (min-width: 700px) {
  .fvbanner.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.94);
    pointer-events: none;
  }
}

@keyframes fvbannerPop {
  0%   { opacity: 0; transform: scale(0.7)  translateY(20px); }
  60%  { opacity: 1; transform: scale(1.06) translateY(0); }
  80%  { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

/* 出たあとも一定間隔で軽く弾ませて視線を引く */
.fvbanner__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 16px 16px;
  text-align: center;
  animation: fvbannerBounce 2.6s ease-in-out 1.6s infinite;
}

@keyframes fvbannerBounce {
  0%, 88%, 100% { transform: translateY(0); }
  92%           { transform: translateY(-5px); }
  96%           { transform: translateY(-2px); }
}

/* 動きを減らす設定の人にはアニメーションを出さない */
@media (prefers-reduced-motion: reduce) {
  .fvbanner { animation: none; }
  .fvbanner__body { animation: none; }
}

/* 参考画像の「速報!!」にあたる帯。
   カード角をまたいで端から端まで通すため、
   幅を対角線より長く取り、はみ出しは親の overflow で切る */
.fvbanner__flag {
  position: absolute;
  top: 22px;
  left: -58px;
  width: 190px;
  padding: 5px 0;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(-45deg);
  transform-origin: center;
}

/* 黄色地なので黒文字で締める */
.fvbanner__lead {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* 主役の行。「点検視察」だけ大きくして視線を集める */
.fvbanner__main {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}

/* 強調は色ではなく文字サイズで付ける */
.fvbanner__main em {
  font-style: normal;
  font-size: 30px;
  color: var(--ink);
}

/* 黄色地にオレンジは沈むので、ここは白抜きの帯で強調する */
.fvbanner__sub {
  margin-top: 4px;
  padding: 3px 14px;
  border-radius: 100px;
  background: var(--orange);
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
}

/* 参考画像の下部帯にあたるCTA */
.fvbanner__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.fvbanner__cta b {
  color: var(--yellow);
  font-size: 16px;
}

.fvbanner__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---- タブレット：PCと同じ右下配置。幅だけ少し詰める ---- */
@media (min-width: 700px) and (max-width: 960px) {
  .fvbanner {
    right: 24px;
    /* 画面下の固定CTAバー(約80px)の上に載せる */
    bottom: 96px;
    width: 240px;
  }

  .fvbanner__main { font-size: 18px; }
  .fvbanner__main em { font-size: 27px; }
  .fvbanner__sub { font-size: 20px; }
}

/* ---- スマホ：追従させず、「安心安全」カードの下に4枚目として並べる ---- */
@media (max-width: 699px) {
  /* ---- FVの3カードを横並びに ----
     390px幅では1枚あたり約110pxしか取れないので、
     縦組み（チェック→見出し→本文）に戻して文字も詰める */
  .hero__cards {
    flex-direction: row;
    /* .hero が align-items:flex-start のため、横並びにすると
       中身なりの幅に縮んでしまう。全幅に伸ばす */
    align-self: stretch;
    gap: 4px;
  }

  .hcard {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 12px 4px 14px;
    text-align: center;
  }

  .hcard__chk {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  /* .hcard は align-items:center なので、子の <p> は width:auto = fit-content。
     WebKit だと flex:1 1 0 の親の「最終的な幅」ではなく内容ベースの幅に対して
     折り返しを計算することがあり、実機だけ3文字ごとに改行される。
     幅を100%で明示して潰れないようにする（これが実機での多行化の原因） */
  .hcard__title,
  .hcard__body {
    width: 100%;
  }

  .hcard__title {
    font-size: 14px;
    white-space: normal;
    line-height: 1.25;
  }

  .hcard__body {
    font-size: 10px;
    letter-spacing: -0.03em;
    line-height: 1.45;
    /* 行を均等化する pretty/balance を無効化し、行末まで詰めさせる */
    text-wrap: wrap;
  }

  .fvbanner {
    /* 追従はさせず、FVのすぐ下＝「安心安全」カードの続きとして置く。
       .hero の外にあるので、FV内の3枚のカードの位置には影響しない。
       static だと斜めフラグ(absolute)の基準が飛ぶため relative */
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 16px 20px 0;
    /* PC用の 55 のままだとヘッダー(50)より手前に来て、
       スクロール時にヘッダーへ重なってしまう。記事内に置くので重ねる必要はない */
    z-index: 0;
  }

  .fvbanner__body {
    padding: 18px 16px 14px;
  }

  .fvbanner__main { font-size: 19px; }
  .fvbanner__main em { font-size: 28px; }
  .fvbanner__sub { font-size: 19px; }
}
