@charset "UTF-8";
/* ============================================================
   株式会社 川元工務店  サイトスタイル
   カラー: 緑 #309c59 / 深緑 #1d7860 / 背景 #f5f5f5
   フォント: Zen Kaku Gothic New / Kaisei Opti / Playfair Display / Gothic A1
============================================================ */

:root {
  --green: #309c59;
  --deep: #1d7860;
  --mint: #3cb891;
  --yellow: #eff535;
  --bg: #f5f5f5;
  --font-base: "Zen Kaku Gothic New", sans-serif;
  /* 日本語はZen Kaku Gothic Newに統一(2026-08-11)。元: Kaisei Opti / Gothic A1 */
  --font-mincho: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Playfair Display", serif;
  --font-gothic: "Zen Kaku Gothic New", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
/* JSのスムーススクロールが有効なときはCSS側の補間を切る(二重に効くため) */
html.js-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--green);
  overflow-x: hidden;
  line-height: 1.8;
}

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

/* ============ ヘッダー ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1760px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-weight: 900;
  font-size: 20px;
  color: var(--green);
  white-space: nowrap;
}
.global-nav { margin-left: auto; }
.global-nav ul {
  display: flex;
  gap: clamp(20px, 3vw, 56px);
  background: #fff;
  border-radius: 50px;
  padding: 16px 44px;
}
.global-nav a {
  font-weight: 500;
  font-size: 16px;
  color: var(--deep);
  transition: opacity 0.2s;
}
.global-nav a:hover { opacity: 0.6; }
/* 表示中のページを示す */
.global-nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 900;
}

