/* 加盟店ホームページ(hp-kit) 共通デザイン — 三輪塗装を見本に作成
   色: 石の白 / 墨藍 / 藍 / 真鍮(細い線と小さな印だけ)
   書体: しっぽり明朝 B1(見出し・縦書き) + Zen Kaku Gothic New(本文) */
:root {
  --stone: #eceeec;
  --stone-hi: #f7f8f7;
  --stone-lo: #dde1df;
  --ink: #1c2530;
  --ink-soft: #55606b;
  --ai: #2c4a6b;
  --ai-deep: #1b2f45;
  --night: #17212c;
  --brass: #b0915e;
  --line: rgba(28, 37, 48, .14);
  --line-w: rgba(255, 255, 255, .28);
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --gutter: 22px;
  --max: 1180px;
  --head-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0;
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--stone-hi), var(--stone) 30%, var(--stone-lo));
  overflow-x: hidden;
  word-break: auto-phrase;
  line-break: strict;
  padding-bottom: 74px;
  -webkit-font-smoothing: antialiased;
}
body.is-menu { overflow: hidden; }
/* 塗り壁のような、ごく細かいざらつき */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .12  0 0 0 0 .14  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, footer { position: relative; z-index: 1; }
img, video { display: block; max-width: 100%; }
a { color: var(--ai); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.nw { white-space: nowrap; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
[hidden] { display: none !important; }

/* ---------- ロゴ(本人のロゴが届いたら .logo の中を img に差し替える) ---------- */
.logo { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.logo__name { display: flex; flex-direction: column; font: 600 21px/1.1 var(--mincho); letter-spacing: .2em; }
.logo__name small { font: 500 10px/1.6 var(--gothic); letter-spacing: .2em; opacity: .7; margin-top: 4px; }
.logo img { display: block; height: 44px; width: auto; }
/* ロゴは元の青のまま。写真の上では白い下地に乗せて読みやすく */
.logo { position: relative; isolation: isolate; padding: 4px 8px; }
/* 写真の上では、ロゴのまわりをふんわり白く光らせ、すぐ後ろだけ少しぼかして浮かせる */
.logo::before {
  content: ""; position: absolute; inset: -14px -26px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.78) 0%, rgba(255,255,255,.5) 45%, rgba(255,255,255,0) 72%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 72%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 72%);
  transition: opacity .4s var(--ease);
}
.site-head .logo img { filter: drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 10px rgba(255,255,255,.75)); }
.site-head.is-solid .logo::before { opacity: 0; }
.site-head.is-solid .logo img { filter: none; }
.logo--foot img { height: 64px; filter: drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 10px rgba(255,255,255,.6)); }

