/*
Theme Name: Konan Setsubi Works
Theme URI: https://example.com/konan-setsubi
Author: 齋藤 (個人事業・制作見本)
Author URI: https://example.com
Description: 湖南設備工業株式会社（架空）の施工実績サイト用 自作WordPressテーマ。電気設備／空調・換気／給排水・管工事の施工事例を「工種 / エリア」で絞り込み、施工前後（before/after）写真・工期・工事金額帯・仕様を掲載。有料プラグイン（FacetWP等）を使わず admin-ajax による自作絞り込みで実装。建設・設備×施工実績カスタム投稿の見本（ナックウェブ基準）。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: konan-setsubi
Tags: construction, facility, custom-post-type, portfolio, ajax-filter, before-after, responsive, japanese
*/

/* =========================================================
   0. デザイントークン（CSS変数で一元管理）
   ── 建設・設備＝信頼のインフラ・ネイビー × エレクトリック・ブルー
   ========================================================= */
:root {
  --brand:     #14304a;   /* インフラ・ネイビー（設備・建設の信頼感） */
  --brand-2:   #1b3f60;
  --steel:     #43607a;
  --steel-2:   #74909f;
  --accent:    #2f9ee0;   /* エレクトリック・ブルー（電気・空調＝CTA/強調） */
  --accent-2:  #6fc6f0;
  --accent-dk: #1f7fbf;
  --amber:     #f4a935;   /* 施工「AFTER」・工期・実績の差し色 */
  --amber-dk:  #d98a12;
  --ink:       #16232c;
  --paper:     #f2f6f9;
  --paper-2:   #e4edf2;
  --white:     #ffffff;
  --line:      rgba(20, 48, 74, 0.12);
  --line-dk:   rgba(255, 255, 255, 0.14);
  --shadow:    0 18px 48px -24px rgba(20, 48, 74, 0.45);

  --font-sans: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;

  --wrap: 1200px;
  --radius: 14px;
}

/* =========================================================
   1. リセット & ベース
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-feature-settings: "palt" 1, "pkna" 1;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(52px, 8vw, 108px) 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; color: var(--accent-dk); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent-2); }
.section-title { font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: .01em; margin-bottom: 16px; }
.section-lead { max-width: 660px; color: var(--steel); font-size: 1.02rem; }
.empty-inline { color: var(--steel-2); font-size: .92rem; }

/* =========================================================
   2. ボタン
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 30px; border-radius: 999px; font-weight: 700;
  font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #04263a; box-shadow: 0 12px 26px -12px rgba(47,158,224,.85); }
.btn--primary:hover { background: var(--accent-dk); color: #fff; }
.btn--amber { background: var(--amber); color: #3a2600; box-shadow: 0 12px 26px -12px rgba(244,169,53,.8); }
.btn--amber:hover { background: var(--amber-dk); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-2); }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* =========================================================
   3. ヘッダー / ナビ
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(20px, 4vw, 48px);
  background: rgba(20, 48, 74, 0); backdrop-filter: blur(0px);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.site-header.is-scrolled {
  background: rgba(20, 48, 74, .95); backdrop-filter: blur(8px);
  padding-top: 11px; padding-bottom: 11px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; line-height: 1.2; }
.brand__name small { display: block; font-size: .6rem; letter-spacing: .16em; color: var(--accent-2); font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.nav a { color: #fff; font-size: .92rem; font-weight: 500; opacity: .92; }
.nav a:hover { opacity: 1; color: var(--accent-2); }
.nav .btn { padding: 10px 20px; font-size: .86rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

@media (max-width: 980px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 330px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 20px; padding: 40px; background: var(--brand);
    transform: translateX(100%); transition: transform .3s; z-index: 120; }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.06rem; }
  .nav-toggle { display: block; position: relative; z-index: 130; width: 30px; height: 22px; }
  .nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .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); }
}

/* =========================================================
   4. ヒーロー
   ========================================================= */
