@charset "utf-8";

/* =========================================================
   有限会社 樹晃園 デモサイト
   配色は G5選定シートを正とする（色相は変更しない）
   ========================================================= */

:root{
  --white:     #FFFFFF;
  --beige:     #F5F0EA;
  --green-600: #2A7F24;
  --green-800: #1A5016;
  --green-50:  #ECF4EB;
  --brown-700: #6F4B2A;
  --brown-900: #38210B;
  --ink:       #302620;
  --ink-60:    #6B5F55;
  --line:      #E3DCD3;

  --wrap: 1120px;
  --pad: 40px;
  --sec: 96px;

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

  --header-h: 84px;
  --shadow-1: 0 1px 2px rgba(48,38,32,.06), 0 2px 8px rgba(48,38,32,.06);
  --shadow-2: 0 6px 14px rgba(48,38,32,.10), 0 14px 32px rgba(48,38,32,.10);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
/* html にも body にも overflow を指定しない。
   body の overflow-x:hidden は body 自身をスクロールコンテナに変えることがあり、
   position:fixed のヘッダーやスクロール連動の基準がずれる原因になる。
   横あふれは .hero / .phero / .band / .compare 側の overflow:hidden で抑えており、
   実測でも横スクロールは発生していない（375px / 1280px で確認） */
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}
body{
  margin:0;
  font-family:var(--sans);
  font-weight:400;
  font-size:17px;
  line-height:1.9;
  color:var(--ink);
  background:var(--white);
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
button{ font:inherit; color:inherit; }
h1,h2,h3,h4,p,figure,ul,ol,dl,dd,blockquote{ margin:0; }
ul,ol{ padding:0; list-style:none; }

/* フォーカスリングは消さない */
a:focus-visible,button:focus-visible,input:focus-visible,
textarea:focus-visible,select:focus-visible,summary:focus-visible,
[tabindex]:focus-visible{
  outline:2px solid var(--green-600);
  outline-offset:2px;
  border-radius:3px;
}

/* ---------- typography ---------- */
h1,h2,h3{ font-weight:700; line-height:1.4; }
h1{ font-size:40px; line-height:1.4; letter-spacing:.01em; }
h2{ font-size:30px; line-height:1.5; letter-spacing:.01em; }
h3{ font-size:21px; line-height:1.6; font-weight:500; }
p{ max-width:34em; }
small,.note{ font-size:15px; line-height:1.7; color:var(--ink-60); display:block; }

.lead{ font-size:19px; line-height:1.9; color:var(--ink); }
.year{ font-family:var(--mincho); font-size:36px; line-height:1.3; font-weight:700; color:var(--green-800); font-feature-settings:"palt"; }

/* 見出しの装飾線（緑はここに限定して使う） */
.h-deco{ position:relative; padding-left:18px; }
.h-deco::before{
  content:""; position:absolute; left:0; top:.22em; bottom:.22em;
  width:5px; border-radius:3px; background:var(--green-800);
}
.h-center{ text-align:center; padding-left:0; }
.h-center::before{
  left:50%; top:auto; bottom:-16px; transform:translateX(-50%);
  width:48px; height:5px;
}
.h-center + .lead{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- layout ---------- */
.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--pad); }
.section{ padding-block:var(--sec); }
.section--beige{ background:var(--beige); }
.section--green50{ background:var(--green-50); }
.sec-head{ margin-bottom:44px; }
.sec-head .lead{ margin-top:14px; }
.stack > * + *{ margin-top:16px; }

/* ---------- header ---------- */
.header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:var(--white);
  border-bottom:1px solid var(--line);
  transition:background-color .2s ease, box-shadow .2s ease;
}
.header__inner{
  height:var(--header-h);
  display:flex; align-items:center; gap:28px;
  transition:height .2s ease;
}
/* 仕様の「背景が半透明になる」は rgba で満たす。
   backdrop-filter はヘッダーを別の合成レイヤーに上げ、
   スクロール時に描画位置がずれる環境があったため使わない */
