@charset "UTF-8";

/* ============================================================
   工務店Navi - top page
   ============================================================ */

:root {
  --bg: #f6f6f6;
  --white: #ffffff;
  --cream: #f1efe9;
  --ink: #2b2b2d;
  --ink-display: #333335;
  --ink-soft: #6f6f6f;
  --brown: #a8846a;
  --brown-dark: #5d5042;
  --green: #789f80;
  --green-dark: #5f8468;
  --gold: #c9a06c;
  --line: #e1e1e1;
  --chip-line: #c5c5c5;

  --font-en: 'Inter', sans-serif;
  --font-jp: 'IBM Plex Sans JP', 'Inter', sans-serif;

  --container: 1440px;
  --pad: clamp(20px, 4.86vw, 70px);
  --sec-y: clamp(56px, 6vw, 92px);
  --radius: 12px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur: .28s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 4px; }
.float-cta__card:focus-visible, .cta2__item:focus-visible { outline-color: #fff; outline-offset: -5px; }
.area-row__list a:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.works__grid .work-card:nth-child(2) { transition-delay: .07s; }
.works__grid .work-card:nth-child(3) { transition-delay: .14s; }
.works__grid .work-card:nth-child(4) { transition-delay: .21s; }
.column__list li:nth-child(2) .col-item { transition-delay: .07s; }
.column__list li:nth-child(3) .col-item { transition-delay: .14s; }
.feature__img.reveal { transition-delay: .1s; }
.feature__img.reveal + .feature__img.reveal { transition-delay: .2s; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); line-height: 1; }
.logo__img { height: 34px; width: auto; display: block; }
.logo--footer .logo__img { height: 32px; }

/* ============================================================
   header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 246, 246, .9);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease-soft), background-color .3s var(--ease-soft);
}
.site-header.is-scrolled { background: rgba(246, 246, 246, .97); box-shadow: 0 4px 22px rgba(60, 50, 40, .08); }
.site-header__inner {
  display: flex; align-items: center; justify-content: flex-start; height: 100px; gap: 24px;
  padding-inline: clamp(16px, 2.78vw, 40px);
}
/* gnav を margin-left:auto で右寄せ（space-between だとヘッダー右端CTAの追加で
   ナビが中央に流れてしまうため。CTAが畳まれている間は現状と同じ見た目になる） */
.gnav { align-self: flex-end; margin-left: auto; padding-bottom: 13px; }
.gnav__list { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 24px); }
.gnav__link {
  position: relative; font-size: 16px; font-weight: 500; color: var(--ink);
  padding-bottom: 6px; white-space: nowrap;
}
/* 先頭2項目（メインの探す導線）を一段大きく・間隔広め */
.gnav__list li:nth-child(1) .gnav__link,
.gnav__list li:nth-child(2) .gnav__link { font-size: 17px; font-weight: 600; }
.gnav__list li:nth-child(1),
.gnav__list li:nth-child(2) { margin-right: 16px; }
.gnav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 5px;
  background: var(--brown); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.gnav__link:hover::after, .gnav__link.is-current::after { transform: scaleX(1); }

/* ドロワー内CTA・掲載申し込み・SNS（いずれもSP時のみ表示） */
.gnav__cta { display: none; }
.gnav__cta-btn { display: block; text-align: center; padding: 14px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 15px; }
.gnav__cta-btn--doc { background: var(--brown); }
.gnav__cta-btn--line { background: var(--green); }
.gnav__item--sp { display: none; }
.gnav__social { display: none; }

/* ヘッダー右端CTA：FVを過ぎたら追従CTAから引き継ぐ（表示はPCのみ・下の min-width:1201px で有効化） */
.header-cta { display: none; }

/* hamburger */
.hamburger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; }
.hamburger__bar { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease-soft); }
.hamburger__bar + .hamburger__bar { margin-top: 6px; }
.hamburger.is-open .hamburger__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   floating CTA (追従)
   ============================================================ */
.float-cta {
  position: fixed; right: clamp(16px, 2.78vw, 40px); top: 168px; z-index: 90;
  display: flex; flex-direction: column; gap: 22px; width: 224px;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), visibility .7s;
}
/* 下部の2分割CTA（cta2）／フッターに到達したら追従バナーを消す（JSで is-hidden 付与） */
.float-cta.is-hidden { opacity: 0; visibility: hidden; transform: translateX(28px); pointer-events: none; }
.float-cta__card {
  display: block; padding: 16px 20px 14px; border-radius: 12px; color: #fff;
  box-shadow: 0 10px 28px rgba(60, 50, 40, .14);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.float-cta__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(60, 50, 40, .2); }
.float-cta__card--doc { background: var(--brown); }
.float-cta__card--line { background: var(--green); }
.float-cta__title { display: block; font-size: 17px; font-weight: 700; letter-spacing: .01em; margin-bottom: 6px; white-space: nowrap; }
.float-cta__sub { display: block; font-size: 12px; line-height: 1.6; }
.float-cta__arrow { display: block; text-align: right; margin-top: -12px; line-height: 1; }
.float-cta__arrow svg { width: 20px; height: 20px; display: inline-block; transition: transform .4s var(--ease-out); }
.float-cta__card:hover .float-cta__arrow svg { transform: translateX(4px); }

