/* ===========================
   Design Tokens (Premium Dark)
   =========================== */
:root {
  /* ベーシックカラー */
  --bg-deep: #050505;
  --bg-base: #0a0a0a;
  
  /* グラスモーフィズム / 重なり */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  
  /* テキスト・アクセント */
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.3);
  
  /* テーマカラー (Rose Gold / Blush Pink) */
  --accent-1: #ffd1b3;   /* ピュアシャンパン */
  --accent-2: #e8a598;   /* ローズピンク */
  --accent-3: #c27a7e;   /* ディープブラッシュ */
  
  /* グラデーション */
  --grad-premium: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --grad-subtle: linear-gradient(135deg, rgba(255, 209, 179, 0.8), rgba(232, 165, 152, 0.6));
  
  /* シャドウ・発光 */
  --glow-soft: 0 4px 30px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 40px rgba(232, 165, 152, 0.2);
  
  /* その他 */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-logo: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===========================
   Reset & Base Utilities
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background-color: var(--bg-deep); /* 最も暗い黒 */
  color: var(--text-main);
  font-family: var(--font-en), var(--font-ja);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.text-center { text-align: center; }

h1, h2, h3 { 
  font-weight: 400; 
  letter-spacing: -0.02em; 
  line-height: 1.2; 
}

/* Utils: Text Gradient */
.text-gradient {
  background: var(--grad-premium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.text-gradient-subtle {
  background: var(--grad-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


/* ===========================
   Ambient Background Glow (背景のぼんやりした光)
   =========================== */
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  mix-blend-mode: screen;
  transition: transform 1s ease-out; /* マウスオーバー用 */
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  top: -20vh;
  left: -20vw;
  animation: float 20s infinite alternate var(--ease-smooth);
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
  bottom: -10vh;
  right: -10vw;
  animation: float 25s infinite alternate-reverse var(--ease-smooth);
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  top: 40vh;
  left: 30vw;
  opacity: 0.1;
  animation: float 30s infinite alternate var(--ease-smooth);
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3vw, -5vh) scale(1.1); }
  66% { transform: translate(-2vw, 4vh) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ===========================
   Glassmorphism Components
   =========================== */
.glass-panel, .glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glow-soft);
}

.glass-card {
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-expo), border-color 0.4s ease;
}

/* インタラクティブなカード発光エフェクト */
.hover-glow {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.card-glow-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}
.glass-card:hover {
  border-color: var(--glass-highlight);
  transform: translateY(-4px) translateZ(10px);
}
.glass-card:hover .card-glow-bg {
  opacity: 1;
}
.card-content {
  position: relative;
  z-index: 2;
  padding: 40px;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: background 0.4s ease, border-bottom 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.nav-cta {
  background: var(--text-main);
  color: var(--bg-deep);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: var(--accent-1);
  transform: scale(1.05);
}

/* ===========================
   Buttons (Advanced)
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--text-main);
  color: var(--bg-deep);
  font-weight: 500;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-expo);
}

.btn-icon { width: 18px; height: 18px; fill: currentColor; }

/* ボタンホバーのプレミアムエフェクト */
.hover-glow-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}
.hover-glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}
.hover-glow-btn:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  padding: 2px; /* ボーダー幅 */
  border-radius: 999px;
  background: linear-gradient(135deg, var(--glass-highlight), transparent);
  color: var(--text-main);
  font-size: 15px;
  transition: transform 0.4s var(--ease-expo);
}
.btn-secondary-inner {
  display: flex;
  align-items: center;
  padding: 14px 30px;
  background: var(--bg-base);
  border-radius: 999px;
  transition: background 0.3s ease;
}
.btn-secondary:hover { transform: translateY(-2px); }
.btn-secondary:hover .btn-secondary-inner {
  background: transparent; /* 下のグラデが透ける */
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100vh;
  z-index: -1;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center;
}

.hero-content {
  flex: 1;
  padding-right: 60px;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-1);
  border: 1px solid rgba(255, 209, 179, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 32px;
}

.hero-desc {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
}

/* Phone Glass Mockup */
.phone-frame {
  width: 320px;
  border-radius: 48px;
  padding: 12px;
  position: relative;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.6s var(--ease-expo);
  box-shadow: 
    -20px 20px 60px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.1);
}
.phone-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}

.phone-screenshot {
  border-radius: 36px;
  width: 100%;
  display: block;
}

/* 画面上の反射光 */
.glass-reflection {
  position: absolute;
  inset: 0;
  border-radius: 48px;
  background: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

/* Scroll Down Hint */
.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 5%;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.6;
}
.scroll-text {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  transform: rotate(-90deg);
  transform-origin: left center;
  margin-bottom: 24px;
}
.scroll-line {
  width: 1px; height: 60px;
  background: var(--glass-border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 50%;
  background: var(--text-main);
  animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}


/* ===========================
   General Section Layout
   =========================== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 5%;
}

.section-title {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
}

/* ===========================
   Features Section
   =========================== */
.features .section-header {
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-icon-wrap {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  border: 1px solid var(--glass-border);
  color: var(--accent-1);
}
.feature-icon { width: 24px; height: 24px; }

.feature-title {
  font-size: 22px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===========================
   Howto Section
   =========================== */
.howto-container {
  border-radius: 40px;
  padding: 80px 5%;
}

.steps-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  gap: 20px;
}

@media (min-width: 768px) {
  .steps-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.step-item {
  flex: 1;
  padding: 24px 0;
  position: relative;
}

.step-number {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 16px;
}

.step-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.step-connector {
  display: none;
}
@media (min-width: 768px) {
  .step-connector {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--glass-border);
    margin-top: 60px;
    flex-shrink: 0;
  }
}

/* ===========================
   CTA & Footer Section
   =========================== */
.cta-footer-wrap {
  background: linear-gradient(to bottom, transparent, var(--bg-base));
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

/* ぼんやりした背後光の追加 */
.cta-footer-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 50vh;
  background: radial-gradient(ellipse, rgba(232, 165, 152, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.download-section {
  padding: 120px 0;
}

.cta-title {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
}
.cta-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.cta-action {
  margin-bottom: 24px;
}

.btn-cta {
  padding: 20px 48px;
  font-size: 18px;
}

.cta-note {
  font-size: 12px;
  color: var(--text-faint);
}

/* Footer Structure */
.footer {
  border-top: 1px solid var(--glass-border);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 5%;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: block;
  height: 20px;
  width: auto;
  opacity: 0.4;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--text-main); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  text-align: center;
}
.footer-copy {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-faint);
}

/* ===========================
   Animations & Reveal Classes
   =========================== */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo);
}
.reveal-text.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}
.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Mobile Overrides
   =========================== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
  }
  .hero-content {
    padding-right: 0;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn-primary, .hero-actions .btn-secondary {
    width: 100%;
  }
  .sp-hide { display: none; }
  .scroll-indicator { display: none; }
  
  .phone-frame {
    transform: none; /* スマホでは斜め配置を解除 */
    width: 260px;
  }
  
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
