/* ═══════════════════════════════════════
   株式会社飛優 サイト
   方針：実写・太いゴシック・黄色の数字バッジ・大きく押しやすいボタン。
   1画面目で「法人・オーナー様」「個人のお客様」に振り分け、2画面目で相談まで決める。
   ═══════════════════════════════════════ */

/* ──────────── 色・書体・寸法 ──────────── */
:root {
  --navy: #0F2A4A;
  --navy-dark: #081B31;
  --yellow: #FFD23F;
  --yellow-dark: #D9AE10;
  --line: #04873F;          /* LINEの緑（白文字が読める濃さ） */
  --line-dark: #036B32;
  --text: #1B2430;
  --sub: #5B6676;
  --gray: #F2F4F7;
  --border: #DDE2E8;
  --white: #FFFFFF;
  --font: YakuHanJP, "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 60px;
}

/* ──────────── 基本 ──────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.8; }
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; }
:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { display: none; }
.inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

/* ──────────── ボタン ──────────── */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
  border: 0; border-radius: 8px; cursor: pointer; text-align: center;
  border-bottom: 4px solid transparent; transition: transform .1s ease;
}
.btn:active { transform: translateY(2px); }
.btn small { display: block; font-size: 12.5px; font-weight: 500; margin-top: 2px; opacity: .9; }
.btn-xl { font-size: 19px; padding: 16px 24px 14px; min-height: 72px; }
.btn-yellow { background: var(--yellow); color: var(--navy); border-bottom-color: var(--yellow-dark); }
.btn-navy { background: var(--navy); color: var(--white); border-bottom-color: var(--navy-dark); }
.btn-line { background: var(--line); color: var(--white); border-bottom-color: var(--line-dark); }

/* ──────────── ヘッダー ──────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-sub { font-size: 11px; color: var(--sub); }
.brand-name { font-size: 18px; font-weight: 900; letter-spacing: .06em; color: var(--navy); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 22px; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.header-tel { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; text-align: right; }
.header-tel-num { font-size: 22px; font-weight: 900; color: var(--navy); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.header-tel-label { font-size: 11px; color: var(--sub); }
.header-line { font-size: 14px; padding: 9px 16px 7px; }
.menu-button { display: none; }

/* ──────────── 1画面目 ──────────── */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--white); }
/* PCは右半分に写真、左に文字 */
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; left: 50%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; }
.hero-body { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 96px; }
.hero-body > * { max-width: 520px; }
.hero-kicker { display: inline-block; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 700; padding: 4px 14px; border-radius: 4px; }
.hero-title { margin-top: 16px; font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; line-height: 1.35; letter-spacing: .02em; color: var(--navy); }
.hero-lead { margin-top: 16px; font-size: 17px; font-weight: 700; line-height: 1.8; max-width: 30em; }
.badges { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.badges li {
  width: 128px; height: 128px; border-radius: 50%; background: var(--yellow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--navy); line-height: 1.3; border: 3px solid var(--white);
}
.badge-small { font-size: 12px; font-weight: 700; }
.badge-big { font-size: 16px; font-weight: 900; margin-top: 2px; }
.badge-big b { font-size: 24px; display: block; line-height: 1.1; }

/* ──────────── 振り分けの2ボタン ──────────── */
.choices { position: relative; z-index: 2; max-width: var(--wrap); margin: -56px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice {
  position: relative; display: block; text-decoration: none; border-radius: 12px;
  padding: 26px 64px 24px 28px; border-bottom: 5px solid transparent;
}
.choice::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 14px; height: 14px;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-70%) rotate(45deg);
}
.choice-owner { background: var(--navy); color: var(--white); border-bottom-color: var(--navy-dark); }
.choice-home { background: var(--yellow); color: var(--navy); border-bottom-color: var(--yellow-dark); }
.choice-who { display: block; font-size: 26px; font-weight: 900; letter-spacing: .04em; line-height: 1.4; }
.choice-what { display: block; font-size: 15px; font-weight: 700; margin-top: 4px; }
.choice:active { transform: translateY(2px); }

