/* =========================================================
   日髙装飾 ホームページ（本気版）
   ・目的は「電話・お問い合わせを増やすこと」
   ・スマホ最優先（お客様の多くはスマホで探すため）
   ========================================================= */

:root {
  --navy: #1f4e79; /* ロゴに合わせたメインカラー */
  --navy-dark: #16395a;
  --brass: #b3813c; /* 職人の道具・真鍮をイメージしたアクセント */
  --ink: #2a2724;
  --ink-soft: #6a635b;
  --paper: #ffffff;
  --paper-tint: #f6f3ee; /* セクションを区切るうすい色 */
  --line: #e2ddd4;

  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 紺の面に使う下地。
     単色のベタ塗りは光の情報がゼロで平坦に見えるため、
     斜めのごく緩いグラデーションで奥行きを持たせている */
  --navy-surface: linear-gradient(163deg, #24597f 0%, #1f4e79 45%, #17395c 100%);
  --navy-surface-deep: linear-gradient(
    163deg,
    #1a4168 0%,
    #12314c 55%,
    #0d2540 100%
  );
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  /* スマホの固定バー（実測約71px）に隠れないよう、余裕をみて下に余白を確保 */
  padding-bottom: 80px;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

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

.section {
  padding: 72px 0;
}
.section--tint {
  background: var(--paper-tint);
}

/* --- 見出しまわり --- */
.head {
  text-align: center;
  margin-bottom: 40px;
}
.label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.label--light {
  color: #dcb87a;
}
.heading {
  font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.heading--light {
  color: var(--paper);
}
.head__lead {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}
.head__lead--light {
  color: rgba(255, 255, 255, 0.85);
}
.note {
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-soft);
  text-align: center;
}
.note--left {
  text-align: left;
  margin-top: 16px;
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: 0.3s var(--ease);
  border: 2px solid transparent;
  text-align: center;
}
/* 電話ボタンは一番目立たせる。ここが成果に直結する */
.btn--call {
  background: var(--brass);
  color: #fff;
  padding: 12px 32px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.btn--call:hover {
  background: #9d7034;
  transform: translateY(-2px);
}
.btn__sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.95;
}
.btn__main {
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
/* 見積り依頼。白ベタ＋紺文字で、上のバッジと同じ配色に揃えている */
.btn--quote {
  background: rgba(255, 255, 255, 0.93);
  color: var(--navy);
}
.btn--quote:hover {
  background: #fff;
  transform: translateY(-2px);
}
.btn--light {
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  width: 100%;
}
.btn--light:hover {
  background: var(--paper-tint);
}
.btn--submit {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  width: 100%;
  padding: 17px;
  cursor: pointer;
  font-family: inherit;
}
.btn--submit:hover {
  background: var(--navy-dark);
}
/* LINE相談ボタン。#06C755 はLINEのブランドカラー */
.btn--line {
  background: #06c755;
  color: #fff;
  font-size: 15px;
  width: 100%;
}
.btn--line:hover {
  background: #05a948;
}

/* hidden 属性を付けた要素は必ず隠す。
   .section 側の指定に負けないよう !important を付けている */
[hidden] {
  display: none !important;
}

/* --- スクロールで現れる演出 ---
   .js が付いているとき（JSが動く環境）だけ隠す。
   JSが無効・失敗しても中身が読めるようにするための書き方 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   ヘッダー
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 16px;
}
.header__logo {
  margin-right: auto;
}
.header__logo img {
  height: 30px;
  width: auto;
  /* ヒーローの上では白抜きにして見えるようにする */
  filter: brightness(0) invert(1);
  transition: filter 0.35s var(--ease);
}
.header.is-scrolled .header__logo img {
  filter: none;
}

.nav {
  position: fixed;
  inset: 64px 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.nav.is-open {
  display: block;
}
.nav__list a {
  display: block;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.header__tel {
  display: none;
}

.hamburger {
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  transition: 0.3s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.header.is-scrolled .hamburger span {
  background: var(--navy);
  box-shadow: none;
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88svh;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
/* --- 背景写真の切り替え ---
   3枚を重ねて置き、CSSだけでゆっくり入れ替える（JavaScriptは使わない）。
   1枚あたり7秒 × 3枚 = 21秒で一巡する。
   写真の枚数を変えるときは、この 21s と下の nth-child の遅延（7s刻み）を
   セットで調整すること */
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* 明るさの増減は linear にする。
     ease だと消える側と現れる側の速さが噛み合わず、
     入れ替わる一瞬だけ背景が沈んで見えるため */
  animation: heroFade 21s linear infinite, heroZoom 21s var(--ease) infinite;
}
.hero__media img:nth-child(1) {
  animation-delay: 0s, 0s;
}
.hero__media img:nth-child(2) {
  animation-delay: 7s, 7s;
}
.hero__media img:nth-child(3) {
  animation-delay: 14s, 14s;
}

/* 表示 → 保持 → 消える、を1周期のうちで行う。
   次の写真が現れ始めるタイミングと重なるので、境目が途切れずに繋がる */
@keyframes heroFade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  /* 3枚なので 100 ÷ 3 = 33.333%。
     ここを丸めると、消え始めと現れ始めがずれて隙間ができる */
  33.333% {
    opacity: 1;
  }
  38.333% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* 映っている間だけ、ごくゆっくり引いていく（動きすぎると内容が頭に入らない） */
@keyframes heroZoom {
  0% {
    transform: scale(1.07);
  }
  38% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
.hero__veil {
  position: absolute;
  inset: 0;
  /* 背景写真を明るいものに差し替えたのに合わせて、以前より薄くしている。
     ただし白文字が読めなくなると本末転倒なので、
     コントラスト比 4.5:1（WCAG AA）を下回らない範囲に留めること */
  background: linear-gradient(
      to top,
      rgba(20, 42, 68, 0.72) 0%,
      rgba(20, 42, 68, 0.42) 50%,
      rgba(20, 42, 68, 0.22) 100%
    ),
    linear-gradient(to right, rgba(20, 42, 68, 0.3), transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 96px;
  padding-bottom: 56px;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  /* 背景を薄くしたぶん、文字側で輪郭を作る。
     近い影で縁取り、遠い影で背景から浮かせる二段構え */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 0, 0, 0.5);
  animation: rise 1s var(--ease) both;
}
.hero__title {
  font-family: "Zen Old Mincho", serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero__title span {
  display: block;
  animation: rise 1s var(--ease) both;
}
.hero__title span:nth-child(2) {
  animation-delay: 0.14s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero__sub {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 22px;
  /* 薄くすると背景に負けるので、透過をやめて影で輪郭を出す */
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 0, 0, 0.5);
  animation: rise 1s 0.28s var(--ease) both;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px; /* 下線が隣とつながって見えないよう横を広めに */
  margin-bottom: 28px;
  animation: rise 1s 0.4s var(--ease) both;
}
/* チラシの帯のように、ベタ塗り＋白抜きの太字で見せる。
   写真の上に置いても埋もれず、電話ボタンのすぐ上で訴求できる。
   900（Black）は Zen Kaku Gothic New に元から入っているウェイトなので、
   フォントを増やさずに太くできる */
/* ここは「読むだけの情報」なので、背景で囲まない。
   白いカードの形は、押せるボタンだけに使う（見た目で役割を分ける）。
   下線をアクセントにして、写真の上でも埋もれないようにしている */
.hero__badges li {
  font-weight: 900;
  font-size: 13px;
  padding: 0 2px 6px;
  letter-spacing: 0.01em; /* 極太は字間を詰めたほうが強く見える */
  line-height: 1.4;
  color: #fff;
  border-bottom: 2px solid var(--brass);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
/* 下のボタン3つをまとめて指す見出し。
   情報（下線）からボタンへ視線をつなぐ役割 */
.hero__cta-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  animation: rise 1s 0.46s var(--ease) both;
}

/* --- ヒーローの3つのボタン ---
   電話・LINE・見積りを同じ形（小さい文字＋大きい文字の2段）に揃え、
   色だけで役割を分ける。
   スマホでは電話を横いっぱいに置き、残り2つを下に並べる */
.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 340px;
  animation: rise 1s 0.5s var(--ease) both;
}
.hero__actions .btn--call {
  grid-column: 1 / -1; /* 電話は最優先なので1行使う */
}
/* 3つの見た目を揃えるための共通指定。
   個別の .btn--call などより後に効かせたいので、この書き方にしている。
   背景は3つとも白で統一し、役割は「文字の色」だけで分ける */
.hero__actions .btn {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.hero__actions .btn:hover {
  background: #fff;
  transform: translateY(-2px);
}
/* 文字色は、白地の上で読める濃さ（コントラスト比4.5:1以上）に調整したもの。
   LINEの緑 #06C755 をそのまま文字に使うと 2.26:1 しかなく読めないため、
   ここでは濃度を上げた緑を使っている */
.hero__actions .btn--call {
  color: var(--navy);
}
.hero__actions .btn--line {
  color: #06803a;
}
.hero__actions .btn--quote {
  color: #8a6229;
}
/* 白地では薄めると読みづらくなるので、小さい方の文字は透過を戻す */
.hero__actions .btn__sub {
  opacity: 1;
}
/* 押せる場所だとひと目で分かるよう、中の文字を太く大きくする */
.hero__actions .btn__main {
  font-weight: 900;
}
.hero__actions .btn__sub {
  font-size: 12px;
  font-weight: 700;
}
/* 電話番号だけは大きいまま。他の2つは幅に収まるよう少し小さく */
.hero__actions .btn--line .btn__main,
.hero__actions .btn--quote .btn__main {
  font-size: 18px;
}

/* =========================================================
   実績の数字
   ========================================================= */
.stats {
  position: relative;
  background: var(--navy-surface);
  padding: 30px 0;
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 12px;
}
.stat {
  text-align: center;
  color: #fff;
}
.stat__num {
  display: block;
  font-family: "Zen Old Mincho", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #f0d9ae;
  letter-spacing: 0.02em;
}
.stat__num small {
  font-size: 15px;
}
.stat__label {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.9;
}

/* =========================================================
   施工事例（Before / After）
   ========================================================= */
.works__grid {
  display: grid;
  gap: 48px;
}
/* 画像を重ねて切り替えるための土台 */
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-tint);
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.ba__img.is-shown {
  opacity: 1;
}
/* 切り替えボタン */
.ba__switch {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.ba__switch button {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.25s var(--ease);
}
.ba__switch button.is-active {
  background: var(--navy);
  color: #fff;
}
.work__body {
  padding-top: 20px;
}
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.work__tags li {
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 11px;
}
.work__title {
  font-family: "Zen Old Mincho", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.work__text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.95;
}
/* 写真が仮のあいだだけ表示する注記。実写に差し替えたら HTML ごと削除する */
.work__imgnote {
  margin-top: 12px;
  padding: 6px 10px;
  border-left: 3px solid var(--brass, #b3813c);
  background: rgba(179, 129, 60, 0.07);
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.works__note {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
}

/* =========================================================
   選ばれる理由
   ========================================================= */
.reasons__grid {
  display: grid;
  gap: 28px;
}
.reason {
  background: #fff;
  padding: 26px 24px;
  border-radius: 6px;
  border-top: 3px solid var(--navy);
}
.reason__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.6;
}
.reason p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.95;
}

/* =========================================================
   対応サービス
   ========================================================= */
.services__grid {
  display: grid;
  gap: 20px;
}
.service {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service:first-child {
  border-top: 1px solid var(--line);
}
.service__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.service p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* =========================================================
   DIY応援プラン
   ========================================================= */
.diy {
  position: relative;
  background: var(--navy-surface);
  color: #fff;
  overflow: hidden;
}
/* 天井にクロスを貼っている写真を、右側からうっすら覗かせる。
   「天井はプロが施工する」という説明を裏付ける絵だが、
   主役は文章と料金なので、紺をかぶせて背景に沈めている。
   ※文字と重なる左側ほど濃く覆う */
.diy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      100deg,
      rgba(28, 68, 106, 0.97) 0%,
      rgba(28, 68, 106, 0.93) 40%,
      rgba(28, 68, 106, 0.82) 72%,
      rgba(28, 68, 106, 0.78) 100%
    ),
    url("../images/diy-ceiling.jpg");
  background-size: cover, cover;
  /* スマホは縦長になるため、横位置を職人が入る場所に寄せる。
     右端合わせのままだと隣の部屋しか映らず、何の写真か分からなくなる */
  background-position: center, 53% center;
  background-repeat: no-repeat, no-repeat;
}
.diy__text {
  font-size: 14px;
  line-height: 2;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.diy__text strong {
  color: #f0d9ae;
  font-weight: 700;
}
/* 料金表は線と文字だけで背景がないため、
   後ろの写真が透けると金額が読みにくくなる。
   下地を一枚敷いて、写真は薄く保ったまま可読性を確保する */
.diy__price {
  margin-top: 32px;
  background: rgba(17, 44, 72, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 22px 20px;
}
.diy__note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  margin: 12px 0 20px;
}

/* =========================================================
   料金表（共通）
   ========================================================= */
.price__box {
  max-width: 620px;
  margin: 0 auto;
}
.pricelist {
  border-top: 1px solid var(--line);
}
.pricelist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pricelist small {
  font-size: 11.5px;
  color: var(--ink-soft);
  display: block;
}
.pricelist__val {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-size: 15px;
}
.pricelist__val--free {
  color: var(--brass);
}
/* 紺背景の上に置く版 */
.pricelist--dark {
  border-color: rgba(255, 255, 255, 0.25);
}
.pricelist--dark li {
  border-color: rgba(255, 255, 255, 0.25);
}
.pricelist--dark small {
  color: rgba(255, 255, 255, 0.7);
}
.pricelist--dark .pricelist__val {
  color: #f0d9ae;
}

/* =========================================================
   火災保険
   ========================================================= */
.insurance__grid {
  display: grid;
  gap: 18px;
}
.insurance__item {
  background: #fff;
  padding: 22px;
  border-radius: 6px;
  border-left: 4px solid var(--brass);
}
.insurance__item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.insurance__item p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* =========================================================
   施工の流れ
   ========================================================= */
.flow__list {
  max-width: 620px;
  margin: 0 auto;
  padding-left: 8px;
}
.flow__item {
  display: flex;
  gap: 18px;
  padding-bottom: 30px;
  position: relative;
}
/* 番号どうしを縦線でつなぐ */
.flow__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.flow__item:last-child {
  padding-bottom: 0;
}
.flow__no {
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.flow__item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  padding-top: 5px;
}
.flow__item p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* =========================================================
   代表挨拶
   ========================================================= */
.about__media {
  margin-bottom: 26px;
}
.about__media img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 10px;
}
.about__caption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.about__body .heading {
  margin-bottom: 20px;
}
.about__body p {
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.about__body p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   お客様の声
   ========================================================= */
.voice__grid {
  display: grid;
  gap: 18px;
}
.voice__item {
  background: #fff;
  padding: 24px;
  border-radius: 6px;
}
.voice__body {
  font-size: 14.5px;
  line-height: 1.95;
  margin-bottom: 12px;
}
.voice__name {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.voice__name small {
  font-size: 11px;
  opacity: 0.8;
}

/* =========================================================
   対応エリア
   ========================================================= */
.area {
  text-align: center;
}
.area__main {
  font-family: "Zen Old Mincho", serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.area__sub {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* =========================================================
   よくある質問
   ========================================================= */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
}
.faq__item {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: 17px 46px 17px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
/* 開閉のしるし（矢印が回転する） */
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.faq__item p {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.95;
}

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact {
  position: relative;
  background: var(--navy-surface);
  color: #fff;
}
.contact__grid {
  display: grid;
  gap: 28px;
}
.contact__tel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 28px 22px;
  text-align: center;
}
.contact__tel-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
}
.contact__tel-num {
  display: inline-block;
  font-family: "Zen Old Mincho", serif;
  font-size: 33px;
  font-weight: 700;
  color: #f0d9ae;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.contact__tel-time {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}
.contact__tel-note {
  font-size: 11.5px;
  line-height: 1.8;
  opacity: 0.7;
  margin-top: 14px;
  text-align: left;
}

.contact__form {
  display: grid;
  gap: 16px;
}
.contact__form label {
  display: grid;
  gap: 7px;
}
.contact__form label > span {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact__form em {
  font-style: normal;
  font-size: 10px;
  background: var(--brass);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.contact__form input,
.contact__form textarea {
  font: inherit;
  font-size: 16px; /* iPhoneで入力時に画面が拡大されないよう16px以上にする */
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  width: 100%;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: 3px solid var(--brass);
  outline-offset: 1px;
}
/* 項目名に添える「（任意）」など */
.contact__form label > span small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}
/* 写真の選択欄 */
.contact__form input[type="file"] {
  font-size: 13px;
  padding: 10px 12px;
  cursor: pointer;
}
.contact__form input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 12px;
  padding: 7px 13px;
  margin-right: 10px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.form-note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.7;
  margin-top: 2px;
}
.form-privacy {
  font-size: 11.5px;
  line-height: 1.8;
  opacity: 0.7;
  text-align: center;
}
.form-privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 迷惑メール対策の隠し項目。
   display:none だと見破るロボットがいるため、
   画面の外へ追い出す方法で隠している（読み上げ順にも入らないよう配慮） */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 電話とLINEを縦に並べる左カラム。
   PCでは .contact__grid の1列目に入る */
.contact__side {
  display: grid;
  gap: 18px;
  align-content: start;
}
.contact__line {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 24px 22px;
  text-align: center;
}
.contact__line-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.contact__line-text {
  font-size: 13.5px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.contact__line-note {
  font-size: 11.5px;
  line-height: 1.8;
  opacity: 0.7;
  margin-top: 12px;
}

/* =========================================================
   フッター
   ========================================================= */
.footer {
  position: relative;
  background: var(--navy-surface-deep);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.footer__logo {
  height: 28px;
  width: auto;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}
.footer__info {
  font-size: 12.5px;
  line-height: 1.9;
  opacity: 0.85;
  margin-bottom: 18px;
}
.footer__copy {
  font-size: 11px;
  opacity: 0.5;
}

/* =========================================================
   スマホ用・常時表示の連絡バー
   （最後まで読まなくても、いつでも電話できるようにする）
   ========================================================= */
.mobilebar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 300;
  display: flex;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.18);
}
.mobilebar__call,
.mobilebar__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 60px;
}
.mobilebar__call {
  flex: 1.4;
  background: var(--brass);
  color: #fff;
}
.mobilebar__sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.95;
}
.mobilebar__main {
  font-size: 17px;
}
.mobilebar__form {
  flex: 1;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}

/* =========================================================
   ★ タブレット・PC（768px〜）
   ========================================================= */
@media (min-width: 768px) {
  body {
    font-size: 16px;
    padding-bottom: 0; /* PCでは固定バーを出さないので余白も戻す */
  }
  .wrap {
    padding: 0 40px;
  }
  .section {
    padding: 104px 0;
  }
  .heading {
    font-size: 30px;
  }
  .head {
    margin-bottom: 56px;
  }

  /* --- ヘッダー：ナビを横並びにして電話番号も出す --- */
  .hamburger {
    display: none;
  }
  .nav {
    position: static;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-right: 20px;
  }
  .nav__list {
    display: flex;
    gap: 2px;
  }
  .nav__list a {
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s var(--ease), color 0.35s var(--ease);
  }
  .nav__list a:hover {
    opacity: 0.72;
  }
  .header.is-scrolled .nav__list a {
    color: var(--ink);
    text-shadow: none;
  }
  .header__tel {
    display: block;
    text-align: right;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    transition: color 0.35s var(--ease);
  }
  .header.is-scrolled .header__tel {
    color: var(--navy);
    text-shadow: none;
  }
  .header__tel-label {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }
  .header__tel-num {
    display: block;
    font-family: "Zen Old Mincho", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  /* --- ヒーロー --- */
  .hero {
    min-height: 92svh;
  }
  .hero__inner {
    max-width: 720px;
  }
  .hero__title {
    font-size: 46px;
  }
  .hero__sub {
    font-size: 15.5px;
  }
  .hero__eyebrow {
    font-size: 13px;
  }
  .hero__badges li {
    font-size: 15px;
    padding: 0 2px 7px;
  }
  /* PCでは3つを横一列に均等配置 */
  .hero__actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 720px;
  }
  .hero__actions .btn--call {
    grid-column: auto;
  }
  .hero__actions .btn {
    padding: 14px 12px;
  }
  .hero__actions .btn--call .btn__main {
    font-size: 21px;
  }
  .hero__actions .btn--line .btn__main,
  .hero__actions .btn--quote .btn__main {
    font-size: 19px;
  }

  /* --- 数字 --- */
  .stats {
    padding: 34px 0;
  }
  .stats__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat__num {
    font-size: 32px;
  }

  /* --- 施工事例：写真と説明を左右に --- */
  .works__grid {
    gap: 64px;
  }
  .work {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
  }
  /* 2件目は左右を入れ替えてリズムを作る */
  .work:nth-child(even) .ba {
    order: 2;
  }
  .work__body {
    padding-top: 0;
  }
  .work__title {
    font-size: 22px;
  }

  /* --- 理由・サービス・保険・声：複数列に --- */
  .reasons__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
  }
  .service:nth-child(2) {
    border-top: 1px solid var(--line);
  }
  .insurance__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .voice__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- DIY：説明と料金を左右に --- */
  .diy__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
  }
  /* 横に広い画面では、文章の右側に写真が来るよう右寄せに戻す */
  .diy::before {
    background-position: center, right center;
  }
  .diy__price {
    margin-top: 0;
    padding: 26px 24px;
  }

  /* --- 代表挨拶：写真と文章を左右に --- */
  .about__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
  }
  .about__media {
    margin-bottom: 0;
  }
  .about__media img {
    max-width: none;
  }

  /* --- お問い合わせ：電話とフォームを左右に --- */
  .contact__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: start;
  }
  .contact__line {
    padding: 30px 26px;
  }
  .contact__tel {
    padding: 36px 28px;
  }
  .contact__tel-num {
    font-size: 30px;
  }

  /* --- スマホ用の固定バーはPCでは不要 --- */
  .mobilebar {
    display: none;
  }
}

/* =========================================================
   縦の短いスマホ（iPhone SE など）への対応
   ヒーローの余白を詰めて、電話ボタンと見積りボタンが
   画面下の固定バーに隠れないようにする。
   ※ヒーロー本体の指定より後ろに書くこと。前に書くと打ち消される
   ========================================================= */
@media (max-width: 767px) and (max-height: 700px) {
  .hero__inner {
    padding-top: 72px;
    padding-bottom: 36px;
  }
  .hero__sub {
    margin-bottom: 14px;
  }
  .hero__badges {
    margin-bottom: 14px;
  }
  .hero__actions {
    gap: 8px;
  }
  /* 縦が足りない端末では、ボタンが固定バーに隠れないことを最優先する。
     ボタン自体に「まずはお電話で相談」等の説明が入っているため、
     この見出しは省いても意味は通る */
  .hero__cta-label {
    display: none;
  }
}

/* =========================================================
   送信完了ページ（thanks.html）
   ========================================================= */
.thanks {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background: var(--navy-surface);
  color: #fff;
  text-align: center;
}
.thanks__inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.thanks__logo {
  width: 170px;
  height: auto;
  /* 紺の上に置くため白抜きにする */
  filter: brightness(0) invert(1);
  margin-bottom: 32px;
}
.thanks__mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brass);
  color: #fff;
  font-size: 26px;
  line-height: 54px;
}
.thanks__title {
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.thanks__text {
  font-size: 14.5px;
  line-height: 2;
  margin-bottom: 20px;
}
.thanks__note {
  font-size: 12.5px;
  line-height: 1.95;
  opacity: 0.8;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  margin-bottom: 32px;
}
.thanks__tel {
  display: inline-flex;
  min-width: 260px;
}
.thanks__time {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 10px;
}
.thanks__back {
  display: inline-block;
  margin-top: 30px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}
.thanks__back:hover {
  border-bottom-color: #fff;
}

@media (min-width: 768px) {
  .thanks__title {
    font-size: 30px;
  }
}

/* =========================================================
   紺の面の質感
   ベタ塗りが安っぽく見える原因は「面が完全に均一なこと」。
   ごく細かいざらつきを一枚重ねて、紙や塗り壁のような質感を出す。
   画像ファイルではなくSVGで生成しているので、読み込みは発生しない。
   ========================================================= */
.stats::after,
.diy::after,
.contact::after,
.footer::after,
.thanks::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none; /* 上に重ねるがクリックは下へ通す */
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 中身がざらつきの下に潜らないよう、前面に出しておく */
.stats > .wrap,
.diy > .wrap,
.contact > .wrap,
.footer > .wrap {
  position: relative;
  z-index: 1;
}

/* =========================================================
   ★「動きを減らす」設定の方への配慮
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  /* ヒーローの切り替えは止めて、1枚目だけを静止表示する。
     この指定がないと、アニメーションが無効化された結果
     opacity:0 のまま背景が真っ暗になってしまう */
  .hero__media img {
    opacity: 0;
    transform: none;
  }
  .hero__media img:first-child {
    opacity: 1;
  }
}

/* =========================================================
   下層ページ（施工事例一覧など）
   ヒーローがないページでは、ヘッダーを最初から白くする。
   透明のままだと白抜きロゴが白背景に埋もれて見えなくなるため。
   ========================================================= */
.page-sub .header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.page-sub .header__logo img {
  filter: none;
}
.page-sub .hamburger span {
  background: var(--navy);
  box-shadow: none;
}
/* ヘッダーの高さぶん、中身を下げる */
.page-sub main {
  padding-top: 64px;
}

/* --- パンくず --- */
.crumb {
  background: var(--paper-tint);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.crumb__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  color: var(--ink-soft);
}
.crumb a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.crumb span[aria-current] {
  font-weight: 700;
  color: var(--ink);
}

/* --- 下層ページ末尾の相談への導線 --- */
.subcta {
  position: relative;
  background: var(--navy-surface);
  color: #fff;
  text-align: center;
}
.subcta__lead {
  font-size: 14.5px;
  line-height: 2;
  margin-bottom: 26px;
}
.subcta__actions {
  display: grid;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}
.subcta__actions .btn {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.subcta__actions .btn--call {
  color: var(--navy);
}
.subcta__actions .btn--line {
  color: #06803a;
}
.subcta__actions .btn--quote {
  color: #8a6229;
}
.subcta__actions .btn__sub {
  opacity: 1;
}
.subcta__actions .btn--line .btn__main,
.subcta__actions .btn--quote .btn__main {
  font-size: 16px;
}

@media (min-width: 768px) {
  .page-sub .nav__list a {
    color: var(--ink);
    text-shadow: none;
  }
  .page-sub .header__tel {
    color: var(--navy);
    text-shadow: none;
  }
  .subcta__actions {
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
  }
}

/* --- トップから施工事例一覧への導線 --- */
.works__more {
  text-align: center;
  margin-top: 40px;
}
.btn--more {
  border-color: var(--navy);
  color: var(--navy);
  font-size: 14px;
  padding: 15px 34px;
}
.btn--more:hover {
  background: var(--navy);
  color: #fff;
}

/* --- 縦向きの写真を使う事例 ---
   トイレなど狭い場所は縦で撮られることが多い。
   枠まで横長のままだと上下が大きく切れて、何の写真か分からなくなるため、
   枠側の縦横比を入れ替える */
.work--portrait .ba {
  aspect-ratio: 3 / 4;
  /* width を明示しないと、グリッドの中で幅が確定せず潰れる */
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  /* PCはグリッドなので、余った幅の中で中央に置く */
  .work--portrait .ba {
    justify-self: center;
  }
}

/* --- 写真はLINEへ誘導する案内（フォーム内） ---
   Cloudflare Pages 移行にあたり、フォームでの写真添付をやめたため、
   その受け皿としてLINEへ送る導線をフォーム内にも置いている */
.form-photo {
  font-size: 12.5px;
  line-height: 1.9;
  padding: 13px 15px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}
.form-photo strong {
  color: #7ee2a8;
  font-weight: 700;
}

/* --- プライバシーポリシー（privacy.html） ---
   お客様が最後まで読める文章ページ。行の長さを抑えて読みやすくしている */
.policy {
  max-width: 760px;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
}
.policy h2 {
  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
  color: var(--navy);
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.policy p,
.policy ul {
  margin-bottom: 12px;
}
.policy ul {
  padding-left: 1.4em;
}
.policy li {
  margin-bottom: 6px;
}
.policy a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policy__info {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 6px 16px;
}
.policy__info dt {
  font-weight: 700;
  color: var(--ink-soft);
}
/* 表はスマホで横にはみ出さないよう、枠の中だけ横スクロールさせる */
.policy__table {
  overflow-x: auto;
  margin-bottom: 12px;
}
.policy__table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.7;
}
.policy__table th,
.policy__table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.policy__table th {
  background: var(--paper-tint);
  font-weight: 700;
}
.policy__date {
  margin-top: 40px;
  text-align: right;
  color: var(--ink-soft);
  font-size: 13px;
}

/* フッターの小さなリンク（プライバシーポリシーなど） */
.footer__links {
  font-size: 12px;
  margin-bottom: 14px;
}
.footer__links a {
  color: #fff;
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
