/* =========================================================
   株式会社雅工業 コーポレートサイト  共通スタイル
   - 配色・書体・構成は Wix 版（zonehkn.wixstudio.com/my-site-31）を踏襲
   - 書体: Wix 版は「ＭＳ Ｐ明朝」指定（Windows専用）＋カスタムフォント（実体は Noto Serif JP）
     → 全環境で同じ見た目になるよう Noto Serif JP（Google Fonts）に統一
   - 余白・文字サイズ・行間・字間を統一スケールで再設計
   ========================================================= */

:root {
  /* パレット（Wix 実測値） */
  --ink: #222122;           /* 本文・見出し rgb(34,33,34) */
  --ink-soft: #5a5657;      /* 補足・ロゴのグレー */
  --gray: #8a8688;
  --line: #e4dfd8;
  --purple: #7c4c99;        /* ボタン枠 rgb(124,76,153) */
  --purple-deep: #702388;   /* ロゴの紫 */
  --orange: #f2701f;        /* ロゴのオレンジ（アクセント用・多用しない） */
  --cream: #fcf8f1;         /* フッター rgb(252,248,241) */
  --cream-deep: #f6efe3;
  --white: #ffffff;

  --font: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;

  /* レイアウト */
  --w-content: 900px;
  --w-wide: 1152px;
  --w-max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 110px;

  /* 余白スケール */
  --sec-pad: clamp(80px, 9vw, 128px);
  --sec-pad-s: clamp(56px, 6vw, 88px);
  --block-gap: clamp(40px, 5vw, 72px);
  --head-gap: clamp(36px, 4vw, 56px);

  /* 文字スケール */
  --fs-eyebrow: 13px;
  --fs-h2: clamp(22px, 1.9vw, 26px);
  --fs-h2-l: clamp(26px, 2.4vw, 34px);
  --fs-h3: clamp(18px, 1.5vw, 21px);
  --fs-lead: clamp(16px, 1.25vw, 18px);
  --fs-body: 15px;
  --fs-small: 13px;

  --radius: 2px;
  --shadow-card: 0 10px 30px rgba(34, 33, 34, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
picture { display: contents; }  /* WebP 配信用の <picture> がレイアウトに影響しないように */
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 8px 14px; background: var(--ink); color: #fff; font-size: 13px; }
.skip-link:focus { top: 8px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 共通コンテナ ---------- */
.container { width: min(var(--w-content), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.container-wide { width: min(var(--w-wide), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.section { padding: var(--sec-pad) 0; }
.section-s { padding: var(--sec-pad-s) 0; }
.bg-cream { background: var(--cream); }
.pt-0 { padding-top: 0; }

/* 見出しセット
   .sec-title  … 「What We Do」「About us」「News」「Contact」型（26px・太字・字間0.2em）
   .sec-label  … 「Quality ｜ 品質と安全」型（英字＋和文ラベル）      */
.sec-head { text-align: center; }
.sec-head.is-left { text-align: left; }
.sec-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
}
.sec-head:not(.is-left) .sec-title { text-indent: 0.2em; }
.sec-label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  line-height: 1.6;
}
.sec-label + .sec-title, .sec-label + .sec-title-l { margin-top: 14px; }
.sec-title-l {
  font-size: var(--fs-h2-l);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.7;
}
.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  line-height: 1.6;
}
.sec-head + .lead, .sec-head + .text, .sec-head + .sec-body { margin-top: var(--head-gap); }
.lead {
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.12em;
}
.text { font-size: var(--fs-body); line-height: 2; letter-spacing: 0.08em; }
.text + .text { margin-top: 1.4em; }
.text.is-center { text-align: center; }
.small { font-size: var(--fs-small); line-height: 1.9; color: var(--ink-soft); }
.note { font-size: var(--fs-small); line-height: 1.9; color: var(--ink-soft); }
.u-center { text-align: center; }
.mt-head { margin-top: var(--head-gap); }
.mt-block { margin-top: var(--block-gap); }

/* ---------- ボタン（Wix: 白地・紫の1px枠・丸ピル・黒文字14px） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  height: 56px;
  padding: 0 36px;
  border-radius: 999px;
  border: 1px solid var(--purple);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--purple); color: #fff; }
.btn-fill { background: var(--purple); color: #fff; }
.btn-fill:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.btn-sm { min-width: 0; height: 46px; padding: 0 26px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.btn-row.is-center { justify-content: center; }
.text-link { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--purple); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
body.is-home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 rgba(34, 33, 34, 0.06), 0 8px 24px rgba(34, 33, 34, 0.05); }
.header-inner {
  height: 100%;
  width: 100%;
  padding: 0 clamp(20px, 3.2vw, 56px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* PCナビをページ中央に: ロゴと右側ブロックを同じ幅にしてナビを真ん中へ */
@media (min-width: 1101px) {
  .header-inner > .brand, .header-inner > .header-actions { flex: 1 0 0; min-width: 0; }
  .header-inner > nav { flex: 0 0 auto; }
  .header-actions { justify-content: flex-end; }
}
.brand svg, .brand img { width: 37px; height: 33px; }
.brand .brand-name { font-size: 20px; letter-spacing: 0.05em; line-height: 1; color: var(--ink); white-space: nowrap; }
.gnav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 40px); }
.gnav > li { position: relative; }
.gnav a, .gnav .has-sub > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: 0.22em;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.2s ease;
}
.gnav a:hover, .gnav .has-sub > button:hover { color: var(--purple); }
.gnav .is-current > a { text-decoration: underline; text-underline-offset: 0.5em; text-decoration-thickness: 1px; }
.gnav .chev { width: 10px; height: 7px; fill: currentColor; transition: transform 0.25s ease; }
.gnav .has-sub:hover .chev, .gnav .has-sub:focus-within .chev, .gnav .has-sub.is-open .chev { transform: rotate(180deg); }
.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 240px;
  padding: 18px 0;
  background: #fff;
  box-shadow: 0 16px 40px rgba(34, 33, 34, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 9px 30px; font-size: 14px; letter-spacing: 0.16em; }
.sub-menu .is-child a { padding: 6px 30px 6px 46px; font-size: 13px; color: var(--ink-soft); }
.sub-menu .is-child a::before { content: "－"; margin-right: 6px; color: var(--gray); }
.sub-menu .is-child a:hover { color: var(--purple); }
.mobile-menu .sub .is-child a { padding-left: 22px; font-size: 13px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-tel { font-size: 13px; letter-spacing: 0.1em; color: var(--ink); white-space: nowrap; text-align: right; }
.header-cta { min-width: 0; height: 42px; padding: 0 24px; font-size: 13px; letter-spacing: 0.16em; }
.header-tel small { display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.08em; line-height: 1.4; }

/* ハンバーガー */
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 130;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 28px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle span:nth-child(3) { top: 32px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 24px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* モバイルメニュー（Wix: 右から白いパネル） */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 120;
  width: min(360px, 86vw);
  padding: calc(var(--header-h) + 10px) 32px 40px;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
body.menu-open .mobile-menu { transform: translateX(0); box-shadow: -20px 0 60px rgba(34, 33, 34, 0.18); }
body.menu-open::before { content: ""; position: fixed; inset: 0; z-index: 110; background: rgba(34, 33, 34, 0.5); }
.menu-close { position: absolute; top: 15px; right: 16px; width: 50px; height: 50px; }
.menu-close span { position: absolute; left: 11px; top: 24px; width: 28px; height: 1.5px; background: var(--ink); }
.menu-close span:nth-child(1) { transform: rotate(45deg); }
.menu-close span:nth-child(2) { transform: rotate(-45deg); }
@media (max-width: 760px) { .menu-close { top: 15px; right: 6px; } }
.mobile-menu > ul > li { border-bottom: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 16px 4px; font-size: 16px; letter-spacing: 0.16em; }
.mobile-menu .sub { padding: 0 0 12px 18px; }
.mobile-menu .sub a { padding: 8px 4px; font-size: 14px; color: var(--ink-soft); }
.mobile-menu .sub a::before { content: "－"; margin-right: 6px; color: var(--gray); }
.mobile-menu .mobile-tel { display: block; margin-top: 16px; padding: 0; font-size: 18px; font-weight: 600; letter-spacing: 0.06em; text-align: center; }
.mobile-menu .mobile-tel small { display: block; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.08em; }
.mobile-menu .btn { display: inline-flex; justify-content: center; text-align: center; margin: 28px auto 0; padding: 0 28px; width: auto; min-width: 200px; height: 48px; font-size: 16px; font-weight: 500; letter-spacing: 0.12em; background: var(--purple); color: #fff; border-color: var(--purple); }
.mobile-menu { text-align: center; }
.mobile-menu > ul { text-align: left; }
.mobile-menu .btn:hover { background: var(--purple-deep); }

/* ---------- ページ上部（下層） ---------- */
main { display: block; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }  /* ページ内リンク先が固定ヘッダーに隠れないように */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 6vw, 88px)) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.page-hero .eyebrow { letter-spacing: 0.3em; }
.page-hero h1 {
  margin-top: 14px;
  font-size: var(--fs-h2-l);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-indent: 0.16em;
}
.page-hero .lead { margin-top: 22px; font-weight: 400; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 22px; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); }
.breadcrumb li + li::before { content: ">"; margin-right: 10px; color: var(--gray); }
.breadcrumb .sep { color: var(--gray); }
.breadcrumb a:hover { color: var(--purple); }

/* ---------- カード・ボックス・表 ---------- */
.card { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.pale-box { background: var(--cream); padding: clamp(24px, 3vw, 40px); }
.def-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.def-table th, .def-table td { padding: 18px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.9; }
.def-table th { width: 9em; font-weight: 600; white-space: nowrap; color: var(--ink); }
.def-table tr:first-child th, .def-table tr:first-child td { border-top: 1px solid var(--line); }
.list-dot li { position: relative; padding-left: 1.2em; }
.list-dot li::before { content: "・"; position: absolute; left: 0; }

/* ステップ（Flow ｜ ご相談の流れ） */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.flow li { text-align: center; padding: 28px 12px 26px; border: 1px solid var(--line); background: #fff; }
.flow .step { display: block; font-size: 12px; letter-spacing: 0.24em; color: var(--purple); font-weight: 600; }
.flow .name { display: block; margin-top: 8px; font-size: 17px; font-weight: 600; letter-spacing: 0.1em; }
.flow .desc { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.8; }

/* FAQ（アコーディオン: js/main.js の .acc-q） */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.acc-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.acc-q::before { content: "Q."; flex-shrink: 0; color: var(--purple); font-weight: 600; margin-right: -6px; }
.acc-q > span:not(.acc-icon) { flex: 1; }
.acc-q .acc-icon { flex-shrink: 0; width: 28px; height: 28px; position: relative; }
.acc-q .acc-icon::before, .acc-q .acc-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.3s ease; }
.acc-q .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .acc-q .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.acc-a > div { overflow: hidden; }
.faq-item.is-open .acc-a { grid-template-rows: 1fr; }
.acc-a p { padding: 0 44px 24px 34px; font-size: var(--fs-body); line-height: 2; }
.acc-a p::before { content: "A."; color: var(--orange); font-weight: 600; margin-right: 8px; }

/* ---------- お問い合わせ CTA 帯（Wix: 甲府街並み写真＋暗いグラデ） ---------- */
.cta {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 8vw, 112px) 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta .cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 26, 0, 0.79) 30%, rgba(0, 0, 0, 0.56) 100%); }
.cta .sec-title { color: #fff; }
.cta .cta-text { margin: 28px auto 0; max-width: 780px; font-size: 16px; line-height: 2; letter-spacing: 0.08em; }
.cta .btn { margin-top: 40px; background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ---------- フッター（Wix: クリーム地・ロゴ2点・住所・リンク） ---------- */
.site-footer { background: var(--cream); font-size: 14px; color: var(--ink); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px clamp(48px, 7vw, 120px); padding: clamp(64px, 7vw, 96px) 0 clamp(52px, 6vw, 80px); }
.footer-logos { display: flex; align-items: center; gap: 28px; }
.footer-logos img { display: block; height: auto; }
.footer-logo { display: block; }
.footer-logos .logo-industry { width: clamp(200px, 17vw, 248px); }
.footer-logos .logo-reform { width: clamp(96px, 8vw, 116px); padding-left: 28px; border-left: 1px solid var(--line); box-sizing: content-box; }
.footer-lead { margin-top: 24px; line-height: 1.9; letter-spacing: 0.05em; color: var(--ink-soft); }
.footer-offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.footer-office { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-style: normal; line-height: 1.85; letter-spacing: 0.04em; font-size: 13px; color: var(--ink-soft); }
.footer-office .office-name { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0.08em; }
.footer-office .office-name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--purple); vertical-align: middle; }
.footer-office .office-tel { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.footer-office .office-tel a { display: block; font-size: 17px; font-weight: 600; letter-spacing: 0.06em; color: var(--purple); }
.footer-office .office-tel span { display: block; font-size: 12px; }
.footer-office .office-tel a:hover { color: var(--purple-deep); }
.footer-hours { margin-top: 14px; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: end; gap: 0 clamp(40px, 5vw, 80px); padding-top: 8px; }
.footer-col-title { padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--purple); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--purple); }
.footer-nav ul { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a { display: inline-block; padding: 5px 0; letter-spacing: 0.06em; transition: color 0.2s; }
.footer-nav .is-child a { font-size: 13px; color: var(--ink-soft); padding: 3px 0 3px 1.1em; }
.footer-nav .is-child a::before { content: "－"; margin-right: 4px; color: var(--gray); }
.footer-nav a:hover { color: var(--purple); }
.footer-bottom { border-top: 1px solid var(--line); background: var(--cream-deep); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding: 20px 0; font-size: 12px; letter-spacing: 0.05em; color: var(--ink-soft); }
.footer-creds { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--purple); }
.footer-legal small { font-size: 12px; }