.header-tel {
  background: var(--green);
  color: #fff;
  border-radius: 22px;
  padding: 10px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-tel:hover { background: var(--deep); }
.tel-copy { font-weight: 500; font-size: 14px; }
.tel-number { font-family: var(--font-en); font-size: 26px; }

.menu-toggle { display: none; }

/* 縦書きキャッチ */
.side-copy {
  position: fixed;
  left: 28px;
  top: 130px;
  z-index: 50;
  writing-mode: vertical-rl;
  font-size: 18px;
  font-weight: 400;
  color: var(--deep);
  letter-spacing: 0.2em;
}

/* ============ ヒーロー ============ */
.hero {
  position: relative;
  min-height: min(92vw, 1450px);
  padding-top: 120px;
  overflow: hidden;
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; }

/* .hd = 登場アニメ / .hd-in = 回転(--tf)とゆらゆら浮遊
   --d: 登場ディレイ / --fd: 浮遊の周期 */
.hd { position: absolute; display: block; }
.hd-in {
  display: block;
  position: relative;
  transform: var(--tf, none);
  animation: hd-float var(--fd, 6s) ease-in-out calc(var(--d, 0s) + 1s) infinite;
}
.hd img { display: block; width: 100%; height: auto; }

/* 家 → 下から上へマスクが開いて表示 */
.hd--mask {
  clip-path: inset(100% 0 0 0);
  animation: mask-wipe 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
@keyframes mask-wipe { to { clip-path: inset(0 0 0 0); } }

/* 手 → 左右からスライドして入ってくる */
.hd--slide-l,
.hd--slide-r {
  opacity: 0;
  animation: slide-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
.hd--slide-l { --from: -60%; }
.hd--slide-r { --from: 60%; }
@keyframes slide-in {
  0%   { transform: translateX(var(--from)); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

/* 幾何学キャラクター → 縮小から拡大のポップイン */
.hd--pop {
  transform: scale(0);
  opacity: 0;
  animation: hd-pop 0.8s cubic-bezier(0.34, 1.45, 0.5, 1) var(--d, 0s) forwards;
}
@keyframes hd-pop {
  0%   { transform: scale(0); opacity: 0; }
  55%  { opacity: 1; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes hd-float {
  0%, 100% { transform: var(--tf, none) translateY(0); }
  50%      { transform: var(--tf, none) translateY(-14px); }
}
@keyframes hd-sway {
  0%, 100% { transform: var(--tf, none) rotate(0deg); }
  50%      { transform: var(--tf, none) rotate(2.5deg) translateY(-6px); }
}

/* 登場順: 見出し → 左の手 → 右の手 → 家 → 幾何学キャラクター → 他のテキスト */
.hd-blob-left    { left: -12%; top: 22%; width: 38%; --d: 0.95s; }
.hd-blob-right   { right: -10%; top: 8%; width: 36%; --d: 1.15s; }
.hd-hand         { right: 22%; top: 72%; width: 28%; --d: 1.3s; }
.hd-house-left   { left: 2%;  top: 60%; width: 25%; --d: 1.45s; }
.hd-house-tall   { left: 24%; top: 55%; width: 17%; --d: 1.55s; }
.hd-circle-right { right: -8%; top: 32%; width: 42%; --d: 1.65s; }
.hd-hex          { left: 7%;  top: 14%; width: 12%; --d: 2s; }
.hd-shape-a      { left: 15%; top: 5%;  width: 11%; --d: 2.15s; mix-blend-mode: multiply; }
.hd-shape-b      { right: 13%; top: 8%; width: 13%; --d: 2.3s; }

.hd-blob-left  .hd-in { --tf: rotate(-158deg) scaleY(-1); --fd: 8s; }
.hd-blob-right .hd-in { --tf: rotate(-15deg); --fd: 9s; opacity: 0.9; }
.hd-circle-right .hd-in { --fd: 10s; }
.hd-house-tall .hd-in { --fd: 7s; }
.hd-house-left .hd-in { --fd: 7.5s; }
.hd-hex     .hd-in { --fd: 5s; }
.hd-shape-a .hd-in { --tf: rotate(10.8deg); --fd: 5.6s; }
.hd-shape-b .hd-in { --tf: rotate(-166deg) scaleY(-1); --fd: 6.4s; }
.hd-hand    .hd-in { animation-name: hd-sway; --fd: 5s; }

/* ---- まばたきする顔 ---- */
.face { display: block; }
.face img { width: 100%; height: auto; display: block; }
.eye {
  position: absolute;
  aspect-ratio: 0.85;
  border-radius: 50%;
  background: var(--skin, #ffd33f);
  overflow: hidden;
}
.eye::before,
.eye::after {
  content: "";
  position: absolute;
  animation: blink var(--blink-dur, 5s) infinite var(--blink-delay, 0s);
}
.eye::before {
  inset: 0;
  border-radius: 50%;
  background: #fff;
}
.eye::after {
  top: 5%;
  bottom: 5%;
  right: 3%;
  width: 60%;
  border-radius: 50%;
  background: #141414;
}
.hd-hex .eye { --blink-dur: 5s; --blink-delay: 0.8s; }
.hd-shape-b .eye { --blink-dur: 6.4s; --blink-delay: 2.2s; }
.care-face .eye { --blink-dur: 5.6s; --blink-delay: 1.2s; }
@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94%, 96%      { transform: scaleY(0.06); }
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-sub {
  font-weight: 900;
  font-size: clamp(18px, 2.4vw, 32px);
  margin-bottom: clamp(24px, 4vw, 64px);
}
.hero-title {
  /* FVのみKaisei Optiを維持(ユーザー指定) */
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.15;
  margin-bottom: clamp(32px, 5vw, 90px);
}
.hero-lead {
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 2.347;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  opacity: 0;
  animation: fade-up 1s ease 1.1s forwards;
}

/* 1行ずつ下からマスクで出現 */
.line {
  display: block;
  overflow: hidden;
  /* 下端が切れないよう余白を確保 */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.line-inner {
  display: inline-block;
  transform: translateY(115%);
}
@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* FVは読み込み直後に自動再生 */
.hero-title .line-inner {
  animation: line-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.25s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.45s; }
/* 他のテキストはキャラクターのポップインのあと */
.hero-sub .line-inner {
  animation: line-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
}
.hero-lead { animation-delay: 2.7s; }

/* スクロールで発火する行マスク */
.reveal-lines .line-inner { transform: translateY(115%); }
.reveal-lines.visible .line-inner {
  animation: line-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.13s);
}
/* 本文など行数が多いものは間隔を詰める */
.reveal-lines--fast.visible .line-inner {
  animation-duration: 0.9s;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

/* ============ Heritage 帯 ============ */
.heritage {
  position: relative;
  /* パララックスで上下に動く余白を確保 */
  padding: clamp(90px, 11vw, 175px) 0;
  overflow: hidden;
}
.heritage-photos {
  display: flex;
  gap: 2vw;
  justify-content: center;
  align-items: flex-start;
}
.torn-v {
  flex: 0 0 clamp(160px, 24vw, 480px);
  aspect-ratio: 404 / 597;
  /* 元のマスク画像は半径17%の角丸長方形だったので border-radius で再現。
     画像マスクは file:// でCORSに阻まれるうえ、縮小すると角がガタつくため使わない */
  border-radius: 17.1% / 11.6%;
  overflow: hidden;
  background: #e2ece6;
  /* --rest: 見本(Figma)での段差。--dir: 1=下から / -1=上から入る */
  transform: translateY(calc(var(--rest, 0) * 1px));
  will-change: transform;
}
.torn-v:nth-child(1) { --rest: 86; --dir: 1; }
.torn-v:nth-child(2) { --rest: 0;  --dir: -1; }
.torn-v:nth-child(3) { --rest: 60; --dir: 1; }
.torn-v:nth-child(4) { --rest: 0;  --dir: -1; }
.torn-v img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .torn-v { transform: translateY(calc(var(--rest, 0) * 1px)) !important; }
}
/* FV下の英字は自動で横スクロール */
.heritage-copy {
  position: absolute;
  top: 8%;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.heritage-copy-track {
  display: flex;
  width: max-content;
  animation: marquee-l 34s linear infinite;
}
.heritage-copy-track span {
  font-family: var(--font-en);
  font-size: clamp(56px, 9vw, 180px);
  color: var(--green);
  mix-blend-mode: color-burn;
  white-space: nowrap;
  line-height: 1.2;
  padding-right: 0.35em;
}

/* ============ 小さな修繕 ============ */
.care { padding: clamp(60px, 8vw, 140px) 24px; }
.care-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.care-visual { flex: 0 0 36%; }
/* 黄色いキャラクターはスクロールで見えたときにポップイン */
.care-face {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  transform: rotate(-10deg) scale(0);
  opacity: 0;
}
.care-face.visible {
  animation: care-pop 0.85s cubic-bezier(0.34, 1.45, 0.5, 1) forwards;
}
@keyframes care-pop {
  0%   { transform: rotate(-10deg) scale(0); opacity: 0; }
  55%  { opacity: 1; }
  70%  { transform: rotate(-10deg) scale(1.1); }
  100% { transform: rotate(-10deg) scale(1); opacity: 1; }
}
.care-body { flex: 1; }
.care-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.3;
  margin-bottom: clamp(20px, 2.5vw, 40px);
}
.care-text {
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 2.347;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.tel-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 31px;
  padding: 16px 48px;
  transition: background 0.2s;
}
.tel-button:hover { background: var(--deep); }
.tel-button-number {
  font-weight: 900;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: 0.17em;
  line-height: 1.3;
}
.tel-button-hours { font-weight: 700; font-size: clamp(11px, 1.1vw, 16px); }

/* ============ マーキー共通 ============ */
.marquee { overflow: hidden; width: 100%; }
.marquee + .marquee { margin-top: 20px; }
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-l 40s linear infinite;
}
.marquee-right .marquee-track { animation-name: marquee-r; }
.marquee.slow .marquee-track { animation-duration: 60s; }
@keyframes marquee-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============ お悩みフキダシ ============ */
.worries { padding: clamp(30px, 4vw, 60px) 0; }
/* しっぽがはみ出るぶん、クリップ領域に余白を持たせる */
.worries .marquee { padding-bottom: 16px; }
.worries .marquee + .marquee { margin-top: 22px; }
.worries li {
  position: relative;
  background: #fff;
  border-radius: 56px;
  padding: clamp(14px, 1.8vw, 26px) clamp(24px, 3vw, 44px);
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 28px);
  color: var(--green);
  white-space: nowrap;
  line-height: 1.2;
}
/* フキダシのしっぽ */
.worries li::after {
  content: "";
  position: absolute;
  left: 38px;
  bottom: -11px;
  width: 26px;
  height: 16px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 18% 100%);
}
.worries .marquee-right li::after {
  left: auto;
  right: 38px;
  clip-path: polygon(0 0, 100% 0, 82% 100%);
}

/* ============ 補助金セクション ============ */
.subsidy { padding: clamp(60px, 8vw, 140px) 0 clamp(40px, 5vw, 80px); }
.subsidy-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.4;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 64px);
  padding: 0 24px;
}

/* ============================================================
   防音工事(メインセクション)
============================================================ */
.soundproof {
  background: var(--green);
  color: #fff;
  border-radius: clamp(32px, 4vw, 64px);
  max-width: 1560px;
  margin: clamp(40px, 6vw, 90px) auto;
  /* 左の縦書きコピーとぶつからないよう内側に寄せる */
  margin-inline: clamp(16px, 6vw, 90px);
  padding: clamp(40px, 5vw, 80px) clamp(24px, 4vw, 72px);
}
@media (min-width: 1750px) {
  .soundproof { margin-inline: auto; }
}

/* --- フック --- */
.sound-hook {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1240px;
  margin: 0 auto clamp(48px, 6vw, 90px);
}
.sound-hook-text { flex: 1.15; }
.sound-hook-en {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.sound-hook-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 16px);
  margin-bottom: 14px;
}
.sound-hook-copy {
  font-weight: 900;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.35;
  margin-bottom: clamp(18px, 2.2vw, 30px);
}
.sound-hook-lead {
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.1;
  margin-bottom: clamp(22px, 2.8vw, 36px);
  max-width: 560px;
}
.sound-hook-lead strong {
  font-weight: 900;
  color: var(--yellow);
}
.sound-hook-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sound-hook-actions .pill-button { background: #fff; color: var(--green); }
.sound-hook-actions .pill-button:hover { background: var(--yellow); color: var(--deep); }
.sound-hook-actions .pill-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.sound-hook-actions .pill-ghost:hover { background: #fff; color: var(--green); }
.sound-hook-visual { flex: 1; max-width: 460px; }

/* --- 制度でできること --- */
.sound-merits { max-width: 1000px; margin: 0 auto; }
.sound-merits-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  margin-bottom: clamp(28px, 3.5vw, 48px);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.sound-merits-en {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.15vw, 15px);
  letter-spacing: 0.18em;
  color: var(--yellow);
}
.merit {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(20px, 2.4vw, 32px) 0;
}
.merit + .merit { border-top: 1px dashed rgba(255, 255, 255, 0.4); }
.merit-visual {
  flex: 0 0 clamp(96px, 11vw, 150px);
  width: clamp(96px, 11vw, 150px);
  background: #fff;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.2vw, 18px);
}
.merit-visual img { width: 100%; height: 100%; object-fit: contain; }
/* 各イラストはスクロールで見えたときにポップイン */
.merit .merit-visual { transform: scale(0); opacity: 0; }
.merit.visible .merit-visual {
  animation: pop-in 0.8s cubic-bezier(0.34, 1.45, 0.5, 1) 0.15s forwards;
}
@keyframes pop-in {
  0%   { transform: scale(0); opacity: 0; }
  55%  { opacity: 1; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.sound-hook-visual img { transform: scale(0); opacity: 0; }
.sound-hook.visible .sound-hook-visual img {
  animation: pop-in 0.9s cubic-bezier(0.34, 1.45, 0.5, 1) 0.3s forwards;
}
.s-card-visual img { transform: scale(0); opacity: 0; }
.s-card.visible .s-card-visual img {
  animation: pop-in 0.8s cubic-bezier(0.34, 1.45, 0.5, 1) 0.2s forwards;
}
.merit-body { flex: 1; }
.merit-num {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--yellow);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.merit-title {
  font-weight: 900;
  font-size: clamp(17px, 1.9vw, 25px);
  line-height: 1.55;
  margin-bottom: 10px;
}
.merit-text {
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 16.5px);
  line-height: 2;
}
.merit-note {
  font-size: clamp(12.5px, 1.15vw, 14px);
  font-weight: 500;
  line-height: 1.9;
  opacity: 0.85;
  margin-top: clamp(16px, 2vw, 26px);
}

/* 番号入りの星マーク */
.num-star {
  position: relative;
  width: clamp(64px, 7vw, 106px);
  height: clamp(64px, 7vw, 106px);
  flex-shrink: 0;
}
.num-star img { width: 100%; height: 100%; object-fit: contain; }
.num-star span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  color: #fff;
}

/* --- 早めの相談を --- */
.sound-alert {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  max-width: 1000px;
  margin: clamp(36px, 4.5vw, 64px) auto 0;
  background: rgba(255, 255, 255, 0.12);
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 3vw, 40px);
}
.sound-alert-title {
  font-weight: 900;
  font-size: clamp(17px, 1.8vw, 22px);
  margin-bottom: 8px;
  color: var(--yellow);
}
.sound-alert-text {
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.95;
  margin-bottom: 16px;
}
.sound-alert-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sound-alert .pill-button { background: #fff; color: var(--green); }
.sound-alert .pill-button:hover { background: var(--yellow); color: var(--deep); }
.sound-alert .pill-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.sound-alert .pill-ghost:hover { background: #fff; color: var(--green); }


/* --- 補助金カルーセル --- */
.subsidy-carousel-wrap { margin-top: clamp(32px, 4vw, 64px); }
.subsidy-carousel {
  display: flex;
  /* 各カードを内容ぶんの高さにする(引き伸ばして間延びさせない) */
  align-items: flex-start;
  gap: clamp(16px, 2vw, 32px);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px max(24px, calc((100vw - 1320px) / 2)) 20px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.subsidy-carousel::-webkit-scrollbar { display: none; }
.subsidy-carousel.dragging { cursor: grabbing; }
.s-card {
  flex: 0 0 min(88vw, 700px);
  background: var(--card-bg, var(--green));
  border-radius: 24px;
  padding: 14px;
  color: #fff;
  user-select: none;
}
.s-card img { pointer-events: none; }
.s-card-frame {
  border: 3px dashed #fff;
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 36px);
  height: 100%;
}
.s-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.s-card-head .num-star {
  width: clamp(56px, 5vw, 87px);
  height: clamp(56px, 5vw, 87px);
}
.s-card-head .num-star span { font-size: clamp(22px, 2vw, 30px); }
.s-card-head h3 {
  font-family: var(--font-gothic);
  font-weight: 800;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.35;
}
.s-card-body { display: flex; gap: 20px; }
.s-card-visual { flex: 0 0 clamp(120px, 12vw, 200px); }
.s-card-visual img { width: 100%; object-fit: contain; }
.s-card-info { flex: 1; }
.s-card-amount {
  color: var(--yellow);
  font-weight: 900;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
  margin-bottom: 2px;
}
.s-card-period {
  color: var(--yellow);
  font-weight: 700;
  font-size: clamp(13.5px, 1.3vw, 16px);
  line-height: 1.6;
  margin-bottom: 12px;
}
.s-card-list {
  list-style: disc;
  padding-left: 22px;
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.57;
}
.s-card-list li { margin-bottom: 4px; }
.s-card-list strong { color: var(--yellow); }
/* 併用不可などの重要な注意 */
.s-card-alert {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: clamp(12.5px, 1.2vw, 14.5px);
  font-weight: 500;
  line-height: 1.7;
}
.s-card-alert strong {
  display: block;
  color: var(--yellow);
  font-weight: 900;
}
.carousel-hint {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--deep);
  margin-top: 8px;
}
.subsidy-note {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--deep);
  line-height: 1.7;
}
.s-card-head h3 small { font-size: 0.6em; font-weight: 700; }
.s-card-period small { font-size: 0.78em; font-weight: 500; }

/* ============ 施工事例 ============ */
.works {
  position: relative;
  padding: clamp(60px, 8vw, 130px) 0;
  overflow: hidden;
}
.works-bg-text {
  position: absolute;
  font-family: var(--font-en);
  font-size: clamp(120px, 16vw, 250px);
  color: var(--green);
  mix-blend-mode: color-burn;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  left: -0.2em;
  top: 40%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.works-head {
  max-width: 1240px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.works-title {
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.3;
  margin-bottom: clamp(12px, 1.5vw, 20px);
}
.works-intro {
  font-weight: 500;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 2;
}

/* 事例ショーケース(写真＋短いタイトル＋タグのみ) */
.work-group {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.work-group + .work-group { margin-top: clamp(48px, 6vw, 88px); }
.work-group-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: clamp(18px, 2.2vw, 28px);
  padding-bottom: 14px;
  border-bottom: 1px solid #cfe0d6;
}
.work-group-en {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 0.14em;
  color: var(--mint);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}
.case-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #e7efe9;
  margin-bottom: 14px;
}
/* 写真は下から上へマスクが開いて表示。左のカードから順に */
.case-thumb { clip-path: inset(100% 0 0 0 round 18px); }
.case-card.visible .case-thumb {
  animation: mask-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
@keyframes mask-up { to { clip-path: inset(0 0 0 0 round 18px); } }
.thumb-in { display: block; width: 100%; height: 100%; }
.case-grid .case-card:nth-child(1) { --d: 0s; }
.case-grid .case-card:nth-child(2) { --d: 0.16s; }
.case-grid .case-card:nth-child(3) { --d: 0.32s; }
.case-grid .case-card:nth-child(4) { --d: 0.48s; }
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-card:hover .case-thumb img { transform: scale(1.04); }
.case-title {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.6;
  margin-bottom: 10px;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags li {
  border: 1px solid #b9d3c4;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  line-height: 1.7;
}

/* 破り紙ふうフォト */
.photo-track { gap: clamp(16px, 2vw, 36px); }
.torn-photo {
  flex: 0 0 clamp(260px, 30vw, 480px);
  aspect-ratio: 583 / 405;
  -webkit-mask-image: url(../images/img2016092110330711.png);
  mask-image: url(../images/img2016092110330711.png);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.torn-photo2 {
  aspect-ratio: 556 / 386;
  -webkit-mask-image: url(../images/imgAdobeStock2498085034.png);
  mask-image: url(../images/imgAdobeStock2498085034.png);
}
.torn-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ OUR OUTLINE ============ */
.outline {
  position: relative;
  padding-top: clamp(80px, 12vw, 240px);
}
.outline-bg-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: var(--font-en);
  font-size: clamp(64px, 14vw, 300px);
  line-height: 1.1;
  color: var(--green);
  mix-blend-mode: hard-light;
  opacity: 0.68;
  white-space: nowrap;
  pointer-events: none;
}
.outline-panel {
  position: relative;
  background: var(--deep);
  border-radius: clamp(40px, 6vw, 114px) clamp(40px, 6vw, 114px) 0 0;
  color: #fff;
  padding: clamp(48px, 6vw, 100px) 24px clamp(24px, 3vw, 48px);
}
.outline-title {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 90px);
}
.outline-card {
  position: relative;
  max-width: 1416px;
  margin: 0 auto clamp(32px, 4vw, 64px);
  border-radius: clamp(32px, 5vw, 77px);
  overflow: hidden;
  min-height: clamp(380px, 45vw, 700px);
  display: flex;
}
.outline-card-bg { position: absolute; inset: 0; overflow: hidden; }
/* パララックスで動かすぶん、写真を上下に大きめに取る */
.outline-card-bg img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
}
.history-card .outline-card-bg::after,
.info-card .outline-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.outline-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 80px) clamp(24px, 6vw, 110px);
  width: 100%;
}
.outline-card-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.1;
}
.info-card .outline-card-en { text-align: right; }
.outline-card-text {
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 2.347;
  max-width: 460px;
  align-self: flex-end;
}
.info-list {
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.78;
  max-width: 560px;
}
.info-list div { display: flex; gap: 1em; margin-bottom: 6px; }
.info-list dt { flex: 0 0 7em; opacity: 0.75; }

