@charset "utf-8";
/* ============================================================
   株式会社寿建設 デモサイト
   配色は 13_Web構成.md 4-1 の指定に固定。色相を追加・変更しない。
   ============================================================ */

:root{
  --red:#C0272D;
  --red-deep:#8E1B20;
  --dark:#2B2D30;
  --text:#1A1A1A;
  --muted:#595959;
  --bg:#FFFFFF;
  --offwhite:#FAF8F6;
  --border:#E4E0DB;

  --serif:"Shippori Mincho B1",serif;
  --sans:"Noto Sans JP",system-ui,sans-serif;

  --container:1120px;
  --gutter:24px;
  --section:96px;
  --radius:4px;

  --fast:180ms;
  --normal:500ms;
}
body.is-sub{--section:80px;}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--sans);font-size:17px;line-height:1.9;
  font-weight:400;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;}
h1,h2,h3,h4{font-family:var(--serif);font-weight:600;line-height:1.5;margin:0;}
h1{font-size:40px;}
h2{font-size:30px;}
h3{font-size:22px;}
p{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}

:focus-visible{outline:3px solid var(--red);outline-offset:3px;}

/* 固定ヘッダー分、アンカー着地位置をずらす */
[id]{scroll-margin-top:100px;}

/* ---------- layout ---------- */
.container{max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter);}
.section{padding-block:var(--section);}
.section--alt{background:var(--offwhite);}
.section--dark{background:var(--dark);color:#fff;}
.prose{max-width:46em;}
.stack>*+*{margin-top:20px;}

/* 見出し＋赤い罫線（赤はこことCTAに集中させる） */
.h-lead{margin-bottom:40px;}
.h-lead h2,.h-lead h1{position:relative;padding-bottom:16px;}
.h-lead h2::after,.h-lead h1::after{
  content:"";position:absolute;left:0;bottom:0;width:48px;height:2px;background:var(--red);
}
.h-lead--center{text-align:center;}
.h-lead--center h2::after,.h-lead--center h1::after{left:50%;transform:translateX(-50%);}
.h-lead p{margin-top:16px;color:var(--muted);}
.section--dark .h-lead p{color:#D9D6D2;}

.note{font-size:14px;line-height:1.8;color:var(--muted);}
.note--box{
  border:1px dashed var(--border);border-radius:var(--radius);
  padding:14px 16px;background:var(--offwhite);
}
.section--dark .note,.section--dark .note--box{color:#C9C6C2;}
.section--dark .note--box{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.22);}
.imgnote{font-size:14px;line-height:1.8;color:var(--muted);margin-top:8px;}

/* 値が未確定の欄 */
.tbd{display:inline-block;min-width:120px;border-bottom:1px dotted var(--border);color:var(--muted);}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:56px;padding:14px 28px;border-radius:var(--radius);
  font-family:var(--sans);font-size:17px;font-weight:700;line-height:1.5;
  text-decoration:none;cursor:pointer;border:1px solid transparent;
  transition:background-color var(--fast) ease,color var(--fast) ease,border-color var(--fast) ease;
}
.btn--primary{background:var(--red);color:#fff;}
.btn--primary:hover{background:var(--red-deep);}
.btn--outline{background:transparent;color:var(--text);border-color:var(--border);}
.btn--outline:hover{border-color:var(--red);color:var(--red);}
.btn--onwhite{background:#fff;color:var(--text);border-color:var(--border);}
.btn--onwhite:hover{border-color:var(--red);color:var(--red);}
.btn--ondark{background:transparent;color:#fff;border-color:rgba(255,255,255,.5);}
.btn--ondark:hover{border-color:#fff;background:rgba(255,255,255,.1);}
.btn--sm{min-height:44px;padding:10px 20px;font-size:15px;}
.btn--full{width:100%;}
.btn-row{display:flex;flex-wrap:wrap;gap:16px;}
.tel-num{font-variant-numeric:tabular-nums;}

/* ---------- header ---------- */
.header{
  position:fixed;inset:0 0 auto 0;z-index:100;background:#fff;
  border-bottom:1px solid var(--border);
  transition:background-color 300ms ease,box-shadow 300ms ease;
}
.header.is-scrolled{background:rgba(255,255,255,.92);backdrop-filter:blur(8px);box-shadow:0 1px 12px rgba(0,0,0,.06);}
.header__inner{
  max-width:var(--container);margin-inline:auto;padding:0 var(--gutter);
  height:80px;display:flex;align-items:center;gap:24px;
  transition:height 300ms ease;
}
.header.is-scrolled .header__inner{height:64px;}
.header__logo{font-family:var(--serif);font-size:20px;font-weight:700;text-decoration:none;white-space:nowrap;}
.header__nav{margin-left:auto;}
.header__nav ul{display:flex;gap:26px;}
.header__nav a{
  font-size:15px;text-decoration:none;padding:6px 0;position:relative;display:inline-block;
}
.header__nav a::after{
  content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background:var(--red);
  transform:scaleX(0);transform-origin:left;transition:transform var(--fast) ease;
}
.header__nav a:hover::after,.header__nav a[aria-current="page"]::after{transform:scaleX(1);}
.header__cta{flex-shrink:0;}
.header__toggle{display:none;}
main{padding-top:80px;}

/* ---------- hero ---------- */
.hero{position:relative;min-height:620px;display:flex;align-items:center;overflow:hidden;}
.hero__bg{position:absolute;inset:0;z-index:0;}
.hero__bg img{width:100%;height:100%;object-fit:cover;}
.hero__bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.90) 38%,rgba(255,255,255,.45) 68%,rgba(255,255,255,.2) 100%);
}
.hero__inner{position:relative;z-index:1;width:100%;padding-block:80px;}
.hero__body{max-width:720px;}
.hero h1{font-size:44px;line-height:1.45;}
.hero__sub{margin-top:24px;font-size:18px;max-width:34em;}
.hero .btn-row{margin-top:36px;}
.hero__arrow{
  position:absolute;left:50%;bottom:24px;z-index:1;
  width:28px;height:28px;border-right:2px solid var(--red);border-bottom:2px solid var(--red);
  transform:translateX(-50%) rotate(45deg);
  animation:bob 1.8s ease-in-out infinite;
}
@keyframes bob{
  0%,100%{transform:translateX(-50%) rotate(45deg) translate(0,0);}
  50%{transform:translateX(-50%) rotate(45deg) translate(7px,7px);}
}

/* ---------- 汎用カード ---------- */
.grid{display:grid;gap:24px;}
.grid--3{grid-template-columns:repeat(3,1fr);}
.grid--2{grid-template-columns:repeat(2,1fr);}
.card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:32px 28px;
  transition:box-shadow var(--fast) ease;
}
.card:hover,.symptom:hover,.voice:hover,.case:hover{box-shadow:0 8px 24px rgba(0,0,0,.08);}
.card__icon{width:56px;height:56px;margin-bottom:20px;}
.card h3{margin-bottom:12px;}
.card p{font-size:16px;}

/* 画像ホバー拡大（CSS） */
.zoom{overflow:hidden;border-radius:var(--radius);}
.zoom img{transition:transform 600ms ease;width:100%;}
.zoom:hover img{transform:scale(1.05);}

/* ---------- 症状カード ---------- */
.symptom{
  position:relative;display:block;background:#fff;text-decoration:none;
  border:1px solid var(--border);border-radius:var(--radius);
  padding:28px 28px 28px 32px;
  transition:box-shadow var(--fast) ease;
}
.symptom::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--red);
  transform:scaleY(0);transform-origin:top;transition:transform 200ms ease;
}
.symptom:hover::before,.symptom:focus-visible::before{transform:scaleY(1);}
.symptom__icon{width:44px;height:44px;margin-bottom:16px;}
.symptom h3{font-size:19px;line-height:1.6;}
.symptom__go{margin-top:14px;font-size:15px;color:var(--red);font-weight:700;}

