/* ==========================================================================
   株式会社EMAZY エクステリア LP  —  style.css
   --------------------------------------------------------------------------
   構成
     0. デザイントークン（色・余白・角丸・影）← 色の変更はここだけでOK
     1. リセット / ベース
     2. 共通パーツ（ボタン・見出し・写真枠）
     3. ヘッダー
     4. ファーストビュー
     5. コンセプト
     6. 施工事例
     7. 対応工事
     8. 選ばれる理由 / 中間CTA
     9. ご相談の流れ
    10. 会社案内
    11. お問い合わせ
    12. フッター / 固定CTA
    13. ライトボックス
    14. アニメーション
   スマホ最優先：基本スタイル＝スマホ、@media (min-width) でPCへ拡張
   ========================================================================== */

/* 0. デザイントークン ------------------------------------------------------ */
:root {
  --c-bg: #ffffff;
  --c-sky: #eaf7fd;          /* 淡いブルー（セクション背景） */
  --c-sky-2: #f4fbfe;
  --c-accent: #34a9c9;       /* アクセント */
  --c-accent-dark: #2290ae;
  --c-green: #78bfa0;        /* 補助グリーン */
  --c-green-soft: #e9f5ef;
  --c-text: #334155;         /* 本文 */
  --c-text-sub: #64748b;
  --c-line: #e2eef3;

  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --font-en: "Jost", var(--font-ja);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(30, 80, 100, .06);
  --shadow: 0 10px 30px -12px rgba(30, 90, 115, .22);
  --shadow-lg: 0 24px 60px -24px rgba(30, 90, 115, .35);

  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 960px) {
  :root { --gutter: 40px; --header-h: 80px; }
}

/* 1. リセット / ベース ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 960px) { body { font-size: 16px; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
/* 見出しは文節で改行（「を。」だけが次の行に落ちるのを防ぐ） */
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 3px solid rgba(52, 169, 201, .5); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding-block: 80px; }
@media (min-width: 960px) { .section { padding-block: 120px; } }
.tinted { background: linear-gradient(180deg, var(--c-sky) 0%, var(--c-sky-2) 100%); }

