:root {
  --bg-color: #F7F4ED;
  --surface-color: #FFFDF8;
  --text-main: #1D2736;
  --text-muted: #515C6E;
  --primary: #0066b3; /* Matched to logo blue */
  --primary-deep: #004d87;
  --accent-green: #1F8A70;
  --accent-orange: #ef4444; /* Matched to logo/price red */
  --soft-blue: #e0f2fe;
  
  --border-light: rgba(0, 102, 179, 0.08);
  --border-strong: rgba(0, 102, 179, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.9);

  --shadow-sm: 0 4px 12px rgba(11, 39, 70, 0.03);
  --shadow-md: 0 12px 32px rgba(11, 39, 70, 0.06);
  --shadow-lg: 0 24px 48px rgba(11, 39, 70, 0.1);
  --shadow-colored: 0 16px 32px rgba(18, 60, 105, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-deep);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Effects & Advanced AI Aesthetics */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 25s infinite ease-in-out alternate;
  z-index: -2;
  pointer-events: none;
}

.orb-1 {
  width: 600px; height: 600px;
  background: var(--soft-blue);
  top: -10%; left: -10%;
  animation-duration: 22s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: rgba(31, 138, 112, 0.4);
  bottom: 0%; right: -5%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: 800px; height: 800px;
  background: rgba(242, 140, 69, 0.2);
  top: 30%; left: 30%;
  animation-duration: 35s;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 15%) scale(1.1); }
  100% { transform: translate(-5%, 5%) scale(0.95); }
}

.bg-grid {
  position: fixed;
  top: -50%; left: -50%;
  width: 200vw; height: 200vh;
  z-index: -3;
  background-image: 
    linear-gradient(rgba(18, 60, 105, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 60, 105, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: gridMove 20s linear infinite;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: perspective(1000px) rotateX(60deg) translateY(0) translateZ(-200px); }
  100% { transform: perspective(1000px) rotateX(60deg) translateY(60px) translateZ(-200px); }
}

.float-img {
  animation: floatImg 8s ease-in-out infinite alternate;
}
@keyframes floatImg {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(1.5deg); }
}

.card-3d-active {
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out !important;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1150px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 1.1rem;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-logo span {
  display: none; /* Hide text when logo image is present if preferred, or keep both */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(18, 60, 105, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-color);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Pricing Card Specifics */
.price-card {
  text-align: left;
  position: relative;
  overflow: hidden;
}

.price-card .event-tag {
  background: #254a9e; /* Dark blue from top of card */
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.price-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.price-card .regular-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.price-card .main-price {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.price-card .main-price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  vertical-align: middle;
  margin-right: 2px;
}

.price-card .price-term {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
}

.price-card .campaign-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.plan-notice-box {
  border: 1px dashed #ef4444;
  padding: 1.25rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  background: #fffafa;
}

.plan-notice-box h4 {
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.plan-notice-box p {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.price-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.price-card ul li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
}

.price-card ul li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #333;
  font-size: 0.6rem;
  top: 0.4rem;
}

.detail-link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: 3px solid #ffcc00;
  padding-bottom: 2px;
  display: inline-block;
  transition: var(--transition);
}

.detail-link:hover {
  background: #ffcc00;
}

.price-blue {
  color: #254a9e !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content p.subtitle {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tag {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.tag.tag-accent {
  color: var(--accent-orange);
  background: rgba(242, 140, 69, 0.05);
  border-color: rgba(242, 140, 69, 0.15);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-tags, .hero-buttons {
    justify-content: center;
  }
}

/* Section Header */
.header-center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
}

.card:hover:not(.card-3d-active) {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--soft-blue);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--soft-blue);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

/* Alternating Sections */
.bg-dark {
  background-color: var(--primary-deep);
  color: white;
}
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: white; }
.bg-dark p { color: rgba(255, 255, 255, 0.8); }
.bg-dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Event / Pricing Info */
.info-panel {
  background: white;
  border-radius: var(--radius-xl);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
  text-align: left;
}

.info-item {
  border-left: 2px solid var(--soft-blue);
  padding-left: 1.5rem;
}

.info-item dt {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-item dd {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-deep);
}

/* Profile */
.profile-card {
  display: flex;
  gap: 3rem;
  background: white;
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  align-items: center;
  text-align: left;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--soft-blue);
    flex-shrink: 0;
    border: 3px solid var(--border-soft);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
  .profile-card { flex-direction: column; text-align: center; }
}

.gallery-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-align: left;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-deep);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  color: var(--accent-green);
  transition: var(--transition);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-a {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-a {
  padding-bottom: 2rem;
  max-height: 500px;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: var(--radius-xl);
  padding: 6rem 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(31, 138, 112, 0.15) 0%, transparent 65%);
  z-index: 0;
}

.cta-box > * { position: relative; z-index: 1; }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Roadmap Customization */
/* Student Success Timeline */
.story-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 4rem;
}

.story-item {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  align-items: flex-start;
  text-align: left;
}

.story-profile {
  position: sticky;
  top: 8rem;
}

.story-profile h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.story-profile p.age {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.story-profile .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 3px solid var(--soft-blue);
    background: var(--dark-navy);
}

.story-profile .profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-profile .income-badge {
  background: var(--primary-deep);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  display: inline-block;
  font-weight: 800;
  box-shadow: var(--shadow-colored);
}

.timeline-flow {
  border-left: 2px solid var(--soft-blue);
  padding-left: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-step {
  position: relative;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: calc(-3rem - 11px);
  top: 0.5rem;
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
}

.step-label {
  display: inline-block;
  background: var(--soft-blue);
  color: var(--primary);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.timeline-step h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-deep);
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.income-arrow {
  color: #ef4444;
  font-weight: 900;
  margin: 0 0.5rem;
}

@media (max-width: 900px) {
  .story-item {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story-profile {
    position: static;
    text-align: center;
  }
  .timeline-flow {
    padding-left: 2.5rem;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Pricing Special */
.price-tag {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-deep);
  letter-spacing: -2px;
}
.price-badge {
  background: var(--accent-orange);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}