/* ============================================================
   ヘッダー右端CTA（PCのみ）
   FV（.hero / .phero）を過ぎると追従CTAがふわっと消え、代わりにここが開く。
   畳んでいる間は max-width:0 ＋ margin-left で親のgapも相殺するため、
   ページ上部では従来どおりロゴ＋ナビだけの見た目になる。
   ============================================================ */
@media (min-width: 1201px) {
  /* FVを過ぎたら右側の追従カードを消す（SPの下部固定CTAバーには効かせない） */
  .float-cta.is-past-fv { opacity: 0; visibility: hidden; transform: translateX(28px); pointer-events: none; }

  .header-cta {
    display: flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap;
    /* ナビが下寄せ（align-self:flex-end + padding-bottom:13px）なので、ボタンも下寄せにして
       ナビと同じ縦位置（中心Y）に揃える。margin-bottom はボタン中心をナビ中心に合わせる微調整 */
    align-self: flex-end; margin-bottom: 7px;
    max-width: 0; margin-left: -24px; opacity: 0; transform: translateX(14px);
    overflow: hidden; pointer-events: none;
    /* 追従カードが消えてからヘッダーCTAが開く"受け渡し"。ゆったり見せるため
       開く時は幅・位置を長め＋わずかに遅延、消す時（下の :not）はすっと畳む */
    transition: max-width .8s var(--ease-out) .12s, margin-left .8s var(--ease-out) .12s,
                opacity .6s var(--ease-out) .18s, transform .8s var(--ease-out) .12s;
  }
  .site-header:not(.is-past-hero) .header-cta {
    transition: max-width .45s var(--ease-out), margin-left .45s var(--ease-out),
                opacity .3s var(--ease-out), transform .45s var(--ease-out);
  }
  .site-header.is-past-hero .header-cta {
    max-width: 320px; margin-left: 0; opacity: 1; transform: none; pointer-events: auto;
  }
  .header-cta__btn {
    display: block; padding: 9px 13px; border-radius: 8px; color: #fff;
    font-size: 13px; font-weight: 700; letter-spacing: .04em;
    transition: background-color .3s var(--ease-soft), transform .3s var(--ease-out);
  }
  .header-cta__btn--doc { background: var(--brown); }
  .header-cta__btn--doc:hover { background: var(--brown-dark); transform: translateY(-2px); }
  .header-cta__btn--line { background: var(--green); }
  .header-cta__btn--line:hover { background: var(--green-dark); transform: translateY(-2px); }

  /* CTAを置く横幅を作るため、FVを過ぎたらロゴ・ナビをわずかに詰める。
     ヘッダーの高さ(100px)は変えないので本文の位置ずれは起きない */
  .logo__img { transition: height .7s var(--ease-soft); }
  .gnav__list { transition: gap .7s var(--ease-soft); }
  .gnav__link { transition: font-size .7s var(--ease-soft); }
  .site-header.is-past-hero .logo__img { height: 28px; }
  .site-header.is-past-hero .gnav__list { gap: 14px; }
  .site-header.is-past-hero .gnav__list li:nth-child(1),
  .site-header.is-past-hero .gnav__list li:nth-child(2) { margin-right: 8px; }
  .site-header.is-past-hero .gnav__link { font-size: 15px; }
  .site-header.is-past-hero .gnav__list li:nth-child(1) .gnav__link,
  .site-header.is-past-hero .gnav__list li:nth-child(2) .gnav__link { font-size: 16px; }
}
/* 横幅が足りない帯域はLINEボタンを畳み、資料請求のみ出す */
@media (min-width: 1201px) and (max-width: 1279px) {
  .header-cta__btn--line { display: none; }
}

/* ============================================================
   hero
   ============================================================ */
.hero { padding: clamp(32px, 6vw, 88px) 0 clamp(24px, 2.5vw, 36px); }
.hero .container { padding-inline: clamp(20px, 6.11vw, 88px); }
.hero__en {
  display: flex; flex-direction: column; /* 行マスクの負マージンを相殺させない */
  font-family: var(--font-en); font-weight: 500;
  font-size: clamp(52px, 11.7vw, 150px); line-height: .93; letter-spacing: -.02em; color: var(--ink-display);
}
.hero__jp { margin-top: clamp(26px, 3vw, 40px); font-size: clamp(20px, 2.22vw, 32px); font-weight: 700; letter-spacing: .03em; }
.hero__lead { margin-top: 16px; font-size: clamp(14px, 1.25vw, 18px); color: var(--ink-soft); line-height: 1.45; }

/* ヒーローコピーの出現（ロード直後に自動再生＝LCP保護でIO発火は使わない）
   行マスク: line-height<1 のグリフはみ出しを padding+負margin で確保 */
