/* ========================================
   熵尾音 クロ - Voicebank Website
   Design: Teto Style + Your Color Palette
   ======================================== */

/* ---------- Local Fonts (HarmonyOS Sans SC) ---------- */
@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('font/subset/HarmonyOS_Sans_SC_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('font/subset/HarmonyOS_Sans_SC_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('font/subset/HarmonyOS_Sans_SC_Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
:root {
  --primary: #6B8AAE;
  --primary-dark: #4A6A8E;
  --secondary: #566066;
  --accent-pink: #C4768A;
  --accent-warm: #D3995D;
  --accent-orange: #CA704C;
  --bg-top: #CBD3DC;
  --bg-bottom: #BBC4CE;
  --text-dark: #3A4A5A;
  --text-light: #5B6B7B;
  --text-muted: #7A8A9A;
  --border: rgba(90, 120, 150, 0.25);
  --sidebar-width: 220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'HarmonyOS Sans SC', 'Jost', 'Source Code Pro', 'Zen Kaku Gothic New', sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Left Sidebar Navigation ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(220, 228, 235, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  z-index: 1003;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 0 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.sidebar-brand-link img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 1px;
  line-height: 1.3;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.8rem;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.sidebar-nav a:hover {
  background: rgba(90, 120, 150, 0.18);
  color: var(--primary);
}

.sidebar-nav a.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.sidebar-nav a.active:hover {
  background: var(--primary-dark);
  color: white;
}

.sidebar-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: currentColor;
  stroke-width: 1.8;
}

.sidebar-nav-text {
  flex: 1;
}

.sidebar-footer {
  padding: 1rem 0.8rem 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-sns {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.sidebar-sns-link {
  width: 34px;
  height: 34px;
  background: rgba(126, 157, 190, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-sns-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Mobile hamburger button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.sidebar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.sidebar-toggle.active span:nth-child(2) {
  opacity: 0;
}
.sidebar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

/* Main content offset for sidebar */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-pink);
}

/* ---------- Header ---------- */
.header {
  background: var(--primary);
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

/* 几何装饰 - Teto 风格 */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 50%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 90% 20%, rgba(255,255,255,0.08) 2px, transparent 2px);
  background-size: 40px 40px, 60px 60px;
  pointer-events: none;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.header-sns {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-sns-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  font-family: 'Jost', sans-serif;
}

.header-sns-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.header-sns-link {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.header-sns-link:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.header-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
}

/* ---------- Container ---------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Header ---------- */
.header {
  background: var(--primary);
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
  display: none; /* Hidden when sidebar is present */
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 4rem 0;
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
}

/* Symmetric arc wave decoration */
.hero-waveform {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  height: 160px;
  pointer-events: none;
}

.hero-waveform .bar {
  width: 8px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--primary), var(--primary-dark));
  animation: arc-pulse 1.2s ease-in-out infinite;
}

/* Symmetric arc shape: center high, sides low */
.hero-waveform .bar:nth-child(1)  { height: 30px; animation-delay: 0.6s; }
.hero-waveform .bar:nth-child(2)  { height: 50px; animation-delay: 0.5s; }
.hero-waveform .bar:nth-child(3)  { height: 70px; animation-delay: 0.4s; }
.hero-waveform .bar:nth-child(4)  { height: 90px; animation-delay: 0.3s; }
.hero-waveform .bar:nth-child(5)  { height: 110px; animation-delay: 0.2s; }
.hero-waveform .bar:nth-child(6)  { height: 130px; animation-delay: 0.1s; }
.hero-waveform .bar:nth-child(7)  { height: 150px; animation-delay: 0s; }
.hero-waveform .bar:nth-child(8)  { height: 130px; animation-delay: 0.1s; }
.hero-waveform .bar:nth-child(9)  { height: 110px; animation-delay: 0.2s; }
.hero-waveform .bar:nth-child(10) { height: 90px; animation-delay: 0.3s; }
.hero-waveform .bar:nth-child(11) { height: 70px; animation-delay: 0.4s; }
.hero-waveform .bar:nth-child(12) { height: 50px; animation-delay: 0.5s; }
.hero-waveform .bar:nth-child(13) { height: 30px; animation-delay: 0.6s; }

@keyframes arc-pulse {
  0%, 100% { 
    transform: scaleY(0.4);
    opacity: 0.2;
  }
  50% { 
    transform: scaleY(1);
    opacity: 0.5;
  }
}

.hero-visual {
  flex: 0 0 340px;
  position: relative;
}

/* Decorative frame around character */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(126, 157, 190, 0.15);
  border-radius: 20px;
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: -24px;
  border: 1px dashed rgba(126, 157, 190, 0.08);
  border-radius: 24px;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(90, 120, 150, 0.2);
  position: relative;
  z-index: 1;
}

.hero-visual-text {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  letter-spacing: 1px;
  font-family: 'Jost', sans-serif;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  letter-spacing: 4px;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.vb-type {
  font-family: 'Source Code Pro', 'Jost', monospace !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  color: var(--primary) !important;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 2;
}

.hero-download {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Demo Audio Section ---------- */
.demo-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.demo-player {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 80px;
}

.demo-bar {
  width: 6px;
  height: 30px;
  background: linear-gradient(to top, var(--primary), var(--primary-dark));
  border-radius: 3px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.demo-bar.active {
  opacity: 0.7;
  animation: demo-wave 0.5s ease-in-out infinite;
}

.demo-bar:nth-child(1)  { animation-delay: 0s; }
.demo-bar:nth-child(2)  { animation-delay: 0.05s; }
.demo-bar:nth-child(3)  { animation-delay: 0.1s; }
.demo-bar:nth-child(4)  { animation-delay: 0.15s; }
.demo-bar:nth-child(5)  { animation-delay: 0.2s; }
.demo-bar:nth-child(6)  { animation-delay: 0.25s; }
.demo-bar:nth-child(7)  { animation-delay: 0.3s; }
.demo-bar:nth-child(8)  { animation-delay: 0.35s; }
.demo-bar:nth-child(9)  { animation-delay: 0.4s; }
.demo-bar:nth-child(10) { animation-delay: 0.45s; }
.demo-bar:nth-child(11) { animation-delay: 0.5s; }
.demo-bar:nth-child(12) { animation-delay: 0.45s; }
.demo-bar:nth-child(13) { animation-delay: 0.4s; }
.demo-bar:nth-child(14) { animation-delay: 0.35s; }
.demo-bar:nth-child(15) { animation-delay: 0.3s; }
.demo-bar:nth-child(16) { animation-delay: 0.25s; }
.demo-bar:nth-child(17) { animation-delay: 0.2s; }
.demo-bar:nth-child(18) { animation-delay: 0.15s; }
.demo-bar:nth-child(19) { animation-delay: 0.1s; }
.demo-bar:nth-child(20) { animation-delay: 0.05s; }

@keyframes demo-wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.demo-play-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.demo-play-btn:active {
  transform: scale(0.95);
}

.demo-progress {
  flex: 1;
  height: 6px;
  background: rgba(126, 157, 190, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.demo-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  transition: width 0.1s;
}

.demo-time {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 80px;
  text-align: right;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-warm {
  background: var(--accent-warm);
  color: white;
}

.btn-warm:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
  color: white;
}

/* ---------- Section ---------- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

/* Sound wave top decoration */
.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--primary) 20%,
    var(--accent-warm) 50%,
    var(--primary) 80%,
    transparent 100%
  );
  opacity: 0.4;
}

/* Sound wave bottom decoration */
.section-alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--secondary) 30%,
    var(--primary) 70%,
    transparent 100%
  );
  opacity: 0.25;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Teto 风格装饰 */
.section-title h2::before,
.section-title h2::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.section-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ---------- Cards ---------- */
.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(90, 120, 150, 0.1);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(90, 120, 150, 0.15);
}