/* 許認可・登録 */
.license-list { max-width: 560px; margin-top: clamp(18px, 2.2vw, 26px); }
.license-title {
  font-weight: 900;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}
.license-list ul { display: flex; flex-direction: column; gap: 10px; }
.license-list li { display: flex; gap: 12px; align-items: flex-start; }
.license-label {
  flex: 0 0 9.5em;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: clamp(11.5px, 1.05vw, 13px);
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  white-space: nowrap;
}
.license-body {
  font-size: clamp(12.5px, 1.15vw, 14.5px);
  font-weight: 500;
  line-height: 1.7;
}
.license-body small { opacity: 0.8; font-size: 0.88em; }

.outline-message {
  max-width: 1100px;
  margin: 0 auto clamp(48px, 6vw, 100px);
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: clamp(24px, 3vw, 48px);
}
.outline-message-title {
  order: 2;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.6em;
  writing-mode: vertical-rl;
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: 0.1em;
  min-height: 320px;
}
.outline-message-body {
  order: 1;
  flex: 1;
  min-width: min(100%, 480px);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 2.347;
}
.outline-message-body p { margin-bottom: 1.5em; }
.outline-illust {
  order: 3;
  width: clamp(240px, 30vw, 480px);
  margin: 0 auto;
  transform: scale(0);
  opacity: 0;
}
.outline-illust.visible {
  animation: pop-in 0.9s cubic-bezier(0.34, 1.45, 0.5, 1) forwards;
}

