/* 武生テック サイト共通スタイル
   レイアウト：左寄せの見出しと、電話番号を常に目に入る位置に置く「現場の名刺」型 */
:root {
  --line-green: #06c755;  /* LINEのブランドカラー */
  --line-green-dark: #05a647;
  --ink: #1c2833;        /* 本文・見出し（紺鼠） */
  --ink-soft: #4b5b68;   /* 補足文 */
  --paper: #f6f8f8;      /* 背景（わずかに青みの白） */
  --card: #ffffff;
  --line: #d9e1e4;
  --sea: #036441;        /* ロゴの緑 — アクセント */
  --sea-pale: #e2f0e9;
  --call: #c0561f;       /* 電話ボタン（銅色） */
  --call-dark: #9d4416;

  --f-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-num: "Barlow Condensed", "Arial Narrow", sans-serif;

  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--call); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.35; text-wrap: balance; margin: 0; letter-spacing: 0.03em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-top { display: flex; align-items: center; gap: 24px; padding-block: 14px; }

/* ブランド：ロゴを上、カタカナ名を下に重ねる */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; color: var(--ink); line-height: 1.2; flex-shrink: 0; }
.brand-logo { height: 32px; width: auto; }
.brand-text { display: flex; flex-direction: column; white-space: nowrap; }
.brand-name { font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: 0.08em; line-height: 1.15; }
.brand-sub { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.08em; }
.footer-logo { height: 30px; margin-bottom: 14px; }
.site-footer .brand-name { font-size: 18px; display: block; }

.header-tel { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--ink); line-height: 1.15; white-space: nowrap; }
.header-tel .num { font-size: 36px; font-weight: 700; color: var(--call); }
.header-tel small { font-size: 13px; color: var(--ink-soft); }

