/* ============================================
   SomaLab Landing Page — Tech style, Blue theme
   ============================================ */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --accent: #22C55E;
  --text: #0F172A;
  --text-sub: #475569;
  --text-muted: #94A3B8;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== ヘッダー ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.logo-link { display: flex; align-items: center; }
.logo {
  height: 76px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.logo-link:hover .logo {
  transform: scale(1.04);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}
.nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

/* ==================== ボタン ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}
.btn-block { width: 100%; }

.btn-disabled {
  background: #E2E8F0;
  color: #64748B;
  cursor: not-allowed;
  padding: 12px 20px;
  flex-direction: column;
  gap: 2px;
  border: 2px dashed #CBD5E1;
}
.btn-disabled:hover {
  background: #E2E8F0;
  color: #64748B;
  transform: none;
  box-shadow: none;
}
.btn-disabled .btn-main {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.btn-disabled .btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

/* ==================== ヒーロー ==================== */
.hero {
  padding: 80px 0 120px;
  background: linear-gradient(180deg, var(--primary-light) 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.product-name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.plan-product-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sub);
}
.hero-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 1280 / 1396;
  max-height: 560px;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
}

/* ==================== セクション共通 ==================== */
section {
  padding: 80px 0;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-sub);
  margin: 0 0 48px;
}

/* ==================== 課題提起 ==================== */
.problem {
  background: var(--bg-soft);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.problem-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.problem-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.problem-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.7;
}

/* ==================== 機能紹介 ==================== */
.features {
  background: #fff;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
  padding: 32px 0;
}
.feature-row.reverse .feature-text {
  order: 2;
}
.feature-row.reverse .feature-img {
  order: 1;
}
.feature-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 12px 0 16px;
}
.feature-text p {
  color: var(--text-sub);
  font-size: 16px;
  margin-bottom: 20px;
}
.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
}
.feature-badge.pro {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.feature-badge.basic {
  color: var(--primary);
  background: var(--primary-light);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  color: var(--text);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 20px;
}
.feature-img img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* ==================== 使い方（Basic + Pro 両動画）==================== */
.how {
  background: var(--bg-soft);
}
.how-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.how-video-card {
  display: flex;
  flex-direction: column;
}
.how-video-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex-wrap: wrap;
}

.how-duration {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.how-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.how-badge.basic {
  color: var(--primary);
  background: var(--primary-light);
}
.how-badge.pro {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.how-video-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 1280 / 1450;
  position: relative;
}
.how-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 再生ボタンオーバーレイ */
.play-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.25s ease;
}
.play-overlay:hover svg circle {
  fill: rgba(232, 116, 0, 0.75);
}
.play-overlay svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}
.play-overlay:hover svg {
  transform: scale(1.08);
}
/* 再生中はオーバーレイを隠す */
.how-video-wrap.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}
.how-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}

/* ==================== 料金プラン ==================== */
.pricing {
  background: #fff;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.plan-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.plan-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.plan-ribbon {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.plan-price {
  margin-bottom: 8px;
}
.plan-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.plan-period {
  font-size: 14px;
  color: var(--text-sub);
  margin-left: 4px;
}
.plan-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0 0 28px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li.muted { color: var(--text-muted); }
.plan-features .soon {
  display: inline-block;
  font-size: 10px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 600;
}
.plan-small {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
}
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ==================== FAQ ==================== */
.faq {
  background: var(--bg-soft);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  font-weight: 300;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

/* ==================== フッター ==================== */
.site-footer {
  background: var(--text);
  color: #CBD5E1;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
}
.footer-tagline {
  font-size: 13px;
  color: #94A3B8;
  margin: 0;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #CBD5E1;
  font-size: 13px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #94A3B8;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer {
  max-width: 500px;
  text-align: right;
}

/* ==================== レスポンシブ ==================== */
@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-video { max-height: 480px; }
  .product-name { font-size: 28px; }

  section { padding: 56px 0; }
  .section-title { font-size: 26px; }

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

  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-img { order: 2; }

  .how-videos { grid-template-columns: 1fr; gap: 24px; }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom { flex-direction: column; }
  .footer-disclaimer { text-align: left; }

  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 480px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero-title { font-size: 28px; }
  .plan-card { padding: 32px 24px; }
  .plan-amount { font-size: 32px; }
}
