/* =============================================================
   hifaceY — 和モダン・エディトリアル
   「上質な見積書」: 和紙 × 藍 × 金
   ============================================================= */

:root {
  /* 色 */
  --washi: #F6F4EF;        /* 和紙地 */
  --washi-deep: #EDEAE2;   /* 和紙 濃 */
  --paper: #FFFFFF;
  --navy: #1E2D3B;         /* 藍（ブランド主色） */
  --navy-soft: #2B3E50;
  --navy-2: #3D5975;       /* 中間藍 */
  --blue-pale: #C0D2E5;    /* 淡藍 */
  --ink: #2C2E31;          /* 本文 */
  --ink-soft: #5A5E63;
  --gold: #F8B505;         /* 金（図形・暗地上のみ） */
  --gold-deep: #9E8915;    /* 金（明地上のテキスト用） */
  --line: #DCD7CB;         /* 罫線 */
  --line-navy: #33475C;

  /* 書体 */
  --font-serif: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --font-sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

  /* 寸法 */
  --header-h: 76px;
  --radius: 3px;
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);

  /* 動き */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--washi);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--navy); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

/* 和紙の質感（微細ノイズ） */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .92 0 0 0 0 .89 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* ページ背景：各ページのヒーロー画像を本文の裏に薄く敷く */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--page-img, url('../img/heroes/home-1920.webp'));
  background-size: cover; background-position: center;
  opacity: .12; filter: saturate(.7);
}
main { position: relative; z-index: 1; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- タイポグラフィ ---------- */
h1, h2, h3 { font-family: var(--font-serif); color: var(--navy); font-weight: 700; line-height: 1.5; }
.serif { font-family: var(--font-serif); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 2.2em; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; letter-spacing: .06em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(30,45,59,.25); }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 14px rgba(248,181,5,.3); }
.btn-gold:hover { background: #FFC61A; color: var(--navy); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-line-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-line-white:hover { background: #fff; color: var(--navy); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,244,239,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img.brand-symbol { width: 42px; height: auto; }
.brand .brand-text { line-height: 1.3; }
.brand .brand-name img { height: 17px; width: auto; }
.brand .brand-tag { display: block; font-size: .68rem; color: var(--ink-soft); letter-spacing: .14em; margin-top: 3px; }
.gnav ul { display: flex; gap: clamp(14px, 2vw, 26px); }
.gnav a {
  font-size: .92rem; font-weight: 500; color: var(--ink); padding: .4em 0; position: relative; letter-spacing: .05em;
}
.gnav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.gnav a:hover::after, .gnav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-tel { text-align: right; line-height: 1.25; }
.header-tel .tel-link { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.header-tel .tel-note { display: block; font-size: .66rem; color: var(--ink-soft); letter-spacing: .08em; }
.header-cta .btn { padding: .8em 1.5em; font-size: .88rem; }
.nav-toggle { display: none; }

/* ---------- モバイル追従CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-navy); border-top: 1px solid var(--line-navy);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .7em .5em .8em; font-weight: 700; font-size: .95rem; letter-spacing: .05em;
}
.mobile-cta .m-tel { background: var(--gold); color: var(--navy); }
.mobile-cta .m-form { background: var(--navy); color: #fff; }
.mobile-cta small { font-weight: 500; font-size: .64rem; letter-spacing: .06em; opacity: .85; }

/* ---------- パンくず ---------- */
.crumbs { font-size: .78rem; padding: 14px 0 0; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--navy); }
.crumbs-sep { margin: 0 .6em; color: var(--line); }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; letter-spacing: .3em; color: var(--gold-deep); font-weight: 700; margin-bottom: 14px;
}
.section-label::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: .06em; }
.section-lead { margin-top: 18px; max-width: 640px; color: var(--ink-soft); font-size: .96rem; }
.on-navy .section-title { color: #fff; }
.on-navy .section-label { color: var(--gold); }
.on-navy .section-lead { color: var(--blue-pale); }

/* 縦書き飾りラベル */
.v-label {
  position: absolute; top: 0; right: calc(-1 * var(--gutter) + 10px);
  writing-mode: vertical-rl; font-family: var(--font-serif);
  font-size: .8rem; letter-spacing: .5em; color: var(--gold-deep); opacity: .55;
}
@media (max-width: 960px) { .v-label { display: none; } }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(84px, 12vw, 150px) 0 clamp(96px, 13vw, 170px);
  background-color: #10161D;
  background-image:
    linear-gradient(100deg, rgba(11,17,24,.74) 0%, rgba(13,21,30,.44) 46%, rgba(13,21,30,.14) 100%),
    var(--hero-img, url('../img/heroes/home-1920.webp'));
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero::after { /* 下端を次セクションへ溶かす */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(11,17,24,.55));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-inner h1, .hero-sub, .hero-kicker, .hero-tel { text-shadow: 0 2px 18px rgba(8,12,17,.55); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--gold); font-size: .82rem; letter-spacing: .28em; font-weight: 700; margin-bottom: 26px;
}
.hero-kicker::before { content: ''; width: 44px; height: 1px; background: var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.5; letter-spacing: .07em; margin-bottom: 14px;
}
.hero h1 .gold { color: var(--gold); }
.hero-tagline {
  color: var(--gold); font-size: clamp(1rem, 1.9vw, 1.3rem); font-weight: 700;
  letter-spacing: .12em; margin-bottom: 22px; text-shadow: 0 2px 18px rgba(8,12,17,.55);
}
.hero-sub { color: var(--blue-pale); font-size: clamp(.94rem, 1.6vw, 1.05rem); max-width: 560px; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 44px; }
.hero-tel { line-height: 1.3; }
.hero-tel .tel-link { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: .05em; }
.hero-tel .tel-link:hover { color: var(--gold); }
.hero-tel .tel-note { display: block; font-size: .72rem; color: var(--blue-pale); letter-spacing: .1em; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(192,210,229,.28);
  background: linear-gradient(to top, rgba(11,17,24,.66), rgba(11,17,24,.34));
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  padding: 0 22px 18px; margin-inline: -22px;
}
.hero-points li {
  flex: 1 1 180px; padding: 16px 20px 0; border-left: 1px solid var(--line-navy); font-size: .82rem; color: var(--blue-pale); letter-spacing: .04em;
}
.hero-points li:first-child { border-left: 0; padding-left: 0; }
.hero-points strong { display: block; font-family: var(--font-serif); font-size: 1.06rem; color: #fff; letter-spacing: .06em; margin-bottom: 2px; }
.hero-points strong em { font-style: normal; color: var(--gold); }
.hero .v-label { color: rgba(192,210,229,.5); right: calc(var(--gutter) - 10px); top: 90px; }

@media (max-width: 720px) {
  .hero {
    background-image:
      linear-gradient(160deg, rgba(11,17,24,.78) 0%, rgba(13,21,30,.52) 55%, rgba(13,21,30,.34) 100%),
      var(--hero-img, url('../img/heroes/home-960.webp'));
  }
  .page-hero {
    background-image:
      linear-gradient(160deg, rgba(11,17,24,var(--dim1,.8)) 0%, rgba(16,25,35,var(--dim3,.5)) 100%),
      var(--hero-img, url('../img/heroes/home-960.webp'));
  }
  .page-hero--plain { background-image: linear-gradient(100deg, rgba(30,45,59,1), rgba(43,62,80,1)); }
}

/* ヒーロー登場アニメーション */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-stagger] { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
  .hero [data-stagger="2"] { animation-delay: .12s; }
  .hero [data-stagger="3"] { animation-delay: .24s; }
  .hero [data-stagger="4"] { animation-delay: .36s; }
  .hero [data-stagger="5"] { animation-delay: .5s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- 実績バー ---------- */
.trust-bar { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); }
.trust-bar .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item .t-num { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); font-weight: 700; }
.trust-item .t-num em { font-style: normal; color: var(--gold-deep); }
.trust-item .t-cap { font-size: .78rem; color: var(--ink-soft); letter-spacing: .1em; margin-top: 2px; }