.hero__line { display: block; overflow: hidden; padding: .16em .08em .26em; margin: -.16em -.08em -.26em; }
.hero__line-inner { display: block; }
.js .hero__line-inner { transform: translateY(130%); animation: hero-line-in 1s var(--ease-out-expo) both; }
.js .hero__line:nth-child(1) .hero__line-inner { animation-delay: .12s; }
.js .hero__line:nth-child(2) .hero__line-inner { animation-delay: .26s; }
.js .hero__line:nth-child(3) .hero__line-inner { animation-delay: .40s; }
@keyframes hero-line-in { to { transform: none; } }
.js .hero__jp { animation: hero-rise .85s var(--ease-out) .72s both; }
.js .hero__lead { animation: hero-rise .85s var(--ease-out) .88s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============================================================
   section heading
   ============================================================ */
.sec-head { margin-bottom: clamp(24px, 3vw, 36px); }
.sec-head__en {
  font-family: var(--font-en); font-weight: 500;
  font-size: clamp(44px, 6.11vw, 88px); line-height: 1; letter-spacing: -.015em; color: var(--ink-display);
}
.sec-head__jp { margin-top: 8px; font-size: clamp(14px, 1.32vw, 19px); letter-spacing: .1em; color: var(--ink-soft); }

/* ============================================================
   Pick Up (slider)
   ============================================================ */
.pickup { padding: clamp(20px, 3vw, 40px) 0 clamp(56px, 8.1vw, 117px); }
.feature {
  display: grid; grid-template-columns: clamp(300px, 26.4vw, 380px) minmax(0, 1fr); gap: 3px; align-items: stretch;
}
.feature__body { display: flex; flex-direction: column; background: #fff; padding: clamp(20px, 1.95vw, 28px) clamp(12px, 1.4vw, 20px) clamp(20px, 2.1vw, 30px) clamp(16px, 1.75vw, 25px); }
.feature__label { display: flex; align-items: center; font-size: 14px; color: var(--ink-soft); letter-spacing: .02em; }
.feature__label span::after {
  content: ""; display: inline-block; width: 1px; height: 11px; background: #c9c9c9;
  margin: 0 12px; vertical-align: -1px;
}
.feature__title { margin: 16px 0 20px; font-size: clamp(22px, 2.3vw, 33px); font-weight: 700; line-height: 1.4; }
.feature__text { font-size: 14px; color: var(--ink-soft); line-height: 1.8; max-width: 13.5em; }
.feature__more { margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.feature__more span { transition: transform .35s var(--ease-out); }
.feature__more:hover span { transform: translateX(5px); }
/* 大カードのストリップ: 写真は大判、カード高さはここで担保 */
.feature__strip--lg { min-height: clamp(300px, 29vw, 418px); }
.feature__strip--lg .feature__thumb { flex-basis: clamp(400px, 39vw, 562px); }

/* Pick Up: 縦積み＋コンパクトカード（カンプ準拠・右端は全ブリード） */
.pickup__list { max-width: var(--container); margin-inline: auto; padding-left: clamp(20px, 4.45vw, 64px); display: flex; flex-direction: column; gap: clamp(28px, 3.05vw, 44px); }
.pickup__list > article:nth-child(5) { margin-top: clamp(20px, 3.47vw, 50px); }
.feature--sm { grid-template-columns: clamp(280px, 21.25vw, 306px) minmax(0, 1fr); }
.feature--sm .feature__title { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.5; margin: 12px 0 16px; }
.feature--sm .feature__body { padding-top: 24px; padding-bottom: 24px; }
/* サムネ帯: 5枚の事例が無限ループでスライド（ホバーで一時停止）
   高さは%連鎖でなく絶対配置で確定させる（Safariの%高さ解決差異対策） */
.feature__strip { position: relative; overflow: hidden; min-width: 0; }
.feature__strip-track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; animation: strip-loop 45s linear infinite; will-change: transform; }
.feature__strip-set { display: flex; gap: 3px; height: 100%; padding-right: 3px; }
.feature__strip:hover .feature__strip-track { animation-play-state: paused; }
/* カードごとに流れる向きを交互に（奇数=右→左／偶数=左→右） */
.pickup__list > article:nth-child(even) .feature__strip-track { animation-direction: reverse; }
@keyframes strip-loop { to { transform: translateX(-50%); } }
.feature__thumb { position: relative; overflow: hidden; margin: 0; flex: 0 0 clamp(220px, 21.4vw, 308px); height: 100%; }
.feature__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-out); }
.feature__thumb:hover img { transform: scale(1.05); }

/* --- 旧スライダーUI（再有効化する場合は index.html を viewport/track 構造に戻す） --- */
.pickup__viewport { overflow: hidden; }
.pickup__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.pickup__track::-webkit-scrollbar { display: none; }
.pickup__track > .feature { flex: 0 0 100%; scroll-snap-align: start; }