.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } .sp-only { display: none; } }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* 2. 共通パーツ ------------------------------------------------------------ */
/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.6em;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .08em; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-lg { min-height: 58px; padding: 0 2.2em; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3cb6d4 0%, var(--c-accent) 55%, #2e9dbd 100%);
  box-shadow: 0 10px 24px -10px rgba(52, 169, 201, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(52, 169, 201, .9); }
.btn-ghost { color: var(--c-text); background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1.5px var(--c-line), var(--shadow-sm); }
.btn-ghost:hover { color: var(--c-accent-dark); box-shadow: inset 0 0 0 1.5px var(--c-accent), var(--shadow-sm); }
.btn-white { color: var(--c-accent-dark); background: #fff; box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-2px); }

/* セクション見出し */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head--left { text-align: left; }
@media (min-width: 960px) { .section-head { margin-bottom: 64px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: .32em;
  color: var(--c-accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c-accent), var(--c-green)); }
.section-title { margin-top: 8px; font-size: clamp(26px, 6.4vw, 38px); font-weight: 700; line-height: 1.45; letter-spacing: .08em; }
.section-lead { margin-top: 18px; color: var(--c-text-sub); }

/* 写真枠（施工写真の共通ラッパー）
   写真が未配置（読み込み失敗）のとき JS が .is-missing を付け、
   上品なプレースホルダーを表示する。 */
.photo { position: relative; overflow: hidden; background: var(--c-sky); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing img { visibility: hidden; }
.photo.is-missing {
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(120, 191, 160, .28) 0%, transparent 55%),
    radial-gradient(100% 80% at 10% 100%, rgba(52, 169, 201, .22) 0%, transparent 60%),
    linear-gradient(160deg, #f3fbfe 0%, #e3f3f8 100%);
}
.photo.is-missing::after {
  content: "PHOTO\A" attr(data-slot);
  white-space: pre; text-align: center;
  position: absolute; inset: 0; display: grid; place-content: center; padding-bottom: 12%;
  font-family: var(--font-en); font-size: 12px; letter-spacing: .25em; line-height: 2; color: rgba(52, 140, 170, .55);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2334a9c9' stroke-opacity='.45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 30 32 14l22 16'/%3E%3Cpath d='M16 26v22h32V26'/%3E%3Cpath d='M28 48V36h8v12'/%3E%3Cpath d='M4 52h56'/%3E%3C/svg%3E") center 38% / 56px no-repeat;
}

/* 3. ヘッダー -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--c-line), 0 6px 20px -16px rgba(30, 90, 115, .4);
}
.header-inner { height: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; }

/* ロゴ：左「EMAZY / EXTERIOR」（ブランドロゴ）｜右「株式会社EMAZY」 */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); }
.logo-brand { display: inline-flex; flex-direction: column; gap: 4px; }
.logo-mark {
  font-family: var(--font-en); font-weight: 600; font-size: 23px; letter-spacing: .14em; line-height: 1;
  margin-right: -.14em; /* 末尾の字間を相殺して EXTERIOR と左右をそろえる */
  background: linear-gradient(120deg, var(--c-accent) 0%, #4cb8b4 55%, var(--c-green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-tag {   /* EMAZY と同じ幅に均等割り付け（1文字ずつ span で配置） */
  display: flex; justify-content: space-between; padding-left: 1px;
  font-family: var(--font-en); font-weight: 500; font-size: 8.5px; line-height: 1; color: var(--c-accent-dark);
}
.logo-sub { font-size: 11px; line-height: 1.4; letter-spacing: .12em; color: var(--c-text-sub); padding-left: 12px; border-left: 1px solid var(--c-line); align-self: stretch; display: flex; align-items: center; }
@media (min-width: 960px) {
  .logo-mark { font-size: 27px; }
  .logo-tag { font-size: 10px; }
  .logo-sub { font-size: 12px; padding-left: 14px; }
}

/* ハンバーガー */
.nav-toggle { position: relative; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); }
.nav-toggle span { position: absolute; left: 14px; width: 18px; height: 2px; border-radius: 2px; background: var(--c-text); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* スマホ：上からスライドするメニュー */
.global-nav {
  position: fixed; inset: var(--header-h) 0 auto; padding: 12px var(--gutter) 28px;
  background: rgba(255, 255, 255, .98); box-shadow: 0 20px 30px -20px rgba(30, 90, 115, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.is-open .global-nav { opacity: 1; visibility: visible; transform: none; }
.global-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-weight: 500; }
.global-nav .nav-cta { margin-top: 18px; border: 0; border-radius: 999px; text-align: center; color: #fff; background: var(--c-accent); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .global-nav { position: static; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .global-nav ul { display: flex; align-items: center; gap: 4px; }
  .global-nav a { padding: 8px 14px; border: 0; font-size: 14.5px; position: relative; }
  .global-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--c-accent); transform: scaleX(0); transition: transform .3s var(--ease); }
  .global-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .global-nav .nav-cta { margin: 0 0 0 12px; padding: 10px 24px; box-shadow: 0 8px 18px -10px rgba(52, 169, 201, .9); transition: background-color .25s, transform .25s; }
  .global-nav .nav-cta:hover { background: var(--c-accent-dark); transform: translateY(-1px); }
}

/* 4. ファーストビュー ------------------------------------------------------ */
/* スマホ：写真を上に大きく → 白いカードを重ねてコピー */
.hero { position: relative; padding-top: var(--header-h); }
.hero-media { height: 58svh; min-height: 340px; max-height: 560px; margin: 0 10px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(234, 247, 253, .15) 0%, transparent 40%); pointer-events: none; }
.hero-media img { object-position: 92% 50%; animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* 「※写真はイメージです」（施工事例と誤解されないための注記） */
.hero-note {
  position: absolute; top: 12px; right: 16px; z-index: 1;
  padding: 2px 10px; border-radius: 999px; background: rgba(20, 45, 60, .38);
  font-size: 10.5px; letter-spacing: .08em; color: #fff;
}
@media (min-width: 768px) { .hero-note { top: auto; bottom: 18px; right: 24px; font-size: 11px; } }

.hero-body {
  position: relative; z-index: 1; margin-top: -64px; padding-block: 32px 8px;
}
.hero-body::before {
  content: ""; position: absolute; inset: 0 10px; z-index: -1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #fff;
}
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--c-accent-dark); background: var(--c-sky);
}
.hero-title { margin-top: 16px; font-size: clamp(26px, 7.4vw, 60px); font-weight: 700; line-height: 1.4; letter-spacing: .08em; }
.hero-lead { margin-top: 16px; color: var(--c-text-sub); font-size: 14.5px; }
.hero-actions { display: grid; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hero-scroll { display: none; }

/* PC：写真を全面に敷き、左側に白いグラデーションを重ねる */
@media (min-width: 768px) {
  /* PC：画像を全面に敷く。住宅は右側、左側の青空にコピーを載せる */
  .hero { min-height: min(100svh, 900px); display: flex; align-items: center; padding-top: var(--header-h); }
  .hero-media { position: absolute; inset: 0; height: auto; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
  .hero-media img { object-position: 85% 50%; }
  /* 文字の背面だけ白くやわらげる（建物側はそのまま） */
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .62) 30%, rgba(255, 255, 255, .18) 50%, transparent 62%),
      linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, transparent 16%);
  }
  /* 画面幅が狭いPC・タブレットは建物が文字に近づくため、白をやや広めに */
  @media (max-width: 1199px) {
    .hero-media::after {
      background:
        linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .75) 38%, rgba(255, 255, 255, .25) 58%, transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, transparent 16%);
    }
  }
  .hero-body { margin-top: 0; padding-block: 48px 96px; }
  .hero-body::before { display: none; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
  .hero-lead { font-size: 16px; color: #4b5b6e; }
  /* 画像に重なる説明文・ポイントを読みやすく（白いやわらかな縁取り） */
  .hero-lead, .hero-points { text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9); }
  .hero-scroll {
    display: block; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    width: 1px; height: 64px; background: rgba(51, 65, 85, .18); overflow: hidden; text-decoration: none;
  }
  .hero-scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--c-accent); animation: scrollLine 2.4s var(--ease) infinite; }
  .hero-scroll span { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%); font-family: var(--font-en); font-size: 10px; letter-spacing: .3em; color: var(--c-text-sub); }
  @keyframes scrollLine { to { top: 100%; } }
}