/* ---------- ごあいさつ ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy .section-head { margin-bottom: 24px; }
.about-copy p { margin-bottom: 1.2em; font-size: .97rem; }
.about-copy .em-line { font-family: var(--font-serif); font-size: 1.14rem; color: var(--navy); font-weight: 700; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: 18px 18px 0 var(--washi-deep); }
.about-photo::after {
  content: ''; position: absolute; left: -16px; top: -16px; width: 90px; height: 90px;
  border-left: 2px solid var(--gold); border-top: 2px solid var(--gold);
}

/* ---------- サービス ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30,45,59,.12); }
.service-card .sc-photo { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.service-card .sc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .sc-photo img { transform: scale(1.06); }
.service-card .sc-num {
  position: absolute; left: 0; top: 0; background: var(--navy); color: var(--gold);
  font-family: var(--font-serif); font-size: .8rem; letter-spacing: .1em; padding: .35em .9em;
}
.service-card .sc-body { padding: 20px 22px 24px; }
.service-card h3 { font-size: 1.12rem; letter-spacing: .08em; margin-bottom: 8px; }
.service-card p { font-size: .85rem; color: var(--ink-soft); line-height: 1.8; }
.service-card .sc-price { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--ink-soft); }
.service-card .sc-price strong { font-family: var(--font-serif); color: var(--gold-deep); font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- 料金ハイライト（藍帯） ---------- */
.price-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.price-band::before {
  content: ''; position: absolute; left: -4%; top: -18%; width: 420px; aspect-ratio: 785/668;
  background: url('../img/symbol-white.png') no-repeat center/contain; opacity: .04;
}
.price-samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-navy); border: 1px solid var(--line-navy); margin-bottom: 34px; }
.price-sample { background: var(--navy); padding: 26px 22px; }
.price-sample .p-name { font-size: .82rem; color: var(--blue-pale); letter-spacing: .08em; margin-bottom: 10px; }
.price-sample .p-val { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.5rem); color: #fff; font-weight: 700; }
.price-sample .p-val em { font-style: normal; color: var(--gold); }
.price-sample .p-unit { font-size: .72rem; color: var(--blue-pale); margin-left: .3em; }
.price-band .note { font-size: .78rem; color: var(--blue-pale); margin-top: -20px; margin-bottom: 34px; }

