/*
  15 スイス格子
  白・黒・1 色の赤。太い黒の罫で区切る 12 列の格子。角丸と影は使わない。
  このファイルは下層ページ（shell.html）からも読まれるため、
  トップだけの配置は sw- / hero / scene などの専用の class に限り、.steps・.check・.price-card などの共通の class には触れない。
*/

:root {
  --ink: #000;
  --paper: #fff;
  --red: #d0021b;          /* 白地に対して 5.6:1。白い文字を載せても 5.6:1 */
  --muted: #4d4d4d;        /* 注記。白地に対して 8.4:1 */
  --rule-l: 6px;           /* 区画を区切る太い罫 */
  --rule-m: 2px;           /* 区画の中の罫 */
  --pad: clamp(20px, 3.4vw, 48px);
  --gutter: clamp(14px, 1.9vw, 24px);
  --max: 1440px;
  --font: "Archivo", "Noto Sans JP", sans-serif;
  --num: "Archivo", "Noto Sans JP", sans-serif;
}

/* ---- 土台 ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  font-feature-settings: "palt";
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Lenis の推奨の指定 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- ヘッダー（トップと下層で共通） ---- */
.site-header {
  position: relative;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  background: var(--paper);
}
.site-header__rule {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  height: var(--rule-l);
  background: var(--ink);
  transform-origin: left center;
}
.brand {
  grid-column: 1 / 7;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.brand::before, .footer-brand::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--red);
}
.site-header nav {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.site-header nav a {
  position: relative;
  padding: 22px 0 28px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--rule-l) + 8px);
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s;
}
.site-header nav a:hover::after,
.site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* ---- ボタン（下層の .button にもそのまま効く） ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 14px 20px;
  background: var(--red);
  color: var(--paper);
  border: 2px solid var(--red);
  border-radius: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.button svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.button svg path { transition: transform .2s; }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button:hover svg path { transform: translateX(3px); }
.button--ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }
.button--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button--paper:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button[disabled], .button:disabled { background: #595959; border-color: #595959; color: var(--paper); cursor: not-allowed; }

/* ---- フッター（トップと下層で共通・黒） ---- */
.site-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  padding: 56px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) 40px;
  background: var(--ink);
  color: var(--paper);
}
.footer-top { grid-column: 1 / 5; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.footer-top p { margin-top: 10px; font-size: 14px; color: #d0d0d0; }
.site-footer nav {
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-content: start;
}
.site-footer nav a {
  padding: 12px 0 14px;
  border-top: 1px solid var(--paper);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer-note {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: var(--rule-l) solid var(--paper);
  font-size: 13px;
  line-height: 1.7;
  color: #d0d0d0;
}
.site-footer :focus-visible { outline-color: var(--paper); }

/* =========================================================
   ここから下はトップだけの格子
   ========================================================= */
.sw-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.sw-rule { height: var(--rule-l); background: var(--ink); transform-origin: left center; }
.sw-rule--m { height: var(--rule-m); }
.sw-section { padding-top: clamp(80px, 10vw, 144px); }

/* 縦の罫: セルの左の溝の真ん中に引く。--v（0〜1）で上から伸ばす */
.vr { position: relative; }
.vr::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) / -2 - 1px);
  width: var(--rule-m);
  background: var(--ink);
  transform: scaleY(var(--v, 1));
  transform-origin: center top;
}

