@charset "utf-8";

/* =========================================================
   Secret Custom W・F・B
   0. tokens / 1. base / 2. header / 3. hero / 4. stance
   5. build / 6. service / 7. order / 8. builder / 9. faq
   10. contact / 11. footer / 12. lightbox / 13. motion
   ========================================================= */

/* ---------- 0. tokens ---------- */
:root {
  --void:      #0a0908;   /* 工房の黒（暖色寄り） */
  --void-2:    #100f0e;
  --steel:     #16181c;   /* 鋼板の黒（寒色寄り） */
  --line:      #2c2a26;
  --paper:     #ece7dc;
  --text:      #cfcabf;
  --mute:      #949087;
  --brass:     #c8912f;   /* 真鍮 */
  --brass-lt:  #e8c078;
  --flake:     #12c08f;   /* 実際の塗装フレークの緑 */
  --line-green:#06c755;

  /* 排気管の焼け色。ページ全体で2箇所だけ使う */
  --burn: linear-gradient(90deg, #7a3cff 0%, #3a6bff 34%, #12c08f 62%, #c8912f 100%);

  --gut: clamp(1.35rem, 6vw, 6rem);
  --sec: clamp(4.5rem, 11vw, 9rem);
  --bar-h: 62px;

  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --lat: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
}

/* ---------- 1. base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--jp);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.28; }
p  { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 2px solid var(--brass-lt);
  outline-offset: 3px;
}

section[id] { scroll-margin-top: calc(var(--bar-h) + 12px); }

.skip {
  position: fixed; z-index: 999; top: 8px; left: 8px;
  transform: translateY(-160%);
  background: var(--brass); color: #0a0908;
  padding: .7rem 1.1rem; font-weight: 700;
  transition: transform .18s ease;
}
.skip:focus { transform: none; }

/* 見出しの2系統。和文と欧文で別スケールを持たせる */
.jp-xl {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
  line-height: 1.45;
  text-wrap: pretty;
  letter-spacing: -.005em;
  color: #fff;
}
.lat-xl {
  font-family: var(--lat);
  font-weight: 900;
  font-size: clamp(2.7rem, 7.5vw, 5.6rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
}

/* 節見出し（ナビのアンカー名と対応する道標） */
.rule {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 clamp(1.6rem, 3.6vw, 3rem);
}
.rule span {
  font: 700 .74rem/1 var(--lat);
  letter-spacing: .34em;
  color: var(--brass);
  white-space: nowrap;
}
.rule::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}
.rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- 2. header ---------- */
.bar {
  position: fixed; z-index: 60; inset: 0 0 auto;
  height: var(--bar-h);
  padding: 0 var(--gut);
  display: flex; align-items: center; gap: 1.5rem;
  background: rgba(10, 9, 8, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.bar.is-stuck {
  background: rgba(10, 9, 8, .94);
  border-bottom-color: var(--line);
}

.mark { margin-right: auto; line-height: 1; }
.mark-sub {
  display: block;
  font: 600 .58rem/1 var(--lat);
  letter-spacing: .3em;
  color: var(--mute);
}
.mark-main {
  display: block;
  margin-top: .28rem;
  font: 900 1.32rem/1 var(--lat);
  letter-spacing: .04em;
  color: #fff;
}

.bar nav { display: flex; gap: 1.6rem; }
.bar nav a {
  font: 700 .84rem/1 var(--lat);
  letter-spacing: .18em;
  color: var(--text);
  padding: .5rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.bar nav a:hover { color: var(--brass-lt); border-bottom-color: var(--brass); }

.bar-line {
  font-size: .82rem; font-weight: 700;
  padding: .58rem 1.05rem;
  color: #05320f;
  background: var(--line-green);
  white-space: nowrap;
}
.bar-line:hover { filter: brightness(1.12); }

.burger { display: none; }

/* ---------- 3. hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--bar-h) + clamp(2rem, 5vw, 4rem)) var(--gut) 4.5rem;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  background:
    radial-gradient(78% 62% at 74% 46%, #3a2418 0%, #1a1310 34%, var(--void) 72%);
  overflow: hidden;
}

.grit {
  position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.hero-text { position: relative; z-index: 3; }

.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--brass);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 1.6rem 0 0;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
}
.hero h1 span { display: block; }
.hero h1 .l2 {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 0 0 22px rgba(0, 0, 0, .5);
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .hero h1 .l2 { color: #fff; }
}

.hero-lead {
  margin: 1.9rem 0 0;
  max-width: 30em;
  font-size: clamp(.86rem, 1.6vw, .98rem);
  line-height: 2.2;
  color: var(--text);
}

.hero-act {
  margin-top: 2.4rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem;
}

.btn-line {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--line-green);
  color: #042a0d;
  font-weight: 900;
  letter-spacing: .02em;
  padding: 1rem 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: filter .2s ease, transform .2s ease;
}
.btn-line:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-line::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  background: #042a0d;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 5.7 2 10.2c0 4 3.6 7.4 8.4 8.1.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c-.1.3-.3 1.1 1 .6s6.9-4.1 9.4-7c1.7-1.9 2.4-3.7 2.4-6.1C24 5.7 17.5 2 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 5.7 2 10.2c0 4 3.6 7.4 8.4 8.1.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c-.1.3-.3 1.1 1 .6s6.9-4.1 9.4-7c1.7-1.9 2.4-3.7 2.4-6.1C24 5.7 17.5 2 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-quiet {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--brass);
  transition: color .2s;
}
.btn-quiet:hover { color: var(--brass-lt); }

.hero-art {
  position: relative;
  z-index: 2;
  margin: 0;
  align-self: end;
}
.art-btn {
  display: block; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hero-art img {
  display: block;
  width: min(620px, 46vw);
  max-width: none;
  transform: translateX(-4%);
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, .75));
}
.art-btn:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 6px; }

.badge {
  position: absolute; z-index: 3;
  right: 2%; top: 6%;
  width: 104px; height: 104px;
  display: grid; place-content: center;
  text-align: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  font: 700 .68rem/1.5 var(--lat);
  letter-spacing: .18em;
  color: var(--brass-lt);
  background: rgba(10, 9, 8, .45);
  transform: rotate(9deg);
}
.badge b { display: block; font-size: 1.1rem; letter-spacing: .1em; }

.strip {
  position: absolute; z-index: 4; inset: auto 0 0;
  overflow: hidden;
  padding: .55rem 0;
  background: var(--steel);
  border-top: 2px solid transparent;
  border-image: var(--burn) 1;
}
.strip-run { display: flex; width: max-content; }
.strip-run span {
  padding-right: 2rem;
  font: 700 .8rem/1 var(--lat);
  letter-spacing: .42em;
  color: var(--mute);
  white-space: nowrap;
}

/* ---------- 4. stance ---------- */
.stance {
  padding: var(--sec) var(--gut);
  background: var(--paper);
  color: #1b1a18;
}
.stance .rule span { color: #7a5c14; }
.stance .rule::before { background: #7a5c14; }
.stance .rule::after { background: linear-gradient(90deg, #c9c2b4, transparent); }
.stance .jp-xl { color: #14130f; }

.stance-in {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}
.stance-body p { color: #3d3a34; max-width: 34em; }

.stance-pts { margin-top: 2.4rem; display: grid; gap: 1.1rem; }
.stance-pts li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0 1.2rem;
  align-items: baseline;
  padding-top: 1.1rem;
  border-top: 1px solid #cdc6b8;
  font-size: .92rem;
  line-height: 1.9;
  color: #3d3a34;
}
.stance-pts b {
  font-size: .95rem;
  color: #14130f;
  letter-spacing: .02em;
}

/* ---------- 5. build ---------- */
.build { padding: var(--sec) var(--gut); background: var(--void); }

.build-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.build-head > p { color: var(--mute); max-width: 34em; font-size: .93rem; }
.lat-sub {
  margin-top: 1rem;
  font: 700 clamp(.8rem, 1.5vw, 1rem)/1 var(--lat);
  letter-spacing: .3em;
  color: var(--brass);
}

.hero-build { margin: 0; }
.hero-build-img { position: relative; }
.hero-build-img img {
  width: 100%;
  aspect-ratio: 1800 / 1349;
  object-fit: cover;
  filter: saturate(.86) contrast(1.07) brightness(.95);
}

/* 技術図のような引き出し線 */
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; display: flex; align-items: center; }
.pin i {
  width: 9px; height: 9px; flex: none;
  border: 2px solid var(--brass-lt);
  border-radius: 50%;
  background: rgba(10, 9, 8, .5);
  box-shadow: 0 0 0 5px rgba(200, 145, 47, .14);
}
.pin b {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(10, 9, 8, .82);
  border-bottom: 1px solid var(--brass);
  padding: .3rem .6rem;
  white-space: nowrap;
}
.pin::before {
  content: "";
  width: 34px; height: 1px; flex: none;
  background: var(--brass-lt);
}
.pin-a { top: 29%; left: 63%; flex-direction: row-reverse; }
.pin-b { top: 64%; left: 71%; }
.pin-c { top: 47%; left: 40%; flex-direction: row-reverse; }

.hero-build figcaption {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.5rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.hero-build figcaption b {
  font: 900 1.05rem/1 var(--lat);
  letter-spacing: .12em;
  color: #fff;
}
.hero-build figcaption span { font-size: .78rem; color: var(--mute); }

/* ---------- 施工写真ギャラリー（スワイプ／ドラッグ） ---------- */
.gal { margin-top: clamp(1.2rem, 2.4vw, 2rem); position: relative; }

.gal-track {
  display: flex;
  gap: clamp(.6rem, 1.2vw, 1rem);
  margin: 0; padding: 0 0 .2rem; list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-cell {
  flex: 0 0 calc((100% - clamp(.6rem, 1.2vw, 1rem) * 1.4) / 2.4);
  scroll-snap-align: start;
}
.gal.is-drag .gal-track { scroll-snap-type: none; cursor: grabbing; }
.gal.is-drag .shot { cursor: grabbing; pointer-events: none; }

.shot {
  display: block; position: relative;
  width: 100%; padding: 0;
  border: 0; background: var(--steel);
  color: inherit; font: inherit;
  cursor: zoom-in;
  overflow: hidden;
}
.shot img {
  width: 100%; height: clamp(230px, 30vw, 400px);
  object-fit: cover;
  filter: saturate(.88) contrast(1.05);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .4s;
  -webkit-user-drag: none; user-select: none;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); filter: none; }
.shot-cap {
  position: absolute; inset: auto 0 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 2.6rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(6, 6, 6, .92));
  font-size: .82rem; font-weight: 700; color: #fff;
  text-align: left;
}
.shot-cap em {
  font-style: normal; font-size: .68rem; font-weight: 500;
  color: var(--brass-lt);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.shot:hover .shot-cap em, .shot:focus-visible .shot-cap em { opacity: 1; transform: none; }

.gal-ctl {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1rem;
}
.gal-arw {
  width: 42px; height: 42px; flex: none;
  display: grid; place-content: center;
  padding: 0; background: none;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.gal-arw svg { width: 20px; height: 20px; }
.gal-arw:hover { border-color: var(--brass); color: var(--brass-lt); }
.gal-arw:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 3px; }
.gal-arw[disabled] { opacity: .3; cursor: default; }
.gal-arw[disabled]:hover { border-color: var(--line); color: var(--text); }

.gal-dots { display: flex; gap: .5rem; }
.gal-dot {
  width: 30px; height: 3px; padding: 10px 0; box-sizing: content-box;
  background: none; border: 0; cursor: pointer;
  background-clip: content-box;
  background-color: #3a382f;
  transition: background-color .2s;
}
.gal-dot[aria-current="true"] { background-color: var(--brass); }
.gal-dot:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 2px; }

.gal-hint {
  margin-top: .5rem;
  font-size: .74rem; color: var(--mute); letter-spacing: .04em;
}

/* ---------- 360°ビューア（フレーム画像を入れると有効になります） ---------- */
.spin { position: relative; margin-top: clamp(1.2rem, 2.4vw, 2rem); background: var(--steel); }
.spin-stage {
  position: relative; display: block;
  width: 100%; max-width: 840px; margin: 0 auto;
  aspect-ratio: 1000 / 785;   /* フレーム画像の比率に合わせる */
  cursor: grab; touch-action: pan-y;
  overflow: hidden;
}
.spin-stage.is-drag { cursor: grabbing; }
.spin-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; -webkit-user-drag: none; user-select: none;
}
.spin-stage img.is-on { opacity: 1; }
.spin-hint {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: 2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(6, 6, 6, .9));
  font-size: .74rem; color: var(--brass-lt); letter-spacing: .04em;
  pointer-events: none;
  transition: opacity .3s;
}
.spin.is-used .spin-hint { opacity: 0; }

/* ---------- 6. service ---------- */
.service { padding: var(--sec) var(--gut); background: var(--steel); }
.service .jp-xl { margin-bottom: clamp(2rem, 4vw, 3.4rem); }

.spec { border-top: 1px solid var(--line); }
.spec > div {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: .3rem 2.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.spec dd { font-size: .9rem; color: var(--mute); line-height: 1.95; }

.cost {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--void);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
}
.cost-fig span {
  display: block;
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--brass);
  margin-bottom: .3rem;
}
.cost-fig strong {
  display: block;
  font: 900 clamp(2.6rem, 6.5vw, 4.6rem)/1 var(--lat);
  letter-spacing: -.01em;
  color: #fff;
}
.cost-fig em { font-style: normal; font-size: .5em; color: var(--brass-lt); }
.cost-note p { font-size: .9rem; color: var(--text); }
.cost-sub { margin-top: .9rem !important; font-size: .8rem !important; color: var(--mute) !important; }

/* ---------- 7. order ---------- */
.order { padding: var(--sec) var(--gut); background: var(--void); }
.order-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3.5rem);
  align-items: end;
}
.order-head p { color: var(--mute); font-size: .93rem; max-width: 32em; }

.steps { margin-top: clamp(2.4rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}
.step-no {
  font: 900 clamp(2.1rem, 4.4vw, 3.2rem)/1 var(--lat);
  color: var(--brass);
  opacity: .55;
}
.steps h3 { font-size: 1.12rem; color: #fff; }
.steps p { margin-top: .5rem; font-size: .9rem; color: var(--mute); }

/* ---------- 8. builder ---------- */
.builder { padding: var(--sec) var(--gut); background: var(--paper); color: #1b1a18; }
.builder .rule span { color: #7a5c14; }
.builder .rule::before { background: #7a5c14; }
.builder .rule::after { background: linear-gradient(90deg, #c9c2b4, transparent); }
.builder .lat-xl { color: #14130f; }

.builder-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}
.builder-jp {
  margin-top: 1.2rem;
  font-size: 1.15rem; font-weight: 900;
  letter-spacing: .22em;
  color: #14130f;
}
.builder-role { margin-top: .2rem; font-size: .8rem; color: #6b665c; letter-spacing: .06em; }
.builder-body p { color: #3d3a34; font-size: .95rem; max-width: 36em; }
.builder-body blockquote {
  margin: 2.6rem 0;
  padding-left: 1.4rem;
  border-left: 4px solid #7a5c14;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.55;
  color: #14130f;
}
.builder-body blockquote::before { content: "「"; }
.builder-body blockquote::after  { content: "」"; }

/* ---------- 9. faq ---------- */
.faq { padding: var(--sec) var(--gut); background: var(--steel); }
.faq .jp-xl { margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.qa { border-top: 1px solid var(--line); max-width: 60rem; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.35rem 0;
  font-size: .98rem; font-weight: 700; color: #fff;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "Q";
  font: 900 .95rem/1.6 var(--lat);
  color: var(--brass);
  flex: none;
}
.qa summary::after {
  content: "";
  margin-left: auto; flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: translateY(4px) rotate(45deg);
  transition: transform .25s ease;
}
.qa details[open] summary::after { transform: translateY(8px) rotate(-135deg); }
.qa details > div {
  padding: 0 0 1.5rem 2rem;
  font-size: .9rem;
  color: var(--mute);
  max-width: 52em;
}

/* ---------- 10. contact ---------- */
.contact {
  padding: var(--sec) var(--gut) calc(var(--sec) * .8);
  background: radial-gradient(70% 80% at 50% 0%, #241811 0%, var(--void) 62%);
  border-top: 2px solid transparent;
  border-image: var(--burn) 1;
  text-align: center;
}
.contact .rule { justify-content: center; }
.contact .rule::after { display: none; }
.contact .jp-xl { margin-bottom: 1.4rem; }
.contact-lead { color: var(--mute); font-size: .9rem; }

.btn-line.big {
  margin: 2.8rem auto 0;
  width: min(560px, 100%);
  justify-content: center;
  flex-wrap: wrap;
  gap: .1rem .8rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.12rem;
}
.btn-line.big small {
  width: 100%;
  font: 600 .72rem/1.6 var(--lat);
  letter-spacing: .18em;
  opacity: .75;
}

.info {
  margin: clamp(2.6rem, 5vw, 4rem) auto 0;
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.info dt {
  font: 700 .68rem/1 var(--lat);
  letter-spacing: .22em;
  color: var(--brass);
  margin-bottom: .55rem;
}
.info dd { font-size: .9rem; color: var(--text); line-height: 1.8; }
.info a { border-bottom: 1px solid var(--line); }
.info a:hover { color: var(--brass-lt); border-bottom-color: var(--brass); }

/* ---------- 11. footer ---------- */
footer {
  padding: 1.8rem var(--gut);
  display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--void);
}
.foot-mark {
  margin-right: auto;
  font: 900 .92rem/1 var(--lat);
  letter-spacing: .14em;
  color: var(--text);
}
.foot-nav { display: flex; gap: 1.2rem; }
.foot-nav a { font: 700 .72rem/1 var(--lat); letter-spacing: .16em; color: var(--mute); }
.foot-nav a:hover { color: var(--brass-lt); }
.foot-c { font: 600 .68rem/1 var(--lat); letter-spacing: .1em; color: #837f76; }

.dock { display: none; }

/* ---------- 12. lightbox ---------- */
.lightbox {
  position: fixed; z-index: 200; inset: 0;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 6, 6, .94);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
}
.lightbox figcaption {
  margin-top: 1rem;
  font-size: .84rem;
  color: var(--text);
  text-align: center;
}
.lb-close {
  position: absolute; top: clamp(.6rem, 2vw, 1.4rem); right: clamp(.6rem, 2vw, 1.4rem);
  width: 46px; height: 46px;
  background: none; border: 1px solid var(--line);
  color: #fff; font-size: 1.1rem; cursor: pointer;
}
.lb-close:hover { border-color: var(--brass); color: var(--brass-lt); }

/* ---------- 13. motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise-art {
  from { opacity: 0; transform: translateX(-6%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-6%); }
}
@keyframes idle {
  0%, 100% { transform: translateX(-6%) translateY(0)     rotate(-.28deg); }
  50%      { transform: translateX(-6%) translateY(-11px) rotate(.32deg); }
}
@keyframes run { to { transform: translateX(-50%); } }
@keyframes spark-out { to { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; } }

/* ページ読み込み時の一連の動きだけを演出する */
.hero .kicker,
.hero h1 .l1,
.hero h1 .l2,
.hero-lead,
.hero-act { animation: rise .8s cubic-bezier(.2, .75, .2, 1) both; }
.hero .kicker  { animation-delay: .05s; }
.hero h1 .l1   { animation-delay: .16s; }
.hero h1 .l2   { animation-delay: .26s; }
.hero-lead     { animation-delay: .40s; }
.hero-act      { animation-delay: .52s; }

.hero-art img {
  animation:
    rise-art .95s cubic-bezier(.2, .75, .2, 1) .3s both,
    idle 5.4s ease-in-out 1.3s infinite;
  will-change: transform;
}
.strip-run { animation: run 26s linear infinite; }

.spark {
  position: absolute; z-index: 6;
  width: 5px; height: 5px; border-radius: 50%;
  background: #ffd98a;
  box-shadow: 0 0 11px #ff9f1c;
  pointer-events: none;
  animation: spark-out .72s ease-out forwards;
}


/* ---------- 森田くん（案内役）と吹き出し ---------- */
.guide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.6rem);
  margin: clamp(1.8rem, 3.6vw, 3rem) 0;
  max-width: 940px;
}
.guide-right { grid-template-columns: minmax(0, 1fr) auto; margin-left: auto; }
.guide-right .g-fig { order: 2; }
.guide-right .bubble { order: 1; }

.g-fig { position: relative; width: max-content; }
.g-btn {
  display: block; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.g-btn img {
  display: block;
  height: clamp(132px, 17vw, 236px); width: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .65));
  transform-origin: 50% 92%;
}
.g-btn:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 4px; }

.g-tag {
  display: block; margin-top: .35rem;
  font: 700 .58rem/1 var(--lat);
  letter-spacing: .22em; color: var(--brass);
  text-align: center;
}

.bubble {
  position: relative;
  padding: clamp(.9rem, 2vw, 1.25rem) clamp(1rem, 2.2vw, 1.45rem);
  background: rgba(22, 24, 28, .96);
  border: 1px solid var(--brass);
  color: #ece7dc;
  font-size: clamp(.86rem, 1.6vw, .95rem);
  line-height: 1.95;
}
.bubble::before, .bubble::after {
  content: ""; position: absolute; top: 34px;
  border: 11px solid transparent;
}
.bubble::before { left: -22px; border-right-color: var(--brass); }
.bubble::after  { left: -20px; border-right-color: #16181c; }
.guide-right .bubble::before, .guide-right .bubble::after { left: auto; }
.guide-right .bubble::before { right: -22px; border-right-color: transparent; border-left-color: var(--brass); }
.guide-right .bubble::after  { right: -20px; border-right-color: transparent; border-left-color: #16181c; }

.g-line { margin: 0; }
.g-line + .g-line { margin-top: .7rem; }
.g-cta { margin-top: .9rem; }
.g-cta a {
  display: inline-block;
  color: var(--brass-lt); font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: .15rem;
}
.g-cta a::after { content: " →"; }
.g-cta a:hover { color: #fff; }

.g-step {
  display: none;
  margin-top: .7rem;
  font: 700 .66rem/1 var(--lat);
  letter-spacing: .16em; color: var(--mute);
}
.js .g-step { display: block; }
.js .guide .g-line[hidden], .js .hero-bubble .g-line[hidden] { display: none; }

/* ヒーローの吹き出し */
.hero-bubble {
  position: absolute; z-index: 5;
  left: 2%; top: 4%;
  max-width: min(330px, 62%);
}
.hero-bubble::before, .hero-bubble::after { display: none; }
.js .hero-bubble { opacity: 0; visibility: hidden; transition: opacity .28s, transform .28s; transform: translateY(6px); }
.js .hero-art.is-say .hero-bubble { opacity: 1; visibility: visible; transform: none; }

/* 押したときの動き：レンチを持ち上げる */
@keyframes lift {
  0%   { transform: rotate(0) translateY(0); }
  22%  { transform: rotate(-5deg) translateY(-7px); }
  55%  { transform: rotate(3deg) translateY(-3px); }
  100% { transform: rotate(0) translateY(0); }
}
.g-fig.is-act img, .hero-art.is-act img { animation: lift .72s cubic-bezier(.3, .8, .3, 1); }


/* ---------- 360°ビューアの見出しと注記 ---------- */
.spin-wrap { margin: clamp(2rem, 4vw, 3.4rem) auto 0; max-width: 840px; }
.spin-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}
.spin-head b {
  font: 900 .92rem/1 var(--lat);
  letter-spacing: .2em; color: var(--brass-lt);
}
.spin-head span { font-size: .76rem; color: var(--mute); }
.spin-note { margin: .7rem 0 0; font-size: .76rem; line-height: 1.8; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .bar nav { gap: 1.1rem; }
  .bar nav a { font-size: .78rem; letter-spacing: .12em; }
  .spec > div { grid-template-columns: 12rem minmax(0, 1fr); gap: .3rem 1.5rem; }
}

@media (max-width: 820px) {
  body { padding-bottom: 56px; }

  /* header */
  .bar { gap: .8rem; }
  .bar nav {
    position: absolute; inset: var(--bar-h) 0 auto;
    display: none; flex-direction: column; gap: 0;
    padding: .6rem var(--gut) 1.4rem;
    background: rgba(10, 9, 8, .98);
    border-bottom: 1px solid var(--line);
  }
  .bar.is-open nav { display: flex; }
  .bar.is-open { background: rgba(10, 9, 8, .98); }
  .bar nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
  .bar nav a:hover { border-bottom-color: var(--line); }
  .bar-line { display: none; }

  .burger {
    display: flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid var(--line);
    color: #fff; padding: .5rem .7rem; cursor: pointer;
  }
  .burger-bars { display: grid; gap: 4px; width: 17px; }
  .burger-bars i { display: block; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .burger-text { font: 700 .72rem/1 var(--lat); letter-spacing: .18em; }
  .bar.is-open .burger-bars i:first-child { transform: translateY(3px) rotate(45deg); }
  .bar.is-open .burger-bars i:last-child  { transform: translateY(-3px) rotate(-45deg); }

  /* hero */
  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    padding: calc(var(--bar-h) + 2.2rem) var(--gut) 3.6rem;
    min-height: auto;
  }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { min-width: 0; }
  .hero h1 { font-size: clamp(2.4rem, 11.5vw, 3.4rem); }
  .jp-xl { font-size: clamp(1.7rem, 7.4vw, 2.6rem); }
  .hero-art { margin-top: .4rem; }
  .hero-art img { width: 82vw; transform: translateX(-3%); }
  .badge { width: 74px; height: 74px; right: 0; top: 2%; font-size: .56rem; }
  .badge b { font-size: .88rem; }
  .hero-lead { line-height: 2.05; }
  .hero-act { margin-top: 2rem; gap: .9rem 1.2rem; }
  .btn-line { padding: .95rem 1.35rem; font-size: .95rem; }

  @keyframes rise-art {
    from { opacity: 0; transform: translateX(-3%) translateY(30px); }
    to   { opacity: 1; transform: translateX(-3%); }
  }
  @keyframes idle {
    0%, 100% { transform: translateX(-3%) translateY(0); }
    50%      { transform: translateX(-3%) translateY(-8px); }
  }

  /* layout collapse */
  .stance-in,
  .build-head,
  .order-head,
  .builder-in { grid-template-columns: 1fr; }
  .build-head p, .order-head p { margin-top: 1rem; }

  .stance-pts li { grid-template-columns: 1fr; gap: .25rem; }
  .spec > div { grid-template-columns: 1fr; gap: .4rem; padding: 1.3rem 0; }
  .pins { display: none; }
  .hero-build-img img { aspect-ratio: 1 / 1; object-position: 62% 58%; }

  /* 森田くん：縦積み */
  .guide, .guide-right { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .guide-right .g-fig, .guide-right .bubble { order: 0; }
  .g-fig { margin-left: .4rem; }
  .bubble::before, .bubble::after,
  .guide-right .bubble::before, .guide-right .bubble::after {
    top: auto; bottom: 100%; left: 34px; right: auto;
    border-right-color: transparent; border-left-color: transparent;
  }
  .bubble::before, .guide-right .bubble::before { border-bottom-color: var(--brass); }
  .bubble::after,  .guide-right .bubble::after  { border-bottom-color: #16181c; margin-left: 1px; border-width: 10px; }

  .hero-bubble { position: static; max-width: none; margin: 0 0 .8rem; }
  .js .hero-bubble { display: none; }
  .js .hero-art.is-say .hero-bubble { display: block; }

  .gal-cell { flex: 0 0 88%; }

  .shot img { height: 62vw; }
  .cost { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 4rem minmax(0, 1fr); gap: 0 1rem; }
  .info { grid-template-columns: 1fr; gap: 1.3rem; }
  .builder-body blockquote { margin: 2rem 0; }

  footer { justify-content: center; text-align: center; }
  .foot-mark { margin-right: 0; width: 100%; }
  .foot-nav { width: 100%; justify-content: center; flex-wrap: wrap; }

  /* 常時表示のLINE導線 */
  .dock {
    position: fixed; z-index: 90; inset: auto 0 0;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1rem;
    background: var(--line-green);
    color: #042a0d;
    font-weight: 900;
    box-shadow: 0 -10px 26px rgba(0, 0, 0, .55);
  }
  .dock::before {
    content: "";
    width: 19px; height: 19px;
    background: #042a0d;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 5.7 2 10.2c0 4 3.6 7.4 8.4 8.1.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c-.1.3-.3 1.1 1 .6s6.9-4.1 9.4-7c1.7-1.9 2.4-3.7 2.4-6.1C24 5.7 17.5 2 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 5.7 2 10.2c0 4 3.6 7.4 8.4 8.1.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c-.1.3-.3 1.1 1 .6s6.9-4.1 9.4-7c1.7-1.9 2.4-3.7 2.4-6.1C24 5.7 17.5 2 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}

@media (max-width: 400px) {
  .mark-main { font-size: 1.15rem; }
  .hero-lead { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-art img { opacity: 1; transform: translateX(-4%); }
  .spark { display: none; }
  .g-fig.is-act img, .hero-art.is-act img { animation: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 820px) {
  .hero-art img { transform: translateX(-3%); }
}

@media print {
  .bar, .dock, .strip, .lightbox, .badge { display: none !important; }
  body { background: #fff; color: #000; }
}