/* ---------- 主役セクション：トーク ---------- */
.talk{background:var(--offwhite);}
.talk__grid{
  display:grid;grid-template-columns:1fr 380px;gap:64px;align-items:center;
  min-height:100vh;padding-block:80px;
}
.talk__intro h2{margin-bottom:20px;}
.talk__steps{margin-top:28px;}
.talk__steps li{
  position:relative;padding-left:26px;font-size:16px;color:var(--muted);
}
.talk__steps li+li{margin-top:10px;}
.talk__steps li::before{
  content:"";position:absolute;left:0;top:.72em;width:10px;height:2px;background:var(--red);
}
.talk__device{
  background:var(--dark);border-radius:28px;padding:14px;
  box-shadow:0 18px 40px rgba(0,0,0,.16);
}
.talk__bar{height:26px;display:flex;align-items:center;justify-content:center;}
.talk__bar span{width:56px;height:5px;border-radius:3px;background:rgba(255,255,255,.35);}
.talk__screen{
  background:#fff;border-radius:16px;height:540px;overflow:hidden;
  display:flex;flex-direction:column;
}
.talk__head{padding:14px 18px;border-bottom:1px solid var(--border);background:#fff;flex-shrink:0;}
.talk__head p{font-family:var(--serif);font-size:15px;font-weight:600;}
.talk__head span{display:block;font-size:12px;color:var(--muted);line-height:1.6;}
.talk__log{
  flex:1;overflow-y:auto;padding:20px 18px;background:var(--offwhite);
  scrollbar-width:thin;
}
.talk__log::-webkit-scrollbar{width:4px;}
.talk__log::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px;}
.msg{margin-bottom:18px;max-width:88%;}
.msg__who{font-size:12px;color:var(--muted);margin-bottom:6px;line-height:1.6;}
.msg__body{border-radius:var(--radius);padding:12px 14px;font-size:15px;line-height:1.8;}
/* 訪問者：右寄せ・白 */
.msg--you{margin-left:auto;}
.msg--you .msg__who{text-align:right;}
.msg--you .msg__body{background:#fff;border:1px solid var(--border);}
/* 寿建設：左寄せ・赤の細い罫線のみ（LINEの緑・UIは模倣しない） */
.msg--us .msg__body{background:#fff;border:1px solid var(--border);border-left:3px solid var(--red);}
.msg__photo{margin-top:10px;border-radius:var(--radius);overflow:hidden;}
.msg__photo img{width:100%;max-height:150px;object-fit:cover;}
.msg__note{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.7;}
.talk__foot{padding:14px 18px;border-top:1px solid var(--border);background:#fff;flex-shrink:0;}
.talk__cta .btn{width:100%;min-height:48px;font-size:15px;padding:12px 16px;}

/* ---------- 事例 ---------- */
.case{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;}
.case__imgs{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border);}
.case__imgs--one{grid-template-columns:1fr;}
.case__img{background:#fff;position:relative;}
.case__img img{width:100%;aspect-ratio:4/3;object-fit:cover;}
.case__tag{
  position:absolute;left:0;top:0;background:var(--dark);color:#fff;
  font-size:12px;font-weight:700;padding:4px 10px;line-height:1.6;
}
.case__body{padding:24px;}
.case__body h3{font-size:19px;margin-bottom:14px;}
.case dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:15px;margin:0 0 14px;}
.case dt{color:var(--muted);white-space:nowrap;}
.case dd{margin:0;}

/* ---------- タブ ---------- */
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:36px;border-bottom:1px solid var(--border);}
.tab{
  appearance:none;background:none;border:0;border-bottom:2px solid transparent;
  font-family:var(--sans);font-size:16px;font-weight:700;color:var(--muted);
  padding:12px 20px;cursor:pointer;min-height:48px;
  transition:color var(--fast) ease,border-color var(--fast) ease;
}
.tab:hover{color:var(--text);}
.tab[aria-selected="true"]{color:var(--red);border-bottom-color:var(--red);}

/* ---------- 帯 ---------- */
.band{position:relative;height:240px;overflow:hidden;}
.band img{width:100%;height:100%;object-fit:cover;}
.band__mask{position:absolute;inset:0;background:rgba(43,45,48,.55);display:flex;align-items:center;justify-content:center;}
.band__mask p{color:#fff;font-family:var(--serif);font-size:26px;text-align:center;padding-inline:var(--gutter);}

/* ---------- 声 ---------- */
.voice{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px;}
.stars{color:var(--red);font-size:18px;letter-spacing:.14em;margin-bottom:14px;}

/* ---------- 定義表 ---------- */
.spec{width:100%;border-collapse:collapse;font-size:16px;}
.spec th,.spec td{border-bottom:1px solid var(--border);padding:16px 8px;text-align:left;vertical-align:top;}
.spec th{width:200px;font-weight:700;color:var(--muted);font-size:15px;}

/* ---------- 流れ ---------- */
.flow{position:relative;max-width:760px;}
.flow::before{content:"";position:absolute;left:23px;top:12px;bottom:12px;width:1px;background:var(--border);}
.flow__item{position:relative;padding-left:76px;}
.flow__item+.flow__item{margin-top:40px;}
.flow__num{
  position:absolute;left:0;top:0;width:48px;height:48px;border-radius:50%;
  background:#fff;border:1px solid var(--red);color:var(--red);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:18px;font-weight:700;
}
.flow__item h3{margin-bottom:8px;}

/* ---------- 工事ブロック ---------- */
.svc{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;}
.svc--flip .svc__media{order:2;}
.svc__sub{color:var(--red);font-size:15px;font-weight:700;margin-bottom:10px;}
.svc+.svc{margin-top:var(--section);}
.svc h2{margin-bottom:20px;}

/* ---------- フォーム ---------- */
.form{max-width:680px;}
.field+.field{margin-top:24px;}
.field label{display:block;font-weight:700;font-size:16px;margin-bottom:8px;}
.field input,.field textarea{
  width:100%;font-family:var(--sans);font-size:17px;color:var(--text);
  padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);
  background:#fff;min-height:52px;
}
.field textarea{min-height:150px;resize:vertical;line-height:1.9;}
.field input:focus,.field textarea:focus{outline:3px solid var(--red);outline-offset:2px;border-color:var(--red);}
.field__help{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.8;}

/* 3導線 */
.routes{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.route{
  display:flex;flex-direction:column;text-align:center;align-items:center;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:32px 24px;
}
.route__icon{width:52px;height:52px;margin-bottom:18px;}
.route h3{font-size:19px;margin-bottom:10px;}
.route p{font-size:15px;color:var(--muted);margin-bottom:20px;}
.route .btn{margin-top:auto;width:100%;}
.route__rank{font-size:12px;color:var(--red);font-weight:700;letter-spacing:.08em;margin-bottom:10px;}

/* ---------- footer ---------- */
.footer{background:var(--dark);color:#fff;padding-block:64px 40px;}
.footer a{color:#fff;}
.footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;}
.footer__logo{font-family:var(--serif);font-size:20px;font-weight:700;margin-bottom:16px;}
.footer p,.footer li{font-size:15px;color:#D9D6D2;line-height:1.9;}
.footer h4{font-size:15px;margin-bottom:14px;color:#fff;}
.footer__nav li+li{margin-top:8px;}
.footer__nav a{text-decoration:none;}
.footer__nav a:hover{text-decoration:underline;}
.footer__disc{
  margin-top:48px;padding-top:24px;border-top:1px solid rgba(255,255,255,.2);
  font-size:14px;line-height:1.9;color:#C9C6C2;
}
.footer__copy{margin-top:16px;font-size:13px;color:#A8A5A2;}

/* ---------- スマホ固定バー ---------- */
.mobilebar{display:none;}

/* ---------- 出現アニメーションの初期状態 ---------- */
.js [data-reveal]{opacity:0;transform:translateY(28px);}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width:1024px){
  .talk__grid{grid-template-columns:1fr 340px;gap:40px;}
  .svc{gap:36px;}
  .footer__grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:900px){
  .header__nav{display:none;}
  .header__nav.is-open{
    display:block;position:absolute;left:0;right:0;top:100%;
    background:#fff;border-bottom:1px solid var(--border);padding:8px var(--gutter) 20px;
  }
  .header__nav.is-open ul{flex-direction:column;gap:0;}
  .header__nav.is-open a{display:block;padding:14px 0;border-bottom:1px solid var(--border);min-height:48px;}
  .header__toggle{
    display:flex;align-items:center;justify-content:center;order:3;
    width:48px;height:48px;background:none;border:1px solid var(--border);
    border-radius:var(--radius);cursor:pointer;flex-shrink:0;
  }
  .header__toggle span{display:block;width:20px;height:2px;background:var(--text);position:relative;}
  .header__toggle span::before,.header__toggle span::after{
    content:"";position:absolute;left:0;width:20px;height:2px;background:var(--text);
  }
  .header__toggle span::before{top:-6px;}
  .header__toggle span::after{top:6px;}
  .grid--3{grid-template-columns:1fr 1fr;}
  .routes{grid-template-columns:1fr;}
}
@media (max-width:767.98px){
  :root{--section:64px;--gutter:20px;}
  body.is-sub{--section:56px;}
  body{padding-bottom:72px;}
  h1,.hero h1{font-size:29px;}
  h2{font-size:24px;}
  h3{font-size:20px;}
  main{padding-top:64px;}
  /* ロゴ・CTA・メニューボタンが375px幅に収まるよう詰める */
  .header__inner{height:64px;gap:10px;}
  .header__logo{font-size:17px;}
  .header__cta{padding:10px 14px;font-size:14px;}
  .header__toggle{width:44px;height:44px;}
  .hero{min-height:auto;}
  .hero__inner{padding-block:56px 72px;}
  .hero__bg::after{background:linear-gradient(180deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.88) 60%,rgba(255,255,255,.7) 100%);}
  .hero .btn-row .btn{width:100%;}
  .hero__arrow{display:none;}
  .grid--3,.grid--2{grid-template-columns:1fr;}
  .svc{grid-template-columns:1fr;}
  .svc--flip .svc__media{order:0;}
  .case__imgs{grid-template-columns:1fr;}
  .spec th{width:auto;display:block;border-bottom:0;padding-bottom:0;}
  .spec td{display:block;padding-top:4px;}
  .band{height:180px;}
  .band__mask p{font-size:20px;}
  .flow__item{padding-left:64px;}

  /* 主役セクション：768px未満はピン留めを解除し、最初から全件表示 */
  .talk__grid{grid-template-columns:1fr;gap:32px;min-height:0;padding-block:0;}
  .talk__device{max-width:420px;margin-inline:auto;}
  .talk__screen{height:auto;}
  .talk__log{overflow:visible;}
  .talk [data-msg],.talk [data-talk-cta]{opacity:1 !important;transform:none !important;}

  .mobilebar{
    display:grid;grid-template-columns:1fr 1fr;gap:1px;
    position:fixed;left:0;right:0;bottom:0;z-index:99;
    background:var(--border);border-top:1px solid var(--border);
  }
  .mobilebar a{
    display:flex;align-items:center;justify-content:center;gap:8px;
    min-height:60px;background:#fff;text-decoration:none;
    font-size:16px;font-weight:700;color:var(--text);
  }
  .mobilebar a.is-primary{background:var(--red);color:#fff;}
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation:none !important;transition:none !important;}
  .js [data-reveal]{opacity:1 !important;transform:none !important;}
  .talk [data-msg],.talk [data-talk-cta]{opacity:1 !important;transform:none !important;}
}
