/* ─────────────────────────────────────────────────────────────
   Aiden 公開デモ - スマホファースト + エルメス級の手触り
   - 320px〜 (iPhone SE) で破綻しない
   - フォント最小 16px (iOS Safari ズーム回避)
   - タップ領域 44x44px〜 (Apple HIG)
   - Bodoni 系 + Noto Sans JP
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0a0a;
  --bg-alt: #131313;
  --fg: #f5f3ee;
  --fg-muted: #b9b3a3;
  --gold: #c9a961;
  --gold-dark: #a8893f;
  --line: rgba(245, 243, 238, 0.12);
  --tap-min: 44px;
  --serif: "Playfair Display", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  /* iOS Safari でズーム発生を防ぐ最小フォントサイズ */
  font-size: 16px;
  /* address-bar 影響を緩和 */
  height: 100%;
}

/* hidden 属性の最優先化 (.cta { display: inline-flex } 等が UA stylesheet を
   上書きしてしまうのを防ぐ) */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* notch 対応 */
  padding-bottom: env(safe-area-inset-bottom);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.gold {
  color: var(--gold);
}

.eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.eyebrow.center {
  text-align: center;
}

/* ─── Header ─── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  max-width: 720px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap-min);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
}
.brand-text {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.3em;
}
.hdr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: var(--tap-min);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0 16px;
  transition: background 200ms, color 200ms;
}
.hdr-cta:active {
  background: var(--gold);
  color: var(--bg);
}

/* ─── Hero ─── */
.hero {
  padding: 48px 20px 56px;
  background: radial-gradient(60% 60% at 80% 10%, rgba(201, 169, 97, 0.10), transparent 60%), var(--bg);
}
.hero-inner {
  max-width: 560px;
  margin: 0 auto;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--fg);
}
.hero-lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-muted);
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 480px) {
  .cta-row {
    flex-direction: row;
  }
  .cta-row .cta {
    flex: 1;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 200ms, color 200ms, border-color 200ms;
  -webkit-user-select: none;
  user-select: none;
}
.cta-primary {
  background: var(--gold);
  color: var(--bg);
}
.cta-primary:active {
  background: var(--gold-dark);
}
.cta-secondary {
  background: transparent;
  color: var(--fg);
  border-color: rgba(245, 243, 238, 0.3);
}
.cta-secondary:active {
  border-color: var(--gold);
  color: var(--gold);
}
.cta-wide {
  width: 100%;
}
.cta-icon {
  font-size: 18px;
}

.hero-hint {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 24px 0 0;
  text-align: left;
  line-height: 1.7;
}

/* ─── Feature: AR ─── */
.feature {
  padding: 64px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.feature-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.2;
  margin: 0 0 32px;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.step-no {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.steps p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ─── PWA install ─── */
.pwa {
  padding: 64px 20px;
  text-align: center;
}
.pwa-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 6vw, 32px);
  margin: 0 0 16px;
}
.pwa-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 24px;
}
.pwa-actions {
  max-width: 360px;
  margin: 0 auto;
}
.pwa-hint {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 16px 0 0;
  line-height: 1.6;
}
.pwa-hint strong {
  color: var(--gold);
  font-weight: 500;
}

/* ─── Footer ─── */
.ftr {
  padding: 40px 20px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.ftr-brand {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin: 0 0 12px;
}
.ftr-meta {
  font-size: 12px;
  color: var(--fg-muted);
  margin: 4px 0;
}

/* ─── reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