/* メニュー：1つずつ枠で囲み、アイコンとひと言説明を添える */
.gnav { border-top: 1px solid var(--line); background: var(--paper); }
.gnav ul { list-style: none; margin: 0; padding: 12px 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.gnav a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  height: 100%; padding: 10px 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 8px;
  color: var(--ink); text-decoration: none; line-height: 1.3;
}
.gnav svg { grid-row: 1 / 3; width: 28px; height: 28px; fill: none; stroke: var(--sea); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-label { font-family: var(--f-display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav-hint { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.gnav a:hover { border-color: var(--sea); background: var(--sea-pale); }
.gnav a[aria-current="page"] { border-color: var(--sea); box-shadow: inset 0 -3px 0 var(--sea); }
.gnav a.nav-contact { background: var(--sea); border-color: var(--sea); color: #fff; }
.gnav a.nav-contact svg { stroke: #fff; }
.gnav a.nav-contact .nav-hint { color: rgba(255,255,255,0.85); }
.gnav a.nav-contact:hover { background: #024d32; }
.menu-btn { display: none; }
/* パソコン：7項目を1列に並べるため、アイコンを上に置いて縦に積む */
@media (min-width: 1101px) {
  .gnav a { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; text-align: center; row-gap: 2px; padding: 10px 6px; }
  .gnav svg { grid-row: auto; width: 26px; height: 26px; margin-bottom: 2px; }
  .nav-label { font-size: 15px; }
}

@media (max-width: 1100px) {
  .gnav ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-top { gap: 12px; padding-block: 12px; }
  .brand-logo { height: 22px; }
  .brand-name { font-size: 24px; }
  .brand-sub { font-size: 12px; }
  .header-tel { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; margin-left: auto;
    background: var(--card); border: 1.5px solid var(--line); border-radius: 8px;
    padding: 10px 14px; font: 700 16px var(--f-body); color: var(--ink); cursor: pointer;
  }
  .gnav { display: none; }
  .gnav.open { display: block; }
  .gnav ul { grid-template-columns: 1fr 1fr; }
  .gnav a { padding: 12px 10px; }
  .gnav svg { width: 24px; height: 24px; }
  .nav-label { font-size: 14px; white-space: normal; }
  .nav-hint { font-size: 11px; white-space: normal; }
}

/* ---------- お知らせ帯 ---------- */
.notice-bar { background: #fbf3e6; border-bottom: 1px solid #ecdcc2; font-size: 14px; line-height: 1.7; }
.notice-bar .wrap { display: flex; align-items: baseline; gap: 12px; padding-block: 10px; }
.notice-tag { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--call-dark); border: 1px solid var(--call); border-radius: 4px; padding: 1px 8px; background: var(--card); }
.notice-bar p { min-width: 0; }
.notice-bar time { font-weight: 700; }
.notice-bar a { color: var(--call-dark); font-weight: 700; }
@media (max-width: 480px) { .notice-bar { font-size: 13px; } .notice-bar .wrap { gap: 8px; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 6px; font-family: var(--f-display); font-weight: 700;
  text-decoration: none; font-size: 17px; line-height: 1.3; border: 2px solid transparent;
}
.btn-call { background: var(--call); color: #fff; }
.btn-call:hover { background: var(--call-dark); }
.btn-call .num { font-size: 26px; }
.btn-line { background: var(--card); color: var(--sea); border-color: var(--sea); }
.btn-line:hover { background: var(--sea-pale); }

.btn-lineapp { background: var(--line-green); color: #fff; }
.btn-lineapp:hover { background: var(--line-green-dark); }
.btn .ico { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }

/* ---------- ヒーロー ---------- */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 56px; }
.hero-eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--sea); letter-spacing: 0.12em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(26px, 7.6vw, 46px); font-weight: 900; margin-bottom: 20px; }
@media (min-width: 861px) { .hero h1 { font-size: clamp(34px, 3.9vw, 46px); } }
.nb { display: inline-block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--sea); }
.hero-lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 28px; max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hours { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.since {
  position: absolute; left: -20px; bottom: -20px; background: var(--sea); color: #fff;
  padding: 14px 20px; border-radius: 6px; line-height: 1.2;
}
.since .num { font-size: 40px; font-weight: 700; display: block; }
.since small { font-size: 13px; letter-spacing: 0.08em; }
.owner-badge {
  position: absolute; right: 16px; top: 16px; display: flex; align-items: center; gap: 14px;
  padding: 8px 22px 8px 8px; background: var(--card); border-radius: 999px; text-decoration: none; color: var(--ink);
  box-shadow: 0 6px 20px rgba(28, 40, 51, 0.18); line-height: 1.3;
}
.owner-badge img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sea); }
.owner-badge strong { display: block; font-family: var(--f-display); font-size: 19px; }
.owner-badge small { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--sea); font-weight: 700; }
.owner-badge small::after { content: "↓"; }
.owner-badge:hover { box-shadow: 0 8px 24px rgba(28, 40, 51, 0.28); }
.owner-badge:hover strong { color: var(--sea); }
.greeting-sec { scroll-margin-top: 16px; }
@media (max-width: 480px) {
  .owner-badge { right: 10px; top: 10px; gap: 10px; padding: 6px 16px 6px 6px; }
  .owner-badge img { width: 64px; height: 64px; }
  .owner-badge strong { font-size: 15px; }
  .owner-badge small { font-size: 12px; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 32px 48px; }
  .hero-photo { order: -1; }
  .since { left: 12px; bottom: -16px; }
}

/* ---------- セクション共通 ---------- */
.section { padding-block: 72px; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 36px; max-width: 40em; }
.section-head .label { font-size: 13px; font-weight: 700; color: var(--sea); letter-spacing: 0.16em; display: block; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; }
.section-head p { margin-top: 12px; color: var(--ink-soft); }
@media (max-width: 600px) { .section { padding-block: 52px; } }

/* ---------- お困りごと ---------- */
.troubles { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.troubles li a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px;
}
.troubles li a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); }
.troubles li a:hover { border-color: var(--sea); color: var(--sea); }

/* ---------- サービス ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service { display: flex; flex-direction: column; background: var(--paper); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.service img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service h3 { font-size: 22px; font-weight: 900; }
.service p { color: var(--ink-soft); font-size: 16px; }
.service ul { margin: 4px 0 0; padding-left: 1.2em; font-size: 15px; }
.service .more { margin-top: auto; padding-top: 8px; color: var(--sea); font-weight: 700; }
.service:hover { border-color: var(--sea); }
.service:hover .more { text-decoration: underline; }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- 安心ポイント ---------- */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.point { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 20px; padding: 28px 8px; border-bottom: 1px solid var(--line); }
.point:nth-child(odd) { padding-right: 32px; }
.point:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.point-fig { white-space: nowrap; font-family: var(--f-num); font-size: 40px; font-weight: 700; color: var(--sea); line-height: 1; min-width: 3.2ch; }
.point-fig small { font-family: var(--f-display); font-size: 15px; margin-left: 2px; }
.point h3 { font-size: 19px; margin-bottom: 6px; }
.point p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) {
  .points { grid-template-columns: 1fr; }
  .point:nth-child(odd), .point:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ---------- ごあいさつ ---------- */
.greeting { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: center; }
.greeting-photo { margin: 0; }
.greeting-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.greeting-body { display: flex; flex-direction: column; gap: 16px; max-width: 36em; }
.greeting-body .label { font-size: 13px; font-weight: 700; color: var(--sea); letter-spacing: 0.16em; }
.greeting-body h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; margin-bottom: 4px; }
.greeting-sign { margin-top: 8px; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: 0.12em; }
.greeting-sign small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .greeting { grid-template-columns: 1fr; gap: 28px; }
  .greeting-photo { max-width: 280px; }
}

