/* ハルカゼ精工 コーポレートサイト(ポートフォリオ用の架空企業)
   配色: 鉄紺(ink/steel) × 真鍮(brass)。全ページ共通のスタイル */
:root {
  --ink: #17222c;
  --steel: #3c4f60;
  --sub: #5f6c78;
  --paper: #f3f4f2;
  --rule: #d6dadc;
  --brass: #b88a3e;
  --brass-dark: #8f6a2c;
  --white: #ffffff;
  --error: #b4472f;
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.85; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.4; margin: 0; text-wrap: balance; }
p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 32px; }
.mono { font-family: var(--font-mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ポートフォリオ表記 */
.portfolio-badge { background: var(--ink); color: #cdd5db; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: 0.04em; }
.portfolio-badge a { color: #fff; margin-left: 10px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-family: var(--font-head); font-size: 18px; font-weight: 900; letter-spacing: 0.05em; }
.logo-text small { font-family: var(--font-mono); font-size: 10px; color: var(--sub); letter-spacing: 0.14em; }
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.gnav a { text-decoration: none; font-size: 14px; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color 0.15s; }
.gnav ul a:hover { border-color: var(--rule); }
.gnav a[aria-current="page"] { border-color: var(--brass); }
.btn-quote { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff !important; padding: 10px 18px !important; border: 0 !important; border-radius: 3px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.btn-quote:hover { background: var(--steel); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 共通パーツ */
.section { padding-block: 96px; }
.section.gray { background: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 40px; }
.section-head .en { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--brass-dark); }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.section-head p { color: var(--sub); max-width: 40em; margin-top: 8px; }
.section-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.more { font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.more::after { content: "→"; transition: transform 0.15s; }
.more:hover::after { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 3px; border: 1px solid var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; }
.btn-fill { background: var(--ink); color: #fff; }
.btn-fill:hover { background: var(--steel); border-color: var(--steel); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-dark); border-color: var(--brass-dark); }

/* 下層ページの見出し */
.page-head { background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: 44px 48px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px dashed var(--rule); box-shadow: 0 0 0 40px var(--paper), 0 0 0 41px var(--rule); pointer-events: none; }
.breadcrumb { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--sub); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--steel); }
.page-head .en { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--brass-dark); position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-top: 4px; position: relative; z-index: 1; }
.page-head p { color: var(--sub); margin-top: 10px; max-width: 40em; position: relative; z-index: 1; }

/* ページ内メニュー */
.local-nav { border-bottom: 1px solid var(--rule); background: var(--white); }
.local-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.local-nav a { display: block; padding: 14px 18px; font-size: 14px; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.local-nav a:hover { border-color: var(--brass); }

/* ===== TOP ===== */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 72px 80px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero .tol { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; color: var(--brass); display: flex; align-items: center; gap: 12px; }
.hero .tol::before { content: ""; width: 32px; height: 1px; background: var(--brass); }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; line-height: 1.4; letter-spacing: 0.01em; }
.hero p { color: #b9c4cd; max-width: 32em; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-drawing { position: relative; }
.hero-drawing svg { width: 100%; height: auto; }
.hero-drawing figcaption { font-family: var(--font-mono); font-size: 11px; color: #7f8e9b; letter-spacing: 0.08em; margin-top: 8px; text-align: right; }

.figures { border-bottom: 1px solid var(--rule); }
.figures ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.figures li { padding: 28px 24px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.figures li:first-child { border-left: 0; padding-left: 0; }
.figures b { font-family: var(--font-mono); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.figures b small { font-size: 0.55em; margin-left: 2px; }
.figures span { font-size: 13px; color: var(--sub); }

.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--rule); display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.service-card:hover { border-color: var(--steel); transform: translateY(-3px); }
.service-card .art { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 22px; display: grid; place-items: center; height: 170px; }
.service-card .art svg { height: 120px; width: auto; }
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 19px; font-weight: 700; }
.service-card p { font-size: 14px; color: var(--sub); }
.service-card .spec { font-family: var(--font-mono); font-size: 12px; color: var(--steel); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--rule); }

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.reason { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.reason + .reason { padding-left: 28px; border-left: 1px solid var(--rule); }
.reason .num { font-family: var(--font-mono); font-size: 13px; color: var(--brass-dark); letter-spacing: 0.1em; }
.reason h3 { font-size: 19px; }
.reason p { font-size: 14px; color: var(--sub); }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case-card { background: var(--white); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.case-card .art { height: 150px; background: var(--ink); display: grid; place-items: center; padding: 16px; }
.case-card .art svg { height: 110px; width: auto; }
.case-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card .ind { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--sub); }
.case-card .ind span { border: 1px solid var(--steel); color: var(--steel); padding: 0 8px; font-size: 11px; }
.case-card h3 { font-size: 17px; }
.case-card dl { margin: 0; display: grid; grid-template-columns: 3.5em 1fr; gap: 4px 10px; font-size: 13px; }
.case-card dt { color: var(--brass-dark); font-weight: 700; }
.case-card dd { margin: 0; color: var(--sub); }
.case-card .result { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--rule); display: flex; align-items: baseline; gap: 10px; }
.case-card .result b { font-family: var(--font-mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.case-card .result span { font-size: 12px; color: var(--sub); }

.recruit-band { background: var(--steel); color: #fff; }
.recruit-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: 64px; }
.recruit-band .en { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: #e3c48d; }
.recruit-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin: 6px 0 10px; }
.recruit-band p { color: #d3dbe1; max-width: 36em; }
.recruit-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.recruit-band .btn:hover { background: var(--paper); }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.news-list li { border-bottom: 1px solid var(--rule); }
.news-list .item { display: grid; grid-template-columns: 110px 90px minmax(0, 1fr); gap: 16px; padding: 18px 4px; align-items: baseline; text-decoration: none; }
.news-list a.item:hover .title { text-decoration: underline; }
.news-list time { font-family: var(--font-mono); font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.news-list .cat { font-size: 11px; text-align: center; border: 1px solid var(--steel); color: var(--steel); padding: 1px 6px; }
.news-list .cat.equipment { border-color: var(--brass-dark); color: var(--brass-dark); }
.news-list .cat.recruit { background: var(--steel); color: #fff; }
.news-list .title { font-size: 15px; }
.news-empty { padding: 20px 4px; color: var(--sub); font-size: 14px; }

.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { padding-block: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.cta-band p { color: #b9c4cd; margin-top: 10px; }
.cta-band .tel { margin-top: 18px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.cta-band .tel b { font-family: var(--font-mono); font-size: 26px; font-weight: 500; letter-spacing: 0.04em; }
.cta-band .tel small { color: #8b9aa6; font-size: 12px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }

/* ===== 会社案内 ===== */
.message { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.message .portrait { background: var(--paper); border: 1px solid var(--rule); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.message .portrait svg { width: 70%; height: auto; }
.message .sign { margin-top: 14px; font-size: 13px; color: var(--sub); }
.message .sign b { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.message .text { display: flex; flex-direction: column; gap: 18px; }
.message .text h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; }
.message .text p { max-width: 38em; }
.outline { margin: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.outline dt, .outline dd { padding: 16px 4px; border-bottom: 1px solid var(--rule); margin: 0; }
.outline dt { font-weight: 700; font-size: 14px; color: var(--steel); }
.outline dd { font-size: 15px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 82px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 40px; padding-block: 12px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 78px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 2px solid var(--brass); }
.timeline time { font-family: var(--font-mono); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline p { font-size: 15px; }
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.access .map { border: 1px solid var(--rule); background: var(--paper); }
.access .map svg { width: 100%; height: auto; }
.access dl { margin: 0; display: grid; grid-template-columns: 5em 1fr; gap: 10px 16px; font-size: 15px; }
.access dt { color: var(--steel); font-weight: 700; font-size: 14px; }
.access dd { margin: 0; }

/* ===== 事業・技術 ===== */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.flow li { counter-increment: step; border: 1px solid var(--rule); background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.flow li::before { content: "STEP " counter(step); font-family: var(--font-mono); font-size: 12px; color: var(--brass-dark); letter-spacing: 0.12em; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--brass); border-right: 2px solid var(--brass); transform: translateY(-50%) rotate(45deg); }
.flow b { font-size: 16px; font-family: var(--font-head); }
.flow span { font-size: 13px; color: var(--sub); }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.spec-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table thead th { font-size: 12px; font-weight: 700; color: var(--steel); background: var(--paper); letter-spacing: 0.04em; }
.spec-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.spec-table td.mono { font-family: var(--font-mono); font-size: 13px; }
.spec-table .ok { color: var(--steel); font-weight: 700; }
.note { font-size: 12px; color: var(--sub); margin-top: 12px; }
.quality { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.quality ul { margin: 16px 0 0; padding-left: 1.2em; }
.quality li + li { margin-top: 6px; }
.cert { border: 1px solid var(--rule); background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.cert .badge { font-family: var(--font-mono); font-size: 28px; font-weight: 500; color: var(--steel); }
.cert span { font-size: 13px; color: var(--sub); }
.block + .block { margin-top: 80px; }

/* ===== 導入事例 ===== */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter button { font: inherit; font-size: 14px; padding: 8px 18px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); border-radius: 999px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.filter button:hover { border-color: var(--steel); }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-count { font-size: 13px; color: var(--sub); margin: -16px 0 24px; }

/* ===== お知らせ ===== */
.article { max-width: 760px; }
.article-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.article-cat { font-size: 11px; border: 1px solid var(--brass-dark); color: var(--brass-dark); padding: 1px 8px; }
.article-meta time { font-family: var(--font-mono); font-size: 14px; color: var(--sub); }
.article-body { display: flex; flex-direction: column; gap: 20px; font-size: 16px; }
.article-body h2 { font-size: 21px; margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--brass); }
.article-figure { margin: 8px 0; border: 1px solid var(--rule); background: var(--paper); padding: 24px; }
.article-figure figcaption { font-size: 12px; color: var(--sub); margin-top: 10px; }
.article-nav { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }

/* ===== 採用 ===== */
.recruit-hero { background: var(--steel); color: #fff; padding-block: 56px 64px; }
.recruit-hero .breadcrumb, .recruit-hero .breadcrumb a { color: #c9d3da; }
.recruit-hero .en { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: #e3c48d; }
.recruit-hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; margin: 8px 0 14px; }
.recruit-hero p { color: #d3dbe1; max-width: 36em; }
.recruit-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.recruit-figures div { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.recruit-figures b { font-family: var(--font-mono); font-size: 34px; font-weight: 500; font-variant-numeric: tabular-nums; }
.recruit-figures b small { font-size: 0.5em; margin-left: 2px; }
.recruit-figures span { font-size: 14px; color: var(--sub); }
.jobs { display: grid; gap: 24px; }
.job { border: 1px solid var(--rule); background: var(--white); }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.job-head h3 { font-size: 20px; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-tags span { font-size: 12px; padding: 2px 10px; background: var(--paper); color: var(--steel); }
.job-tags span.hl { background: var(--brass); color: #fff; }
.job dl { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); }
.job dt, .job dd { padding: 12px 26px; border-bottom: 1px solid var(--rule); margin: 0; font-size: 14px; }
.job dt { color: var(--steel); font-weight: 700; padding-right: 0; }
.job dl > :nth-last-child(-n+2) { border-bottom: 0; }
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.voice { background: var(--white); border: 1px solid var(--rule); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.voice-head { display: flex; gap: 16px; align-items: center; }
.voice-head .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); display: grid; place-items: center; flex: none; }
.voice-head .avatar svg { width: 34px; }
.voice-head b { display: block; font-family: var(--font-head); font-size: 16px; }
.voice-head span { font-size: 12px; color: var(--sub); }
.voice q { font-family: var(--font-head); font-size: 18px; font-weight: 700; quotes: "「" "」"; }
.voice p { font-size: 14px; color: var(--sub); }

/* ===== お問い合わせ ===== */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.steps li { counter-increment: s; padding: 12px 16px; background: var(--paper); color: var(--sub); font-size: 14px; text-align: center; position: relative; }
.steps li::before { content: counter(s) ". "; font-family: var(--font-mono); }
.steps li + li { margin-left: 2px; }
.steps li[aria-current="step"] { background: var(--ink); color: #fff; font-weight: 700; }
.steps li.done { background: var(--steel); color: #fff; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.form { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.field { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; padding-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.req, .opt { font-size: 10px; font-weight: 700; padding: 1px 6px; letter-spacing: 0.04em; }
.req { background: var(--brass); color: #fff; }
.opt { background: var(--paper); color: var(--sub); }
.control { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.control input[type="text"], .control input[type="email"], .control input[type="tel"], .control select, .control textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 2px; background: var(--white); color: var(--ink); }
.control textarea { min-height: 160px; resize: vertical; }
.control input[type="file"] { font: inherit; font-size: 14px; }
.control .hint { font-size: 12px; color: var(--sub); }
.control .error { font-size: 13px; color: var(--error); font-weight: 500; }
.control .error:empty { display: none; }
.control [aria-invalid="true"] { border-color: var(--error) !important; background: #fdf6f4 !important; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.agree input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--ink); }
.form-actions { display: flex; gap: 12px; justify-content: center; padding-top: 32px; flex-wrap: wrap; }
.form-actions .btn { min-width: 220px; }
.form-error-summary { border: 1px solid var(--error); background: #fdf6f4; color: var(--error); padding: 14px 18px; font-size: 14px; margin-bottom: 20px; }
.confirm-table { margin: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.confirm-table dt, .confirm-table dd { margin: 0; padding: 16px 4px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.confirm-table dt { font-weight: 700; color: var(--steel); font-size: 14px; }
.confirm-table dd { white-space: pre-wrap; word-break: break-word; }
.done-box { text-align: center; padding: 40px 0 16px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.done-box svg { width: 72px; height: 72px; }
.done-box h2 { font-size: 26px; }
.done-box p { color: var(--sub); max-width: 34em; }
.side-box { background: var(--paper); padding: 26px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.side-box h3 { font-size: 16px; }
.side-box .tel { font-family: var(--font-mono); font-size: 24px; font-weight: 500; }
.side-box ul { margin: 0; padding-left: 1.2em; color: var(--sub); }

/* フッター */
.site-footer { background: #0f171e; color: #9aa7b2; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; padding-block: 56px 40px; }
.footer-brand .logo-text b { color: #fff; }
.footer-brand address { font-style: normal; margin-top: 16px; line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: #e3c48d; font-weight: 500; margin-bottom: 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #24303a; padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.footer-bottom a { color: #c9d3da; }

/* スマホ用の固定ボタン */
.sp-cta { display: none; }

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .gnav ul { gap: 18px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 48px; }
  .hero-drawing { max-width: 520px; }
  .service-cards, .case-grid { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .reason, .reason + .reason { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .message { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
  .quality, .access { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .gnav { position: fixed; inset: 72px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; box-shadow: 0 16px 32px rgba(15, 23, 30, 0.12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s; }
  .gnav.open { transform: none; opacity: 1; visibility: visible; transition: opacity 0.2s, transform 0.2s; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .gnav ul a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--brass-dark); font-weight: 700; }
  .gnav .btn-quote { justify-content: center; margin-top: 16px; padding: 14px !important; }
  .site-header { top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { padding-inline: 20px; }
  .header-inner { height: 64px; }
  .gnav { inset: 64px 0 auto 0; }
  html { scroll-padding-top: 76px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 28px; }
  .figures ul { grid-template-columns: 1fr 1fr; }
  .figures li { padding: 20px 0 20px 16px; }
  .figures li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figures li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .service-cards, .case-grid, .voices, .recruit-figures { grid-template-columns: 1fr; }
  .recruit-band .wrap, .cta-band .wrap { grid-template-columns: 1fr; padding-block: 52px; }
  .cta-actions { min-width: 0; }
  .news-list .item { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; }
  .news-list .cat { grid-column: 2; grid-row: 1; justify-self: start; }
  .news-list time { grid-row: 1; }
  .news-list .title { grid-column: 1 / -1; }
  .message { grid-template-columns: 1fr; }
  .message .portrait { max-width: 200px; }
  .outline, .confirm-table { grid-template-columns: 1fr; }
  .outline dt, .confirm-table dt { border-bottom: 0; padding-bottom: 0; }
  .outline dd, .confirm-table dd { padding-top: 4px; }
  .timeline::before { left: 58px; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 28px; }
  .timeline li::before { left: 54px; }
  .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .job dl { grid-template-columns: 1fr; }
  .job dt { padding-bottom: 0; border-bottom: 0; }
  .job dt, .job dd { padding-inline: 20px; }
  .job-head { padding: 18px 20px; }
  .field { grid-template-columns: 1fr; gap: 8px; }
  .field > label, .field > .label { padding-top: 0; }
  .steps li { font-size: 12px; padding: 10px 6px; }
  .form-actions .btn { min-width: 0; width: 100%; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .sp-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--rule); }
  .sp-cta .btn { width: 100%; padding: 12px; }
  body.has-sp-cta { padding-bottom: 72px; }
}
