@charset "utf-8";
/* =========================================================
   有限会社田口板金 デモサイト
   配色・タイポグラフィ・レイアウトは 13_Web構成.md §4 に準拠
   ========================================================= */

:root{
  /* 配色（13_Web構成.md §4-2） */
  --c-base:      #FFFFFF;
  --c-surface:   #F6F3F1;
  --c-dark:      #2A2422;
  --c-text:      #1A1A1A;
  --c-muted:     #595959;
  --c-accent:    #CC0606;
  --c-accent-dk: #9E0505;
  --c-border:    #DCD6D2;

  /* タイポグラフィ */
  --f-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --f-sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;

  /* レイアウト */
  --w-container: 1120px;
  --pad-x: 24px;
  --sec-y: 96px;
  --radius: 4px;

  /* 速度（13_Web構成.md §6） */
  --t-fast: 180ms;
  --t-base: 500ms;
  --e-out: cubic-bezier(.22,.61,.36,1);

  --header-h: 88px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 16px); }

body{
  margin:0;
  background:var(--c-base);
  color:var(--c-text);
  font-family:var(--f-sans);
  font-size:17px;          /* 13_Web構成.md §4-3：下げないこと */
  font-weight:400;
  line-height:1.9;         /* 同上 */
  -webkit-text-size-adjust:100%;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:var(--c-accent-dk); }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--c-accent);
  outline-offset:2px;
}

h1,h2,h3,h4{ font-family:var(--f-serif); font-weight:700; line-height:1.4; margin:0; }
h1{ font-size:42px; }
h2{ font-size:32px; }
h3{ font-size:22px; }
p{ margin:0 0 1.2em; }
p:last-child{ margin-bottom:0; }

.container{ width:100%; max-width:var(--w-container); margin-inline:auto; padding-inline:var(--pad-x); }
.section{ padding-block:var(--sec-y); }
.section--surface{ background:var(--c-surface); }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- 見出し（赤の下線はここだけ） ---------- */
.sec-head{ margin-bottom:48px; }
.sec-head__title{ position:relative; padding-bottom:16px; }
.sec-head__title::after{
  content:""; position:absolute; left:0; bottom:0;
  width:56px; height:3px; background:var(--c-accent);
}
.sec-head__lead{ margin-top:20px; max-width:46em; color:var(--c-text); }
.sec-head--center{ text-align:center; }
.sec-head--center .sec-head__title::after{ left:50%; transform:translateX(-50%); }
.sec-head--center .sec-head__lead{ margin-inline:auto; }

.note{ font-size:14px; line-height:1.7; color:var(--c-muted); margin:8px 0 0; }
.note--img{ margin-top:8px; }