/* ---------- お客様の声 ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voice { background: var(--paper); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.voice blockquote { margin: 0; font-size: 16px; }
.voice footer { margin-top: auto; font-size: 14px; color: var(--ink-soft); }
.voice footer strong { color: var(--ink); }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } }

/* ---------- 施工事例 ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.work img { border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.work .tag { font-size: 13px; font-weight: 700; color: var(--sea); }
.work h3 { font-size: 18px; }
.work:hover h3 { color: var(--sea); text-decoration: underline; }
.works-more { margin-top: 32px; }
@media (max-width: 860px) { .works { grid-template-columns: 1fr; } }

/* ---------- 対応エリア ---------- */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.area dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 1px solid var(--line); }
.area dt, .area dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.area dt { font-weight: 700; padding-right: 24px; white-space: nowrap; }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 電話CTA帯 ---------- */
.cta-band { background: var(--sea); color: #fff; }
.cta-band .wrap { padding-block: 56px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 900; }
.cta-band p { margin-top: 8px; opacity: 0.9; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-line { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn-line:hover { background: rgba(255,255,255,0.12); }
.line-qr { margin: 0; display: flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); padding: 10px 16px 10px 10px; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.line-qr img { width: 96px; height: 96px; image-rendering: pixelated; }
@media (max-width: 860px) { .line-qr { display: none; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #dce4e8; font-size: 15px; }
.site-footer .wrap { padding-block: 48px 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.site-footer .brand-name { color: #fff; }
.site-footer address { font-style: normal; margin-top: 12px; line-height: 1.9; }
.site-footer a { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; font-size: 13px; color: #a9b6bd; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- スマホ下部の電話バー ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--line);
    padding: 8px var(--gutter-r) calc(8px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  }
  .callbar .btn { padding: 10px 8px; font-size: 14px; white-space: nowrap; gap: 4px; }
  .callbar .btn-call .num { font-size: 18px; }
  .callbar { grid-template-columns: 1.9fr 1fr 1fr; gap: 6px; }
  .callbar .btn .ico { width: 18px; height: 18px; }
}

/* ---------- 下層ページ用 ---------- */
.page-head { background: var(--card); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 40px; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.breadcrumb a { color: var(--ink-soft); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.page-head p { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }
.prose { max-width: 42em; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 26px; margin-top: 2em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }

/* ---------- 下層ページ：サービス詳細 ---------- */
.page-head .wrap { display: grid; gap: 28px; }
.page-head-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 4px; background: var(--sea-pale); color: var(--sea); font-weight: 700; font-size: 14px; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.menu-grid li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: 6px; padding: 18px 20px; }
.section-alt .menu-grid li { background: var(--paper); }
.menu-grid h3 { font-size: 19px; margin-bottom: 4px; }
.menu-grid p { color: var(--ink-soft); font-size: 15px; }

.license { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: start; background: var(--card); border: 2px solid var(--sea); border-radius: 8px; padding: 28px; }
.license-mark { font-family: var(--f-display); font-weight: 900; color: #fff; background: var(--sea); border-radius: 6px; padding: 12px 16px; text-align: center; line-height: 1.4; font-size: 15px; }
.license h3 { font-size: 21px; margin-bottom: 8px; }
.license p { color: var(--ink-soft); }
@media (max-width: 600px) { .license { grid-template-columns: 1fr; padding: 22px; } .license-mark { justify-self: start; } }

.case { display: grid; gap: 18px; padding-block: 36px; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-head .tag { font-size: 13px; font-weight: 700; color: var(--sea); }
.case-head h3 { font-size: 22px; font-weight: 900; margin-top: 2px; }
.case-head p { color: var(--ink-soft); margin-top: 8px; max-width: 42em; }
.ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ba figure { margin: 0; }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.ba figcaption { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.ba figcaption b { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 12px; }
.ba figcaption b.after { background: var(--sea); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.infobox { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.section-alt .infobox { background: var(--paper); }
.infobox h3 { font-size: 20px; margin-bottom: 10px; }
.infobox p + p, .infobox p + ul, .infobox ul + p { margin-top: 10px; }
.infobox ul { margin: 0; padding-left: 1.2em; }
.infobox .tip { background: #fff6e8; border-left: 4px solid var(--call); padding: 12px 14px; border-radius: 4px; font-size: 15px; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.flow li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 16px; }
.flow li::before { content: counter(step); display: block; font-family: var(--f-num); font-size: 30px; font-weight: 700; color: var(--sea); line-height: 1; margin-bottom: 8px; }
.flow h3 { font-size: 17px; margin-bottom: 4px; }
.flow p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; } .flow li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 10px; } .flow li::before { grid-row: span 2; margin: 0; } }

.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-num); color: var(--sea); font-size: 22px; margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--sea); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px 1.9em; color: var(--ink-soft); }

/* ---------- 会社概要 ---------- */
.info-table { width: 100%; max-width: 860px; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.section-alt .info-table { background: var(--paper); }
.info-table th, .info-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 11em; background: var(--sea-pale); color: var(--sea); font-weight: 700; white-space: nowrap; }
.info-table td small { display: block; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 600px) { .info-table th, .info-table td { display: block; width: auto; padding: 10px 16px; } .info-table th { border-bottom: 0; padding-bottom: 4px; } }
.history { list-style: none; margin: 0; padding: 0; max-width: 860px; border-left: 3px solid var(--sea); }
.history li { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 4px 20px; padding: 0 0 22px 24px; position: relative; }
.history li::before { content: ""; position: absolute; left: -8px; top: 9px; width: 13px; height: 13px; border-radius: 50%; background: var(--card); border: 3px solid var(--sea); }
.history time { font-family: var(--f-display); font-weight: 700; color: var(--sea); }
@media (max-width: 600px) { .history li { grid-template-columns: 1fr; } }

/* ---------- 施工事例一覧 ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { font: inherit; font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .work-list { grid-template-columns: 1fr; } }
.work-list li[hidden] { display: none; }
.work-card { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.work-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.work-card .body { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-card .tags span { font-size: 12px; font-weight: 700; color: var(--sea); background: var(--sea-pale); padding: 2px 8px; border-radius: 3px; }
.work-card .tags span.pub { color: #fff; background: var(--ink); }
.work-card h3 { font-size: 18px; line-height: 1.5; }
.work-card p { font-size: 15px; color: var(--ink-soft); }
.work-card .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--sea); font-size: 15px; }
a.work-card:hover { border-color: var(--sea); }
a.work-card:hover .more { text-decoration: underline; }

/* ---------- お問い合わせ ---------- */
.contact-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .contact-ways { grid-template-columns: 1fr; } }
.way { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.way.main { border: 2px solid var(--call); }
.way .way-label { font-size: 13px; font-weight: 700; color: var(--sea); letter-spacing: 0.1em; }
.way.main .way-label { color: var(--call); }
.way h2 { font-size: 22px; font-weight: 900; }
.way p { color: var(--ink-soft); font-size: 15px; }
.way .btn { margin-top: auto; }
.way .tel-big { font-family: var(--f-num); font-size: 38px; font-weight: 700; color: var(--call); line-height: 1.1; text-decoration: none; }
.way .qr { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.way .qr img { width: 96px; height: 96px; image-rendering: pixelated; }
@media (max-width: 860px) { .way .qr { display: none; } }
.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 760px; }
.form-wrap iframe { display: block; width: 100%; height: 1900px; border: 0; }
.form-note { max-width: 760px; margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
