/* 株式会社クレアール 共通スタイル
   白基調・濃紺の差し色・広い余白・英字の小見出し＋日本語の見出し */

:root {
  --navy: #0f2340;
  --navy-2: #1c3a63;
  --accent: #8c7a52;          /* 木の色を思わせる控えめな金茶 */
  --text: #1c2430;
  --muted: #5d6878;
  --line: #d9dee5;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --serif: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
  --wrap: 1120px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  /* 改行の位置：行頭に「ょ」「ー」などを置かない／Chrome・Edge は文節の切れ目で折り返す */
  line-break: strict;
  word-break: auto-phrase;
}
/* 原稿の | で区切ったかたまり。かたまりの途中では改行しない（どのブラウザでも効く） */
.ph { display: inline-block; }
h1, h2, h3 { text-wrap: balance; }
p, li, td, figcaption { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.5; margin: 0; }
p { margin: 0 0 1.2em; }
ul { margin: 0; padding: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* backdrop-filter は付けない：付けるとスマホのメニュー（position: fixed）がヘッダーの中に閉じ込められて見えなくなる */
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.logo img { height: 34px; width: auto; }
.logo span { font-family: var(--serif); font-size: 14px; letter-spacing: .12em; white-space: nowrap; }
.gnav ul { list-style: none; display: flex; gap: 4px; }
.gnav a {
  display: block; padding: 8px 12px;
  color: var(--text); text-decoration: none; font-size: 14px; letter-spacing: .08em;
  position: relative;
}
.gnav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--navy); transform: scaleX(0); transition: transform .3s;
}
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav .nav-contact a { background: var(--navy); color: #fff; padding: 8px 20px; margin-left: 8px; }
.gnav .nav-contact a::after { display: none; }
.gnav .nav-contact a:hover { background: var(--navy-2); }
.gnav a { white-space: nowrap; }
.menu-btn { display: none; }
/* 小さめのノート PC・タブレット横向き：メニューが1行に収まるよう、社名の文字を隠して余白を詰める */
@media (max-width: 1140px) and (min-width: 961px) {
  .logo span { display: none; }
  .gnav a { padding: 8px 9px; }
  .gnav .nav-contact a { padding: 8px 14px; margin-left: 4px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .logo img { height: 28px; }
  .logo span { display: none; }
  .menu-btn {
    display: block; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
    position: relative;
  }
  .menu-btn span, .menu-btn::before, .menu-btn::after {
    content: ""; position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--navy);
    transition: transform .3s, opacity .3s;
  }
  .menu-btn::before { top: 15px; }
  .menu-btn span { top: 21px; }
  .menu-btn::after { top: 27px; }
  .menu-open .menu-btn::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-btn span { opacity: 0; }
  .menu-open .menu-btn::after { transform: translateY(-6px) rotate(-45deg); }
  .gnav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    padding: 24px 16px; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s;
  }
  .menu-open .gnav { visibility: visible; opacity: 1; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { padding: 16px 4px; font-size: 16px; }
  .gnav a::after { display: none; }
  .gnav .nav-contact { border: 0; margin-top: 24px; }
  .gnav .nav-contact a { margin: 0; text-align: center; padding: 16px; }
}

/* ---------- 見出し（英字の小見出し＋日本語） ---------- */
.heading { margin-bottom: 48px; }
.heading .en {
  display: block; font-family: var(--en); font-size: 15px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.heading h2 { font-size: clamp(24px, 3.2vw, 34px); color: var(--navy); }
.heading.center { text-align: center; }
.heading.light .en { color: #c9b98f; }
.heading.light h2 { color: #fff; }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #e8ecf2; }
.lead { font-family: var(--serif); font-size: clamp(17px, 2vw, 20px); line-height: 2.1; color: var(--navy); }

/* ---------- トップの大きな写真 ---------- */
.hero {
  /* 元の写真が 1000px と小さいので、高さを抑えて引き伸ばしすぎないようにする */
  position: relative; min-height: clamp(520px, 74svh, 720px);
  display: flex; align-items: center; color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%;
  transform: scale(1.04); animation: hero-zoom 14s ease-out forwards;
}
/* 文字のある左側だけ紺を重ね、右側（工場の入口と看板）は写真の明るさを残す */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 35, 64, .78) 0%, rgba(15, 35, 64, .55) 40%, rgba(15, 35, 64, .12) 75%, rgba(15, 35, 64, 0) 100%);
}
@media (max-width: 760px) {
  .hero-bg img { object-position: 62% 60%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(15, 35, 64, .35) 0%, rgba(15, 35, 64, .72) 100%); }
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero .wrap { position: relative; padding: 80px 0; }
.hero .en { font-family: var(--en); letter-spacing: .3em; font-size: 15px; color: #c9b98f; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 60px); letter-spacing: .1em; margin-bottom: 28px; }
.hero p { font-family: var(--serif); font-size: clamp(15px, 1.7vw, 18px); line-height: 2.2; max-width: 34em; color: #dfe5ee; }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; transform: none; } }
@media (max-width: 480px) { .hero .en { letter-spacing: .16em; font-size: 13px; } }

/* ---------- 下層ページの見出し帯 ---------- */
.page-head {
  background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border: 1px solid rgba(201, 185, 143, .35); border-radius: 50%;
}
.page-head .en { font-family: var(--en); letter-spacing: .3em; text-transform: uppercase; color: #c9b98f; font-size: 15px; }
.page-head h1 { font-size: clamp(26px, 4vw, 40px); margin-top: 8px; }
.breadcrumb { font-size: 12px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }

/* ---------- トップの事業カード ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.biz-card { text-decoration: none; color: inherit; display: block; }
.biz-card figure { margin: 0 0 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.biz-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.biz-card:hover img { transform: scale(1.05); }
.biz-card .num { font-family: var(--en); color: var(--accent); font-size: 14px; letter-spacing: .2em; }
.biz-card h3 { font-size: 20px; color: var(--navy); margin: 4px 0 8px; }
.biz-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }

/* 2列（文章＋写真など） */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* 「もっと見る」リンク */
.more {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--navy); text-decoration: none; font-size: 14px; letter-spacing: .12em;
  border-bottom: 1px solid var(--navy); padding-bottom: 6px;
}
.more::after { content: "→"; transition: transform .3s; }
.more:hover::after { transform: translateX(6px); }
.dark .more { color: #fff; border-color: #fff; }

/* トップのページ案内 */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.links a {
  display: block; padding: 32px 24px; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2); border-right: 1px solid rgba(255,255,255,.2);
  transition: background .3s;
}
.links a:hover { background: var(--navy-2); color: #fff; }
.links .en { display: block; font-family: var(--en); letter-spacing: .25em; color: #c9b98f; font-size: 13px; text-transform: uppercase; }
.links strong { font-family: var(--serif); font-weight: 500; font-size: 18px; }

/* ---------- 表（会社情報・募集要項） ---------- */
.table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--navy); }
.table th, .table td { padding: 20px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table td small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.table th { width: 28%; font-weight: 500; color: var(--navy); background: var(--bg-soft); white-space: nowrap; }
@media (max-width: 600px) {
  .table th, .table td { display: block; width: 100%; }
  .table th { padding: 12px 12px; border-bottom: 0; }
  .table td { padding: 12px 12px 20px; }
}

/* 沿革 */
.history { list-style: none; border-left: 1px solid var(--line); margin-left: 8px; }
.history li { position: relative; padding: 0 0 32px 32px; }
.history li::before {
  content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px;
  background: var(--navy); border-radius: 50%;
}
.history time { font-family: var(--en); font-size: 18px; color: var(--accent); letter-spacing: .1em; display: block; }

/* 事業所：左に日本地図、右に事業所の一覧 */
.offices-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.offices-wrap .offices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* 住所は文節で切れない長いかたまりになりやすいので、列の幅に収まらない時は途中で折り返す */
.office p { overflow-wrap: anywhere; }
@media (max-width: 900px) { .offices-wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .offices-wrap .offices { grid-template-columns: 1fr; } }

/* 日本地図（tools/make_map.py で作る） */
.jp-map { position: relative; max-width: 620px; margin: 0 auto; }
.jp-map svg { display: block; width: 100%; height: auto; }
.jp-map .land { fill: #cfd7e1; stroke: #b7c2cf; stroke-width: .6; stroke-linejoin: round; transition: fill .4s; }
.office-pin line { stroke: var(--navy); stroke-width: 1.2; transition: stroke .3s, stroke-width .3s, opacity .3s; }
.office-pin circle { transform-box: fill-box; transform-origin: center; transition: transform .35s, fill .3s, opacity .3s; }
.office-pin .halo { fill: rgba(140, 122, 82, .22); transform: scale(0); }
.office-pin .ring { fill: rgba(140, 122, 82, .3); animation: pin-pulse 2.4s ease-out infinite; }
.office-pin .dot { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.map-label {
  position: absolute; margin: 0; transform: translateY(-50%);
  background: #fff; border-left: 3px solid var(--accent); padding: 6px 12px; cursor: default;
  box-shadow: 0 2px 8px rgba(15, 35, 64, .12); white-space: nowrap; line-height: 1.5;
  transition: transform .3s, box-shadow .3s, background .3s, border-color .3s;
}
.map-label strong { display: block; font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: 15px; transition: color .3s; }
.map-label span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .05em; transition: color .3s; }

/* カーソルを合わせた拠点を強調し、ほかを薄くする（main.js が is-active / has-active を付ける） */
.offices-wrap.has-active .land { fill: #c3ccd8; }
.offices-wrap.has-active .office-pin:not(.is-active),
.offices-wrap.has-active .office:not(.is-active) { opacity: .4; }
/* 名前の札は半透明にしない（下を通る引き出し線が透けて見えるため）。地は白のまま、文字と縁だけ薄くする */
.offices-wrap.has-active .map-label:not(.is-active) { box-shadow: none; border-color: #d8dee6; }
.offices-wrap.has-active .map-label:not(.is-active) strong { color: #a3adba; }
.offices-wrap.has-active .map-label:not(.is-active) span { color: #bcc4ce; }
.office-pin.is-active line { stroke: var(--accent); stroke-width: 2.4; }
.office-pin.is-active .halo { transform: scale(1); animation: halo 1.6s ease-in-out infinite alternate; }
.office-pin.is-active .dot { transform: scale(1.5); fill: var(--accent); }
@keyframes halo { from { transform: scale(.85); } to { transform: scale(1.15); } }
.map-label.is-active { transform: translateY(-50%) scale(1.08); background: var(--navy); box-shadow: 0 8px 24px rgba(15, 35, 64, .3); }
.map-label.is-active strong { color: #fff; }
.map-label.is-active span { color: #c9b98f; }
/* .js .fade（スクロールで現れる演出）より優先させるため、セレクタを強めにしている */
.offices-wrap .offices .office { padding: 24px 16px 16px; transition: opacity .3s, background .3s, transform .3s, box-shadow .3s; cursor: default; }
.offices-wrap .offices .office.is-active { background: #fff; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(15, 35, 64, .1); }
.office:focus-visible, .map-label:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .office-pin .ring, .office-pin.is-active .halo { animation: none; }
  .office-pin circle, .map-label, .office { transition: none; }
}
@media (max-width: 520px) {
  .map-label { padding: 4px 8px; }
  .map-label strong { font-size: 12px; }
  .map-label span { font-size: 10px; }
}

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.office { border-top: 2px solid var(--navy); padding: 24px 4px 8px; }
.office h3 { font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.office p { font-size: 14px; line-height: 1.9; margin: 0; }

/* ---------- 事業紹介 ---------- */
.biz-block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.biz-block:last-child { border-bottom: 0; }
.biz-block .num { font-family: var(--en); font-size: 44px; color: var(--accent); line-height: 1; }
.biz-block h2 { font-size: clamp(20px, 2.6vw, 26px); color: var(--navy); margin: 12px 0 24px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.photos img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 600px) { .photos { grid-template-columns: 1fr 1fr; } }
.photos-4 { grid-template-columns: repeat(4, 1fr); }
.photos-4 img { aspect-ratio: 250 / 195; }
@media (max-width: 760px) { .photos-4 { grid-template-columns: 1fr 1fr; } }

.strengths { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.strengths li { background: #fff; padding: clamp(20px, 5vw, 32px); border-top: 2px solid var(--accent); }
.strengths .num { font-family: var(--en); font-size: 28px; color: var(--accent); }
.strengths h3 { font-size: 18px; color: var(--navy); margin: 4px 0 12px; }
.strengths p { font-size: 14px; color: var(--muted); margin: 0; }
.strengths p + p { margin-top: .8em; }

/* ---------- 施工事例・設備 ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; list-style: none; }
.works figure { margin: 0; }
.works img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.works figcaption { padding-top: 16px; }
.works .year { font-family: var(--en); color: var(--accent); font-size: 14px; letter-spacing: .15em; }
.works .name { font-family: var(--serif); color: var(--navy); font-size: 17px; display: block; }
.works .area { font-size: 13px; color: var(--muted); }

.machines { list-style: none; display: grid; gap: 0; }
.machine { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); align-items: start; }
.machine:first-child { border-top: 1px solid var(--line); }
.machine figure { margin: 0; background: #fff; border: 1px solid var(--line); padding: 12px; }
.machine figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.machine .maker { font-family: var(--en); color: var(--accent); letter-spacing: .15em; font-size: 15px; }
.machine h2 { font-size: 22px; color: var(--navy); margin: 4px 0 16px; }
.machine p { font-size: 15px; margin: 0 0 .6em; }
.machine .what { font-family: var(--serif); color: var(--navy); font-size: 17px; margin-bottom: .9em; }
@media (max-width: 760px) { .machine { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- 採用 ---------- */
/* 5職種：広い画面は3列（3枚＋2枚）、タブレットは2列、スマホは1列 */
.job-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .job-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .job-cards { grid-template-columns: minmax(0, 1fr); } }
.workplace { margin-top: 72px; }
.sub-heading { font-size: 18px; color: var(--navy); margin-bottom: 20px; display: flex; align-items: baseline; gap: 16px; }
.sub-heading .en { font-family: var(--en); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }
.job-card { background: var(--bg-soft); padding: 28px 24px; border-top: 2px solid var(--accent); }
.job-card h3 { font-size: 20px; color: var(--navy); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--navy); }
.job-card dl { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.job-card dl > div { display: grid; grid-template-columns: 4.3em 1fr; column-gap: 10px; }
.job-card dt { color: var(--muted); white-space: nowrap; }
.job-card dd { margin: 0; }
/* 同じ段のカードどうしで「見出し・仕事内容・勤務地・勤務時間」の行の高さをそろえる（subgrid） */
@supports (grid-template-rows: subgrid) {
  .job-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; }
  .job-card h3 { margin-bottom: 6px; }
  .job-card dl { display: contents; }
}

/* ---------- 協力会社 ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.tags li { border: 1px solid var(--navy); color: var(--navy); padding: 8px 20px; font-size: 15px; }
.checks { list-style: none; }
.checks li { padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- お問い合わせへの誘導帯 ---------- */
.cta { position: relative; color: #fff; text-align: center; padding: clamp(72px, 9vw, 112px) 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(10, 25, 48, .84); }
.cta .wrap { position: relative; }
.cta p { color: #dfe5ee; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 260px; padding: 18px 32px; text-decoration: none; letter-spacing: .1em; font-size: 15px;
  border: 1px solid #fff; color: #fff; transition: background .3s, color .3s;
}
.btn:hover { background: #fff; color: var(--navy); }
.btn.solid { background: #fff; color: var(--navy); }
.btn.solid:hover { background: transparent; color: #fff; }
.btn.navy { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); color: #fff; }
.btn .tel { font-family: var(--en); font-size: 22px; letter-spacing: .08em; }

/* ---------- お問い合わせフォーム ---------- */
.form { display: grid; gap: 28px; max-width: 760px; }
.form label, .form legend { display: block; font-weight: 500; color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.form .req { font-size: 11px; background: var(--accent); color: #fff; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; letter-spacing: .1em; }
.form .opt { font-size: 11px; background: var(--line); color: var(--muted); padding: 2px 8px; margin-left: 8px; vertical-align: 2px; letter-spacing: .1em; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy-2); outline-offset: 0; background: #fff; }
.form textarea { min-height: 200px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.radios label { font-weight: 400; color: var(--text); margin: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form .note { font-size: 13px; color: var(--muted); }
.form button {
  justify-self: start; min-width: 260px; padding: 18px 32px; font: inherit; letter-spacing: .15em;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
}
.form button:hover { background: var(--navy-2); }
.form button:disabled { opacity: .5; cursor: wait; }
.form-msg { padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--bg-soft); }
.form-msg[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

.contact-side { background: var(--bg-soft); padding: 32px; }
.contact-side h2 { font-size: 18px; color: var(--navy); margin-bottom: 16px; }
.contact-side p { font-size: 14px; margin: 0 0 .4em; }
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.site-footer { background: #0a1930; color: #b8c2d0; font-size: 14px; padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top img { height: 32px; width: auto; margin-bottom: 20px; }
.footer-top .name { color: #fff; font-family: var(--serif); font-size: 16px; margin-bottom: 8px; }
.footer-top p { margin: 0; line-height: 2; }
.footer-top a { color: #b8c2d0; text-decoration: none; }
.footer-top a:hover { color: #fff; }
.fnav { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 48px; }
.copy { padding-top: 24px; font-size: 12px; color: #7d8898; font-family: var(--en); letter-spacing: .1em; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* スクロールで少しずつ現れる（JS が無くても見える） */
.js .fade { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s; }
.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade { opacity: 1; transform: none; transition: none; } }
