/* 028 KASANE ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #ffffff;
  --c-gray: #f0f0ee;
  --c-ink: #111111;
  --c-line: #cfcfcb;
  --c-accent: #111111;
  --c-accent-text: #111111;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Archivo", sans-serif;
  --header-h: 68px;
  --gut: 20px;
}
@media (min-width: 1080px) { :root { --header-h: 84px; --gut: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.head { margin-bottom: 40px; }
.head__en { font-family: var(--font-en); font-weight: 800; font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: -.02em; color: var(--c-ink); }
.head__ja { font-weight: 700; font-size: 17px; color: var(--c-ink); margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.head__ja::before { content: ""; width: 28px; height: 2px; background: var(--c-ink); flex: none; }
.head--center { text-align: center; }
.head--center .head__ja { justify-content: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .3s, color .3s; }
.btn--ink { background: var(--c-ink); color: #fff; border: 1px solid var(--c-ink); }
.btn--ink:hover, .btn--ink:focus-visible { background: #fff; color: var(--c-ink); }
.btn--white { background: #fff; color: var(--c-ink); border: 1px solid #fff; }
.btn--white:hover, .btn--white:focus-visible { background: transparent; color: #fff; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 var(--gut); }
.logo { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding-top: 10px; font-family: var(--font-en); font-weight: 800; font-size: 24px; letter-spacing: .06em; color: var(--c-ink); text-decoration: none; white-space: nowrap; flex: none; }
.logo small { font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--c-sub); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-ink); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-ink); padding: 8px 20px 24px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 56px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
@media (max-width: 479px) { .logo small { display: none; } }
@media (min-width: 1080px) {
  .gnav { display: flex; gap: 32px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: .04em; text-decoration: none; color: var(--c-ink); }
  .gnav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .header__btn { margin-left: 0; padding: 0 24px; }
  .spmenu { display: none; }
}

/* ===== 演出①：全画面の写真 → 角丸カード（A03） ===== */
/* 動かない版は、最初から余白のある角丸カード */
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--c-bg);
  --ct: calc(var(--header-h) + 8px); --cb: 230px; }
.hero__photo { position: absolute; inset: 0; clip-path: inset(var(--ct) var(--gut) var(--cb) var(--gut) round 16px); background: var(--c-gray); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .6)); opacity: 0; transition: opacity .5s; }
.hero__copy { position: absolute; left: var(--gut); right: var(--gut); bottom: 32px; color: var(--c-ink); transition: color .5s; }
.hero__en { font-family: var(--font-en); font-weight: 800; font-size: clamp(40px, 7.4vw, 112px); line-height: .98; letter-spacing: -.03em; }
.hero__title { font-weight: 700; font-size: clamp(17px, 1.8vw, 22px); margin-top: 14px; }
.hero__scroll { position: absolute; right: var(--gut); bottom: 36px; font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: .2em; writing-mode: vertical-rl; color: var(--c-sub); display: none; }
@media (min-width: 1080px) { .hero__stage { --cb: 300px; } .hero__scroll { display: block; } }
/* 動く版：最初は全画面。白い文字を暗いグラデの上に */
.is-full .hero__photo::after { opacity: 1; }
.is-full .hero__copy { color: #fff; }
.is-full .hero__scroll { color: #fff; }

/* ===== 考え方 ===== */
.concept { padding: 96px var(--gut); }
.concept__inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 8px; }
.concept__text p + p { margin-top: 16px; }
.concept__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; border-top: 1px solid var(--c-ink); }
.concept__nums li { padding-top: 16px; font-size: 15px; color: var(--c-sub); }
.num { font-family: var(--font-en); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; color: var(--c-ink); }
.num small { font-family: var(--font); font-size: 15px; margin-left: 4px; }
@media (min-width: 1080px) {
  .concept { padding: 160px var(--gut); }
  .concept__inner { grid-template-columns: 5fr 6fr; column-gap: 80px; }
  .concept__nums { grid-column: 1 / -1; margin-top: 80px; }
}