.get-in-touch {
  position: relative;
  max-width: 927px;
  margin: 0 auto clamp(40px, 5vw, 80px);
  text-align: center;
  padding-top: clamp(40px, 6vw, 90px);
}
.git-en {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 80px);
  color: var(--deep);
  mix-blend-mode: multiply;
  white-space: nowrap;
  pointer-events: none;
}
.git-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--mint);
  border-radius: 126px;
  padding: clamp(24px, 3.5vw, 48px) 24px clamp(16px, 2.5vw, 32px);
  transition: background 0.2s;
}
.git-pill:hover { background: var(--green); }
.git-tel {
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 50px);
  letter-spacing: 0.17em;
  line-height: 1.3;
}
.git-hours { font-weight: 700; font-size: clamp(12px, 1.1vw, 16px); }

.copyright {
  text-align: center;
  font-weight: 700;
  font-size: clamp(11px, 1vw, 16px);
}

/* ============ スマホ用電話バー ============ */
.sp-tel-bar { display: none; }

/* ============================================================
   防音工事 下層ページ
============================================================ */
.sound-more {
  display: block;
  width: fit-content;
  margin: clamp(20px, 3vw, 36px) auto 0;
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 18px);
  border-radius: 40px;
  padding: 14px 42px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sound-more:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }

.pill-button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 17px);
  border-radius: 40px;
  padding: 14px 34px;
  transition: background 0.2s;
}
.pill-button:hover { background: var(--deep); }
.pill-ghost {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.pill-ghost:hover { background: var(--green); color: #fff; }
.pill-on-green { background: #fff; color: var(--green); }
.pill-on-green:hover { background: var(--yellow); color: var(--deep); }

.sub-hero {
  padding: clamp(120px, 14vw, 180px) 24px clamp(40px, 6vw, 80px);
}
.sub-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.sub-hero-text { flex: 1.2; }
.sub-hero-en {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--mint);
  margin-bottom: 10px;
}
.sub-hero-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 56px);
  margin-bottom: clamp(16px, 2vw, 28px);
}
.sub-hero-lead {
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.1;
  margin-bottom: clamp(20px, 2.5vw, 36px);
}
.sub-hero-lead strong { color: var(--deep); background: linear-gradient(transparent 65%, var(--yellow) 65%); }
.sub-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sub-hero-visual { flex: 1; max-width: 420px; }

.sub-section { padding: clamp(40px, 6vw, 90px) 24px; }
.sub-section-green {
  background: var(--green);
  color: #fff;
  border-radius: clamp(24px, 3vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
}
.sub-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.sub-title-en {
  font-family: var(--font-en);
  font-size: clamp(13px, 1.2vw, 16px);
  color: var(--mint);
  letter-spacing: 0.2em;
}
.sub-title-white { color: #fff; }
.sub-title-white .sub-title-en { color: var(--yellow); }

.sub-lead-box {
  max-width: 820px;
  margin: 0 auto;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.1;
}
.sub-lead-box p { margin-bottom: 1.2em; }
.sub-lead-box strong { color: var(--deep); background: linear-gradient(transparent 65%, var(--yellow) 65%); }

.check-list {
  max-width: 760px;
  margin: 0 auto clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  background: rgba(255, 255, 255, 0.12);
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 16px 22px 16px 52px;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 16px;
  font-weight: 900;
  color: var(--yellow);
  font-size: 1.2em;
}
.check-list strong { color: var(--yellow); }
.check-note { display: block; font-size: 0.8em; font-weight: 500; opacity: 0.85; }
.area-towns {
  max-width: 760px;
  margin: 0 auto clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px 24px;
}
.area-towns-title { font-weight: 900; margin-bottom: 8px; font-size: clamp(15px, 1.4vw, 17px); color: var(--yellow); }
.area-towns-list { font-weight: 500; font-size: clamp(13.5px, 1.3vw, 15.5px); line-height: 2; }
.area-towns-note { font-size: 12.5px; font-weight: 500; opacity: 0.85; margin-top: 8px; }
.type-note {
  max-width: 1100px;
  margin: clamp(16px, 2vw, 24px) auto 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--deep);
}
.flow-contact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #bcd9cb;
  font-size: 14px;
}
.flow-contact a { font-weight: 700; text-decoration: underline; }
.area-cta { text-align: center; }
.area-cta-copy { font-weight: 700; margin-bottom: 12px; font-size: clamp(15px, 1.5vw, 18px); }

.type-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.type-card {
  background: #fff;
  border-radius: 24px;
  padding: 26px 24px;
  box-shadow: 0 6px 24px rgba(29, 120, 96, 0.08);
}
.type-case {
  display: inline-block;
  background: var(--mint);
  color: #fff;
  border-radius: 30px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.type-card h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 900;
  color: var(--deep);
  margin-bottom: 12px;
}
.type-card p { font-size: 14.5px; font-weight: 500; line-height: 1.9; }
.type-card strong { color: var(--deep); font-weight: 900; }
.type-desc { margin-bottom: 14px; }
/* 部屋数の早見表 */
.type-rooms {
  background: #f2f8f4;
  border-radius: 14px;
  padding: 14px 16px;
}
.type-rooms-label {
  font-size: 12.5px !important;
  font-weight: 900 !important;
  color: var(--green);
  margin-bottom: 8px;
}
.type-rooms ul { font-size: 14px; }
.type-rooms li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #cfe0d6;
}
.type-rooms li:last-child { border-bottom: none; }
.type-rooms li span { font-weight: 500; color: var(--green); }
.type-rooms li strong {
  font-size: 1.25em;
  font-weight: 900;
  color: var(--deep);
  white-space: nowrap;
}
.type-example {
  background: #f2f8f4;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px !important;
  line-height: 1.85 !important;
}

.hojo-table-wrap { max-width: 900px; margin: 0 auto clamp(20px, 2.5vw, 32px); overflow-x: auto; }
.hojo-sub {
  max-width: 900px;
  margin: clamp(24px, 3vw, 40px) auto 12px;
  font-weight: 900;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--yellow);
}
.hojo-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  color: var(--deep);
  border-radius: 18px;
  overflow: hidden;
  font-size: clamp(14px, 1.3vw, 16px);
}
.hojo-table th {
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
}
.hojo-table td {
  padding: 16px;
  border-top: 1px solid #e3ede8;
  font-weight: 500;
  line-height: 1.7;
  vertical-align: middle;
}
.hojo-table small { opacity: 0.75; }
.hojo-rate {
  font-family: var(--font-gothic);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--green);
  white-space: nowrap;
}
.hojo-notes {
  max-width: 860px;
  margin: 0 auto;
  list-style: disc;
  padding-left: 24px;
  font-weight: 500;
  font-size: clamp(13.5px, 1.25vw, 15px);
  line-height: 1.9;
}

