/* ==========================================================================
   Design System & Variable Tokens
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  /* Color Palette (HSL) */
  --primary: hsl(218, 54%, 12%);       /* Deep Trust Navy */
  --primary-light: hsl(218, 45%, 20%); /* Medium Navy */
  --accent: rgb(230, 92, 0);          /* Sunset Orange (Challenge/Energy) */
  --accent-light: hsl(24, 100%, 65%);  /* Light Orange */
  --accent-rgb: 230, 92, 0;
  --bg-light: hsl(210, 20%, 98%);      /* Soft Warm White */
  --bg-dark: hsl(218, 54%, 8%);        /* Very Dark Navy */
  --bg-card: hsl(0, 0%, 100%);
  --text-dark: hsl(218, 30%, 15%);     /* High contrast body text */
  --text-muted: hsl(218, 15%, 45%);    /* Secondary body text */
  --text-white: hsl(0, 0%, 100%);
  --border-color: hsl(218, 20%, 90%);
  --link-color: hsl(193, 31%, 40%);
 
  /* Layout & Spacing */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Typography */
  --font-primary: 'Noto Sans JP', sans-serif;
  --font-english: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* ==========================================================================
   Typography Helpers
   ========================================================================== */

@media screen and (max-width: 700px) {
  html {
    font-size: 90%;
  }
}

.font-en {
  font-family: var(--font-english);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-white) 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Common Layout Components
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 0;
}

@media (max-width: 768px) {
  .container {
    padding: 60px 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--text-white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 92, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: var(--text-white);
  color: var(--primary);
  border-color: var(--text-white);
  transform: translateY(-3px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

header .header-inner {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .nav-links {
  display: flex;
  gap: 30px;
}

header .nav-links a {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
}

header .nav-links a:hover {
  opacity: 1;
  color: var(--accent-light);
}

@media (max-width: 1090px) {
  header .nav-links {
    display: none; /* Simple responsive hide for simplicity */
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-white);
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Background animated decorative circles */
#hero::before, #hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

#hero::before {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(230, 92, 0, 0.15) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: floatCircle 20s infinite alternate ease-in-out;
}

#hero::after {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(22, 42, 77, 0.4) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: floatCircle 25s infinite alternate-reverse ease-in-out;
}

@keyframes floatCircle {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-50px) scale(1.1); }
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo placement rules as requested */
#hero .logo-container {
  max-width: 550px;
  width: 100%;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 30px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hero .logo-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Main copy placement rules as requested: directly below logo with balance */
#hero .main-copy {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
  color: var(--text-white);
}

#hero .sub-copy {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 690px;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
}

#hero .cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #hero .logo-container {
    max-width: 85%;
    padding: 15px 20px;
  }
  #hero .main-copy {
    font-size: 1.6rem;
    line-height: 1.5;
  }
  #hero .sub-copy {
    font-size: 1rem;
  }
  #hero .cta-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 320px;
  }
  #hero .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Background / Challenge Section
   ========================================================================== */
#challenge {
  background-color: var(--bg-card);
  position: relative;
}

.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.challenge-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.challenge-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.challenge-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--text-white);
  padding: 45px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(12, 27, 51, 0.15);
  position: relative;
  overflow: hidden;
}

.challenge-box::before {
  content: 'BACKGROUND';
  position: absolute;
  bottom: -15px;
  right: -10px;
  font-size: 5rem;
  font-family: var(--font-english);
  font-weight: 800;
  opacity: 0.03;
  letter-spacing: 0.1em;
}

.challenge-box h4 {
  font-size: 1.35rem;
  color: var(--accent-light);
  margin-bottom: 25px;
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

.challenge-box ul li {
  margin-bottom: 20px;
  position: relative;
  padding-left: 28px;
}

.challenge-box ul li::before {
  content: '◎';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: bold;
}

@media (max-width: 992px) {
  .challenge-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Features Section (3 Points)
   ========================================================================== */
#features {
  background-color: var(--bg-light);
}

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

.feature-card {
  background-color: var(--bg-card);
  padding: 45px 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  border: 1px solid rgba(12, 27, 51, 0.05);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(230, 92, 0, 0.2);
}

.feature-icon-num {
  font-family: var(--font-english);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(230, 92, 0, 0.1);
  line-height: 1;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-num {
  color: rgba(230, 92, 0, 0.3);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

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

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* ==========================================================================
   Program Structure (2-Step Timeline)
   ========================================================================== */
#structure {
  background-color: var(--bg-card);
}

.structure-intro {
  max-width: 750px;
  margin: -20px auto 50px;
  text-align: center;
  color: var(--text-muted);
}

.steps-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
}

.step-box {
  background-color: var(--bg-light);
  border-radius: 16px;
  padding: 45px;
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-smooth);
}

.step-box:hover {
  background-color: var(--bg-card);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border-color: rgba(230, 92, 0, 0.3);
  transform: scale(1.02);
}

.step-badge {
  display: inline-block;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 20px;
}

.step-box:nth-child(2) .step-badge {
  background: var(--accent);
}

.step-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.step-box h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-box h4 a {
    text-decoration: underline;
    color: var(--link-color);
}

.step-box h4 a:hover{
    color: var(--accent);
}


.step-period {
  font-family: var(--font-english);
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 25px;
/*   display: flex; */
  align-items: center;
  gap: 8px;
}

.step-detail-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.step-detail-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 2px;
}

@media (max-width: 992px) {
  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .step-box {
    padding: 30px;
  }
}

/* ==========================================================================
   Career Path Section
   ========================================================================== */
#career {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: var(--text-white);
}

#career .section-title h2 {
  color: var(--text-white);
}

#career .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.career-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.career-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-light);
  transform: translateY(-5px);
}

.career-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent-light);
  display: flex;
/*   align-items: center; */
  gap: 10px;
}

.career-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .career-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .career-card {
    padding: 30px;
  }
}

/* ==========================================================================
   Requirements / Details Section
   ========================================================================== */
#requirements {
  background-color: var(--bg-light);
}

.req-table-wrapper {
  background-color: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

.req-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--border-color);
}

.req-row:last-child {
  border-bottom: none;
}

.req-label {
  background-color: rgba(12, 27, 51, 0.02);
  color: var(--primary);
  font-weight: 700;
  padding: 24px 30px;
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.req-value {
  padding: 24px 30px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .req-row {
    grid-template-columns: 1fr;
  }
  .req-label {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
  }
  .req-value {
    padding: 15px 20px;
  }
}

/* ==========================================================================
   Contact / Footer Section
   ========================================================================== */
#contact {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 50px;
  margin-bottom: 30px;
}

.footer-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.footer-info p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-links h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.75;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.6;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
