/* ============================================
   RCeラーニング - お客様向けスタイル
   テーマ：深緑 + ゴールド / 高級感
   ============================================ */

/* リセット・基本設定 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  color: #333;
  line-height: 1.7;
  background-color: #fafaf8;
}

a { color: #1b4332; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-content { padding-top: 40px; padding-bottom: 60px; min-height: calc(100vh - 200px); }
.page-title { font-size: 28px; margin-bottom: 30px; color: #1b4332; font-family: 'Noto Serif JP', 'Yu Mincho', serif; }

/* ============================================
   ナビゲーションバー
   ============================================ */
.navbar {
  background: linear-gradient(135deg, #0d2818 0%, #1b4332 100%);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
}
.nav-logo span { color: #c9a84c; }
.nav-logo:hover { text-decoration: none; opacity: 0.9; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(201, 168, 76, 0.2);
  text-decoration: none;
}

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #1b4332, #2d6a4f); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #0d2818, #1b4332); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, #c9a84c, #d4b96e);
  color: #1b4332;
  font-weight: 700;
}
.btn-gold:hover { background: linear-gradient(135deg, #b8973e, #c9a84c); color: #0d2818; }
.btn-large { padding: 14px 36px; font-size: 17px; }
.btn-full { width: 100%; }

/* ============================================
   ヒーローセクション
   ============================================ */
.hero {
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.5;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  letter-spacing: 3px;
}
.hero p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 36px;
  line-height: 1.9;
}

/* 羅針盤ヒーロー */
.hero-compass {
  background: #0a1f12;
  padding: 120px 20px 100px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-compass .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(201,168,76,0.03) 31%, rgba(201,168,76,0.03) 32%, transparent 33%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(201,168,76,0.02) 51%, rgba(201,168,76,0.02) 52%, transparent 53%),
    radial-gradient(circle at 50% 50%, transparent 70%, rgba(201,168,76,0.015) 71%, rgba(201,168,76,0.015) 72%, transparent 73%),
    linear-gradient(0deg, transparent 49.5%, rgba(201,168,76,0.04) 49.5%, rgba(201,168,76,0.04) 50.5%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, rgba(201,168,76,0.04) 49.5%, rgba(201,168,76,0.04) 50.5%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, rgba(201,168,76,0.025) 49.5%, rgba(201,168,76,0.025) 50.5%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, rgba(201,168,76,0.025) 49.5%, rgba(201,168,76,0.025) 50.5%, transparent 50.5%);
  opacity: 1;
  z-index: 0;
}
.hero-compass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201, 168, 76, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10,31,18,0.3) 0%, rgba(10,31,18,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-compass::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(201,168,76,0.4) 50%, transparent 90%);
  z-index: 2;
}
.hero-eyecatch {
  font-size: 14px;
  letter-spacing: 8px;
  color: #c9a84c;
  margin-bottom: 20px;
  font-weight: 600;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  text-shadow: 0 1px 12px rgba(201, 168, 76, 0.3);
}
.hero-gold-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  margin: 0 auto 32px;
}
.hero-compass h1 {
  font-size: 44px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
  letter-spacing: 4px;
}
.hero-sub {
  font-size: 15px;
  opacity: 0.7;
  line-height: 2;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* ============================================
   特徴セクション
   ============================================ */
.features { padding: 80px 20px; background: #fff; }
.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 16px;
  color: #1b4332;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  letter-spacing: 1px;
}
.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-bottom: 50px;
}
.section-line {
  width: 50px;
  height: 2px;
  background: #c9a84c;
  margin: 0 auto 20px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  background: #fafaf8;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s;
  border: 1px solid rgba(201, 168, 76, 0.15);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 12px; color: #1b4332; }
.feature-card p { font-size: 14px; color: #666; line-height: 1.8; }

/* ============================================
   コース一覧
   ============================================ */

/* カテゴリタブ */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.category-tab {
  padding: 8px 20px;
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
  font-family: inherit;
}
.category-tab:hover {
  border-color: #1b4332;
  color: #1b4332;
}
.category-tab.active {
  background: #1b4332;
  color: #fff;
  border-color: #1b4332;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.course-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(0,0,0,0.04);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  border-color: rgba(201, 168, 76, 0.3);
}
.course-card-thumbnail {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #1b4332;
  position: relative;
}
.course-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 16px;
}
.course-card-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
.course-card-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, transparent);
}
.course-card:hover .course-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 100%);
}
.course-card-body { padding: 20px; }
.course-card-body h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: #1b4332;
  line-height: 1.5;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-weight: 600;
}
.course-card-body p {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #666;
}
.course-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================
   コース詳細ページ
   ============================================ */