.hero {
  position: relative; min-height: 92svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 100% at 82% 0%, rgba(47,158,224,.34), transparent 55%),
    linear-gradient(160deg, rgba(10,26,46,.92) 0%, rgba(13,36,60,.88) 55%, rgba(24,44,66,.85) 100%),
    url("img/hero.jpg") center 35%/cover no-repeat;
}
.hero::after { /* 設備配線ドットの薄いテクスチャ */
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: linear-gradient(rgba(111,198,240,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(111,198,240,.5) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(80% 80% at 72% 42%, #000, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; padding: 130px 0 80px; }
.hero__q { font-size: clamp(2.3rem, 6.6vw, 4.7rem); line-height: 1.18; letter-spacing: .01em; }
.hero__q .em { color: var(--accent-2); position: relative; }
.hero__q .em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .1em; background: var(--accent); border-radius: 2px; }
.hero__sub { margin-top: 22px; font-size: clamp(1rem, 2.3vw, 1.22rem); font-weight: 500; color: rgba(255,255,255,.92); max-width: 640px; }
.hero__sub b { color: var(--accent-2); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .84rem; color: rgba(255,255,255,.78); }
.hero__badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero__badges b { color: var(--accent-2); font-weight: 700; }

.hero__scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.7); font-size: .66rem; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 38px; margin: 10px auto 0; background: rgba(255,255,255,.5); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* =========================================================
   5. 事業内容（サービス）
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -22px rgba(20,48,74,.5); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(20,48,74,.55); border-color: var(--accent); }
.service-card__ico { font-size: 2.1rem; }
.service-card__no { font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .12em; color: var(--accent-dk); }
.service-card h3 { font-size: 1.2rem; color: var(--brand); }
.service-card p { color: var(--steel); font-size: .92rem; margin: 0; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* =========================================================
   6. 実績ピックアップ（トップ）
   ========================================================= */
.pickup { background: var(--paper); }
.pickup__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.pickup__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }

/* =========================================================
   7. 選ばれる理由
   ========================================================= */
.reasons__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.reason { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.reason__no { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(150deg, var(--accent), var(--accent-dk)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.reason h3 { font-size: 1.12rem; color: var(--brand); margin-bottom: 6px; }
.reason p { color: var(--steel); font-size: .93rem; margin: 0; }

/* =========================================================
   8. 数字（カウントアップ）
   ========================================================= */
.stats { background: var(--brand); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid var(--line-dk); }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--accent-2); line-height: 1; }
.stat__num .unit { font-size: .9rem; color: #fff; margin-left: 3px; }
.stat__label { margin-top: 12px; font-size: .85rem; color: rgba(255,255,255,.8); }

/* =========================================================
   9. 施工の流れ
   ========================================================= */
.flow { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 42px; }
.flow__item { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.flow__no { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(150deg, var(--amber), var(--amber-dk)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.flow__no b { font-size: 1.2rem; }
.flow__title { font-size: 1.08rem; margin-bottom: 6px; color: var(--brand); }
.flow__body { color: var(--steel); font-size: .93rem; margin: 0; }

/* =========================================================
   10. 会社案内（biz）
   ========================================================= */
.biz { background: var(--brand); color: #fff; }
.biz__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.biz__title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.biz__title b { color: var(--accent-2); }
.biz__body { color: rgba(255,255,255,.82); }
.biz__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.biz__fact { border: 1px solid var(--line-dk); border-radius: 12px; padding: 16px; }
.biz__fact dt { font-size: .76rem; color: var(--accent-2); letter-spacing: .1em; }
.biz__fact dd { margin: 6px 0 0; font-size: 1.4rem; font-weight: 800; }

/* =========================================================
   11. CTA 帯
   ========================================================= */
.cta {
  color: #fff; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(47,158,224,.4), transparent 60%), linear-gradient(150deg, var(--brand-2), var(--brand));
}
.cta__title { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 14px; }
.cta__title b { color: var(--accent-2); }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta__tel { margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.82); }
.cta__tel b { font-size: 1.5rem; color: #fff; letter-spacing: .04em; }

/* =========================================================
   12. 実績ファインダー（アーカイブ：工種×エリア絞り込み）
   ========================================================= */
.finder__layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.finder__side { position: sticky; top: 84px; }
.filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 34px -28px rgba(20,48,74,.5); }
.filter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filter__title { font-size: 1.15rem; color: var(--brand); }
.filter__clear { background: none; border: 0; color: var(--accent-dk); font-weight: 700; cursor: pointer; font-size: .86rem; }
.filter__clear:hover { text-decoration: underline; }
.filter-group { border: 0; margin: 0 0 20px; padding: 0; }
.filter-group__title { display: block; font-weight: 700; font-size: .92rem; color: var(--brand); margin-bottom: 10px; padding: 0; }
.filter-search input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem;
}
.filter-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.filter-hint { font-size: .76rem; color: var(--steel-2); margin: 6px 0 0; }
.filter-group__list { display: grid; gap: 6px; }
.filter-check {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px;
  cursor: pointer; font-size: .92rem; color: var(--steel); transition: background .15s;
}
.filter-check:hover { background: var(--paper); }
.filter-check input { width: 17px; height: 17px; accent-color: var(--accent-dk); flex: none; }
.filter-check__name { flex: 1; }
.filter-check__count { font-size: .74rem; color: var(--steel-2); background: var(--paper-2); border-radius: 999px; padding: 1px 8px; }
.filter__submit { margin-top: 6px; }

.finder__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.finder__count { font-size: 1rem; color: var(--steel); margin: 0; }
.finder__count b { font-size: 1.5rem; color: var(--accent-dk); }
.finder__active { display: flex; flex-wrap: wrap; gap: 8px; }
.active-chip { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.active-chip:hover { background: var(--accent-dk); }
.active-chip--kw { background: var(--accent-dk); }
.finder__loading { text-align: center; padding: 20px; color: var(--accent-dk); font-weight: 700; }

/* =========================================================
   13. 実績グリッド / カード
   ========================================================= */
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.w-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px -28px rgba(20,48,74,.5);
  transition: transform .22s, box-shadow .22s;
}
.w-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -28px rgba(20,48,74,.55); }
.w-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.w-card__thumb { aspect-ratio: 16/10; position: relative; background: linear-gradient(150deg, var(--steel), var(--brand)); overflow: hidden; }
.w-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-card__type { position: absolute; left: 12px; top: 12px; background: rgba(47,158,224,.95); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.w-card__badge { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--brand); font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.w-card__body { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.w-card__area { font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--accent-dk); }
.w-card__title { font-size: 1.1rem; color: var(--brand); line-height: 1.4; }
.w-card__summary { font-size: .9rem; color: var(--steel); margin: 0; flex: 1; }
.w-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { display: inline-block; font-size: .74rem; color: var(--accent-dk); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.tag:hover { background: var(--accent); color: #04263a; }
.w-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--paper); font-size: .8rem; color: var(--steel); }
.w-card__foot b { color: var(--brand); }
.w-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-dk); }

/* 画像プレースホルダー */
.img-placeholder {
  display: grid; place-items: center; text-align: center; gap: 6px;
  color: rgba(255,255,255,.92); font-size: .8rem; letter-spacing: .04em; line-height: 1.5;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, var(--steel), var(--brand));
  width: 100%; height: 100%; padding: 16px;
}
.img-placeholder__ico { font-size: 2rem; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); color: var(--steel); }
.empty-state b { color: var(--brand); font-size: 1.1rem; }
.empty-state a { color: var(--accent-dk); font-weight: 700; text-decoration: underline; }

/* ページャ */
.p-pager { margin-top: 40px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.p-pager .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-weight: 700; }
.p-pager .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.p-pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent-dk); }

