/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #FFFBF3;
  --beige-1:    #F7EDD8;
  --beige-2:    #EDD5A7;
  --gold-light: #E8C47A;
  --gold:       #C9943A;
  --gold-deep:  #A87020;
  --brown-lt:   #C17F52;
  --brown:      #8B5232;
  --brown-dp:   #5C3418;
  --text:       #3B2010;
  --muted:      #7A5E3A;
  --line:       #E0CEAC;
  --white:      #FFFDF8;
  --surface:    #F7EDD8;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(90,50,10,0.08);
  --shadow-md: 0 8px 32px rgba(90,50,10,0.12);
  --shadow-lg: 0 16px 48px rgba(90,50,10,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
.en-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.14em;
}

h1, h2, h3 { line-height: 1.25; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,243,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.site-logo .en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brown-dp);
  letter-spacing: 0.18em;
}

.site-logo .ja {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brown-dp); }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--brown-dp) 0%, var(--brown) 50%, var(--gold) 100%);
  color: var(--white);
  padding: 120px 0 110px;
}

/* dot pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232,196,122,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* wave bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

/* floating orbs */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-deco-1 {
  width: 580px; height: 580px;
  top: -160px; right: -150px;
  background: radial-gradient(circle at 38% 38%, rgba(232,196,122,0.18) 0%, transparent 60%);
  border: 2px solid rgba(232,196,122,0.28);
}
.hero-deco-2 {
  width: 340px; height: 340px;
  bottom: -40px; left: -90px;
  background: radial-gradient(circle at 40% 35%, rgba(255,253,248,0.12) 0%, transparent 65%);
  border: 1.5px solid rgba(255,253,248,0.22);
}
.hero-deco-3 {
  width: 200px; height: 200px;
  top: 30%; right: 14%;
  background: radial-gradient(circle at 35% 35%, rgba(232,196,122,0.15) 0%, transparent 65%);
  border: 1.5px solid rgba(232,196,122,0.32);
}
.hero-deco-4 {
  width: 110px; height: 110px;
  top: 14%; left: 10%;
  background: radial-gradient(circle at 36% 36%, rgba(232,196,122,0.12) 0%, transparent 60%);
  border: 1.5px solid rgba(232,196,122,0.30);
}
.hero-deco-5 {
  width: 70px; height: 70px;
  bottom: 26%; right: 28%;
  background: radial-gradient(circle at 35% 35%, rgba(255,253,248,0.10) 0%, transparent 65%);
  border: 1px solid rgba(255,253,248,0.28);
}
.hero-deco-6 {
  width: 150px; height: 150px;
  top: 60%; left: 22%;
  background: radial-gradient(circle at 36% 36%, rgba(232,196,122,0.10) 0%, transparent 60%);
  border: 1.5px solid rgba(232,196,122,0.26);
}
.hero-deco-7 {
  width: 50px; height: 50px;
  top: 22%; right: 36%;
  background: radial-gradient(circle at 35% 35%, rgba(255,253,248,0.08) 0%, transparent 60%);
  border: 1px solid rgba(255,253,248,0.30);
}
.hero-deco-8 {
  width: 260px; height: 260px;
  top: -60px; left: 30%;
  background: radial-gradient(circle at 38% 38%, rgba(232,196,122,0.08) 0%, transparent 60%);
  border: 1.5px solid rgba(232,196,122,0.20);
}
.hero-deco-9 {
  width: 80px; height: 80px;
  bottom: 14%; left: 40%;
  background: radial-gradient(circle at 35% 35%, rgba(255,253,248,0.08) 0%, transparent 60%);
  border: 1px solid rgba(255,253,248,0.24);
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold-light);
}

.hero-main-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
}

.hero-main-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,253,248,0.82);
  letter-spacing: 0.12em;
  margin-bottom: 36px;
}

.hero-desc {
  max-width: 560px;
  font-size: 0.9rem;
  color: rgba(255,253,248,0.74);
  line-height: 2;
  border-left: 2px solid var(--gold-light);
  padding-left: 18px;
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-label::before {
  content: '';
  display: block;
  width: 16px; height: 1px;
  background: var(--gold);
}

.section-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--brown-dp);
  margin-bottom: 32px;
  letter-spacing: 0.08em;
}

/* ===== NOTICE SECTION ===== */
.notice-section {
  background: var(--beige-1);
  padding: 64px 0;
  position: relative;
}

.notice-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(180,120,40,0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(180,120,40,0.04) 25%, transparent 25%),
    linear-gradient(45deg,  transparent 75%, rgba(180,120,40,0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(180,120,40,0.04) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  pointer-events: none;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
}

.notice-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}

.notice-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--beige-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.notice-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.notice-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--brown-dp);
  margin-bottom: 5px;
}

.notice-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== ASSIGNMENT CARDS ===== */
.assignments-section { background: var(--cream); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.assignment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.assignment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-banner {
  height: 6px;
  background: linear-gradient(90deg, var(--brown-dp), var(--gold));
}

.card-body { padding: 36px 36px 28px; flex: 1; }

.card-number {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 12px;
}

.card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown-dp);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--beige-1);
  color: var(--brown);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.65;
}

.card-footer {
  padding: 20px 36px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.22s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brown), var(--gold));
  color: var(--white);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brown-dp), var(--brown));
  transform: translateX(3px);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown-lt);
}
.btn-outline:hover { background: var(--beige-1); }

.btn-youtube {
  background: #D4A843;
  color: #3B2010;
  font-weight: 700;
}
.btn-youtube:hover { background: #B8892A; }

.btn-form {
  background: var(--brown-dp);
  color: var(--white);
}
.btn-form:hover { background: var(--brown); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.full-width { width: 100%; justify-content: center; }

/* ===== FAQ ===== */
.faq-section {
  background: var(--beige-1);
  position: relative;
}
.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(180,120,40,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.faq-list { max-width: 720px; position: relative; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-dp);
}

.faq-question .q-mark {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--beige-2);
  color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.faq-question .faq-chevron {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 0 24px 44px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.9;
}
.faq-item.open .faq-answer { display: block; }

/* ===== LESSON PAGE ===== */
.lesson-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--brown-dp) 0%, var(--brown) 60%, var(--gold-deep) 100%);
  color: var(--white);
  padding: 80px 0 76px;
}
.lesson-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232,196,122,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.lesson-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,253,248,0.62);
  margin-bottom: 24px;
  transition: color 0.2s;
  position: relative; z-index: 1;
}
.back-link:hover { color: var(--white); }

.lesson-number {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}

.lesson-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  position: relative; z-index: 1;
}

.lesson-subtitle {
  font-size: 0.95rem;
  color: rgba(255,253,248,0.7);
  letter-spacing: 0.06em;
  position: relative; z-index: 1;
}

.lesson-body { padding: 72px 0; }

.lesson-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
}

/* Video section heading */
.video-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.video-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.video-intro {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 40px;
}

/* Video card */
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.video-card:hover { box-shadow: var(--shadow-md); }

.video-card.featured {
  border-color: var(--gold);
  border-width: 2px;
}

.video-card-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.video-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--beige-2);
  color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.video-card.featured .video-num {
  background: linear-gradient(135deg, var(--brown), var(--gold));
  color: var(--white);
}

.video-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--brown-dp);
  flex: 1;
}

.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--brown), var(--gold));
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.badge-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 100px;
  background: var(--beige-1);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #1A0A00;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* サムネイルクリック方式 */
.video-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #1A0A00;
  overflow: hidden;
}
.video-thumb-link img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.video-thumb-link:hover img { opacity: 0.85; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.video-play-btn span {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(20,8,0,0.62);
  border: 3px solid rgba(255,253,248,0.75);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  transition: transform 0.15s, background 0.15s;
  padding-left: 5px;
}
.video-thumb-link:hover .video-play-btn span {
  transform: scale(1.1);
  background: rgba(90,40,10,0.82);
}

.video-card-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Sidebar */
.lesson-sidebar { position: sticky; top: 88px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.info-card-header {
  background: linear-gradient(135deg, var(--brown-dp), var(--brown));
  padding: 18px 24px;
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.info-card-body { padding: 22px; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
  gap: 8px;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--muted); flex-shrink: 0; }
.info-row .value { font-weight: 600; color: var(--brown-dp); text-align: right; }

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* Featured video note */
.featured-note {
  background: linear-gradient(135deg, rgba(92,52,24,0.06), rgba(201,148,58,0.06));
  border: 1px solid var(--beige-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--brown);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brown-dp);
  color: rgba(255,253,248,0.48);
  padding: 48px 0;
  text-align: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255,253,248,0.8);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ===== BODY PART & TRACK NAME ===== */
.body-part-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(92,52,24,0.1);
  color: var(--brown-dp);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--beige-2);
}

.card-track {
  font-size: 0.82rem;
  color: var(--brown);
  font-weight: 600;
  margin-top: 2px;
  margin-bottom: 14px;
}

/* Hero meta row (body part + track) */
.lesson-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.lesson-meta-item {
  font-size: 0.88rem;
  color: rgba(255,253,248,0.75);
}

.lesson-meta-item strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* Video card subtitle (track name below title) */
.video-track-name {
  font-size: 0.78rem;
  color: var(--brown);
  margin-top: 3px;
  font-weight: 500;
}

/* ===== STEP FLOW ===== */
.step-flow { /* width controlled by lesson-step-layout grid */ }

/* 2-column: step flow + form sidebar */
.lesson-step-layout {
  display: grid;
  grid-template-columns: 1fr 272px;
  gap: 36px;
  align-items: start;
}

/* step subtitle line (video header) */
.step-sub {
  font-size: 0.74rem;
  color: rgba(255,253,248,0.68);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* Form sidebar card */
.form-sidebar-card {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.form-sidebar-header {
  background: linear-gradient(135deg, var(--brown-dp), var(--brown));
  padding: 16px 20px;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.form-sidebar-body { padding: 16px 18px; }

.form-sidebar-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.form-sidebar-item:last-child { border-bottom: none; }

.form-sidebar-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.form-sidebar-tag.before {
  background: linear-gradient(135deg, var(--brown-dp), var(--brown));
  color: var(--white);
}
.form-sidebar-tag.after {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--white);
}

.form-sidebar-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown-dp);
  margin-bottom: 10px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.step-header {
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--brown-dp), var(--brown));
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-header-video {
  background: linear-gradient(135deg, var(--brown), var(--gold-deep));
}
.step-header-after {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
}

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,253,248,0.2);
  border: 1.5px solid rgba(255,253,248,0.45);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2px;
  opacity: 0.85;
}

.step-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.step-body {
  padding: 28px 32px;
}

.step-explain {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
  background: var(--beige-1);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.step-explain strong { color: var(--brown-dp); }

.step-action {
  display: flex;
  justify-content: center;
}

.step-note {
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* Video step has no inner padding */
.step-body-video { padding: 0; }
.step-body-video .video-wrap { border-radius: 0; }
.step-video-footer {
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

/* Arrow connector between steps */
.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
}
.step-connector::before {
  content: '';
  display: block;
  width: 2px;
  height: 22px;
  background: linear-gradient(to bottom, var(--beige-2), var(--gold));
}
.step-connector::after {
  content: '▼';
  font-size: 0.78rem;
  color: var(--gold);
  line-height: 1;
}

/* ===== LESSON NAV (prev/next) ===== */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.lesson-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown);
  border: 1px solid var(--line);
  background: var(--white);
  transition: all 0.2s;
}
.lesson-nav a:hover {
  background: var(--beige-1);
  border-color: var(--beige-2);
}
.lesson-nav .spacer { flex: 1; }

/* Single video layout: full-width with sidebar */
.single-video-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.single-video-title {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.lesson-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--brown-dp), var(--gold));
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.single-video-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown-dp);
}

.single-video-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

/* YouTube No badge (index cards) */
.card-youtube {
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  font-family: 'Noto Sans JP', monospace;
}

/* Small iframe embed (lesson pages) */
.video-embed-small {
  padding: 20px 28px 0;
  max-width: 560px;
  margin: 0 auto;
}
.video-embed-small iframe {
  width: 100%;
  height: 270px;
  border: none;
  border-radius: var(--radius-sm);
  display: block;
}
.video-id-label {
  font-size: 0.8rem;
  color: var(--brown);
  text-align: center;
  padding: 10px 28px 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links { display: none; }
  .hero { padding: 80px 0 72px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-step-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }
  .action-buttons .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card-body { padding: 24px 20px 16px; }
  .card-footer { padding: 16px 20px 20px; }
  .info-card-body { padding: 16px; }
  .video-card-header { flex-wrap: wrap; }
  .hero-main-en { font-size: 2.6rem; }
}
