/* ════════════════════════════════════════
   JECSA — Global Stylesheet
   ════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --gold:         #C9933A;
  --gold-light:   #E8C278;
  --cream:        #FAF7F2;
  --warm-white:   #FFFDF9;
  --charcoal:     #2C2A27;
  --mid-gray:     #7A7570;
  --light-border: #E8E2D8;
  --sky:          #5B9EC9;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(255,253,249,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light-border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.1em;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.76rem; letter-spacing: 0.12em;
  color: var(--mid-gray);
  transition: color 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: white !important;
  padding: 7px 18px;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--charcoal) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); transition: 0.3s; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  min-height: 38vh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 120px 8% 60px;
  background: var(--cream);
  border-bottom: 1px solid var(--light-border);
}
.page-hero-tag {
  font-size: 0.66rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-tag::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--gold);
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.1;
  color: var(--charcoal);
}
.page-hero h1 em { font-style: italic; color: var(--gold); }

/* ── COMMON SECTION ── */
.section { padding: 90px 8%; }
.section-tag {
  font-size: 0.66rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400; line-height: 1.2;
  color: var(--charcoal); margin-bottom: 2.4rem;
}
.section-body {
  font-size: 0.9rem; line-height: 2.1;
  color: var(--mid-gray); max-width: 640px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; padding: 14px 32px;
  background: var(--gold); color: white;
  text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--charcoal); transform: translateY(-2px); }

.btn-outline {
  display: inline-block; padding: 14px 32px;
  border: 1px solid var(--charcoal); color: var(--charcoal);
  text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.25s;
}
.btn-outline:hover { background: var(--charcoal); color: white; transform: translateY(-2px); }

.btn-gold-outline {
  display: inline-block; padding: 14px 32px;
  border: 1px solid var(--gold); color: var(--gold);
  text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.25s;
}
.btn-gold-outline:hover { background: var(--gold); color: white; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 60px 8% 36px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px; margin-bottom: 52px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600;
  color: white; letter-spacing: 0.1em; margin-bottom: 14px;
}
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 0.82rem; line-height: 1.9; max-width: 320px; }
.footer-col h4 {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: white; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; flex-wrap: wrap; gap: 12px;
}

/* ── FADE ANIMATION ── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   PAGE-SPECIFIC STYLES
   ════════════════════════════════════════ */

/* ── INDEX: HERO ── */
.hero-wrap {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 68px; background: var(--cream);
}
.hero-left {
  display: flex; flex-direction: column;
  justify-content: center; padding: 6% 6% 6% 8%;
}
.hero-tag {
  font-size: 0.68rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 12px;
}
.hero-tag::before { content: ''; display: inline-block; width: 36px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 300; line-height: 1.1;
  color: var(--charcoal); margin-bottom: 2rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-body { font-size: 0.9rem; line-height: 2; color: var(--mid-gray); max-width: 460px; margin-bottom: 3rem; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right { position: relative; overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; }
.hero-right::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,147,58,0.1) 0%, transparent 60%);
}

/* ── INDEX: STATS STRIP ── */
.stats-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  background: var(--charcoal); padding: 48px 8%;
  gap: 1px;
}
.stat-item {
  text-align: center; padding: 20px 10px;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300; color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ── EDUCATION PAGE ── */
.edu-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.edu-img {
  position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: 24px 24px 0 var(--light-border);
}
.edu-badge {
  position: absolute; bottom: 24px; right: -12px;
  background: var(--gold); color: white;
  padding: 10px 22px; font-size: 0.75rem; letter-spacing: 0.1em;
}
.edu-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 48px;
}
.edu-feature-card {
  background: var(--cream); border-radius: 4px;
  padding: 28px 24px; border-left: 3px solid var(--gold);
}
.edu-feature-card h4 {
  font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.edu-feature-card p { font-size: 0.84rem; line-height: 1.8; color: var(--mid-gray); }

/* ── CAMBODIA NIGHT PAGE ── */
.night-hero-wrap {
  background: var(--charcoal);
  padding: 140px 8% 80px;
}
.night-hero-wrap .page-hero-tag { color: var(--gold-light); }
.night-hero-wrap .page-hero-tag::before { background: var(--gold-light); }
.night-hero-wrap h1 { color: white; }

.night-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; padding: 80px 8%;
  background: var(--charcoal);
}
.night-detail-item { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 36px; }
.night-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem; color: var(--gold);
}
.night-detail-text h4 {
  font-size: 0.74rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px;
}
.night-detail-text p { font-size: 0.88rem; line-height: 1.9; color: rgba(255,255,255,0.6); }
.night-img-wrap { border-radius: 4px; overflow: hidden; }
.night-img-wrap img { width: 100%; }

