/* ============ Tokens ============ */
:root {
  --red: #E0241B;
  --blue: #1656E8;
  --ink: #16181D;
  --ink-soft: #4A4D55;
  --paper: #F7F4EE;
  --paper-deep: #EFEAE0;
  --white: #FFFFFF;
  --x-black: #0F1419;
  --line-green: #06C755;

  --font-display: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-brand: "Bradley Hand", "BradleyHandITCTT-Bold", "Caveat", cursive;

  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  --text-hero: clamp(2.2rem, 1rem + 4.6vw, 4.2rem);

  --space-section: clamp(5rem, 3rem + 8vw, 10rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-pass: 0 24px 48px -16px rgba(22, 24, 29, 0.35);
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
}
body.hero-only {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.hero-only main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
}

img { display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-ink { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px -8px rgba(22, 24, 29, 0.5); }
.btn-ink:hover { background: #000; box-shadow: 0 14px 28px -10px rgba(22, 24, 29, 0.55); }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-store { display: inline-flex; align-items: center; gap: 0.55rem; }
.apple-logo { width: 1.15em; height: 1.15em; margin-top: -0.15em; }

/* ============ Header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { width: 72px; height: 72px; }
.brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 2.6rem; letter-spacing: 0.02em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 150ms;
}
.site-nav a:hover { color: var(--ink); }

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(1rem, 2vw, 2rem);
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
}
.hero-copy > * {
  animation: rise-in 700ms var(--ease-out) backwards;
}
.hero-copy .eyebrow { animation-delay: 80ms; }
.hero-copy h1 { animation-delay: 180ms; }
.hero-copy .hero-actions { animation-delay: 320ms; }
@keyframes rise-in {
  from { transform: translateY(24px); opacity: 0; }
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); margin-left: -7px; }
.hero h1 { font-size: var(--text-hero); font-weight: 900; }
.nowrap { white-space: nowrap; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 1.6rem;
  max-width: 34em;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-soft); }

/* Pass cards — 手札ファン (アプリの実スクリーンショット) */
.hero-visual {
  position: relative;
  height: min(58vh, 540px);
}
.pass {
  position: absolute;
  display: block;
  left: 50%;
  top: 50%;
  width: clamp(180px, 19vw, 250px);
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-pass);
  transform-origin: 50% 140%;
  transform: translate(-50%, -56%) rotate(var(--angle));
  transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
  animation: fan-in 800ms var(--ease-out) backwards;
  /* Wallet pass notch */
  -webkit-mask: radial-gradient(14px at 50% 0, transparent 97%, #000) top / 100% 100% no-repeat;
  mask: radial-gradient(14px at 50% 0, transparent 97%, #000) top / 100% 100% no-repeat;
}
.pass-x   { --angle: -16deg; z-index: 1; animation-delay: 250ms; }
.pass-line { --angle: 0deg;  z-index: 2; animation-delay: 380ms; }
.pass-ig  { --angle: 16deg;  z-index: 3; animation-delay: 510ms; }
@keyframes fan-in {
  from { transform: translate(-50%, -40%) rotate(0deg); opacity: 0; }
}
/* ホバーで手札が横に開く */
.hero-visual:hover .pass-x   { --angle: -30deg; }
.hero-visual:hover .pass-ig  { --angle: 30deg; }
.hero-visual:hover .pass { box-shadow: 0 30px 56px -18px rgba(22, 24, 29, 0.42); }
.pass:hover {
  transform: translate(-50%, -56%) rotate(var(--angle)) translateY(-26px);
}

/* ============ Legal pages ============ */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem var(--space-section);
}
.legal h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 0.5rem; }
.legal .legal-date { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 3rem; }
.legal h2 {
  font-size: 1.3rem;
  margin: 2.8rem 0 0.9rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--red);
}
.legal h2:nth-of-type(even) { border-color: var(--blue); }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li { margin: 0.4rem 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.legal th, .legal td { border: 1px solid rgba(22, 24, 29, 0.15); padding: 0.6rem 0.9rem; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-deep); font-weight: 700; white-space: nowrap; }
.legal a { color: var(--blue); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 1rem; align-content: center; }
  .hero-visual { height: min(44vh, 420px); width: 100%; }
  .pass { width: clamp(150px, 44vw, 200px); }
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 1.9rem; }
}
@media (max-width: 560px) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
