@charset "utf-8";
/* =========================================================
   宇佐美塗装工業株式会社 — デモサイト共通スタイル
   配色は 13_Web構成.md の指定どおり。色相を変更しないこと。
   ========================================================= */

:root{
  --base:        #FFFFFF;
  --base-sub:    #F2F7F7;
  --navy:        #0A4260;
  --navy-light:  #0D557D;
  --accent:      #6FC5C6;  /* 面のみ。文字色に使わない */
  --accent-deep: #338182;
  --text:        #1A1A1A;
  --text-sub:    #595959;
  --wood:        #EDE6DA;
  /* --accent は面（ボタンの地・帯・下線）専用。文字色には使わない。
     濃紺の面に載せる文字は白または #CFE0E6 とする。 */

  --shadow:      0 2px 12px rgba(10,66,96,.08);
  --shadow-lift: 0 8px 24px rgba(10,66,96,.16);

  --sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --sec-y: 120px;      /* セクション上下余白（PC） */
  --measure: 42em;     /* 本文1行の最大長 ≒42文字 */
  --wrap: 1120px;
  --header-h: 84px;
}

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

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.9;
  color:var(--text);
  background:var(--base);
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; display:block; }

a{ color:var(--accent-deep); }
a:hover{ color:var(--navy); }

/* フォーカスリングは消さない（必須要件） */
:focus-visible{
  outline:3px solid var(--accent-deep);
  outline-offset:2px;
  border-radius:2px;
}

h1,h2,h3,h4{
  font-family:var(--mincho);
  font-weight:600;
  line-height:1.45;
  color:var(--navy-light);
  margin:0 0 .6em;
  letter-spacing:.02em;
}
h1{ font-size:44px; }
h2{ font-size:32px; }
h3{ font-size:22px; }

p{ margin:0 0 1.4em; max-width:var(--measure); }

.note{
  font-size:13px;
  line-height:1.75;
  color:var(--text-sub);
  margin:.5em 0 0;
  max-width:none;
}
.note--img{ margin:.5rem 0 0; }

.wrap{ width:min(100% - 48px, var(--wrap)); margin-inline:auto; }
.narrow{ width:min(100% - 48px, 780px); margin-inline:auto; }