/* 見出しの赤い面（ふだんは幅 0。動きがあるときだけ横に滑る） */
.wipe { position: relative; width: fit-content; max-width: 100%; }
.wipe__text { display: block; }
.sw-wipe {
  position: absolute;
  inset: -.06em -.12em;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* 白黒の写真 */
.sw-photo { margin: 0; overflow: hidden; }
.sw-photo img { width: 100%; filter: grayscale(1) contrast(1.12); }

/* 巨大な数字 */
.tick {
  font-family: var(--num);
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.04em;
  line-height: 1;
}

/* ---- 1. ヒーロー ---- */
.hero { padding-top: clamp(32px, 4.4vw, 64px); }
.hero__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  padding-bottom: clamp(28px, 4vw, 56px);
}
.hero__title {
  grid-column: 1 / 12;
  font-size: clamp(34px, 8.4vw, 116px);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.hero__mark {
  grid-column: 12 / 13;
  aspect-ratio: 1;
  margin-top: .9vw;
  background: var(--red);
  transform-origin: left center;
}
.hero__row { padding-top: clamp(20px, 2.4vw, 32px); row-gap: 28px; align-items: start; }
.hero__body { grid-column: 1 / 5; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.95; }
.hero__actions { grid-column: 5 / 8; display: grid; gap: 12px; align-content: start; }
.hero__actions .button { width: 100%; }
.hero__note { font-size: 13px; line-height: 1.6; color: var(--muted); }
.hero__photo { grid-column: 8 / 13; overflow: visible; }
.hero__photo img { aspect-ratio: 16 / 9; object-fit: cover; }
.hero__photo figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ---- 区画の見出しの行 ---- */
.sec-head { align-items: start; row-gap: 28px; padding: clamp(20px, 2.4vw, 32px) 0 clamp(36px, 4.4vw, 64px); }
.sec-title {
  grid-column: 1 / 9;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.3;
  letter-spacing: -.01em;
}

/* ---- 2. 作るもの ---- */
.places { grid-column: 9 / 13; margin: 0; }
.places dt { padding-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.places dd { margin: 0; padding: 10px 0; border-top: var(--rule-m) solid var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; }
.scene-grid { margin: 0; padding: 0; list-style: none; }
.scene { grid-column: span 4; display: grid; align-content: start; row-gap: 18px; padding: 24px 0 8px; }
.scene__num { font-size: clamp(64px, 8.4vw, 128px); }
.scene__img img { aspect-ratio: 16 / 9; object-fit: cover; }
.scene h3 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; }
.scene p { font-size: 15px; line-height: 1.85; }
.scenes__note { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---- 3. 確認の仕組み ---- */
.q-head { align-items: end; row-gap: 28px; padding: clamp(20px, 2.4vw, 32px) 0 clamp(32px, 4vw, 56px); }
.q-title {
  grid-column: 1 / 9;
  display: grid;
  grid-template-columns: subgrid;
  align-items: end;
}
.q-title__num {
  grid-column: 1 / 5;
  font-size: clamp(150px, 26vw, 392px);
  line-height: .92;
  letter-spacing: -.05em;
  color: var(--red);
}
.q-title__text { grid-column: 5 / 9; padding-bottom: .25em; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.35; }
.q-photo { grid-column: 9 / 13; align-self: end; }
.q-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.roles { padding-bottom: 8px; }
.role { grid-column: span 4; padding: 24px 0 32px; }
.role h3 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.25; }
.role h3 span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.6; }
.role p { margin-top: 18px; font-size: 15px; line-height: 1.85; }
.q-close {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px 0;
  border-top: var(--rule-m) solid var(--ink);
  border-bottom: var(--rule-m) solid var(--ink);
  font-size: clamp(19px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  font-feature-settings: "palt";
}
.q-close::before { content: ""; flex: none; width: .6em; height: .6em; background: var(--red); }
.deliver { row-gap: 20px; padding-top: clamp(32px, 4vw, 56px); }
.deliver__title { grid-column: 1 / 5; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.45; }
.deliver__list { grid-column: 5 / 13; margin: 0; padding: 0; list-style: none; }
.deliver__list li { padding: 12px 0; border-top: 1px solid var(--ink); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; line-height: 1.5; }
.deliver__list li:last-child { border-bottom: 1px solid var(--ink); }
.deliver__body { grid-column: 5 / 13; }
.q-people { margin-top: 36px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---- 4. 料金 ---- */
.price-main { padding-bottom: clamp(24px, 3vw, 40px); }
.price-main__name { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4; }
.price-main__price { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 18px; }
.price-main__per { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; line-height: 1.5; }
.price-main__amount { display: flex; align-items: baseline; gap: .12em; padding-top: .04em; }
.price-main__num { font-size: clamp(66px, 18vw, 248px); line-height: .98; letter-spacing: -.045em; }
.price-main__yen { font-size: clamp(24px, 3.2vw, 44px); font-weight: 700; line-height: 1.2; }
.price-main__tax { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }
.facts { margin: 0; padding: 0; list-style: none; }
.fact {
  grid-column: span 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(3.2em, auto) auto;
  column-gap: .35em;
  align-items: end;
  padding: 20px 0 28px;
}
.fact__pre { grid-row: 1; grid-column: 1 / -1; align-self: start; font-size: 15px; font-weight: 700; line-height: 1.6; }
.fact__num { grid-row: 2; grid-column: 1; font-size: clamp(64px, 8vw, 120px); }
.fact__unit { grid-row: 2; grid-column: 2; padding-bottom: .3em; font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; line-height: 1.4; }
.price-foot { row-gap: 28px; align-items: start; padding-top: 4px; }
.price-sub { grid-column: 1 / 9; padding-top: 22px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.85; }
.price-sub strong { font-family: var(--num); font-size: 1.35em; font-weight: 800; letter-spacing: -.02em; }
.price-cap { grid-column: 9 / 13; }
.price-cta { grid-column: 1 / 5; }

/* ---- 5. 進め方 ---- */
.process .sec-title { grid-column: 1 / 7; }
.process__photo { grid-column: 7 / 13; }
.process__photo img { aspect-ratio: 21 / 9; object-fit: cover; }
.flow { margin: 0; padding: 0; list-style: none; }
.flow__item { grid-column: span 3; display: grid; align-content: start; row-gap: 14px; padding: 24px 0 32px; }
.flow__num { font-size: clamp(64px, 8vw, 120px); }
.flow__item h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; }
.flow__item p { font-size: 15px; line-height: 1.85; }
.process__foot { row-gap: 24px; padding-top: 22px; }
.process__note { grid-column: 1 / 9; }
.process__cta { grid-column: 1 / 5; }

/* ---- 6. 相談（赤い面） ---- */
.consult {
  position: relative;
  isolation: isolate;
  margin-top: clamp(88px, 11vw, 160px);
  background: var(--red);
  color: var(--paper);
  overflow: hidden;
}
.consult__plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}
.motion .consult { background: transparent; }
.consult__inner { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.consult__title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--gutter);
  align-items: end;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.consult__pre { grid-column: 1 / -1; }
