/*
 * 今日、なにする？ 公開LP — スタイル。
 * 色・フォント・発光はデザイントークン(packages/shared/src/tokens.ts)と
 * デザインブリーフv2「カラフルグロー(ミント→青)」を単一の真実とする。
 * 発光はブリーフ§4の許可リストに沿って控えめに(ヒーローCTA脈動 / グラデ見出し /
 * 開催中チップ / 全画面の淡いオーロラ)。それ以外は白地・hair罫線・無発光。
 */

:root {
  /* --- カラートークン(tokens.ts と一致) --- */
  --bg: #ffffff;
  --ink: #1a1c22;
  --muted: #8a8f9b;
  --hair: #eeeff3;
  --mint: #00d99a;
  --sky: #23b0ff;
  --violet: #7c5cff;
  --pink: #fd3a84;
  --orange: #ff7854;
  --amber: #ffb020;
  --glow-primary: rgba(0, 200, 190, 0.45);

  /* --- グラデーション(GRADIENTS と一致) --- */
  --grad: linear-gradient(120deg, #00d99a, #23b0ff);
  --grad-now: linear-gradient(140deg, #7c5cff, #23b0ff);
  --grad-plan: linear-gradient(140deg, #fd3a84, #ff7854);
  --grad-near: linear-gradient(140deg, #ffd466, #ffb020);

  /* --- 角丸(RADII と一致) --- */
  --r-card: 18px;
  --r-control: 14px;
  --r-full: 999px;

  /* --- フォント --- */
  --font-body: "IBM Plex Sans JP", system-ui, -apple-system, sans-serif;
  --font-util: "Space Grotesk", var(--font-body);

  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 全画面の淡いオーロラ(ブリーフ§4-5)。土台は白を保ち上部に淡く敷く */
body::before {
  content: "";
  position: fixed;
  top: -240px;
  right: -160px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(0, 217, 154, 0.16),
    rgba(35, 176, 255, 0.12) 50%,
    rgba(124, 92, 255, 0.07) 68%,
    transparent 80%
  );
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* 数値・英字ラベル専用(Space Grotesk) */
.util {
  font-family: var(--font-util);
  letter-spacing: 0.08em;
}

/* グラデーション文字(見出しの強調・ブリーフ§4) */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ ヘッダー ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 4px 12px var(--glow-primary);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.header-nav a:hover {
  color: var(--ink);
}
.header-nav .nav-cta {
  color: var(--ink);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--hair);
}
@media (max-width: 640px) {
  .header-nav .nav-link {
    display: none;
  }
}

/* ============ 共通セクション ============ */
section {
  position: relative;
  z-index: 1;
}
.section-pad {
  padding: 88px 0;
}
.eyebrow {
  font-family: var(--font-util);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.section-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}
.center {
  text-align: center;
}
.center .section-lead {
  margin-inline: auto;
}

/* ============ ヒーロー ============ */
.hero {
  padding: 64px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero .sub {
  margin-top: 20px;
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--muted);
  max-width: 460px;
}
.hero .cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* App Store バッジ(公開前=無効) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-control);
  padding: 12px 20px;
  cursor: not-allowed;
  opacity: 0.92;
  position: relative;
}
.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.store-badge .bt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge .bt .small {
  font-size: 11px;
  opacity: 0.8;
}
.store-badge .bt .big {
  font-size: 17px;
  font-weight: 600;
}
.badge-note {
  font-family: var(--font-util);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mint);
  background: rgba(0, 217, 154, 0.1);
  padding: 7px 13px;
  border-radius: var(--r-full);
  font-weight: 500;
}

/* ============ 端末モック(視覚の正解 HOME を再現) ============ */
.phone-stage {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone {
  width: 320px;
  background: var(--bg);
  border-radius: 36px;
  padding: 22px 18px 18px;
  border: 1px solid var(--hair);
  box-shadow: 0 28px 70px rgba(26, 28, 34, 0.12);
  position: relative;
  overflow: hidden;
}
.phone .ph-aurora {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(0, 217, 154, 0.18),
    rgba(35, 176, 255, 0.14) 50%,
    rgba(124, 92, 255, 0.08) 68%,
    transparent 80%
  );
  filter: blur(8px);
  pointer-events: none;
}
.phone .ph-date {
  font-family: var(--font-util);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.phone .ph-h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 6px 0 18px;
}
.phone .mood {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  background: var(--grad);
  border-radius: 18px;
  padding: 17px;
  margin-bottom: 13px;
  box-shadow: 0 10px 32px var(--glow-primary), 0 4px 12px rgba(35, 176, 255, 0.32);
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% {
    box-shadow: 0 10px 32px var(--glow-primary), 0 4px 12px rgba(35, 176, 255, 0.32);
  }
  50% {
    box-shadow: 0 14px 48px rgba(0, 200, 190, 0.6), 0 4px 16px rgba(35, 176, 255, 0.42);
  }
}
.phone .mood .t {
  font-size: 15px;
  font-weight: 700;
}
.phone .mood .s {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 3px;
}
.phone .mood .arrow {
  font-family: var(--font-util);
  font-size: 20px;
}
.phone .quick {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.phone .q {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 14px;
  padding: 11px 0 9px;
  color: #fff;
}
.phone .q.now {
  background: var(--grad-now);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.4);
}
.phone .q.plan {
  background: var(--grad-plan);
  box-shadow: 0 6px 18px rgba(253, 58, 132, 0.38);
}
.phone .q.near {
  color: #7a4d00;
  background: var(--grad-near);
  box-shadow: 0 6px 18px rgba(255, 176, 32, 0.4);
}
.phone .ph-sec {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 11px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.phone .ph-sec span {
  font-family: var(--font-util);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.phone .ph-card {
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 11px;
}
.phone .ph-img {
  height: 92px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.phone .ph-img.fest {
  background: linear-gradient(160deg, #ffd2e4, #ffafc9);
}
.phone .ph-img.green {
  background: linear-gradient(160deg, #c9f6e4, #9bedd0);
}
.phone .ph-chip {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
}
.phone .ph-chip.live {
  color: #00a884;
  box-shadow: 0 0 14px rgba(0, 200, 190, 0.55);
}
.phone .ph-chip.cat {
  color: #067a55;
}
.phone .ph-body {
  padding: 11px 13px;
}
.phone .ph-body .n {
  font-size: 14px;
  font-weight: 700;
}
.phone .ph-body .d {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.phone .ph-meta {
  font-family: var(--font-util);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: 0.06em;
}
.phone .ph-meta b {
  color: var(--ink);
  font-weight: 500;
}

/* ============ 使い方 3ステップ ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.step {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 28px 24px;
  background: #fff;
}
.step .num {
  font-family: var(--font-util);
  font-size: 30px;
  font-weight: 700;
}
.step .icon {
  margin: 14px 0 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair);
}
.step .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
}

/* ============ 特長 ============ */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.feature {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 26px 24px;
  background: #fff;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature .ficon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  box-shadow: 0 8px 20px var(--glow-primary);
}
.feature .ficon svg {
  width: 23px;
  height: 23px;
  stroke: #fff;
}
.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature p {
  font-size: 14px;
  color: var(--muted);
}

/* ============ スクリーンショットギャラリー ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.shot {
  aspect-ratio: 9 / 17;
  border-radius: 24px;
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
}
.shot .frame-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--muted);
}
.shot .soon {
  font-family: var(--font-util);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.shot .cap {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
/* 各枠は淡いカテゴリトーンで体系化(tokens.ts CATEGORY_TINTS) */
.shot.t1 { background: linear-gradient(160deg, #c9f6e4, #9bedd0); }
.shot.t2 { background: linear-gradient(160deg, #d6f3ff, #a8e4ff); }
.shot.t3 { background: linear-gradient(160deg, #e8ddff, #d2bfff); }
.shot.t4 { background: linear-gradient(160deg, #ffd2e4, #ffafc9); }

/* ============ 最終CTA ============ */
.final-cta {
  text-align: center;
  border: 1px solid var(--hair);
  border-radius: 28px;
  padding: 56px 24px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 25% 15%, rgba(0, 217, 154, 0.1), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(35, 176, 255, 0.1), transparent 45%),
    #fff;
}
.final-cta h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.final-cta p {
  color: var(--muted);
  margin-bottom: 26px;
}

/* ============ フッター ============ */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 44px 0 56px;
  position: relative;
  z-index: 1;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .f-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .f-links a:hover {
  color: var(--ink);
}
.site-footer .copy {
  font-family: var(--font-util);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ============ 法務・サポート本文 ============ */
.doc {
  padding: 56px 0 88px;
  position: relative;
  z-index: 1;
}
.doc .wrap {
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.doc .updated {
  font-family: var(--font-util);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}
.doc h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}
.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.doc p {
  margin-bottom: 12px;
  color: var(--ink);
}
.doc ul {
  margin: 0 0 14px 1.1em;
}
.doc li {
  margin-bottom: 8px;
}
.doc .muted {
  color: var(--muted);
}
.doc a.inline {
  color: var(--sky);
  font-weight: 500;
}
.doc .contact-card {
  margin-top: 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 22px 24px;
  background: #fff;
}
.doc .contact-card .lbl {
  font-family: var(--font-util);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.doc .contact-card .mail {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.back-home:hover {
  color: var(--ink);
}
.back-home svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ============ レスポンシブ ============ */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero .sub {
    margin-inline: auto;
  }
  .hero .cta-row {
    justify-content: center;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .section-pad {
    padding: 64px 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

/* アクセシビリティ: モーション削減 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
