/* ═══════════════════════════════════════════
   PRICING PAGE — Light-dominant Theme
   Hero & footer stay dark; body sections are light
═══════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --white: #ffffff;
  --border-gold: rgba(201, 168, 76, 0.3);
}

body {
  font-family: 'Noto Serif JP', serif;
  overflow-x: hidden;
}

/* ─── PAGE HERO (override: different padding from common.css) ─── */
.page-hero {
  padding: 140px 60px 80px;
}

/* ─── COURSES SECTION ─── */
.courses-section {
  background: #ffffff;
  padding: 100px 0;
  position: relative;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ─── COURSE CARD ─── */
.course-card {
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.03);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.06);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.course-card-accent {
  height: 5px;
  width: 100%;
  flex-shrink: 0;
}

.course-card--gold .course-card-accent {
  background: var(--gold);
}

.course-card--purple .course-card-accent {
  background: #4a2d8a;
}

.course-card--sub .course-card-accent {
  background: #1a6e5e;
}

.course-card-inner {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-features {
  flex: 1;
}

.course-tag {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #8a6d2b;
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
}

.course-tag--sub {
  color: #1a6e5e;
  border-color: rgba(29,110,94,0.3);
  background: rgba(29,110,94,0.06);
}

.course-tag--purple {
  color: #4a2d8a;
  border-color: rgba(74,45,138,0.35);
  background: rgba(74,45,138,0.07);
}

.course-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 400;
  color: #1a1520;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 16px;
}

.course-name--sub {
  font-size: 20px;
}

/* Course image */
.course-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,0.08);
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition: opacity 0.3s;
}

.course-card:hover .course-img img {
  opacity: 1;
}

.course-catch {
  font-size: 14px;
  color: #4a4060;
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

/* Stats row */
.course-stats {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid rgba(0,0,0,0.1);
}

.course-stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
}

.course-stat + .course-stat {
  border-left: 1px solid rgba(0,0,0,0.1);
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.stat-label {
  font-size: 10px;
  color: #4a4060;
  letter-spacing: 0.08em;
}

/* Price block */
.course-price-block {
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.course-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.price-label {
  font-size: 11px;
  color: #4a4060;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.price-amount {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: #1a1520;
  letter-spacing: 0.06em;
}

.price-amount em {
  font-family: 'Cinzel', serif;
  font-size: 40px;
  font-weight: 600;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* Feature list */
.course-features {
  list-style: none;
  margin-bottom: 32px;
}

.course-features li {
  font-size: 14px;
  color: #4a4060;
  letter-spacing: 0.04em;
  line-height: 1.6;
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.course-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

/* Detail button */
.btn-course-detail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border: 1px solid rgba(201,168,76,0.4);
  color: #1a1520;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-course-detail:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  transform: translateY(-2px);
}

.btn-course-detail .btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.btn-course-detail:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-course-detail--sub {
  padding: 14px 32px;
  font-size: 14px;
}

/* ─── SUB COURSE ─── */
.sub-course-wrap {
  margin-top: 24px;
}

.course-card--sub {
  border-color: rgba(29,110,94,0.25);
  background: rgba(29,110,94,0.04);
}

.course-card--sub:hover {
  border-color: rgba(29,110,94,0.4);
}

.sub-course-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.sub-course-content .course-features {
  margin-bottom: 0;
}

.sub-course-price-side {
  text-align: center;
  padding-left: 48px;
  border-left: 1px solid rgba(29,110,94,0.15);
}

.sub-course-price-side .course-price {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

/* ─── Light-section overrides for courses/payment headings ─── */
.courses-section .section-title-ja,
.payment-section .section-title-ja {
  color: #1a1520;
}

.courses-section .section-title-en,
.payment-section .section-title-en {
  color: #4a4060;
}

.courses-section .section-label span,
.payment-section .section-label span {
  color: #8a6d2b;
}

.courses-section .section-label .line,
.payment-section .section-label .line {
  background: linear-gradient(90deg, transparent, var(--goldDim, #b89a3e));
}

.courses-section .section-label.center .line:last-child,
.payment-section .section-label.center .line:last-child {
  background: linear-gradient(90deg, var(--goldDim, #b89a3e), transparent);
}

/* ─── COMPARISON TABLE (dark section) ─── */
.compare-section {
  background: #0d0e1a;
  padding: 100px 0;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 0;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 640px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.compare-table thead th {
  padding: 20px 24px;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
  border-bottom: 2px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

.th-label {
  width: 160px;
  background: rgba(255,255,255,0.03);
}

.th-gold {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.th-purple {
  color: #b89aff;
  background: rgba(124, 95, 191, 0.1);
}

.th-teal {
  color: #5ec4b0;
  background: rgba(29, 110, 94, 0.1);
}

.compare-table tbody td {
  padding: 18px 24px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.td-label {
  text-align: left !important;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.compare-table tbody td .fa-check {
  color: var(--gold);
  font-size: 16px;
}

.compare-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.compare-table tbody tr:nth-child(even) .td-label {
  background: rgba(255,255,255,0.04);
}

/* ─── Compare-section heading overrides (dark bg → light text) ─── */
.compare-section .section-title-ja {
  color: rgba(255,255,255,0.95);
}

.compare-section .section-title-en {
  color: rgba(255,255,255,0.5);
}

.compare-section .section-label span {
  color: var(--gold);
}

.compare-section .section-label .line {
  background: linear-gradient(90deg, transparent, var(--gold));
}

.compare-section .section-label.center .line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}


/* ─── PAYMENT SECTION ─── */
.payment-section {
  background: #ffffff;
  padding: 100px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.payment-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #faf9fc;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.payment-card i {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.payment-card h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1520;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.payment-card p {
  font-size: 11px;
  color: #4a4060;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.payment-card small {
  color: #4a4060;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .sub-course-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sub-course-price-side {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(29,110,94,0.2);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sub-course-price-side .course-price {
    flex-direction: row;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 24px 60px;
  }

  .page-title-ja {
    font-size: 28px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  .section-wrap {
    padding: 0 20px;
  }

  .section-header-center {
    margin-bottom: 40px;
  }

  .section-title-ja {
    font-size: 22px;
  }

  .courses-section,
  .compare-section,
  .payment-section {
    padding: 72px 0;
  }

  .course-card-inner {
    padding: 32px 24px;
  }

  .course-name {
    font-size: 20px;
  }

  .stat-value {
    font-size: 22px;
  }

  .price-amount em {
    font-size: 28px;
  }

  .btn-course-detail {
    width: 100%;
    justify-content: center;
  }

  .payment-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .payment-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .payment-card i {
    font-size: 22px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .payment-card h4 {
    margin-bottom: 2px;
    font-size: 14px;
  }

  .closing-cta {
    padding: 80px 0;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .compare-table {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 90px 16px 48px;
  }

  .page-title-ja {
    font-size: 24px;
  }

  .section-wrap {
    padding: 0 16px;
  }

  .course-stats {
    flex-direction: column;
  }

  .course-stat + .course-stat {
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.1);
  }

  .course-stat {
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .stat-value {
    margin-bottom: 0;
  }

  .sub-course-price-side {
    flex-direction: column;
    gap: 16px;
  }

  .btn-course-detail--sub {
    width: 100%;
    justify-content: center;
  }
}
