@charset "UTF-8";
/* ============================================================
   創光ホームエンジニアリング コーポレートサイト
   方向: 誠実・技術屋（ロゴの青×濃紺×グレー／角丸ゼロ／1pxの罫線）
   本文は16px。40〜70代が読者に含まれるため小さくしない
   構成: 1.トークン 2.ベース 3.ヘッダー 4.パーツ 5.セクション 6.モーション
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  /* 支給ロゴから実測した色 */
  --navy: #003080;           /* 主役。CTAと見出しはこれ。白文字が読める濃さ */
  --navy-deep: #002460;
  --blue: #1890DC;           /* アクセント。アイコン・下線・ラベルだけに使う */
  --blue-pale: #EAF3FB;
  --steel: #B5B5BA;          /* 罫線・補助。文字には使わない（薄すぎるため） */
  --char: #414141;

  --ink: #22262B;            /* 見出し */
  --body: #3C4249;           /* 本文 */
  --muted: #66707A;          /* 補足 */
  --line: #DCE1E6;
  --white: #FFFFFF;
  --bg-alt: #F4F6F8;
  --blue-hover: #0F7EC4;    /* 青のホバー */
  --marker: #A6D6F5;        /* 見出しの蛍光マーカー */
  --on-navy: #8FC6EF;       /* 濃紺の上に置く文字・ラベル。ここに一本化する */
  --on-dark: #C3D2E2;       /* 濃い地の上の本文 */
  --on-dark-dim: #8496A9;   /* 濃い地の上の補足 */
  --ok: #0F7A4A;             /* 「無料」など安心の合図にだけ使う */

  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --container: 1120px;
  --gutter: 20px;

  /* 余白（spacing.md の数値。広げない） */
  --sec: 66px;
  --sec-pc: 98px;

  --shadow: 0 10px 30px rgba(0, 22, 60, 0.08);
  --duration: 0.6s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 100;
  --z-modal: 1000;
}

/* ---------- 2. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scroll-padding-bottom: 90px; }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 2.05;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s, padding 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0, 22, 60, 0.10); }
.site-header__inner {
  width: min(100% - 32px, 1280px); margin-inline: auto;
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: nowrap;
  transition: height 0.3s var(--ease-out);
}
.site-header.is-scrolled .site-header__inner { height: 66px; }

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; }
.logo__img { width: 168px; height: auto; flex: none; transition: width 0.3s var(--ease-out); }
.site-header.is-scrolled .logo__img { width: 146px; }
.logo__name {
  font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: 0.02em;
  padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap;
}
.logo__sub { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
/* 社名を隠す幅。閲覧者のパソコンで書体が変わると文字幅が増えるので、広めに取る。
   ロゴ画像に社名が入っているので、隠しても情報は落ちない */
@media (max-width: 1560px) { .logo__name { display: none; } }

