/* =========================================================
   ひなた工務店（架空）— サンプルサイト
   色・文字の基本はここ（:root）でまとめて変えられます
   ========================================================= */
:root {
  --kinari: #f8f3ea;      /* 生成り：背景 */
  --kinari-2: #f1e9db;
  --paper: #fffdf8;
  --sumi: #2c2620;        /* 墨：文字 */
  --sumi-2: #5a5047;
  --sumi-3: #8a7f73;
  --ki: #9a6a3a;          /* 木の色 */
  --ki-light: #c99b67;
  --wakakusa: #6e8b4e;    /* 若草 */
  --kaki: #d4703f;        /* 柿色：行動ボタン */
  --kaki-dark: #b85a2c;
  --line: #e4d8c6;
  --line-green: #06c755;
  --shadow: 0 10px 30px rgba(60, 40, 20, .10);
  --shadow-lg: 0 24px 60px rgba(60, 40, 20, .18);
  --radius: 18px;
  --max: 1160px;
  --mincho: "Shippori Mincho", "Yu Mincho", serif;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --hand: "Yomogi", "Zen Maru Gothic", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--sumi);
  background: var(--kinari);
  line-height: 1.9;
  letter-spacing: .04em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* 紙のような質感 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .3  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer, .notice { position: relative; z-index: 1; }

/* ---------- サンプル表示 ---------- */
.sample-flag {
  position: fixed; left: 12px; bottom: 12px; z-index: 90;
  background: rgba(44,38,32,.85); color: #fff; font-size: 11px; padding: 6px 10px; border-radius: 8px;
  letter-spacing: .08em;
}

