/* ═══════════════════════════════════════
   株式会社飛優 下層ページ共通（2026-09-29 トップ＝音更電設型にそろえて全面書き換え）
   色・書体・ボタン・ヘッダー・フッターは css/top.css と同じ値を使う。
   紺 #15233b × 白 ＋ 金 #c9a55c。ボタンは丸いピル型。見出しの目印は金の丸。
   問い合わせの入口は、右上のピル・各ページの最後・スマホの画面下に必ず置く。
   ═══════════════════════════════════════ */

/* ──────────── 色・書体・寸法（top.css と同じ） ──────────── */
:root {
  --navy: #15233b; --navy2: #22344f; --ink: #111827; --gray: #eff0f2; --rule: #d5d9e0;
  --gold: #c9a55c; --white: #fff; --sub: #4b5563;
  --line: #04873F; --line-dark: #036B32;   /* LINEの緑（白文字4.5:1以上にした色） */
  --u: calc(100vw / 1440);
  --jp: "Noto Sans JP", sans-serif; --en: "Albert Sans", "Noto Sans JP", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 60px;
}

/* ──────────── 基本 ──────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--jp); font-weight: 500; font-size: 16px; line-height: 1.9; letter-spacing: .02em; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.page-head :focus-visible, .foot :focus-visible, .tab[aria-selected="true"]:focus-visible { outline-color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sp { display: none; }

/* ──────────── ボタン（トップと同じピル型） ──────────── */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60px; padding: 10px 34px; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  font-size: 16px; font-weight: 700; letter-spacing: .04em; text-decoration: none; text-align: center; line-height: 1.35;
}
.btn small { font-size: 13px; font-weight: 500; }
.btn-cta { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-cta:hover { background: var(--navy2); border-color: var(--navy2); }
.btn-white { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-white:hover { background: var(--gold); border-color: var(--gold); }
.btn-line { background: var(--line); border-color: var(--line); color: #fff; }
.btn-line:hover { background: var(--line-dark); border-color: var(--line-dark); }
.btn-sm { min-height: 44px; padding: 6px 22px; font-size: 14px; }
/* 文中のリンク（トップの「法人のご案内を見る」と同じ金の下線） */
.more { display: inline-block; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.more:hover { color: var(--navy2); border-bottom-color: var(--navy); }

/* ──────────── ヘッダー ──────────── */
.site-header { position: relative; z-index: 40; display: flex; align-items: center; gap: 40px; height: 96px; padding: 0 calc(340px + 16px) 0 clamp(16px, 3.5vw, 51px); background: #fff; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 36px; }
.brand b { font-size: 28px; line-height: 1; letter-spacing: .12em; font-weight: 700; }
.brand small { font-size: 12px; line-height: 1.45; letter-spacing: .06em; color: var(--sub); padding-left: 12px; border-left: 1px solid var(--rule); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.nav a::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #dfe2e7; }
.nav a:hover::before, .nav a[aria-current="page"]::before { background: var(--gold); }
.nav a[aria-current="page"] { color: var(--navy); }

/* 右上に常にいる電話とお問い合わせ（トップの .pill と同じ形） */
.pill { position: fixed; z-index: 50; top: 22px; right: 16px; display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 5px 5px 18px; }
.pill a { text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1; }
.pill .tel { font-family: var(--en); font-weight: 800; font-size: 17px; letter-spacing: .02em; padding: 10px 12px 10px 0; }
.pill .tel small { font-family: var(--jp); font-size: 11px; font-weight: 500; margin-right: 6px; color: var(--sub); }
.pill .pill-form { background: var(--navy); color: #fff; border-radius: 999px; padding: 14px 20px; }
.pill .pill-form:hover { background: var(--navy2); }
.menu-button { display: none; }

/* ──────────── 下層ページの見出しの帯（紺地＋白鳥の透かし） ──────────── */
.page-head { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 0 0 0 clamp(48px, calc(180 * var(--u)), 180px); }
.page-head::after {
  content: ""; position: absolute; right: clamp(-40px, 4vw, 80px); top: -12%; height: 140%; aspect-ratio: 1733 / 2357;
  background: #fff; opacity: .07; pointer-events: none;
  -webkit-mask: url(/images/swan-mask.png) center / contain no-repeat; mask: url(/images/swan-mask.png) center / contain no-repeat;
  animation: swanIn 1.4s cubic-bezier(.2, .7, .2, 1) both;   /* 動きはここ1か所だけ */
}
@keyframes swanIn { from { opacity: 0; transform: translateY(24px); } }
.page-head-inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 76px; }
.breadcrumb { font-size: 14px; color: #c3cad6; letter-spacing: .06em; }
.breadcrumb a { color: #c3cad6; }
.page-head h1 { display: flex; align-items: center; gap: 18px; margin-top: 18px; font-size: clamp(30px, 3.9vw, 52px); font-weight: 700; line-height: 1.4; letter-spacing: .1em; }
.page-head h1::before { content: ""; flex: none; width: .5em; height: .5em; border-radius: 50%; background: var(--gold); }
.page-head p:not(.breadcrumb) { margin-top: 20px; max-width: 36em; color: #dde3ec; font-size: 16px; line-height: 2.1; }

/* ──────────── セクション共通 ──────────── */
.section { padding: clamp(72px, 8vw, 120px) 0; }
.section-paper { background: var(--gray); }
.section-head { margin-bottom: 44px; }
/* 見出しの目印：トップの「飛優のしごと」と同じ金の丸（小ラベルに見せない） */
.section-head .label { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .08em; line-height: 1.4; }
.section-head .label::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); box-shadow: inset -5px -5px 0 rgba(0, 0, 0, .08); }
.section-head h2 { margin-top: 16px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: var(--navy); line-height: 1.6; letter-spacing: .08em; }
.section-head p.lead { margin-top: 16px; max-width: 40em; font-size: 16px; line-height: 2; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.note { margin-top: 20px; font-size: 14px; color: var(--sub); }

/* ──────────── 文章・表・リスト ──────────── */
.prose p + p { margin-top: 1em; }
.prose p { line-height: 2.1; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.two-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.checklist li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px dashed var(--rule); font-weight: 700; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.steps { counter-reset: step; display: grid; border-top: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--en); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.6; letter-spacing: .04em; }
.steps p { margin-top: 4px; color: var(--sub); font-size: 15px; }
.table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.table th, .table td { padding: 18px 20px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 15px; }
.table th { width: 11em; font-weight: 700; color: var(--navy); }
.section-paper .table { background: #fff; }
.two-col .table th { width: auto; }   /* 料金表：2列並びの時は項目名を折り返さない */
.table td.price { text-align: right; font-family: var(--en); font-weight: 800; font-size: 17px; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table a { color: var(--navy); }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.reasons > div { border-top: 1px solid var(--navy); padding-top: 20px; }
.reasons h3 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.reasons p { margin-top: 8px; font-size: 15px; color: var(--sub); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.services li { padding: 26px 26px 28px; background: var(--gray); border-radius: 24px; }
.services h3 { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.services h3 a { border-bottom: 2px solid var(--gold); }
.services p { margin-top: 8px; font-size: 15px; color: var(--sub); }
.section-paper .services li { background: #fff; }
.faq { border-bottom: 1px solid var(--rule); }
.faq:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 40px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 4px; font-family: var(--en); font-weight: 800; font-size: 19px; color: var(--gold); }
.faq summary::after { content: ""; position: absolute; right: 16px; top: 46%; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-50%) rotate(45deg); }
.faq[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq p { padding: 0 20px 22px 40px; color: var(--sub); }

/* ──────────── 写真の並び・施工事例 ──────────── */
.photo-row { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.case-card { background: #fff; border-radius: 26px; padding: 14px 14px 22px; box-shadow: 0 20px 40px rgba(21, 35, 59, .08); }
.section-paper .case-card { box-shadow: none; }
.case-card .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.case-card .pair figure { position: relative; }
.case-card .pair img, .case-card .single img { width: 100%; object-fit: cover; border-radius: 16px; }
.case-card .pair img { aspect-ratio: 3 / 4; }
.case-card .single img { aspect-ratio: 3 / 2; }
.case-card .pair figcaption { position: absolute; left: 8px; top: 8px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; line-height: 1.8; }
.case-card .pair figcaption.after { background: var(--navy); color: #fff; }
.case-card-body { padding: 16px 6px 0; }
.case-card .kind { display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy); border: 1px solid var(--navy); border-radius: 999px; padding: 0 10px; }
.case-card h3 { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.case-card p { margin-top: 4px; font-size: 14px; color: var(--sub); }

/* ──────────── フォーム（お問い合わせページ。見た目だけ） ──────────── */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; background: var(--gray); border-radius: 999px; }
.tab { cursor: pointer; border: 0; border-radius: 999px; background: transparent; color: var(--sub); font-size: 17px; font-weight: 700; letter-spacing: .06em; padding: 14px 10px; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.form { margin-top: 20px; background: #fff; border: 1px solid var(--rule); border-radius: 28px; padding: 32px clamp(18px, 4vw, 44px) 34px; }
.form-row { margin-top: 22px; }
.form-row:first-child { margin-top: 0; }
.form-row > label, .form-row > p.form-label { display: block; font-weight: 700; margin-bottom: 8px; }
.req, .opt { font-size: 12px; font-weight: 700; padding: 1px 10px; margin-left: 8px; border-radius: 999px; }
.req { background: var(--navy); color: #fff; }
.opt { background: var(--gray); color: var(--sub); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  width: 100%; max-width: 480px; font: inherit; font-size: 16px; padding: 13px 16px; border: 1px solid #7D8796; border-radius: 10px; background: #fff;
}
.form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 165, 92, .45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 18px; border: 1px solid #7D8796; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; background: #fff; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-error { min-height: 1.6em; margin-top: 16px; color: #B3261E; font-weight: 700; font-size: 14px; }
.field-error { margin-top: 6px; color: #B3261E; font-size: 14px; font-weight: 700; }
.field-error:empty { display: none; }
.form input[aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
.form .btn { width: 100%; max-width: 480px; margin-top: 8px; font-size: 17px; min-height: 64px; }
.form-done { display: none; padding: 32px 0; }
.form-done.show { display: block; }
.form-done h3 { font-size: 22px; font-weight: 700; color: var(--navy); }

/* ──────────── ページ最後の相談の帯（トップの .cta と同じ型） ──────────── */
.contact-band { background: #fff; border-top: 1px solid var(--rule); padding: clamp(72px, calc(120 * var(--u)), 120px) 0; }
.contact-band-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contact-band h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1.6; letter-spacing: .06em; }
.contact-band p { margin-top: 10px; color: #374151; font-size: 15px; }
.contact-band-tel { display: inline-block; margin-top: 22px; text-decoration: none; color: var(--navy); }
.contact-band-tel span { display: block; font-size: 14px; color: #374151; letter-spacing: .06em; margin-bottom: 8px; }
.contact-band-tel b { font-family: var(--en); font-size: clamp(38px, calc(58 * var(--u)), 58px); font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.contact-band-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-band-buttons .btn { min-height: 76px; }
.contact-band-buttons .btn-line { grid-column: 1 / -1; min-height: 60px; }

/* ──────────── フッター（トップと同じ：大きな白い社名） ──────────── */
.foot { background: var(--gray); padding: calc(70 * var(--u)) calc(96 * var(--u)) 40px; position: relative; overflow: hidden; }
.foot-mark { font-family: var(--en); font-weight: 800; font-size: calc(300 * var(--u)); line-height: .8; letter-spacing: -.05em; color: #fff; margin: 0; white-space: nowrap; }
.foot-logo { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: calc(40 * var(--u)); font-weight: 700; font-size: 22px; letter-spacing: .14em; }
.foot-logo img { width: 44px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 50px 0 0; padding: 26px 0; border-top: 1px solid #c9ced6; border-bottom: 1px solid #c9ced6; list-style: none; font-size: 14px; }
.foot-nav a { text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-info { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 24px; font-size: 14px; }
.foot-info b { font-size: 15px; }
.foot small.copy { display: block; margin-top: 16px; font-size: 12px; color: var(--sub); }

/* ──────────── スマホ画面下の固定ボタン ──────────── */
.mobile-bar { display: none; }

/* ═══════════════════════════════════════
   1279px以下：メニューはピルの中の「メニュー」ボタンで開く
   ═══════════════════════════════════════ */
@media (max-width: 1279px) {
  .site-header { padding-right: 16px; }
  .nav { display: none; }
  .menu-button { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; margin-left: 2px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
  .menu-button[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
  .nav.open { display: block; position: fixed; z-index: 49; top: 84px; right: 16px; width: min(360px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--rule); border-radius: 24px; padding: 10px 24px; box-shadow: 0 20px 40px rgba(21, 35, 59, .12); }
  .nav.open ul { flex-direction: column; gap: 0; }
  .nav.open li + li a { border-top: 1px dashed var(--rule); }
  .nav.open a { padding: 14px 0; font-size: 16px; }
}
@media (max-width: 1023px) {
  .two-col, .contact-band-inner { grid-template-columns: 1fr; }
  .cases, .reasons, .services { grid-template-columns: 1fr 1fr; }
}
/* 768〜1023px：ピルとロゴが重ならないよう、ロゴの小さい字を隠す */
@media (max-width: 1100px) { .brand small { display: none; } }

/* ═══════════════════════════════════════
   スマートフォン（〜767px）
   ═══════════════════════════════════════ */
@media (max-width: 767px) {
  :root { --s: calc(100vw / 375); }
  .sp { display: list-item; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: 76px; scroll-padding-bottom: 76px; }
  .site-header { height: 68px; padding-left: 16px; }
  .brand { gap: 8px; }
  .brand img { width: 26px; }
  .brand b { font-size: 20px; }
  .pill { top: 10px; right: 8px; padding: 4px 4px 4px 12px; }
  .pill .tel { font-size: 15px; padding: 8px 6px 8px 0; }
  .pill .tel small { display: none; }
  .pill .pill-form { display: none; }   /* スマホは画面下の固定ボタンに「お問い合わせ」がある */
  .menu-button { height: 40px; padding: 0 14px; font-size: 13px; }
  .nav.open { top: 64px; right: 8px; width: calc(100vw - 16px); }

  .page-head-inner { padding: 40px 20px 52px; }
  .page-head::after { right: -60px; height: 120%; top: -4%; }
  .page-head h1 { gap: 12px; margin-top: 12px; font-size: calc(28 * var(--s)); letter-spacing: .06em; }
  .page-head p:not(.breadcrumb) { font-size: 15px; line-height: 2; }

  .section-head { margin-bottom: 32px; }
  .section-head .label::before { width: 20px; height: 20px; }
  .section-head h2 { font-size: 22px; letter-spacing: .04em; }
  .cases, .reasons, .services { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .photo-row img { border-radius: 14px; }
  .photo-row img:last-child { display: none; }
  .table th { width: 7em; padding: 14px 12px; }
  .table td { padding: 14px 12px; }
  .table td.price { font-size: 16px; }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .steps li::before { width: 42px; height: 42px; font-size: 15px; }
  .tab { font-size: 15px; padding: 12px 6px; }
  .form { border-radius: 22px; }
  .contact-band-buttons { grid-template-columns: 1fr; }

  .foot { padding: 40px 20px 30px; }
  .foot-mark { font-size: calc(150 * var(--s)); }
  .foot-logo { justify-content: flex-start; margin-top: 24px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff; border-top: 1px solid var(--rule);
  }
  .mobile-bar > * { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.25; }
  .mobile-bar-tel { color: var(--navy); }
  .mobile-bar-contact { background: var(--navy); color: #fff; }
  .mobile-bar-line { background: var(--line); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-head::after { animation: none; }
}
