@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@400;600;800&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  --primary-gradient: linear-gradient(135deg, #6C63FF 0%, #818CF8 100%);
  --secondary-gradient: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  --bg-color-start: #0F172A;
  --bg-color-end: #0B0F19;
  --card-bg: rgba(30, 41, 59, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-bg: rgba(30, 41, 59, 0.8);
  --card-hover-border: rgba(255, 255, 255, 0.16);
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --accent-color: #F97316;
  --glow-shadow: 0 0 20px rgba(108, 99, 255, 0.25);
  --font-title: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-body: 'Outfit', 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-color-start) 0%, var(--bg-color-end) 100%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background elements for depth */
.bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
}

.glow-circle-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: #6C63FF;
}

.glow-circle-2 {
  top: 40%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: #F97316;
}

.glow-circle-3 {
  bottom: -10%;
  left: 20%;
  width: 55vw;
  height: 55vw;
  background: #818CF8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--glow-shadow);
}

.logo-icon img {
  width: 26px;
  height: 26px;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.header-links {
  display: flex;
  gap: 1.5rem;
}

.btn-download-top {
  background: var(--primary-gradient);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: var(--glow-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem 0;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: 1.2rem;
  color: #CBD5E1;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.app-badge-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  padding: 0.8rem 1.8rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.app-badge-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.app-badge-btn svg {
  width: 24px;
  height: 24px;
  fill: #currentColor;
}

.badge-text {
  text-align: left;
}

.badge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.badge-main {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
}

.store-coming-soon {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Sample Voice Section */
.samples-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.voice-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.voice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.voice-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.voice-card:hover::before {
  opacity: 1;
}

.voice-card.active {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
}

.voice-card.active::before {
  opacity: 1;
}

.voice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.voice-meta {
  display: flex;
  flex-direction: column;
}

.voice-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.voice-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
}

.voice-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.voice-body {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.voice-quote {
  font-size: 0.95rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.75rem;
  margin: 0.5rem 0;
  font-style: italic;
}

.voice-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.play-btn.playing {
  background: var(--secondary-gradient);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

/* Equalizer Animation */
.eq-container {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  width: 30px;
}

.voice-card.active .eq-container {
  display: flex;
}

.eq-bar {
  width: 3px;
  background-color: var(--accent-color);
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
  border-radius: 3px;
}

.eq-bar:nth-child(1) { height: 20%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 60%; animation-delay: 0.4s; background-color: #818CF8; }
.eq-bar:nth-child(3) { height: 35%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 80%; animation-delay: 0.6s; background-color: #FB923C; }

@keyframes eq-bounce {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* Future Sections Preview */
.upcoming-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.preview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.preview-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.preview-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.preview-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
  margin: 0 auto 1.5rem auto;
}

.badge-coming {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Footer & Legal */
footer {
  padding: 4rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--text-main);
}

.lang-selector {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.lang-selector span {
  color: var(--text-muted);
}

.lang-selector a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-selector a:hover {
  color: var(--accent-color);
}

.lang-active {
  color: var(--text-main) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 2px;
}

.copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-family: var(--font-title);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .voice-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.faq-item:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.faq-answer-content {
  padding: 0 2rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.8rem;
  color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary-gradient);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-shadow);
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .features-section {
    padding: 3rem 0;
  }

  /* --- スマホ表示の最適化 --- */
  
  /* 1. メインコピーの文字サイズと改行の最適化 */
  h1, #main-hero-title, h2, .section-title h2 {
    font-size: 1.8rem !important;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }

  .hero-badge, .hero-subtitle { 
    font-size: 0.85rem !important;
    margin-bottom: 12px;
  }

  /* 2. 本文の「不自然な改行」を防ぐ */
  p, .description, .voice-quote, .voice-card p, .feature-card p {
    font-size: 0.95rem !important;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  
  /* PC専用改行を非表示に */
  .pc-only {
    display: none;
  }

  /* 3. カードの余白と要素の間隔を詰める */
  .feature-card, .voice-card {
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
  }

  .feature-card h3, .voice-name {
    font-size: 1.15rem !important;
    margin-bottom: 8px;
  }
}


