/* 見本｜株式会社 豊玉設備工業
   色は3つ: 書類の紙の白（地）・作業着の紺（主）・安全の黄（面としてだけ。上の文字は黒か紺）
   書体: BIZ UDPGothic（和文）＋ Barlow Semi Condensed（数字） */

:root {
  --base: #F6F6F3;
  --paper: #FFFFFF;
  --navy: #1F3550;
  --navy-dk: #15263B;
  --yellow: #F2C200;
  --ink: #282828;
  --sub: #5B6370;
  --line: #D5D8DC;
  --line-dk: #A9AFB7;
  --jp: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "Helvetica Neue", Helvetica, "Hiragino Sans", sans-serif;
  --en: "Barlow Semi Condensed", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--base);
  line-break: strict;
  /* 本文も文節で折る（index.html の <wbr> は BudouX で入れている） */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.num { font-family: var(--en); font-weight: 600; font-feature-settings: "tnum"; letter-spacing: 0.02em; }
.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); --gut: clamp(16px, 4vw, 32px); }

/* 見出しの折り返し: 文節の途中で折らない */
h1, h2, .h3, .eyebrow, .next-main, .ph-catch, .duo-h, .home-note-main, .motouke-msg, .doors-who, .doors-what, .flow b, .swap-what, .permit-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, .h3, .next-main, .ph-catch { font-feature-settings: "palt"; }

[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--paper); padding: 8px 12px; }

/* ───── ヘッダー ───── */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head-in {
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  height: var(--head-h);
  display: flex; align-items: center; gap: 24px;
}
.logo { display: grid; text-decoration: none; color: var(--navy); line-height: 1.25; flex: none; }
.logo-kind { font-size: 11px; letter-spacing: 0.2em; }
.logo-name { font-size: 22px; font-weight: 700; letter-spacing: 0.12em; }
.logo-sub { font-size: 11px; color: var(--sub); letter-spacing: 0.04em; margin-top: 2px; }

.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 22px; }
.gnav a {
  position: relative; display: block; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: 0.06em;
  padding: 6px 0;
}
.gnav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.gnav ul a:hover::after, .gnav ul a[aria-current="page"]::after { transform: scaleX(1); }
.gnav .gnav-home a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.gnav .gnav-home a { color: var(--sub); font-weight: 400; }
.gnav .gnav-home { padding-left: 22px; border-left: 1px solid var(--line); }
.gnav-cta { display: none !important; }

.tel-plate {
  flex: none; display: grid; text-decoration: none;
  background: var(--yellow); color: var(--ink);
  padding: 6px 14px 5px; line-height: 1.15; border-radius: 2px;
}
.tel-plate-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.tel-plate-no { font-size: 23px; letter-spacing: 0.04em; }
.head-cta {
  flex: none; text-decoration: none; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 700; padding: 13px 18px; border-radius: 2px;
  transition: background .2s;
}
.head-cta:hover { background: var(--navy-dk); }

.menu-btn {
  display: none; flex: none; margin-left: auto;
  background: none; border: 0; padding: 6px 0 6px 6px; cursor: pointer;
  color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  flex-direction: column; align-items: center; gap: 4px;
}
.menu-bars { display: grid; gap: 5px; width: 26px; }
.menu-bars i { display: block; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.is-open .menu-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .menu-bars i:nth-child(2) { opacity: 0; }
.is-open .menu-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1181px) {
  .logo-sub { display: none; }
}
@media (max-width: 1180px) {
  .menu-btn { display: flex; }
  .head-cta { display: none; }
  .tel-plate { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .gnav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 2px solid var(--navy);
    padding: 8px clamp(16px, 4vw, 32px) 24px;
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .is-open .gnav { display: block; }
  .gnav ul { display: block; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav .gnav-home { padding-left: 0; border-left: 0; }
  .gnav ul a { font-size: 16px; padding: 14px 0; }
  .gnav ul a::after { display: none; }
  .gnav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--navy); padding-left: 14px; }
  .gnav-cta {
    display: flex !important; justify-content: center; margin-top: 20px;
    background: var(--navy); color: #fff !important; padding: 15px 0 !important; border-radius: 2px;
    font-size: 16px !important;
  }
}
@media (max-width: 640px) {
  :root { --head-h: 64px; }
  .tel-plate { display: none; }
  .menu-btn { margin-left: auto; }
  .logo-name { font-size: 20px; }
  .logo-kind { display: none; }
}