/* ---- プラスαの提案 ---- */
.plus-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.plus-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 22px;
  border-left: 6px solid var(--mint);
  box-shadow: 0 4px 18px rgba(29, 120, 96, 0.07);
}
.plus-icon {
  width: 76px;
  height: 76px;
  background: #f2f8f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 14px;
}
.plus-icon img { width: 100%; height: 100%; object-fit: contain; }
.plus-card h3 {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 900;
  color: var(--deep);
  margin-bottom: 10px;
}
.plus-card p { font-size: 14.5px; font-weight: 500; line-height: 1.9; }
/* 補助でまかなわれる分と自己負担分の対比 */
.cost-split {
  max-width: 900px;
  margin: clamp(28px, 3.5vw, 48px) auto 0;
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 6px 24px rgba(29, 120, 96, 0.08);
}
.cost-split-title {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 900;
  color: var(--deep);
  text-align: center;
  margin-bottom: clamp(18px, 2.2vw, 26px);
}
.cost-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.cost-col { border-radius: 18px; padding: 20px; }
.cost-col--free { background: #eaf6ee; }
.cost-col--paid { background: #f6f2e8; }
.cost-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 900;
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--deep);
  margin-bottom: 12px;
}
.cost-badge {
  background: var(--green);
  color: #fff;
  border-radius: 30px;
  padding: 3px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.cost-badge--paid { background: #c79a3c; }
.cost-col ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.95;
}
.cost-col--free li { color: var(--green); }
.cost-col--paid li { color: #8a6d28; }
.cost-split-note {
  margin-top: clamp(16px, 2vw, 22px);
  padding-top: 16px;
  border-top: 1px dashed #cfe0d6;
  font-size: clamp(13.5px, 1.3vw, 15px);
  font-weight: 500;
  line-height: 1.95;
}
.cost-split-note strong { color: var(--deep); font-weight: 900; }

/* ---- 10年後の機能復旧 ---- */
.renew-lead {
  max-width: 760px;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.1;
  text-align: center;
}
.renew-lead p { margin-bottom: 0.6em; }
.renew-lead strong {
  font-weight: 900;
  color: var(--deep);
  background: linear-gradient(transparent 65%, var(--yellow) 65%);
}
.renew-cards {
  max-width: 860px;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.renew-card {
  background: var(--green);
  color: #fff;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 30px);
  text-align: center;
}
.renew-rate {
  font-family: var(--font-en);
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.1;
  color: var(--yellow);
  margin-bottom: 10px;
}
.renew-rate span {
  font-family: var(--font-base);
  font-size: 0.36em;
  font-weight: 700;
  padding: 0 0.15em;
}
.renew-card h3 {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 900;
  margin-bottom: 10px;
}
.renew-text { font-size: 14.5px; font-weight: 500; line-height: 1.9; }
.renew-note {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 3px dashed var(--mint);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
}
.renew-note h3 {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--deep);
  margin-bottom: 14px;
}
.renew-note ul {
  list-style: disc;
  padding-left: 22px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.95;
  margin-bottom: 16px;
}
.renew-note strong { color: var(--deep); }
.renew-cta-text {
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 700;
  line-height: 1.95;
  color: var(--deep);
  padding-top: 14px;
  border-top: 1px dashed #bcd9cb;
}

.flow-list {
  max-width: 780px;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  list-style: none;
  display: flex;
  flex-direction: column;
}
.flow-list li {
  display: flex;
  gap: 20px;
  padding: 0 0 28px 0;
  position: relative;
}
.flow-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 54px;
  bottom: 0;
  border-left: 3px dashed #bcd9cb;
}
.flow-num {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-gothic);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.flow-list h3 {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--deep);
  margin: 12px 0 6px;
}
.flow-list p { font-size: 14.5px; font-weight: 500; line-height: 1.9; }
.flow-caution {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 3px dashed var(--mint);
  border-radius: 20px;
  padding: 22px 26px;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 500;
  line-height: 1.9;
}
.flow-caution strong { color: var(--deep); }

/* FAQ: カード型の横自動スクロール */
.faq-carousel {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 26px);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px max(24px, calc((100vw - 1100px) / 2)) 16px;
  cursor: grab;
}
.faq-carousel::-webkit-scrollbar { display: none; }
.faq-carousel.dragging { cursor: grabbing; }
.faq-card {
  flex: 0 0 min(84vw, 380px);
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 2.6vw, 30px);
  box-shadow: 0 6px 22px rgba(29, 120, 96, 0.08);
  user-select: none;
}
.faq-q {
  font-family: var(--font-en);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  color: var(--mint);
  margin-bottom: 10px;
}
.faq-card h3 {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 900;
  color: var(--deep);
  line-height: 1.6;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cfe0d6;
}
.faq-a { font-size: 14.5px; font-weight: 500; line-height: 1.95; }
.faq-a strong { color: var(--deep); }

.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(29, 120, 96, 0.07);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 52px;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--deep);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 20px;
  top: 16px;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--mint);
  font-size: 1.2em;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 1.5em;
  color: var(--green);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px 52px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.9;
}

.sub-cta { text-align: center; padding: clamp(40px, 6vw, 80px) 24px; }
.sub-cta-copy {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.back-home {
  display: block;
  width: fit-content;
  margin: clamp(24px, 3vw, 40px) auto 0;
  font-weight: 700;
  color: var(--deep);
  font-size: 15px;
}
.back-home:hover { text-decoration: underline; }
.sub-footer {
  background: var(--deep);
  color: #fff;
  padding: 24px;
  text-align: center;
}

/* ---- 対象エリアチェック(ページ内埋め込み) ---- */
.area-check {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: clamp(26px, 3.4vw, 44px);
  color: var(--green);
  scroll-margin-top: 100px;
}
.ac-head { text-align: center; margin-bottom: clamp(18px, 2.2vw, 26px); }
.ac-en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--mint);
}
.ac-title {
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 900;
  color: var(--deep);
  margin: 4px 0 10px;
}
.ac-lead { font-size: 14.5px; font-weight: 500; line-height: 1.85; }

.ac-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ac-mark { font-weight: 900; font-size: 22px; color: var(--deep); }
#ac-zip {
  flex: 1;
  min-width: 150px;
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 13px 16px;
  font-family: var(--font-base);
  font-size: 21px;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.12em;
  outline: none;
  background: #fff;
}
#ac-zip:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(48, 156, 89, 0.2);
}