/* ---------- 入った瞬間: 白い壁にロゴ → ひと塗りで写真の町へ ---------- */
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.intro__wall { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__logo {
  position: absolute; left: 50%; top: 50%;
  width: min(62vw, 360px); height: auto;
  transform: translate(-50%, -50%) scale(.96);
  opacity: 0;
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.intro.is-logo .intro__logo { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.intro.is-wipe .intro__logo { opacity: 0; transform: translate(-50%, -50%) scale(1.03); transition-duration: .35s; }
.intro.is-gone { display: none; }
.no-intro .intro { display: none; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-head.is-solid {
  color: var(--ink);
  background: rgba(247,248,247,.88);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.gnav { display: none; }
.gnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gnav a {
  position: relative;
  display: block; padding: 10px 12px;
  color: inherit; text-decoration: none;
  font: 500 14px/1 var(--gothic); letter-spacing: .12em;
}
.gnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.gnav a:hover::after { transform: scaleX(1); }
.head-cta {
  display: none;
  align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  color: inherit; text-decoration: none;
  font: 500 14px/1 var(--gothic); letter-spacing: .12em;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.site-head.is-solid .head-cta { color: #fff; background: var(--ai); border-color: var(--ai); }
.burger {
  -webkit-appearance: none; appearance: none;
  position: relative;
  width: 48px; height: 48px; margin-right: -10px;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; right: 18px; }
.burger span:nth-child(3) { top: 30px; }
.is-menu .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-menu .burger span:nth-child(2) { opacity: 0; }
.is-menu .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.is-menu .site-head { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* スマホのメニュー */
.spnav {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head-h) + 10px) 34px 40px;
  color: #fff;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(62,93,124,.55), transparent 60%),
    linear-gradient(180deg, #1d2b3a, var(--night));
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.is-menu .spnav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.spnav ul { margin: 0 0 34px; padding: 0; list-style: none; }
.spnav li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--n) * 50ms + 80ms); }
.is-menu .spnav li { opacity: 1; transform: none; }
.spnav a.spnav__link {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  color: #fff; text-decoration: none;
  font: 600 22px/1.4 var(--mincho); letter-spacing: .14em;
  border-bottom: 1px solid var(--line-w);
}
.spnav .btn { width: 100%; margin-top: 10px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 620px; max-height: 1080px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: var(--night);
}
.hero__media { position: absolute; inset: 0; background: var(--night) center / cover no-repeat; }
.hero__media video, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* PC: 写真をゆっくり寄せながら、重ねて切り替える */
.slide { opacity: 0; transition: opacity 1.8s var(--ease); will-change: opacity, transform; }
.slide.is-on { opacity: 1; animation: kenburns 8s linear both; }
.slide.is-on:nth-child(even) { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.1) translate3d(1.5%, 0, 0); } to { transform: scale(1.01) translate3d(0, 0, 0); } }
@keyframes kenburns2 { from { transform: scale(1.01) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.hero__dots { position: absolute; right: var(--gutter); bottom: 26px; z-index: 4; display: flex; gap: 8px; }
.hero__dots button { -webkit-appearance: none; appearance: none; width: 28px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(255,255,255,.45); }
.hero__dots button[aria-current="true"]::after { background: #fff; }
/* 写真が白っぽいので、PCは少し暗く敷いて白い文字を読みやすく */
@media (min-width: 768px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(14,20,28,.45) 0%, rgba(14,20,28,0) 18%),
      linear-gradient(270deg, rgba(14,20,28,.62) 0%, rgba(14,20,28,.3) 26%, rgba(14,20,28,0) 48%),
      linear-gradient(30deg, rgba(14,20,28,.62) 0%, rgba(14,20,28,.2) 30%, rgba(14,20,28,0) 50%);
  }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(14,20,28,.55) 0%, rgba(14,20,28,0) 24%),
    linear-gradient(0deg, rgba(14,20,28,.85) 0%, rgba(14,20,28,.35) 40%, rgba(14,20,28,0) 64%),
    linear-gradient(270deg, rgba(14,20,28,.6) 0%, rgba(14,20,28,.15) 40%, rgba(14,20,28,0) 60%);
}
.hero__inner {
  position: relative; z-index: 3;
  height: 100%;
  max-width: var(--max); margin-inline: auto;
}
.hero__title {
  --fs: clamp(44px, 12.4vw, 104px);
  position: absolute;
  top: calc(var(--head-h) + 30px); right: var(--gutter);
  margin: 0;
  display: flex; flex-direction: row-reverse; gap: .3em;
  font: 600 var(--fs)/1 var(--mincho);
  letter-spacing: .14em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__line { writing-mode: vertical-rl; text-orientation: upright; }
.hero__line:nth-child(2) { padding-top: 1.6em; }
.ch { display: inline-block; opacity: 0; transform: translateY(-.25em); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.is-in .ch { opacity: 1; transform: none; filter: none; }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(34px, 7vh, 72px);
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s;
}
.hero.is-done .hero__foot { opacity: 1; transform: none; }
.hero__lead { margin: 0 0 22px; font: 500 clamp(19px, 5vw, 24px)/1.75 var(--mincho); letter-spacing: .1em; }
.hero__sub { display: block; margin-top: 8px; font: 400 13px/1.7 var(--gothic); letter-spacing: .12em; opacity: .8; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__scroll { position: absolute; left: 50%; bottom: 0; width: 1px; height: 64px; display: none; overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.8)); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- ボタン ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0; border-radius: 2px;
  font: 500 16px/1.2 var(--gothic);
  letter-spacing: .12em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--light { color: var(--ai-deep); background: linear-gradient(180deg, #fff, #e9ecee); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.btn--line-w { color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--line-w:hover { background: rgba(255,255,255,.16); }
.btn--ink { color: #fff; background: linear-gradient(180deg, #34567a, var(--ai) 50%, var(--ai-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px -14px rgba(27,47,69,.9); }
.btn--ink:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 30px -12px rgba(27,47,69,.95); }
.btn--ghost { color: var(--ai-deep); background: linear-gradient(180deg, #fff, var(--stone-hi)); box-shadow: inset 0 0 0 1px rgba(44,74,107,.5); }
.btn--green, .btn--line { color: #fff; background: linear-gradient(180deg, #22c060, #06a148); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 26px -14px rgba(6,120,50,.9); }

/* ---------- 見出し ---------- */
.sec { padding: clamp(84px, 13vw, 160px) 0; }
.sec__title {
  margin: 0 0 26px;
  font: 600 clamp(28px, 7.2vw, 48px)/1.45 var(--mincho);
  letter-spacing: .1em;
}
.sec__title::before { content: ""; display: block; width: 40px; height: 1px; margin-bottom: 26px; background: var(--brass); }
.sec__lead { margin: 0 0 40px; color: var(--ink-soft); max-width: 34em; }

/* ---------- 会社について ---------- */
.about__grid { display: grid; gap: 56px; align-items: center; }
.about__media { position: relative; perspective: 1200px; max-width: 320px; width: 100%; margin-inline: auto; }
.about__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  transform: rotateY(-7deg);
  transform-origin: 70% 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 40px 50px 70px -40px rgba(23,33,44,.6), 0 12px 24px -14px rgba(0,0,0,.35);
  background: var(--stone-lo);
}
.about__frame video, .about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__media::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 1px solid rgba(176,145,94,.55); transform: rotateY(-7deg); transform-origin: 70% 50%; }
.about__quote { margin: 0 0 30px; font: 600 clamp(24px, 6.4vw, 36px)/1.7 var(--mincho); letter-spacing: .08em; color: var(--ai-deep); }
.about__body > p { margin: 0 0 1.2em; max-width: 34em; }
.owner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.owner b { font: 600 22px/1.4 var(--mincho); letter-spacing: .2em; }
.owner span { color: var(--ink-soft); font-size: 13px; letter-spacing: .12em; }
.history { list-style: none; margin: 40px 0 0; padding: 0; }
.history li { display: grid; grid-template-columns: 6em 1fr; gap: 0 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.history li:last-child { border-bottom: 1px solid var(--line); }
.history b { font: 600 15px/1.8 var(--mincho); color: var(--ai); letter-spacing: .08em; }
.history span { font-size: 15px; }

/* ---------- 塗り重ね(3D) ---------- */
.layers { background: linear-gradient(180deg, transparent, rgba(44,74,107,.05) 45%, transparent); }
.layers__grid { display: grid; gap: 8px; align-items: center; grid-template-areas: "head" "stack" "ctrl"; }
.layers__head { grid-area: head; }
.layers__ctrl { grid-area: ctrl; }
.stack { grid-area: stack; position: relative; overflow: hidden; height: 320px; perspective: 1200px; perspective-origin: 50% 15%; touch-action: manipulation; }
.stack__rig { position: absolute; left: 50%; top: 58%; width: 220px; height: 220px; margin: -110px 0 0 -110px; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-40deg); }
.slab {
  -webkit-appearance: none; appearance: none;
  position: absolute; inset: 0;
  border: 0; padding: 0; margin: 0;
  border-radius: 3px;
  cursor: pointer;
  transform: translateZ(calc(var(--i) * 24px));
  transition: transform .6s var(--ease), filter .4s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), -14px 16px 30px -12px rgba(15,25,35,.45);
}
.slab[data-l="0"] { background: linear-gradient(135deg, #a7a49d, #8d8a84); }
.slab[data-l="1"] { background: linear-gradient(135deg, #c9c6bf, #b2afa7); }
.slab[data-l="2"] { background: linear-gradient(135deg, #f1efea, #d9d6cf); }
.slab[data-l="3"] { background: linear-gradient(135deg, #6f88a4, #4c6683); }
.slab[data-l="4"] { background: linear-gradient(135deg, #3d5d80, #223a55); }
.slab[aria-pressed="true"] { transform: translateZ(calc(var(--i) * 24px + 64px)); }
.stack.has-pick .slab:not([aria-pressed="true"]) { filter: saturate(.5) brightness(.95) opacity(.85); }
.layer-steps { display: flex; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.layer-steps button {
  -webkit-appearance: none; appearance: none;
  position: relative;
  min-height: 46px; padding: 0 12px;
  border: 0; background: none;
  font: 500 14px/1 var(--gothic); letter-spacing: .08em; color: var(--ink-soft);
  cursor: pointer;
}
.layer-steps button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ai); transform: scaleX(0); transition: transform .35s var(--ease); }
.layer-steps button[aria-pressed="true"] { color: var(--ai-deep); }
.layer-steps button[aria-pressed="true"]::after { transform: scaleX(1); }
.layer-note { min-height: 190px; }
.layer-note h3 { margin: 0 0 10px; font: 600 24px/1.5 var(--mincho); letter-spacing: .1em; color: var(--ai-deep); }
.layer-note p { margin: 0; }
.layer-note small { display: block; margin-top: 14px; color: var(--ink-soft); font-size: 12px; }

/* ---------- 工事 ---------- */
.services__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.svc { margin: 0; }
.svc__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; box-shadow: 0 30px 50px -36px rgba(23,33,44,.7); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.04); }
.svc__body { padding-top: 18px; }
.svc h3 { margin: 0 0 6px; font: 600 21px/1.5 var(--mincho); letter-spacing: .12em; }
.svc p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ink-soft); }
.buildings { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 44px 0 0; padding: 22px 0 0; list-style: none; font-size: 15px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.buildings li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--brass); transform: rotate(45deg) translateY(-2px); }

/* 写真はイメージです(写真の中・右下に小さく) */
.img-note { position: absolute; right: 10px; bottom: 8px; font: 400 10px/1.4 var(--gothic); letter-spacing: .1em; color: rgba(255,255,255,.9); text-shadow: 0 1px 4px rgba(0,0,0,.7); pointer-events: none; }

/* ---------- 施工事例 ---------- */
.works__grid { display: grid; gap: 40px; }
.work { position: relative; margin: 0; }
.compare {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--stone-lo);
  --pos: 50%;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  box-shadow: 0 30px 50px -36px rgba(23,33,44,.7);
}
.compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before.is-aged { filter: grayscale(.8) sepia(.3) contrast(.8) brightness(.86); }
.compare__grime { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: radial-gradient(ellipse at 20% 85%, rgba(70,80,50,.35), transparent 50%), radial-gradient(ellipse at 80% 30%, rgba(60,50,40,.22), transparent 45%); mix-blend-mode: multiply; pointer-events: none; }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgba(255,255,255,.9); pointer-events: none; }
.compare__knob {
  position: absolute; top: 50%; left: var(--pos);
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.9);
  background: rgba(23,33,44,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; cursor: ew-resize; touch-action: none;
  display: grid; place-items: center;
}
.compare__knob svg { width: 22px; height: 22px; }
.compare__tag { position: absolute; top: 14px; font: 500 11px/1 var(--gothic); letter-spacing: .2em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }
.compare__tag--b { left: 14px; }
.compare__tag--a { right: 14px; }
.work figcaption { padding: 16px 2px 0; }
.work figcaption b { display: block; font: 600 17px/1.6 var(--mincho); letter-spacing: .08em; }
.work figcaption span { font-size: 13px; color: var(--ink-soft); }
.work figcaption p { margin: 6px 0 0; font-size: 14px; }

/* ---------- よくある質問 ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: flex-start; padding: 22px 2px; font: 600 17px/1.7 var(--mincho); letter-spacing: .06em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "問"; flex: none; font: 600 14px/2 var(--mincho); color: var(--brass); }
.faq summary::after { content: ""; flex: none; margin: 10px 4px 0 auto; width: 9px; height: 9px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { margin: 0; padding: 0 2px 24px 32px; color: var(--ink-soft); }

/* ---------- ご相談 ---------- */
.contact { color: #fff; background: radial-gradient(900px 500px at 90% 0%, rgba(62,93,124,.45), transparent 60%), linear-gradient(180deg, #1d2b3a, var(--night)); }
.contact .sec__lead { color: rgba(255,255,255,.72); }
.contact__grid { display: grid; gap: 30px; }
.call-card { padding: 4px 0 28px; border-bottom: 1px solid var(--line-w); }
.call-card h3 { margin: 0 0 12px; font: 500 14px/1.6 var(--gothic); letter-spacing: .14em; opacity: .75; }
.call-card__btn {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  min-height: 84px; padding: 14px 18px; border-radius: 12px;
  color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #4a74a6, var(--ai) 55%, var(--ai-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 0 #10202f, 0 22px 40px -18px rgba(0,0,0,.8);
  transition: transform .12s ease, box-shadow .12s ease;
}
.call-card__btn:hover { filter: brightness(1.06); }
.call-card__btn:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 #10202f, 0 10px 20px -12px rgba(0,0,0,.8); }
.call-card__icon { position: relative; flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--ai); background: #fff; }
.call-card__icon svg { width: 26px; height: 26px; }
.call-card__icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); animation: callRing 2.2s ease-out infinite; }
@keyframes callRing { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.call-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.call-card__text b { font: 700 clamp(18px, 5vw, 21px)/1.3 var(--gothic); letter-spacing: .08em; white-space: nowrap; }
.call-card__text small { font-size: 12px; opacity: .85; letter-spacing: .04em; }
.call-card__arrow { margin-left: auto; font-size: 30px; line-height: 1; opacity: .8; }
.form { padding: 30px 22px; border-radius: 3px; color: var(--ink); background: linear-gradient(180deg, #fbfbfa, var(--stone)); box-shadow: inset 0 1px 0 #fff, 0 40px 70px -40px rgba(0,0,0,.7); }
.field { margin: 0 0 20px; }
.field > label, .field > .label { display: block; font-weight: 500; margin-bottom: 8px; letter-spacing: .08em; }
.field .req { display: inline-block; margin-left: 10px; font-size: 11px; color: var(--brass); letter-spacing: .14em; vertical-align: 1px; }
.field .hint { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 400; letter-spacing: .04em; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 2px; border: 1px solid rgba(28,37,48,.22); background: #fff; font: 400 17px/1.5 var(--gothic); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(44,74,107,.18); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds label { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 2px; border: 1px solid rgba(28,37,48,.22); background: #fff; font-weight: 500; cursor: pointer; letter-spacing: .06em; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds label:has(input:checked) { background: var(--ai); border-color: var(--ai); color: #fff; }
.kinds label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 6px; }
.form__error { margin: 0 0 14px; color: #a8261b; font-weight: 500; }
.form__done { text-align: center; padding: 34px 6px; }
.form__done h3 { margin: 0 0 12px; font: 600 26px/1.5 var(--mincho); letter-spacing: .12em; color: var(--ai-deep); }

/* ---------- フッター ---------- */
.site-foot { padding: 64px 0 44px; color: rgba(255,255,255,.82); background: #111a23; }
.site-foot .logo { margin-bottom: 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 30px; padding: 0 0 26px; list-style: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-nav a { color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .1em; }
.site-foot dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 30px; font-size: 14px; }
.site-foot dt { opacity: .55; letter-spacing: .1em; }
.site-foot dd { margin: 0; }
.site-foot dd a { color: #fff; }
.site-foot small { opacity: .45; font-size: 11px; letter-spacing: .1em; }

/* ---------- スマホ下部の固定ボタン ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,248,247,.9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
.dock.is-on { transform: none; }
.dock .btn { flex: 1; min-height: 52px; padding: 0 10px; font-size: 15px; }

/* ---------- 少しずつ現れる(各ブロック一度だけ) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }


/* ---------- 考え方の帯(ローラーの写真) ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; min-height: 78svh; display: flex; align-items: center; color: var(--ink); }
.band__img {
  position: absolute; inset: -12% 0; z-index: -1;
  background: url("../demo/band-roller.jpg") 72% center / cover no-repeat;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(236,238,236,.92) 0%, rgba(236,238,236,.6) 46%, rgba(236,238,236,0) 70%); }
@media (max-width: 767px) {
  .band { align-items: flex-start; }
  .band__img { background-position: 64% 80%; }
  .band::after { background: linear-gradient(180deg, rgba(236,238,236,.95) 0%, rgba(236,238,236,.85) 42%, rgba(236,238,236,0) 66%); }
  .band__inner { padding: 64px 0; }
}
.band__inner { padding: 90px 0; }
.band__text { margin: 0 0 18px; font: 600 clamp(30px, 8vw, 60px)/1.5 var(--mincho); letter-spacing: .12em; color: var(--ai-deep); }
.band__sub { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ご相談の背景にサイディングの壁 */
.contact { background: linear-gradient(180deg, rgba(29,43,58,.9), rgba(23,33,44,.96)), url("../demo/bg-siding.jpg") center / cover no-repeat; }

/* ---------- タブレット・PC ---------- */
@media (min-width: 768px) {
  :root { --gutter: 40px; --head-h: 80px; }
  .logo img { height: 52px; }
  body { padding-bottom: 0; }
  .dock { display: none; }
  .hero__title { --fs: clamp(64px, 8.2vw, 116px); top: 50%; right: calc(var(--gutter) + 3%); transform: translateY(-50%); }
    .hero__foot { right: auto; max-width: 520px; bottom: clamp(56px, 10vh, 110px); }
  .hero__scroll { display: block; }
  .about__grid { grid-template-columns: 5fr 6fr; gap: 96px; }
  .about__media { max-width: 440px; }
  .layers__grid { grid-template-columns: 1fr 1fr; gap: 0 72px; grid-template-areas: "head stack" "ctrl stack"; }
  .stack { height: 480px; }
  .stack__rig { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .services__list { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .band { min-height: 70vh; }
  .works__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .contact__grid { grid-template-columns: 4fr 7fr; align-items: start; gap: 64px; }
  .contact__grid:has(> .call-card[hidden]) { grid-template-columns: minmax(0, 760px); }
  .call-card { position: sticky; top: calc(var(--head-h) + 20px); }
  .form { padding: 44px; }
}
@media (min-width: 1024px) {
  .stack__rig { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
  .gnav { display: block; margin-left: auto; }
  .head-cta { display: inline-flex; }
  .burger, .spnav { display: none; }
  .services__list { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .services__list .svc:nth-child(even) { margin-top: 56px; }
}
@media (min-width: 1100px) {
  .works__grid { grid-template-columns: repeat(3, 1fr); }
  .works__grid .work:nth-child(3n+2) { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.is-on { animation: none; }
  .intro { display: none; }
  .call-card__icon::after { animation: none; }
  .ch, .hero__foot, .reveal, .slab, .spnav, .spnav li { transition: none; }
  .hero__scroll span { animation: none; }
}

/* 2026-10-09: 360px 幅で、スクロール中の動き(写真の寄り・カードの奥行き)が数px横にはみ出して横スクロールが出ていた → ページ全体で横は切る */
html { overflow-x: clip; }