/* ── PRODUCTS PAGE ── */
.plans-intro {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 60px; flex-wrap: wrap; gap: 24px;
}
.plans-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.plan-card {
  background: white; border: 1px solid var(--light-border);
  border-radius: 4px; padding: 36px 28px;
  position: relative; display: flex; flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.plan-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.08); transform: translateY(-6px); }
.plan-card.featured { background: var(--charcoal); border-color: var(--charcoal); color: white; }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: white;
  font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.plan-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.plan-name {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mid-gray); margin-bottom: 20px;
}
.plan-card.featured .plan-name { color: rgba(255,255,255,0.45); }
.plan-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 600; color: var(--charcoal); margin-bottom: 4px;
}
.plan-card.featured .plan-price { color: white; }
.plan-unit { font-size: 0.74rem; color: var(--mid-gray); margin-bottom: 24px; }
.plan-card.featured .plan-unit { color: rgba(255,255,255,0.45); }
.plan-divider { width: 32px; height: 1px; background: var(--light-border); margin-bottom: 20px; }
.plan-card.featured .plan-divider { background: rgba(255,255,255,0.15); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 28px; }
.plan-features li {
  font-size: 0.82rem; line-height: 1.6; color: var(--mid-gray);
  display: flex; align-items: flex-start; gap: 10px;
}
.plan-features li::before { content: '✓'; color: var(--gold); flex-shrink: 0; font-size: 0.8rem; margin-top: 2px; }
.plan-card.featured .plan-features li { color: rgba(255,255,255,0.65); }
.plan-btn {
  display: block; text-align: center; padding: 12px;
  border: 1px solid var(--light-border); color: var(--charcoal);
  text-decoration: none; font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 2px;
  transition: all 0.2s; margin-top: auto;
}
.plan-btn:hover { background: var(--charcoal); color: white; border-color: var(--charcoal); }
.plan-card.featured .plan-btn { background: var(--gold); border-color: var(--gold); color: white; }
.plan-card.featured .plan-btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.plans-note {
  margin-top: 32px; font-size: 0.78rem;
  color: var(--mid-gray); text-align: center; line-height: 2;
}

/* ── TOKUSHO PAGE ── */
.tokusho-wrap { max-width: 860px; }
.tokusho-table {
  width: 100%; border-collapse: collapse;
  margin-top: 40px; font-size: 0.85rem;
}
.tokusho-table tr { border-bottom: 1px solid var(--light-border); }
.tokusho-table th {
  width: 200px; padding: 18px 20px;
  text-align: left; font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--mid-gray); background: var(--cream);
  vertical-align: top; white-space: nowrap;
}
.tokusho-table td { padding: 18px 24px; line-height: 1.9; color: var(--charcoal); }
.tokusho-table td a { color: var(--sky); text-decoration: none; }
.tokusho-table td a:hover { text-decoration: underline; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .plans-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--warm-white); border-bottom: 1px solid var(--light-border);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 5%; font-size: 0.85rem; }
  .hamburger { display: flex; }

  .hero-wrap { grid-template-columns: 1fr; }
  .hero-right { height: 55vw; min-height: 280px; }

  .edu-grid { grid-template-columns: 1fr; gap: 40px; }
  .edu-img  { box-shadow: none; }
  .edu-features { grid-template-columns: 1fr; }

  .night-info-grid { grid-template-columns: 1fr; padding: 60px 5%; }

  .plans-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }

  .section { padding: 70px 5%; }
  .page-hero { padding: 110px 5% 50px; }

  .tokusho-table th { width: 110px; font-size: 0.72rem; padding: 14px 10px; }
  .tokusho-table td { padding: 14px 12px; }

  .stats-strip { grid-template-columns: 1fr; }
}