.ac-result {
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.85;
  margin-bottom: 18px;
}
.ac-result-title { font-weight: 900; font-size: 16.5px; margin-bottom: 6px; }
.ac-result.is-high { background: #e8f6ee; border: 2px solid var(--green); color: var(--deep); }
.ac-result.is-check { background: #fdf9e3; border: 2px solid #d8c332; color: #6b5e00; }
.ac-result.is-out { background: #f3f3f3; border: 2px solid #bbb; color: #555; }
.ac-result.is-invalid { background: #fdeeee; border: 2px solid #d88; color: #a33; }

.ac-worktype { margin-bottom: 18px; }
.ac-worktype-title { font-weight: 900; color: var(--deep); margin-bottom: 10px; font-size: 15px; }
.ac-worktype-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-wt-btn {
  border: 2px solid var(--green);
  background: #fff;
  color: var(--green);
  border-radius: 14px;
  padding: 13px 10px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.55;
  cursor: pointer;
  transition: 0.2s;
}
.ac-wt-btn:hover { background: #e8f6ee; }
.ac-wt-btn.active { background: var(--green); color: #fff; }
.ac-wt-info {
  margin-top: 14px;
  background: #f4faf6;
  border-radius: 16px;
  padding: 20px;
}
.ac-wt-info h4 { color: var(--deep); font-size: 16px; margin-bottom: 10px; }
.ac-wt-info ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}
.ac-wt-info strong { color: var(--green); font-weight: 900; }
.ac-disclaimer {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.85;
  color: #6a8579;
  padding-top: 14px;
  border-top: 1px dashed #cfe0d6;
}
.ac-disclaimer a { color: var(--deep); font-weight: 700; text-decoration: underline; }

@media (max-width: 700px) {
  .sub-hero-inner { flex-direction: column; }
  .sub-hero-visual { max-width: 280px; }
  .sub-section-green { border-radius: 20px; }
  .ac-worktype-buttons { grid-template-columns: 1fr; }
  .flow-list li { gap: 14px; }
  .flow-num { flex-basis: 44px; height: 44px; font-size: 19px; }
  .flow-list li:not(:last-child)::before { left: 22px; top: 46px; }
}

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 1180px) {
  .side-copy { display: none; }
}

/* ナビが折り返す前にハンバーガーメニューへ切り替え */
@media (max-width: 1200px) {
  html { scroll-padding-top: 70px; }
  .global-nav {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    margin: 12px 16px 0;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s;
  }
  .global-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-radius: 24px;
  }
  .global-nav li { border-bottom: 1px solid #eee; }
  .global-nav li:last-child { border-bottom: none; }
  .global-nav a {
    display: block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
  }
  /* ハンバーガー: 白丸+緑の二本線、ヘッダー右端に配置 */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    width: 46px;
    height: 46px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(29, 120, 96, 0.16);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: 0.25s;
  }
  /* 二本線デザインのため3本目は使わない */
  .menu-toggle span:nth-child(3) { display: none; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .header-tel { margin-left: auto; padding: 8px 20px; }
  .tel-copy { font-size: 12px; }
  .tel-number { font-size: 22px; }
}

@media (max-width: 900px) {
  .header-inner { padding: 10px 16px; }
  .logo { font-size: 17px; }
  .header-tel { display: none; }

  /* ヒーロー: 見やすさ優先で装飾を整理 */
  .hero { padding-top: 100px; min-height: 0; padding-bottom: 40px; }
  .hd-house-tall, .hd-house-left, .hd-shape-b { display: none; }
  .hd-blob-left { left: -24%; top: 30%; width: 60%; }
  .hd-blob-right { right: -22%; top: 2%; width: 55%; }
  .hd-circle-right { display: none; }
  .hd-hex { left: 4%; top: 4%; width: 22%; }
  .hd-shape-a { right: 4%; left: auto; top: 6%; width: 22%; }
  .hd-hand { position: static; width: min(70%, 340px); margin: 24px auto 0; display: block; }
  .hero-decor { position: static; }
  .hero-decor .hd:not(.hd-hand) { position: absolute; }
  .hero { display: flex; flex-direction: column; }
  .hero-text { padding-top: 40px; }
  .hero-lead { line-height: 2; }

  .heritage-copy { font-size: clamp(40px, 11vw, 80px); top: 4%; }

  .care-inner { flex-direction: column; }
  .care-visual { flex: none; width: min(60%, 300px); }
  .care-body { text-align: center; }
  .care-text { text-align: left; line-height: 2; }

  .sound-main { flex-direction: column; }
  .sound-vertical {
    writing-mode: horizontal-tb;
    max-height: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 16px;
    display: inline-block;
  }
  .sound-textcol { flex-direction: column; }
  .sound-desc { max-width: none; line-height: 2; }
  .sound-visual { flex: none; width: min(80%, 380px); margin: 0 auto; }
  .sound-hook { flex-direction: column; }
  .sound-hook-visual { max-width: 300px; order: -1; }
  .sound-hook-lead { max-width: none; }
  .merit { gap: 16px; }
  .sound-alert { flex-direction: column; text-align: left; align-items: flex-start; }

  .works-bg-text {
    writing-mode: horizontal-tb;
    transform: none;
    top: 0;
    left: -0.1em;
    font-size: clamp(80px, 22vw, 160px);
  }

  /* 縦書きのまま、本文の上に中央寄せで置く */
  /* 2行を縦に積む(横書き) */
  .outline-message-title {
    order: 0;
    width: 100%;
    writing-mode: horizontal-tb;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2em;
    min-height: 0;
    height: auto;
    line-height: 1.5;
    font-size: clamp(24px, 6.5vw, 32px);
  }
  .outline-card { min-height: 0; }
  .outline-card-text { align-self: flex-start; }
  .info-card .outline-card-en { text-align: left; }
  .info-list dt { flex: 0 0 5.5em; }
  .info-list div { font-size: 15px; }

  /* スマホ用電話バー */
  .sp-tel-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
    background: var(--green);
    color: #fff;
    border-radius: 40px;
    padding: 12px;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 24px rgba(29, 120, 96, 0.4);
  }
  .sp-tel-icon { font-size: 22px; }
  .sp-tel-note {
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
    letter-spacing: 0;
  }
  body { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(38px, 11vw, 48px); }
  .tel-button { padding: 14px 24px; width: 100%; max-width: 340px; }
  .tel-button-number { font-size: clamp(22px, 6.4vw, 26px); letter-spacing: 0.08em; white-space: nowrap; }
  .tel-button-hours { font-size: 11px; }
  .git-tel { font-size: clamp(24px, 7vw, 30px); letter-spacing: 0.08em; white-space: nowrap; }
  .git-hours { font-size: 11px; }
  .hero-sub { font-size: clamp(16px, 4.6vw, 20px); }
  .worries li { font-size: 16px; padding: 12px 22px; }
  .sound-card { border-radius: 18px; margin: 0 12px; }
  .s-card { flex-basis: 86vw; }
  .s-card-body { flex-direction: column; }
  .s-card-visual { width: 130px; margin: 0 auto; }
  .soundproof { border-radius: 24px; padding: 32px 20px; }
  .merit { flex-direction: column; align-items: flex-start; gap: 14px; }
  .merit-visual { flex-basis: 84px; width: 84px; }
  .sound-hook-actions { flex-direction: column; align-items: stretch; }
  .sound-hook-actions .pill-button { text-align: center; }
  .torn-photo { flex-basis: 74vw; }
  .git-pill { border-radius: 60px; }
  .outline-card-content { padding: 28px 22px; }
  .info-list div { flex-direction: column; gap: 0; margin-bottom: 10px; }
  .info-list dt { opacity: 0.7; font-size: 13px; }
}

/* ============================================================
   下層ページ改善(2026-08-11 デザインレビュー反映)
============================================================ */

/* ① 本文の読める化: 長文はインク色・サイズ底上げ。緑は見出しとアクセントに限定 */
:root { --ink: #22463a; }
body.subpage { color: var(--ink); }
.sub-lead-box,
.type-card p,
.plus-card p,
.faq-a,
.renew-text,
.renew-note ul,
.flow-list p,
.cost-col ul,
.hojo-notes,
.type-note,
.ac-lead,
.ac-wt-info ul {
  color: var(--ink);
}
.type-card p, .plus-card p, .faq-a, .renew-text, .flow-list p { font-size: 15.5px; }
/* 緑背景の上はインク色ではなく白のまま */
.sub-section-green .hojo-notes { color: #fff; }
.renew-card .renew-text { color: #fff; }
.renew-note ul, .cost-col ul, .ac-wt-info ul { font-size: 15px; }
.hojo-notes { font-size: clamp(14px, 1.3vw, 15.5px); }
.type-note { font-size: 14px; }
.type-example { font-size: 14.5px !important; }
.ac-lead { font-size: 15.5px; }
.area-check { color: var(--ink); }
.ac-disclaimer { color: #55705f; font-size: 13px; }
.cost-col--free li { color: var(--ink); }
.cost-col--paid li { color: #6b5320; }

/* ⑤ 折りたたみ(詳細すぎる正確さはたたむ) */
.fold {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
}
.fold summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  color: inherit;
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "▸ "; }
.fold[open] summary::before { content: "▾ "; }
.fold p {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 16px;
  line-height: 1.85;
  font-weight: 500;
}
.fold-onwhite {
  max-width: 1100px;
  margin: 10px auto 0;
  color: var(--ink);
}
.fold-onwhite p { background: #eef4f0; }

/* ④ チェッカーの格上げ */
.area-check {
  border: 3px solid var(--yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.ac-first {
  font-weight: 900;
  font-size: 14px;
  color: var(--green);
  margin-bottom: 4px;
}
.area-detail-label {
  max-width: 760px;
  margin: clamp(28px, 3.5vw, 40px) auto 14px;
  font-weight: 900;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--yellow);
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

/* ③ 「0円」の山場 */
.hojo-hero {
  text-align: center;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
}
.hojo-hero-label {
  font-weight: 900;
  font-size: clamp(16px, 1.7vw, 21px);
  margin-bottom: 2px;
}
.hojo-hero-num {
  font-family: var(--font-en);
  font-size: clamp(88px, 12vw, 150px);
  line-height: 1.05;
  color: var(--yellow);
}
.hojo-hero-num span {
  font-family: var(--font-base);
  font-weight: 900;
  font-size: 0.32em;
  padding-left: 0.1em;
}
.hojo-hero-sub {
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.95;
  opacity: 0.95;
}
.hojo-rate small { display: block; font-size: 0.62em; opacity: 0.85; }
.hojo-table td small { font-size: 0.72em; padding: 0 0.05em; }

/* ⑦ 警告は琥珀色で「止まって読む」見た目に */
.flow-caution {
  background: #fdf9e3;
  border: none;
  border-left: 8px solid #d8c332;
  border-radius: 14px;
  color: var(--ink);
}
.caution-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #8a6d28;
  margin-bottom: 10px;
}
.caution-mark {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #d8c332;
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-caution strong { color: #8a6d28; }
.flow-contact { border-top-color: #e3d9a0; }

/* ⑥ トップの世界観を後半へ: 英字ウォーターマークとキャラ */
.has-bg-en { position: relative; overflow: hidden; }
.sub-bg-en {
  position: absolute;
  top: 0.05em;
  left: -0.04em;
  font-family: var(--font-en);
  font-size: clamp(80px, 12vw, 190px);
  line-height: 1;
  color: var(--green);
  mix-blend-mode: color-burn;
  opacity: 0.55;
  white-space: nowrap;
  pointer-events: none;
}
.sub-face {
  position: absolute;
  top: clamp(56px, 8vw, 120px);
  right: clamp(8px, 5vw, 90px);
  width: clamp(70px, 8vw, 120px);
  pointer-events: none;
  animation: hd-float 6.5s ease-in-out infinite;
}
.sub-face img { width: 100%; display: block; }

/* ⑥ アイコンのポップイン */
.plus-icon { transform: scale(0); opacity: 0; }
.plus-card.visible .plus-icon {
  animation: pop-in 0.7s cubic-bezier(0.34, 1.45, 0.5, 1) 0.1s forwards;
}
.flow-num { transform: scale(0); opacity: 0; }
.flow-list li.visible .flow-num {
  animation: pop-in 0.6s cubic-bezier(0.34, 1.45, 0.5, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .plus-icon, .flow-num, .sub-face {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 700px) {
  .sub-face { top: 40px; width: 64px; }
  .hojo-hero-num { font-size: clamp(72px, 22vw, 100px); }
}

/* ---- 下層ページ共通フッター(トップのOUTLINEパネルと同デザイン) ---- */
.site-footer {
  margin-top: clamp(48px, 6vw, 90px);
  padding-bottom: clamp(24px, 3vw, 48px);
}
.footer-cta-copy {
  text-align: center;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.footer-logo { font-weight: 900; font-size: clamp(18px, 1.8vw, 22px); }
.footer-tagline {
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.85;
  margin: 4px 0 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: 14.5px;
  font-weight: 700;
  opacity: 0.95;
}
.footer-nav a::before { content: "▸ "; color: var(--yellow); }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .info-list { color: #fff; }
.site-footer .license-list { margin-top: 18px; }
.site-footer .get-in-touch { margin-bottom: clamp(28px, 3.5vw, 48px); }

/* ---- 暮らしのシーン別・抱き合わせ提案 ---- */
.scene-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  /* 4枚を2×2で揃える */
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.scene-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(22px, 2.6vw, 32px);
  border-top: 8px solid var(--scene, var(--mint));
  box-shadow: 0 6px 24px rgba(29, 120, 96, 0.08);
  display: flex;
  flex-direction: column;
}
.scene-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.scene-icon {
  flex: 0 0 72px;
  height: 72px;
  background: #f2f8f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
}
.scene-icon img { width: 100%; height: 100%; object-fit: contain; }
.scene-for {
  display: inline-block;
  background: var(--scene, var(--mint));
  color: #fff;
  border-radius: 30px;
  padding: 3px 14px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.scene-card h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 900;
  color: var(--deep);
  line-height: 1.3;
}
.scene-lead {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 12px;
}
.scene-list {
  list-style: none;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scene-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
}
.scene-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 900;
  color: var(--scene, var(--mint));
}
.scene-note {
  margin-top: auto;
  background: #f2f8f4;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--ink);
}
.scene-note strong { color: var(--deep); }

/* ほかの「ついで」チップ */
.plus-more {
  max-width: 1100px;
  margin: clamp(20px, 2.6vw, 32px) auto 0;
}
.plus-more-title {
  font-weight: 900;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--deep);
  margin-bottom: 10px;
}
.plus-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plus-more-list li {
  background: #fff;
  border: 1px solid #b9d3c4;
  border-radius: 30px;
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

/* シーンカードの写真 */
.scene-photo {
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #e7efe9;
}
.scene-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* シーンカード内の費用目安 */
.scene-price {
  margin-bottom: 14px;
  border: 1px solid #dbe8e0;
  border-radius: 14px;
  overflow: hidden;
}
.scene-price-title {
  background: var(--scene, var(--mint));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 16px;
}
.scene-price dl { padding: 4px 16px; }
.sp-row { padding: 10px 0; }
.sp-row + .sp-row { border-top: 1px dashed #dbe8e0; }
.sp-row dt {
  font-size: 14px;
  font-weight: 900;
  color: var(--deep);
  margin-bottom: 4px;
}
.sp-row dd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink);
}
.sp-alone { color: #6a8579; }
.sp-alone::before { content: "単独 "; font-size: 11px; font-weight: 900; color: #9ab3a6; margin-right: 2px; }
.sp-with { position: relative; padding-left: 18px; }
.sp-with::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: 900;
  color: var(--scene, var(--mint));
}
.sp-with strong { color: var(--deep); }

/* 費用目安の注意書き */
.scene-disclaimer {
  max-width: 1100px;
  margin: clamp(24px, 3vw, 40px) auto 0;
  background: #fdf9e3;
  border-left: 8px solid #d8c332;
  border-radius: 14px;
  padding: clamp(18px, 2.4vw, 28px);
}
.scene-disclaimer-title {
  font-weight: 900;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  color: #8a6d28;
  margin-bottom: 10px;
}
.scene-disclaimer ul {
  list-style: disc;
  padding-left: 22px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink);
}
.scene-disclaimer li { margin-bottom: 4px; }
.scene-disclaimer strong { color: #8a6d28; }

/* 工事の種類カード: 色分け+アイコンで見分けやすく */
.type-card { border-top: 8px solid var(--scene, var(--mint)); }
.type-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.type-head h3 { margin-bottom: 0; }
.type-head .type-case { margin-bottom: 6px; }
.type-icon {
  flex: 0 0 64px;
  height: 64px;
  background: #f2f8f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
}
.type-icon img { width: 100%; height: 100%; object-fit: contain; }
.type-rooms li strong { color: var(--scene, var(--deep)); }

/* 商品カード(写真枠+ビフォーアフター価格) */
.goods-list {
  margin-bottom: 14px;
  border: 1px solid #dbe8e0;
  border-radius: 16px;
  overflow: hidden;
}
.goods-list-title {
  background: var(--scene, var(--mint));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 16px;
}
.goods {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  align-items: flex-start;
}
.goods + .goods { border-top: 1px dashed #dbe8e0; }
.goods-photo {
  flex: 0 0 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f8f4;
}
.goods-photo img { width: 100%; height: 100%; object-fit: cover; }
.goods-photo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #c3d8cc;
  background: #f7faf8;
  color: #9ab3a6;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}
.goods-main { flex: 1; min-width: 0; }
.goods-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--deep);
  line-height: 1.5;
}
.goods-name small { font-size: 0.82em; font-weight: 700; margin-left: 2px; }
.goods-maker {
  font-size: 12px;
  font-weight: 500;
  color: #6a8579;
  margin: 1px 0 8px;
}
.goods-name + .goods-price { margin-top: 8px; }
.goods-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.gp {
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13.5px;
  line-height: 1.6;
}
.gp span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.gp strong { font-weight: 900; font-size: 1.05em; }
.gp em { font-style: normal; font-size: 0.86em; margin-left: 6px; opacity: 0.85; }
.gp-alone { background: #f1f3f2; color: #5c6f66; }
.gp-alone span { color: #93a59b; }
.gp-with { background: color-mix(in srgb, var(--scene, #3cb891) 14%, #fff); color: var(--ink); }
.gp-with span { color: var(--scene, var(--mint)); }
.gp-with strong { color: var(--deep); }
.goods-hint {
  font-size: 12.5px !important;
  font-weight: 500;
  line-height: 1.75 !important;
  color: #55705f !important;
}
.goods-hint strong { color: #8a6d28; }

@media (max-width: 560px) {
  .goods { flex-direction: row; }
  .goods-photo { flex-basis: 72px; height: 72px; }
}

/* ラベルの可読性改善: 緑ピルをやめ、濃色文字+カラーバーに(折返しも自然に) */
.type-case,
.scene-for {
  display: block;
  background: none;
  color: var(--deep);
  border-left: 4px solid var(--scene, var(--mint));
  border-radius: 0;
  padding: 1px 0 1px 9px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.scene-for { margin-bottom: 6px; }
/* ラベルや見出しが単語の途中で切れないように */
.type-head h3,
.scene-card h3,
.goods-name {
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-break: strict;
}
.type-head { align-items: flex-start; }
.type-head > div { flex: 1; min-width: 0; }
.type-head .type-case { margin-top: 6px; }

/* 商品と防音工事の関係を色で示すタグ */
.goods-list-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.goods-list-note {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.9;
}
.goods-tag {
  display: inline-block;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.65;
  margin-bottom: 5px;
}
/* 防音工事の対象品をグレードアップ → 差額のみ */
.tag-diff { background: #e8f6ee; color: #1d7860; border: 1px solid #a9d9bf; }
/* 全額自己負担だが同時施工でおトク */
.tag-same { background: #fdf9e3; color: #8a6d28; border: 1px solid #e3d9a0; }
/* 防音工事とは別の制度が使える */
.tag-other { background: #eaf3f8; color: #2a6a86; border: 1px solid #b3d5e5; }

/* 3パターンの凡例 */
.relation-legend {
  max-width: 1100px;
  margin: 0 auto clamp(24px, 3vw, 36px);
  background: #fff;
  border-radius: 20px;
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: 0 4px 18px rgba(29, 120, 96, 0.07);
}
.relation-legend-title {
  font-weight: 900;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--deep);
  margin-bottom: 14px;
  text-align: center;
}
.relation-legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}
.rl p {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
}
.rl strong { color: var(--deep); font-weight: 900; }

/* ---- 信頼の裏づけバー(下層ページ) ---- */
.trust-bar {
  max-width: 1100px;
  margin: 0 auto clamp(24px, 3vw, 40px);
  padding: 0 24px;
}
.trust-inner {
  background: #fff;
  border-radius: 24px;
  padding: clamp(22px, 2.8vw, 32px);
  box-shadow: 0 6px 24px rgba(29, 120, 96, 0.08);
}
.trust-lead {
  text-align: center;
  font-size: clamp(14px, 1.4vw, 16.5px);
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: clamp(16px, 2vw, 22px);
  padding-bottom: clamp(14px, 1.8vw, 20px);
  border-bottom: 1px dashed #cfe0d6;
}
.trust-lead strong { color: #8a6d28; font-weight: 900; }
.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}
.trust-list li { display: flex; align-items: center; gap: 12px; }
.trust-badge {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 26px;
  line-height: 1;
}
.trust-badge--text {
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 900;
  flex-direction: column;
  gap: 0;
}
.trust-badge--text small { font-size: 0.62em; font-weight: 700; }
.trust-body {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  color: #55705f;
}
.trust-body strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--deep);
  margin-bottom: 1px;
}
.pc-only { display: inline; }
@media (max-width: 700px) {
  .pc-only { display: none; }
  .trust-badge { flex-basis: 48px; height: 48px; font-size: 22px; }
}

/* 工事の種類は2×2に(4カラムだと窮屈で見出しが折り返す) */
.type-grid {
  max-width: 1000px;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.type-card { padding: clamp(24px, 3vw, 32px); }
.type-head { gap: 16px; }
.type-head h3 { font-size: clamp(20px, 2vw, 24px); }
.type-case { font-size: 13.5px; }

/* コピーライトは細く小さく */
.copyright {
  font-weight: 400;
  font-size: clamp(10.5px, 0.95vw, 12px);
  letter-spacing: 0.02em;
  opacity: 0.72;
}

/* 施工事例: 元請がある案件の役割表記 */
.case-tags .tag-role {
  border-color: #d8c332;
  background: #fdf9e3;
  color: #8a6d28;
  font-weight: 700;
}

/* ============================================================
   スマホ微調整(2026-08-12)
============================================================ */
@media (max-width: 700px) {
  /* 国の制度でできること: イラストを中央・やや大きく(縦長の楕円化も解消) */
  .merit { flex-direction: column; align-items: stretch; gap: 12px; }
  .merit-visual {
    flex: 0 0 auto;
    width: 116px;
    height: 116px;
    aspect-ratio: auto;
    margin: 0 auto;
    padding: 16px;
  }

  /* ボタンの中途半端な改行を防ぐ */
  .pill-button { white-space: nowrap; font-size: 14.5px; padding: 13px 22px; }
  .sound-pill { white-space: nowrap; }

  /* カルーセルの案内: 余白を詰めてスワイプマークに */
  .subsidy-carousel, .faq-carousel { padding-bottom: 6px; }
  .carousel-hint { margin-top: 4px; font-size: 0; }
  .carousel-hint::before {
    content: "← スワイプできます →";
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--deep);
    background: #fff;
    border: 1px solid #cfe0d6;
    border-radius: 30px;
    padding: 5px 16px;
  }
}

@media (max-width: 900px) {
  /* フッターが下で切れて見える対策: 緑パネルを電話バーの裏まで伸ばす */
  body { padding-bottom: 0; }
  .outline-panel { padding-bottom: 104px; }
}

/* キャラクターをセクション見出しの上に大きめに配置(PLUS/RENEWAL) */
.has-bg-en { padding-top: clamp(130px, 15vw, 200px); }
.sub-face {
  top: clamp(8px, 1.6vw, 20px);
  left: 50%;
  right: auto;
  width: clamp(104px, 12vw, 150px);
  --tf: translateX(-50%);
}

/* 信頼バッジ: 文字が円からはみ出す崩れを修正 */
.trust-badge--text {
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  padding: 2px;
}
.trust-badge--text small { font-size: 9.5px; }
@media (max-width: 700px) {
  .trust-badge { flex: 0 0 52px; height: 52px; font-size: 22px; }
  .trust-badge--text { font-size: 11.5px; }
  .trust-badge--text small { font-size: 8.5px; }
}