/* =========================================================
   14. before/after 比較スライダー（この見本の見せ場）
   ========================================================= */
.ba { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: pan-y; }
.ba__pane { position: absolute; inset: 0; overflow: hidden; }
.ba__inner { position: absolute; inset: 0 auto 0 0; width: var(--ba-w, 100%); height: 100%; }
.ba__pane--after { width: 50%; border-right: 3px solid var(--amber); }
.ba-face { display: grid; place-items: center; text-align: center; gap: 6px; width: 100%; height: 100%; padding: 16px; color: #fff; font-size: .82rem; line-height: 1.6; }
.ba-face img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ba-face--before { background: repeating-linear-gradient(135deg, rgba(0,0,0,.10) 0 14px, transparent 14px 28px), linear-gradient(150deg, #5a6b78, #35434f); }
.ba-face--after { background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px), linear-gradient(150deg, var(--accent), var(--accent-dk)); }
.ba-face__ico { font-size: 2rem; position: relative; z-index: 1; }
.ba-face__txt { position: relative; z-index: 1; }
.ba__label { position: absolute; top: 12px; z-index: 4; font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: #fff; padding: 4px 12px; border-radius: 999px; pointer-events: none; }
.ba__label--before { left: 12px; background: rgba(20,48,74,.82); }
.ba__label--after { right: 12px; background: var(--amber-dk); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--amber); transform: translateX(-50%); z-index: 3; pointer-events: none; }
.ba__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: #3a2600; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.ba__hint { text-align: center; font-size: .8rem; color: var(--steel-2); margin: 10px 0 0; }

/* =========================================================
   15. 実績詳細（single）
   ========================================================= */
.w-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.w-detail__type { display: inline-block; background: var(--accent); color: #04263a; font-size: .76rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.w-detail__docs { margin-top: 22px; display: grid; gap: 12px; }
.w-detail__cta { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.w-detail__cta h3 { color: var(--brand); font-size: 1.12rem; margin-bottom: 8px; }
.w-detail__cta p { color: var(--steel); font-size: .9rem; }
.w-detail__cta .cta__tel { color: var(--steel); margin-top: 16px; text-align: left; }
.w-detail__cta .cta__tel b { color: var(--brand); }

.w-detail__h2 { font-size: 1.3rem; color: var(--brand); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.w-detail__desc { margin-top: 40px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table th { width: 132px; background: var(--paper); color: var(--brand); font-weight: 700; white-space: nowrap; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td .tag { margin: 0 4px 4px 0; }
.feature-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.feature-list li { position: relative; padding-left: 28px; color: var(--ink); font-size: .96rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* =========================================================
   16. ページヘッダー（下層）
   ========================================================= */
.page-hero {
  color: #fff; padding: 148px 0 66px; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 85% 0%, rgba(47,158,224,.30), transparent 55%), linear-gradient(150deg, var(--brand), var(--brand-2));
}
.page-hero--works::after, .page-hero--work::after {
  content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: linear-gradient(rgba(111,198,240,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(111,198,240,.5) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 78%);
}
.page-hero__eyebrow { color: var(--accent-2); letter-spacing: .18em; font-size: .78rem; font-weight: 700; text-transform: uppercase; position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(1.7rem, 4.6vw, 3rem); margin-top: 10px; position: relative; z-index: 1; }
.page-hero__lead { margin-top: 14px; max-width: 640px; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.72); margin-bottom: 16px; position: relative; z-index: 1; }
.breadcrumb a:hover { color: var(--accent-2); }

/* =========================================================
   17. 記事本文
   ========================================================= */
.article { max-width: 820px; margin: 0 auto; }
.article__body p { color: var(--ink); }
.article__body h2, .article__body h3 { color: var(--brand); margin: 1.4em 0 .6em; }
.article__body ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { display: inline-block; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--accent-dk); font-weight: 700; }

/* =========================================================
   18. 見積依頼フォーム
   ========================================================= */
.apply { background: var(--paper); }
.apply__box { max-width: 780px; margin-inline: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 46px); }
.form-note { background: var(--paper-2); border-left: 4px solid var(--amber); padding: 12px 16px; border-radius: 8px; font-size: .84rem; color: var(--steel); margin-bottom: 22px; }
.form-note code { background: #fff; padding: 1px 6px; border-radius: 5px; font-size: .82em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.form-field .req-mark { color: #e0322b; margin-left: 4px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.form-field select { min-width: 10rem; padding-right: 2.2rem; text-overflow: ellipsis; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-submit { text-align: center; margin-top: 8px; }
.form-hint { font-size: .8rem; color: var(--steel-2); }

/* =========================================================
   19. フッター
   ========================================================= */
.site-footer { background: var(--brand); color: rgba(255,255,255,.82); padding: 62px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name small { color: var(--accent-2); }
.footer__desc { font-size: .9rem; margin-top: 16px; color: rgba(255,255,255,.66); }
.footer__col h4 { color: var(--accent-2); font-size: .82rem; letter-spacing: .14em; margin-bottom: 14px; }
.footer__col a { display: block; font-size: .92rem; padding: 5px 0; color: rgba(255,255,255,.8); }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dk); font-size: .78rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   20. スクロール登場アニメ
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll::after { animation: none; }
}

/* =========================================================
   21. 404
   ========================================================= */
.notfound { min-height: 66vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 80px; }
.notfound__code { font-size: clamp(4rem, 16vw, 9rem); font-weight: 800; color: var(--brand); line-height: 1; }
.notfound__code b { color: var(--accent); }

/* =========================================================
   22. レスポンシブ
   ========================================================= */
@media (max-width: 1040px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .w-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .finder__layout { grid-template-columns: 1fr; }
  .finder__side { position: static; }
  .w-detail { grid-template-columns: 1fr; }
  .w-detail__cta { position: static; }
  .biz__grid { grid-template-columns: 1fr; }
  .reasons__grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .w-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .spec-table th { width: 104px; padding: 12px; }
  .spec-table td { padding: 12px; }
}
