/* KogTrainer Landing Page */

/* デザイントークン */
:root {
  --bg-app: #000000;
  --bg-card: #1C1C1E;
  --text-primary: #FFFFFF;
  --text-secondary: #8E8E93;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --zone-1: #8E8E93;
  --zone-2: #0A84FF;
  --zone-3: #30D158;
  --zone-4: #FFD60A;
  --zone-5: #FF9F0A;
  --zone-6: #FF453A;
  --zone-7: #BF5AF2;
  --radius: 12px;
}

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* コンテナ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== */
/* Hero セクション       */
/* ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 64px;
  position: relative;
}

.hero-logo {
  display: block;
  width: clamp(160px, 30vw, 280px);
  height: auto;
  margin-bottom: 40px;
}

.hero-catchcopy {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  max-width: 720px;
  margin-bottom: 40px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 2;
  color: #D1D5DB;
  margin-bottom: 48px;
  max-width: 720px;
}

/* PC表示時のみ改行を有効化（モバイルでは非表示） */
.hero-br-pc {
  display: none;
}

@media (min-width: 768px) {
  .hero-br-pc {
    display: block;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zone-5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* パワーゾーンバー */
.zone-bar {
  display: flex;
  width: 100%;
  max-width: 480px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  gap: 2px;
}

.zone-bar span {
  flex: 1;
  border-radius: 2px;
}

/* ===================== */
/* Screenshots セクション */
/* ===================== */
.screenshots {
  padding: 96px 0;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  text-align: center;
  margin-bottom: 56px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screenshot-item img {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.screenshot-img {
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.screenshot-img:hover,
.screenshot-img:focus-visible {
  transform: scale(1.03);
  border-color: var(--text-secondary);
  outline: none;
}

.screenshot-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ===================== */
/* Features セクション   */
/* ===================== */
.features {
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.feature-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================== */
/* Footer                */
/* ===================== */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

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

/* ===================== */
/* 言語切替トグル        */
/* ===================== */
.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 2px;
  background: rgba(28, 28, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-switch a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch a.active {
  background: var(--text-primary);
  color: var(--bg-app);
}

.lang-switch a:hover:not(.active) {
  color: var(--text-primary);
}

/* ===================== */
/* アニメーション        */
/* ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== */
/* ライトボックス        */
/* ===================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--text-primary);
  color: var(--bg-app);
  outline: none;
}

/* ===================== */
/* レスポンシブ          */
/* ===================== */

/* タブレット */
@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
}

/* モバイル */
@media (max-width: 480px) {
  .hero {
    padding: 64px 24px 48px;
    min-height: auto;
  }

  .hero-catchcopy {
    font-size: 1.6rem;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }

  .screenshot-item img {
    max-width: 160px;
  }

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