.header.is-compact{ background:rgba(255,255,255,.92); box-shadow:var(--shadow-1); }
.header.is-compact .header__inner{ height:64px; }

.logo{ display:flex; align-items:baseline; gap:10px; text-decoration:none; flex:0 0 auto; }
.logo__mark{ font-size:24px; font-weight:700; letter-spacing:.08em; color:var(--brown-900); }
.logo__sub{ font-size:13px; color:var(--ink-60); letter-spacing:.04em; }

.gnav{ margin-left:auto; }
.gnav__list{ display:flex; gap:26px; }
.gnav__list a{
  text-decoration:none; font-size:16px; font-weight:500; padding:6px 0;
  position:relative; white-space:nowrap;
}
.gnav__list a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--green-600); transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.gnav__list a:hover::after,.gnav__list a[aria-current="page"]::after{ transform:scaleX(1); }
.gnav__list a[aria-current="page"]{ color:var(--green-800); }

.header__cta{ display:flex; align-items:center; gap:14px; flex:0 0 auto; }
.header__tel{
  display:flex; align-items:center; gap:7px; text-decoration:none;
  font-weight:700; font-size:19px; color:var(--brown-900); letter-spacing:.02em;
}
.header__tel svg{ width:19px; height:19px; flex:0 0 auto; }
.header__tel span{ font-size:19px; }

.nav-toggle{ display:none; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:52px; padding:13px 26px;
  border:2px solid transparent; border-radius:8px;
  font-size:17px; font-weight:700; line-height:1.4;
  text-decoration:none; cursor:pointer; text-align:center;
  transition:background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg{ width:18px; height:18px; flex:0 0 auto; }
.btn--primary{ background:var(--green-600); color:var(--white); }
.btn--primary:hover{ background:var(--green-800); }
.btn--outline{ background:var(--white); color:var(--green-800); border-color:var(--green-600); }
.btn--outline:hover{ background:var(--green-50); }
.btn--brown{ background:var(--brown-700); color:var(--white); }
.btn--brown:hover{ background:var(--brown-900); }
.btn--sm{ min-height:44px; padding:10px 18px; font-size:16px; }
.btn--lg{ min-height:60px; padding:16px 34px; font-size:19px; }
.btn--block{ display:flex; width:100%; }
.header__cta .btn{ min-height:44px; padding:10px 20px; font-size:16px; }

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

/* テキストリンク */
.tlink{
  display:inline-flex; align-items:center; gap:7px;
  font-weight:700; color:var(--green-800); text-decoration:none;
  border-bottom:2px solid var(--green-600); padding-bottom:2px;
}
.tlink:hover{ color:var(--green-600); }
.tlink svg{ width:16px; height:16px; }

/* ---------- hero (top) ---------- */
.hero{ position:relative; margin-top:var(--header-h); background:var(--beige); overflow:hidden; }
.hero__inner{
  position:relative; display:grid; grid-template-columns:1fr 1fr;
  align-items:center; gap:48px; min-height:min(76vh,660px);
  padding-block:56px;
}
.hero__body{ position:relative; z-index:2; }
.hero h1{ font-size:40px; margin-bottom:20px; }
.hero__lead{ font-size:18px; color:var(--ink); margin-bottom:22px; }
.hero__place{
  display:inline-flex; align-items:flex-start; gap:9px;
  font-size:15px; line-height:1.7; color:var(--ink-60);
  background:var(--white); border:1px solid var(--line); border-radius:8px;
  padding:11px 15px; margin-bottom:28px;
}
.hero__place svg{ width:17px; height:17px; margin-top:3px; flex:0 0 auto; color:var(--green-600); }
.hero__figure{ position:relative; }
.hero__figure img{ border-radius:12px; box-shadow:var(--shadow-2); width:100%; }
.hero__lottie{
  position:absolute; right:-10px; bottom:-18px; width:190px; height:190px;
  pointer-events:none; z-index:3;
}
.hero__sub{ font-size:16px; }

.scroll-cue{
  position:absolute; left:50%; bottom:14px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:5px;
  font-size:13px; color:var(--ink-60); z-index:2;
}
.scroll-cue__arrow{
  width:13px; height:13px; border-right:2px solid var(--green-600); border-bottom:2px solid var(--green-600);
  transform:rotate(45deg); animation:cue 1.8s ease-in-out infinite;
}
@keyframes cue{ 0%,100%{ transform:rotate(45deg) translate(0,0); opacity:.5; } 50%{ transform:rotate(45deg) translate(4px,4px); opacity:1; } }

/* ---------- page hero (下層・21:9) ---------- */
.phero{ position:relative; margin-top:var(--header-h); background:var(--beige); overflow:hidden; }
.phero__img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.phero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 46%, rgba(255,255,255,.55) 100%);
}
.phero__inner{ position:relative; z-index:2; padding-block:64px; }
.phero h1{ font-size:40px; }
.phero .lead{ margin-top:14px; }
.breadcrumb{ font-size:15px; color:var(--ink-60); margin-bottom:14px; }
.breadcrumb a{ color:var(--ink-60); text-decoration:none; border-bottom:1px solid var(--line); }
.breadcrumb a:hover{ color:var(--green-800); }
.breadcrumb span{ margin-inline:7px; }