/* ---------- 約束 ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.promise-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 26px; background: rgba(255,255,255,.5); position: relative; }
.promise-item .pr-num { font-family: var(--font-serif); color: var(--gold-deep); font-size: .95rem; letter-spacing: .1em; }
.promise-item h3 { font-size: 1.08rem; margin: 8px 0 10px; letter-spacing: .06em; }
.promise-item p { font-size: .85rem; color: var(--ink-soft); line-height: 1.8; }

/* ---------- 施工事例 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30,45,59,.12); }
.work-card .wk-photo { aspect-ratio: 4/3; overflow: hidden; }
.work-card .wk-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .wk-photo img { transform: scale(1.05); }
.work-card .wk-body { padding: 18px 20px 22px; }
.work-card .wk-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.work-card .wk-tags span { font-size: .7rem; letter-spacing: .08em; color: var(--navy-2); border: 1px solid var(--blue-pale); padding: .18em .7em; border-radius: 2px; background: rgba(192,210,229,.15); }
.work-card h3 { font-size: 1.02rem; letter-spacing: .04em; margin-bottom: 6px; }
.work-card p { font-size: .83rem; color: var(--ink-soft); line-height: 1.75; }

/* ---------- 流れ ---------- */
.flow-list { counter-reset: step; display: grid; gap: 0; }
.flow-item { display: grid; grid-template-columns: 110px 1fr; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; }
.flow-item:first-child { border-top: 1px solid var(--line); }
.flow-item .fl-num { font-family: var(--font-serif); color: var(--navy); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.flow-item .fl-num::before { content: 'STEP'; display: block; font-size: .62rem; letter-spacing: .3em; color: var(--gold-deep); font-family: var(--font-sans); font-weight: 700; }
.flow-item h3 { font-size: 1.16rem; letter-spacing: .06em; margin-bottom: 8px; }
.flow-item p { font-size: .9rem; margin-bottom: .6em; }
.flow-item .fl-check { background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 10px; }
.flow-item .fl-check strong { display: block; font-size: .78rem; color: var(--gold-deep); letter-spacing: .12em; margin-bottom: 6px; }
.flow-item .fl-check li { font-size: .84rem; color: var(--ink-soft); padding-left: 1.1em; position: relative; line-height: 1.9; }
.flow-item .fl-check li::before { content: '・'; position: absolute; left: 0; color: var(--gold-deep); }

/* コンパクト版（トップ用） */
.flow-compact { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.flow-compact li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px 16px; text-align: center; position: relative; }
.flow-compact li:not(:last-child)::after { content: '›'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--gold-deep); font-size: 1rem; z-index: 2; }
.flow-compact .fc-num { font-family: var(--font-serif); color: var(--gold-deep); font-size: .8rem; letter-spacing: .1em; }
.flow-compact .fc-name { display: block; font-weight: 700; font-size: .84rem; color: var(--navy); margin-top: 4px; letter-spacing: .04em; }