/* ---------- Profile Grid ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.profile-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.profile-item:last-child {
  margin-bottom: 0;
}

.profile-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.profile-icon svg,
.profile-icon i {
  color: rgba(255, 255, 255, 0.95) !important;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.profile-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* ---------- Voice Stats (DAW/Spectrum Style) ---------- */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  position: relative;
}

/* Waveform bar decoration behind voice grid */
.voice-grid::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--accent-warm) 50%,
    var(--primary) 100%
  );
  border-radius: 2px;
  opacity: 0.3;
}

.voice-stat {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  padding: 1.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(126, 157, 190, 0.15);
  position: relative;
  text-align: center;
  transition: all 0.25s;
}

.voice-stat:hover {
  background: rgba(126, 157, 190, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(126, 157, 190, 0.15);
}

/* Top accent line per stat card */
.voice-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--primary);
  opacity: 0.5;
}

.voice-stat:nth-child(1)::before { background: var(--primary); }
.voice-stat:nth-child(2)::before { background: var(--secondary); }
.voice-stat:nth-child(3)::before { background: var(--accent-warm); }
.voice-stat:nth-child(4)::before { background: var(--accent-orange); }

.voice-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Source Code Pro', monospace;
  color: var(--text-dark);
  line-height: 1.2;
}

.voice-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  letter-spacing: 0.5px;
}