/* ---------- 主役層：ドラッグ比較 ---------- */
.compare-block{ max-width:900px; margin-inline:auto; }
.tabs{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:22px;
}
.tabs [role="tab"]{
  appearance:none; background:var(--white); border:2px solid var(--line);
  border-radius:999px; padding:11px 22px; min-height:46px;
  font-size:16px; font-weight:700; color:var(--ink-60); cursor:pointer;
  transition:border-color .2s ease, color .2s ease, background-color .2s ease;
}
.tabs [role="tab"]:hover{ border-color:var(--green-600); color:var(--green-800); }
.tabs [role="tab"][aria-selected="true"]{
  background:var(--green-600); border-color:var(--green-600); color:var(--white);
}
.tabpanel[hidden]{ display:none; }

.compare{
  position:relative; --pos:50%;
  width:100%; aspect-ratio:3/2; overflow:hidden;
  border-radius:12px; box-shadow:var(--shadow-2);
  background:var(--beige); touch-action:pan-y; user-select:none;
}
.compare img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  pointer-events:none; -webkit-user-drag:none;
}
.compare__before{ clip-path:inset(0 calc(100% - var(--pos)) 0 0); z-index:2; }
.compare__after{ z-index:1; }

.compare__handle{
  position:absolute; top:0; bottom:0; left:var(--pos);
  width:4px; margin-left:-2px; background:var(--white); z-index:4;
  box-shadow:0 0 0 1px rgba(48,38,32,.25);
  cursor:ew-resize; touch-action:none;
}
.compare__knob{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:52px; height:52px; border-radius:50%;
  background:var(--white); border:3px solid var(--green-600);
  display:flex; align-items:center; justify-content:center; gap:2px;
  box-shadow:var(--shadow-2); color:var(--green-800);
}
.compare__knob svg{ width:15px; height:15px; }

.compare__tag{
  position:absolute; top:14px; z-index:5;
  background:rgba(0,0,0,.62); color:#fff;
  font-size:15px; font-weight:700; line-height:1; letter-spacing:.06em;
  padding:9px 13px; border-radius:6px;
}
.compare__tag--before{ left:14px; }
.compare__tag--after{ right:14px; }

.compare__range{
  position:absolute; left:0; bottom:0; width:100%; height:52px;
  z-index:6; opacity:0; cursor:ew-resize; margin:0;
}
.compare__range:focus-visible{
  opacity:1; outline:2px solid var(--green-600); outline-offset:-4px;
}
.compare__caption{ margin-top:12px; }
.compare__desc{ margin-top:16px; font-size:17px; max-width:none; }
.compare-hint{
  display:inline-flex; align-items:center; gap:8px;
  font-size:15px; color:var(--ink-60); margin-top:10px;
}
.compare-hint svg{ width:17px; height:17px; color:var(--green-600); }