/* ---------- 料金表 ---------- */
.price-cat { margin-bottom: clamp(36px, 5vw, 52px); }
.price-cat-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 0; }
.price-cat-head .pc-num { font-family: var(--font-serif); color: var(--gold-deep); font-size: 1.05rem; }
.price-cat-head h3 { font-size: 1.22rem; letter-spacing: .08em; }
.price-cat-head .pc-note { margin-left: auto; font-size: .72rem; color: var(--ink-soft); }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.price-table th, .price-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; text-align: left; }
.price-table th { font-weight: 500; color: var(--ink); width: 46%; }
.price-table .pt-price { text-align: right; font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.02rem; white-space: nowrap; }
.price-table .pt-price .tilde { color: var(--ink-soft); font-weight: 400; margin: 0 .1em; }
.price-table .pt-unit { width: 90px; text-align: left; color: var(--ink-soft); font-size: .8rem; white-space: nowrap; }
.price-table tr:hover td, .price-table tr:hover th { background: rgba(192,210,229,.12); }
.price-notes { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 20px 24px; border-radius: var(--radius); }
.price-notes li { font-size: .86rem; color: var(--ink-soft); padding-left: 1.2em; position: relative; margin-bottom: .4em; }
.price-notes li::before { content: '※'; position: absolute; left: 0; color: var(--gold-deep); }

/* ---------- FAQ ---------- */
.faq-cat { margin-bottom: 40px; }
.faq-cat-title { display: flex; align-items: center; gap: 12px; font-size: 1.14rem; margin-bottom: 16px; letter-spacing: .08em; }
.faq-cat-title::before { content: ''; width: 10px; height: 10px; background: var(--gold); }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left;
  padding: 18px 52px 18px 20px; position: relative; font-weight: 700; font-size: .95rem; color: var(--navy); line-height: 1.7;
}
.faq-q::before { content: 'Q'; font-family: var(--font-serif); color: var(--gold-deep); font-size: 1.1rem; line-height: 1.5; }
.faq-q::after {
  content: ''; position: absolute; right: 20px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--navy-2); border-bottom: 2px solid var(--navy-2);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: rotate(-135deg) translate(-3px,-3px); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { display: flex; gap: 14px; padding: 0 20px 18px; font-size: .9rem; color: var(--ink-soft); }