/* ---------- スマホ画面下 固定CVバー（シーガル版と同じ形: 左右いっぱい・2ボタン50%ずつ・隙間なし・角丸なし） ---------- */
.cv-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 60px; }
  body.is-contact { padding-bottom: 0; }
  body.is-contact .cv-bar { display: none; }
  .cv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: stretch; background: #fff; box-shadow: 0 -8px 24px rgba(34, 33, 34, 0.12); }
  .cv-bar a { flex: 1 1 50%; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; padding: 0 10px calc(env(safe-area-inset-bottom) / 2); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; border-radius: 0; }
  .cv-bar svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cv-bar .cv-tel { background: var(--cream); color: var(--purple); }
  .cv-bar .cv-form { background: var(--purple); color: #fff; }
  body.menu-open .cv-bar { display: none; }
}

/* ---------- リフォーム小メニュー（トップ・リフォームページ） ---------- */
.sub-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub-nav-label { flex: none; margin-right: 28px; font-size: 12px; letter-spacing: 0.24em; color: var(--ink-soft); }
.sub-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
.sub-nav li { position: relative; padding: 0 22px; font-size: 14px; letter-spacing: 0.1em; line-height: 1.6; }
.sub-nav li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 1em; transform: translateY(-50%); border-left: 1px solid var(--line); }
.sub-nav a { transition: color 0.2s ease; }
.sub-nav a:hover { color: var(--purple); }
.sub-nav .is-current a { color: var(--purple); text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
.wwd-subnav { margin-top: clamp(32px, 4vw, 48px); }
.reform-subnav { margin-top: 18px; }
.page-hero + .reform-subnav { margin-top: 0; margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- 関連するサービス（外構・エコキュート・別荘ページ末尾） ---------- */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-grid a { display: block; height: 100%; padding: 20px 20px 22px; background: #fff; border: 1px solid transparent; transition: border-color 0.25s ease, transform 0.25s ease; }
.related-grid a:hover { border-color: var(--purple); transform: translateY(-2px); }
.related-grid .rel-title { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.6; }
.related-grid .rel-title::after { content: "→"; margin-left: 8px; color: var(--purple); font-weight: 400; }
.related-grid .rel-desc { display: block; margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .sub-nav { padding: 14px 0; }
  .sub-nav-label { width: 100%; margin: 0 0 4px; }
  .sub-nav li { padding: 4px 14px 4px 0; font-size: 13px; }
  .sub-nav li + li::before { display: none; }
  .sub-nav li::after { content: "／"; margin-left: 14px; color: var(--gray); }
  .sub-nav li:last-child::after { content: none; }
  .related-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- 改行品質（1文字だけ次の行に落ちるのを防ぐ） ---------- */
h1, h2, h3, .sec-title, .sec-title-l, .menu-title, .case-title, .rel-title, .acc-q > span:first-child,
.reason-card h3, .iso-card h3, .svc-cards h3, .svc-points h3, .news-list .title, .news-card .title,
.reform-hero-copy .sub, .subsidy-text, .flow .name, .tel-label, .quality-lead { text-wrap: balance; }
p, li, dd, .text, .lead, .note, .small, .case-text, .rel-desc { text-wrap: pretty; }
.footer-nav a, .sub-nav li, .gnav a, .breadcrumb li, .breadcrumb a, .cv-bar a, .wwd-card .label, .mobile-menu a { white-space: nowrap; }

/* ---------- 動き ---------- */
.fade { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 改行制御 ---------- */
.pc { display: inline; }
.sp { display: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1300px) {
  .header-tel small { display: none; }
  .header-actions { gap: 14px; }
  .gnav { gap: clamp(14px, 1.8vw, 26px); }
}
@media (max-width: 1100px) {
  :root { --header-h: 90px; }
  .gnav, .header-actions { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-nav { justify-content: start; }
}
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 80px; --sec-pad: 72px; --sec-pad-s: 52px; --block-gap: 40px; --head-gap: 32px; }
  /* スマホの配置ルール: セクション見出し・注記・ボタンは中央、本文・表・リストは左 */
  .sec-head.is-left { text-align: center; }
  .sec-head.is-left .sec-title { text-indent: 0.2em; }
  .text.is-center { text-align: left; }
  .sub-nav { justify-content: center; }
  .sub-nav ul { justify-content: center; }
  .sub-nav-label { text-align: center; }
  body { font-size: 14px; line-height: 1.9; }
  .brand .brand-name { font-size: 18px; }
  .pc { display: none; }
  .sp { display: inline; }
  .btn { min-width: 0; width: min(100%, 320px); height: 54px; }
  .def-table th, .def-table td { display: block; width: auto; padding: 0; border: 0; }
  .def-table th { padding-top: 16px; font-size: 13px; color: var(--ink-soft); }
  .def-table td { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .def-table tr:first-child th { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; text-align: left; padding: 16px 18px; align-items: center; }
  .flow .step { grid-row: 1 / 3; align-self: center; }
  .flow .name { margin-top: 0; }
  .flow .desc { margin-top: 2px; }
  .acc-q { font-size: 15px; padding: 18px 2px; }
  .acc-a p { padding: 0 8px 20px 30px; }
  .footer-main { gap: 44px; padding: 56px 0 48px; }
  .footer-brand { text-align: center; }
  .footer-logos { justify-content: center; gap: 20px; }
  .footer-logos .logo-industry { width: 190px; }
  .footer-logos .logo-reform { width: 84px; padding-left: 20px; }
  .footer-lead { margin-top: 20px; font-size: 13px; }
  .footer-offices { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; text-align: left; }
  .footer-office { padding: 18px 20px; }
  .footer-office .office-tel a { font-size: 18px; }
  .footer-nav { grid-template-columns: 1fr; gap: 36px; padding-top: 0; }
  .footer-col:last-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
  .footer-bottom-inner { flex-direction: column; justify-content: center; text-align: center; padding: 22px 0 24px; }
  .footer-creds, .footer-legal { justify-content: center; gap: 4px 16px; }
  .footer-legal { flex-direction: column; gap: 6px; }
}

/* ---------- フォーカス表示（キーボード操作） ---------- */
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 4px; }