.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}
.video-player-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0d2818, #1b4332);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}
.video-active { width: 100%; background: #000; display: block; }
.video-player-wrapper video { width: 100%; display: block; }
.video-player-wrapper iframe { width: 100%; aspect-ratio: 16 / 9; border: none; display: block; }
.course-info-section h1 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1b4332;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
}
.course-info-section p { color: #666; margin-bottom: 16px; }

/* 称号バナー（コース一覧上部） */
.rank-banner {
  background: linear-gradient(135deg, #0d2818, #1b4332);
  color: #fff;
  padding: 18px 24px;
  border-radius: 14px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}
.rank-banner::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: rgba(201, 168, 76, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.rank-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rank-banner-emoji { font-size: 36px; }
.rank-banner-info { display: flex; flex-direction: column; }
.rank-banner-name { font-size: 13px; opacity: 0.75; }
.rank-banner-title {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  letter-spacing: 0.5px;
}
.rank-banner-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rank-banner-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-banner-bar {
  width: 100px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.rank-banner-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a84c, #e8d48b);
  border-radius: 3px;
}
.rank-banner-pct { font-size: 14px; font-weight: 600; color: #c9a84c; }
.rank-banner-medals { display: flex; gap: 4px; }
.rank-banner-medal { font-size: 20px; }
@media (max-width: 768px) {
  .rank-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; }
  .rank-banner-right { width: 100%; }
  .rank-banner-bar { flex: 1; }
}

/* サイドバー */
.course-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: sticky;
  top: 84px;
  border: 1px solid rgba(0,0,0,0.04);
}
.sidebar-header { padding: 20px; border-bottom: 1px solid #eee; }
.sidebar-header h2 { font-size: 16px; margin-bottom: 12px; color: #1b4332; }
.progress-summary { display: flex; align-items: center; gap: 12px; }
.progress-bar-container {
  flex: 1; height: 8px;
  background: #e8e6e0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1b4332, #c9a84c);
  border-radius: 4px;
  transition: width 0.3s ease;
}
#progress-text { font-size: 12px; color: #888; white-space: nowrap; }
.step-list { list-style: none; max-height: 500px; overflow-y: auto; }
.step-item {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
  font-size: 14px;
}
.step-item:hover { background: #fafaf8; }
.step-item.active { background: #f0f5f2; border-left: 3px solid #1b4332; }
.step-item.completed .step-check { background: #1b4332; color: #fff; border-color: #1b4332; }
.step-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; color: transparent;
}
.step-info { flex: 1; }
.step-info .step-title { font-weight: 500; color: #333; }
.step-info .step-duration { font-size: 12px; color: #999; }
.step-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.step-pct {
  font-size: 11px;
  font-weight: 600;
  color: #1b4332;
  background: #e8f5e9;
  padding: 1px 6px;
  border-radius: 8px;
}
.step-pct.done {
  background: #1b4332;
  color: #fff;
}
.step-progress-bar {
  width: 100%;
  height: 3px;
  background: #e8e6e0;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1b4332, #c9a84c);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ============================================
   認証ページ
   ============================================ */
.auth-container { max-width: 440px; margin: 40px auto; }
.auth-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.auth-card h1 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #1b4332;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
}
.auth-subtitle { color: #888; margin-bottom: 28px; font-size: 14px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: #666; }

/* ============================================
   フォーム
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #444; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d4d0c8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1b4332;
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}
.form-group textarea { resize: vertical; }
.error-message {
  background: #fef2f2; color: #dc2626;
  padding: 12px 16px; border-radius: 8px;
  margin-bottom: 20px; font-size: 14px;
  border: 1px solid #fecaca;
}
.success-message {
  background: #f0fdf4; color: #16a34a;
  padding: 12px 16px; border-radius: 8px;
  margin-bottom: 20px; font-size: 14px;
  border: 1px solid #bbf7d0;
}

/* ============================================
   お問い合わせページ
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.contact-form-section h1 {
  font-size: 28px; margin-bottom: 8px; color: #1b4332;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
}
.contact-subtitle { color: #888; margin-bottom: 30px; font-size: 14px; }
.required-note { color: #dc2626; }
.contact-info-section h2 { font-size: 18px; margin-bottom: 16px; color: #1b4332; }
.contact-info-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.contact-info-item { margin-bottom: 20px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item strong { display: block; font-size: 13px; color: #888; margin-bottom: 4px; }
.contact-info-item p { font-size: 15px; color: #333; }

/* ============================================
   マイページ
   ============================================ */
.mypage-header {
  background: linear-gradient(135deg, #0d2818, #1b4332);
  color: #fff;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.mypage-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 50%;
}
.mypage-rank { font-size: 48px; margin-bottom: 8px; }
.mypage-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; font-family: 'Noto Serif JP', 'Yu Mincho', serif; }
.mypage-name { font-size: 14px; opacity: 0.8; }
.mypage-progress-bar {
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 5px;
  margin-top: 20px;
  overflow: hidden;
}
.mypage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a84c, #e8d48b);
  border-radius: 5px;
  transition: width 0.5s ease;
}
.mypage-percent { font-size: 13px; opacity: 0.8; margin-top: 6px; }
.medals-section { margin-bottom: 30px; }
.medals-section h2 { font-size: 20px; color: #1b4332; margin-bottom: 16px; }
.medals-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.medal-item {
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 14px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.courses-progress-section h2 { font-size: 20px; color: #1b4332; margin-bottom: 16px; }
.course-progress-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(0,0,0,0.04);
}
.course-progress-info { flex: 1; }
.course-progress-info h3 { font-size: 15px; color: #1b4332; margin-bottom: 6px; }
.course-progress-bar {
  height: 6px;
  background: #e8e6e0;
  border-radius: 3px;
  overflow: hidden;
}
.course-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1b4332, #c9a84c);
  border-radius: 3px;
}
.course-progress-text { font-size: 13px; color: #888; margin-top: 4px; }
.course-progress-percent {
  font-size: 20px;
  font-weight: 700;
  color: #1b4332;
  min-width: 60px;
  text-align: right;
}

/* ============================================
   利用規約・プライバシーポリシー
   ============================================ */
.legal-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 20px;
  color: #1b4332;
  margin-top: 30px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e6e0;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 14px; color: #555; margin-bottom: 12px; line-height: 1.9; }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content li { font-size: 14px; color: #555; margin-bottom: 6px; line-height: 1.8; }

/* ============================================
   フッター
   ============================================ */
.footer {
  background: linear-gradient(135deg, #0d2818, #1b4332);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 20px 20px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 30px;
}
.footer-info h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  letter-spacing: 1px;
}
.footer-info h3 span { color: #c9a84c; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-links a:hover { color: #c9a84c; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ============================================
   チャットボット
   ============================================ */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  background: linear-gradient(135deg, #0d2818, #1b4332);
  color: #fff;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot-header-icon { font-size: 24px; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 360px;
}
.chatbot-msg {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
}
.chatbot-msg.bot {
  background: #f0f5f2;
  padding: 12px 16px;
  border-radius: 12px 12px 12px 4px;
  color: #333;
}
.chatbot-msg.user {
  background: #1b4332;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px 12px 4px 12px;
  margin-left: 40px;
}
.chatbot-suggestions {
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chatbot-suggestion {
  background: #f0f5f2;
  border: 1px solid #d4e8dc;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #1b4332;
}
.chatbot-suggestion:hover { background: #1b4332; color: #fff; border-color: #1b4332; }
.chatbot-input-area {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
}
.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d4d0c8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.chatbot-input:focus { outline: none; border-color: #1b4332; }
.chatbot-send {
  background: #1b4332;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.chatbot-send:hover { background: #0d2818; }

/* ============================================
   ハンバーガーメニュー
   ============================================ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================
   レスポンシブ - タブレット
   ============================================ */
@media (max-width: 1024px) {
  .course-detail-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* ============================================
   レスポンシブ - スマートフォン
   ============================================ */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: linear-gradient(135deg, #0d2818, #1b4332);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 15px; border-radius: 8px; }
  .container { padding: 0 16px; }
  .page-content { padding-top: 24px; padding-bottom: 40px; }
  .page-title { font-size: 22px; margin-bottom: 20px; }
  .hero { padding: 50px 20px; }
  .hero-compass { padding: 80px 20px 60px; min-height: 400px; }
  .hero-compass h1 { font-size: 28px; letter-spacing: 2px; }
  .hero-eyecatch { font-size: 11px; letter-spacing: 4px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .courses-grid { grid-template-columns: 1fr; }
  .course-detail-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 20px; }
  .form-group input, .form-group textarea, .form-group select {
    padding: 12px 14px; font-size: 16px;
  }
  .btn { padding: 12px 24px; font-size: 15px; }
  .btn-large { padding: 14px 28px; }
  .section-title { font-size: 22px; }
  .feature-card { padding: 20px; }
  .course-sidebar { max-height: 300px; overflow-y: auto; }
  .mypage-header { padding: 24px; }
  .mypage-rank { font-size: 36px; }
  .chatbot-panel { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
  .legal-content { padding: 24px; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 16px !important; letter-spacing: 1px !important; }
  .page-title { font-size: 20px; }
  .hero h1 { font-size: 20px; }
  .hero-compass h1 { font-size: 22px; }
  .hero-compass { padding: 60px 16px 50px; min-height: 350px; }
  .auth-container { padding: 0 8px; }
  .auth-card { padding: 24px 16px; }
  .footer-links { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom { font-size: 11px; }
  .rank-banner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .rank-banner-right { width: 100%; }
  .category-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
  .category-tab { white-space: nowrap; flex-shrink: 0; }
  .course-sidebar { max-height: 250px; }
  .step-item { padding: 10px 12px; font-size: 13px; }
  .mypage-stats { grid-template-columns: 1fr; }
  .mypage-medals { grid-template-columns: repeat(2, 1fr); }
}