.pickup__nav { display: flex; align-items: center; gap: 16px; max-width: var(--container); margin: 24px auto 0; padding-inline: var(--pad); }
.pickup__counter { font-family: var(--font-en); font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.pickup__index { color: var(--ink); font-weight: 600; }
.pickup__sep { margin: 0 5px; }
.pickup__dots { display: flex; align-items: center; gap: 8px; }
.pickup__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer;
  transition: width .4s var(--ease-out), background-color .25s var(--ease-soft);
}
.pickup__dot.is-active { width: 24px; border-radius: 4px; background: var(--brown); }
.pickup__arrows { margin-left: auto; display: flex; gap: 12px; }
.pickup__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--ink); display: grid; place-items: center;
  transition: background-color .25s var(--ease-soft), color .25s var(--ease-soft), border-color .25s var(--ease-soft), transform .3s var(--ease-out), opacity .25s;
}
.pickup__arrow:not(:disabled):hover { background: var(--brown); border-color: var(--brown); color: #fff; }
.pickup__arrow:not(:disabled):active { transform: scale(.93); }
.pickup__arrow:disabled { opacity: .3; cursor: default; }
.pickup__arrow svg { width: 20px; height: 20px; }

/* ============================================================
   Find by Area
   ============================================================ */
.area { padding: clamp(64px, 7.7vw, 111px) 0 clamp(52px, 5.07vw, 73px); background: #fff; }
.area__panel { position: relative; z-index: 0; padding: 0; }
/* レイヤー順: 行罫線 → 地図 → ラベル/チップ（地図の上に罫線を通さない）
   罫線はborderではなく負のz-indexの疑似要素＝どの描画経路でも必ず地図の下 */
.area__regions { position: relative; display: flex; flex-direction: column; width: min(845px, 100%); margin-inline: auto; left: clamp(0px, 5.2vw, 75px); }
.area-row { display: grid; grid-template-columns: 126px 1fr; align-items: center; gap: 16px; padding: 10px 0 11px; position: relative; }
.area-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #c9c9c9; z-index: -1; }
.area-row:first-child::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #c9c9c9; z-index: -1; }
.area-row__name { position: relative; z-index: 2; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.area-row__list { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; }
.area-row__list a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 0; padding: 5px 17px; line-height: 1.4;
  background: #fff; border: 1px solid var(--chip-line); border-radius: 999px; font-size: 13px; letter-spacing: .01em;
  transition: border-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft), transform .3s var(--ease-out);
}
.area-row__list a:hover { border-color: var(--brown); color: var(--brown); transform: translateY(-2px); }
.area-row__list a.is-active { background: var(--brown); border-color: var(--brown); color: #fff; font-weight: 600; }
.area-row__list a.is-active:hover { color: #fff; transform: translateY(-2px); }
/* 地図は行罫線(z:-1)よりさらに背面 */
.area__map { position: absolute; z-index: -2; right: clamp(0px, 3.1vw, 45px); top: 50%; transform: translateY(-50%); height: 112%; max-height: 480px; pointer-events: none; }
/* opacityだと下の罫線が透けるため、不透明のまま明度で淡くする（205→約230） */
.area__map img { height: 100%; width: auto; display: block; filter: brightness(1.122); }

/* ============================================================
   Find by Home (works)
   ============================================================ */
.works { padding: clamp(64px, 9.24vw, 133px) 0 clamp(56px, 7vw, 100px); }
.works .sec-head { margin-bottom: clamp(28px, 3.3vw, 48px); }
.works__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 1.95vw, 28px) clamp(12px, 1.25vw, 18px); }
.work-card__thumb { display: block; overflow: hidden; }
.work-card__thumb img { width: 100%; aspect-ratio: 312 / 224; object-fit: cover; transition: transform .55s var(--ease-out); }
.work-card:hover .work-card__thumb img { transform: scale(1.045); }
.work-card__cap { display: block; margin-top: 14px; font-size: 13.5px; color: var(--ink); line-height: 1.6; transition: color var(--dur) var(--ease-soft); }
.work-card:hover .work-card__cap { color: var(--brown); }
.works__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(26px, 2.9vw, 42px); }
.works__tags { display: flex; flex-wrap: wrap; gap: 12px; }
.works__tags a { display: inline-flex; align-items: center; justify-content: center; min-width: 152px; padding: 7px 20px; line-height: 1.4; background: transparent; border: 1px solid var(--chip-line); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink); transition: border-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft); }
.works__tags a:hover { border-color: var(--brown); color: var(--brown); }

.btn-brown {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--brown); color: #fff;
  padding: 19px 44px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.4; min-width: 280px;
  transition: background-color .3s var(--ease-soft), transform .3s var(--ease-out);
}
.btn-brown:hover { background: var(--brown-dark); transform: translateY(-2px); }
.btn-brown span, .btn-outline span { transition: transform .35s var(--ease-out); }
.btn-brown:hover span, .btn-outline:hover span { transform: translateX(5px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--brown); color: var(--brown);
  padding: 13px 34px; border-radius: 999px; font-size: 13.5px; font-weight: 500; line-height: 1.4;
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), transform .3s var(--ease-out);
}
.btn-outline:hover { background: var(--brown); color: #fff; transform: translateY(-2px); }

/* ============================================================
   Column
   ============================================================ */
.column { padding: clamp(56px, 6.74vw, 97px) 0 clamp(64px, 8.75vw, 126px); background: #fff; }
.column .container { padding-left: clamp(20px, 4.45vw, 64px); }
.column__layout { display: grid; grid-template-columns: clamp(240px, 23.3vw, 336px) 1fr; gap: clamp(40px, 9.1vw, 131px); align-items: stretch; }
.column__side { display: flex; flex-direction: column; padding-top: 20px; }
.column__side .sec-head { margin-bottom: clamp(28px, 3.5vw, 50px); }
.column__cats-head { font-family: var(--font-en); font-size: 20px; font-weight: 700; letter-spacing: .04em; color: var(--ink); margin-bottom: 12px; }
.column__cats li a { position: relative; display: block; font-size: 14px; color: var(--ink-soft); padding: 3.5px 0 3.5px 8px; transition: color var(--dur) var(--ease-soft), transform .3s var(--ease-out); }
.column__cats li a::before { content: ""; position: absolute; left: -23px; top: 50%; width: 16px; height: 2px; background: var(--ink); opacity: 0; transform: translateX(-10px); transition: opacity .25s var(--ease-soft), transform .3s var(--ease-out); }
.column__cats li a:hover { color: var(--ink); font-weight: 600; transform: translateX(8px); }
.column__cats li a:hover::before { opacity: 1; transform: translateX(0); }
.column__cats li.is-active a { color: var(--ink); font-weight: 600; }
.column__cats li.is-active a::before { opacity: 1; transform: translateX(0); }
/* 他カテゴリをホバー中はアクティブ側のマーカーを引っ込める（マーカーがホバー先に移る見え方） */
.column__cats ul:hover li.is-active a:not(:hover)::before { opacity: 0; transform: translateX(-10px); }
.column__more { margin-top: auto; padding-top: clamp(26px, 3vw, 40px); }

.column__list { display: flex; flex-direction: column; gap: clamp(16px, 2.1vw, 30px); }
.col-item { display: grid; grid-template-columns: minmax(0, 44%) 1fr; align-items: stretch; background: var(--bg); overflow: hidden; min-height: 248px; }
.col-item__thumb { display: block; overflow: hidden; position: relative; min-height: 100%; }
.col-item__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-out); }
.col-item:hover .col-item__thumb img { transform: scale(1.05); }
.col-item__body { display: flex; flex-direction: column; padding: clamp(18px, 1.8vw, 26px) clamp(22px, 2.15vw, 31px); }
.col-item__cat { display: block; font-size: 14px; color: var(--ink-soft); letter-spacing: .02em; }
.col-item__title { margin-top: 10px; font-size: clamp(18px, 1.8vw, 26px); font-weight: 700; line-height: 1.4; color: var(--ink); }
.col-item__foot { margin-top: auto; padding-top: clamp(18px, 2vw, 30px); display: flex; align-items: center; justify-content: space-between; }
.col-item__date { font-family: var(--font-en); font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }
.col-item__arrow { color: var(--ink-soft); font-size: 18px; transition: transform .4s var(--ease-out), color var(--dur) var(--ease-soft); }
.col-item:hover .col-item__arrow { transform: translateX(4px); color: var(--brown); }