/* ---------- cards ---------- */
.grid{ display:grid; gap:26px; }
.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{
  display:flex; flex-direction:column; height:100%;
  background:var(--white); border:1px solid var(--line); border-radius:12px;
  overflow:hidden; text-decoration:none; box-shadow:var(--shadow-1);
  transition:box-shadow .2s ease;
}
.card__media{ position:relative; overflow:hidden; aspect-ratio:4/3; background:var(--beige); }
.card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease-out; }
.card:hover .card__media img{ transform:scale(1.05); }
.card__body{ padding:20px 22px 24px; display:flex; flex-direction:column; gap:9px; flex:1 1 auto; }
.card__icon{
  width:44px; height:44px; border-radius:50%; background:var(--green-50);
  display:flex; align-items:center; justify-content:center; color:var(--green-800);
  margin-bottom:2px;
}
.card__icon svg{ width:23px; height:23px; }
.card__title{ font-size:21px; font-weight:700; line-height:1.5; }
.card__text{ font-size:16px; line-height:1.8; color:var(--ink-60); max-width:none; }
.card__more{
  margin-top:auto; padding-top:10px;
  display:inline-flex; align-items:center; gap:7px;
  font-size:16px; font-weight:700; color:var(--green-800);
}
.card__more svg{ width:15px; height:15px; transition:transform .2s ease; }
.card:hover .card__more svg{ transform:translateX(3px); }

.tag{
  display:inline-block; align-self:flex-start;
  background:var(--green-50); color:var(--green-800);
  font-size:14px; font-weight:700; line-height:1;
  padding:7px 11px; border-radius:5px;
}

/* 事例グリッド */
.work-card{ display:flex; flex-direction:column; gap:0; }
.work-card__media{ position:relative; overflow:hidden; border-radius:10px; aspect-ratio:4/3; background:var(--beige); }
.work-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease-out; }
.work-card:hover .work-card__media img{ transform:scale(1.05); }
.work-card__body{ padding-top:14px; display:flex; flex-direction:column; gap:8px; }
.work-card__text{ font-size:16px; line-height:1.8; max-width:none; }
.work-card[hidden]{ display:none; }

/* フィルタ */
.filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:32px; }
.filters button{
  appearance:none; background:var(--white); border:2px solid var(--line);
  border-radius:999px; padding:10px 20px; min-height:46px;
  font-size:16px; font-weight:700; color:var(--ink-60); cursor:pointer;
  transition:border-color .2s ease, color .2s ease, background-color .2s ease;
}
.filters button:hover{ border-color:var(--green-600); color:var(--green-800); }
.filters button[aria-pressed="true"]{ background:var(--green-600); border-color:var(--green-600); color:var(--white); }