/* 5. コンセプト ------------------------------------------------------------ */
.concept { padding-block: 72px 16px; overflow: hidden; }
.concept-inner { display: grid; gap: 48px; }
.concept-title { margin-top: 12px; font-size: clamp(21px, 5.4vw, 32px); font-weight: 700; line-height: 1.6; letter-spacing: .1em; }
.concept-text { margin-top: 22px; color: var(--c-text-sub); line-height: 2.2; }

/* 2枚の写真を少しずらして重ねる */
.concept-photos { position: relative; aspect-ratio: 1 / .82; margin-inline: 4px; }
.concept-photos::before {   /* 背景のやわらかい色の円 */
  content: ""; position: absolute; right: -14%; top: -10%; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 35%, var(--c-sky) 0%, rgba(234, 247, 253, 0) 70%);
}
.concept-photos::after {
  content: ""; position: absolute; left: -10%; bottom: -12%; width: 46%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(120, 191, 160, .25) 0%, rgba(120, 191, 160, 0) 70%);
}
.concept-photo { position: absolute; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.concept-photo--a { right: 0; top: 0; width: 74%; aspect-ratio: 4 / 3; }
.concept-photo--b { left: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; border: 6px solid #fff; }
.concept-badge {
  position: absolute; right: 6%; bottom: 2%; display: grid; place-content: center; width: 96px; aspect-ratio: 1; border-radius: 50%;
  font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; letter-spacing: .08em; color: #fff;
  background: linear-gradient(140deg, var(--c-accent), var(--c-green)); box-shadow: 0 12px 28px -12px rgba(52, 169, 201, .9);
}
.concept-badge b { font-size: 16px; }
@media (min-width: 960px) {
  .concept { padding-block: 128px 24px; }
  .concept-inner { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 72px; }
  .concept-badge { width: 116px; font-size: 13px; }
  .concept-badge b { font-size: 19px; }
}

/* 6. 施工事例 ------------------------------------------------------------- */
.works .container { container-type: inline-size; }

.works-filter {
  display: flex; gap: 8px; margin: -12px calc(var(--gutter) * -1) 28px; padding: 4px var(--gutter);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.works-filter::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .works-filter { justify-content: center; margin: -20px 0 40px; padding: 0; overflow: visible; } }
.filter-btn {
  flex: none; padding: 9px 18px; border: 0; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--c-text-sub); background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--c-line);
  transition: color .25s, background-color .25s, box-shadow .25s;
}
.filter-btn:hover { color: var(--c-accent-dark); }
.filter-btn.is-active { color: #fff; background: var(--c-accent); box-shadow: 0 8px 16px -10px rgba(52, 169, 201, .9); }

/* 背景：淡いブルーとグリーンの光をふんわり置いて華やかに */
.works { position: relative; overflow: hidden; isolation: isolate; }
.works::before, .works::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.works::before { width: 720px; aspect-ratio: 1; left: -260px; top: 120px; background: radial-gradient(circle, rgba(52, 169, 201, .16) 0%, rgba(52, 169, 201, 0) 65%); }
.works::after { width: 640px; aspect-ratio: 1; right: -220px; bottom: 40px; background: radial-gradient(circle, rgba(120, 191, 160, .2) 0%, rgba(120, 191, 160, 0) 65%); }
.works .section-title { position: relative; }
.works .section-title::after {  /* 見出し下のさわやかなライン */
  content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-green));
}

/* グリッド
   スマホ   ：1列（縦長写真だけ少し縦長に）
   タブレット：2列。大きい事例は横いっぱい、縦長写真は2マス分の高さ
   PC      ：4列ベントー
     ┌───────┬───┬───┐
     │ 大     │通常│縦 │
     │       ├───┤長 │
     │       │通常│   │
     ├───────┼───┴───┤
     │ 横長   │ 横長   │
     └───────┴───────┘ */
.works-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.work { position: relative; aspect-ratio: 4 / 3; }
.work.is-feature { aspect-ratio: 4 / 3.3; }
.work.is-tall { aspect-ratio: 4 / 5; }
.work[hidden] { display: none; }

@media (min-width: 600px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr); gap: 18px; grid-auto-flow: dense;
    grid-auto-rows: calc((100cqi - 18px) / 2 * .75);
  }
  .work, .work.is-feature, .work.is-tall { aspect-ratio: auto; }
  .work.is-feature { grid-column: span 2; grid-row: span 2; }
  .work.is-tall { grid-row: span 2; }
}
@media (min-width: 960px) {
  .works-grid {
    grid-template-columns: repeat(4, 1fr); gap: 20px;
    /* 1マス＝列幅×3/4（4:3）。最終段の横長2枚だけ少し背を高く（約16:9） */
    --cell: calc((100cqi - 60px) / 4);
    grid-auto-rows: calc(var(--cell) * .75);
  }
  .work.is-wide { grid-column: span 2; grid-row: span 1; }
  .works-grid:not(.is-filtered) { grid-template-rows: repeat(2, calc(var(--cell) * .75)) calc(var(--cell) * 1.12); }
}
/* 絞り込み中は均等グリッドに戻す */
@media (min-width: 600px) {
  .works-grid.is-filtered .work { grid-column: auto; grid-row: auto; }
}

.work-link {
  position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; text-align: left; color: #fff; background: none;
  box-shadow: var(--shadow); isolation: isolate;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.work-link .photo { position: absolute; inset: 0; }
.work-link img { transition: transform 1.1s var(--ease); }
.work-link::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 45, 60, .18) 62%, rgba(20, 45, 60, .68) 100%);
}
.work-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.work-link:hover img { transform: scale(1.05); }

.work-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 4px; padding: 18px 20px; }
.work-cat {
  justify-self: start; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--c-accent-dark); background: rgba(255, 255, 255, .92);
}
.work-ribbon {   /* 注目事例のラベル */
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .24em; color: #fff;
  background: linear-gradient(120deg, var(--c-accent), var(--c-green)); box-shadow: 0 8px 18px -8px rgba(52, 169, 201, .9);
}
.work-title { word-break: auto-phrase; font-size: 17px; font-weight: 700; line-height: 1.5; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.work-desc { font-size: 12.5px; line-height: 1.7; opacity: .92; }
.is-feature .work-cap { padding: 24px; }
@media (min-width: 960px) {
  .is-feature .work-cap { padding: 32px; }
  .is-feature .work-title { font-size: 24px; }
  .is-feature .work-desc { font-size: 14px; }
  .work:not(.is-feature):not(.is-wide):not(.is-tall) .work-desc { display: none; }
}
/* 写真未配置時はキャプションを濃い文字に */
.work-link:has(.is-missing) { color: var(--c-text); }
.work-link:has(.is-missing)::after { background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, .7)); }
.work-link:has(.is-missing) .work-title { text-shadow: none; }

.work-zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm);
  opacity: .9; transition: transform .3s var(--ease), opacity .3s;
}
.work-zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--c-accent-dark); stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) {
  .work-zoom { opacity: 0; transform: scale(.85); }
  .work-link:hover .work-zoom, .work-link:focus-visible .work-zoom { opacity: 1; transform: none; }
}

.works-more { margin-top: 48px; text-align: center; display: grid; justify-items: center; gap: 18px; color: var(--c-text-sub); font-size: 14px; }