.header__right { display: flex; align-items: center; gap: 16px; }
.global-nav ul { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.global-nav a {
  position: relative; font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; color: var(--ink);
  padding-block: 4px;
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.global-nav a:hover::after, .global-nav a:focus-visible::after { transform: scaleX(1); }

.header__tel { text-align: right; line-height: 1.25; white-space: nowrap; }
.header__tel span { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.header__tel strong { font-size: 23px; font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: var(--navy); border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. パーツ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; padding: 0 30px;
  border: 0; border-radius: 0;
  background: var(--navy); color: var(--white);
  font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0.02em;
  line-height: 1.4; cursor: pointer;
  transition: background 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s;
}
.btn:hover, .btn:focus-visible {
  background: var(--navy-deep); transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 48, 128, 0.28);
}
.btn:active { transform: translateY(0); box-shadow: none; filter: brightness(0.92); }
.ba__btns button:active, .faq__q:active { filter: brightness(0.94); }
.info dd a[href^="tel"]:active, .footer__info dd a[href^="tel"]:active,
.cta__tel:active, .header__tel a:active { opacity: 0.7; }
.btn--tel { background: var(--navy); }
.btn--tel:hover, .btn--tel:focus-visible { background: var(--navy-deep); box-shadow: 0 10px 22px rgba(0, 48, 128, 0.3); }
/* 濃紺の帯の上に置くときだけ、青にして浮かせる */
.section--navy .btn--tel { background: var(--blue); }
.section--navy .btn--tel:hover { background: var(--blue-hover); }
.btn--line {
  background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy);
}
.btn--line:hover, .btn--line:focus-visible { background: var(--blue-pale); box-shadow: inset 0 0 0 1px var(--navy); }
.btn--sm { min-height: 48px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

.tag-free {
  display: inline-block; padding: 2px 10px;
  background: var(--ok); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}

.sec-head { max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.16em;
}
.sec-head__label::before { content: ""; width: 26px; height: 1px; background: var(--blue); }
.sec-head--center .sec-head__label::after { content: ""; width: 26px; height: 1px; background: var(--blue); }
.sec-head__title {
  margin-top: 12px;
  font-size: 38px; font-weight: 700; line-height: 1.5; letter-spacing: 0.01em; color: var(--ink);
  text-wrap: balance;
}
.sec-head__note { margin-top: 18px; font-size: 16px; color: var(--muted); }

/* ラベルの型2：塗りのチップ（証拠を見せるセクションで使う） */
.sec-head__label--chip { padding: 6px 14px; background: var(--navy); color: var(--white); letter-spacing: 0.14em; }
.sec-head__label--chip::before, .sec-head__label--chip::after { display: none; }
/* ラベルの型3：縦棒（英字ラベルを使わない、人が話すセクション） */
.sec-head--bar { border-left: 3px solid var(--blue); padding-left: 22px; }

.section { padding: var(--sec) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--navy .sec-head__title { color: var(--white); }
.section--navy .sec-head__label { color: var(--on-navy); }
.section--navy .sec-head__label::before,
.section--navy .sec-head__label::after { background: var(--on-navy); }

/* ---------- 5-1. ヒーロー ----------
   白を地にして、写真は暗い膜をかけずそのまま見せる。
   濃紺で全面を覆うと第一印象が重くなるため（2026-08-23 修正） */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero__media { position: absolute; right: 0; top: 0; bottom: 0; width: 48%; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, rgba(255,255,255,0.86) 18%,
    rgba(255,255,255,0.28) 42%, rgba(255,255,255,0) 70%);
}
.hero__inner { position: relative; padding: 88px 0 76px; }
.hero__copy { max-width: 610px; }
/* 箱で囲むバッジは作り物っぽく見えるので、ただの小さな文字にする（2026-08-23） */
.hero__eyebrow {
  font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: 0.06em;
}
.hero__title {
  margin-top: 14px;
  font-size: 54px; font-weight: 700; line-height: 1.42; letter-spacing: 0.005em; color: var(--ink);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal; white-space: nowrap; padding: 0 3px;
  background: linear-gradient(transparent 72%, var(--marker) 72%, var(--marker) 96%, transparent 96%);
}
.hero__lead { margin-top: 24px; font-size: 17px; line-height: 2.05; color: var(--body); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 28px;
}
.hero__meta div { font-size: 14px; color: var(--muted); }
.hero__meta strong { display: block; font-size: 15px; font-weight: 700; color: var(--navy); }

/* ---------- 5-1b. チラシの絵を使うヒーロー ----------
   西川さんのチラシの絵をそのまま敷く。上端は平らな空にしてあるので、
   背景色（空と同じ色）とつなげば、画面幅がいくら広くても継ぎ目が出ない。
   見出しは白いぼかしで浮かせる。薄くしないよう、文字色は濃紺のまま */
.p-flyer .hero { background: #7FB4D2; }
.p-flyer .hero { min-height: 74vh; display: flex; align-items: center; }
.p-flyer .hero__media { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-flyer .hero__media picture,
.p-flyer .hero__media img {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: auto; min-height: 0; object-fit: fill;
}
.p-flyer .hero__media::after { display: none; }   /* 白いもやは使わない */
.p-flyer .hero__inner { width: 100%; padding: 74px 0 108px; }
.p-flyer .hero__copy { max-width: none; text-align: center; }

.p-flyer .hero__eyebrow {
  color: var(--navy);
  text-shadow: 0 0 14px rgba(255,255,255,.95), 0 0 26px rgba(255,255,255,.85);
}
.p-flyer .hero__title {
  margin-top: 16px;
  font-size: clamp(38px, 6.4vw, 76px);
  letter-spacing: .3em; padding-left: .3em;
  line-height: 1.4; color: var(--navy);
  /* 白いぼかし。薄くならないよう、文字そのものには色をかぶせない */
  text-shadow:
    0 0 18px rgba(255,255,255,.98),
    0 0 38px rgba(255,255,255,.92),
    0 0 68px rgba(255,255,255,.75),
    0 2px 4px rgba(255,255,255,.9);
}
.sp-br { display: none; }
.p-flyer .hero__lead {
  margin-inline: auto; max-width: 660px; color: var(--ink);
  text-shadow: 0 0 14px rgba(255,255,255,.96), 0 0 28px rgba(255,255,255,.82);
}
.p-flyer .hero__actions { justify-content: center; }
.p-flyer .hero__meta {
  justify-content: center; border-top-color: rgba(0,32,80,.22);
  max-width: 680px; margin-inline: auto;
}
.p-flyer .hero__meta div { color: #23303C; }
.p-flyer .hero__meta div,
.p-flyer .hero__meta strong { text-shadow: 0 0 12px rgba(255,255,255,.95); }

/* ---------- 5-2. 相談の入口（戸建て／集合住宅・施設） ---------- */
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.entry__item {
  position: relative; display: block; background: var(--white);
  padding: 34px 32px 30px; overflow: hidden;
  transition: background 0.28s, transform 0.28s var(--ease-out), box-shadow 0.28s;
}
.entry__item:hover, .entry__item:focus-visible {
  background: var(--navy); transform: translateY(-4px); z-index: 2;
  box-shadow: 0 16px 34px rgba(0, 22, 60, 0.24);
}
.entry__item:hover .entry__title { color: var(--white); }
.entry__item:hover .entry__text { color: var(--on-dark); }
.entry__item:hover .entry__kind { color: var(--on-navy); }
.entry__item:hover .entry__more { color: var(--white); }
.entry__item:hover .entry__more::after { background: var(--on-navy); }
.entry__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--blue); transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--ease-out);
}
.entry__item:hover::before, .entry__item:focus-visible::before { transform: scaleY(1); }
.entry__kind { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.14em; transition: color 0.28s; }
.entry__title {
  margin-top: 8px; font-size: 24px; font-weight: 700; line-height: 1.5; color: var(--ink); transition: color 0.28s;
}
.entry__text { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.95; transition: color 0.28s; }
.entry__more {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--navy); transition: color 0.28s;
}
.entry__more::after {
  content: ""; width: 22px; height: 1px; background: var(--navy);
  transition: width 0.28s var(--ease-out), background 0.28s;
}
.entry__item:hover .entry__more::after { width: 36px; }

/* ---------- 5-3. 施工事例 ---------- */
.work { display: grid; gap: 20px; align-items: start; }
/* PCだけ2カラム。見出しは右上、写真は左に通し。スマホでは縦積みのまま */
@media (min-width: 1025px) {
  .work { grid-template-columns: 1fr 380px; gap: 20px 44px; grid-template-rows: auto 1fr; }
  .work__head { grid-column: 2; grid-row: 1; }
  .work > div:nth-of-type(2) { grid-column: 1; grid-row: 1 / span 2; }
  .work__info { grid-column: 2; grid-row: 2; }
}
.work + .work { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.work__info { padding-top: 4px; }
.work__cat {
  display: inline-block; padding: 4px 12px;
  background: var(--navy); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}
.work__title { margin-top: 12px; font-size: 26px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.work__spec { border-top: 1px solid var(--line); font-size: 15px; }
.work__spec div { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.work__spec dt { flex: none; width: 84px; color: var(--muted); font-size: 14px; }
.work__spec dd { margin: 0; color: var(--ink); font-weight: 500; }
.work__note { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.9; }

/* ビフォーアフター比較（見せ場。ドラッグできない人のためにボタンとキーボードでも動く） */
.ba__frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--line);
}
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba__clip img { width: auto; height: 100%; max-width: none; }
.ba__tag {
  position: absolute; top: 14px; z-index: 3;
  padding: 5px 14px; font-size: 13px; font-weight: 700; color: var(--white);
  background: rgba(0, 22, 60, 0.82);
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; background: rgba(24, 144, 220, 0.92); }
.ba__bar {
  position: absolute; top: 0; bottom: 0; z-index: 4; width: 3px; margin-left: -1.5px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(0, 22, 60, 0.25); pointer-events: none;
}
.ba__bar::after {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 46px; height: 46px; background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 22, 60, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23003080' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 10l-6 6 6 6M19 10l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 26px; background-position: center; background-repeat: no-repeat;
}
.ba__range {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%;
  margin: 0; padding: 0; background: transparent; border: 0;
  -webkit-appearance: none; appearance: none; cursor: ew-resize;
  touch-action: pan-y;   /* 上下スクロールは指に返す。左右だけスライダーが受け取る */
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; background: transparent; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 46px; height: 999px; background: transparent; border: 0; cursor: ew-resize; }
.ba__range:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ba__btns { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ba__btns button {
  padding: 9px 16px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: 0; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ba__btns button:hover, .ba__btns button:focus-visible { background: var(--blue-pale); border-color: var(--blue); }
.ba__btns button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ba__hint { margin-top: 8px; font-size: 13px; color: var(--muted); text-wrap: balance; }

/* 施工中→完成の2枚組（比較ではないので並べ方を変える） */
.pair { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.pair figure { margin: 0; }
.pair img { width: 100%; border: 2px solid var(--line); }
.pair figcaption {
  margin-top: 8px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.pair figcaption b { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
/* 写真の大小だけに「施工中→完成」の関係を預けない */
.pair figure:first-child::after { display: none; }
.pair figure:last-child figcaption b { color: var(--navy); }
.pair figure:last-child img { border-color: var(--navy); }

/* 事例C：工程が順番にそろっている案件は、流れで見せる */
.work__hero { margin: 0; }
.work__hero img { width: 100%; border: 2px solid var(--navy); }
.work__hero figcaption {
  margin-top: 10px; font-size: 14px; color: var(--muted);
  display: flex; align-items: baseline; gap: 10px;
}
.work__hero figcaption b { color: var(--navy); font-size: 12px; letter-spacing: 0.08em; flex: none; }

.steps__label {
  margin-top: 34px; font-size: 12px; font-weight: 700;
  color: var(--blue); letter-spacing: 0.16em;
}
.wsteps {
  margin: 14px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  counter-reset: w;
}
.wsteps li { position: relative; }
.wsteps img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); }
.wsteps b { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.wsteps span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.8; }
/* 工程どうしを矢印でつなぐ */
.wsteps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28%; right: -13px; z-index: 2;
  width: 0; height: 0;
  border-left: 8px solid var(--blue);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

.wsub { margin-top: 26px; }
.wsub img { max-width: 760px; }
.wsub figure { margin: 0; }
.wsub img { width: 100%; border: 1px solid var(--line); }
.wsub figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ---------- 5-4. 代表あいさつ ---------- */
.owner { display: grid; grid-template-columns: 340px 1fr; gap: 52px; align-items: center; }
.owner__photo { position: relative; }
.owner__photo img { width: 100%; border: 1px solid var(--line); }
/* 青いブロックの飾りは、写真の外に半端に飛び出して残骸のように見えたのでやめた */
.owner__title { font-size: 30px; font-weight: 700; line-height: 1.55; color: var(--ink); text-wrap: balance; }
.owner__text { margin-top: 22px; font-size: 16px; line-height: 2.1; }
.owner__sign {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.owner__sign strong { font-size: 21px; font-weight: 700; color: var(--ink); margin-left: 10px; }
.owner__profile { margin-top: 22px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.owner__profile div { background: var(--white); display: flex; gap: 16px; padding: 11px 16px; font-size: 14px; }
.owner__profile dt { flex: none; width: 92px; color: var(--muted); }
.owner__profile dd { margin: 0; color: var(--ink); }

/* ---------- 5-5. 選ばれる理由 ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; background: var(--line); }
.reason { background: var(--white); padding: 34px 30px 32px; }
.reason__no {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.16em;
}
.reason__icon { width: 52px; height: 52px; margin: 14px 0 12px; color: var(--navy); }
.reason__title { font-size: 20px; font-weight: 700; line-height: 1.55; color: var(--ink); text-wrap: balance; }
.reason__text { margin-top: 12px; font-size: 15px; line-height: 1.95; color: var(--muted); }

/* ---------- 5-6. できること ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; background: var(--line); }
.service {
  position: relative; background: var(--white); padding: 28px 26px 30px;
  transition: background 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.service:hover, .service:focus-within {
  background: var(--navy); transform: translateY(-4px); z-index: 2;
  box-shadow: 0 14px 30px rgba(0, 22, 60, 0.22);
}
.service:hover::after, .service:focus-within::after { transform: scaleX(1); }
.service:hover .service__icon { color: var(--on-navy); }
.service:hover .service__title { color: var(--white); }
.service:hover .service__text { color: var(--on-dark); }
.service__icon { width: 46px; height: 46px; color: var(--blue); transition: color 0.25s; }
.service__title { margin-top: 12px; font-size: 19px; font-weight: 700; color: var(--ink); transition: color 0.25s; }
.service__text { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.9; transition: color 0.25s; }

/* 現地調査で見る場所の図解 */
.diagram { margin-top: 36px; display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: center; }
.diagram svg { width: 100%; height: auto; border: 1px solid var(--line); background: var(--white); }
.diagram__list { display: grid; gap: 10px; }
.diagram__list li { display: flex; gap: 12px; font-size: 15px; align-items: baseline; }
.diagram__list b {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-size: 12px; font-weight: 700;
}

/* ---------- 5-6b. 劣化のサイン（ギャラリー） ---------- */
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.signs figure { margin: 0; }
.signs img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), filter 0.4s;
}
.signs figure:hover img { transform: scale(1.03); filter: saturate(1.15); }
.signs figcaption { margin-top: 12px; }
.signs b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.signs span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.85; }
.signs__note {
  margin-top: 26px; padding: 18px 22px; background: var(--white);
  border-left: 3px solid var(--blue); font-size: 15px; line-height: 1.95;
}

/* ---------- 5-7. 流れ ---------- */
.flow { margin-top: 36px; border-top: 1px solid var(--line); }
.flow__item {
  display: grid; grid-template-columns: 116px 1fr 1fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.flow__no { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.14em; }
.flow__no b { display: block; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.flow__title { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.flow__free { margin-top: 6px; line-height: 1; }
.flow__text { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.9; }
.flow__fix {
  background: var(--bg-alt); padding: 16px 18px; font-size: 14px; line-height: 1.9;
  border-left: 3px solid var(--blue);
}
.flow__fix b { display: block; font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 4px; }
.flow__after { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }

.flow__care { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.flow__care li {
  position: relative; padding-left: 21px; font-size: 15px; line-height: 1.9;
}
.flow__care li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 9px; height: 9px; background: var(--blue);
}
.flow__care b { display: block; color: var(--ink); font-weight: 700; }

/* ---------- 5-8. よくある質問 ---------- */
.faq { max-width: 860px; margin: 36px auto 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; gap: 14px; align-items: flex-start; width: 100%;
  padding: 20px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.65; color: var(--ink);
  transition: color 0.2s;
}
.faq__q:hover { color: var(--navy); }
.faq__q::before {
  content: "Q"; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-size: 14px;
}
.faq__q::after {
  content: ""; flex: none; margin-left: auto; width: 14px; height: 14px; align-self: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003080' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M4 9l8 8 8-8'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq__q[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease-out);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  display: flex; gap: 14px; padding: 0 0 22px 0; font-size: 15px; line-height: 2; color: var(--muted);
}
.faq__a p::before {
  content: "A"; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--blue-pale); color: var(--navy); font-size: 14px; font-weight: 700;
}

/* ---------- 5-8b. 途中の電話導線（帯） ---------- */
.midcta { background: var(--bg-alt); border-block: 1px solid var(--line); }
.midcta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.midcta__text { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.75; }
.midcta__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.midcta__meta li {
  font-size: 13px; font-weight: 500; color: var(--navy);
  padding: 4px 11px; background: var(--white); border: 1px solid var(--line);
}
.sp-only { display: none; }

/* ---------- 5-9. 対応エリア・会社情報 ---------- */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.area__lead { font-size: 16px; line-height: 2.05; }
.area__pins { margin-top: 22px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area__pin { background: var(--white); display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.area__pin b { flex: none; font-size: 15px; font-weight: 700; color: var(--navy); width: 108px; }
.area__pin span { font-size: 14px; color: var(--muted); }
.area__photo { margin-top: 22px; }
.area__photo img { width: 100%; border: 1px solid var(--line); }
.area__photo figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.info { font-size: 15px; border-top: 1px solid var(--line); }
.info div { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info dt { flex: none; width: 92px; color: var(--muted); font-size: 14px; }
.info dd { margin: 0; }

/* ---------- 5-10. お問い合わせ ---------- */
.cta { text-align: center; }
.cta__title { font-size: 34px; font-weight: 700; line-height: 1.5; color: var(--white); text-wrap: balance; }
.cta__text { margin-top: 16px; font-size: 16px; line-height: 2; color: var(--on-navy); }
.cta__panel {
  margin: 32px auto 0; max-width: 560px; background: var(--white); padding: 34px 32px 30px;
}
.cta__label { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.14em; }
.cta__tel {
  display: block; margin-top: 6px; font-size: 40px; font-weight: 700; color: var(--navy);
  letter-spacing: 0.01em; line-height: 1.3;
}
.cta__hours { margin-top: 6px; font-size: 14px; color: var(--muted); }
.cta__panel .btn { margin-top: 18px; width: 100%; }
.cta__sub { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.9; }

/* ---------- 5-11. フッター ---------- */
.site-footer { background: #0B1A2E; color: var(--on-dark); padding: 48px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; }
.footer__logo { display: flex; align-items: center; gap: 14px; }
.footer__logo svg { width: 58px; height: auto; flex: none; }
.footer__logo b { font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.4; }
.footer__logo span { display: block; font-size: 12px; font-weight: 400; color: var(--on-dark-dim); }
.footer__info { margin-top: 20px; font-size: 14px; line-height: 1.95; }
.footer__info div { display: flex; gap: 14px; padding: 3px 0; }
.footer__info dt { flex: none; width: 76px; color: var(--on-dark-dim); }
.footer__info dd { margin: 0; color: var(--on-dark); }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer__nav a { font-size: 14px; line-height: 1.5; transition: color 0.2s; }
.footer__nav a:hover { color: var(--white); }
.footer__bar { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__bar .container { padding: 16px 0; font-size: 12px; color: var(--on-dark-dim); text-align: center; }

/* スマホで常に出る導線 */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; flex-direction: column; gap: 6px;
  padding: 7px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transform: translateY(105%);
  transition: transform 0.32s var(--ease-out);
}
.sticky-cta.is-shown { transform: none; }
html.is-motion-off .sticky-cta { transform: none; }
.sticky-cta { display: none; }
.sticky-cta .btn { min-height: 54px; font-size: 15px; padding: 0 10px; }
.sticky-cta__note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.sticky-cta__note b { color: var(--ok); font-weight: 700; }

/* ---------- レスポンシブ ---------- */
@media (min-width: 769px) {
  .section { padding: var(--sec-pc) 0; }
  .section--band { padding: 44px 0; }   /* 帯は前後より薄くして「差し込み」に見せる */
}

@media (max-width: 1200px) {
  .global-nav {
    position: fixed; inset: 0; z-index: 99;
    background: var(--navy); padding: 96px 24px 40px;
    transform: translateX(100%); transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
  }
  .global-nav.is-open { transform: none; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .global-nav a { display: block; padding: 18px 4px; font-size: 17px; color: var(--white); }
  .global-nav a::after { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 100; }
  .header__tel { display: none; }
  .header__right .btn { display: none; }

  .hero__title { font-size: 42px; }
  .work { grid-template-columns: 1fr; gap: 28px; }
  .owner { grid-template-columns: 260px 1fr; gap: 34px; }
  .reasons, .services { grid-template-columns: repeat(2, 1fr); }
  .diagram, .area { grid-template-columns: 1fr; gap: 24px; }
  .pair { grid-template-columns: 260px 1fr; gap: 14px; }
  .flow__item { grid-template-columns: 96px 1fr; }
  .flow__fix { grid-column: 2; }
  .signs { grid-template-columns: repeat(2, 1fr); }
  .wsteps { grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
  .wsteps li:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  /* ===== スマホ品質の追い込み（2026-08-23）=====
     指で押せる大きさ44px以上・ラベルは13px以上・写真は見て分かる大きさ */

  /* 押せるものは高さ44px以上を確保する */
  .ba__btns button { min-height: 46px; }
  .cta__tel { min-height: 52px; display: flex; align-items: center; justify-content: center; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .footer__nav a {
    display: flex; align-items: center; min-height: 48px;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  /* 小さすぎるラベルを底上げする（40〜70代が読む） */
  .sec-head__label, .entry__kind, .work__cat, .reason__no, .tag-free, .ba__tag,
  .flow__no, .diagram__list b { font-size: 13px; }
  .ba__tag { padding: 5px 12px; }

  /* 会社情報・対応エリアは、項目名を上に置いて窮屈な折り返しをなくす */
  .area__pin { display: block; padding: 14px 16px; }
  .area__pin b { width: auto; display: block; margin-bottom: 2px; }
  .info div, .footer__info div { display: block; padding: 12px 0; }
  .info dt, .footer__info dt { width: auto; margin-bottom: 2px; }
  .info dd, .footer__info dd { margin: 0; }
  .footer__info div { padding: 6px 0; line-height: 1.7; }
  .footer__nav a:last-child, .footer__nav a:nth-last-child(2) { border-bottom: 0; }

  /* 事例B：縦長の「施工中」が大きく見えて主従が逆転するため、小さく添える */
  .pair figure:first-child img { max-width: 58%; margin-inline: 0; }
  /* スマホは縦に積むので、下へ続くことを矢印で示す */
  .pair figure:first-child::after {
    content: "↓ このあと"; display: block; margin-top: 10px;
    font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.04em;
  }
  .pair figure:last-child img { border-width: 2px; }

  /* 劣化のサインは「見分ける」ための写真。2列168pxでは判別できないので1列に */
  .wsteps { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .wsteps li::after { display: none; }
  .wsteps b { font-size: 14px; }
  .wsteps span { font-size: 12.5px; }
  .wsub { grid-template-columns: 1fr; gap: 20px; }
  .steps__label { margin-top: 28px; }
  /* 他社素材のイメージ写真なので、自社の施工写真より目立たせない */
  .signs { grid-template-columns: 1fr; gap: 18px; }
  .signs figure { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start; }
  .signs img { aspect-ratio: 1 / 1; }
  .signs figcaption { margin-top: 0; }
  .signs b { font-size: 17px; }
  .signs span { font-size: 15px; }

  /* 下の固定バーぶんは、この下でまとめて確保する */
  .site-header__inner { height: 62px; }
  .site-header.is-scrolled .site-header__inner { height: 58px; }
  .logo__img { width: 132px; }
  .site-header.is-scrolled .logo__img { width: 124px; }
  .logo__name { display: none; }

  /* PCと同じく、写真を一面に敷いて見出しを上に乗せる。
     暗い膜ではなく白いもやをかけるので、明るさは保ったまま */
  .hero { display: block; }
  /* スマホは画面が縦長。画像をそのまま幅いっぱいに置くと下に小さく貼り付くので、
     下半分をしっかり埋める高さを与えて、横をトリミングする */
  .p-flyer .hero { min-height: 0; display: block; }
  .p-flyer .hero__media picture,
  .p-flyer .hero__media img {
    height: 34vh; min-height: 250px; object-fit: cover; object-position: 50% 100%;
    /* 上端をぼかして背景の空色に溶かす（切り取った位置の継ぎ目を出さない） */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  }
  .p-flyer .hero__inner { padding: 26px 0 calc(34vh + 16px); }
  .p-flyer .hero__title { letter-spacing: .22em; padding-left: .22em; }
  .sp-br { display: none; }
.p-flyer .hero__lead { font-size: 15px; }
  .p-flyer .hero__meta { margin-top: 16px; padding-top: 12px; display: flex; gap: 4px 16px; }
  .p-flyer .hero__meta div { font-size: 12px; }
  .p-flyer .hero__meta strong { font-size: 13px; }
  .p-flyer .hero__actions { gap: 8px; margin-top: 20px; }
  .p-flyer .hero__actions .btn { min-height: 52px; }
  .sp-br { display: inline; }
  .hero__media { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero__media img { object-position: 50% 50%; }
  .hero__media::after {
    /* 全体を薄くして、文字の背後にも写真が見えるようにする。
       濃くすると見どころ（空と家並み）が隠れ、路面だけが見える状態になる */
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.80) 0%,
      rgba(255, 255, 255, 0.76) 50%,
      rgba(255, 255, 255, 0.66) 78%,
      rgba(255, 255, 255, 0.58) 100%);
  }
  /* 写真の上に乗るので、薄いグレーの文字は濃くして読めるようにする */
  .hero__lead { color: var(--ink); }
  .hero__meta div { color: #333B44; }
  .hero__meta { border-top-color: rgba(0, 32, 80, 0.22); }
  /* 下に写真が見える余白をとる。文字の下で写真がひらける */
  .hero__inner { padding: 30px 0 150px; }
  .hero__lead { margin-top: 18px; }
  .hero__actions { margin-top: 24px; gap: 10px; }
  .hero__meta { margin-top: 20px; padding-top: 16px; }
  .hero__actions .btn { min-height: 56px; font-size: 16px; }
  .hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .hero__meta div:first-child { grid-column: 1 / -1; }

  /* 固定バー：主役は電話。事例は補助に落として、目的をぼやけさせない */
  .sticky-cta {
    display: flex; gap: 8px;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .sticky-cta .btn { min-height: 52px; }
  .sticky-cta .btn--tel { flex: 1.9; font-size: 16px; }
  .sticky-cta .btn:not(.btn--tel) {
    flex: 1; background: var(--white); color: var(--navy);
    box-shadow: inset 0 0 0 1px var(--navy); font-size: 14px;
  }

  /* 押せる範囲をさらに広げる（電話獲得が目的なので電話はいちばん大きく） */
  .ba__btns { gap: 8px; }
  .ba__btns button { min-height: 48px; }

  /* 判断に関わるラベルは14pxまで上げる（受付・無料・施工前後） */
  .tag-free, .ba__tag, .hero__meta div, .hero__meta strong { font-size: 14px; }

  /* 会社概要とフッターの電話番号も、指で押せる高さにする */
  .info dd a[href^="tel"], .footer__info dd a[href^="tel"] {
    display: inline-flex; align-items: center; min-height: 44px;
    font-size: 18px; font-weight: 700; color: var(--navy);
  }
  .footer__info dd a[href^="tel"] { color: var(--on-navy); }
  .signs figcaption b, .pair figcaption b { font-weight: 700; }

  /* ページ末尾が固定バーに隠れないよう、バーの高さぶん下を空ける */
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hero__title { font-size: 29px; line-height: 1.4; }
  .hero__lead { font-size: 15px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }


  .sec-head__title { font-size: 27px; }
  .sec-head__note { font-size: 15px; }

  .entry { grid-template-columns: 1fr; }
  .entry__item { padding: 26px 22px 24px; }
  .entry__title { font-size: 20px; }

  .work + .work { margin-top: 40px; padding-top: 40px; }
  .work__title { font-size: 21px; }
  .ba__bar::after { width: 38px; height: 38px; background-size: 22px; }
  .ba__btns { gap: 6px; }
  .ba__btns button { padding: 9px 10px; font-size: 12px; flex: 1; }

  .reasons, .services { grid-template-columns: 1fr; }
  .owner { grid-template-columns: 1fr; gap: 26px; }
  .owner__photo { max-width: 260px; }
  .owner__title { font-size: 22px; }
  .owner__profile div { display: block; padding: 12px 16px; }
  .owner__profile dt { width: auto; margin-bottom: 2px; }

  .flow__item { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .flow__no { display: flex; align-items: baseline; gap: 10px; }
  .flow__no b { font-size: 24px; }
  .flow__fix { grid-column: 1; }
  .flow__title { font-size: 18px; }

  .pair { grid-template-columns: 1fr; gap: 18px; }
  .flow__care { grid-template-columns: 1fr; gap: 18px; }
  /* 元写真より大きく引き伸ばすとぼやけるので、上限を素材の解像度に合わせる */

  .midcta__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .midcta__text { font-size: 16px; }
  .midcta .btn { width: 100%; }
  .sp-only { display: inline; }
  .faq__q { font-size: 16px; }
  .cta__title { font-size: 24px; }
  .cta__panel { padding: 26px 20px 24px; }
  .cta__tel { font-size: 31px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .sticky-cta { display: flex; }
}

/* ---------- 6. モーション ---------- */
.js-reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.08s; }
.js-reveal[data-delay="2"] { transition-delay: 0.16s; }
.js-reveal[data-delay="3"] { transition-delay: 0.24s; }

/* モーション停止(SKILL.mdのポリシー実装。削除禁止) */
.motion-stop {
  display: none;
  position: fixed; right: 14px; bottom: 88px; z-index: var(--z-modal);
  padding: 10px 14px; font-family: inherit; font-size: 12px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .motion-stop { display: block; } }
html.is-motion-off .js-reveal,
html.is-motion-off *[class] {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }
