/* ============================================
   GSE マイクロラーニング — デザインシステム v2
   Modern · Minimal · Bold · Simple
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* --- CSS変数 --- */
:root {
  --navy:    #1d2347;
  --cream:   #ECE4A9;
  --white:   #ffffff;
  --bg:      #f8f8f6;
  --text:    #111111;
  --muted:   #6b7280;
  --border:  #e5e5e0;
  --radius:  4px;
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- レイアウト --- */
.container      { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid rgba(236,228,169,0.2);
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: 36px;
  width: auto;
}

.site-header__logo-fallback {
  font-size: 13px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header__logo-fallback em {
  color: var(--cream);
  font-style: normal;
}

.site-header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-header__nav a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.site-header__nav a:hover { color: var(--cream); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 96px 24px 80px;
}

.hero__inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero__label {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__title em {
  color: var(--cream);
  font-style: normal;
}

.hero__subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ==========================================
   PAGE HEADER (内部ページ用)
   ========================================== */
.page-header {
  background: var(--navy);
  padding: 48px 24px 40px;
  color: var(--white);
}

.page-header__inner {
  max-width: 860px;
  margin: 0 auto;
}

.page-header__label {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.page-header__title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.page-header__meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section        { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--white { background: var(--white); }

.section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.section--navy .section__eyebrow { color: var(--cream); }

.section__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
}

.section--navy .section__title { color: var(--white); }

.section__lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
  text-align: center;
  white-space: nowrap;
}

.btn:hover   { opacity: 0.86; transform: translateY(-1px); }
.btn:active  { transform: none; }

.btn--navy   { background: var(--navy);  color: var(--white); }
.btn--cream  { background: var(--cream); color: var(--navy);  }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }

.btn--lg  { padding: 18px 40px; font-size: 15px; }
.btn--sm  { padding: 9px 20px;  font-size: 12px; }
.btn--full { width: 100%; display: block; }

/* ==========================================
   CARDS
   ========================================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* レッスンリスト行 */
.lesson-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  transition: border-color 0.15s, transform 0.15s;
  color: inherit;
}

.lesson-row:hover {
  border-color: var(--navy);
  transform: translateX(4px);
}

.lesson-row--locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.lesson-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.lesson-num--done    { background: #1d6f42; }
.lesson-num--locked  { background: var(--border); color: var(--muted); }

.lesson-info { flex: 1; }

.lesson-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  line-height: 1.45;
}

.lesson-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 14px;
}

.lesson-arrow {
  font-size: 20px;
  color: var(--border);
  flex-shrink: 0;
  font-weight: 300;
}

/* ==========================================
   TAGS / BADGES
   ========================================== */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}

.tag--navy  { background: var(--navy); color: var(--white); }
.tag--cream { background: var(--cream); color: var(--navy); }
.tag--muted { background: var(--border); color: var(--muted); }
.tag--green { background: #d1fae5; color: #065f46; }

/* ==========================================
   STATS CHIPS
   ========================================== */
.stats-row  { display: flex; gap: 20px; flex-wrap: wrap; }

.stat-chip {
  background: rgba(236,228,169,0.18);
  border: 1px solid rgba(236,228,169,0.4);
  border-radius: var(--radius);
  padding: 10px 20px;
  text-align: center;
}

.stat-chip__num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.stat-chip__label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}

/* ==========================================
   PLAN BANNER
   ========================================== */
.plan-banner {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.plan-banner__icon { font-size: 24px; flex-shrink: 0; }

.plan-banner__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.plan-banner__desc {
  font-size: 12px;
  color: rgba(5,48,82,0.65);
}

/* ==========================================
   CONTENT BODY (記事本文)
   ========================================== */
.content-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 64px;
  margin: 32px 0;
}

@media (max-width: 640px) {
  .content-body { padding: 28px 20px; }
}

.content-body h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}

.content-body p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
  color: #222;
}

.content-body ul,
.content-body ol {
  margin: 12px 0 20px 22px;
}

.content-body li {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 8px;
}

/* ==========================================
   HIGHLIGHT BOX
   ========================================== */
.highlight-box {
  background: var(--cream);
  border-left: 4px solid var(--navy);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.highlight-box--navy {
  background: var(--navy);
  color: var(--white);
  border-left-color: var(--cream);
}

.highlight-box p { margin: 0; font-size: 14px; line-height: 1.8; }
.highlight-box--navy p { color: rgba(255,255,255,0.9); }

/* ==========================================
   POINT LIST
   ========================================== */
.point-list { list-style: none; padding: 0; margin: 0; }

.point-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.75;
}

.point-list li:last-child { border-bottom: none; }

.point-list__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* ==========================================
   VIDEO PLACEHOLDER
   ========================================== */
.video-placeholder {
  background: var(--navy);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.video-placeholder__icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
}

/* ==========================================
   FORM
   ========================================== */
.form-group { margin-bottom: 28px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-label sup { color: #c00; font-size: 11px; margin-left: 3px; }

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
}

.form-control::placeholder { color: #bbb; }

.form-select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23053052' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: var(--navy);
}

.char-counter {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.char-counter--warn { color: #c00; }

/* ==========================================
   FEEDBACK BOX
   ========================================== */
.feedback-box {
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  display: none;
}

.feedback-box.is-visible { display: block; }

.feedback-box__header {
  background: var(--navy);
  padding: 20px 28px;
  text-align: center;
}

.feedback-box__icon {
  width: 36px;
  height: 36px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.feedback-box__photo {
  width: 208px;
  height: 208px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.2);
  display: block;
  margin: 0 auto 18px;
}

.feedback-box__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.feedback-box__subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.feedback-box__body {
  background: var(--white);
  padding: 28px 32px;
}

.feedback-box__content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
}

.feedback-box__ai-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 20px;
  text-align: center;
}

.feedback-box__footer {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================
   LOADING
   ========================================== */
.loading-spinner {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
}

.loading-spinner.is-visible { display: block; }

.loading-spinner::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  padding: 16px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb__sep { color: var(--border); }

/* ==========================================
   FEEDBACK NOTICE
   ========================================== */
.feedback-notice {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--navy);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 28px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 40px 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  border-top: 2px solid rgba(236,228,169,0.2);
}

.site-footer__logo {
  height: 28px;
  width: auto;
  margin: 0 auto 12px;
  opacity: 0.85;
}

.site-footer__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a { color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: var(--cream); }

/* ==========================================
   DIVIDER
   ========================================== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .hero       { padding: 64px 20px 52px; }
  .section    { padding: 48px 0; }
  .site-header__nav { display: none; }
  .stats-row  { gap: 12px; }
  .plan-banner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .btn--lg { padding: 15px 28px; font-size: 14px; }
  .lesson-row { padding: 16px 18px; }
}