.consult__num { grid-column: 1; margin-top: .12em; font-size: clamp(150px, 24vw, 340px); line-height: .92; letter-spacing: -.05em; }
.consult__post { grid-column: 2; padding-bottom: .3em; }
.consult__rule { height: var(--rule-m); margin: clamp(28px, 3vw, 40px) 0; background: var(--paper); transform-origin: left center; }
.consult__grid { row-gap: 24px; align-items: end; }
.consult__body { grid-column: 1 / 8; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.9; }
.consult__cta { grid-column: 9 / 13; }
.consult__cta .button { width: 100%; }
.consult :focus-visible { outline-color: var(--paper); }

/* 目立つ段落は語の切れ目で折る（効かない環境ではふつうの折り返し） */
.price-sub, .consult__body, .q-close { word-break: auto-phrase; }

/* 動きの初期状態が整うまでの一瞬だけ隠す（JS が止まっても index.html の 2.5 秒の保険で戻る） */
.js-pending .hero__title .wipe__text,
.js-pending .hero__body,
.js-pending .hero__actions > *,
.js-pending .hero__photo img,
.js-pending .hero__mark { opacity: 0; }

/* ---- 中くらいの画面 ---- */
@media (max-width: 1000px) {
  .brand { grid-column: 1 / 5; }
  .site-header nav { grid-column: 5 / 13; }
  .hero__mark { display: none; }
  .hero__title { grid-column: 1 / -1; }
  .hero__body { grid-column: 1 / 7; }
  .hero__actions { grid-column: 7 / 13; }
  .hero__photo { grid-column: 1 / -1; padding-top: 24px; }
  .hero__photo img { aspect-ratio: 21 / 9; }
  /* 1 列に積んだセルの罫は横に引く */
  .hero__photo.vr::before, .flow .vr::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: var(--rule-m);
    transform: scaleX(var(--v, 1));
    transform-origin: left center;
  }
  .sec-title, .process .sec-title { grid-column: 1 / -1; }
  .places, .process__photo { grid-column: 1 / -1; }
  .q-title { grid-column: 1 / -1; }
  .q-title__num { grid-column: 1 / 5; }
  .q-title__text { grid-column: 5 / 13; }
  .q-photo { grid-column: 1 / -1; }
  .q-photo img { aspect-ratio: 21 / 9; }
  .deliver__title, .deliver__list, .deliver__body { grid-column: 1 / -1; }
  .price-sub { grid-column: 1 / 8; }
  .price-cap { grid-column: 8 / 13; }
  .price-cta, .process__cta { grid-column: 1 / 7; }
  .process__note { grid-column: 1 / -1; }
  .consult__body { grid-column: 1 / -1; }
  .consult__cta { grid-column: 1 / 7; }
  .site-footer nav { grid-column: 1 / -1; }
  .footer-top { grid-column: 1 / -1; }
  /* 進め方は 1 段ずつ横に読む行へ（番号・見出し・本文） */
  .flow__item {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr);
    column-gap: var(--gutter);
    align-items: start;
    padding: 20px 0;
  }
  .flow__item h3 { padding-top: .3em; }
  .flow__item p { padding-top: .3em; }
}

