/* LEZAKOQ（レザコク） 共通部品 — tokens.css の次に全ページで読む。
   ヘッダー／フッター／ボタン／フォーム部品／.reveal／.badge／.notice／準備中オーバーレイ。
   白い紙の上に黒い刻印。アクセント --laser は 1 画面 1〜2 箇所だけ。 */

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
strong { font-weight: 700; }
small { font-size: .85em; }

:focus-visible { outline: 2px solid var(--laser); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  font-size: 14px; border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- レイアウト ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(var(--gutter), 4vw, 40px);
}
.container--narrow { max-width: 760px; }

/* ---------- 文字 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.15;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--ink); flex: none;
}
.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.3;
  letter-spacing: .01em;
}
.section-title .display { font-size: .92em; }
.lead { font-size: 17px; color: var(--ink-2); line-height: 1.9; }
.muted { color: var(--ink-3); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 背景：レーザーベッドのドット格子と粒子ノイズ ---------- */
.bed {
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 24px 24px;
  background-position: 12px 12px;
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.grain ~ * { position: relative; z-index: 1; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 249, .88);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--ink);
}
.wordmark__kana {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-3);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { font-size: 14px; font-weight: 500; padding: 6px 0; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px clamp(var(--gutter), 4vw, 40px) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav .btn { margin-top: 16px; width: 100%; }
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  color: var(--ink-2);
  font-size: 13px;
}
.site-footer__inner { display: grid; gap: 28px; }
.site-footer .wordmark { font-size: 16px; }
.site-footer__tag { margin-top: 10px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer__links a { font-weight: 500; }
.site-footer__copy {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .02em;
  white-space: nowrap;
  transition: box-shadow .35s var(--ease-out), background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover, .btn-primary:focus-visible {
  box-shadow: 0 0 0 1px var(--laser), 0 0 0 4px var(--laser-glow), 0 0 28px var(--laser-glow);
  outline-color: transparent;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--ink); background: rgba(14, 14, 16, .03); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn__arrow { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* 下線が左から焼けるように伸びるリンク */
.link-burn { position: relative; display: inline-block; }
.link-burn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--laser);
  box-shadow: 0 0 6px var(--laser-glow);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .4s var(--ease-out);
}
.link-burn:hover::after, .link-burn:focus-visible::after { transform: scaleX(1); }
.link-burn:focus-visible { outline: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- フォーム部品 ---------- */
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field > label, .field__label { font-size: 14px; font-weight: 500; }
.field .req { color: var(--laser); font-family: var(--font-mono); font-size: 11px; margin-left: 6px; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E0E10' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14, 14, 16, .06);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field .help { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.field .error { display: none; font-size: 12px; color: var(--laser); line-height: 1.6; }
.field.is-error .error { display: block; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--laser); }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); }
.field--check label { font-size: 14px; font-weight: 400; line-height: 1.7; }
.field--check .help, .field--check .error { grid-column: 2; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* ---------- バッジ・注意書き ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.5; white-space: nowrap;
}
.badge--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge--laser { color: var(--laser); border-color: var(--laser); }
.notice {
  padding: 14px 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 14px; line-height: 1.7;
}
.notice--warn { border-left-color: var(--laser); }
.notice--plain { background: transparent; }

/* ---------- スクロール出現 ---------- */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--stagger > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.js .reveal--stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal--stagger.is-in > :nth-child(2) { transition-delay: .08s; }
.js .reveal--stagger.is-in > :nth-child(3) { transition-delay: .16s; }
.js .reveal--stagger.is-in > :nth-child(4) { transition-delay: .24s; }
.js .reveal--stagger.is-in > :nth-child(5) { transition-delay: .32s; }
.js .reveal--stagger.is-in > :nth-child(6) { transition-delay: .40s; }
.js .reveal--stagger.is-in > :nth-child(7) { transition-delay: .48s; }
.js .reveal--stagger.is-in > :nth-child(8) { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal--stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- 準備中オーバーレイ（/api/site/status が open:false のとき common.js が出す） ---------- */
.site-closed {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 24px; text-align: center;
  background: var(--paper);
}
.site-closed__mark {
  font-family: var(--font-display); font-weight: 800; letter-spacing: .04em;
  font-size: clamp(28px, 7vw, 48px); line-height: 1;
}
.site-closed__kana {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .3em; color: var(--ink-3);
}
.site-closed__line {
  width: 48px; height: 2px; margin: 28px auto;
  background: var(--laser); box-shadow: 0 0 12px var(--laser-glow);
}
.site-closed__status { font-size: 18px; font-weight: 700; }
.site-closed__note { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
body.is-closed { overflow: hidden; }