/* ───── ボタン ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 2px;
  font-size: 15.5px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none;
  cursor: pointer; border: 0;
  transition: background .2s, color .2s;
}
.btn::after { content: "→"; font-family: var(--en); transition: transform .2s; }
.btn:hover::after { transform: translateX(4px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dk); }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* ───── ヒーロー ───── */
.hero { padding: 56px 0 0; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.hero-who {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: 0.08em;
}
.hero-who::before { content: ""; width: 28px; height: 2px; background: var(--navy); flex: none; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(30px, 3.3vw, 46px); line-height: 1.42; letter-spacing: 0.06em;
  font-weight: 700; color: var(--navy);
}
.hero-lead { margin-top: 20px; font-size: 16px; max-width: 32em; }
.promise { margin-top: 28px; border-top: 1px solid var(--navy); }
.promise > div {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-dk);
}
.promise dt { font-size: 14px; font-weight: 700; color: var(--navy); padding-top: 2px; }
.promise dd { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
.promise dd b { font-size: 18px; color: var(--navy); }
.promise dd span { font-size: 13.5px; color: var(--sub); }
.hero-act { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }

.doors {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr 0.8fr;
  border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line-dk);
}
.doors li + li { border-left: 1px solid var(--line-dk); }
.doors a {
  display: grid; gap: 2px; padding: 20px 48px 20px 24px; position: relative;
  text-decoration: none; transition: background .2s;
}
.doors li:first-child a { padding-left: 0; }
.doors a::after {
  content: "→"; font-family: var(--en); font-size: 20px; color: var(--navy);
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%); transition: transform .2s;
}
.doors a:hover::after { transform: translate(4px, -50%); }
.doors-who { font-size: 17px; font-weight: 700; color: var(--navy); }
.doors-what { font-size: 13.5px; color: var(--sub); }
.doors-home .doors-who { color: var(--sub); font-size: 15px; }

/* ───── 区画の共通 ───── */
.sec { padding: 96px 0; scroll-margin-top: var(--head-h); }
.sec-white { background: var(--paper); }
.sec-head { margin-bottom: 44px; max-width: 760px; }
.eyebrow {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: 0.08em;
}
.eyebrow .num { font-size: 18px; padding-right: 14px; border-right: 1px solid var(--line-dk); line-height: 1; }
.sec h2 {
  margin-top: 14px;
  font-size: clamp(24px, 2.5vw, 34px); line-height: 1.5; letter-spacing: 0.06em;
  font-weight: 700; color: var(--navy);
}
.sec-lead { margin-top: 16px; max-width: 42em; }
.h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 40px 0 12px; line-height: 1.5; }
.h3:first-child { margin-top: 0; }
.note { margin-top: 14px; font-size: 13px; color: var(--sub); line-height: 1.7; }
.note-sample { display: inline-block; margin-left: 0.5em; }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.7; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--line); }
.tbl thead th {
  font-size: 13px; color: var(--sub); font-weight: 700; letter-spacing: 0.08em;
  padding-top: 0; padding-bottom: 10px; border-bottom: 2px solid var(--navy);
}
.tbl tbody th { font-weight: 700; color: var(--navy); }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl .r { text-align: right; }
.tbl-plain { border-top: 2px solid var(--navy); }
.tbl-plain th { width: 9.5em; }
.tbl-work { border-top: 2px solid var(--navy); }
.tbl-work tbody th { width: 8em; white-space: nowrap; }
.tbl-can { border-top: 2px solid var(--navy); }
.tbl-can th { width: 13em; white-space: nowrap; }
.tbl-can b { font-size: 18px; color: var(--navy); }

/* ───── 01 管理会社 ───── */
.kanri-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }

/* ───── 02 流れ ───── */
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 14px; counter-reset: none; }
.flow li { display: grid; align-content: start; gap: 4px; border-top: 2px solid var(--navy); padding-top: 12px; }
.flow-no { font-size: 30px; line-height: 1; color: var(--navy); margin-bottom: 4px; }
.flow b { font-size: 15px; color: var(--navy); line-height: 1.5; }
.flow-time { font-size: 13px; font-weight: 700; justify-self: start; line-height: 1.6; }
.flow .is-key .flow-time { background: var(--yellow); color: var(--ink); padding: 0 6px; }
.flow-txt { font-size: 13px; color: var(--sub); line-height: 1.6; }

