/* =============================================
   よんだよノート LP
   Theme: #3b5bdb / Accent: #2563eb
   Fonts: Zen Maru Gothic, M PLUS Rounded 1c
   ============================================= */

/* --- CSS Variables --- */
:root {
  --primary: #3b5bdb;
  --primary-dark: #2b4acb;
  --accent: #2563eb;
  --ok: #16a34a;
  --warn: #eab308;
  --want: #7c3aed;
  --reading: #eab308;
  --done: #16a34a;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-section: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'M PLUS Rounded 1c', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Utilities --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 56px;
  color: var(--text);
}

.sp-only { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 15px 36px;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(59, 91, 219, .25);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(59, 91, 219, .35);
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 15px 36px;
  font-size: 1rem;
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(59, 91, 219, .04);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.125rem;
}

/* =============================================
   Header
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

.nav-link:hover {
  color: var(--primary);
}

.header-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 91, 219, .3);
  background: var(--primary-dark);
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  padding: 130px 0 100px;
  background: linear-gradient(175deg, #f0f4ff 0%, #e8eeff 40%, #f8fafc 100%);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(59, 91, 219, .1);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Store badges (Google Play / App Store) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.store-badges-center {
  justify-content: center;
  margin-top: 20px;
}

/*
 * Google Play PNG は画像全体の約23%が透明パディング（上下各29px / 250px中）。
 * Apple SVG は全面に黒ピル描画 → 同じCSS高さでも「見かけの黒ピル高さ」が
 * Apple のほうが大きくなる問題があった。
 * Google Play のみ render 高さを 1.302倍（250/192）に拡大し、
 * 負の margin で透明パディング分をレイアウト上からクロップする。
 */
.store-badges img {
  display: block;
  max-width: none;
}

/*
 * IMPORTANT: セレクタは .store-badge-link を挟むこと。
 * 挟まないと QR 画像 (alt="App Store QRコード" / "Google Play QRコード") にも
 * prefix 一致でマッチしてしまい、QR が強制的に 60/78 px にされる。
 */
.store-badges .store-badge-link img[alt^="App Store"] {
  height: 60px;
  width: auto;
}

.store-badges .store-badge-link img[alt^="Google Play"] {
  height: 78px;  /* 60 × 250/192 ≒ 78 */
  width: auto;
  margin: -9px 0;  /* 透明パディング分(29/250×78≒9px)を視覚的にクロップ */
}

/* バッジとQRをセットにする（縦積み: バッジ上、QR下） */
.store-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.store-qr {
  display: none;  /* モバイルでは非表示 */
  width: 110px;
  height: 110px;
  object-fit: contain;  /* 画像の natural size に関わらず厳密に表示枠に合わせる */
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.store-qr-hint {
  display: none;  /* モバイルでは非表示 */
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* PC: QR表示 + バッジは視覚的識別のみでクリック無効化 */
@media (min-width: 768px) {
  .store-qr {
    display: block;
  }
  .store-qr-hint {
    display: block;
  }
  .store-badges .store-badge-link {
    pointer-events: none;
    cursor: default;
  }
}

/* Decorative circles */
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 91, 219, .06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, .05) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
}

/* --- Phone Mockup --- */
.hero-visual {
  flex: 0 0 300px;
}

.phone-mockup {
  width: 280px;
  background: #0f172a;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.1) inset;
  margin: 0 auto;
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  background: #f8fafc;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 18;
  display: flex;
  flex-direction: column;
}

.mock-app-bar {
  background: var(--primary);
  padding: 36px 18px 14px;
  color: #fff;
}

.mock-app-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
}

.mock-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.mock-tab {
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--text-light);
  padding: 5px 8px;
  border-bottom: 2px solid transparent;
}

.mock-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mock-cards {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.mock-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  gap: 10px;
  padding: 10px;
  position: relative;
}

.mock-card-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.status-done { background: var(--done); }
.status-reading { background: var(--reading); }
.status-want { background: var(--want); }

