/* =========================================================
   SyncDive — 公式サイト共通スタイル
   深夜の海に「潜る」世界観 / 濃紺・明朝見出し・淡い青
   ========================================================= */

:root {
  --bg-0: #05060a;
  --bg-1: #080c18;
  --card: #0e1424;
  --card-2: #0b1120;
  --border: #2a3550;
  --border-soft: #1b2236;
  --text: #e8ecf4;
  --text-2: #c7cedb;
  --muted: #8a93a6;
  --accent: #7fb2ff;
  --accent-soft: rgba(127, 178, 255, 0.14);
  --maxw: 1080px;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---- 背景: 濃紺グラデ + 上方からの淡い光 + 星空 ---- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(127, 178, 255, 0.10) 0%, rgba(127, 178, 255, 0.03) 28%, transparent 60%),
    radial-gradient(100% 60% at 50% 120%, rgba(40, 53, 80, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #03040799 100%);
}
/* 微粒子（きらめき）: 2層の radial-gradient ドット */
.bg-field::before,
.bg-field::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-repeat: repeat;
  opacity: 0.5;
}
.bg-field::before {
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(232, 236, 244, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 70% 60%, rgba(232, 236, 244, 0.40), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(127, 178, 255, 0.55), transparent),
    radial-gradient(1.6px 1.6px at 85% 15%, rgba(232, 236, 244, 0.45), transparent);
  background-size: 360px 360px, 280px 280px, 420px 420px, 320px 320px;
  animation: drift 60s linear infinite;
}
.bg-field::after {
  background-image:
    radial-gradient(1px 1px at 10% 70%, rgba(232, 236, 244, 0.35), transparent),
    radial-gradient(1.2px 1.2px at 55% 25%, rgba(127, 178, 255, 0.40), transparent),
    radial-gradient(1px 1px at 90% 85%, rgba(232, 236, 244, 0.30), transparent);
  background-size: 500px 500px, 460px 460px, 540px 540px;
  opacity: 0.35;
  animation: drift 90s linear infinite reverse;
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-60px); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-field::before, .bg-field::after { animation: none; }
  .appstore-badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- レイアウト共通 ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 14px;
  opacity: 0.9;
}
h2.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.5;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}
a { color: var(--accent); }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.72), rgba(5, 6, 10, 0.18));
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand .logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.04em;
}
.brand .logo-jp {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.22em;
}
.header-nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
}
.header-nav a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent); }

/* ---- ヒーロー ---- */
.hero { padding: 84px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-logo {
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 56px);
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}
.hero-logo-jp {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.32em;
  margin: 0 0 30px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1.5;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 36px rgba(127, 178, 255, 0.18);
}
.hero-body {
  color: var(--text-2);
  font-size: 16px;
  max-width: 38em;
  margin: 0 0 28px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}
.pill {
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
/* CTA: App Store バッジ風（App Store の実リンク） */
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(200, 247, 251, 0.6);
  /* アプリの「ダイブする」と同じ発光した水色（アクア）で塗りつぶし、背景から浮かせる */
  background: linear-gradient(180deg, #a8edf3 0%, #6fd0e6 100%);
  border-radius: 14px;
  padding: 13px 22px;
  color: #06121c;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.3s ease, filter 0.2s ease;
  box-shadow: 0 0 0 1px rgba(127, 220, 235, 0.25), 0 12px 34px -10px rgba(111, 210, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: badgeGlow 3.6s ease-in-out infinite;
}
.appstore-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 0 0 1px rgba(127, 220, 235, 0.45), 0 18px 48px -8px rgba(111, 210, 235, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(127, 220, 235, 0.2), 0 10px 28px -12px rgba(111, 210, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
  50%      { box-shadow: 0 0 0 1px rgba(127, 220, 235, 0.35), 0 16px 44px -8px rgba(111, 210, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
}
.appstore-badge .apple { color: #06121c; flex: 0 0 auto; }
.appstore-badge .ba-sub { display: block; font-size: 10px; color: rgba(6, 18, 28, 0.72); letter-spacing: 0.18em; }
.appstore-badge .ba-main { display: block; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }
/* クロージングの大型バッジ */
.appstore-badge--lg { padding: 17px 32px; border-radius: 16px; gap: 14px; }
.appstore-badge--lg .ba-sub { font-size: 11px; }
.appstore-badge--lg .ba-main { font-size: 20px; }
.cta-note { font-size: 12px; color: var(--muted); }

/* ヘッダーの常時表示CTA */
.header-right { display: flex; align-items: center; gap: 22px; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(200, 247, 251, 0.55);
  background: linear-gradient(180deg, #a8edf3 0%, #6fd0e6 100%);
  color: #06121c;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 0 18px -4px rgba(111, 210, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.3s ease;
}
.header-cta:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 0 26px -2px rgba(111, 210, 235, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.header-cta .apple { color: #06121c; flex: 0 0 auto; }

/* クロージングCTA配置 */
.closing-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ---- 端末モック ---- */
.device {
  position: relative;
  width: 248px;
  aspect-ratio: 640 / 1104;
  margin: 0 auto;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #232c44, #0c1020);
  box-shadow:
    0 0 0 1px rgba(127, 178, 255, 0.12),
    0 30px 70px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -30px rgba(127, 178, 255, 0.45);
}
.device::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 5px;
  border-radius: 3px;
  background: #05060a;
  z-index: 2;
}
.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  display: block;
}
.hero .device { margin-top: 8px; }

/* ---- 3ステップ ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border-radius: 16px;
  padding: 28px 24px 24px;
}
.step .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.step p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ---- ギャラリー（アプリ画面） ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 18px;
  justify-items: center;
}
.shot { text-align: center; }
.shot .caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---- 価値（3カラム） ---- */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.value {
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border-radius: 16px;
  padding: 26px 24px;
}
.value h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.value p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ---- クロージング ---- */
.closing { text-align: center; padding: 96px 0; }
.closing p {
  font-family: var(--serif);
  font-size: clamp(20px, 4.6vw, 30px);
  line-height: 1.9;
  color: var(--text);
  max-width: 22em;
  margin: 0 auto;
  letter-spacing: 0.03em;
  text-shadow: 0 0 40px rgba(127, 178, 255, 0.16);
}

/* ---- フッター ---- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 44px 0 56px;
  background: linear-gradient(180deg, transparent, rgba(3, 4, 7, 0.6));
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-brand .logo { font-family: var(--serif); font-size: 18px; letter-spacing: 0.04em; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }

/* =========================================================
   法務ページ（privacy / terms）
   ========================================================= */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 110px; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 5vw, 30px);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.legal .updated { color: var(--muted); font-size: 13px; margin: 0 0 32px; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  margin: 38px 0 10px;
  letter-spacing: 0.02em;
}
.legal p { color: var(--text-2); font-size: 15px; margin: 0 0 12px; }
.legal ul { color: var(--text-2); font-size: 15px; padding-left: 22px; margin: 0 0 12px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--accent); }
.callout {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-2);
  margin-bottom: 28px;
}
.legal-back:hover { color: var(--accent); }
.legal-nav {
  display: flex;
  gap: 22px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
}
.legal-nav a { text-decoration: none; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (min-width: 720px) {
  section { padding: 88px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero-grid .hero-copy { text-align: left; }
  .device { width: 280px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
}

@media (max-width: 719px) {
  .header-nav { display: none; }
  .hero-grid { text-align: center; }
  .hero-body { margin-left: auto; margin-right: auto; }
  .pills, .cta-row { justify-content: center; }
}