/* ---- 狭い画面（スマホ） ---- */
@media (max-width: 760px) {
  .site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; }
  .brand { padding: 16px 0 22px; font-size: 16px; }
  .site-header nav { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 0 22px; }
  .site-header nav a { padding: 6px 0; font-size: 14px; }
  .site-header nav a::after { bottom: 0; }
  .nav-ready .menu-toggle {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 0;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav-ready .site-header nav { display: none; }
  .nav-ready .site-header nav.is-open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 24px; }
  .nav-ready .site-header nav.is-open a { padding: 14px 0; border-top: var(--rule-m) solid var(--ink); font-size: 18px; }
  .nav-ready .site-header nav.is-open a::after { display: none; }
  .nav-ready .site-header nav.is-open a[aria-current="page"] { color: var(--red); }

  /* セルは縦に積み、縦の罫は横の罫に変える */
  .vr::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: var(--rule-m);
    transform: scaleX(var(--v, 1));
    transform-origin: left center;
  }
  .hero__body, .hero__actions, .hero__photo { grid-column: 1 / -1; }
  .hero__actions { padding-top: 24px; }
  .hero__photo img { aspect-ratio: 16 / 9; }
  .scene, .role, .fact, .price-sub, .price-cap, .price-cta, .process__cta, .consult__cta { grid-column: 1 / -1; }
  .scene { padding: 22px 0 26px; }
  .scene:first-child { padding-top: 22px; }
  .q-title { display: block; }
  .q-title__num { display: block; font-size: clamp(150px, 46vw, 220px); }
  .q-title__text { display: block; margin-top: 16px; padding-bottom: 0; font-size: clamp(26px, 7.4vw, 34px); }
  .role { padding: 22px 0 26px; }
  .fact { padding: 20px 0 22px; grid-template-rows: auto auto; }
  .fact__pre { padding-bottom: 6px; }
  .price-sub { padding-top: 18px; }
  .price-cap { padding-top: 22px; }
  .flow__item { grid-template-columns: 64px minmax(0, 1fr); row-gap: 8px; }
  .flow__num { grid-row: 1 / span 2; font-size: 56px; }
  .flow__item h3, .flow__item p { grid-column: 2; padding-top: 0; }
  .flow__item h3 { padding-top: 6px; }
  .consult__title { column-gap: 14px; }
  .consult__num { font-size: clamp(130px, 40vw, 180px); }
  .consult__post { padding-bottom: .2em; }
  .site-footer { row-gap: 32px; padding-top: 44px; }
  .site-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 動きを抑える設定 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-pending .hero__title .wipe__text,
  .js-pending .hero__body,
  .js-pending .hero__actions > *,
  .js-pending .hero__photo img,
  .js-pending .hero__mark { opacity: 1; }
}