/* Audio spectrum bars decoration */
.voice-spectrum {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 20px;
  margin-bottom: 1rem;
}

.voice-spectrum-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.4;
  animation: spectrum-pulse 1.5s ease-in-out infinite;
}

.voice-spectrum-bar:nth-child(1) { height: 6px;  animation-delay: 0s; }
.voice-spectrum-bar:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.voice-spectrum-bar:nth-child(3) { height: 8px;  animation-delay: 0.2s; }
.voice-spectrum-bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-spectrum-bar:nth-child(5) { height: 10px; animation-delay: 0.4s; }
.voice-spectrum-bar:nth-child(6) { height: 14px; animation-delay: 0.5s; }
.voice-spectrum-bar:nth-child(7) { height: 7px;  animation-delay: 0.6s; }
.voice-spectrum-bar:nth-child(8) { height: 11px; animation-delay: 0.7s; }

@keyframes spectrum-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(1.3); opacity: 0.6; }
}

/* ---------- Download Section ---------- */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Accordion - Teto Style */
.accordion {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(90, 120, 150, 0.1);
  border: 1px solid var(--border);
}

.accordion-title {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.accordion-title:hover {
  background: rgba(126, 157, 190, 0.05);
}

.accordion-title-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accordion-number {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Source Code Pro', monospace;
}

.accordion-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  transition: transform 0.3s;
}

.accordion-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion.active .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion.active .accordion-content {
  max-height: 500px;
}

.accordion-content-inner {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.accordion-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.accordion-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.accordion-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

.accordion-soon {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--text-muted);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Download header variants */
.accordion[data-type="primary"] .accordion-title {
  border-left: 4px solid var(--primary);
}

.accordion[data-type="warm"] .accordion-title {
  border-left: 4px solid var(--accent-warm);
}

.accordion[data-type="secondary"] .accordion-title {
  border-left: 4px solid var(--secondary);
}

/* ---------- Guidelines Section ---------- */
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.guideline-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(90, 120, 150, 0.1);
  border: 1px solid var(--border);
}

.guideline-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border);
}