.mock-card-cover {
  width: 40px;
  height: 56px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cover-1 { background: linear-gradient(135deg, #3b5bdb, #5c7cfa); }
.cover-2 { background: linear-gradient(135deg, #e64980, #f06595); }
.cover-3 { background: linear-gradient(135deg, #20c997, #38d9a9); }

.mock-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.mock-card-title-bar {
  height: 8px;
  width: 80%;
  background: #e2e8f0;
  border-radius: 4px;
}

.mock-card-title-bar.short { width: 55%; }

.mock-card-author-bar {
  height: 6px;
  width: 50%;
  background: #f1f5f9;
  border-radius: 4px;
}

.mock-card-author-bar.short { width: 35%; }

.mock-card-stars {
  display: flex;
  gap: 1px;
}

.mock-card-stars .star {
  width: 8px;
  height: 8px;
  display: inline-block;
}

.mock-card-stars .star::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.mock-card-stars .star.filled::before { background: #f59e0b; }
.mock-card-stars .star.empty::before { background: #e2e8f0; }

.mock-bottom-nav {
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 12px;
}

.mock-nav-icon {
  width: 20px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 4px;
}

.mock-nav-plus {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(59, 91, 219, .3);
}

/* =============================================
   Concept
   ============================================= */
.concept {
  padding: 100px 0;
  background: var(--bg-section);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.concept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.concept-icon {
  width: 56px;
  height: 56px;
  background: rgba(59, 91, 219, .08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.concept-card-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}

.concept-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* =============================================
   Features
   ============================================= */
.features {
  padding: 100px 0;
}

/* Feature Showcase (large) */
.feature-showcase {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 64px;
  padding: 48px;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.feature-showcase-text { flex: 1; }

.feature-showcase-heading {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-showcase-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.feature-showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-showcase-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.list-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 91, 219, .08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-showcase-visual {
  flex: 0 0 320px;
}

/* Scan card */
.showcase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-scan {
  background: #0f172a;
  padding: 40px 32px 24px;
  text-align: center;
}

.scan-viewfinder {
  width: 200px;
  height: 160px;
  margin: 0 auto 20px;
  position: relative;
}

.scan-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #fff;
  border-style: solid;
  border-width: 0;
}

.scan-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 6px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 6px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 6px; }
.scan-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 6px 0; }

.scan-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  top: 50%;
  animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { top: 20%; opacity: .8; }
  50% { top: 75%; opacity: 1; }
}

.scan-label {
  color: rgba(255, 255, 255, .6);
  font-size: 0.75rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(59, 91, 219, .08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

.status-dot:first-child { margin-left: 0; }
.dot-want { background: var(--want); }
.dot-reading { background: var(--reading); }
.dot-done { background: var(--done); }

/* =============================================
   How to use
   ============================================= */
.howto {
  padding: 100px 0;
  background: var(--bg-section);
}

.steps {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0 4px 14px;
  color: var(--border);
}

/* =============================================
   Voices
   ============================================= */
.voices {
  padding: 100px 0;
}

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

.voice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.voice-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.voice-stars .star {
  display: inline-block;
}

.voice-stars .star.filled::before {
  content: '\2605';
  color: #f59e0b;
  font-size: 0.9375rem;
}

.voice-stars .star.empty::before {
  content: '\2605';
  color: #e2e8f0;
  font-size: 0.9375rem;
}

.voice-text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.voice-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-avatar {
  width: 40px;
  height: 40px;
  background: rgba(59, 91, 219, .1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

.voice-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.voice-role {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* =============================================
   CTA
   ============================================= */
.cta {
  padding: 100px 0;
  background: linear-gradient(175deg, #eef2ff, #f0f4ff, #f8fafc);
}

.cta-inner {
  text-align: center;
}

.cta-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* =============================================
   Contact
   ============================================= */
.contact {
  padding: 80px 0 100px;
  background: var(--bg);
}

.contact-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: -40px;
  margin-bottom: 48px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.form-required {
  font-size: 0.7rem;
  color: #fff;
  background: #ef4444;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, .12);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit-area {
  text-align: center;
  margin-top: 36px;
}

/* Honeypot - hidden from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
}

.footer-alt-names {
  font-size: 0.625rem;
  color: var(--text-light);
  opacity: 0.5;
  margin-top: 4px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .voices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-showcase {
    flex-direction: column;
    padding: 36px 28px;
    gap: 32px;
  }

  .feature-showcase-visual {
    flex: none;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .header-nav { display: none; }
}

@media (max-width: 768px) {
  .sp-only { display: inline; }

  .hero {
    padding: 110px 0 72px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle br { display: none; }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
  }

  .phone-mockup {
    width: 240px;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .cta-title {
    font-size: 1.625rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .voices-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .feature-showcase {
    padding: 28px 20px;
  }
}

/* =============================================
   Cookie Consent Banner
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(30, 41, 59, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 24px;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .1);
  transition: opacity .8s ease, transform .8s ease;
}

.cookie-banner.fade-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  color: #e2e8f0;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.cookie-banner-link {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner-link:hover {
  color: #bfdbfe;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}

.cookie-btn-reject {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}

.cookie-btn-reject:hover {
  color: #e2e8f0;
  border-color: #94a3b8;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ==========================================================
   App Release Announcement Section
   Heroの直下、Conceptの前に配置されるリリース告知ブロック
   ========================================================== */
.app-release {
  padding: 56px 0;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.app-release-inner {
  text-align: center;
}

.app-release-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--brand, #5b6cff);
  border-radius: 999px;
  margin-bottom: 16px;
}

.app-release-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.4;
}

.app-release-desc {
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.7;
}

.app-release-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

@media (max-width: 600px) {
  .app-release {
    padding: 40px 0;
  }
  .app-release-title {
    font-size: 1.375rem;
  }
}

/* ==========================================================
   App Select Modal
   ヘッダー/Hero/最下部CTAから共通で開くプラットフォーム選択モーダル
   ========================================================== */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-modal.is-open {
  display: flex;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 50, 0.55);
  backdrop-filter: blur(2px);
  animation: appModalFadeIn 0.18s ease-out;
}

.app-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  box-shadow: 0 20px 60px rgba(20, 25, 50, 0.25);
  animation: appModalSlideUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes appModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes appModalSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-modal-close-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #666;
  cursor: pointer;
  transition: background 0.15s;
}

.app-modal-close-icon:hover,
.app-modal-close-icon:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.app-modal-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 6px;
}

.app-modal-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 20px;
}

.app-modal-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-modal-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e6e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  min-height: 72px;
}

.app-modal-option:hover,
.app-modal-option:focus-visible {
  border-color: var(--brand, #5b6cff);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 108, 255, 0.12);
  outline: none;
}

.app-modal-option.is-recommended {
  border-color: var(--brand, #5b6cff);
  background: rgba(91, 108, 255, 0.04);
}

.app-modal-option-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.app-modal-option-title {
  font-weight: 700;
  font-size: 1rem;
}

.app-modal-option-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* モーダルも同様に Google Play PNG の透明パディングを CSS でクロップ */
.app-modal-badge-img {
  display: block;
  max-width: none;
}

.app-modal-badge-img[alt^="App Store"] {
  height: 52px;
  width: auto;
}

.app-modal-badge-img[alt^="Google Play"] {
  height: 68px;  /* 52 × 250/192 ≒ 68 */
  width: auto;
  margin: -8px 0;
}

.app-modal-recommended-label {
  display: none;
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 2px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--brand, #5b6cff);
  border-radius: 999px;
}

.app-modal-option.is-recommended .app-modal-recommended-label {
  display: inline-block;
}

/* モーダル: ストア選択肢（バッジ + QR）— モバイル時はQR非表示、liの枠線もなし */
.app-modal-store-li {
  display: block;
}

.app-modal-qr {
  display: none;  /* モバイルでは非表示 */
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  align-self: center;
}

/* PC: バッジ + QR を li の枠で包む（option 単独の枠は外し、li 全体を1つのカードに） */
@media (min-width: 768px) {
  .app-modal-store-li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 2px solid #e6e8f0;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
  }
  /* 推奨プラットフォームの時、li 全体をハイライト */
  .app-modal-store-li:has(.is-recommended) {
    border-color: var(--brand, #5b6cff);
    background: rgba(91, 108, 255, 0.04);
  }
  /* li 内部の option 単独の枠は外す */
  .app-modal-store-li .app-modal-option {
    flex: 1;
    border: none;
    background: transparent;
    min-height: auto;
    padding: 4px;
    pointer-events: none;
    cursor: default;
    transition: none;
  }
  .app-modal-store-li .app-modal-option:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
  }
  .app-modal-store-li .app-modal-option.is-recommended {
    background: transparent;
  }
  /* 「おすすめ」ラベルの位置は li を基準に再配置 */
  .app-modal-store-li {
    position: relative;
  }
  .app-modal-store-li .app-modal-recommended-label {
    top: -10px;
    right: 14px;
  }
  .app-modal-qr {
    display: block;
  }
}

/* モーダル展開時のbodyスクロール抑制 */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .app-modal-dialog {
    padding: 28px 18px 22px;
    border-radius: 16px;
  }
  .app-modal-option {
    padding: 14px;
    min-height: 64px;
  }
  .app-modal-badge-img[alt^="App Store"] {
    height: 46px;
  }
  .app-modal-badge-img[alt^="Google Play"] {
    height: 60px;  /* 46 × 250/192 ≒ 60 */
    margin: -7px 0;
  }
}