.section{ padding-block:var(--sec-y); }
.section--sub{ background:var(--base-sub); }
.section--navy{ background:var(--navy); color:#fff; }
.section--navy h2,.section--navy h3{ color:#fff; }

.sec-head{ margin-bottom:56px; }
.sec-head .eyebrow{
  display:inline-block;
  font-size:13px;
  letter-spacing:.16em;
  color:var(--accent-deep);
  font-family:var(--sans);
  margin:0 0 12px;
  padding-bottom:6px;
  border-bottom:3px solid var(--accent);
}
.sec-head h2{ margin:0 0 .4em; }
.sec-head p{ margin:0; }

/* ---------- ボタン ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  min-height:56px; padding:14px 30px;
  font-family:var(--sans); font-size:16px; font-weight:700; line-height:1.4;
  text-decoration:none; border:2px solid transparent; border-radius:4px;
  cursor:pointer; text-align:center;
  transition:background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out, box-shadow .18s ease-out;
}
/* アクセント面 + 濃紺文字（5.4:1） */
.btn--primary{ background:var(--accent); color:var(--navy); border-color:var(--accent); }
.btn--primary:hover{ background:#8ad2d3; color:var(--navy); box-shadow:var(--shadow-lift); }

.btn--tel{ background:#fff; color:var(--navy); border-color:var(--navy); }
.btn--tel:hover{ background:var(--navy); color:#fff; }

.btn--ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.7); }
.btn--ghost:hover{ background:#fff; color:var(--navy); border-color:#fff; }

.btn--sm{ min-height:44px; padding:9px 18px; font-size:14px; }

.btn-row{ display:flex; flex-wrap:wrap; gap:16px; }
.btn-row--center{ justify-content:center; }

.btn .ico{ width:20px; height:20px; flex:0 0 auto; }

/* テキストリンク（矢印つき） */
.arrow-link{
  display:inline-flex; align-items:center; gap:.45em;
  font-size:15px; font-weight:700; text-decoration:none;
  color:var(--accent-deep);
  border-bottom:2px solid var(--accent);
  padding-bottom:2px;
  transition:color .18s ease-out, border-color .18s ease-out, gap .18s ease-out;
}
.arrow-link:hover{ color:var(--navy); border-color:var(--navy); gap:.8em; }
.arrow-link::after{ content:"→"; font-size:1.05em; line-height:1; }

/* ---------- ヘッダー ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:var(--navy);
  transition:background-color .3s ease-out, box-shadow .3s ease-out;
}
/* 半透明のみで表現する。backdrop-filter は固定ヘッダー全幅で毎フレーム
   背景を再合成するため、大きな画像と併用すると描画が破綻する。 */
.site-header.is-scrolled{
  background:rgba(10,66,96,.92);
  box-shadow:0 2px 14px rgba(0,0,0,.18);
}
.header-inner{
  width:min(100% - 40px, 1280px); margin-inline:auto;
  min-height:var(--header-h);
  display:flex; align-items:center; gap:24px;
  transition:min-height .3s ease-out;
}
.site-header.is-scrolled .header-inner{ min-height:64px; }

.brand{ display:flex; flex-direction:column; text-decoration:none; flex:0 0 auto; }
.site-header .brand__name{ font-size:17px; white-space:nowrap; }
.brand__name{ font-family:var(--mincho); font-size:20px; color:#fff; line-height:1.3; letter-spacing:.04em; }
.brand__sub{ font-size:11px; color:#CFE0E6; letter-spacing:.1em; }

.gnav{ margin-left:auto; }
.gnav ul{ display:flex; gap:20px; list-style:none; margin:0; padding:0; }
.gnav a{
  color:#fff; text-decoration:none; font-size:14px; font-weight:500;
  white-space:nowrap;                 /* ナビ項目を折り返さない */
  padding:6px 0; border-bottom:2px solid transparent;
  transition:border-color .18s ease-out, color .18s ease-out;
}
.gnav a:hover{ color:#fff; border-bottom-color:var(--accent); }
.gnav a[aria-current="page"]{ border-bottom-color:var(--accent); }

.header-cta{ display:flex; gap:10px; flex:0 0 auto; align-items:center; margin-left:20px; }
.header-cta .btn{ white-space:nowrap; font-size:13px; padding:9px 14px; }
.header-tel{
  display:flex; flex-direction:column; align-items:flex-start;
  text-decoration:none; color:#fff; line-height:1.25; padding:4px 6px;
}
.header-tel small{ font-size:11px; color:#CFE0E6; letter-spacing:.06em; }
.header-tel strong{ font-family:var(--mincho); font-size:20px; letter-spacing:.03em; }
.header-tel:hover{ color:#fff; }
.header-tel:hover strong{ text-decoration:underline; }

/* ヘッダー分の余白 */
main{ padding-top:var(--header-h); }

/* ---------- ヒーロー ---------- */
.hero{ position:relative; overflow:hidden; background:var(--navy); }
.hero__bg{
  position:absolute; inset:-8% 0 -8% 0;
  width:100%; height:116%; object-fit:cover;
  z-index:0;
}
.hero__veil{ position:absolute; inset:0; background:var(--navy); opacity:.7; z-index:1; }
.hero__inner{
  position:relative; z-index:2;
  width:min(100% - 48px, var(--wrap)); margin-inline:auto;
  padding-block:132px; color:#fff;
}
.hero h1{ color:#fff; font-size:44px; margin:0 0 24px; text-shadow:0 2px 18px rgba(0,0,0,.35); }
.hero__lead{ color:#fff; font-size:17px; max-width:34em; margin:0 0 36px; text-shadow:0 1px 12px rgba(0,0,0,.35); }
.hero .btn-row{ margin-top:8px; }

/* 下層ページヒーロー */
.page-hero{ position:relative; overflow:hidden; background:var(--navy); }
.page-hero__bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.page-hero__veil{ position:absolute; inset:0; background:var(--navy); opacity:.72; z-index:1; }
.page-hero__inner{
  position:relative; z-index:2;
  width:min(100% - 48px, var(--wrap)); margin-inline:auto;
  padding-block:84px; color:#fff;
}
.page-hero h1{ color:#fff; margin:0 0 12px; font-size:40px; }
.page-hero p{ color:#fff; margin:0; opacity:.94; }

.breadcrumb{ font-size:13px; color:var(--text-sub); padding:14px 0 0; }
.breadcrumb ol{ display:flex; flex-wrap:wrap; gap:.5em; list-style:none; margin:0; padding:0; }
.breadcrumb li::after{ content:"／"; margin-left:.5em; color:#9aa8ad; }
.breadcrumb li:last-child::after{ content:""; }

/* ---------- カード共通 ---------- */
.grid{ display:grid; gap:24px; }
.grid--2{ grid-template-columns:repeat(2,1fr); }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:#fff; border:1px solid #e2ebee; border-radius:4px;
  box-shadow:var(--shadow); padding:28px 24px 24px;
  display:flex; flex-direction:column;
}
.card h3{ font-size:20px; margin:0 0 .5em; }
.card p{ font-size:15px; line-height:1.85; margin:0 0 1.2em; max-width:none; }
.card .arrow-link{ margin-top:auto; align-self:flex-start; }
.card__icon{ width:52px; height:52px; margin-bottom:16px; }

/* 症状カード */
.symptom-card .card__voice{
  font-family:var(--mincho); font-size:19px; color:var(--navy);
  line-height:1.6; margin:0 0 .7em; max-width:none;
}
.symptom-card .card__to{
  font-size:13px; color:var(--accent-deep); font-weight:700;
  letter-spacing:.04em; margin:0 0 1.1em; max-width:none;
}

/* サービスカード（画像つき） */
.svc-card{ padding:0; overflow:hidden; }
.svc-card__media{ overflow:hidden; }
.svc-card__media img{ width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .6s ease-out; }
.svc-card:hover .svc-card__media img{ transform:scale(1.05); }
.svc-card__body{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.svc-card__body .note{ margin-top:-.4em; margin-bottom:.8em; }

/* ---------- 施工事例 ---------- */
.work-card{ padding:0; overflow:hidden; }
.work-card__tag{
  display:inline-block; font-size:13px; font-weight:700; color:var(--navy);
  background:var(--accent); padding:5px 12px; border-radius:3px; margin:0 0 12px;
}
.ba{ display:grid; grid-template-columns:1fr 1fr; gap:2px; background:#e2ebee; }
.ba figure{ margin:0; position:relative; overflow:hidden; }
.ba img{ width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .6s ease-out; }
.work-card:hover .ba img{ transform:scale(1.05); }
.ba figcaption{
  position:absolute; left:0; top:0;
  background:rgba(10,66,96,.88); color:#fff;
  font-size:12px; font-weight:700; letter-spacing:.08em;
  padding:4px 10px;
}
.work-card__body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.work-card__body h3{ font-size:19px; }
.work-card__body p{ font-size:15px; }

/* ---------- 選ばれる理由 ---------- */
.reason{ text-align:center; }
.reason__icon{ width:56px; height:56px; margin:0 auto 18px; }
.reason h3{ font-size:20px; }
.reason p{ font-size:15px; margin-inline:auto; max-width:22em; }
.count{ font-family:var(--mincho); font-size:64px; line-height:1; color:var(--navy); display:block; }
.count-unit{ font-family:var(--mincho); font-size:24px; color:var(--navy); }

/* ---------- 流れ（タイムライン） ---------- */
.flow-list{ list-style:none; margin:0; padding:0; position:relative; }
.flow-list::before{
  content:""; position:absolute; left:27px; top:12px; bottom:12px;
  width:2px; background:var(--accent);
}
.flow-list li{ position:relative; padding:0 0 44px 76px; }
.flow-list li:last-child{ padding-bottom:0; }
.flow-list .step-no{
  position:absolute; left:0; top:0;
  width:56px; height:56px; border-radius:50%;
  background:var(--navy); color:#fff;
  display:grid; place-items:center;
  font-family:var(--mincho); font-size:20px;
}
.flow-list h3{ margin:.5em 0 .4em; }
.flow-list p{ font-size:15px; margin:0; }

/* ---------- FAQ ---------- */
.faq{ border-top:1px solid #d8e3e7; }
.faq__item{ border-bottom:1px solid #d8e3e7; }
.faq__q{
  width:100%; display:flex; align-items:flex-start; gap:14px;
  background:none; border:0; cursor:pointer;
  font-family:var(--mincho); font-size:19px; color:var(--navy-light);
  text-align:left; padding:24px 4px; line-height:1.6;
}
.faq__q::before{ content:"Q"; font-size:16px; color:var(--accent-deep); flex:0 0 auto; padding-top:.2em; }
.faq__q .mark{
  margin-left:auto; flex:0 0 auto; width:22px; height:22px; position:relative; align-self:center;
}
.faq__q .mark::before,.faq__q .mark::after{
  content:""; position:absolute; inset:50% 0 auto 0; height:2px; background:var(--navy-light);
  transition:transform .2s ease-out;
}
.faq__q .mark::after{ transform:rotate(90deg); }
.faq__q[aria-expanded="true"] .mark::after{ transform:rotate(0deg); }
.faq__a{ overflow:hidden; }
.faq__a > div{ padding:0 4px 26px 36px; }
.faq__a p{ font-size:16px; margin:0; }
.faq__a[hidden]{ display:none; }

/* ---------- 会社概要テーブル ---------- */
.table{ width:100%; border-collapse:collapse; border-top:1px solid #d8e3e7; }
.table th,.table td{
  text-align:left; vertical-align:top;
  padding:20px 16px; border-bottom:1px solid #d8e3e7; font-size:16px; line-height:1.8;
}
.table th{
  width:220px; font-weight:700; color:var(--navy-light);
  background:var(--base-sub); font-family:var(--sans);
}

/* ---------- フォーム ---------- */
.form{ display:grid; gap:26px; }
.field label{ display:block; font-weight:700; font-size:15px; color:var(--navy-light); margin-bottom:8px; }
.req{
  font-size:12px; color:#fff; background:var(--accent-deep);
  padding:2px 8px; border-radius:3px; margin-left:8px; vertical-align:1px;
}
.field input,.field select,.field textarea{
  width:100%; font-family:var(--sans); font-size:16px; line-height:1.7; color:var(--text);
  padding:14px 16px; border:1px solid #b9c9ce; border-radius:4px; background:#fff;
  transition:border-color .18s ease-out, box-shadow .18s ease-out;
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--accent-deep); box-shadow:0 0 0 3px rgba(51,129,130,.15);
}
.field textarea{ min-height:170px; resize:vertical; }
.field .hint{ font-size:13px; color:var(--text-sub); margin:8px 0 0; }
.file-dummy{
  border:2px dashed #b9c9ce; border-radius:4px; padding:26px; text-align:center;
  color:var(--text-sub); font-size:14px; background:var(--base-sub);
}

.callout{
  background:var(--base-sub); border-left:4px solid var(--accent);
  padding:20px 24px; border-radius:0 4px 4px 0; margin:0 0 40px;
}
.callout p{ margin:0; font-size:15px; max-width:none; }

/* ---------- CTA帯 ---------- */
.cta-band{ position:relative; overflow:hidden; }
.cta-band__bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.cta-band__veil{ position:absolute; inset:0; background:var(--navy); opacity:.82; z-index:1; }
.cta-band__inner{
  position:relative; z-index:2; text-align:center; color:#fff;
  width:min(100% - 48px, 900px); margin-inline:auto; padding-block:84px;
}
.cta-band h2{ color:#fff; margin:0 0 14px; }
.cta-band p{ margin:0 auto 32px; max-width:38em; }

/* ---------- フッター ---------- */
.site-footer{ background:var(--navy); color:#fff; padding-block:64px 32px; }
.site-footer a{ color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; }
.site-footer .brand__name{ font-size:22px; }
.footer-info{ font-size:15px; line-height:2; margin:18px 0 0; max-width:none; }
.footer-info dt{ font-size:12px; color:#CFE0E6; letter-spacing:.08em; margin-top:12px; }
.footer-info dd{ margin:0; }
.footer-info a{ text-decoration:underline; }
.site-footer h2{ font-size:15px; font-family:var(--sans); color:#CFE0E6; letter-spacing:.1em; margin:0 0 14px; }
.footer-nav ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer-nav a{ font-size:15px; text-decoration:none; }
.footer-nav a:hover{ text-decoration:underline; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.22);
  margin-top:48px; padding-top:24px;
}
.footer-bottom .demo-note{
  font-size:13px; line-height:1.85; color:#cfe0e6; margin:0 0 14px; max-width:none;
}
.copyright{ font-size:12px; color:#cfe0e6; margin:0; }

/* ---------- 白木ブロック（主役層） ---------- */
.shiraki-block{ background:var(--wood); }
.shiraki-block .sec-head h2{ color:var(--navy); }
.shiraki-stage{
  position:relative; width:min(100%, 900px); margin:0 auto;
  aspect-ratio:4/3; border-radius:4px; overflow:hidden;
  box-shadow:0 6px 28px rgba(10,66,96,.18); background:var(--wood);
}
.shiraki-stage__img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
}
.shiraki-stage__canvas{
  position:absolute; inset:0; width:100%; height:100%; z-index:1;
  touch-action:pan-y;                 /* 縦スクロールを奪わない */
  cursor:crosshair;
  transition:opacity .9s ease-out;
}
.shiraki-hint{
  position:absolute; z-index:2; left:50%; bottom:18px; transform:translateX(-50%);
  background:rgba(10,66,96,.86); color:#fff;
  font-size:13px; letter-spacing:.04em; padding:8px 18px; border-radius:999px;
  pointer-events:none; transition:opacity .4s ease-out; white-space:nowrap;
}
.shiraki-stage.is-touched .shiraki-hint{ opacity:0; }

.shiraki-controls{
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  margin-top:22px;
}
.shiraki-caption{ text-align:center; }

/* reduced-motion 時の静止画表示（左＝洗浄前／右＝洗浄後） */
.shiraki-static{ display:none; width:min(100%,900px); margin:0 auto; }
.shiraki-static .pair{ display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.shiraki-static figure{ margin:0; }
.shiraki-static img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:4px; }
.shiraki-static .before img{ filter:sepia(.45) saturate(.85) brightness(.72) contrast(1.08); }
.shiraki-static figcaption{
  text-align:center; font-size:14px; font-weight:700; color:var(--navy); padding-top:10px;
}
.shiraki-root.is-static .shiraki-stage,
.shiraki-root.is-static .shiraki-controls{ display:none; }
.shiraki-root.is-static .shiraki-static{ display:block; }

.shiraki-points{ list-style:none; margin:28px auto 0; padding:0; max-width:640px; }
.shiraki-points li{
  position:relative; padding-left:30px; margin-bottom:12px;
  font-size:16px; line-height:1.85;
}
.shiraki-points li::before{
  content:""; position:absolute; left:0; top:.62em;
  width:14px; height:3px; background:var(--accent);
}

/* ---------- 基礎層アニメーション ----------
   .reveal を隠すのは、JSがアニメーションを行うと確定したときだけ（<head>の即時スクリプトが
   .js-anim を付与する）。JSが動かない・CDNが落ちた場合でも本文が消えないようにするため。 */
.js-anim .reveal{ opacity:0; transform:translateY(28px); }
.no-motion .reveal, .is-revealed{ opacity:1 !important; transform:none !important; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; }
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;
  }
}

/* ---------- レスポンシブ（縦スクロールが破綻しない程度） ---------- */
@media (max-width:1080px){
  .gnav ul{ gap:14px; }
  .gnav a{ font-size:14px; }
  .header-tel strong{ font-size:17px; }
}
@media (max-width:900px){
  :root{ --sec-y:72px; --header-h:auto; }
  .header-inner{ flex-wrap:wrap; padding-block:12px; gap:12px; }
  .gnav{ order:3; width:100%; margin-left:0; }
  .gnav ul{ flex-wrap:wrap; gap:12px 18px; }
  .header-cta{ margin-left:auto; }
  main{ padding-top:0; }
  .site-header{ position:static; }
  h1{ font-size:32px; }
  h2{ font-size:26px; }
  h3{ font-size:20px; }
  .hero h1{ font-size:32px; }
  .hero__inner{ padding-block:72px; }
  .grid--3,.grid--4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .table th{ width:150px; }
}
@media (max-width:640px){
  body{ font-size:16px; }
  .grid--2,.grid--3,.grid--4{ grid-template-columns:1fr; }
  .count{ font-size:52px; }
  .flow-list li{ padding-left:64px; }
  .table th,.table td{ display:block; width:100%; border-bottom:0; }
  .table td{ border-bottom:1px solid #d8e3e7; }
}
