/* ============================================
   Navy Intelligence Design System
   リアプラ eラーニング 統一デザイン
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   デザイントークン
   ============================================ */
:root {
  /* カラー */
  --c-primary:      #1C2E4A;
  --c-primary-mid:  #2C5282;
  --c-primary-light:#3A6EA8;
  --c-accent:       #C9A84C;
  --c-accent-light: #D4B96A;
  --c-bg:           #F7F8FA;
  --c-surface:      #FFFFFF;
  --c-text:         #1A1A2E;
  --c-text-sub:     #6B7280;
  --c-text-muted:   #9CA3AF;
  --c-border:       #E5E7EB;
  --c-border-light: #F3F4F6;
  --c-hover:        #EBF0F8;
  --c-success:      #059669;
  --c-success-bg:   #ECFDF5;
  --c-error:        #DC2626;
  --c-error-bg:     #FEF2F2;

  /* タイポグラフィ */
  --f-serif: 'Noto Serif JP', serif;
  --f-sans:  'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --f-num:   'Inter', sans-serif;

  /* シャドウ */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  /* 角丸 */
  --r-sm:  4px;
  --r-md:  6px;
  --r-lg:  8px;
  --r-xl:  12px;
  --r-2xl: 16px;
  --r-full: 9999px;

  /* スペーシング（8pxグリッド） */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* ナビ高さ */
  --nav-h: 64px;

  /* トランジション */
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.75;
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--c-primary-mid);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   レイアウト
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.page-content {
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-10);
  min-height: calc(100vh - 200px);
}

.page-header {
  margin-bottom: var(--sp-5);
}

.page-title {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--sp-1);
}

.page-subtitle {
  font-size: 13px;
  color: var(--c-text-sub);
  letter-spacing: 0.03em;
}

/* ============================================
   ゴールドライン装飾
   ============================================ */
.gold-line {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
  margin: 0 auto var(--sp-3);
}

.gold-line-left {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
  margin-bottom: var(--sp-2);
}

/* ============================================
   ナビゲーションバー
   ============================================ */
.navbar {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  padding: 0 var(--sp-3);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(27,67,50,0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  color: #fff;
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}


.nav-logo:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 6px var(--sp-2);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
}

/* 管理画面リンク */
#nav-admin-link {
  background: rgba(201,168,76,0.85) !important;
  color: var(--c-primary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  padding: 5px 14px !important;
  border-radius: var(--r-md) !important;
}

#nav-admin-link:hover {
  background: var(--c-accent) !important;
  color: #1C2E4A !important;
}

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px var(--sp-3);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(28,46,74,0.25);
}

.btn-primary:hover {
  background: var(--c-primary-mid);
  color: #fff;
  box-shadow: 0 4px 16px rgba(28,46,74,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}

.btn-secondary:hover {
  background: var(--c-hover);
  color: var(--c-primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-light));
  color: var(--c-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}

.btn-accent:hover {
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
  color: var(--c-primary);
}

.btn-large {
  padding: 14px var(--sp-5);
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

/* ============================================
   カード共通
   ============================================ */
.card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ============================================
   コース一覧 - フィルターバー
   ============================================ */
.filter-bar {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--r-full);
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--c-text-sub);
}

.filter-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.filter-btn.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* ============================================
   コースカード
   ============================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-3);
}

.course-card {
  background: var(--c-surface);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.course-card-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  position: relative;
  overflow: hidden;
}

.course-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card-thumbnail img {
  transform: scale(1.04);
}

.course-card-thumbnail-fallback {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  padding: var(--sp-2);
  text-align: center;
}

.course-card-body {
  padding: var(--sp-3);
}

.course-card-body h3 {
  font-family: var(--f-serif);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--sp-1);
  color: var(--c-primary);
  line-height: 1.6;
}

.course-card-body p {
  font-size: 12px;
  color: var(--c-text-sub);
  margin-bottom: var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
}

.course-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: var(--c-text-muted);
}

.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 進捗バー（カード内） */
.course-progress-bar-wrap {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-1);
}

.course-progress-bar-bg {
  height: 4px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
}

.course-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-mid));
  border-radius: 2px;
  transition: width 0.6s ease;
}

.course-progress-text {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-top: 4px;
  font-family: var(--f-num);
}

/* レベルバッジ */
.level-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.level-badge.basic {
  background: var(--c-hover);
  color: var(--c-primary);
}

.level-badge.intermediate {
  background: #FEF3C7;
  color: #92400E;
}

/* ============================================
   コース詳細ページ
   ============================================ */
.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-4);
  align-items: start;
}

.video-player-wrapper {
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #000;
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-md);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a0e1a, #1C2E4A);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
}

.video-active {
  width: 100%;
  background: #000;
  display: block;
}

.video-player-wrapper video {
  width: 100%;
  display: block;
}

.course-info-section h1 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--sp-1);
  color: var(--c-primary);
  line-height: 1.5;
}

.course-info-section p {
  color: var(--c-text-sub);
  margin-bottom: var(--sp-2);
  font-size: 14px;
}

.course-meta-detail {
  display: flex;
  gap: var(--sp-2);
  font-size: 13px;
  color: var(--c-text-muted);
  flex-wrap: wrap;
}

/* サイドバー */
.course-sidebar {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.sidebar-header {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--c-border-light);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-mid) 100%);
}

