/* ===================================
   SNPIT 攻略ガイド - スタイルシート
   SNPITアプリの配色に合わせたデザイン
   =================================== */

:root {
  /* SNPITアプリの配色 */
  --background: #1A2B2B;
  --card-background: #243838;
  --card-inner: #2D4545;
  --accent: #4ECDC4;
  --accent-dark: #3A8A83;
  --text-primary: #FFFFFF;
  --text-secondary: #8CA8A8;
  --text-muted: #5A7A7A;
  --nav-background: #1A2828;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ヘッダー */
.header {
  background: linear-gradient(180deg, var(--nav-background) 0%, var(--background) 100%);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--card-inner);
}

.header-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.header-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* メインコンテンツ */
.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* チュートリアルセクション */
.tutorial-section {
  background-color: var(--card-background);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  font-size: 1.6rem;
}

.section-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* 動画コンテナ */
.video-container {
  background-color: var(--card-inner);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.tutorial-video {
  width: 100%;
  display: block;
  background-color: #000;
  aspect-ratio: 9 / 16;
  max-height: 500px;
  object-fit: contain;
}

/* 動画がない場合のプレースホルダー */
.tutorial-video:not([src]),
.tutorial-video[src=""] {
  background: linear-gradient(135deg, var(--card-inner) 0%, var(--background) 100%);
}

/* ステップ説明 */
.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--card-inner);
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.step:hover {
  transform: translateX(4px);
}

.step-number {
  width: 28px;
  height: 28px;
  background-color: var(--accent);
  color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* フッター */
.footer {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--nav-background);
  border-top: 1px solid var(--card-inner);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .header {
    padding: 30px 16px;
  }

  .header-title {
    font-size: 1.6rem;
  }

  .main {
    padding: 16px;
  }

  .tutorial-section {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .tutorial-video {
    max-height: 400px;
  }

  .step {
    padding: 10px 12px;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .step-text {
    font-size: 0.9rem;
  }
}

/* 大きい画面での調整 */
@media (min-width: 1200px) {
  .main {
    max-width: 900px;
  }

  .tutorial-video {
    max-height: 600px;
  }
}