.faq-a-inner p::before { content: 'A'; font-family: var(--font-serif); color: var(--navy-2); font-size: 1.1rem; line-height: 1.5; flex-shrink: 0; }

/* ---------- CTA帯 ---------- */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; right: -4%; top: -20%; width: 420px; aspect-ratio: 785/668;
  background: url('../img/symbol-white.png') no-repeat center/contain; opacity: .05;
}
.cta-inner { position: relative; text-align: center; }
.cta-inner .cta-title { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .1em; margin-bottom: 12px; }
.cta-inner .cta-lead { color: var(--blue-pale); font-size: .92rem; margin-bottom: 34px; }
.cta-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 22px; }
.cta-tel { line-height: 1.3; text-align: left; }
.cta-tel .tel-link { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: #fff; letter-spacing: .04em; }
.cta-tel .tel-link:hover { color: var(--gold); }
.cta-tel .tel-note { display: block; font-size: .74rem; color: var(--blue-pale); letter-spacing: .08em; }
.cta-divider { width: 1px; height: 52px; background: var(--line-navy); }

/* ---------- 会社概要表 ---------- */
.company-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.company-table th, .company-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .93rem; text-align: left; vertical-align: top; }
.company-table th { width: 190px; font-weight: 700; color: var(--navy); letter-spacing: .08em; background: rgba(192,210,229,.12); }