/* 7. 対応工事 ------------------------------------------------------------- */
.service-list { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.service-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 18px;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px rgba(226, 238, 243, .7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card h3 { font-size: 15px; font-weight: 700; line-height: 1.5; }
.service-card p { font-size: 12.5px; line-height: 1.8; color: var(--c-text-sub); }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(140deg, var(--c-sky) 0%, var(--c-green-soft) 100%); }
.service-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--c-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card--wide { grid-column: 1 / -1; }
@media (min-width: 600px) { .service-card--wide { flex-direction: row; align-items: center; gap: 20px; } }
.service-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.service-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.service-more:hover svg { transform: translateX(3px); }
/* EV充電設備：7枚目のカード。端数が出ないよう全幅の横長カードにする */
.service-card--ev { grid-column: 1 / -1; }
.service-card--ev > div { display: grid; gap: 8px; }
.service-card .service-note { font-size: 11.5px; line-height: 1.7; padding: 8px 10px; border-radius: 8px; background: var(--c-sky-2); }
@media (min-width: 600px) {
  .service-card--ev { flex-direction: row; align-items: center; gap: 20px; }
  .service-card--ev .service-icon, .service-card--wide .service-icon { flex-shrink: 0; }
}
@media (min-width: 960px) {
  .service-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service-card { padding: 32px 30px; gap: 14px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 14px; }
  .service-card .service-note { font-size: 12px; }
  .service-more { font-size: 13.5px; }
  .service-card--ev { padding: 32px 36px; }
  .service-card--wide { padding: 32px 36px; background: linear-gradient(120deg, #fff 0%, #fff 55%, var(--c-green-soft) 100%); }
}

/* 物置・ガレージの紹介エリア */
.storage-feature {
  position: relative; margin-top: 40px; padding: 32px 22px 28px; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; gap: 24px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--c-line);
}
.storage-feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--c-accent), var(--c-green)); }
.storage-label { font-family: var(--font-en); font-weight: 500; font-size: 12px; letter-spacing: .28em; color: var(--c-accent); }
.storage-title { margin-top: 10px; font-size: 21px; font-weight: 700; line-height: 1.55; }
.storage-lead { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--c-text-sub); }
.storage-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--c-accent-dark); background: var(--c-sky);
}
.storage-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); }
/* イメージ写真：コンセプトの写真と同じく白フチ＋角丸＋影でなじませる */
.storage-photo { aspect-ratio: 4 / 3; border: 6px solid #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.storage-points { display: grid; gap: 12px; }
.storage-points li {
  position: relative; padding: 16px 16px 16px 46px; border-radius: var(--radius-sm);
  background: linear-gradient(140deg, var(--c-sky-2) 0%, #fff 100%); box-shadow: inset 0 0 0 1px var(--c-line);
}
.storage-points li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.storage-points h4 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.storage-points p { margin-top: 4px; font-size: 12.5px; line-height: 1.75; color: var(--c-text-sub); }
.storage-cta { display: grid; justify-items: center; gap: 10px; text-align: center; }
.storage-note { font-size: 12px; color: var(--c-text-sub); }
@media (min-width: 600px) { .storage-points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .storage-feature { margin-top: 56px; padding: 52px 56px 44px; grid-template-columns: 1fr 1fr; gap: 36px 48px; align-items: center; }
  .storage-title { font-size: 26px; }
  .storage-lead { font-size: 15px; }
  .storage-points { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .storage-points h4 { font-size: 15.5px; }
  .storage-points p { font-size: 13px; }
  .storage-cta { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 20px; text-align: left; }
}

/* 8. 選ばれる理由 / 中間CTA ------------------------------------------------ */
.reason-list { display: grid; gap: 18px; counter-reset: reason; }
@media (min-width: 768px) { .reason-list { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.reason {
  position: relative; padding: 32px 26px 28px; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--c-line);
}
.reason::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--c-accent), var(--c-green)); }
.reason-num { font-family: var(--font-en); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1.2px var(--c-accent); }
.reason h3 { margin-top: 14px; font-size: 19px; font-weight: 700; line-height: 1.5; }
.reason p { margin-top: 12px; font-size: 14px; color: var(--c-text-sub); }
@media (min-width: 960px) { .reason { padding: 44px 40px 40px; } .reason h3 { font-size: 22px; } .reason p { font-size: 15px; } }

.cta-band { padding: 0 10px; }
.cta-band-inner {
  display: grid; gap: 22px; justify-items: center; text-align: center;
  padding: 44px 24px; border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(120, 191, 160, .55) 0%, transparent 60%),
    linear-gradient(120deg, #3fb7d3 0%, var(--c-accent) 50%, #3a9fb8 100%);
  box-shadow: var(--shadow-lg);
}
.cta-band-title { font-size: clamp(19px, 4.8vw, 26px); font-weight: 700; line-height: 1.6; letter-spacing: .08em; }
.cta-band-text { margin-top: 6px; font-size: 13.5px; opacity: .92; }
@media (min-width: 960px) {
  .cta-band { padding: 0; }
  .cta-band-inner { grid-template-columns: 1fr auto; text-align: left; justify-items: start; padding: 56px 64px; }
}

/* 9. ご相談の流れ --------------------------------------------------------- */
.flow-list { display: grid; gap: 0; position: relative; max-width: 560px; margin-inline: auto; }
.flow-step { position: relative; padding: 0 0 28px 64px; }
.flow-step::before {   /* 丸いポイント */
  content: ""; position: absolute; left: 14px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 6px var(--c-accent), 0 0 0 6px rgba(52, 169, 201, .12);
}
.flow-step:not(:last-child)::after {   /* 縦ライン */
  content: ""; position: absolute; left: 24px; top: 34px; bottom: 2px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--c-accent), var(--c-green));
  opacity: .5;
}
.flow-num { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--c-accent); }
.flow-step h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.flow-step p { margin-top: 4px; font-size: 13.5px; color: var(--c-text-sub); }
@media (min-width: 960px) {
  .flow-list { max-width: none; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .flow-step { padding: 52px 18px 28px; text-align: center; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
  .flow-step::before { left: 50%; top: 18px; transform: translateX(-50%); }
  .flow-step:not(:last-child)::after { left: auto; right: -16px; top: 28px; bottom: auto; width: 16px; height: 2px; opacity: .6; }
  .flow-step h3 { margin-top: 4px; font-size: 16px; }
}

/* 10. 会社案内 ------------------------------------------------------------ */
.company-inner { display: grid; gap: 8px; }
.company-table { border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--c-line); padding: 8px 24px; }
.company-table > div { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.company-table > div:last-child { border-bottom: 0; }
.company-table dt { font-size: 12.5px; font-weight: 700; color: var(--c-accent-dark); letter-spacing: .12em; }
.company-table dd { font-size: 15px; word-break: break-all; }
.map-link { display: inline-grid; gap: 6px; color: var(--c-text); text-decoration: none; }
.map-link-label {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--c-accent-dark); background: var(--c-sky); transition: background-color .2s, color .2s;
}
.map-link-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-link:hover .map-link-label { color: #fff; background: var(--c-accent); }
@media (min-width: 768px) {
  .company-table { padding: 12px 40px; }
  .company-table > div { grid-template-columns: 160px 1fr; align-items: center; padding: 24px 0; }
}
@media (min-width: 960px) {
  .company-inner { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .company-inner .section-head { margin-bottom: 0; }
}

/* 11. お問い合わせ -------------------------------------------------------- */
.contact-inner { max-width: 860px; }
.contact-catch { display: inline-block; margin-bottom: 4px; font-size: 18px; color: var(--c-text); }
.contact-form {
  display: grid; gap: 24px; padding: 28px 20px; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .contact-form { padding: 52px 56px; gap: 28px; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; gap: 24px; }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field > label, .field > legend { display: flex; align-items: center; gap: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.field > legend { margin-bottom: 8px; }
.req, .opt { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.req { color: #fff; background: #e98a7b; }
.opt { color: var(--c-text-sub); background: #f1f5f9; }

.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-sky-2);
  font-size: 16px; /* iOSで拡大されないよう16px */
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; line-height: 1.8; }
.field ::placeholder { color: #a7b4c2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 4px rgba(52, 169, 201, .14); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e98a7b; background: #fff8f6; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--c-text-sub); border-bottom: 2px solid var(--c-text-sub); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; background: var(--c-sky-2); box-shadow: inset 0 0 0 1.5px var(--c-line);
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.chip input:checked + span { color: var(--c-accent-dark); background: var(--c-sky); box-shadow: inset 0 0 0 1.5px var(--c-accent); }
.chip input:checked + span::before { content: "✓"; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid rgba(52, 169, 201, .5); outline-offset: 2px; }

.form-note { font-size: 12.5px; color: var(--c-text-sub); }
.contact-form button[disabled] { opacity: .7; pointer-events: none; }
.contact-mail { margin-top: 24px; text-align: center; font-size: 14px; color: var(--c-text-sub); }

/* 12. フッター / 固定CTA --------------------------------------------------- */
.site-footer { padding: 56px 0 calc(96px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--c-line); }
@media (min-width: 960px) { .site-footer { padding-bottom: 32px; } }
.footer-inner { display: grid; gap: 32px; }
.footer-address { margin-top: 16px; font-style: normal; font-size: 12.5px; line-height: 1.8; color: var(--c-text-sub); }
.footer-copy { margin-top: 4px; font-size: 12.5px; color: var(--c-text-sub); }
.footer-mail { font-size: 14px; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.footer-nav a { display: block; padding: 6px 0; font-size: 13.5px; color: var(--c-text); text-decoration: none; }
.footer-nav a:hover { color: var(--c-accent-dark); }
.copyright { margin-top: 40px; text-align: center; font-family: var(--font-en); font-size: 12px; letter-spacing: .12em; color: var(--c-text-sub); }
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-nav ul { grid-template-columns: repeat(3, auto); gap: 4px 40px; }
}

/* スマホ下部の固定CTA：FVを過ぎたら表示、問い合わせ欄では隠す */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95) 35%);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 52px; }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* 13. ライトボックス ------------------------------------------------------- */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgba(15, 30, 40, .94); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(15, 30, 40, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lbIn .3s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 64px 12px 8px; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transition: opacity .25s; }
.lb-img.is-loading { opacity: 0; }
.lb-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
.lb-caption { display: grid; gap: 2px; }
.lb-cat { font-size: 12px; letter-spacing: .12em; color: #9fdcec; }
.lb-title { font-size: 16px; font-weight: 700; }
.lb-count { font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; opacity: .7; white-space: nowrap; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (max-width: 767px) { .lb-prev, .lb-next { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); transform: none; } }
@media (min-width: 768px) { .lb-stage { padding: 72px 88px 8px; } .lb-bar { padding-inline: 88px; } .lb-prev { left: 24px; } .lb-next { right: 24px; } .lb-close { top: 18px; right: 24px; } }

/* 14. アニメーション（控えめなフェードアップ） ----------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
