/* リア・ライズ 検証サイト（rearise.bzf.jp）共通スタイル
   2026-12-03 ブランドを作り直し: 黒鉛色（#121315）・骨白（#f3f1ec）・コンクリートのグレーに、差し色の銅（#d2652f）を1色だけ */
:root {
  --ink: #121315;        /* 紫黒の面 */
  --ink-2: #1d1e21;      /* 面の重なり */
  --accent: #b34c19;     /* ロゴの紫。主ボタン・見出しの1語 */
  --accent-2: #d2652f;   /* ロゴの明るい紫 */
  --accent-soft: #eb9a63;     /* 紫黒の面の上での強調（数字・ラベル） */
  --text: #18191b;
  --text2: #4b4e53;
  --muted: #7a7d82;
  --bg: #f3f1ec;
  --line: #e2ded6;
  --alert: #b42318;      /* 補助金の注意など、事故防止の赤字だけ */
  --white: #fff;
  --r: 14px;
  --r-ctl: 8px;
  --font-en: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", "Meiryo", sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body.rr { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.9; overflow-x: clip; word-break: auto-phrase; }
/* 共通の指定は :where で優先度を 0 にし、部品ごとの指定（.split-num など）が必ず勝つようにする */
:where(.rr) img { max-width: 100%; height: auto; display: block; }
:where(.rr) a { color: inherit; }
:where(.rr) p { margin: 0 0 1em; }
:where(.rr) :is(h1, h2, h3, h4) { font-family: var(--font-head); margin: 0; line-height: 1.35; text-wrap: balance; letter-spacing: -0.01em; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 860px); margin-inline: auto; }
.sp-only { display: none; }
.nw { display: inline-block; }