/* ============================================================
   2-col CTA
   ============================================================ */
.cta2 { display: grid; grid-template-columns: 1fr 1fr; }
.cta2__item { position: relative; min-height: clamp(280px, 28.2vw, 406px); padding: 60px clamp(40px, 5.2vw, 75px); color: #fff; display: flex; flex-direction: column; justify-content: center; transition: background-color .4s var(--ease-soft); }
.cta2__item--doc { background: var(--brown); }
.cta2__item--line { background: var(--green); }
.cta2__item--doc:hover { background: var(--brown-dark); }
.cta2__item--line:hover { background: var(--green-dark); }
.cta2__title { display: block; font-size: clamp(24px, 2.3vw, 33px); font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; }
.cta2__sub { display: block; font-size: clamp(13.5px, 1.18vw, 17px); line-height: 1.75; }
.cta2__arrow { position: absolute; right: clamp(28px, 2.65vw, 38px); bottom: 34px; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--brown); display: grid; place-items: center; transition: transform .35s var(--ease-out); }
.cta2__item--line .cta2__arrow { color: var(--green); }
.cta2__item:hover .cta2__arrow { transform: scale(1.06); }
.cta2__arrow svg { width: 22px; height: 22px; transition: transform .4s var(--ease-out); }
.cta2__item:hover .cta2__arrow svg { transform: translateX(3px); }

/* ============================================================
   footer
   ============================================================ */