/* ===== 演出②：ビフォー・アフター（G02） ===== */
.ba-sec { padding: 96px var(--gut); background: var(--c-gray); }
.ba { max-width: 1120px; margin: 0 auto; display: grid; gap: 16px; }
.ba__fig { position: relative; }
.ba__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; background: #ddd; }
.ba__fig figcaption { position: absolute; top: 14px; left: 14px; padding: 2px 14px; border-radius: 999px; background: var(--c-ink); color: #fff; font-family: var(--font-en); font-weight: 800; font-size: 15px; letter-spacing: .1em; }
.ba__fig--before { order: -1; }
.ba__handle, .ba__range { display: none; }
/* JS があるとき：重ねて、縦線で切り替える */
.has-js .ba { display: block; position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; }
.has-js .ba__fig { position: absolute; inset: 0; }
.has-js .ba__fig img { height: 100%; border-radius: 0; }
.has-js .ba__fig--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.has-js .ba__fig--after figcaption { left: auto; right: 14px; background: #fff; color: var(--c-ink); }
.has-js .ba__handle { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--c-ink); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.has-js .ba__range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba__range:focus-visible) .ba__handle span { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.ba__data { max-width: 1120px; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; }
.ba__data div { display: flex; gap: 10px; }
.ba__data dt { font-weight: 700; color: var(--c-ink); }
@media (max-width: 767px) { .has-js .ba { aspect-ratio: 4 / 3; } }
@media (min-width: 1080px) { .ba-sec { padding: 140px var(--gut); } }

/* ===== 演出③：施工例（C02）＝動かない版は指で横に送る一覧 ===== */
.works { padding: 96px 0; overflow: hidden; }
.works__head { padding: 0 var(--gut); }
.works__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 16px; }
.work { flex: 0 0 72%; scroll-snap-align: center; }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--c-gray); }
.work__no { font-family: var(--font-en); font-weight: 800; font-size: 15px; color: var(--c-ink); margin-top: 12px; }
.work h3 { font-weight: 700; font-size: 19px; color: var(--c-ink); }
.work p:last-child { font-size: 15px; color: var(--c-sub); }
.works__ruler { margin: 24px var(--gut) 0; height: 36px; position: relative;
  background: repeating-linear-gradient(90deg, var(--c-ink) 0 1px, transparent 1px 12px) bottom / 100% 10px no-repeat,
              repeating-linear-gradient(90deg, var(--c-ink) 0 1px, transparent 1px 60px) bottom / 100% 18px no-repeat; }
.works__count { position: absolute; right: 0; top: -6px; background: var(--c-bg); padding-left: 10px; font-family: var(--font-en); font-weight: 500; font-size: 15px; color: var(--c-ink); }
.works__count b { font-weight: 800; font-size: 20px; }
@media (min-width: 768px) { .work { flex-basis: 40%; } }
@media (min-width: 1080px) { .work { flex-basis: 28%; } }
/* 動く版（PC）：画面を止め、円柱の内側に貼ったように並べて横に流す */
.is-motion-pc .works { padding: 0; }
.is-motion-pc .works__pin { height: 100vh; padding-top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; }
.is-motion-pc .works__head { margin-bottom: 16px; position: relative; z-index: 2; background: var(--c-bg); width: fit-content; padding-right: 24px; }
.is-motion-pc .works__head .head__en { font-size: 64px; }
.is-motion-pc .works__view { perspective: 1100px; perspective-origin: 50% 40%; flex: 1; min-height: 0; }
.is-motion-pc .works__track { overflow: visible; width: max-content; padding: 0 39vw; gap: 2.4vw; transform-style: preserve-3d; }
.is-motion-pc .work { flex: 0 0 22vw; will-change: transform; }
.is-motion-pc .work img { aspect-ratio: auto; height: calc(100vh - var(--header-h) - 420px); min-height: 260px; }
.is-motion-pc .works__ruler { margin-bottom: 32px; position: relative; z-index: 2; background-color: var(--c-bg); }
.is-motion-pc .works__view { position: relative; z-index: 1; }

/* ===== 進め方 ===== */
.flow { padding: 96px var(--gut); background: var(--c-gray); }
.flow__list { display: grid; gap: 0; max-width: 1240px; margin: 0 auto; counter-reset: f; }
.flow__list li { padding: 24px 0; border-top: 1px solid var(--c-ink); }
.flow__no { font-family: var(--font-en); font-weight: 800; font-size: 40px; line-height: 1; color: var(--c-ink); }
.flow__list h3 { font-weight: 700; font-size: 20px; color: var(--c-ink); margin: 12px 0 6px; }
@media (min-width: 900px) { .flow { padding: 140px var(--gut); } .flow__list { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* ===== 相談会 ===== */
.contact { background: var(--c-ink); color: #e5e7eb; padding: 112px var(--gut); text-align: center; }
.contact__en { font-family: var(--font-en); font-weight: 800; font-size: clamp(56px, 11vw, 160px); line-height: 1; color: #fff; letter-spacing: -.03em; }
.contact__title { font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); color: #fff; margin: 20px 0 12px; }
.contact p { max-width: 36em; margin-left: auto; margin-right: auto; }
.contact .btn { margin-top: 32px; }
.contact__tel { margin-top: 20px; font-size: 15px; color: #d1d5db; }

/* ===== フッター ===== */
.footer { padding: 64px var(--gut) 28px; font-size: 15px; }
.footer__inner { display: grid; gap: 20px; max-width: 1240px; margin: 0 auto; }
.footer__logo { font-family: var(--font-en); font-weight: 800; font-size: 40px; color: var(--c-ink); letter-spacing: .04em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--c-ink); }
.footer__fiction { margin-top: 32px; text-align: center; color: var(--c-sub); }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