.guideline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.guideline-icon-ok {
  background: linear-gradient(135deg, #A8D8B9 0%, #7EC88B 100%);
  color: white;
}

.guideline-icon-no {
  background: linear-gradient(135deg, #E8B4B8 0%, #D4869A 100%);
  color: white;
}

.guideline-icon-ask {
  background: linear-gradient(135deg, #E8D8B0 0%, #D4A86C 100%);
  color: white;
}

.guideline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.guideline-list {
  list-style: none;
}

.guideline-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.guideline-list li:last-child {
  border-bottom: none;
}

.guideline-list li::before {
  content: '·';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.guideline-list li.no::before {
  content: '×';
  color: var(--accent-pink);
}

.guideline-list li.ask::before {
  content: '?';
  color: var(--accent-warm);
}

/* ---------- FAQ Section ---------- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(90, 120, 150, 0.08);
  border: 1px solid var(--border);
}

.faq-question {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(126, 157, 190, 0.05);
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  transition: transform 0.3s;
}

.faq-icon::before {
  width: 10px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 3px 15px rgba(90, 120, 150, 0.1);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(90, 120, 150, 0.15);
}

.contact-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(126, 157, 190, 0.08) 100%);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-sns a {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: all 0.2s;
}

.footer-sns a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.3rem;
  background: rgba(200, 210, 220, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  border: 1px solid var(--border);
  transition: opacity 0.3s;
}

.lang-switcher a {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-switcher a:hover {
  background: rgba(90, 120, 150, 0.2);
  color: var(--primary);
}

.lang-switcher.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lang-switcher a.active {
  background: var(--primary);
  color: white;
}

/* ---------- Responsive ---------- */
@media (min-width: 901px) {
  .sidebar-toggle,
  .sidebar-overlay {
    display: none !important;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    transform: translateX(-260px);
    width: 260px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  /* Move lang-switcher to account for hamburger */
  .lang-switcher {
    top: 1rem;
    right: 1rem;
    left: auto;
    transform: none;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 5rem 0 3rem;
    gap: 2rem;
  }
  
  .hero-visual {
    flex: 0 0 auto;
    max-width: 280px;
  }
  
  .hero-download {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-waveform {
    right: 10px;
  }

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

}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 5rem 0 2.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title h2 {
    font-size: 1.3rem;
  }
  
  .lang-switcher {
    top: 0.8rem;
    right: 0.8rem;
  }

  .lang-switcher a {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }

  .hero-waveform {
    display: none;
  }
}

/* ---------- Protocol Tabs ---------- */
.protocol-tabs {
  margin-top: 2.5rem;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(90, 120, 150, 0.12);
  border: 1px solid var(--border);
}

.protocol-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(126, 157, 190, 0.04);
}

.protocol-tab {
  flex: 1;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.protocol-tab:hover {
  color: var(--primary);
  background: rgba(126, 157, 190, 0.06);
}

.protocol-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: white;
  font-weight: 600;
}

.protocol-content {
  max-height: 600px;
  overflow-y: auto;
}

.protocol-text {
  padding: 1.5rem 2rem;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.9;
}

.protocol-text hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 1.2rem 0;
}

.protocol-text p {
  margin-bottom: 0.5rem;
}

.protocol-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.2rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(126, 157, 190, 0.15);
}

.protocol-text h3:first-child {
  margin-top: 0;
}

.protocol-text strong {
  color: var(--text-dark);
  font-weight: 600;
}

.protocol-text::-webkit-scrollbar {
  width: 6px;
}

.protocol-text::-webkit-scrollbar-track {
  background: transparent;
}

.protocol-text::-webkit-scrollbar-thumb {
  background: rgba(126, 157, 190, 0.3);
  border-radius: 3px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: 0.8rem; }
.mt-md { margin-top: 1.2rem; }
.mt-lg { margin-top: 2rem; }
.mb-sm { margin-bottom: 0.8rem; }
.mb-md { margin-bottom: 1.2rem; }

/* Bilibili brand color */
.sidebar-sns-link.bilibili {
  background: rgba(0, 161, 214, 0.12);
  color: #00A1D6;
}
.sidebar-sns-link.bilibili:hover {
  background: #00A1D6;
  color: white;
}
.footer-sns a.bilibili {
  color: #00A1D6;
}