/* ---------- 文字の部品 ---------- */
.eyebrow { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.sec-ink .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--accent-soft); }
.h2 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 22px; }
.h2 em, .h1 em { font-style: normal; color: var(--accent); }
:where(.rr) :is(h1, h2, h3) em, .hero h1 em { font-style: normal; }
.sec-ink .h2 em, .page-hero .h1 em, .hero h1 em { color: var(--accent-soft); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; margin-bottom: 12px; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text2); max-width: 46em; }
.sec-ink .lead { color: #d6d3cd; }
.note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.sec-ink .note { color: #a3a09a; }
.en-big { font-family: var(--font-en); font-weight: 700; letter-spacing: -0.01em; line-height: .9; text-transform: uppercase; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border-radius: var(--r-ctl); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, border-color .2s; cursor: pointer; font-family: var(--font-body); }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { font-family: var(--font-en); transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--white) !important; }
.btn-primary:hover { background: #8f3c12; }
.btn-white { background: var(--white); color: var(--accent) !important; }
.btn-line { border-color: currentColor; color: var(--accent) !important; background: transparent; }
.sec-ink .btn-line, .hero .btn-line, .cta-band .btn-line { color: var(--white) !important; }
.btn-tel { font-family: var(--font-en); font-size: 22px; letter-spacing: .02em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.sec-ink .text-link { color: var(--accent-soft); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s; background: rgba(18, 19, 21, .0); }
.site-header.is-solid, body.rr:not(.home) .site-header { background: rgba(18, 19, 21, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100% - 40px, 1320px); }
.site-header .logo img { width: 150px; }
.gnav { display: flex; align-items: center; gap: 4px; }
.gnav > a, .gnav .has-sub > a { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 700; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.gnav small { font-family: var(--font-en); font-size: 10px; letter-spacing: .16em; color: var(--accent-soft); font-weight: 500; }
.gnav .has-sub { position: relative; }
.gnav .sub { position: absolute; top: 100%; left: 50%; translate: -50% 6px; min-width: 260px; background: var(--white); border-radius: var(--r); padding: 10px; box-shadow: 0 20px 50px rgba(18,19,21,.25); opacity: 0; visibility: hidden; transition: .2s; }
.gnav .has-sub:hover .sub, .gnav .has-sub:focus-within .sub { opacity: 1; visibility: visible; translate: -50% 0; }
.gnav .sub a { display: block; padding: 9px 14px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 6px; }
.gnav .sub a:hover { background: var(--bg); color: var(--accent); }
.head-cta { display: flex; align-items: center; gap: 14px; margin-left: 10px; }
.head-tel { color: var(--white); text-decoration: none; text-align: right; line-height: 1.2; }
.head-tel b { font-family: var(--font-en); font-size: 24px; letter-spacing: .02em; display: block; }
.head-tel small { font-size: 11px; color: #d6d3cd; }
.head-cta .btn { min-height: 46px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 12px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: .3s; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: min(100svh, 920px); color: var(--white); background: var(--ink); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(.75) contrast(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,19,21,.96) 0%, rgba(18,19,21,.82) 38%, rgba(70,40,22,.35) 70%, rgba(18,19,21,.35) 100%), linear-gradient(0deg, rgba(18,19,21,.95) 0%, rgba(18,19,21,0) 45%); }
.hero-word { position: absolute; right: -2vw; top: calc(var(--header-h) + 2vh); font-family: var(--font-en); font-weight: 700; font-size: clamp(90px, 17vw, 260px); line-height: .82; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.32); letter-spacing: -0.01em; pointer-events: none; text-align: right; }
.hero .container { position: relative; padding: calc(var(--header-h) + 80px) 0 64px; }
.hero h1 { font-size: clamp(36px, 6vw, 76px); font-weight: 900; line-height: 1.18; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero .lead { color: #d6d3cd; font-size: clamp(16px, 1.7vw, 19px); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.hero-badges li { border: 1px solid rgba(255,255,255,.3); color: #d6d3cd; border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700; background: rgba(18,19,21,.4); }
.hero-proof { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.hero-proof div { padding: 18px 18px 0 0; }
.hero-proof b { font-family: var(--font-en); font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--white); font-weight: 600; }
.hero-proof b small { font-size: .42em; margin-left: 4px; color: var(--accent-soft); font-family: var(--font-head); font-weight: 900; }
.hero-proof span { display: block; font-size: 13px; color: #d6d3cd; margin-top: 6px; line-height: 1.6; }

/* ---------- セクション ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-bg { background: var(--bg); }
.sec-ink { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.sec-ink::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -300px; background: radial-gradient(circle, rgba(210,101,47,.16), rgba(112,51,164,0) 65%); pointer-events: none; }
.sec-ink > * { position: relative; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.sec-head .lead { margin: 0; }

/* 左右2段（写真と文章） */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--r); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .tag { position: absolute; left: -12px; bottom: 24px; background: var(--accent); color: var(--white); font-family: var(--font-en); letter-spacing: .14em; font-size: 13px; padding: 8px 16px; }
.split-num { font-family: var(--font-en); font-size: 76px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent-2); margin: 0 0 14px; }
.step .num { margin: 0; }
.hero-proof b { display: block; }
.stats b + span, .hero-proof b + span { margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 9px; border-left: 3px solid var(--accent-2); border-bottom: 3px solid var(--accent-2); transform: rotate(-45deg); }
.sec-ink .checks li::before { border-color: var(--accent-soft); }

/* サービスの一覧（番号付きの行） */
.svc-list { border-top: 1px solid rgba(255,255,255,.16); }
.svc-row { display: grid; grid-template-columns: 90px 1.1fr 1.6fr 40px; gap: 24px; align-items: center; padding: 28px 8px; border-bottom: 1px solid rgba(255,255,255,.16); text-decoration: none; color: var(--white); transition: background .25s, padding .25s; }
.svc-row:hover { background: rgba(210,101,47,.12); padding-left: 20px; }
.svc-row .no { font-family: var(--font-en); font-size: 40px; color: var(--accent-soft); line-height: 1; }
.svc-row h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; }
.svc-row h3 small { display: block; font-family: var(--font-en); font-size: 12px; letter-spacing: .16em; color: #a3a09a; font-weight: 500; margin-top: 4px; }
.svc-row p { margin: 0; color: #d6d3cd; font-size: 15px; line-height: 1.8; }
.svc-row .go { font-family: var(--font-en); font-size: 26px; color: var(--accent-soft); }
.sec:not(.sec-ink) .svc-list { border-color: var(--line); }
.sec:not(.sec-ink) .svc-row { color: var(--text); border-color: var(--line); }
.sec:not(.sec-ink) .svc-row p { color: var(--text2); }
.sec:not(.sec-ink) .svc-row h3 small { color: var(--muted); }
.sec:not(.sec-ink) .svc-row .no, .sec:not(.sec-ink) .svc-row .go { color: var(--accent-2); }
.sec:not(.sec-ink) .svc-row:hover { background: var(--bg); }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.stats div { padding: 30px 26px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { font-family: var(--font-en); font-size: clamp(44px, 5vw, 68px); font-weight: 600; line-height: 1; color: var(--accent); display: block; }
.stats b small { font-family: var(--font-head); font-size: .32em; font-weight: 900; margin-left: 4px; color: var(--text); }
.stats span { display: block; font-size: 14px; color: var(--text2); margin-top: 10px; line-height: 1.7; }

/* 補助金の強調帯 */
.subsidy-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: 0 24px 60px rgba(18,19,21,.12); }
.subsidy-band .l { padding: clamp(32px, 4vw, 56px); }
.subsidy-band .r { background: var(--accent); color: var(--white); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.subsidy-band .r b { font-family: var(--font-en); font-size: clamp(56px, 7vw, 96px); line-height: 1; font-weight: 600; }
.subsidy-band .r b small { font-family: var(--font-head); font-size: .3em; font-weight: 900; }
.alert { border-left: 4px solid var(--alert); background: #fdf1ee; color: #7a1a12; padding: 14px 18px; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; font-weight: 700; margin: 20px 0; line-height: 1.7; }
.alert b { color: var(--alert); }

/* 流れ（縦の番号） */
.steps { counter-reset: s; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--font-en); font-size: 56px; font-weight: 600; color: var(--accent); line-height: 1; }
.step .num small { display: block; font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.step h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.step p:last-child { margin-bottom: 0; }
.sec-ink .step { border-color: rgba(255,255,255,.16); }
.sec-ink .step .num { color: var(--accent-soft); }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; font-size: 15px; }
.tbl th, .tbl td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.75; }
.tbl th { width: 28%; background: #f8f6f2; font-weight: 700; color: var(--text); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.price-tbl thead th { background: var(--ink); color: var(--white); width: auto; font-size: 14px; }
.price-tbl td b { font-family: var(--font-en); font-size: 22px; color: var(--accent); font-weight: 600; }
.draft-flag { display: inline-block; background: #fff4d6; color: #7a5600; border: 1px solid #f0d58a; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }

/* カード（使うのはページに1回まで） */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.card h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.sec-ink .card { background: var(--ink-2); border-color: rgba(255,255,255,.1); }

/* 資格・許可のリスト */
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cred { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); background: rgba(255,255,255,.03); }
.cred .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(235,154,99,.16); color: var(--accent-soft); }
.cred .ico svg { width: 22px; height: 22px; }
.cred h3 { font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.cred p { margin: 0; font-size: 14px; color: #d6d3cd; line-height: 1.7; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; position: relative; font-weight: 900; font-family: var(--font-head); font-size: 18px; display: flex; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q, .faq .a::before { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-family: "Helvetica Neue", Arial, var(--font-body); font-weight: 700; font-size: 15px; line-height: 1; margin-top: 1px; }
.faq summary .q { background: var(--accent); color: var(--white); }
.faq .a { position: relative; }
.faq .a::before { content: "A"; position: absolute; left: 0; top: 0; background: var(--bg); color: var(--accent); border: 1.5px solid var(--accent-2); }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 14px; height: 14px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: .25s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 36px; }
.faq .a { padding: 2px 0 24px 46px; color: var(--text2); }
.faq .a p:last-child { margin-bottom: 0; }

/* エリア */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-box { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: var(--white); }
.area-box h3 { font-size: 20px; font-weight: 900; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.area-box h3 span { font-family: var(--font-en); color: var(--accent-2); font-size: 14px; letter-spacing: .1em; }
.wards { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.wards li { background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
.wards li.home { background: var(--accent); color: var(--white); }

/* ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 14px; color: var(--text2); margin-top: 8px; }

/* 下層ページのヒーロー */
.page-hero { position: relative; background: var(--ink); color: var(--white); padding: calc(var(--header-h) + 70px) 0 64px; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(.3); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,19,21,.95) 20%, rgba(110,52,20,.35) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; }
.page-hero .lead { color: #d6d3cd; margin: 0; }
.page-hero .bg-word { position: absolute; right: -1vw; bottom: -2vw; font-family: var(--font-en); font-weight: 700; font-size: clamp(80px, 14vw, 200px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); z-index: 1; text-transform: uppercase; pointer-events: none; }
.breadcrumb { background: var(--bg); font-size: 13px; padding: 12px 0; color: var(--muted); }
.breadcrumb a { color: var(--text2); text-decoration: none; }
.breadcrumb span { margin: 0 8px; }

/* 下層ページの本文 */
.prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin: 56px 0 18px; padding-left: 18px; border-left: 5px solid var(--accent); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 900; margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); }
.prose .src { font-size: 13px; color: var(--muted); }
.toc { background: var(--bg); border-radius: var(--r); padding: 24px 28px; margin-bottom: 40px; }
.toc p { font-weight: 900; margin-bottom: 8px; font-family: var(--font-head); }
.toc ol { margin: 0; }
.toc a { color: var(--text); }

/* 関連リンク */
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 900; font-family: var(--font-head); background: var(--white); transition: .2s; }
.related a:hover { border-color: var(--accent-2); color: var(--accent); }
.related a span { font-family: var(--font-en); color: var(--accent-2); }

/* ---------- シミュレーター ---------- */
.sim { background: var(--white); border-radius: calc(var(--r) + 4px); box-shadow: 0 30px 80px rgba(18,19,21,.16); overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; }
.sim-form { padding: clamp(24px, 3.5vw, 44px); }
.sim-q { border: 0; margin: 0 0 26px; padding: 0; }
.sim-q legend { font-weight: 900; font-family: var(--font-head); font-size: 17px; margin-bottom: 12px; padding: 0; display: flex; gap: 10px; align-items: baseline; }
.sim-q legend .n { font-family: var(--font-en); color: var(--accent); font-size: 15px; letter-spacing: .1em; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); font-weight: 700; font-size: 15px; background: var(--white); transition: .15s; }
.opts input:checked + span { border-color: var(--accent); background: #fbefe6; color: var(--accent); }
.opts input:focus-visible + span { outline: 3px solid rgba(210,101,47,.4); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); height: 28px; }
.range-row output { font-family: var(--font-en); font-size: 30px; color: var(--accent); min-width: 120px; text-align: right; }
.range-row output small { font-family: var(--font-body); font-size: 13px; color: var(--text2); margin-left: 4px; }
.sim-result { background: var(--ink); color: var(--white); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; position: relative; }
.sim-result .label { font-family: var(--font-en); letter-spacing: .18em; font-size: 13px; color: var(--accent-soft); }
.sim-result .total { font-family: var(--font-en); font-size: clamp(38px, 4.6vw, 58px); line-height: 1.05; font-weight: 600; }
.sim-result .total small { font-family: var(--font-head); font-size: .36em; font-weight: 900; margin-left: 4px; }
.sim-result .breakdown { list-style: none; margin: 0; padding: 0; font-size: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.sim-result .breakdown li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #d6d3cd; }
.sim-result .breakdown li b { color: var(--white); font-family: var(--font-en); font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.sim-result .note { color: #a3a09a; }
.sim-result .btn { width: 100%; }
.sim-result .btn-line, .sec-ink .btn-line, .cta-band .btn-line, .hero .btn-line { color: var(--white) !important; border-color: rgba(255,255,255,.7); }

/* ---------- フォーム（Contact Form 7） ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); }
.form-wrap .row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.form-wrap .row > label, .form-wrap .row > .lbl { font-weight: 700; padding-top: 10px; }
.form-wrap .req, .form-wrap .opt { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.form-wrap .req { background: var(--accent); color: var(--white); }
.form-wrap .opt { background: var(--bg); color: var(--muted); }
.form-wrap input[type=text], .form-wrap input[type=email], .form-wrap input[type=tel], .form-wrap select, .form-wrap textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: #fbfaf8; }
.form-wrap textarea { min-height: 180px; }
.form-wrap input:focus, .form-wrap select:focus, .form-wrap textarea:focus { outline: 0; border-color: var(--accent-2); background: var(--white); }
.form-wrap .wpcf7-list-item { margin: 0 16px 6px 0; display: inline-block; }
.form-wrap .submit { text-align: center; margin-top: 30px; }
.form-wrap input[type=submit] { background: var(--accent); color: var(--white); border: 0; min-height: 58px; padding: 0 56px; border-radius: var(--r-ctl); font-weight: 700; font-size: 17px; cursor: pointer; }
.form-wrap .wpcf7-spinner { display: block; margin: 10px auto 0; }
.sim-carry { background: #fbefe6; border: 1px solid #efcfb6; border-radius: var(--r-ctl); padding: 14px 18px; font-size: 14px; margin-bottom: 20px; display: none; white-space: pre-line; }
.sim-carry.on { display: block; }
.recaptcha-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- 締めのCTA・フッター ---------- */
.cta-band { background: radial-gradient(ellipse at 85% 120%, rgba(210,101,47,.55), rgba(210,101,47,0) 60%), linear-gradient(110deg, #1a1b1e 0%, #121315 100%); color: var(--white); padding: clamp(64px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: "CONTACT"; position: absolute; right: -2vw; bottom: -3vw; font-family: var(--font-en); font-weight: 700; font-size: clamp(90px, 16vw, 240px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); pointer-events: none; }
.cta-band .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 900; margin-bottom: 14px; }
.cta-band p { color: #d6d3cd; margin: 0; }
.cta-actions { display: grid; gap: 12px; }
.cta-actions .btn { width: 100%; min-height: 64px; }
.cta-actions .tel-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-ctl); padding: 14px 20px; text-decoration: none; color: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cta-actions .tel-box b { font-family: var(--font-en); font-size: 32px; letter-spacing: .02em; font-weight: 500; }
.cta-actions .tel-box small { font-size: 12px; color: #d6d3cd; line-height: 1.5; }
.site-footer { background: #0c0d0e; color: #d6d3cd; padding: 72px 0 110px; font-size: 14px; }
.site-footer .top { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 48px; }
.site-footer .logo img { width: 170px; margin-bottom: 18px; }
.site-footer .corp p { margin: 0 0 6px; line-height: 1.8; }
.site-footer .licenses { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; line-height: 1.9; color: #a3a09a; }
.fnav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fnav .h { font-family: var(--font-en); letter-spacing: .16em; color: var(--accent-soft); font-size: 12px; margin-bottom: 10px; }
.fnav a { display: block; color: #d6d3cd; text-decoration: none; padding: 4px 0; }
.fnav a:hover { color: var(--white); }
.site-footer .bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #86837d; }
.site-footer .bottom a { color: #a3a09a; }

/* スマホ下部の固定ボタン */
.fixed-cta { display: none; }

/* ---------- 表示の演出（JS が動いたときだけ隠して出す） ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } .btn, .svc-row { transition: none; } }

/* ---------- タブレット ---------- */
@media (max-width: 1100px) {
  .head-tel { display: none; }
  .gnav > a, .gnav .has-sub > a { padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .site-header { background: rgba(18,19,21,.94); }
  .site-header .logo img { width: 128px; }
  .menu-btn { display: block; }
  /* ぼかし（backdrop-filter）があると固定メニューの高さの基準がヘッダーになり、メニューが途中で切れるので、スマホでは外す */
  .site-header, .site-header.is-solid, body.rr:not(.home) .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  body.nav-open { overflow: hidden; }
  body.nav-open .fixed-cta { display: none; }

  .gnav { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: var(--ink); flex-direction: column; align-items: stretch; padding: 16px 20px 120px; gap: 0; overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
  body.nav-open .gnav { transform: none; }
  body.nav-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .gnav > a, .gnav .has-sub > a { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px; }
  .gnav .sub { position: static; translate: none; opacity: 1; visibility: visible; background: transparent; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .gnav .sub a { color: #d6d3cd; padding: 10px 4px; font-weight: 500; }
  .head-cta { flex-direction: column; align-items: stretch; margin: 20px 0 0; }
  .head-cta .head-tel { display: block; text-align: left; }
  .head-cta .btn { min-height: 54px; }
  .sec-head, .split, .subsidy-band, .cta-band .container, .sim, .site-footer .top { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .area-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 64px 1fr 30px; }
  .svc-row p { grid-column: 2 / 3; }
  .svc-row .go { grid-row: 1; grid-column: 3; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
}
/* ---------- スマホ ---------- */
@media (max-width: 640px) {
  body.rr { font-size: 15px; }
  .sp-only { display: inline; }
  .container, .narrow { width: min(100% - 32px, var(--container)); }
  .hero { min-height: 100svh; }
  .hero .container { padding: calc(var(--header-h) + 40px) 0 40px; }
  .hero-word { font-size: 25vw; top: calc(var(--header-h) + 10px); }
  .hero-badges li { font-size: 12px; padding: 4px 12px; }
  .btn { width: 100%; }
  .btn-row { margin-top: 22px; }
  .cards, .area-grid, .gallery, .creds, .related, .fnav { grid-template-columns: 1fr; }
  .stats b { font-size: 44px; }
  .stats div { padding: 22px 18px; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .step .num { font-size: 40px; }
  .tbl th, .tbl td { display: block; width: 100%; padding: 12px 16px; }
  .tbl th { border-bottom: 0; padding-bottom: 4px; }
  .price-tbl thead { display: none; }
  .price-tbl td { display: flex; justify-content: space-between; gap: 10px; }
  .price-tbl td::before { content: attr(data-th); font-weight: 700; color: var(--text2); font-size: 13px; }
  .form-wrap .row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .form-wrap .row > label, .form-wrap .row > .lbl { padding-top: 0; }
  .faq summary { font-size: 16px; padding-right: 36px; }
  .faq .a { padding-left: 42px; }
  .split-num { font-size: 56px; }
  .split-media .tag { left: 0; }
  .fixed-cta { display: grid; grid-template-columns: 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -8px 24px rgba(18,19,21,.18); }
  .fixed-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 60px; text-decoration: none; font-weight: 700; font-size: 15px; }
  .fixed-cta .t { background: var(--ink); color: var(--white); font-family: var(--font-en); font-size: 18px; letter-spacing: .02em; }
  .fixed-cta .s { background: var(--accent); color: var(--white); }
  .site-footer { padding-bottom: 120px; }
}

/* ---------- ロゴ（記号は SVG、文字は書体で組む） ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-family: var(--font-en); font-weight: 700; font-size: 27px; letter-spacing: .14em; }
.brand .wm small { font-family: var(--font-head); font-weight: 700; font-size: 10px; letter-spacing: .32em; margin-top: 5px; color: #c9c6c0; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand svg { width: 46px; height: 46px; }
.site-footer .brand .wm b { font-size: 31px; }
@media (max-width: 960px) { .brand svg { width: 34px; height: 34px; } .brand .wm b { font-size: 23px; } }
/* 図解 */
.fig { margin: 0 0 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(12px, 2vw, 28px); }
.fig img { width: 100%; height: auto; margin: 0 auto; }
.fig figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.fig.narrow-fig img { max-width: 560px; }
/* シミュレーターの構造の絵 */
.opts.with-pic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.opts.with-pic label { display: block; }
.opts.with-pic span { display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 8px 12px; min-height: 0; text-align: center; font-size: 14px; line-height: 1.4; }
.opts.with-pic img { width: 100%; height: 78px; object-fit: contain; }
@media (max-width: 640px) { .opts.with-pic { grid-template-columns: repeat(2, 1fr); } }

/* このページの要点（読み手に先に結論を見せる） */
.sec-summary { padding: 40px 0 0; }
.summary { border: 1px solid var(--line); border-left: 4px solid var(--accent-2); border-radius: 0 var(--r) var(--r) 0; background: var(--white); padding: 22px 26px; }
.summary p.t { font-family: var(--font-head); font-weight: 900; margin: 0 0 8px; }
.summary ul { margin: 0; padding-left: 1.3em; }
.summary li { margin-bottom: 4px; }
.summary .upd { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* =====================================================================
   2026-12-03 v3: テンプレート感をなくす作り直し
   角丸・影・グラデーション・装飾英字・アイコンをやめ、明朝の見出し、
   左に見出し・右に中身の非対称の組み、写真の大小、台帳型の情報で見せる
   ===================================================================== */
:root { --r: 2px; --r-ctl: 2px; --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; }

/* 見出しは明朝。1語だけの色付けはやめる */
.h1, .h2, .page-hero .h1, .prose h2, .notice h2, .top-hero h1 { font-family: var(--font-mincho); font-weight: 800; letter-spacing: .02em; }
.h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.5; margin-bottom: 18px; }
.h2 em, .h1 em, .sec-ink .h2 em, .page-hero .h1 em { color: inherit; }
.prose h2 { border-left: 0; padding-left: 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(22px, 2.6vw, 28px); }
.prose h2:first-child { border-top: 0; padding-top: 0; }

/* 装飾をなくす */
html.js .reveal { opacity: 1; transform: none; transition: none; }
.btn:hover { transform: none; }
.tag, .split-num, .page-hero .bg-word, .svc-row .no, .svc-row h3 small, .cred .ico { display: none; }
.sec-ink::before { display: none; }
.split-media img, .gallery img, .card, .area-box, .tbl-wrap, .tbl, .sim, .summary, .related a, .toc, .alert, .fig, .form-wrap, .stats, .subsidy-band, .cta-actions .tel-box { border-radius: 0; box-shadow: none; }
.subsidy-band .r { background: var(--ink); }
.page-hero::after { background: rgba(18, 19, 21, .78); }
.page-hero { padding-bottom: 56px; }
.cta-band { background: var(--ink); border-top: 4px solid var(--accent-2); }
.cta-band::after { display: none; }
@media (min-width: 961px) { .svc-row { grid-template-columns: 1.1fr 1.7fr 32px; } }
.svc-row:hover { padding-left: 8px; }
.creds { gap: 0 48px; }
.cred { border: 0; border-top: 1px solid rgba(255,255,255,.16); background: none; padding: 18px 0; }
.area-box { background: none; border: 0; border-top: 2px solid var(--text); padding: 16px 0 8px; }
.wards { gap: 2px 16px; }
.wards li { background: none; padding: 0; font-weight: 500; border-radius: 0; }
.wards li.home { background: none; color: var(--accent); font-weight: 800; }
.fig { border: 0; padding: 0; background: none; }
.related a { border: 0; border-top: 1px solid var(--line); padding: 18px 0; background: none; }

/* ヘッダーは常に黒鉛の帯 */
.site-header, .site-header.is-solid, body.rr:not(.home) .site-header { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* キャプション */
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--text2); line-height: 1.6; margin-top: 8px; }

/* ---------- トップ: 会社と事業 ---------- */
.top-hero { display: grid; grid-template-columns: 5fr 7fr; min-height: min(88vh, 820px); padding-top: var(--header-h); background: var(--bg); }
.top-hero-text { padding: clamp(40px, 6vw, 88px) clamp(20px, 4.5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.top-hero-co { font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--text2); border-left: 3px solid var(--accent-2); padding-left: 12px; margin: 0 0 22px; }
.top-hero h1 { font-size: clamp(34px, 4.3vw, 60px); line-height: 1.3; margin: 0 0 18px; color: var(--text); }
.top-hero-sub { font-family: var(--font-mincho); font-weight: 600; font-size: clamp(17px, 1.6vw, 20px); color: var(--text); margin: 0 0 18px; }
.top-hero-area { font-size: 15px; color: var(--text2); line-height: 1.85; margin: 0 0 30px; }
.top-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.top-hero-tel { margin: 26px 0 0; font-size: 14px; color: var(--text2); }
.top-hero-tel a { font-family: var(--font-en); font-size: 26px; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.top-hero-tel small { margin-left: 10px; }
.top-hero-photo { position: relative; margin: 0; min-height: 420px; }
.top-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.top-hero-photo figcaption { position: absolute; left: 0; bottom: 0; margin: 0; background: rgba(18,19,21,.82); color: #e9e6e0; padding: 8px 14px; font-size: 12px; }

/* 左に見出し・右に中身（ページ全体で使う非対称の組み） */
.idx-wrap, .vflow-wrap, .company-band, .faq-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.idx-head p, .vflow-head p, .company-head p { color: var(--text2); font-size: 15px; }
.sec-ink .company-head p { color: #bdbab4; }

/* 依頼できる工事（索引） */
.idx-group + .idx-group { margin-top: 36px; }
.idx-group h3 { font-size: 13px; font-weight: 700; color: var(--text2); letter-spacing: .08em; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.idx-group a { display: grid; grid-template-columns: 16em 1fr 24px; gap: 4px 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.idx-group a b { font-size: 18px; font-weight: 800; }
.idx-group a span { color: var(--text2); font-size: 15px; }
.idx-group a::after { content: "→"; color: var(--accent-2); font-family: var(--font-en); }
.idx-group a:hover b { color: var(--accent); }

/* 現場で、毎回やっていること（写真の大小） */
.field { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 32px; }
.field-main { grid-column: 1 / 8; grid-row: 1 / 3; }
.field-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.field-text { grid-column: 8 / 13; grid-row: 1; }
.field-sub:nth-of-type(2) { grid-column: 8 / 13; grid-row: 2; }
.field-sub:nth-of-type(3) { grid-column: 1 / 8; grid-row: 3; }
.field-sub img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.field-sub:nth-of-type(3) img { aspect-ratio: 750 / 352; }
.field-list { margin: 8px 0 22px; }
.field-list dt { font-weight: 800; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.field-list dd { margin: 4px 0 0; color: var(--text2); }

/* 見積もり（代表の写真＋説明） */
.estimate { display: grid; grid-template-columns: 4fr 8fr; gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.estimate-photo img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 30%; }
.estimate-photo figcaption { font-weight: 700; color: var(--text); }
.estimate-sim { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 26px 0 18px; }
.estimate-sim p { margin: 0; font-size: 15px; color: var(--text2); }
.estimate-sim p b { color: var(--text); }

/* 補助金の案内（罫線で区切る） */
.notice-sec { padding: clamp(48px, 6vw, 72px) 0; }
.notice { display: grid; grid-template-columns: 5fr 7fr; gap: 20px clamp(32px, 5vw, 72px); border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); padding: 30px 0; }
.notice h2 { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.55; margin: 0; }
.notice-body p:last-child { margin-bottom: 0; }
.notice .text-link { margin-left: 10px; }

/* 工事の流れ（文字の手順） */
.vflow { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.vflow li { counter-increment: v; display: grid; grid-template-columns: 3.2em 1fr; column-gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.vflow li:last-child { border-bottom: 1px solid var(--line); }
.vflow li::before { content: counter(v, decimal-leading-zero); grid-row: 1 / 3; font-family: var(--font-en); font-size: 22px; font-weight: 600; color: var(--accent-2); line-height: 1.2; }
.vflow b { font-size: 17px; }
.vflow span { color: var(--text2); font-size: 15px; }

/* 会社・許可（台帳） */
.ledger { display: grid; grid-template-columns: 13em 1fr; margin: 0; }
.ledger dt, .ledger dd { border-top: 1px solid rgba(255,255,255,.16); padding: 16px 0; margin: 0; }
.ledger dt { color: #bdbab4; font-size: 14px; font-weight: 700; padding-right: 20px; }
.ledger dd { color: var(--white); font-size: 15px; line-height: 1.8; }

/* よくある質問の見出し */
.faq-head .text-link { display: inline-block; margin-top: 6px; }

@media (max-width: 960px) {
  .top-hero { grid-template-columns: 1fr; min-height: 0; }
  .top-hero-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .idx-wrap, .vflow-wrap, .company-band, .faq-wrap, .estimate, .notice { grid-template-columns: 1fr; }
  .field { grid-template-columns: 1fr; }
  .field-main, .field-text, .field-sub:nth-of-type(2), .field-sub:nth-of-type(3) { grid-column: 1; grid-row: auto; }
  .estimate-photo { max-width: 360px; }
}
@media (max-width: 640px) {
  .top-hero-text { padding: 32px 16px 36px; }
  .top-hero-cta .btn { width: 100%; }
  .idx-group a { grid-template-columns: 1fr 20px; }
  .idx-group a span { grid-column: 1; }
  .idx-group a::after { grid-row: 1; grid-column: 2; }
  .estimate-sim { flex-direction: column; align-items: stretch; }
  .ledger { grid-template-columns: 1fr; }
  .ledger dd { border-top: 0; padding-top: 2px; }
  .notice .text-link { margin-left: 0; display: inline-block; margin-top: 6px; }
}

/* v3: 見出しと説明は左揃えで縦に積む（左右2分割の繰り返しをやめる） */
.sec-head { display: block; margin-bottom: 36px; max-width: 46em; }
.sec-head .lead { margin-top: 4px; color: var(--text2); }
.eyebrow-jp { font-family: var(--font-mincho); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: none; color: var(--accent); margin-bottom: 10px; }
.eyebrow-jp::before { display: none; }
.page-hero .lead { max-width: 40em; }

/* v3 修正1 */
.gnav small { display: none; }
.fnav .h { font-family: var(--font-mincho); letter-spacing: .08em; text-transform: none; }
.top-hero h1 { font-size: clamp(52px, 6vw, 92px); line-height: 1.15; letter-spacing: .04em; }
.top-hero h1 .h1-pre { display: block; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.5; letter-spacing: .06em; margin-bottom: 10px; }
.top-hero-photo img { object-position: 100% 50%; }
/* 現場写真: 大1枚を左に通し、右に文章・小2枚を積む */
.field-main { grid-column: 1 / 8; grid-row: 1 / 4; }
.field-main img { height: 100%; aspect-ratio: auto; min-height: 520px; }
.field-sub:nth-of-type(3) { grid-column: 8 / 13; grid-row: 3; }
.field-sub:nth-of-type(3) img { aspect-ratio: 3 / 2; }
@media (max-width: 960px) {
  .field-main img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .field-main, .field-sub:nth-of-type(3) { grid-row: auto; }
}
@media (max-width: 640px) {
  .top-hero h1 { font-size: 46px; }
  .top-hero h1 .h1-pre { font-size: 19px; }
}

/* v3 修正2: 黒い帯の中の説明文を読める色に */
.sec-ink .sec-head .lead, .sec-ink .lead, .sec-ink .note { color: #c9c5be; }
.sec-ink .sec-head .lead a { color: var(--accent-soft); }

/* v3 修正3: 番号を外した行リストのスマホ組み／黒い帯の中の表の文字色 */
@media (max-width: 960px) {
  .svc-row { grid-template-columns: 1fr 28px; gap: 6px 16px; padding: 22px 0; }
  .svc-row h3 { grid-column: 1; grid-row: 1; }
  .svc-row p { grid-column: 1; grid-row: 2; }
  .svc-row .go { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
.sec-ink .tbl, .sec-ink .tbl td, .sec-ink .tbl th { color: var(--text); }
.sec-ink .tbl a { color: var(--accent); }

/* v4 修正: 現場写真の3枚目に PC の列指定が残り、スマホで横にはみ出していた */
@media (max-width: 960px) {
  .field-main, .field-text, .field-sub, .field-sub:nth-of-type(2), .field-sub:nth-of-type(3) { grid-column: 1 / -1; grid-row: auto; }
}

/* =====================================================================
   2026-12-03 v4: 1画面目（社名を重機の背後に置く）
   写真・社名・切り抜いた重機を同じ原点・同じ倍率で重ね、社名の右側を運転席で隠す
   ===================================================================== */
.hero-c { position: relative; height: clamp(640px, 100svh, 940px); overflow: hidden; background: var(--ink); color: var(--white); }
.hc-bg, .hc-cut { position: absolute; inset: 0; margin: 0; }
.hc-bg img, .hc-cut img { position: absolute; right: 0; bottom: 0; top: auto; left: auto; height: 94%; width: auto; max-width: none; display: block; }
.hc-bg img { filter: brightness(.76) saturate(.95) contrast(1.05); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hc-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,19,21,.55) 0%, rgba(18,19,21,.2) 34%, rgba(18,19,21,0) 60%); }
.hc-cut { z-index: 2; pointer-events: none; }
.hc-cut img { filter: brightness(.98) contrast(1.03); }
.hc-word { position: absolute; z-index: 1; left: var(--hw-left); bottom: var(--hw-bottom); margin: 0; font-family: "League Gothic", var(--font-en); font-weight: 400; font-size: var(--hw-size); line-height: 1; letter-spacing: 0; color: var(--bg); white-space: nowrap; pointer-events: none; user-select: none; -webkit-text-stroke: .012em var(--bg); }
.hc-bar { position: absolute; z-index: 1; left: 0; bottom: var(--hb-bottom); width: 25vw; height: 10.5vw; background: var(--accent-2); clip-path: polygon(0 62%, 100% 0, 100% 38%, 0 100%); }
/* League Gothic の実測: 大文字の高さ .75em、REARISE の幅 2.285em、行高1での基準線は箱の下端から .065em */
/* 大きさはヒーローの高さ基準（横長の画面で運転席より右に広がらないように）。左端は運転席の位置から逆算 */
.hero-c { --hh: clamp(640px, 100svh, 940px); height: var(--hh); --hw-size: min(29.2vw, calc(var(--hh) * .467)); --hw-left: max(1.4vw, calc(100vw - var(--hh) * 1.564)); --hw-bottom: calc(5% - .065 * var(--hw-size)); --hb-bottom: calc(5% + .75 * var(--hw-size) + 6px); }
.hc-bar { left: 0; width: calc(var(--hw-left) + var(--hw-size) * .82); height: calc(var(--hw-size) * .36); }
/* 運転席の左端（写真の左から 47%）より右の字は運転席に隠れる部分なので切る（履帯の上からのぞかないように） */
.hc-word { clip-path: inset(-10% max(0px, calc(var(--hw-left) + 2.285 * var(--hw-size) - 100vw + var(--hh) * .66)) -10% -10%); }
@media (max-width: 960px) {
  /* 字の下端を運転席の屋根（写真の上から 45.5%）より大文字の 73% 分下に置く */
  .hero-c { --hw-size: 42vw; --hw-left: calc((100vw - 2.285 * var(--hw-size)) / 2); --hw-bottom: calc(54.5% - .545 * var(--header-h) - .6125 * var(--hw-size)); }
}
.hc-copy { position: relative; z-index: 3; padding: calc(var(--header-h) + clamp(28px, 5vh, 56px)) 3.3vw 0; }
.hc-copy h1 { margin: 0; font-weight: 800; }
.hc-main { display: block; font-family: var(--font-mincho); line-height: 1.04; letter-spacing: .01em; color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hc-main .l1 { display: block; font-size: clamp(60px, 7.5vw, 112px); }
.hc-main .l2 { display: block; font-size: clamp(44px, 5.6vw, 84px); margin-top: .1em; }
.hc-sub { display: block; margin-top: 22px; font-family: var(--font-mincho); font-weight: 800; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .14em; color: #f3f1ec; text-shadow: 0 1px 12px rgba(0,0,0,.45); }

/* スマホ: 写真をヘッダー直下から全面に。社名は運転席の屋根に下端を隠させ、腕の手前に出す */
@media (max-width: 960px) {
  .hero-c { height: max(620px, calc(100svh - 60px)); }
  .hc-bg img, .hc-cut img { top: var(--header-h); bottom: 0; right: auto; left: 50%; height: calc(100% - var(--header-h)); transform: translateX(-50%); }
  .hc-bg img { -webkit-mask-image: none; mask-image: none; filter: brightness(.86) saturate(1) contrast(1.04); }
  .hc-cut img { clip-path: inset(45.5% 0 0 0); }
  .hc-bg::after { background: linear-gradient(180deg, rgba(18,19,21,.5) 0%, rgba(18,19,21,.15) 30%, rgba(18,19,21,0) 45%); }
  .hc-copy { padding: calc(var(--header-h) + 18px) 16px 0; }
  .hc-main { line-height: 1.08; }
  .hc-main .l1, .hc-main .l2 { font-size: clamp(44px, 9vw, 76px); margin-top: 0; }
  .hc-sub { font-size: clamp(16px, 2.4vw, 20px); margin-top: 12px; letter-spacing: .12em; }
  .hc-bar { display: none; }
  .hc-word { clip-path: none; }
}

/* スマホ下の固定帯: 電話番号を標準幅の太字に、左右を半分ずつ */
@media (max-width: 960px) {
  .fixed-cta { grid-template-columns: 1fr 1fr; }
  .fixed-cta .t { font-family: var(--font-body, "Zen Kaku Gothic New"), sans-serif; font-size: 19px; font-weight: 700; letter-spacing: .01em; }
}

/* =====================================================================
   2026-12-03 地色と見出しの見直し（配色3案に共通する部分）
   生成りの地＋明朝の見出しをやめ、無彩色の地とゴシックの見出しにする
   明朝はトップの1画面目のコピーだけに残す
   ===================================================================== */
:root { --bg: #f3f3f5; --line: #dcdde1; }
.h1, .h2, .page-hero .h1, .prose h2, .notice h2, .top-hero h1 {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif; font-weight: 900; letter-spacing: .01em; line-height: 1.45; }
.top-hero-sub, .eyebrow-jp, .fnav .h { font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif; font-weight: 700; }
.hc-sub { color: #fff; }

/* =====================================================================
   2026-12-03 配色 C案（鉄黒と現場の黄）
   白地の文字・細い印は鉄黒。黄は主ボタン・太い帯・飾り線と、黒い面の上の強調だけに使う
   （白地に黄色の文字は読めないので使わない）
   ===================================================================== */
:root {
  --ink: #23272a; --ink-2: #2d3236;
  --accent: #191b1d;        /* 白地の文字・リンク・番号（鉄黒） */
  --accent-2: #191b1d;      /* 白地の細い印・矢印・チェック */
  --accent-soft: #f2c63d;   /* 黒い面の上の強調 */
  --yellow: #f2c63d;        /* 主ボタン・帯 */
  --text: #191b1d; --bg: #f0f1ef; --line: #d9dbd8;
}
.btn-primary, .form-wrap input[type=submit], .fixed-cta .s, .split-media .tag { background: var(--yellow); color: #191b1d !important; }
.btn-primary:hover, .form-wrap input[type=submit]:hover { background: #e3b52a; }
.btn-white { color: #191b1d !important; }
.cta-band .btn-line, .sec-ink .btn-line, .page-hero .btn-line { color: var(--yellow) !important; }
.text-link, .prose a { text-decoration: none; border-bottom: 2px solid var(--yellow); }
.prose a { color: var(--text); font-weight: 700; }
.sec-ink .text-link { border-bottom-color: currentColor; }
.prose h2 { border-left-color: var(--yellow); }
.summary { border-left-color: var(--yellow); }
.top-hero-co { border-left-color: var(--yellow); }
.cta-band { border-top-color: var(--yellow); }
.hc-bar { background: var(--yellow); }
.subsidy-band .r { background: var(--ink); }
.svc-row:hover { background: rgba(242,198,61,.16); }
.sec-ink::before { background: radial-gradient(circle, rgba(242,198,61,.10), rgba(242,198,61,0) 65%); }
.cred .ico { background: rgba(242,198,61,.16); }
.opts input:checked + span { border-color: #191b1d; background: #fbf2d2; color: #191b1d; }
.opts input:focus-visible + span { outline-color: rgba(242,198,61,.7); }
.sim-carry { background: #fbf2d2; border-color: #ecd88f; }
/* C案の補足: 明るい面の補助文字・入力枠・フォーカス線を読める濃さに（WCAG の 4.5:1／3:1 の目安） */
.breadcrumb, .form-wrap .opt, .sim-form .note { color: #62666a; }
.form-wrap input[type="text"]:not(:focus), .form-wrap input[type="email"]:not(:focus), .form-wrap input[type="tel"]:not(:focus),
.form-wrap select:not(:focus), .form-wrap textarea:not(:focus), .opts input:not(:checked) + span { border-color: #767b80; }
.opts input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.sec-ink .price-tbl thead th, .sec-ink .price-tbl thead th a { color: var(--white); }

/* ===== Contact Form 7（検証サイトのフォーム） ===== */
.form-wrap .wpcf7 p { margin: 0; }
.form-wrap .wpcf7 br { display: none; }
.form-wrap .wpcf7-form-control-wrap { display: block; }
.form-wrap .wpcf7-not-valid-tip { font-size: 13px; margin-top: 6px; }
.form-wrap .wpcf7-response-output { margin: 18px 0 0 !important; border-radius: 8px; font-size: 14px; }