.report-grid {
  margin-top: 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; align-items: start;
}
.report-text > p { margin-bottom: 24px; }
.report-text > .report-why { margin: 28px 0 0; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.75; }
.report { margin: 0; }
.report-paper {
  background: var(--paper); border: 1px solid var(--line-dk);
  padding: 28px 28px 24px; font-size: 13px; line-height: 1.6; letter-spacing: 0.03em;
}
.report-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.report-title { font-size: 20px; font-weight: 700; letter-spacing: 0.3em; }
.report-no { font-size: 12px; color: var(--sub); }
.report-no .num { font-size: 14px; color: var(--ink); }
.report-meta { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0; }
.report-to { font-weight: 700; font-size: 14px; }
.report-from { text-align: right; font-size: 12px; color: var(--sub); }
.report-tbl { width: 100%; border-collapse: collapse; }
.report-tbl th, .report-tbl td { border: 1px solid var(--line-dk); padding: 6px 8px; text-align: left; vertical-align: top; }
.report-tbl th { background: var(--base); font-weight: 700; white-space: nowrap; width: 5.5em; font-size: 12px; }
.report-tbl .num { font-size: 14px; }
.report-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.report-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.report-photos figcaption { font-size: 11.5px; color: var(--sub); margin-top: 4px; }
.report-foot { margin-top: 12px; display: grid; gap: 4px; font-size: 12px; }
.report-sign { display: inline-block; border: 1px solid var(--navy); color: var(--navy); font-weight: 700; padding: 0 6px; line-height: 1.5; }

/* ───── 03 料金 ───── */
.tbl-price th[scope="row"] { width: 13em; }
.tbl-price td:nth-child(2) { color: var(--sub); font-size: 14.5px; }
.tbl-price td.r { white-space: nowrap; font-size: 14px; }
.tbl-price td.r .num { font-size: 24px; color: var(--navy); line-height: 1.2; }
.tbl-price tbody th, .tbl-price tbody td { padding-top: 16px; padding-bottom: 16px; vertical-align: baseline; }

/* ───── 04 元請け ───── */
.motouke-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.motouke-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.motouke-msg { margin-top: 24px; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.7; }

/* ───── 05 工事台帳 ───── */
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pick img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pick figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.65; }
.pick figcaption .num { font-size: 15px; color: var(--navy); }

.filter { margin: 48px 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: 13px; color: var(--sub); font-weight: 700; margin-right: 6px; }
.filter button {
  background: var(--paper); border: 1px solid var(--line-dk); border-radius: 2px;
  padding: 7px 14px; font-size: 14px; cursor: pointer; color: var(--navy); line-height: 1.5;
  transition: background .2s, color .2s;
}
.filter button:hover { border-color: var(--navy); }
.filter button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.tbl-ledger { font-size: 14.5px; }
.tbl-ledger th, .tbl-ledger td { padding: 13px 16px 13px 0; }
.tbl-ledger td.num { font-size: 16px; color: var(--navy); white-space: nowrap; }
.tbl-ledger td:nth-child(2), .tbl-ledger td:nth-child(4), .tbl-ledger td:nth-child(6), .tbl-ledger td:nth-child(7) { white-space: nowrap; }
.tbl-ledger td:nth-child(5) { font-weight: 700; }
.tbl-ledger tr[hidden] { display: none; }

/* ───── 06 対応エリア ───── */
.tbl-area { border-top: 0; }
.tbl-area thead th:first-child { width: 11em; white-space: nowrap; }
.tbl-area tbody th { color: var(--navy); font-size: 16px; white-space: nowrap; vertical-align: baseline; padding-top: 18px; padding-bottom: 18px; }
.tbl-area tbody td { font-size: 18px; vertical-align: baseline; padding-top: 18px; padding-bottom: 18px; }
.area-min { font-size: 46px; line-height: 1; margin-right: 4px; }
.area-out th, .area-out td { font-size: 15px !important; color: var(--sub); }
.area-out th { color: var(--sub) !important; }