.sidebar-header h2 {
  font-family: var(--f-serif);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--sp-2);
}

.progress-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.progress-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}

#progress-text {
  font-family: var(--f-num);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

.step-list {
  list-style: none;
  max-height: 480px;
  overflow-y: auto;
}

.step-item {
  padding: 13px var(--sp-3);
  border-bottom: 1px solid var(--c-border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
  font-size: 13px;
}

.step-item:hover {
  background: var(--c-hover);
}

.step-item.active {
  background: var(--c-hover);
  border-left: 3px solid var(--c-primary);
}

.step-item.completed .step-check {
  background: var(--c-success);
  border-color: var(--c-success);
  color: #fff;
}

.step-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  color: transparent;
  transition: var(--transition);
}

.step-info {
  flex: 1;
  min-width: 0;
}

.step-info .step-title {
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
}

.step-info .step-duration {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-top: 2px;
  font-family: var(--f-num);
}

/* ============================================
   認証ページ（共通）
   ============================================ */
.auth-container {
  max-width: 440px;
  margin: var(--sp-5) auto;
}

.auth-card {
  background: var(--c-surface);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-primary);
}

.auth-subtitle {
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
  font-size: 13px;
}

.auth-switch {
  text-align: center;
  margin-top: var(--sp-3);
  font-size: 13px;
  color: var(--c-text-sub);
}

/* ============================================
   フォーム
   ============================================ */
.form-group {
  margin-bottom: var(--sp-3);
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px var(--sp-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--f-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--c-surface);
  color: var(--c-text);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(28,46,74,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* メッセージ */
.error-message {
  background: var(--c-error-bg);
  color: var(--c-error);
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  font-size: 13px;
  border-left: 3px solid var(--c-error);
}

.success-message {
  background: var(--c-success-bg);
  color: var(--c-success);
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  font-size: 13px;
  border-left: 3px solid var(--c-success);
}

/* ============================================
   お問い合わせページ
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-5);
  align-items: start;
}

.contact-form-section h1 {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-primary);
}

.contact-subtitle {
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
  font-size: 13px;
}

.required-note {
  color: var(--c-error);
}

.contact-info-section h2 {
  font-family: var(--f-serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--c-primary);
}

.contact-info-card {
  background: var(--c-surface);
  padding: var(--sp-3);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  margin-bottom: var(--sp-3);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item strong {
  display: block;
  font-size: 11px;
  color: var(--c-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--c-text);
  font-weight: 500;
}

/* ============================================
   セクション共通
   ============================================ */
.section-label {
  font-family: var(--f-num);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: var(--sp-1);
  display: block;
}

.section-title {
  font-family: var(--f-serif);
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--sp-6);
  line-height: 1.5;
}

.section-subtitle {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-text-muted);
  font-family: var(--f-num);
  text-transform: uppercase;
  margin-bottom: var(--sp-1);
}

/* ============================================
   フッター
   ============================================ */
.footer {
  background: linear-gradient(135deg, var(--c-primary) 0%, #0f1e31 100%);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--sp-8) var(--sp-3) var(--sp-3);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-5);
  gap: var(--sp-5);
}

.footer-brand .footer-logo {
  font-family: var(--f-serif);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--sp-1);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.footer-brand .footer-logo::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--c-accent);
  border-radius: 2px;
}

.footer-brand p {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: var(--sp-3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-3);
  text-align: center;
  font-size: 12px;
  opacity: 0.45;
  letter-spacing: 0.03em;
}

/* ============================================
   管理画面 - テーブル系
   ============================================ */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  background: var(--c-bg);
  color: var(--c-text-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px var(--sp-2);
  text-align: left;
  border-bottom: 2px solid var(--c-border);
}

.admin-table td {
  padding: 12px var(--sp-2);
  border-bottom: 1px solid var(--c-border-light);
  color: var(--c-text);
}

.admin-table tr:hover td {
  background: var(--c-hover);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   ハンバーガーメニュー
   ============================================ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-1);
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 1px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ============================================
   ユーティリティ
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }

/* ============================================
   レスポンシブ - タブレット
   ============================================ */
@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: var(--nav-h);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-mid) 100%);
    flex-direction: column;
    padding: var(--sp-2) var(--sp-3);
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px var(--sp-2);
    font-size: 14px;
    border-radius: var(--r-md);
  }

  .nav-links a.active::after {
    display: none;
  }

  .container {
    padding: 0 var(--sp-2);
  }

  .page-content {
    padding-top: var(--sp-3);
    padding-bottom: var(--sp-8);
  }

  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 21px;
  }

  .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: var(--sp-3);
  }

  .footer-links {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* iOS ズーム防止 */
  }

  .btn {
    padding: 12px var(--sp-3);
  }

  .btn-large {
    padding: 14px var(--sp-4);
  }

  .auth-card {
    padding: var(--sp-4);
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px var(--sp-1);
  }

  .course-sidebar {
    position: static;
    max-height: 280px;
    overflow-y: auto;
  }
}

/* ============================================
   レスポンシブ - 小さいスマートフォン
   ============================================ */
@media (max-width: 480px) {
  .nav-logo {
    font-size: 13px;
  }

  .page-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 19px;
  }

  .filter-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 12px;
  }
}