/* ---------- スタッフ ---------- */
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.staff-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; position: relative; }
.staff-card::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), transparent 60%); }
.staff-card .st-role { font-size: .76rem; letter-spacing: .2em; color: var(--gold-deep); font-weight: 700; }
.staff-card h3 { font-size: 1.5rem; letter-spacing: .12em; margin: 8px 0 4px; }
.staff-card .st-duty { font-size: .82rem; color: var(--navy-2); margin-bottom: 14px; }
.staff-card p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- 取引先 ---------- */
.partner-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.partner-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); letter-spacing: .06em; display: flex; align-items: center; gap: 14px; }
.partner-list li::before { content: ''; width: 8px; height: 8px; background: var(--gold); flex-shrink: 0; }
.partner-list li a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- エリア ---------- */
.area-city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area-city { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px 26px; }
.area-city h3 { font-size: 1.18rem; letter-spacing: .06em; margin-bottom: 4px; }
.area-city h3 a { color: var(--navy); }
.area-city h3 a:hover { color: var(--gold-deep); }
.area-city .ac-note { font-size: .76rem; color: var(--gold-deep); letter-spacing: .08em; margin-bottom: 14px; }
.area-city ul li { border-top: 1px dashed var(--line); }
.area-city ul a { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.area-city ul a::after { content: '→'; color: var(--gold-deep); font-size: .85em; }
.area-city ul a:hover { color: var(--navy-2); }
@media (max-width: 960px) { .area-city-grid { grid-template-columns: 1fr; } }
.area-pref { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.area-pref li { font-family: var(--font-serif); font-size: 1rem; color: var(--navy); border: 1px solid var(--line); background: var(--paper); padding: .5em 1.4em; border-radius: 2px; letter-spacing: .1em; }
.area-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area-links a {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; font-weight: 700; color: var(--navy); letter-spacing: .06em;
  transition: border-color .3s, transform .3s var(--ease);
}
.area-links a:hover { border-color: var(--gold); transform: translateY(-3px); }
.area-links a::after { content: '→'; color: var(--gold-deep); }

/* ---------- フォーム ---------- */
.form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); }
.form-row { margin-bottom: 22px; }
.form-row > label, .form-row > .form-label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 8px; letter-spacing: .05em; }
.req, .opt { display: inline-block; font-size: .66rem; padding: .15em .7em; border-radius: 2px; margin-left: .7em; vertical-align: middle; letter-spacing: .1em; }
.req { background: var(--gold); color: var(--navy); font-weight: 700; }
.opt { background: var(--washi-deep); color: var(--ink-soft); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: .85em 1em; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--washi); font: inherit; color: var(--ink); transition: border-color .3s, background .3s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); background: #fff; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.check-grid label {
  display: flex; align-items: center; gap: 10px; background: var(--washi); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7em 1em; font-size: .88rem; cursor: pointer; transition: border-color .2s, background .2s;
}
.check-grid label:has(:checked) { border-color: var(--navy); background: rgba(192,210,229,.2); }
.check-grid input { accent-color: var(--navy); width: 16px; height: 16px; }
.consent-row { text-align: center; font-size: .88rem; margin: 26px 0 18px; }
.consent-row a { text-decoration: underline; text-underline-offset: 3px; }
.form-submit { text-align: center; }
.form-submit .btn { min-width: 300px; font-size: 1.02rem; padding: 1.1em 2em; }
.form-note { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: var(--blue-pale); padding: clamp(50px, 7vw, 80px) 0 0; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(30px, 5vw, 70px); padding-bottom: 46px; }
.footer-brand img.f-symbol { width: 52px; margin-bottom: 14px; }
.footer-brand img.f-wordmark { height: 20px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .84rem; line-height: 2; }
.footer-brand .f-tel { font-family: var(--font-serif); font-size: 1.4rem; color: #fff; font-weight: 700; }
.footer-brand .f-tel:hover { color: var(--gold); }
.footer-col h4 { font-size: .78rem; letter-spacing: .26em; color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--blue-pale); font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-navy); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom small { font-size: .74rem; color: #7A8FA5; letter-spacing: .05em; }
.footer-sns { display: flex; align-items: center; gap: 8px; color: var(--blue-pale); font-size: .8rem; }
.footer-sns a { color: var(--blue-pale); display: inline-flex; align-items: center; gap: 8px; }
.footer-sns a:hover { color: #fff; }
.footer-sns svg { width: 20px; height: 20px; }

/* ---------- ページヘッダー（下層） ---------- */
.page-hero {
  color: #fff; padding: clamp(46px, 7vw, 76px) 0; position: relative; overflow: hidden;
  background-color: #10161D;
  background-image:
    linear-gradient(100deg, rgba(11,17,24,var(--dim1,.78)) 0%, rgba(16,25,35,var(--dim2,.55)) 60%, rgba(16,25,35,var(--dim3,.38)) 100%),
    var(--hero-img, url('../img/heroes/home-1920.webp'));
  background-position: center 38%; background-size: cover; background-repeat: no-repeat;
}
.page-hero--plain { background-image: linear-gradient(100deg, rgba(30,45,59,1), rgba(43,62,80,1)); }
.page-hero h1, .page-hero .ph-lead, .page-hero .ph-label { text-shadow: 0 2px 16px rgba(8,12,17,.6); }
.page-hero .ph-label { color: var(--gold); font-size: .74rem; letter-spacing: .32em; font-weight: 700; display: block; margin-bottom: 10px; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: .1em; }
.page-hero .ph-lead { color: var(--blue-pale); font-size: .92rem; margin-top: 14px; max-width: 640px; }

/* ---------- 汎用 ---------- */
.bg-paper { background: rgba(255,255,255,.86); }
.bg-washi-deep { background: var(--washi-deep); }
.text-center { text-align: center; }
.nobr { white-space: nowrap; }
.mt-l { margin-top: clamp(30px, 5vw, 48px); }
.more-row { text-align: center; margin-top: clamp(30px, 5vw, 44px); }
.badge-note {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(248,181,5,.12);
  border: 1px solid rgba(158,137,21,.35); color: #6f620f; font-size: .8rem; font-weight: 700;
  padding: .5em 1.2em; border-radius: 2px; letter-spacing: .06em;
}
.info-card { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p, .info-card li { font-size: .88rem; color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col--contact { grid-template-columns: 1fr 1.6fr; }
@media (max-width: 960px) { .two-col--contact { grid-template-columns: 1fr; } }

/* スクロールリビール */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .1s; }
  .reveal[data-delay="2"] { transition-delay: .2s; }
  .reveal[data-delay="3"] { transition-delay: .3s; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  /* backdrop-filterはfixed子要素の基準を変えメニューを潰すため、モバイルでは無効化 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246,244,239,.97); }
  .gnav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 12px; margin-left: 4px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .3s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav.is-open {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #f6f4ef; padding: 20px var(--gutter) 44px; overflow-y: auto; z-index: 150;
    animation: menuIn .22s var(--ease);
  }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  .gnav.is-open ul { flex-direction: column; gap: 0; }
  .gnav.is-open ul a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 17px 6px; font-size: 1.06rem; border-bottom: 1px solid var(--line);
    font-family: var(--font-serif); font-weight: 700; color: var(--navy);
  }
  .gnav.is-open ul a::before { content: none; }
  .gnav.is-open ul a::after {
    content: '→'; position: static; transform: none; background: none;
    width: auto; height: auto; flex: none; /* デスクトップ下線のwidth:100%を必ず打ち消す */
    color: var(--gold-deep); font-size: .95rem; opacity: .8;
  }
  .gnav .nav-cta-sp { margin-top: 24px; display: grid; gap: 12px; }
  .gnav .nav-cta-sp .btn { width: 100%; justify-content: center; }
  /* 基底の .gnav a { color:var(--ink) } に負けないようボタン色を明示（紺地に紺/グレー文字の不可視化防止） */
  .gnav .nav-cta-sp .btn-navy { color: #fff; }
  .gnav .nav-cta-sp .btn-gold { color: var(--navy); }
}
@media (min-width: 1081px) { .gnav .nav-cta-sp { display: none; } }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 560px; }
  .services-grid, .works-grid { grid-template-columns: 1fr 1fr; }
  .price-samples { grid-template-columns: 1fr 1fr; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .flow-compact { grid-template-columns: repeat(3, 1fr); }
  .flow-compact li:nth-child(3)::after { display: none; }
  .staff-grid, .partner-list, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-links { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: 64px; } /* 追従CTAぶん */
  .mobile-cta { display: grid; }
  .header-cta { display: none; }
  :root { --header-h: 62px; }
  /* ヒーロー可読性（スマホ実機での単語分断・過密を解消） */
  .hero h1 { font-size: clamp(18px, calc((100vw - 48px) / 15), 28px); letter-spacing: .04em; line-height: 1.55; }
  .page-hero h1 { font-size: clamp(17px, calc((100vw - 48px) / 15), 24px); letter-spacing: .05em; line-height: 1.5; }
  .hero-kicker { font-size: .7rem; letter-spacing: .16em; margin-bottom: 16px; }
  .hero-tagline { font-size: 1rem; letter-spacing: .08em; }
  .hero-sub { font-size: .93rem; line-height: 1.9; }
  .hero-sub br, .cta-lead br, .ph-lead br, .section-lead br { display: none; } /* PC向け手動改行を無効化 */
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-points li { font-size: .8rem; }
  .contact-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); }
  .brand img.brand-symbol { width: 34px; }
  .brand .brand-name img { height: 14px; }
  .services-grid, .works-grid { grid-template-columns: 1fr; }
  .trust-bar .container { grid-template-columns: 1fr; padding-inline: 0; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); padding: 14px; }
  .trust-item:first-child { border-top: 0; }
  .promise-grid { grid-template-columns: 1fr; }
  .flow-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .price-table th, .price-table td { padding: 12px 12px; font-size: .86rem; }
  .price-table .pt-unit { width: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-divider { display: none; }
  .hero-cta .btn { width: 100%; }
  .form-submit .btn { width: 100%; min-width: 0; }
}
