/* ZERO1 PROJECT — 共通スタイル
   色は docs/DESIGN.md の固定値。ゴールド（--accent）は eyebrow と主要ボタンのみ。 */

:root {
  --bg: #111111;
  --bg-sub: #1C1C1C;
  --text: #F5F5F2;
  --text-muted: #B4B4B4;
  --line: #383838;
  --accent: #BDA474;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, "Meiryo", sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --section-y: 80px;
  --header-h: 64px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 48px; --section-y: 136px; --header-h: 80px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  /* 日本語の改行を文節単位に（対応ブラウザのみ。非対応でも通常どおり表示） */
  word-break: auto-phrase;
  line-break: strict;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  /* Cormorant の数字は既定で小文字風（ZERO1 の 1 が小さくなる）ので、大文字の高さに揃える */
  font-variant-numeric: lining-nums;
}
@media (min-width: 900px) { body { font-size: 16px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 8px 16px; background: var(--text); color: var(--bg);
}
.skip:focus { top: 8px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(36em + var(--gutter) * 2); }
.center { text-align: center; }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
}
.heading {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .06em;
}
.heading--large { font-size: clamp(40px, 11vw, 88px); }
/* 本文幅の狭いセクションでは見出しを一段小さく（PC で3行に折れないように） */
.narrow .heading:not(.heading--large) { font-size: clamp(30px, 8vw, 48px); }
.heading__sub {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: .24em;
}
.lead { color: var(--text-muted); margin-bottom: 48px; }
.note { color: var(--text-muted); font-size: 12px; line-height: 1.8; }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s var(--ease-out);
}
.link:not([href^="http"])::after { content: "→"; font-family: var(--font-body); letter-spacing: 0; }
.link:hover { border-color: var(--text); }
.link--ja { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .08em; }

.btn {
  display: inline-block;
  min-width: 260px;
  padding: 18px 32px;
  border: 1px solid var(--accent);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  letter-spacing: .12em;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn--small { min-width: 0; padding: 8px 20px; font-size: 13px; }

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .08em;
  vertical-align: middle;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(17, 17, 17, .96);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.page-home .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter);
}
.logo {
  position: relative; z-index: 2; /* メニューを開いても見えるように */
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
  white-space: nowrap;
}
.menu-btn {
  position: relative; z-index: 2;
  padding: 10px 0 10px 16px;
  background: none; border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .24em;
  cursor: pointer;
}
.gnav ul { display: flex; gap: 32px; }
.gnav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .2em;
  text-decoration: none;
}
.gnav a:not(.btn):hover { color: var(--accent); }

@media (max-width: 899px) {
  .gnav {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 40px;
    padding: 0 var(--gutter);
    background: var(--bg);
    visibility: hidden; opacity: 0;
    transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
  }
  .gnav ul { flex-direction: column; gap: 24px; }
  .gnav a:not(.btn) { font-size: 28px; font-weight: 500; letter-spacing: .12em; }
  .gnav .btn { align-self: flex-start; }
  .is-menu-open .gnav { visibility: visible; opacity: 1; transition: opacity .3s var(--ease-out); }
  /* JS なし：メニューボタンは隠し、フッターのリンクで回遊 */
  .no-js .menu-btn { display: none; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .gnav { display: flex; align-items: center; gap: 40px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: -2; }
/* 顔（左寄り）と胸が入るよう、スマホとPCで位置を別々に指定 */
.hero__bg img { object-fit: cover; object-position: 32% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .55);
}
@media (min-width: 900px) {
  .hero__bg img { object-position: 50% 20%; }
  .hero::after { background: rgba(0, 0, 0, .6); }
}
.hero__inner { padding: 0 var(--gutter); text-align: center; }
.hero__eyebrow {
  margin-bottom: 28px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .32em;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 17vw, 152px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: .08em;
}
.hero__title span { display: block; }
.hero__title span + span { font-size: .42em; letter-spacing: .42em; margin-top: .5em; padding-left: .42em; }
.hero__lead { margin: 40px 0 0; font-size: 14px; letter-spacing: .12em; }
@media (min-width: 900px) { .hero__lead { font-size: 16px; } }

.scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: .28em;
  text-decoration: none;
}
.scroll::after {
  content: ""; width: 1px; height: 48px;
  background: var(--text-muted);
  transform-origin: top;
}

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section--sub { background: var(--bg-sub); }

/* 固定文の改行位置を保つため、スマホでは1行が収まる大きさに */
.message { font-size: clamp(13px, 3.6vw, 16px); letter-spacing: .02em; }
.message p { margin-bottom: 2em; }
.message__end {
  margin: 3em 0 0 !important;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .12em;
}

/* WHO */
.split { display: grid; gap: 40px; }
.split__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.facts { margin: 24px 0 16px; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.split__body .link { margin-top: 16px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; }
  .split__media { max-width: 480px; }
}

