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

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --dark: #1a1a2e;
  --text: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ---- ヘッダー ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--dark);
  letter-spacing: -.02em;
  flex: 1;
}
.logo span { color: var(--primary); }
.header-nav { display: flex; gap: 10px; align-items: center; }
.lang-switch {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: none;
}
.lang-switch:hover { background: var(--bg); }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-ghost {
  background: none;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { opacity: .88; }
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 8px;
}
.btn-block { width: 100%; justify-content: center; }

/* ---- ヒーロー ---- */
.hero {
  background: linear-gradient(135deg, #f0fdf8 0%, #f5fffe 100%);
  padding: 64px 24px 48px;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-catch {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -.03em;
}
.hero-catch span { color: var(--primary); }
.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- 録音UI（ヒーロー右側） ---- */
.recorder-box {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(16,185,129,0.10);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.recorder-status {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .05em;
}
.recorder-btn-wrap {
  display: flex;
  justify-content: center;
}
.record-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}
.record-btn:hover { transform: scale(1.06); }
.record-btn.recording {
  background: #ef4444;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(239,68,68,0.4);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
.record-btn svg { width: 32px; height: 32px; fill: #fff; }

.recorder-output {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  min-height: 80px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
}
.recorder-output.placeholder { color: var(--muted); font-style: italic; }

.recorder-actions {
  display: flex;
  gap: 8px;
}
.action-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: opacity .15s;
  position: relative;
}
.action-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  filter: grayscale(1);
}
.action-btn.disabled::after {
  content: '🔒';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 14px;
}

/* ---- セクション共通 ---- */
.section { padding: 80px 24px 48px; }
.section--white { background: #fff; }
.section--tinted { background: linear-gradient(135deg, #f0fdf8 0%, #f5fffe 100%); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 48px;
}

/* ---- 特徴グリッド ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- 使い方ステップ ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  padding: 32px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- 料金プラン ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-grid--single {
  grid-template-columns: 1fr;
  max-width: 400px;
}
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  background: #fff;
}
.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(16,185,129,0.15);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.plan-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.plan-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  font-size: 14px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---- モーダル ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.modal h3 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.modal p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---- フッター ---- */
footer {
  background: var(--dark);
  color: #8892a4;
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-logo { font-size: 16px; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--primary); }
.footer-sister {
  font-size: 13px;
  color: #8892a4;
}
.footer-sister a { color: var(--primary); text-decoration: underline; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 12px;
  border-top: 1px solid #2e3251;
  padding-top: 20px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 16px 32px; }
  .section { padding: 48px 16px 32px; }
  .recorder-box { padding: 24px 20px; order: -1; }
  .hero-catch { font-size: 28px; text-align: center; }
  .hero-catch br { display: none; }
  .hero-desc { font-size: 14px; }
  .hero-desc br { display: none; }
  .hero-cta { flex-direction: column; }
  .btn-lg { text-align: center; justify-content: center; }
  .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .feature-card { text-align: center; }
}