/* ---------- ボタン ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:56px; padding:12px 26px;
  border-radius:var(--radius); border:1px solid transparent;
  font-family:var(--f-sans); font-size:17px; font-weight:700; line-height:1.4;
  text-decoration:none; cursor:pointer;
  transition:background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn--tel{ background:var(--c-accent); color:#fff; }
.btn--tel:hover{ background:var(--c-accent-dk); }
.btn--mail{ background:#fff; color:var(--c-text); border-color:var(--c-text); }
.btn--mail:hover{ background:var(--c-text); color:#fff; }
.btn--ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.75); }
.btn--ghost:hover{ background:#fff; color:var(--c-dark); }
.btn--lg{ min-height:76px; font-size:20px; padding:16px 32px; }
.btn--block{ width:100%; }
.btn__num{ font-size:26px; font-weight:700; letter-spacing:.02em; }

.textlink{
  display:inline-flex; align-items:center; gap:8px;
  min-height:44px; font-weight:700; color:var(--c-accent-dk); text-decoration:none;
}
.textlink:hover{ text-decoration:underline; }
.textlink::after{ content:"\2192"; font-size:1.1em; }

/* ---------- ヘッダー ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:var(--c-dark);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.site-header__inner{
  display:flex; align-items:center; gap:24px;
  height:var(--header-h);
  transition:height var(--t-base) var(--e-out);
}
.site-header.is-shrunk{ background:rgba(42,36,34,.94); backdrop-filter:blur(6px); }
.site-header.is-shrunk .site-header__inner{ height:64px; }

.logo{ font-family:var(--f-serif); font-weight:700; font-size:22px; color:#fff; text-decoration:none; white-space:nowrap; }
.gnav{ margin-left:auto; }
.gnav__list{ display:flex; gap:22px; list-style:none; margin:0; padding:0; }
.gnav__link{
  display:inline-block; padding:9px 2px; color:#fff; font-size:15px;
  text-decoration:none; border-bottom:2px solid transparent;
}
.gnav__link:hover,.gnav__link[aria-current="page"]{ border-bottom-color:var(--c-accent); }
.header-cta{ display:flex; gap:10px; }
.header-cta .btn{ min-height:44px; padding:8px 16px; font-size:15px; }
.header-cta .btn__num{ font-size:17px; }

.page-body{ padding-top:var(--header-h); }

/* ---------- ヒーロー（トップ） ---------- */
.hero{ position:relative; color:#fff; overflow:hidden; }
.hero__media{ position:absolute; inset:0; }
.hero__media img{ width:100%; height:100%; object-fit:cover; }
.hero__scrim{
  position:absolute; inset:0;
  /* 文字が乗る左〜中央は濃度を落とさない（白文字でAAを満たすため） */
  background:linear-gradient(100deg,
    rgba(42,36,34,.92) 0%,
    rgba(42,36,34,.86) 55%,
    rgba(42,36,34,.72) 78%,
    rgba(42,36,34,.50) 100%);
}
.hero__inner{ position:relative; padding-block:112px; }
.hero__title{ font-size:42px; max-width:17em; color:#fff; }
.hero__sub{ margin-top:24px; max-width:38em; font-size:17px; }
.hero__sub span{ white-space:nowrap; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:36px; }

/* ---------- 下層ページヘッダー ---------- */
.page-head{ background:var(--c-surface); border-bottom:1px solid var(--c-border); padding-block:64px; }
.page-head__crumb{ font-size:14px; color:var(--c-muted); margin:0 0 12px; }
.page-head__crumb a{ color:var(--c-muted); }
.page-head__lead{ margin-top:20px; max-width:46em; }

/* ---------- 症状カード ---------- */
.symptom-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.symptom-card{
  display:flex; flex-direction:column; gap:12px;
  padding:28px 24px 24px;
  background:#fff; border:1px solid var(--c-border); border-radius:var(--radius);
  color:var(--c-text); text-decoration:none;
  transition:border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.symptom-card:hover{ border-color:var(--c-accent); box-shadow:0 6px 20px rgba(42,36,34,.10); }
.symptom-card__icon{ width:48px; height:48px; }
.symptom-card__title{ font-size:22px; }
.symptom-card__text{ font-size:15px; line-height:1.8; color:var(--c-muted); margin:0; }
.symptom-card__more{ margin-top:auto; padding-top:8px; font-size:15px; font-weight:700; color:var(--c-accent-dk); }

/* ---------- 比較スライダー（主役層） ---------- */
.ba-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:32px; }
.ba{ margin:0; }
.ba__frame{
  position:relative; overflow:hidden; border-radius:var(--radius);
  border:1px solid var(--c-border); background:var(--c-surface);
  aspect-ratio:4/3; touch-action:pan-y; user-select:none; cursor:ew-resize;
}
.ba__layer{ position:absolute; inset:0; }
.ba__layer img{ width:100%; height:100%; object-fit:cover; pointer-events:none; }
.ba__layer--before{ clip-path:inset(0 42% 0 0); will-change:clip-path; }
.ba__tag{
  position:absolute; top:12px; z-index:3;
  padding:5px 12px; border-radius:var(--radius);
  background:rgba(42,36,34,.88); color:#fff;
  font-size:14px; font-weight:700; line-height:1.6; letter-spacing:.04em;
}
.ba__tag--before{ left:12px; }
.ba__tag--after{ right:12px; }
.ba__handle{
  position:absolute; top:0; bottom:0; left:42%; z-index:4;
  width:44px; margin-left:-22px;
  display:flex; align-items:center; justify-content:center;
  background:transparent; border:0; padding:0; cursor:ew-resize;
}
.ba__handle::before{
  content:""; position:absolute; top:0; bottom:0; left:50%;
  width:3px; margin-left:-1.5px; background:#fff;
  box-shadow:0 0 0 1px rgba(42,36,34,.35);
}
.ba__grip{
  position:relative; width:44px; height:44px; border-radius:50%;
  background:#fff; box-shadow:0 0 0 1px rgba(42,36,34,.35);
  display:flex; align-items:center; justify-content:center;
  color:var(--c-dark); font-size:15px; font-weight:700; line-height:1;
}
.ba__caption{ margin-top:10px; }
.ba__caption strong{ display:block; font-family:var(--f-serif); font-size:18px; }

/* ---------- 工事メニュー ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.service-card{
  display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--c-border); border-radius:var(--radius); overflow:hidden;
}
.service-card__media{ overflow:hidden; aspect-ratio:4/3; }
.service-card__media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 600ms var(--e-out);   /* 装飾層：ホバー1.05倍 */
}
.service-card:hover .service-card__media img{ transform:scale(1.05); }
.service-card__body{ display:flex; flex-direction:column; gap:10px; padding:22px 20px 20px; flex:1; }
.service-card__title{ font-size:22px; }
.service-card__text{ font-size:15px; line-height:1.8; color:var(--c-muted); margin:0; }
.service-card__body .note{ margin-top:0; }
.service-card__body .textlink{ margin-top:auto; }

/* ---------- 理由3点 ---------- */
.reason-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; list-style:none; margin:0; padding:0; }
.reason{ padding:28px 24px; background:#fff; border:1px solid var(--c-border); border-radius:var(--radius); }
.reason__num{ font-family:var(--f-serif); font-size:15px; font-weight:700; color:var(--c-accent); letter-spacing:.12em; }
.reason__title{ margin:6px 0 10px; font-size:22px; }
.reason__text{ font-size:15px; line-height:1.8; color:var(--c-muted); margin:0; }

/* ---------- 56枚 ---------- */
.count{ display:flex; align-items:baseline; justify-content:center; gap:10px; }
.count__num{ font-family:var(--f-serif); font-weight:700; font-size:96px; line-height:1; color:var(--c-accent); }
.count__unit{ font-family:var(--f-serif); font-weight:700; font-size:28px; }

/* ---------- 会社情報テーブル ---------- */
.info-table{ width:100%; border-collapse:collapse; border-top:1px solid var(--c-border); }
.info-table th,.info-table td{
  padding:18px 8px; text-align:left; vertical-align:top;
  border-bottom:1px solid var(--c-border); font-size:17px; line-height:1.8;
}
.info-table th{ width:12em; font-weight:700; white-space:nowrap; }
.info-table td a{ font-weight:700; }

/* ---------- 交互レイアウト（service / company） ---------- */
.alt{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.alt + .alt{ margin-top:80px; }
.alt--rev .alt__media{ order:2; }
.alt__media img{ width:100%; border-radius:var(--radius); border:1px solid var(--c-border); }
.alt__title{ margin-bottom:16px; }
.alt__list{ margin:0 0 20px; padding-left:1.2em; }
.alt__list li{ margin-bottom:6px; }

/* ---------- ステップ ---------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; list-style:none; margin:0; padding:0; }
.step{ padding:26px 22px; background:#fff; border:1px solid var(--c-border); border-radius:var(--radius); }
.step__num{ font-family:var(--f-serif); font-size:15px; font-weight:700; color:var(--c-accent); letter-spacing:.12em; }
.step__title{ margin:6px 0 10px; font-size:22px; }
.step__text{ font-size:15px; line-height:1.8; color:var(--c-muted); margin:0; }

/* ---------- 絞り込みタブ（works） ---------- */
.tabs{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:36px; }
.tab{
  min-height:44px; padding:8px 22px;
  background:#fff; color:var(--c-text);
  border:1px solid var(--c-border); border-radius:var(--radius);
  font-family:var(--f-sans); font-size:16px; font-weight:700; cursor:pointer;
  transition:background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.tab:hover{ border-color:var(--c-accent); }
.tab[aria-selected="true"]{ background:var(--c-dark); border-color:var(--c-dark); color:#fff; }
.works-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:32px; }
.works-card{ background:#fff; border:1px solid var(--c-border); border-radius:var(--radius); padding:20px; }
.works-card[hidden]{ display:none; }
.works-card__meta{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.badge{
  display:inline-block; padding:3px 10px; border-radius:var(--radius);
  background:var(--c-surface); border:1px solid var(--c-border);
  font-size:14px; font-weight:700; color:var(--c-text);
}
.works-more{
  margin-top:32px; padding:32px 24px; text-align:center;
  background:var(--c-surface); border:1px dashed var(--c-border); border-radius:var(--radius);
}

/* ---------- 症状ブロック（trouble） ---------- */
.trouble-block{ padding-block:var(--sec-y); border-top:1px solid var(--c-border); }
.trouble-block:first-of-type{ border-top:0; }
.trouble-block__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:32px; }
.trouble-col{ padding:26px 22px; background:#fff; border:1px solid var(--c-border); border-radius:var(--radius); }
.trouble-col__label{ font-size:14px; font-weight:700; color:var(--c-accent); letter-spacing:.06em; }
.trouble-col__title{ margin:4px 0 12px; font-size:22px; }
.trouble-col ul{ margin:0; padding-left:1.2em; font-size:15px; line-height:1.9; color:var(--c-muted); }
.trouble-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:28px; }
.callout{
  margin-top:24px; padding:28px 26px;
  background:#fff; border:1px solid var(--c-accent); border-left-width:5px; border-radius:var(--radius);
}
.callout__title{ font-size:22px; margin-bottom:12px; color:var(--c-accent-dk); }

/* ---------- フォーム ---------- */
.form{ max-width:720px; }
.field{ margin-bottom:26px; }
.field__label{ display:block; font-weight:700; margin-bottom:8px; }
.field__req{ margin-left:8px; padding:2px 8px; border-radius:var(--radius); background:var(--c-accent); color:#fff; font-size:13px; font-weight:700; }
.field__help{ font-size:14px; line-height:1.7; color:var(--c-muted); margin:8px 0 0; }
.field input,.field select,.field textarea{
  width:100%; min-height:56px; padding:14px 16px;
  font-family:var(--f-sans); font-size:17px; line-height:1.7; color:var(--c-text);
  background:#fff; border:1px solid var(--c-border); border-radius:var(--radius);
}
.field textarea{ min-height:160px; resize:vertical; }
.field input:hover,.field select:hover,.field textarea:hover{ border-color:var(--c-muted); }
.form__done{
  margin-top:28px; padding:32px 26px; text-align:center;
  background:var(--c-surface); border:1px solid var(--c-border); border-radius:var(--radius);
}
.form__done[hidden]{ display:none; }
.check-svg{ width:72px; height:72px; margin:0 auto 12px; display:block; }
.check-svg circle,.check-svg path{ fill:none; stroke:var(--c-accent); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.check-svg circle{ stroke-dasharray:264; stroke-dashoffset:264; animation:draw 700ms var(--e-out) forwards; }
.check-svg path{ stroke-dasharray:60; stroke-dashoffset:60; animation:draw 400ms var(--e-out) 500ms forwards; }
@keyframes draw{ to{ stroke-dashoffset:0; } }

/* ---------- 地図枠 ---------- */
.map-frame{
  display:flex; align-items:center; justify-content:center;
  min-height:280px; padding:32px; text-align:center;
  background:var(--c-surface); border:1px dashed var(--c-border); border-radius:var(--radius);
  color:var(--c-muted); font-size:15px;
}

/* ---------- 問い合わせ帯 ---------- */
.cta-band{ position:relative; overflow:hidden; color:#fff; }
.cta-band__media{ position:absolute; inset:0; }
.cta-band__media img{ width:100%; height:100%; object-fit:cover; }
.cta-band__scrim{ position:absolute; inset:0; background:rgba(42,36,34,.88); }
.cta-band__inner{ position:relative; padding-block:var(--sec-y); text-align:center; }
.cta-band__title{ font-size:32px; color:#fff; }
.cta-band__lead{ margin-top:18px; }
.cta-band__tels{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin-top:32px; }
.cta-band__tels .btn{ min-width:320px; }
.cta-band__mail{ margin-top:14px; }
.cta-band .note{ color:rgba(255,255,255,.82); margin-top:20px; }

/* ---------- フッター ---------- */
.site-footer{ background:var(--c-dark); color:#fff; padding-block:64px 40px; }
.site-footer a{ color:#fff; }
.footer-top{ display:grid; grid-template-columns:1.2fr 1fr; gap:48px; }
.footer-brand__name{ font-family:var(--f-serif); font-size:22px; font-weight:700; }
.footer-brand p{ font-size:15px; line-height:1.9; margin:12px 0 0; color:rgba(255,255,255,.86); }
.footer-nav__list{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px 24px; list-style:none; margin:0; padding:0; }
.footer-nav__list a{ display:inline-block; min-height:44px; line-height:44px; font-size:15px; text-decoration:none; }
.footer-nav__list a:hover{ text-decoration:underline; }
.footer-disclaimer{
  margin-top:48px; padding:20px 22px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.18); border-radius:var(--radius);
  font-size:14px; line-height:1.9; color:rgba(255,255,255,.92);
}
.footer-copy{ margin-top:24px; font-size:14px; color:rgba(255,255,255,.72); }

/* ---------- 追従バー（768px未満） ---------- */
.sticky-bar{ display:none; }

/* ---------- 基礎層アニメーションの初期状態 ----------
   隠すのは html.js-anim が付いたときだけ。
   JS や CDN が読めなかった場合は最初から見えている状態になる */
.js-anim .js-reveal{ opacity:0; transform:translateY(28px); }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width:1024px){
  :root{ --sec-y:72px; }
  .symptom-grid,.service-grid{ grid-template-columns:repeat(2,1fr); }
  .reason-list,.steps,.trouble-block__grid{ grid-template-columns:1fr; }
  .gnav{ display:none; }
  .hero__title{ font-size:34px; }
}
@media (max-width:768px){
  :root{ --sec-y:56px; --header-h:64px; }
  h1{ font-size:28px; } h2{ font-size:24px; } h3{ font-size:20px; }
  .hero__title{ font-size:28px; }
  .hero__inner{ padding-block:64px; }
  .hero__scrim{ background:rgba(42,36,34,.84); }
  .header-cta .btn--mail{ display:none; }
  .symptom-grid,.service-grid,.ba-grid,.works-grid,.alt,.footer-top,.footer-nav__list{ grid-template-columns:1fr; }
  .alt--rev .alt__media{ order:0; }
  .alt{ gap:28px; }
  .count__num{ font-size:64px; }
  .cta-band__tels .btn{ min-width:0; width:100%; }
  .info-table th,.info-table td{ display:block; width:auto; padding:12px 0; }
  .info-table th{ border-bottom:0; padding-bottom:0; }
  /* 主役層は無効化しない。縦幅のみ圧縮する（13_Web構成.md §6） */
  .ba__frame{ aspect-ratio:3/2; }
  body{ padding-bottom:76px; }
  .sticky-bar{
    display:grid; grid-template-columns:1fr 1fr; gap:1px;
    position:fixed; inset:auto 0 0 0; z-index:99;
    background:var(--c-border);
  }
  .sticky-bar a{
    display:flex; align-items:center; justify-content:center; gap:8px;
    min-height:76px; padding:8px; text-decoration:none;
    font-size:16px; font-weight:700; line-height:1.4; text-align:center;
  }
  .sticky-bar__tel{ background:var(--c-accent); color:#fff; }
  .sticky-bar__mail{ background:var(--c-dark); color:#fff; }
}

/* =========================================================
   prefers-reduced-motion：全アニメーションを止める
   ========================================================= */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;
  }
  .js-anim .js-reveal{ opacity:1 !important; transform:none !important; }
  .check-svg circle,.check-svg path{ stroke-dashoffset:0 !important; }
}