/* ──────────── ブロック共通 ──────────── */
.block { padding: clamp(64px, 9vw, 104px) 0; }
.block-gray { background: var(--gray); }
.tag { display: inline-block; font-size: 14px; font-weight: 700; color: var(--white); background: var(--navy); padding: 3px 14px; border-radius: 4px; }
.tag-home { background: var(--yellow); color: var(--navy); }
.title { margin-top: 12px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; line-height: 1.45; letter-spacing: .02em; color: var(--navy); }
.lead { margin-top: 16px; font-size: 16.5px; max-width: 40em; }
.note { margin-top: 16px; font-size: 13px; color: var(--sub); }
.cta { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
.cta-center { margin-left: auto; margin-right: auto; grid-template-columns: minmax(0, 420px); justify-content: center; }
.cta-tel { margin-top: 14px; font-size: 15px; font-weight: 500; }
.cta-tel a { font-size: 22px; font-weight: 900; color: var(--navy); text-decoration: none; margin: 0 4px; font-variant-numeric: tabular-nums; }

/* ──────────── 法人 ──────────── */
.block-owner { padding-top: clamp(88px, 11vw, 128px); }
.three { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.three li { background: var(--gray); border-radius: 12px; padding: 24px 22px; position: relative; }
.three-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--yellow);
  font-size: 20px; font-weight: 900;
}
.three h3 { margin-top: 12px; font-size: 21px; font-weight: 900; color: var(--navy); line-height: 1.5; }
.three p { margin-top: 6px; font-size: 15px; color: var(--sub); }
.owner-row { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.owner-box { border: 2px solid var(--navy); border-radius: 12px; padding: 26px 28px; }
.owner-box h3 { font-size: 20px; font-weight: 900; color: var(--navy); }
.checks { margin-top: 12px; }
.checks li { position: relative; padding: 8px 0 8px 32px; font-size: 16px; font-weight: 700; border-bottom: 1px dashed var(--border); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 14px; height: 8px;
  border-left: 3px solid var(--line); border-bottom: 3px solid var(--line); transform: rotate(-45deg);
}
.owner-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }

/* ──────────── 個人 ──────────── */
.block-home { background: #FFF8DC; }
.tiles { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tiles li { background: var(--white); border-radius: 12px; padding: 20px 22px; border: 1px solid #F0E3AE; }
.tile-name { font-size: 16px; font-weight: 700; }
.tile-price { margin-top: 4px; font-size: 32px; font-weight: 900; color: var(--navy); line-height: 1.3; font-variant-numeric: tabular-nums; }
.tile-price span { font-size: 16px; margin-left: 2px; }
.tile-ask { font-size: 20px; color: var(--sub); }
.tax { margin-top: 12px; font-size: 13.5px; color: var(--sub); }
.tax a { color: var(--navy); font-weight: 700; }

/* ──────────── 施工事例 ──────────── */
.cases { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-photos figure { position: relative; }
.case-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.case-photos figcaption { position: absolute; left: 8px; top: 8px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 4px; }
.case-photos figcaption.after { background: var(--yellow); color: var(--navy); }
.case h3 { margin-top: 12px; font-size: 20px; font-weight: 900; color: var(--navy); }
.case p { font-size: 14px; color: var(--sub); }
.gallery { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }

/* ──────────── オーナー様の理由 ──────────── */
.reasons { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reasons > div { background: var(--white); border-radius: 12px; padding: 24px; border-top: 5px solid var(--navy); }
.reasons h3 { font-size: 19px; font-weight: 900; color: var(--navy); line-height: 1.5; }
.reasons p { margin-top: 8px; font-size: 15px; color: var(--sub); }

/* ──────────── 料金 ──────────── */
.price-tables { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { text-align: left; font-size: 17px; font-weight: 900; color: var(--white); background: var(--navy); padding: 8px 14px; border-radius: 8px 8px 0 0; }
.price-table th, .price-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 15px; }
.price-table th { text-align: left; font-weight: 500; }
.price-table td { text-align: right; font-weight: 900; white-space: nowrap; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ──────────── よくある質問 ──────────── */
.faq { margin-top: 12px; background: var(--white); border-radius: 10px; }
.faq:first-of-type { margin-top: 28px; }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 52px 18px 20px; font-size: 16.5px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-weight: 900; color: var(--navy); margin-right: 10px; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 44%; width: 10px; height: 10px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: translateY(-50%) rotate(45deg); transition: transform .2s ease; }
.faq[open] summary::after { transform: translateY(-10%) rotate(225deg); }
.faq p { padding: 0 20px 18px 44px; font-size: 15px; color: var(--sub); }

/* ──────────── 会社のこと ──────────── */
.company { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.message p { margin-top: 16px; font-size: 15.5px; }
.sign { font-weight: 700; text-align: right; }
.company-table > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.company-table dt { font-weight: 700; color: var(--navy); }
.company-table a { color: var(--navy); }

/* ──────────── 最後の窓口 ──────────── */
.closing { background: var(--navy); color: var(--white); padding: 72px 0; }
.closing .title { color: var(--white); text-align: center; }
.closing-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.closing-card {
  display: flex; flex-direction: column; justify-content: center; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--navy); border: 0; border-radius: 12px; padding: 20px 12px; border-bottom: 5px solid #C9D0DA; min-height: 108px;
}
.closing-card:active { transform: translateY(2px); }
.closing-who { font-size: 13.5px; font-weight: 700; color: var(--sub); }
.closing-what { font-size: 20px; font-weight: 900; margin-top: 2px; }
.closing-line { background: var(--line); color: var(--white); border-bottom-color: var(--line-dark); }
.closing-line .closing-who { color: rgba(255, 255, 255, .9); }
.closing-tel { background: var(--yellow); border-bottom-color: var(--yellow-dark); }
.closing-tel .closing-what { font-variant-numeric: tabular-nums; }

/* ──────────── フッター ──────────── */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 28px; }
.footer-name { font-weight: 900; letter-spacing: .06em; }
.footer-address { font-size: 13px; color: rgba(255, 255, 255, .75); }
.copyright { font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ──────────── スマホの画面下に固定する窓口 ──────────── */
.mobile-bar { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .choice, .closing-card { transition: none; }
}

/* ═══════════════════════════════════════
   タブレット（〜1023px）
   ═══════════════════════════════════════ */
@media (max-width: 1023px) {
  .nav, .header-line { display: none; }
  .header-tel { margin-left: auto; }
  .menu-button {
    display: block; width: 44px; height: 44px; position: relative; background: none; border: 0; cursor: pointer;
  }
  .menu-button-bar, .menu-button-bar::before, .menu-button-bar::after {
    position: absolute; left: 10px; width: 24px; height: 3px; border-radius: 2px; background: var(--navy); content: "";
  }
  .menu-button-bar { top: 20px; }
  .menu-button-bar::before { left: 0; top: -8px; }
  .menu-button-bar::after { left: 0; top: 8px; }
  .nav.open {
    display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 20px;
  }
  .nav.open ul { flex-direction: column; gap: 0; }
  .nav.open a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .three, .reasons, .price-tables { grid-template-columns: 1fr; }
  .owner-row, .company { grid-template-columns: 1fr; }
  .owner-photo img { aspect-ratio: 4 / 3; }
  .cases { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .closing-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════
   スマートフォン（〜767px）
   ═══════════════════════════════════════ */
@media (max-width: 767px) {
  .sp { display: inline; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .header-inner { height: 60px; gap: 10px; }
  .nav.open { top: 60px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 10px; }
  .header-tel-num { font-size: 17px; }
  .header-tel-label { font-size: 10px; }

  /* 1画面目：写真を上、文字を下に分ける */
  .hero { display: block; min-height: 0; background: var(--white); }
  .hero-photo { position: relative; left: auto; }
  .hero-photo img { aspect-ratio: 2 / 1; height: auto; object-position: 40% 40%; }
  .hero-body { padding: 14px var(--gutter) 14px; }
  .hero-kicker { font-size: 12.5px; }
  .hero-title { margin-top: 8px; font-size: 26px; line-height: 1.3; }
  .hero-lead { display: none; }
  .badges { margin-top: 12px; gap: 6px; flex-wrap: nowrap; }
  .badges li { width: auto; height: auto; flex: 1; border-radius: 10px; padding: 7px 4px; border: 0; }
  .badge-small { font-size: 10.5px; }
  .badge-big { font-size: 13px; }
  .badge-big b { font-size: 19px; }

  .choices { margin: 0; grid-template-columns: 1fr; gap: 10px; padding-bottom: 8px; }
  .choice { padding: 13px 48px 11px 18px; }
  .choice::after { right: 22px; }
  .choice-who { font-size: 20px; }
  .choice-what { font-size: 12.5px; margin-top: 0; }

  .block-owner { padding-top: 56px; }
  .cta { grid-template-columns: 1fr; }
  .btn-xl { font-size: 18px; min-height: 66px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles li { padding: 14px; }
  .tile-name { font-size: 14px; }
  .tile-price { font-size: 25px; }
  .tile-ask { font-size: 17px; }
  .owner-box { padding: 20px; }
  .checks li { font-size: 15px; }
  .case-photos img { aspect-ratio: 4 / 5; }
  .closing-grid { grid-template-columns: 1fr; }
  .company-table > div { grid-template-columns: 1fr; gap: 0; }

  /* 画面下の固定ボタン：LINE／法人／電話 */
  .mobile-bar {
    display: grid; grid-template-columns: 1.2fr 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: var(--white); border-top: 1px solid var(--border);
  }
  .mobile-bar > * {
    display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; border: 0;
    font-size: 14px; font-weight: 900; line-height: 1.25; cursor: pointer;
  }
  .mobile-bar-line { background: var(--line); color: var(--white); }
  .mobile-bar-owner { background: var(--navy); color: var(--white); }
  .mobile-bar-tel { background: var(--yellow); color: var(--navy); }

}

/* LPの1画面目の入口はボタン要素なので、見た目をそろえる */
button.choice { width: 100%; border-top: 0; border-left: 0; border-right: 0; text-align: left; cursor: pointer; font: inherit; }

/* 2026-09-26 ui-sekkei の点検：ラベルの文字は12px以上（R24）、フォーカス枠は背景と3:1以上（R53） */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.choice-owner:focus-visible, .mobile-bar-owner:focus-visible, .btn-navy:focus-visible, .closing :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
@media (max-width: 767px) {
  .brand-sub, .header-tel-label { font-size: 12px; }
  .badge-small { font-size: 12px; }
  html { scroll-padding-bottom: 76px; }
}