.site-footer { background: var(--bg); padding-top: clamp(48px, 5vw, 72px); }
.footer__brand { display: flex; padding-bottom: 24px; border-bottom: 1px solid #d0d0d0; margin-bottom: 38px; }
.footer__top { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 3.6vw, 60px); align-items: start; padding-bottom: 8px; }
.logo--footer .logo__text { font-size: 22px; }
.footer__nav { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(24px, 2.6vw, 38px); justify-content: start; }
.footer__nav ul:first-child { padding-left: 22px; margin-right: 28px; }
.footer__col li a { display: block; position: relative; padding: 3px 0; font-size: 14px; color: var(--ink); transition: color var(--dur) var(--ease-soft), transform .3s var(--ease-out); }
.footer__col li a::before {
  content: ""; position: absolute; left: -22px; top: 50%; transform: translate(-10px, -50%);
  border-left: 9px solid var(--brown); border-block: 5.5px solid transparent;
  opacity: 0; transition: opacity .25s var(--ease-soft), transform .3s var(--ease-out);
}
.footer__col li a:hover { color: var(--brown); transform: translateX(8px); }
.footer__col li a:hover::before { opacity: 1; transform: translate(0, -50%); }
/* 先頭2項目（探す導線）は太字・一段大きく（►はホバー時のみ出現） */
.footer__nav ul:first-child li a { font-size: 16px; font-weight: 600; }
.footer__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 30px; }
.footer__social { display: flex; gap: 24px; }
.footer__social a { color: var(--ink); transition: color var(--dur) var(--ease-soft), transform .3s var(--ease-out); }
.footer__social a:hover { color: var(--brown); transform: translateY(-3px); }
.footer__social svg { width: 36px; height: 36px; }
.footer__insert { position: relative; display: block; width: 332px; text-align: center; padding: 24px 46px 26px; background: var(--brown); color: #fff; border-radius: 10px; transition: background-color .3s var(--ease-soft), transform .3s var(--ease-out); }
.footer__insert:hover { background: var(--brown-dark); transform: translateY(-2px); }
.footer__insert-title { display: block; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.footer__insert-sub { display: block; margin-top: 6px; font-size: 12px; }
.footer__insert-arrow { position: absolute; right: 24px; bottom: 22px; font-size: 18px; transition: transform .4s var(--ease-out); }
.footer__insert:hover .footer__insert-arrow { transform: translateX(4px); }

.footer__bottom { display: flex; flex-direction: column; gap: 12px; padding: 0 0 56px; }
.footer__privacy { font-size: 13px; color: var(--ink); transition: color var(--dur) var(--ease-soft); }
.footer__privacy:hover { color: var(--brown); }
.footer__copy { font-size: 12px; font-family: var(--font-en); color: var(--ink-soft); letter-spacing: .04em; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1200px) {
  .float-cta { display: none; }

  /* この幅では横並びナビが入りきらず、flexでロゴが潰れてしまう（800pxでは幅0＝消える）。
     ロゴは絶対に縮めず（flex-shrink:0）、ナビはドロワー（ハンバーガー）へ切り替える。
     ヘッダーの高さ・ロゴサイズはPCのまま＝768px以下で改めてSP用に縮める。 */
  .logo { flex-shrink: 0; }
  .hamburger { display: block; position: relative; z-index: 101; margin-left: auto; }
  .site-header .logo { position: relative; z-index: 101; }
  /* backdrop-filter があると position:fixed の子（ドロワー）がヘッダー基準になるため無効化 */
  .site-header { backdrop-filter: none; }
  body.menu-open { overflow: hidden; }

  /* ドロワーメニュー: 右からスライド＋項目stagger＋下部CTA */
  .gnav {
    position: fixed; inset: 0; background: var(--bg); z-index: 98;
    display: flex; flex-direction: column; overflow-y: auto;
    padding: 136px var(--pad) 28px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .5s var(--ease-out), visibility 0s .5s;
    align-self: auto; margin-left: 0;
  }
  .gnav.is-open { transform: translateX(0); visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .gnav__list li:nth-child(1), .gnav__list li:nth-child(2) { margin-right: 0; }
  .gnav__list li {
    opacity: 0; transform: translateX(28px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  }
  .gnav.is-open .gnav__list li { opacity: 1; transform: none; }
  .gnav.is-open .gnav__list li:nth-child(1) { transition-delay: .10s; }
  .gnav.is-open .gnav__list li:nth-child(2) { transition-delay: .16s; }
  .gnav.is-open .gnav__list li:nth-child(3) { transition-delay: .22s; }
  .gnav.is-open .gnav__list li:nth-child(4) { transition-delay: .28s; }
  .gnav.is-open .gnav__list li:nth-child(5) { transition-delay: .34s; }
  .gnav.is-open .gnav__list li:nth-child(6) { transition-delay: .40s; }
  .gnav__item--sp { display: block; }
  .gnav__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 2px; border-bottom: 1px solid var(--line); font-size: 17px;
  }
  .gnav__list li:nth-child(1) .gnav__link, .gnav__list li:nth-child(2) .gnav__link { font-size: 18px; }
  .gnav__link::after {
    content: "→"; position: static; display: block; height: auto; background: none;
    transform: none; transition: none; font-size: 16px; color: var(--brown);
  }
  .gnav__cta {
    display: grid; gap: 10px; margin-top: auto; padding-top: 28px;
    opacity: 0; transform: translateY(16px);
    transition: opacity .55s var(--ease-out) .42s, transform .55s var(--ease-out) .42s;
  }
  .gnav.is-open .gnav__cta { opacity: 1; transform: none; }
  /* ドロワー下部のSNSアイコン（アイコンは32pxのまま、余白でタップ領域を44px確保） */
  .gnav__social {
    display: flex; justify-content: center; gap: 16px; margin-top: 16px; padding-bottom: 0;
    opacity: 0; transform: translateY(16px);
    transition: opacity .55s var(--ease-out) .5s, transform .55s var(--ease-out) .5s;
  }
  .gnav.is-open .gnav__social { opacity: 1; transform: none; }
  .gnav__social a { display: block; padding: 6px; color: var(--ink); transition: color var(--dur) var(--ease-soft); }
  .gnav__social a:hover { color: var(--brown); }
  .gnav__social svg { width: 32px; height: 32px; display: block; }
  /* ドロワーは .site-header の子＝ヘッダー背景より手前に描画されるため、スクロール時に
     メニュー文字がロゴ・閉じるボタンの周りに透けて見える。不透明の帯を最前面に敷いて防ぐ */
  .site-header__inner::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 100px;
    background: #f6f6f6; z-index: 100; pointer-events: none;
  }
}
@media (max-width: 1024px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature__body { grid-column: 1 / -1; }
  .feature__strip--lg { grid-column: 1 / -1; }
  .feature--sm { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .column__layout { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__aside { align-items: flex-start; }
}

@media (max-width: 768px) {
  body { padding-bottom: 56px; }   /* 固定CTAバー分の余白（説明文なしのコンパクト版） */

  .site-header__inner { height: 56px; gap: 12px; }
  /* SPロゴはカンプ準拠の高さ24px（幅約178px）。PCの34pxのままだと253px幅で大きすぎる */
  .logo__img { height: 24px; max-width: none; }
  /* SPはドロワー(fixed)をヘッダー内に閉じ込めないよう backdrop-filter を使わない */
  .site-header { background: #f6f6f6; backdrop-filter: none; }

  /* ドロワー本体の定義は max-width:1200px 側にある。ここではヘッダーが56pxになる分の差分だけ上書き */
  .gnav { padding-top: 92px; }
  .site-header__inner::before { height: 56px; }

  /* FVは実機ビューポート（URLバー分狭い）でも1画面に収まるよう圧縮（2026-07-16市岡さん指示） */
  .hero { padding: clamp(64px, 22vw, 96px) 0 20px; }
  .hero__en { font-size: clamp(56px, 19vw, 100px); }
  .sec-head__en { font-size: 38px; }
  .sec-head__jp { font-size: 12px; margin-top: 6px; }
  .area { padding: 48px 0 40px; }
  .works { padding: 48px 0 52px; }
  .works .sec-head { margin-bottom: 24px; }
  .column { padding: 40px 0 48px; }
  .column__layout { gap: 18px; }
  .column__list { gap: 18px; }
  /* 英語コピーとの間隔はカンプ(170px)から詰める（離れすぎのため・2026-07-16市岡さん指示） */
  .hero__jp { margin-top: clamp(48px, 15vw, 64px); font-size: 20px; }
  /* リード文はSPでも<br>位置で折り返す（自然折返しだと「しています。」だけが孤立するため） */
  .hero__lead { margin-top: 10px; font-size: 13px; line-height: 1.55; }

  /* Pick Up: 全カード「テキスト左／画像右・右端ブリード」（SPデザイン準拠） */
  .pickup { padding: 16px 0 var(--sec-y); }
  .pickup__list { padding-right: 0; gap: 15px; }
  .pickup__list > article:nth-child(5) { margin-top: 40px; }
  .feature { grid-template-columns: 1.47fr 1fr; gap: 4px; align-items: stretch; }
  .feature__body { grid-column: 1; padding: 14px 8px 14px 14px; }
  .feature__strip--lg { grid-column: 2; min-height: 200px; }
  .feature__strip--lg .feature__thumb { flex-basis: calc(40.5vw - 10px); }
  .feature__label { font-size: 11.5px; }
  .feature__title { font-size: 18px; line-height: 1.45; margin: 8px 0 10px; }
  .feature__title br { display: none; }
  .feature__text { font-size: 11.5px; line-height: 1.7; max-width: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .feature__more { padding-top: 14px; font-size: 12px; }
  /* コンパクトカードも同じ体裁（写真は外観を先頭に・横スワイプ可） */
  .feature--sm { grid-template-columns: 1.47fr 1fr; align-items: stretch; }
  .feature--sm .feature__body { grid-column: 1; padding-top: 14px; padding-bottom: 14px; }
  .feature--sm .feature__title { font-size: 18px; line-height: 1.45; margin: 8px 0 10px; }
  .feature__strip { grid-column: 2; height: 100%; min-height: 140px; }
  .feature__strip-set { gap: 0; padding-right: 0; }
  .feature__thumb { flex: 0 0 calc(40.5vw - 10px); height: 100%; }
  .feature--sm .feature__thumb:nth-child(3) { order: -1; }

  /* Find by Area: ラベル左＋チップ多列（コンパクト） */
  .area__regions { margin-left: 0; left: 0; width: 100%; }
  .area-row { grid-template-columns: 88px 1fr; gap: 5px 8px; align-items: start; padding: 5px 0 6px; }
  .area-row__name { font-size: 11px; line-height: 1.35; padding-top: 4px; }
  .area-row__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .area-row__list a { min-width: 0; width: 100%; padding: 2px 2px; font-size: 10.5px; min-height: 23px; display: flex; align-items: center; justify-content: center; letter-spacing: 0; }
  .area__map { display: block; right: 0; top: 150px; transform: none; height: auto; max-height: 340px; }
  .area__map img { height: 340px; filter: brightness(1.17); }

  /* Find by Home: 2列（SPデザイン準拠） */
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  /* タイトルはnowrapブツ切りにせず2行まで表示（実データの長いタイトル対策・3行目以降は…） */
  .work-card__cap { font-size: 11px; margin-top: 10px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  /* SP: タグとボタンを縦積みで中央寄せ */
  .works__foot { margin-top: 26px; gap: 20px; flex-direction: column; align-items: center; }
  .works__tags { justify-content: center; width: 100%; }
  .works__tags a { padding: 8px 16px; font-size: 12.5px; min-width: 0; }
  /* ボタンはSPカンプ実測どおり: 幅178×高さ38px・画面中央・ラベルは中央／矢印は右端12px
     （top_sp_2.jpg 実測: 施工事例・コラムとも 177.5×38・左右余白108px＝中央） */
  .btn-brown {
    position: relative; align-self: center;
    width: 178px; min-width: 0; height: 38px; padding: 0 26px; gap: 0;
    font-size: 12px; line-height: 1;
  }
  .btn-brown span {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 13px; line-height: 1;
  }
  .btn-brown:hover span { transform: translateY(-50%) translateX(4px); }
  .works__foot .btn-brown { width: 178px; min-width: 0; padding: 0 26px; font-size: 12px; }

  /* Column: 画像上＋テキスト下の縦積み／カテゴリ非表示／ボタンは記事の後 */
  .column__layout { display: flex; flex-direction: column; gap: 22px; }
  .column__side { display: contents; }
  .column__side .sec-head { order: 1; margin-bottom: 0; }
  .column__cats { display: none; }
  .column__main { order: 2; }
  .column__more { order: 3; margin-top: 2px; display: flex; justify-content: center; }
  .col-item { grid-template-columns: 1fr; min-height: 0; }
  .col-item__thumb { min-height: 0; }
  .col-item__thumb img { position: static; width: 100%; height: auto; aspect-ratio: 7 / 5; }
  .col-item__body { padding: 14px 14px 16px; }
  .col-item__title { font-size: 16px; line-height: 1.5; margin-top: 6px; }
  .col-item__foot { padding-top: 12px; }

  /* CTA: 大CTA2セクションはSP非表示、追従CTAを画面下部固定バーに */
  .cta2 { display: none; }
  .float-cta {
    display: flex; flex-direction: row; gap: 0; width: 100%;
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    border-radius: 0; z-index: 95;
  }
  /* SPは説明文なしのシンプルなボタン2分割（2026-07-16市岡さん指示） */
  .float-cta__card { flex: 1 1 50%; border-radius: 0; padding: 15px 22px 15px 14px; box-shadow: 0 -4px 18px rgba(60, 50, 40, .16); position: relative; text-align: center; display: flex; align-items: center; justify-content: center; }
  .float-cta__card:hover { transform: none; box-shadow: 0 -4px 18px rgba(60, 50, 40, .16); }
  .float-cta.is-hidden { transform: translateY(100%); }
  /* 「資料請求・お問い合わせ」でも半画面に1行で収まるよう字間を詰める */
  .float-cta__title { font-size: 13px; letter-spacing: 0; line-height: 1.35; margin-bottom: 0; }
  .float-cta__sub { display: none; }
  .float-cta__arrow { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin-top: 0; }
  .float-cta__arrow svg { width: 15px; height: 15px; }

  /* フッター: SPは 1列ナビ（罫線区切り）→ 掲載カード → SNS → ロゴ/プライバシー/コピー の順 */
  .site-footer { padding-top: 48px; }
  .site-footer .container { display: flex; flex-direction: column; }
  .footer__top { order: 1; grid-template-columns: minmax(0, 1fr); padding-bottom: 0; gap: 26px; }
  /* SPの下段: SNS → プライバシー(右寄せ) → ロゴ → コピーライト */
  .footer__bottom { display: contents; }
  /* ---- フッターSPはカンプ（top_sp_2.jpg）実測に合わせる ----
     ナビ罫線: 画面端から52px内側（幅290）／文字は罫線から28px字下げ・12px均一
     掲載カード: 幅248px・中央／SNS: アイコン36px・間隔30px・中央
     最下段: 全幅罫線の下にプライバシー（右寄せ）→ロゴ→コピーライト */
  .footer__privacy {
    order: 2; align-self: stretch; text-align: right; font-size: 12px;
    margin-top: 24px; padding-top: 14px; border-top: 1px solid #d0d0d0;
  }
  .footer__brand { order: 3; border-bottom: none; padding: 10px 0 0; margin-bottom: 0; }
  .logo--footer .logo__img { height: 24px; }
  .footer__copy { order: 4; margin: 8px 0 30px; }
  .footer__nav { display: block; padding: 0 32px; }
  .footer__nav ul:first-child { margin-right: 0; padding-left: 0; }
  .footer__col li a::before { display: none; }
  .footer__nav ul:nth-child(3), .footer__nav ul:nth-child(4) { display: none; }
  .footer__col li a,
  .footer__nav ul:first-child li a { font-size: 12px; font-weight: 400; padding: 5px 0 5px 28px; border-bottom: 1px solid var(--line); }
  .footer__nav ul:first-child li:first-child a { border-top: 1px solid var(--line); }
  .footer__col:last-child li:last-child a { border-bottom: 1px solid var(--line); }
  .footer__aside { align-items: stretch; gap: 26px; }
  .footer__aside .footer__social { order: 2; justify-content: center; gap: 30px; padding: 0; }
  .footer__aside .footer__insert { order: 1; }
  .footer__social svg { width: 36px; height: 36px; }
  .footer__insert { width: 248px; margin: 0 auto; padding: 16px 20px; }
  .footer__insert-title { font-size: 14px; }
  .footer__insert-sub { font-size: 11px; margin-top: 5px; }
  .footer__insert-arrow { right: 16px; bottom: 14px; font-size: 16px; }
}

@media (max-width: 380px) {
  /* 極小幅: ロゴ高さ24px（幅178px）は320pxでも収まるため上書き不要。
     旧 width:calc(100vw-92px) は縮小どころか拡大になるため撤去 */
  .logo__img { height: 24px; }
}

@media (max-width: 400px) {
  .area-row { grid-template-columns: 64px 1fr; }
  .area-row__name { font-size: 11px; }
  .area-row__list a { font-size: 10px; padding: 7px 2px; }
}

/* ---------- reduced motion ---------- */
/* 写真ストリップは商品の核となる演出のため、reduce設定でも止めない（速度そのまま維持）。
   iOS「視差効果を減らす」ONの端末で「スライダーが動かない」ように見えていた原因。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .feature__strip-track { animation-duration: 45s !important; }
  .js .hero__line-inner, .js .hero__jp, .js .hero__lead {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}