/* ---------- 年表 ---------- */
.timeline{ position:relative; padding-left:0; }
.tl-item{ position:relative; padding-left:38px; padding-bottom:44px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{
  content:""; position:absolute; left:9px; top:16px; bottom:-4px; width:2px; background:var(--line);
}
.tl-item:last-child::before{ display:none; }
.tl-item::after{
  content:""; position:absolute; left:2px; top:12px;
  width:16px; height:16px; border-radius:50%;
  background:var(--white); border:4px solid var(--green-600);
}
.tl-item .year{ display:block; margin-bottom:4px; }
.tl-item__body{ display:grid; grid-template-columns:280px 1fr; gap:24px; align-items:start; }
.tl-item__figure img{ border-radius:10px; width:100%; }
.tl-item__text{ font-size:17px; max-width:34em; }

/* トップの年表ダイジェスト（写真なし・画像点数を抑える） */
.tl-digest{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.tl-digest li{
  background:var(--white); border:1px solid var(--line); border-left:5px solid var(--green-600);
  border-radius:10px; padding:22px 20px;
}
.tl-digest .year{ font-size:32px; display:block; margin-bottom:6px; }
.tl-digest p{ font-size:16px; line-height:1.8; color:var(--ink); max-width:none; }

/* カウントアップ */
.counters{ display:flex; gap:56px; flex-wrap:wrap; }
.counter__num{
  font-family:var(--mincho); font-size:56px; line-height:1.1; font-weight:700; color:var(--green-800);
}
.counter__num span{ font-family:var(--sans); font-size:22px; font-weight:700; margin-left:4px; }
.counter__label{ font-size:16px; color:var(--ink-60); margin-top:4px; }

/* ---------- 資格 ---------- */
.qual-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.qual{
  background:var(--white); border:1px solid var(--line); border-radius:10px; overflow:hidden;
}
.qual__btn{
  width:100%; display:flex; align-items:center; gap:14px;
  background:none; border:0; padding:18px 20px; cursor:pointer; text-align:left;
}
.qual__name{ font-size:18px; font-weight:700; flex:1 1 auto; }
.qual__count{
  background:var(--green-50); color:var(--green-800);
  font-size:15px; font-weight:700; padding:5px 10px; border-radius:5px; white-space:nowrap;
}
.qual__chev{ width:16px; height:16px; color:var(--ink-60); transition:transform .2s ease; flex:0 0 auto; }
.qual__btn[aria-expanded="true"] .qual__chev{ transform:rotate(180deg); }
.qual__panel{ overflow:hidden; }
.qual__panel[hidden]{ display:none; }
.qual__panel p{ padding:0 20px 20px; font-size:16px; line-height:1.8; color:var(--ink-60); max-width:none; }

/* ---------- 流れ（5ステップ） ---------- */
.flow{ display:grid; grid-template-columns:repeat(5,1fr); gap:18px; counter-reset:step; }
.flow li{
  position:relative; background:var(--white); border:1px solid var(--line);
  border-radius:10px; padding:24px 18px 20px; counter-increment:step;
}
.flow li::before{
  content:counter(step); position:absolute; top:-15px; left:18px;
  width:32px; height:32px; border-radius:50%; background:var(--green-600); color:#fff;
  font-size:16px; font-weight:700; display:flex; align-items:center; justify-content:center;
}
.flow__title{ font-size:18px; font-weight:700; margin-bottom:7px; }
.flow__text{ font-size:15px; line-height:1.8; color:var(--ink-60); max-width:none; }

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

/* ---------- 仮置き注記 ---------- */
.placeholder-note{
  display:flex; align-items:flex-start; gap:10px;
  background:var(--beige); border:1px dashed var(--line); border-radius:8px;
  padding:14px 16px; font-size:15px; line-height:1.7; color:var(--ink-60); margin-top:16px;
}
.placeholder-note svg{ width:17px; height:17px; margin-top:3px; flex:0 0 auto; color:var(--brown-700); }
.ai-note{ font-size:15px; color:var(--ink-60); margin-top:9px; line-height:1.7; }

/* ---------- 帯 ---------- */
.band{ position:relative; overflow:hidden; background:var(--brown-700); }
.band__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.28; }
.band__inner{ position:relative; z-index:2; padding-block:72px; text-align:center; color:var(--white); }
.band h2{ color:var(--white); }
.band p{ color:var(--white); margin:14px auto 0; max-width:38em; }

/* ---------- CTA セクション ---------- */
.cta{ background:var(--beige); }
.cta__inner{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.cta__card{
  background:var(--white); border:1px solid var(--line); border-radius:12px;
  padding:28px 24px; display:flex; flex-direction:column; gap:10px; text-align:center;
  align-items:center; box-shadow:var(--shadow-1);
}
.cta__card h3{ font-size:20px; font-weight:700; }
.cta__card p{ font-size:16px; color:var(--ink-60); max-width:none; }
.cta__tel{
  font-size:34px; font-weight:700; color:var(--brown-900); text-decoration:none;
  letter-spacing:.02em; display:inline-flex; align-items:center; gap:10px; line-height:1.3;
}
.cta__tel svg{ width:29px; height:29px; color:var(--green-600); }
.cta__card .btn{ margin-top:auto; }

.cta-strip{ background:var(--green-50); border-radius:12px; padding:32px 34px; margin-top:8px; }
.cta-strip__inner{ display:flex; align-items:center; justify-content:space-between; gap:26px; flex-wrap:wrap; }
.cta-strip h3{ font-size:22px; font-weight:700; }
.cta-strip p{ font-size:16px; color:var(--ink-60); margin-top:5px; }

/* ---------- フォーム ---------- */
.form{ max-width:640px; }
.form__row{ margin-bottom:22px; }
.form label{ display:block; font-size:16px; font-weight:700; margin-bottom:7px; }
.form .req{ color:#B3261E; font-size:14px; margin-left:6px; font-weight:700; }
.form input[type=text],.form input[type=tel],.form input[type=email],.form textarea,.form select{
  width:100%; font:inherit; font-size:17px; color:var(--ink);
  background:var(--white); border:2px solid var(--line); border-radius:8px;
  padding:13px 15px; min-height:52px;
}
.form textarea{ min-height:160px; resize:vertical; line-height:1.8; }
.form input:hover,.form textarea:hover{ border-color:var(--ink-60); }
.form__file{
  border:2px dashed var(--line); border-radius:8px; padding:20px; background:var(--beige);
  font-size:16px; color:var(--ink-60);
}
.form__hint{ font-size:15px; color:var(--ink-60); margin-top:6px; line-height:1.7; }
.demo-note{
  background:#FFF6E8; border:1px solid #E8D2AE; border-radius:8px;
  padding:15px 17px; font-size:16px; line-height:1.8; color:var(--ink); margin-bottom:28px;
  display:flex; gap:10px; align-items:flex-start;
}
.demo-note svg{ width:19px; height:19px; margin-top:4px; flex:0 0 auto; color:var(--brown-700); }

/* ---------- 地図 ---------- */
.map{ border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--beige); }
.map iframe{ display:block; width:100%; height:420px; border:0; }

/* ---------- footer ---------- */
.footer{ background:var(--brown-700); color:var(--white); }
.footer a{ color:var(--white); }
.footer__inner{ padding-block:60px; display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.footer__logo{ font-size:24px; font-weight:700; letter-spacing:.08em; margin-bottom:14px; display:block; text-decoration:none; }
.footer__info{ font-size:16px; line-height:1.9; }
.footer__info a{ text-decoration:none; border-bottom:1px solid rgba(255,255,255,.4); }
.footer__info li{ display:flex; gap:10px; align-items:flex-start; }
.footer__info svg{ width:17px; height:17px; margin-top:6px; flex:0 0 auto; opacity:.85; }
.footer__h{ font-size:17px; font-weight:700; margin-bottom:14px; }
.footer__nav li + li{ margin-top:10px; }
.footer__nav a{ font-size:16px; text-decoration:none; border-bottom:1px solid transparent; }
.footer__nav a:hover{ border-bottom-color:rgba(255,255,255,.6); }
.footer__bottom{ background:var(--brown-900); }
.footer__bottom .wrap{ padding-block:22px; }
.footer__demo{ font-size:15px; line-height:1.8; color:#fff; opacity:.95; max-width:none; }
.footer__copy{ font-size:14px; opacity:.75; margin-top:10px; }

/* ---------- SP 固定バー ---------- */
.spbar{ display:none; }

/* ---------- 404 ---------- */
.err{ margin-top:var(--header-h); padding-block:120px; text-align:center; background:var(--beige); }
.err h1{ font-size:34px; margin-bottom:16px; }
.err p{ margin:0 auto 28px; }

/* =========================================================
   基礎層アニメーション（GSAPが無い環境でも見える初期値）
   ========================================================= */
.reveal{ opacity:1; }
.js .reveal{ opacity:0; transform:translateY(28px); }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width:1024px){
  .grid--4{ grid-template-columns:repeat(2,1fr); }
  .flow{ grid-template-columns:repeat(2,1fr); row-gap:28px; }
  .gnav__list{ gap:18px; }
  .gnav__list a{ font-size:15px; }
  .header__tel span{ display:none; }
  .footer__inner{ grid-template-columns:1fr 1fr; }
}

@media (max-width:900px){
  .hero__inner{ grid-template-columns:1fr; gap:32px; min-height:0; }
  .tl-item__body{ grid-template-columns:1fr; }
  .tl-digest{ grid-template-columns:repeat(2,1fr); }
  .cta__inner{ grid-template-columns:1fr; }
  .qual-list{ grid-template-columns:1fr; }
}

@media (max-width:768px){
  :root{ --pad:20px; --sec:64px; --header-h:64px; }
  body{ font-size:16px; }
  h1{ font-size:28px; }
  h2{ font-size:24px; }
  h3{ font-size:19px; }
  .lead{ font-size:17px; }
  small,.note{ font-size:14px; }
  .year{ font-size:28px; }
  .hero h1{ font-size:28px; }
  .hero__lead{ font-size:17px; }
  .phero h1{ font-size:28px; }
  .phero__inner{ padding-block:40px; }
  .phero::after{ background:linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 100%); }
  .grid{ gap:20px; }
  .grid--2,.grid--3,.grid--4{ grid-template-columns:1fr; }
  .flow{ grid-template-columns:1fr; }
  .tl-digest{ grid-template-columns:1fr; }
  .counters{ gap:32px; }
  .counter__num{ font-size:42px; }
  .cta__tel{ font-size:28px; }
  .footer__inner{ grid-template-columns:1fr; gap:32px; padding-block:44px; }
  .info-table th{ width:auto; display:block; border-bottom:0; padding-bottom:0; }
  .info-table td{ display:block; padding-top:4px; }
  .hero__lottie{ width:120px; height:120px; right:0; bottom:-8px; }
  .scroll-cue{ display:none; }
  .compare__knob{ width:46px; height:46px; }

  /* ナビをトグルに */
  /* 幅が足りないため、屋号の副題と電話番号の文字は隠しアイコンだけ残す */
  .logo__sub{ display:none; }
  .logo__mark{ font-size:22px; }
  .header__cta{ margin-left:auto; gap:10px; }
  .nav-toggle__label{ white-space:nowrap; }
  .nav-toggle{
    display:flex; align-items:center; justify-content:center; gap:6px;
    margin-left:8px; order:3; flex:0 0 auto;
    min-height:44px; min-width:44px; padding:8px 12px;
    background:var(--white); border:2px solid var(--line); border-radius:8px;
    font-size:14px; font-weight:700; cursor:pointer;
  }
  .nav-toggle__bars{ display:block; width:18px; height:2px; background:var(--ink); position:relative; }
  .nav-toggle__bars::before,.nav-toggle__bars::after{
    content:""; position:absolute; left:0; width:18px; height:2px; background:var(--ink);
  }
  .nav-toggle__bars::before{ top:-6px; } .nav-toggle__bars::after{ top:6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars{ background:transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before{ top:0; transform:rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after{ top:0; transform:rotate(-45deg); }

  .gnav{
    position:fixed; left:0; right:0; top:var(--header-h);
    background:var(--white); border-bottom:1px solid var(--line);
    box-shadow:var(--shadow-2); margin-left:0;
    max-height:calc(100vh - var(--header-h) - 76px); overflow-y:auto;
  }
  .gnav[hidden]{ display:none; }
  .gnav__list{ flex-direction:column; gap:0; padding:8px 20px 20px; }
  .gnav__list li{ border-bottom:1px solid var(--line); }
  .gnav__list a{ display:block; padding:16px 0; font-size:17px; }
  .gnav__list a::after{ display:none; }

  .header__cta .btn{ display:none; }
  .header__inner{ gap:12px; }

  /* SP下部固定バー */
  .spbar{
    display:grid; grid-template-columns:1fr 1fr; gap:10px;
    position:fixed; left:0; right:0; bottom:0; z-index:90;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.96); border-top:1px solid var(--line);
    box-shadow:0 -4px 14px rgba(48,38,32,.10);
  }
  .spbar .btn{ min-height:52px; font-size:16px; padding:12px 10px; }
  body{ padding-bottom:82px; }
}

/* =========================================================
   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 .reveal{ opacity:1 !important; transform:none !important; }
  .card:hover .card__media img,
  .work-card:hover .work-card__media img{ transform:none; }
  .scroll-cue__arrow{ animation:none; }
}