/* RESULTS */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 812px; }
.ba__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.ba figcaption { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-bottom: 1px solid var(--line); }
.ba__label { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--text-muted); }
.ba__num { font-family: var(--font-display); font-size: 28px; letter-spacing: .04em; }
.ba__note { margin-top: 24px; }
@media (min-width: 900px) {
  .ba { gap: 12px; grid-template-columns: 400px 400px; }
  .ba__num { font-size: 36px; }
}

/* PROJECT（スマホは横スワイプ、PC は3列） */
.pillars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  margin-bottom: 40px;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.pillars::-webkit-scrollbar { display: none; }
.pillar { scroll-snap-align: start; }
.pillar img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 20px; }
.pillar__num { margin: 0; color: var(--text-muted); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2em; }
.pillar__title { font-family: var(--font-display); font-size: 36px; letter-spacing: .1em; line-height: 1.3; }
.pillar__catch { margin: 4px 0 8px; }
.pillar__text { color: var(--text-muted); font-size: 14px; }
@media (min-width: 900px) {
  .pillars {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto 56px;
    overflow: visible;
  }
}

/* SERVICE */
.rows { border-top: 1px solid var(--line); }
.row { padding: 40px 0; border-bottom: 1px solid var(--line); }
.row__eyebrow { margin-bottom: 8px; color: var(--text-muted); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .2em; }
.row__title { margin-bottom: 16px; font-family: var(--font-display); font-size: 30px; letter-spacing: .06em; line-height: 1.3; }
@media (min-width: 900px) {
  .row { display: grid; grid-template-columns: 4fr 5fr auto; grid-template-rows: auto auto; column-gap: 48px; align-items: end; }
  .row__eyebrow { grid-column: 1; grid-row: 1; }
  .row__title { grid-column: 1; grid-row: 2; margin: 0; font-size: 36px; }
  .row > p:not([class]) { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; }
  .row .link { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

/* CONTENTS */
.channels { border-top: 1px solid var(--line); margin-top: 32px; }
.channels a {
  display: grid; gap: 4px;
  padding: 28px 32px 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
}
.channels a::after { content: "↗"; position: absolute; right: 0; top: 28px; color: var(--text-muted); }
.channels a:hover .channels__name { color: var(--accent); }
.channels__name { font-family: var(--font-display); font-size: 24px; letter-spacing: .1em; transition: color .2s var(--ease-out); }
.channels__what { font-size: 14px; }
.channels__text { color: var(--text-muted); font-size: 13px; }
@media (min-width: 900px) {
  .channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 0; }
  .channels a { border-top: 1px solid var(--line); }
}

/* CONTACT */
.cta { padding: calc(var(--section-y) * 1.25) 0; }
.cta__catch { margin: 24px 0 8px; font-size: 18px; letter-spacing: .12em; }
.cta .btn { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer__logo { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: .18em; margin-bottom: 32px; }
.site-footer__nav { display: grid; gap: 24px; margin-bottom: 40px; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__nav a { text-decoration: none; color: var(--text-muted); }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__legal { font-size: 12px; }
.site-footer__copy { color: var(--text-muted); margin: 0; }

/* ---------- 下層ページ ---------- */
.page-hero { padding: calc(var(--header-h) + 72px) 0 var(--section-y); border-bottom: 1px solid var(--line); }
.page-hero__title {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(44px, 12vw, 112px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .06em;
}
.page-hero__catch { margin: 0; font-size: 17px; letter-spacing: .1em; }
.page-hero__sub { margin: 8px 0 0; color: var(--text-muted); }
.page-hero--media .page-hero__grid { display: grid; gap: 40px; }
.page-hero--media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) {
  .page-hero { padding-top: calc(var(--header-h) + 120px); }
  .page-hero--media .page-hero__grid { grid-template-columns: 6fr 5fr; gap: 96px; align-items: end; }
  .page-hero--media figure { max-width: 460px; justify-self: end; width: 100%; }
}

/* 写真だけの区切り（背中など） */
.band { position: relative; height: 70vh; min-height: 420px; max-height: 760px; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

/* 見出し＋本文の基本ブロック */
.prose p { max-width: 36em; }
.subhead { margin: 48px 0 16px; font-size: 18px; font-weight: 500; letter-spacing: .1em; }
.subhead:first-child { margin-top: 0; }

/* 番号付きの列（4領域・ステップ・使い方） */
.items { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: item; }
.item { padding: 32px 0; border-bottom: 1px solid var(--line); }
.item__num { margin: 0 0 4px; color: var(--text-muted); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2em; }
.item__title { margin-bottom: 12px; font-family: var(--font-display); font-size: 28px; letter-spacing: .08em; line-height: 1.3; }
.item__title small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 14px; letter-spacing: .08em; }
.item p:last-child { margin-bottom: 0; color: var(--text-muted); }
@media (min-width: 900px) {
  .items--3 { grid-template-columns: repeat(3, 1fr); column-gap: 48px; border-top: 0; }
  .items--3 .item { border-top: 1px solid var(--line); }
  .items--2 { grid-template-columns: repeat(2, 1fr); column-gap: 48px; border-top: 0; }
  .items--2 .item { border-top: 1px solid var(--line); }
}

/* 悩みのリスト */
.checks { border-top: 1px solid var(--line); }
.checks li { padding: 20px 0 20px 28px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 1px; background: var(--text-muted); }

/* 料金 */
.price { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price__label { margin-bottom: 8px; color: var(--text-muted); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .24em; }
.price__num { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(48px, 13vw, 80px); line-height: 1; letter-spacing: .02em; }
.price__num small { margin-left: 8px; font-family: var(--font-body); font-size: 14px; letter-spacing: .06em; color: var(--text-muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-muted); font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 0 24px; color: var(--text-muted); }

/* 準備中 */
.btn[aria-disabled="true"] { border-color: var(--line); color: var(--text-muted); pointer-events: none; }
.prep {
  display: grid; place-items: center;
  min-height: 220px; padding: 24px;
  border: 1px dashed var(--line);
  color: var(--text-muted);
  text-align: center;
}
.prep-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .prep-grid { grid-template-columns: repeat(3, 1fr); } }

/* 注意事項 */
.notice { border-top: 1px solid var(--line); }
.notice li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.notice li span { display: block; color: var(--text-muted); font-size: 13px; }

/* MY STORY */
.story { display: grid; gap: 48px; }
.story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: start; }
.story__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.story__photos figcaption { padding-top: 8px; color: var(--text-muted); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .2em; }
@media (min-width: 900px) {
  .story { grid-template-columns: 6fr 5fr; gap: 96px; }
  .story__photos { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* 2つの入口（CONCEPT の NEXT など） */
.doors { display: grid; gap: 0; }
.doors a + a { border-top: 0; }
@media (min-width: 900px) { .doors a + a { border-top: 1px solid var(--line); } }
.doors a {
  display: block; padding: 32px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.doors a:hover .doors__name { color: var(--accent); }
.doors__eyebrow { display: block; color: var(--text-muted); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .2em; }
.doors__name { display: block; margin: 4px 0 8px; font-family: var(--font-display); font-size: 30px; letter-spacing: .06em; transition: color .2s var(--ease-out); }
.doors__text { color: var(--text-muted); font-size: 14px; }
@media (min-width: 900px) { .doors { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* 法的ページ・404 */
.simple { min-height: 60vh; display: grid; align-content: center; }
.legal-title { margin: 0 0 16px; font-size: clamp(22px, 6vw, 32px); font-weight: 500; letter-spacing: .08em; line-height: 1.5; }
.legal { font-size: 14px; }
.legal h2 { margin: 48px 0 12px; font-size: 16px; font-weight: 500; letter-spacing: .06em; }
.legal h2:first-child { margin-top: 0; }
.legal ol, .legal ul { margin: 0 0 1em; padding-left: 1.5em; list-style: decimal; }
.legal ul { list-style: disc; }
.legal li { margin-bottom: .4em; }
.legal-table { margin: 0; border-top: 1px solid var(--line); }
.legal-table > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal-table dt { margin-bottom: 4px; color: var(--text-muted); font-size: 13px; }
.legal-table dd { margin: 0; }
@media (min-width: 900px) {
  .legal-table > div { display: grid; grid-template-columns: 14em 1fr; gap: 24px; }
  .legal-table dt { margin: 0; }
}
/* 下書き中の空欄と注意書き（公開前にすべて消す） */
.blank { padding: 0 4px; border: 1px dashed var(--accent); color: var(--accent); background: none; }
.draft-note { margin: 0 0 48px; padding: 16px 20px; border: 1px solid var(--accent); color: var(--text); font-size: 13px; }

/* ---------- motion（JS が動き、かつ動きを減らす設定でないときだけ） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow, .hero__title, .hero__lead {
    animation: fade-in .9s var(--ease-out) both;
  }
  .page-hero .eyebrow, .page-hero__title, .page-hero__catch, .page-hero__sub { animation: fade-in .8s var(--ease-out) both; }
  .page-hero__title { animation-delay: .15s; }
  .page-hero__catch, .page-hero__sub { animation-delay: .35s; }
  .hero__eyebrow { animation-delay: .2s; }
  .hero__title { animation-delay: .4s; }
  .hero__lead { animation-delay: .65s; }
  /* SCROLL は translateX で中央寄せしているので、透明度だけ動かす */
  .scroll { animation: fade-in-opacity .9s var(--ease-out) .9s both; }
  .scroll::after { animation: scroll-line 2.4s var(--ease-out) infinite; }

  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade-in-opacity { from { opacity: 0; } }
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
