/* ===============================
   Design Tokens
=============================== */
:root {
  --color-primary:      #0f2d5a;
  --color-accent:       #2563eb;
  --color-accent-light: #dbeafe;
  --color-bg:           #ffffff;
  --color-bg-light:     #f8fafc;
  --color-bg-dark:      #0d1b2a;
  --color-text:         #1e293b;
  --color-muted:        #64748b;
  --color-border:       #e2e8f0;

  --font: 'Noto Sans JP', sans-serif;
  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --max-w: 1120px;
  --gap-section: 96px;
}

/* ===============================
   Reset
=============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
ul { list-style: none; }

/* ===============================
   Layout
=============================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: var(--gap-section) 0; }

/* ===============================
   Typography
=============================== */
.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.label-tag--white { color: rgba(255,255,255,0.65); }

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-title--white { color: #fff; }

.section-sub {
  font-size: 16px;
  color: var(--color-muted);
}
.section-sub--white { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ===============================
   Buttons
=============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: var(--font);
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn--white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn--white:hover {
  background: #f0f4f8;
  transform: translateY(-2px);
}
.btn--ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost-white:hover { background: rgba(255,255,255,0.12); }

.btn--sm  { padding: 10px 22px; font-size: 13px; }
.btn--lg  { padding: 18px 52px; font-size: 17px; }

/* ===============================
   Header
=============================== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 24px;
}
.header__logo { flex-shrink: 0; }
.header__logo img { height: 34px; width: auto; }

.header__nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 36px; }
.nav__list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
}
.nav__list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s;
  border-radius: 2px;
}
.nav__list a:hover { color: var(--color-accent); }
.nav__list a:hover::after { width: 100%; }

/* mobile nav */
.nav--open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 70px 0 0 0;
  background: #fff;
  padding: 32px 28px;
  gap: 24px;
  border-top: 1px solid var(--color-border);
  z-index: 199;
}
.nav--open .nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.nav--open .nav__list a { font-size: 18px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===============================
   Hero
=============================== */
.hero {
  background: linear-gradient(145deg, #eef4ff 0%, #e8f2ff 40%, #f5f9ff 100%);
  padding: 96px 0 88px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}
.hero__desc {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual — stats cards */
.hero__visual { display: flex; justify-content: center; align-items: center; }
.stat-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 360px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid rgba(37,99,235,0.08);
}
.stat-card:nth-child(3) {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 20px 28px;
}
.stat-card__num {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card__num sup { font-size: 20px; }
.stat-card__num sub { font-size: 18px; font-weight: 500; color: var(--color-muted); }
.stat-card__label { font-size: 12px; color: var(--color-muted); font-weight: 500; }
.stat-card__icon { font-size: 28px; flex-shrink: 0; }
.stat-card__text h4 { font-size: 15px; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.stat-card__text p  { font-size: 12px; color: var(--color-muted); }

/* ===============================
   Services Grid
=============================== */
.services-section { background: var(--color-bg-light); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 26px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}
.service-card p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.link-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 8px; }

/* ===============================
   SkillMate Highlight
=============================== */
.skillmate-section {
  background: linear-gradient(140deg, var(--color-primary) 0%, #1a3f72 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.skillmate-section::after {
  content: 'S';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 400px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  line-height: 1;
}
.skillmate-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.skillmate-section__text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.skillmate-section__text h2 span { color: #60a5fa; }
.skillmate-section__text .tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.skillmate-section__text > p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.85;
  margin-bottom: 32px;
}
.feature-list { margin-bottom: 40px; }
.feature-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: 700;
}
.skillmate-section__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sm-feature-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.sm-feature-card:hover { background: rgba(255,255,255,0.12); }
.sm-feature-card h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.sm-feature-card p  { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ===============================
   Exam Cards
=============================== */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.exam-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}
.exam-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.exam-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.exam-card:hover::before { transform: scaleX(1); }
.exam-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: 14px;
}
.exam-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.45;
}
.exam-card p { font-size: 12px; color: var(--color-muted); line-height: 1.7; }
.exam-card--more {
  background: var(--color-bg-light);
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.exam-card--more h3 { color: var(--color-muted); margin-bottom: 0; }

/* ===============================
   CTA Banner
=============================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e40af 100%);
  padding: 88px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 44px;
}
.cta-banner__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===============================
   Footer
=============================== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.6);
}
.footer__main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  padding: 72px 28px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer__brand { }
.footer__brand-logo { margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.9; height: 30px; }
.footer__brand p { font-size: 13px; line-height: 1.85; color: rgba(255,255,255,0.5); }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p { font-size: 12px; }
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer__bottom-links a:hover { color: #fff; }

/* ===============================
   Contact Page
=============================== */
.page-hero {
  background: linear-gradient(145deg, #eef4ff 0%, #f5f9ff 100%);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--color-muted); }

.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.form-group label .required {
  color: #ef4444;
  margin-left: 4px;
  font-size: 12px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
textarea.form-control { resize: vertical; min-height: 160px; }
.form-submit { text-align: center; margin-top: 8px; }

/* ===============================
   Responsive
=============================== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .exam-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .skillmate-section__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --gap-section: 64px; }

  .header__nav,
  .header > .btn { display: none; }
  .hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }

  .service-grid { grid-template-columns: 1fr; }

  .footer__main { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav  { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  .contact-form-wrap { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .exam-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .cta-banner__btns { flex-direction: column; align-items: center; }
  .footer__nav { grid-template-columns: 1fr; }
  .stat-group { grid-template-columns: 1fr; }
}