/* ───── 07 許可票 ───── */
.license-grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 56px; align-items: start; }
.permit { background: var(--paper); border: 1.5px solid var(--ink); }
.permit-title { text-align: center; font-size: 17px; font-weight: 700; letter-spacing: 0.5em; padding: 12px 0 11px 0.5em; border-bottom: 1px solid var(--ink); }
.permit table { width: 100%; border-collapse: collapse; }
.permit th, .permit td { border-bottom: 1px solid var(--ink); padding: 12px 16px; vertical-align: middle; }
.permit th {
  width: 40%; border-right: 1px solid var(--ink);
  font-size: 13.5px; font-weight: 400; line-height: 1.6;
  text-align: justify; text-align-last: justify;
}
.permit td { font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.permit td .num { font-size: 17px; }
.permit-note { font-size: 12px; color: var(--sub); padding: 8px 16px; }
.docs { border-top: 1px solid var(--line); }
.docs li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ───── 08 協力会社 ───── */
.partner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.partner-grid .partner-btn { margin-top: 28px; }
.partner-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ───── 09 会社と人 ───── */
.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.people figcaption { margin-top: 10px; font-size: 13px; color: var(--sub); line-height: 1.65; }
.swap-box {
  position: relative; aspect-ratio: 16 / 9;
  background: #E8E9E4; padding: 24px 24px 20px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
}
.swap-box::before, .swap-box::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--navy); border-style: solid;
}
.swap-box::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.swap-box::after { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.swap-tag { position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--navy); padding: 2px 8px; letter-spacing: 0.1em; }
.swap-what { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.swap-how { font-size: 13px; color: #464c55; line-height: 1.7; }
.tbl-company { margin-top: 56px; max-width: 860px; }

/* ───── お住まいの方へ ───── */
.sec-home h2 { font-size: clamp(22px, 2.2vw, 30px); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.home-col { border-top: 2px solid var(--navy); padding-top: 20px; }
.home-col > p + p { margin-top: 12px; }
.home-small { font-size: 14px; color: var(--sub); }
.tbl-home { margin-top: 16px; border-top: 1px solid var(--line); }
.tbl-home td .num { font-size: 20px; color: var(--navy); }
.tbl-home td { white-space: nowrap; }
.home-tel {
  margin-top: 20px; display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  text-decoration: none; color: var(--navy); font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--navy); padding: 12px 20px; border-radius: 2px;
}
.home-tel .num { font-size: 22px; }
.home-tel small { font-size: 12px; color: var(--sub); font-weight: 400; margin-left: 6px; }

/* ───── お知らせ ───── */
.sec-news { padding: 64px 0; }
.sec-news .sec-head { margin-bottom: 16px; }
.news { border-top: 2px solid var(--navy); }
.news li { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.news time { font-size: 16px; color: var(--navy); }

/* ───── フォーム ───── */
.inline-tel { color: var(--navy); font-size: 19px; text-decoration: none; margin-left: 0.3em; }
.form { max-width: 880px; background: var(--paper); border-top: 2px solid var(--navy); padding: 32px clamp(16px, 4vw, 40px) 36px; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.f-row > span, .f-row legend { font-size: 14px; font-weight: 700; color: var(--navy); padding: 0; }
.f-row legend { margin-bottom: 8px; }
.f-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px;
  border: 1px solid var(--line-dk); border-radius: 2px; background: var(--paper);
}
.form textarea { resize: vertical; line-height: 1.7; }
.form input::placeholder, .form textarea::placeholder { color: #8A9099; }
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: 2px solid var(--yellow); outline-offset: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border: 1px solid var(--line-dk); border-radius: 2px; font-size: 15px; background: var(--paper);
}
.choices input { accent-color: var(--navy); width: 17px; height: 17px; margin: 0; }
.choices label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.f-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.f-send .btn { min-width: 220px; }
.nowrap { white-space: nowrap; }
.file { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 48px; cursor: pointer; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); font-weight: 700; font-size: 14.5px; transition: background .2s, color .2s; }
.file:hover .file-btn { background: var(--navy); color: #fff; }
.file input:focus-visible + .file-btn { outline: 3px solid var(--yellow); outline-offset: 2px; }
.file-name { font-size: 14px; color: var(--sub); }
.f-msg { font-size: 14px; color: var(--navy); font-weight: 700; }

/* ───── フッター ───── */
.site-foot { background: var(--navy); color: #fff; padding: 56px 0 32px; font-size: 14px; line-height: 1.8; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.foot-name { font-size: 18px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 6px; }
.foot-co p:not(.foot-name) { color: rgba(255,255,255,.85); }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 4px 24px; align-content: start; }
.foot-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.foot-nav a { color: rgba(255,255,255,.9); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-made { margin-top: 40px; }
.foot-made p { border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; font-size: 12px; color: rgba(255,255,255,.75); }
.foot-made a { color: #fff; text-underline-offset: 3px; }

/* ───── ページ分け: 下のページの見出し（小さめのヒーロー） ───── */
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }
.ph { background: var(--paper); border-bottom: 1px solid var(--line); padding: 40px 0 56px; }
.ph-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 56px; align-items: center; }
.crumb { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; color: var(--sub); margin-bottom: 18px; line-height: 1.6; }
.crumb li + li::before { content: "／"; margin-right: 8px; color: var(--line-dk); }
.crumb a { color: var(--navy); text-underline-offset: 3px; }
.ph h1 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.4; letter-spacing: 0.06em; font-weight: 700; color: var(--navy); }
.ph-catch { margin-top: 14px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.6; }
.ph-lead { margin-top: 12px; max-width: 36em; }
.ph-toc { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 26px; }
.ph-toc a { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.ph-toc a::before { content: "↓"; font-family: var(--en); margin-right: 6px; display: inline-block; transition: transform .2s; }
.ph-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ph-toc a:hover::before { transform: translateY(2px); }
.ph-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ph-photo figcaption { margin-top: 8px; font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.ph-noimg .ph-in { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; }
.ph-tel { border-top: 2px solid var(--navy); padding-top: 18px; }
.ph-tel-h { font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 14px; }
.ph-tel-note { margin-top: 10px; font-size: 13px; color: var(--sub); }

/* ほかのページへ送るリンク（下線と矢印） */
.more-row { margin-top: 22px; }
.more {
  color: var(--navy); font-weight: 700; font-size: 15px; line-height: 1.6;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
}
.more::after { content: "→"; font-family: var(--en); display: inline-block; margin-left: 8px; transition: transform .2s; text-decoration: none; }
.more:hover::after { transform: translateX(4px); }

/* トップ: 2つ並べる区画 */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.sec .duo-h { margin: 14px 0 24px; font-size: clamp(21px, 2vw, 27px); }
.tbl-mini { border-top: 2px solid var(--navy); }
.tbl-mini tbody th, .tbl-mini tbody td { vertical-align: baseline; padding-top: 14px; padding-bottom: 14px; }
.tbl-mini td.r { white-space: nowrap; font-size: 14px; }
.tbl-mini td.r .num { font-size: 22px; color: var(--navy); line-height: 1.2; }
.tbl-area-mini { border-top: 2px solid var(--navy); }
.tbl-area-mini tbody th { width: 5.5em; padding-top: 12px; padding-bottom: 12px; }
.tbl-area-mini tbody td { font-size: 16px; padding-top: 12px; padding-bottom: 12px; }
.tbl-area-mini .area-min { font-size: 34px; }
.now { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 14px; line-height: 1.7; }
.now-time { font-size: 17px; color: var(--navy); white-space: nowrap; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.home-note .eyebrow { margin-bottom: 16px; }
.home-note-main { border-top: 2px solid var(--navy); padding-top: 14px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.home-note-sub { margin-top: 6px; font-size: 14.5px; color: var(--sub); }
.home-note .more-row { margin-top: 14px; }

/* 元請け: 最近の工事 */
.mini-ledger { border-top: 2px solid var(--navy); }
.mini-ledger li { display: grid; grid-template-columns: 5em minmax(0, 1fr); column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.mini-ledger li > .num { grid-row: 1 / span 3; font-size: 16px; color: var(--navy); }
.mini-ledger b { font-size: 15.5px; color: var(--navy); }
.ml-where, .ml-term { font-size: 13.5px; color: var(--sub); }
.mini-ledger b, .ml-where, .ml-term { grid-column: 2; }

/* 料金: 決まりごと */
.price-grid, .visit-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.price-side { border-top: 2px solid var(--navy); padding-top: 18px; }
.price-side-h { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.price-side p:not(.price-side-h):not(.more-row) { font-size: 15px; }
.visit-links { border-top: 2px solid var(--navy); padding-top: 2px; }
.sec .home-col h2.h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: 0.05em; }

/* 工事台帳 */
.filter-count { margin-left: 6px; font-size: 13px; color: var(--sub); }

/* フォーム */
.form-after { margin-top: 20px; font-size: 14px; color: var(--sub); }

/* 各ページの最後: 次に行く先 */
.next { padding: 72px 0 88px; background: var(--base); }
.next-white { background: var(--paper); }
.next-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; padding-top: 34px; }
.next-in::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 2px; background: var(--navy); }
.next-main { font-size: clamp(21px, 2vw, 26px); font-weight: 700; color: var(--navy); line-height: 1.5; letter-spacing: 0.06em; }
.next-sub { margin-top: 8px; font-size: 14.5px; color: var(--sub); max-width: 40em; }
.next-act { display: grid; gap: 12px; width: 320px; }
.next-act > * { width: 100%; }
.next-act .btn-tel { justify-items: center; text-align: center; }
.btn-tel {
  display: inline-grid; align-content: center; text-decoration: none;
  background: var(--yellow); color: var(--ink); min-height: 54px; padding: 6px 20px;
  line-height: 1.15; border-radius: 2px;
}
.btn-tel small { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.btn-tel .num { font-size: 24px; letter-spacing: 0.04em; }
.btn-tel-lg { padding: 10px 24px; }
.btn-tel-lg .num { font-size: 34px; }

@media (max-width: 1040px) {
  .duo, .news-grid { gap: 48px; }
}
@media (max-width: 900px) {
  .ph { padding: 0 0 40px; }
  .ph-in, .ph-noimg .ph-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ph-photo { order: -1; margin: 0 calc(-1 * var(--gut)); }
  .ph-photo img { aspect-ratio: 21 / 9; }
  .ph-photo figcaption { padding: 0 var(--gut); }
  .ph-noimg { padding-top: 32px; }
  .duo, .news-grid, .price-grid, .visit-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .next-in { grid-template-columns: minmax(0, 1fr); }
  .next-act { width: min(100%, 420px); }
}
@media (max-width: 640px) {
  .ph { padding-bottom: 32px; }
  .ph-photo img { aspect-ratio: 16 / 9; }
  .ph-noimg { padding-top: 24px; }
  .crumb { margin-bottom: 12px; }
  .ph h1 { font-size: 26px; }
  .ph-catch { font-size: 17.5px; }
  .ph-toc { gap: 4px 20px; }
  .next { padding: 56px 0 64px; }
  .next-act { width: 100%; }
  .btn-tel { justify-items: center; text-align: center; }
  .btn-tel-lg .num { font-size: 30px; }
  .ph-tel .btn-tel { display: grid; justify-items: center; }
  .tbl-mini th { font-size: 14.5px; }
  .tbl-area-mini .area-min { font-size: 30px; }
  .mini-ledger li { grid-template-columns: minmax(0, 1fr); }
  .mini-ledger li > .num { grid-row: auto; }
  .mini-ledger b, .ml-where, .ml-term { grid-column: 1; }
}

/* ───── スマホの下の固定バー ───── */
.sp-bar { display: none; }

/* ───── タブレット ───── */
@media (max-width: 1040px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
  .flow li {
    grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 2px;
    border-top: 1px solid var(--line); padding: 14px 0;
  }
  .flow li:first-child { border-top: 2px solid var(--navy); }
  .flow-no { grid-row: 1 / span 3; font-size: 26px; margin: 0; }
  .flow b, .flow-time, .flow-txt { grid-column: 2; }
  .report-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .report { max-width: 600px; }
  .license-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .permit { max-width: 560px; }
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; }
  .hero { padding-top: 0; }
  .hero-photo { margin: 0 calc(-1 * var(--gut)); }
  .doors { grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--navy); margin-top: 40px; }
  .doors li + li { border-left: 0; border-top: 1px solid var(--line-dk); }
  .doors a, .doors li:first-child a { padding: 16px 40px 16px 0; }
  .doors a::after { right: 4px; }
  .kanri-grid, .motouke-grid, .partner-grid, .home-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  /* 工事台帳: 行を縦に積む */
  .tbl-ledger thead { display: none; }
  .tbl-ledger, .tbl-ledger tbody { display: block; }
  .tbl-ledger { border-top: 2px solid var(--navy); }
  .tbl-ledger tr {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .tbl-ledger tr[hidden] { display: none; }
  .tbl-ledger td { border: 0; padding: 0 !important; }
  .tbl-ledger td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .tbl-ledger td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .tbl-ledger td:nth-child(4) { grid-column: 3; grid-row: 1; justify-self: end; font-size: 13px; color: var(--sub); }
  .tbl-ledger td:nth-child(5) { grid-column: 1 / -1; grid-row: 2; font-size: 15.5px; margin-top: 4px; white-space: normal; }
  .tbl-ledger td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; font-size: 13.5px; color: var(--sub); }
  .tbl-ledger td:nth-child(6), .tbl-ledger td:nth-child(7) { grid-row: 4; font-size: 13.5px; color: var(--sub); }
  .tbl-ledger td:nth-child(6) { grid-column: 1 / 3; }
  .tbl-ledger td:nth-child(7) { grid-column: 3; }
  .tbl-ledger td:nth-child(6)::before, .tbl-ledger td:nth-child(7)::before { content: attr(data-l) "　"; }

  .pick { gap: 14px; }
  .pick figcaption { font-size: 12.5px; }
}

/* ───── スマホ ───── */
@media (max-width: 640px) {
  body { font-size: 15.5px; padding-bottom: 64px; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .hero h1 { font-size: 29px; }
  .hero-lead { font-size: 15.5px; }
  .promise > div { grid-template-columns: 48px minmax(0, 1fr); }
  .hero-act .btn { flex: 1 1 100%; }
  .tbl { font-size: 15px; }
  .tbl-work tbody th { white-space: normal; width: auto; }
  .tbl-plain th { width: 6.5em; }

  /* 表の見出しを左、中身を下に積む */
  .tbl-work thead { display: none; }
  .tbl-work { border-top: 2px solid var(--navy); }
  .tbl-work tr, .tbl-can tr, .tbl-plain tr { display: grid; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .tbl-can th { white-space: normal; }
  .tbl-work th, .tbl-work td, .tbl-can th, .tbl-can td, .tbl-plain th, .tbl-plain td { width: auto; border: 0; padding: 0; }
  .tbl-work th, .tbl-can th, .tbl-plain th { font-size: 14px; margin-bottom: 2px; }

  .tbl-price thead { display: none; }
  .tbl-price, .tbl-price tbody { display: block; }
  .tbl-price { border-top: 2px solid var(--navy); }
  .tbl-price tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl-price th, .tbl-price td { border: 0; padding: 0 !important; width: auto !important; }
  .tbl-price th { grid-column: 1; grid-row: 1; }
  .tbl-price td.r { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .tbl-price td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 13px; }
  .tbl-price td.r .num { font-size: 22px; }

  .tbl-area thead th:first-child { width: 6.5em; }
  .tbl-area tbody td { font-size: 16px; }
  .area-min { font-size: 38px; }

  .permit th { width: 42%; padding: 10px 10px; font-size: 12.5px; }
  .permit td { padding: 10px 12px; font-size: 14.5px; }
  .permit-title { letter-spacing: 0.3em; }

  .report-paper { padding: 18px 14px 16px; }
  .report-meta { flex-direction: column; gap: 4px; }
  .report-from { text-align: left; }
  .report-tbl th { width: auto; }
  .report-tbl tr:nth-child(2) th:nth-child(3), .report-tbl tr:nth-child(3) th:nth-child(3) { white-space: normal; }

  .people { grid-template-columns: minmax(0, 1fr); }
  .swap-box { aspect-ratio: 16 / 10; }
  .news li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .f-2 { grid-template-columns: minmax(0, 1fr); }
  .f-send .btn { width: 100%; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .site-foot { padding-top: 44px; }

  .pick {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); padding-bottom: 6px;
  }
  .pick figure { scroll-snap-align: start; }

  .sp-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; height: 64px;
    border-top: 1px solid var(--line);
  }
  .sp-bar a { display: grid; place-content: center; text-align: center; text-decoration: none; font-weight: 700; line-height: 1.25; }
  .sp-bar-tel { background: var(--yellow); color: var(--ink); }
  .sp-bar-tel small { font-size: 11px; letter-spacing: 0.12em; }
  .sp-bar-tel .num { font-size: 21px; }
  .sp-bar-form { background: var(--navy); color: #fff; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