/* ---------- お知らせバー ---------- */
.notice {
  background: var(--wakakusa); color: #fff; font-size: 14px; text-align: center; padding: 8px 16px;
}
.notice a { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.notice .tag { display: inline-block; background: #fff; color: var(--wakakusa); border-radius: 99px; padding: 0 10px; margin-right: 8px; font-weight: 700; font-size: 12px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 234, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(60,40,20,.06); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 44px; height: 44px; }
.logo__text { line-height: 1.2; }
.logo__name { font-family: var(--mincho); font-weight: 700; font-size: 22px; letter-spacing: .12em; }
.logo__sub { font-size: 10.5px; color: var(--sumi-3); letter-spacing: .2em; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 99px; color: var(--sumi-2); transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { background: var(--kinari-2); color: var(--sumi); }
.header__tel { text-decoration: none; line-height: 1.2; text-align: right; flex-shrink: 0; }
.header__tel strong { font-family: var(--maru); font-size: 20px; color: var(--ki); letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.header__tel small { font-size: 11px; color: var(--sumi-3); }
.btn { white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 99px; padding: 14px 26px; font-weight: 700; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s; letter-spacing: .08em; font-family: var(--maru);
}
.btn--kaki { background: var(--kaki); color: #fff; box-shadow: 0 6px 18px rgba(212,112,63,.35); }
.btn--kaki:hover { background: var(--kaki-dark); transform: translateY(-2px); }
.btn--line { background: var(--line-green); color: #fff; }
.btn--line:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1.5px solid currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--sumi); border-radius: 2px; transform: translate(-50%,-50%); transition: .3s; content: ""; }
.menu-btn span::before { transform: translate(-50%, -7px); }
.menu-btn span::after { transform: translate(-50%, 5px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translate(-50%, -1px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translate(-50%, -1px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; overflow: hidden; color: #fff; }
.hero__img { position: absolute; inset: 0; background: #6b5a45 center/cover no-repeat; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,22,14,.05) 30%, rgba(30,22,14,.55) 100%), linear-gradient(0deg, rgba(30,22,14,.55), transparent 45%); }
.hero__inner { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: stretch; padding: 60px 0 120px; }
.hero__copy {
  writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 600;
  font-size: clamp(26px, min(4.4vw, 5.6vh), 56px); line-height: 1.75; letter-spacing: .22em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35); margin: 0; height: fit-content;
}
.hero__copy span { display: block; animation: fadeDown 1.2s both; }
.hero__copy span:nth-child(2) { animation-delay: .5s; padding-top: 2.2em; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.hero__lead { position: absolute; left: 0; bottom: 64px; max-width: 560px; z-index: 2; animation: fadeUp 1s 1.2s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: none; } }
.hero__lead p { margin: 0 0 22px; font-size: 16px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero__lead .eyebrow { font-family: var(--maru); font-size: 13px; letter-spacing: .3em; opacity: .9; margin-bottom: 8px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll { position: absolute; right: 24px; bottom: 0; z-index: 2; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; padding-bottom: 80px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 64px; background: rgba(255,255,255,.6); animation: scrollLine 2s infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 共通セクション ---------- */
section { padding: 120px 0; position: relative; }
.sec-head { text-align: center; margin-bottom: 64px; }
.sec-head .en { font-family: var(--maru); color: var(--ki); font-size: 13px; letter-spacing: .4em; display: block; margin-bottom: 10px; text-transform: uppercase; }
.sec-head h2 { font-family: var(--mincho); font-size: clamp(26px, 3.4vw, 38px); margin: 0; letter-spacing: .14em; line-height: 1.6; font-weight: 600; }
.sec-head p { color: var(--sumi-2); margin: 18px auto 0; max-width: 640px; }
.sec-head--left { text-align: left; }
.sec-head--left p { margin-left: 0; }
.bg-paper { background: var(--paper); }
.bg-kinari2 { background: var(--kinari-2); }
.wave-top::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: var(--kinari); clip-path: polygon(0 0,100% 0,100% 30%,85% 70%,65% 40%,45% 80%,25% 45%,0 75%); }

/* フェードイン */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }

/* ---------- 想い ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.about__photo { position: relative; }
.about__photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; background: var(--kinari-2); }
.about__photo .stamp {
  position: absolute; right: -24px; bottom: -28px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--paper); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center;
  font-family: var(--mincho); line-height: 1.3; color: var(--ki); border: 1px dashed var(--ki-light);
}
.about__photo .stamp b { font-size: 34px; display: block; color: var(--sumi); }
.about__photo .stamp small { font-size: 12px; letter-spacing: .1em; }
.about h3 { font-family: var(--mincho); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.8; letter-spacing: .1em; margin: 0 0 28px; font-weight: 600; }
.about p { color: var(--sumi-2); margin: 0 0 1.2em; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.signature .role { font-size: 13px; color: var(--sumi-3); }
.signature .name { font-family: var(--hand); font-size: 30px; letter-spacing: .1em; }

/* ---------- 数字 ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 110px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.num { padding: 34px 20px; text-align: center; position: relative; }
.num + .num::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.num .label { font-size: 13px; color: var(--sumi-3); letter-spacing: .1em; }
.num .val { font-family: var(--maru); font-weight: 700; font-size: 46px; color: var(--ki); line-height: 1.3; }
.num .val small { font-size: 16px; margin-left: 4px; color: var(--sumi); }
.num .note { font-size: 12px; color: var(--sumi-2); }

/* ---------- 3つの約束 ---------- */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise { background: var(--paper); border-radius: var(--radius); padding: 44px 32px 36px; position: relative; box-shadow: var(--shadow); transition: transform .3s; }
.promise:hover { transform: translateY(-6px); }
.promise .no { position: absolute; top: -22px; left: 28px; font-family: var(--mincho); font-size: 15px; background: var(--sumi); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; letter-spacing: 0; }
.promise .icon { width: 72px; height: 72px; margin: 4px 0 18px; }
.promise h3 { font-family: var(--mincho); font-size: 22px; letter-spacing: .1em; margin: 0 0 14px; line-height: 1.6; font-weight: 600; }
.promise p { margin: 0; color: var(--sumi-2); font-size: 15px; }
.promise .point { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ki); font-weight: 700; }

/* ---------- サービス ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.service__img { aspect-ratio: 4/3; overflow: hidden; background: var(--kinari-2); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.service__body .tag { font-family: var(--maru); font-size: 12px; color: var(--wakakusa); letter-spacing: .2em; font-weight: 700; }
.service__body h3 { font-family: var(--mincho); font-size: 23px; margin: 4px 0 12px; letter-spacing: .1em; font-weight: 600; }
.service__body p { color: var(--sumi-2); font-size: 15px; margin: 0 0 16px; }
.service__body ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service__body li { font-size: 12.5px; background: var(--kinari); border-radius: 99px; padding: 3px 12px; color: var(--sumi-2); }

.small-repair {
  margin-top: 48px; background: var(--sumi); color: #fff; border-radius: var(--radius); padding: 44px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.small-repair::after { content: "小さな修理"; position: absolute; right: -10px; bottom: -36px; font-family: var(--mincho); font-size: 120px; opacity: .05; white-space: nowrap; }
.small-repair h3 { font-family: var(--mincho); font-size: 26px; margin: 0 0 10px; letter-spacing: .1em; font-weight: 600; }
.small-repair p { margin: 0; color: #e7dccd; }
.small-repair .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.small-repair .chips span { border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 4px 14px; font-size: 13px; }

/* ---------- 施工事例 ---------- */
.filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 8px 22px; font-size: 14px; color: var(--sumi-2); transition: .2s; font-family: var(--maru); }
.filters button.is-active, .filters button:hover { background: var(--sumi); color: #fff; border-color: var(--sumi); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work { cursor: pointer; text-align: left; border: 0; padding: 0; background: none; color: inherit; transition: opacity .4s, transform .4s; }
.work.is-hidden { display: none; }
.work__img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--kinari-2); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.work:hover .work__img img { transform: scale(1.06); }
.work__img .cat { position: absolute; top: 12px; left: 12px; background: rgba(255,253,248,.92); border-radius: 99px; font-size: 12px; padding: 2px 12px; font-family: var(--maru); font-weight: 700; color: var(--ki); }
.work__img .more { position: absolute; right: 12px; bottom: 12px; background: var(--kaki); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; transform: scale(.8); opacity: 0; transition: .3s; }
.work:hover .more { opacity: 1; transform: none; }
.work h3 { font-family: var(--mincho); font-size: 19px; margin: 16px 0 4px; letter-spacing: .08em; line-height: 1.6; font-weight: 600; }
.work .meta { font-size: 13px; color: var(--sumi-3); }

/* モーダル */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__bg { position: absolute; inset: 0; background: rgba(30,22,14,.6); backdrop-filter: blur(4px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal__panel { position: relative; background: var(--paper); border-radius: 20px; max-width: 880px; width: 100%; max-height: 90vh; overflow: auto; animation: pop .35s ease; box-shadow: var(--shadow-lg); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,253,248,.95); font-size: 22px; z-index: 2; box-shadow: var(--shadow); }
.modal__img { aspect-ratio: 16/8; background: var(--kinari-2); }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 36px 44px 44px; }
.modal__body h3 { font-family: var(--mincho); font-size: 26px; margin: 4px 0 18px; letter-spacing: .08em; font-weight: 600; }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.spec div { background: var(--kinari); padding: 12px 16px; }
.spec dt { font-size: 11.5px; color: var(--sumi-3); }
.spec dd { margin: 0; font-weight: 700; font-size: 15px; }
.voice-quote { margin-top: 24px; background: var(--kinari); border-radius: 14px; padding: 22px 26px; font-family: var(--hand); font-size: 18px; line-height: 1.9; position: relative; }
.voice-quote::before { content: "“"; position: absolute; top: -18px; left: 14px; font-size: 64px; color: var(--ki-light); font-family: var(--mincho); }

/* ---------- 流れ ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; counter-reset: step; }
.step { position: relative; background: var(--paper); border-radius: 16px; padding: 28px 24px 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--maru); font-weight: 700; color: var(--ki-light); font-size: 30px; line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { font-family: var(--mincho); font-size: 18px; margin: 0 0 8px; letter-spacing: .08em; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--sumi-2); line-height: 1.8; }
.step .time { display: inline-block; margin-top: 12px; font-size: 12px; background: var(--kinari); border-radius: 99px; padding: 2px 12px; color: var(--ki); font-weight: 700; }
.step:not(:nth-child(4n))::after { content: ""; position: absolute; right: -21px; top: 50%; width: 14px; height: 14px; border-top: 2px solid var(--ki-light); border-right: 2px solid var(--ki-light); transform: translateY(-50%) rotate(45deg); }
.step--after { background: var(--wakakusa); color: #fff; }
.step--after::before { color: rgba(255,255,255,.6); }
.step--after p { color: #eef3e8; }
.step--after .time { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- シミュレーター ---------- */
.sim { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.sim__form { padding: 44px 48px; }
.sim__tabs { display: inline-flex; background: var(--kinari); border-radius: 99px; padding: 4px; margin-bottom: 28px; }
.sim__tabs button { border: 0; background: transparent; padding: 10px 24px; border-radius: 99px; font-family: var(--maru); font-weight: 700; color: var(--sumi-2); }
.sim__tabs button.is-active { background: var(--sumi); color: #fff; }
.sim__pane { display: none; }
.sim__pane.is-active { display: block; animation: fade .4s; }
.field { margin-bottom: 26px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.field output { font-family: var(--maru); color: var(--ki); font-size: 20px; margin-left: 8px; }
input[type=range] { width: 100%; accent-color: var(--kaki); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-block; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 16px; font-size: 14px; background: var(--paper); transition: .2s; cursor: pointer; }
.choices input:checked + span { border-color: var(--kaki); background: #fdf0e8; color: var(--kaki-dark); font-weight: 700; }
.choices input:focus-visible + span { outline: 2px solid var(--kaki); outline-offset: 2px; }
.sim__result { background: var(--sumi); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.sim__result::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(201,155,103,.25), transparent 70%); right: -100px; top: -100px; }
.sim__result .label { font-size: 13px; letter-spacing: .2em; color: #d9cbb8; }
.sim__result .price { font-family: var(--maru); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1.3; margin: 8px 0 4px; }
.sim__result .price small { font-size: 18px; }
.sim__result .detail { font-size: 13.5px; color: #d9cbb8; margin: 14px 0 24px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; }
.sim__result .detail div { display: flex; justify-content: space-between; gap: 12px; }
.sim__result .caution { font-size: 11.5px; color: #b5a796; margin-top: 16px; line-height: 1.7; }

/* ---------- お客様の声 ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.voice { background: var(--paper); border-radius: 4px 24px 4px 24px; padding: 34px 30px 28px; box-shadow: var(--shadow); position: relative; }
.voice::after { content: ""; position: absolute; top: 0; right: 32px; width: 42px; height: 26px; background: rgba(201,155,103,.35); transform: translateY(-50%) rotate(-3deg); }
.voice p { font-family: var(--hand); font-size: 17px; line-height: 2; margin: 0 0 20px; background-image: repeating-linear-gradient(transparent, transparent 33px, var(--line) 33px, var(--line) 34px); }
.voice .who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sumi-3); border-top: 1px solid var(--line); padding-top: 16px; }
.voice .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--kinari-2); display: grid; place-items: center; font-size: 20px; }
.voice .who b { color: var(--sumi); display: block; font-size: 14px; }

/* ---------- スタッフ ---------- */
.team-photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 64px; aspect-ratio: 21/9; background: var(--kinari-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 40px 28px; color: #fff; background: linear-gradient(transparent, rgba(30,22,14,.7)); font-family: var(--mincho); font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .12em; }
.staff { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.member { background: var(--paper); border-radius: 18px; padding: 24px 16px 20px; text-align: center; box-shadow: var(--shadow); position: relative; transition: transform .3s; perspective: 800px; }
.member:hover { transform: translateY(-4px) rotate(-.6deg); }
.member .face { width: 88px; height: 88px; margin: 0 auto 12px; }
.member .role { font-size: 11.5px; color: var(--wakakusa); font-weight: 700; letter-spacing: .1em; }
.member .name { font-family: var(--mincho); font-size: 18px; font-weight: 600; letter-spacing: .1em; margin: 2px 0 2px; }
.member .yrs { font-size: 11.5px; color: var(--sumi-3); }
.member .msg { font-family: var(--hand); font-size: 14px; line-height: 1.7; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--sumi-2); min-height: 4.8em; }

/* ---------- 地域 ---------- */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.local__photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--kinari-2); }
.activities { list-style: none; padding: 0; margin: 0; }
.activities li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.activities .ic { width: 64px; height: 64px; border-radius: 16px; background: var(--paper); display: grid; place-items: center; font-size: 28px; box-shadow: var(--shadow); }
.activities h3 { margin: 0 0 4px; font-family: var(--mincho); font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.activities p { margin: 0; font-size: 14px; color: var(--sumi-2); line-height: 1.8; }

.news { margin-top: 80px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 44px; display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.news h3 { font-family: var(--mincho); font-size: 22px; margin: 0; letter-spacing: .1em; font-weight: 600; }
.news h3 small { display: block; font-family: var(--maru); font-size: 12px; color: var(--ki); letter-spacing: .3em; }
.news ul { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 110px 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; align-items: center; }
.news li:last-child { border: 0; }
.news time { color: var(--sumi-3); font-family: var(--maru); }
.news .cat { font-size: 11.5px; text-align: center; border-radius: 99px; padding: 1px 0; background: var(--kinari); color: var(--ki); font-weight: 700; }
.news .cat.ev { background: #fdf0e8; color: var(--kaki-dark); }
.news .cat.gr { background: #eef3e8; color: var(--wakakusa); }

/* ---------- 対応エリア ---------- */
.area { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.area__map { background: var(--paper); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.area__map svg { width: 100%; height: auto; }
.area__map .pulse { animation: pulse 2.4s infinite; transform-origin: 300px 220px; }
@keyframes pulse { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.4); } }
.area h3 { font-family: var(--mincho); font-size: 26px; letter-spacing: .1em; margin: 0 0 18px; line-height: 1.7; font-weight: 600; }
.area p { color: var(--sumi-2); }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.towns span { background: var(--paper); border-radius: 99px; padding: 4px 16px; font-size: 14px; border: 1px solid var(--line); }
.towns span.main { background: var(--wakakusa); color: #fff; border-color: var(--wakakusa); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--paper); border-radius: 14px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(60,40,20,.06); overflow: hidden; }
.faq summary { list-style: none; padding: 22px 64px 22px 72px; font-weight: 700; cursor: pointer; position: relative; line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 24px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--sumi); color: #fff; display: grid; place-items: center; font-family: var(--maru); font-size: 15px; }
.faq summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--sumi-3); border-bottom: 2px solid var(--sumi-3); transform: translateY(-70%) rotate(45deg); transition: .3s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 32px 24px 72px; position: relative; color: var(--sumi-2); }
.faq .a::before { content: "A"; position: absolute; left: 24px; top: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--kaki); color: #fff; display: grid; place-items: center; font-family: var(--maru); font-weight: 700; font-size: 15px; }

/* ---------- 会社概要 ---------- */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.company table { width: 100%; border-collapse: collapse; font-size: 15px; }
.company th, .company td { padding: 16px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company th { width: 7.5em; color: var(--sumi-3); font-weight: 500; }
.history { position: relative; padding-left: 28px; margin: 0; list-style: none; }
.history::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.history li { position: relative; padding: 0 0 22px; }
.history li::before { content: ""; position: absolute; left: -27px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ki-light); }
.history li:last-child::before { background: var(--kaki); border-color: var(--kaki); }
.history b { font-family: var(--maru); color: var(--ki); margin-right: 12px; }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--sumi); color: #fff; }
.contact .sec-head h2 { color: #fff; }
.contact .sec-head p { color: #d9cbb8; }
.contact__ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.way { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 28px; text-align: center; text-decoration: none; transition: .3s; display: block; }
.way:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.way .k { font-size: 13px; color: #d9cbb8; letter-spacing: .1em; }
.way .v { font-family: var(--maru); font-weight: 700; font-size: 26px; margin: 4px 0; letter-spacing: .06em; }
.way .s { font-size: 12.5px; color: #b5a796; }
.form { background: var(--paper); color: var(--sumi); border-radius: 24px; padding: 48px; max-width: 880px; margin: 0 auto; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label.f { display: block; margin-bottom: 22px; font-weight: 700; font-size: 14.5px; }
.form .req { background: var(--kaki); color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=date], .form select, .form textarea {
  display: block; width: 100%; margin-top: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; font: inherit; font-weight: 400; background: #fff; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--kaki); }
.form textarea { min-height: 140px; resize: vertical; }
.form .submit { text-align: center; margin-top: 12px; }
.form .submit .btn { padding: 18px 64px; font-size: 17px; }
.form .note { font-size: 12.5px; color: var(--sumi-3); text-align: center; margin-top: 14px; }
.form-done { display: none; text-align: center; padding: 40px 0; }
.form-done .big { font-family: var(--mincho); font-size: 24px; margin-bottom: 10px; }

/* ---------- フッター ---------- */
.footer { background: #221d18; color: #cfc3b3; padding: 64px 0 120px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo__name { color: #fff; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; line-height: 2.3; }
.footer small { display: block; margin-top: 48px; text-align: center; color: #8a7f73; font-size: 12px; }

/* スマホ用 下の固定ボタン */
.fixed-cta { display: none; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s; text-decoration: none; font-size: 18px; }
.to-top.is-show { opacity: 1; pointer-events: auto; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1080px) {
  .nav, .header__tel, .header .btn--sm { display: none; }
  .menu-btn { display: block; }
  .menu-open .nav { display: flex; position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: var(--paper); padding: 16px 20px 28px; box-shadow: var(--shadow-lg); gap: 0; }
  .menu-open .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .staff { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 860px) {
  section { padding: 84px 0; }
  .sec-head { margin-bottom: 44px; }
  .about, .local, .area, .company, .sim { grid-template-columns: 1fr; gap: 44px; }
  .sim { gap: 0; }
  .sim__form, .sim__result { padding: 32px 24px; }
  .promises, .services, .works, .voices, .contact__ways { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; gap: 20px; }
  .numbers { grid-template-columns: repeat(2, 1fr); margin-top: 80px; }
  .num:nth-child(3)::before { display: none; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .small-repair { grid-template-columns: 1fr; padding: 36px 28px; }
  .news { grid-template-columns: 1fr; padding: 28px 24px; gap: 12px; }
  .news li { grid-template-columns: 96px 80px; }
  .news li a { grid-column: 1 / -1; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .modal__body { padding: 28px 24px 32px; }
  .form { padding: 32px 22px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .team-photo { aspect-ratio: 4/3; }
  .about__photo .stamp { right: 8px; bottom: -36px; width: 112px; height: 112px; }
  .about__photo .stamp b { font-size: 28px; }
  .fixed-cta { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); box-shadow: 0 -6px 20px rgba(60,40,20,.12); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
  .fixed-cta a { text-decoration: none; text-align: center; border-radius: 12px; padding: 8px 4px; font-size: 12px; font-weight: 700; line-height: 1.4; font-family: var(--maru); }
  .fixed-cta a b { display: block; font-size: 18px; }
  .fixed-cta .tel { background: var(--kinari); color: var(--ki); }
  .fixed-cta .ln { background: var(--line-green); color: #fff; }
  .fixed-cta .cn { background: var(--kaki); color: #fff; }
  .to-top { bottom: 92px; }
  .sample-flag { bottom: 84px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .header__inner { height: 64px; }
  .menu-open .nav { inset: 64px 0 auto 0; }
  .logo svg { width: 38px; height: 38px; }
  .logo__name { font-size: 19px; }
  .hero { min-height: 88svh; }
  .hero__inner { flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 28px 0 36px; gap: 24px; }
  .hero__copy { font-size: 25px; line-height: 1.6; }
  .hero__copy span:nth-child(2) { padding-top: 1.2em; }
  .hero__lead { position: static; align-self: stretch; }
  .hero::after { background: linear-gradient(0deg, rgba(30,22,14,.75), rgba(30,22,14,.1) 55%), linear-gradient(270deg, rgba(30,22,14,.4), transparent 50%); }
  .notice { font-size: 12.5px; }
  .sample-flag { display: none; }
  .hero__lead { left: 0; right: 0; bottom: 40px; padding: 0; }
  .hero__lead p { font-size: 14px; }
  .hero__scroll { display: none; }
  .works { grid-template-columns: 1fr; }
  .staff { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member { padding: 18px 10px; }
  .num .val { font-size: 36px; }
  .sim__result .price { font-size: 28px; }
  .num { padding: 26px 12px; }
  .num .note { font-size: 11px; }
  .flow { grid-template-columns: 1fr; }
  .faq summary { padding: 18px 48px 18px 60px; font-size: 15px; }
  .faq summary::before { left: 16px; top: 16px; }
  .faq .a { padding: 0 20px 20px 60px; }
  .faq .a::before { left: 16px; }
  .company th { width: 6em; }
  .team-photo figcaption { padding: 40px 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__copy span, .hero__lead { opacity: 1; transform: none; }
}

/* 追加調整 */
.news a { text-decoration: none; transition: color .2s; }
.news a:hover { color: var(--kaki); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1280px) and (min-width: 1081px) {
  .header__tel { display: none; }
  .nav a { padding: 8px 10px; }
}
