/* =============================================
   Compass LP — Style Sheet (Elegant Warm BtoB)
   ============================================= */

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

:root {
  /* Colors — elegant, warm, professional */
  --c-dark: #2C3440;
  --c-dark-deep: #1E242C;
  --c-text: #3A4250;
  --c-text-light: #6B7280;
  --c-white: #FFFFFF;
  --c-off-white: #F8F7F5;
  --c-warm-gray: #F3F1EE;
  --c-gray-200: #E8E5E1;
  --c-gray-300: #D5D1CC;
  --c-gray-400: #A09A93;

  /* Accent — sophisticated warm gold */
  --c-accent: #C9963A;
  --c-accent-hover: #B5862F;
  --c-accent-deep: #A67928;
  --c-accent-light: rgba(201, 150, 58, 0.08);

  /* Voice colors — muted earth tones */
  --c-mustard: #D4A373;
  --c-mustard-bg: rgba(212, 163, 115, 0.10);
  --c-slate: #6B8299;
  --c-slate-bg: rgba(107, 130, 153, 0.10);
  --c-sage: #82997E;
  --c-sage-bg: rgba(130, 153, 126, 0.10);

  /* Typography */
  --font-sans: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', sans-serif;

  /* Spacing — generous, luxury-level whitespace */
  --section-padding: 120px;
  --container-max: 1060px;

  /* Shadows — soft, premium */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 36px rgba(0, 0, 0, 0.09);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  line-height: 1.85;
  background-color: var(--c-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hide-sp { display: inline; }

/* --- Fade-in --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Header
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--c-dark);
  letter-spacing: 0.03em;
}

.header.is-scrolled .header__logo { color: var(--c-dark); }

.header__logo-mark {
  display: flex;
  align-items: center;
}

/* SVG Logo */
.logo-svg {
  width: 36px;
  height: auto;
  display: block;
}

.logo-svg--footer {
  width: 28px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.header__nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-light);
  letter-spacing: 0.03em;
  transition: color 0.3s;
  position: relative;
}

.header.is-scrolled .header__nav-link { color: var(--c-text-light); }

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width 0.3s var(--ease);
}

.header__nav-link:hover { color: var(--c-dark); }
.header.is-scrolled .header__nav-link:hover { color: var(--c-dark); }
.header__nav-link:hover::after { width: 100%; }

.header__nav-link--cta {
  color: var(--c-white) !important;
  background: var(--c-accent);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition: background 0.3s, transform 0.2s;
}

.header__nav-link--cta::after { display: none; }
.header__nav-link--cta:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.header.is-scrolled .header__hamburger span { background: var(--c-dark); }

.header__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   Hero — Light, warm, elegant
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(175deg, #FDFCFB 0%, #F5F0EB 40%, #E8E3DF 100%);
  overflow: hidden;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero__shape--1 {
  top: -12%;
  right: -6%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--c-accent) 0%, transparent 60%);
  animation: heroFloat 10s ease-in-out infinite alternate;
}

.hero__shape--2 {
  bottom: -18%;
  left: -4%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--c-slate) 0%, transparent 60%);
  animation: heroFloat 12s ease-in-out infinite alternate-reverse;
}

.hero__shape--3 {
  top: 35%;
  left: 45%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--c-mustard) 0%, transparent 60%);
  animation: heroFloat 8s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(18px, -10px) scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 160px 24px 140px;
}

.hero__title {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.65;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(0.88rem, 1.3vw, 1.02rem);
  color: var(--c-text-light);
  line-height: 2;
  max-width: 640px;
  margin: 0 auto 44px;
}

.hero__cta { display: inline-flex; }

/* Scroll Hint — dark for light background */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.hero__scroll-hint span {
  font-family: var(--font-en);
  font-size: 0.58rem;
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 4px 18px rgba(201, 150, 58, 0.25);
}

.btn--primary:hover {
  background: var(--c-accent-hover);
  box-shadow: 0 6px 24px rgba(201, 150, 58, 0.35);
  transform: translateY(-2px);
}

.btn--large { padding: 18px 42px; font-size: 0.98rem; }

.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* =============================================
   Section Common
   ============================================= */
.section { padding: var(--section-padding) 0; }

.section--white { background: var(--c-white); }
.section--gray { background: var(--c-off-white); }

.section__label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}

.section__title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.06em;
}

.section__lead {
  font-size: 0.95rem;
  color: var(--c-text-light);
  text-align: center;
  max-width: 720px;
  margin: -16px auto 48px;
  line-height: 2;
}

/* =============================================
   Vision
   ============================================= */
.vision__body {
  display: flex;
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.vision__accent-bar {
  flex-shrink: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-slate));
}

.vision__text p {
  font-size: 0.98rem;
  line-height: 2.15;
  color: var(--c-text);
  margin-bottom: 18px;
}

.vision__text p:last-child { margin-bottom: 0; }

.vision__text strong {
  color: var(--c-accent-deep);
  font-weight: 600;
}

/* =============================================
   Challenges
   ============================================= */
.challenges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.challenge-card {
  background: var(--c-white);
  border: none;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}

.challenge-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.challenge-card__icon { margin-bottom: 20px; }

.challenge-card__tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-accent-deep);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.challenge-card__text {
  font-size: 0.92rem;
  color: var(--c-text-light);
  line-height: 1.9;
}

/* =============================================
   Solution / Value
   ============================================= */
.solution-block__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.solution-block__heading-tag {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-white);
  background: var(--c-accent);
  padding: 6px 16px;
  border-radius: 4px;
}

.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--c-white);
  border: none;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}

.solution-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.solution-card__number {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(201, 150, 58, 0.12);
  line-height: 1;
  margin-bottom: 14px;
}

.solution-card__badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--c-accent-deep);
  background: var(--c-accent-light);
  padding: 4px 11px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.solution-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 10px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.solution-card__text {
  font-size: 0.86rem;
  color: var(--c-text-light);
  line-height: 1.85;
}

/* =============================================
   Track Record + Voices (integrated)
   ============================================= */
.track-record__body {
  max-width: 780px;
  margin: 0 auto 64px;
}

.track-record__body p {
  font-size: 0.98rem;
  line-height: 2.15;
  color: var(--c-text);
  margin-bottom: 14px;
}

.track-record__body p:last-child { margin-bottom: 0; }

.subsection__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-dark);
  text-align: center;
  margin-bottom: 36px;
  padding-top: 8px;
  letter-spacing: 0.06em;
}

/* --- Voices --- */
.voices-group { margin-bottom: 32px; }
.voices-group:last-child { margin-bottom: 0; }

.voices-group__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-gray-200);
}

/* All icons share consistent format with colored bg */
.voices-group__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--c-mustard-bg);
  color: var(--c-mustard);
  flex-shrink: 0;
}

.voices-group__icon--blue {
  background: var(--c-slate-bg);
  color: var(--c-slate);
}

.voices-group__icon--green {
  background: var(--c-sage-bg);
  color: var(--c-sage);
}

/* Voice cards — shadow-based, no visible border */
.voice-card {
  background: var(--c-white);
  border: none;
  border-left: 3px solid var(--c-mustard);
  border-radius: 0 14px 14px 0;
  padding: 30px 28px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}

.voice-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.voice-card--student { border-left-color: var(--c-slate); }
.voice-card--teacher { border-left-color: var(--c-sage); }

.voice-card__mark {
  font-family: Georgia, serif;
  font-size: 2.8rem;
  color: var(--c-mustard);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: -4px;
}

.voice-card--student .voice-card__mark { color: var(--c-slate); }
.voice-card--teacher .voice-card__mark { color: var(--c-sage); }

.voice-card__text {
  font-size: 0.92rem;
  color: var(--c-text);
  line-height: 1.95;
}

/* =============================================
   About Us
   ============================================= */
.about__body {
  max-width: 780px;
  margin: 0 auto;
}

.about__text p {
  font-size: 0.98rem;
  line-height: 2.15;
  color: var(--c-text);
  margin-bottom: 18px;
}

.about__text p:last-child { margin-bottom: 0; }

.about__text strong {
  color: var(--c-accent-deep);
  font-weight: 600;
}

/* =============================================
   Contact / CTA
   ============================================= */
.section--cta {
  background: var(--c-warm-gray);
  border-top: 1px solid var(--c-gray-200);
  padding: var(--section-padding) 0;
}

.contact__inner { text-align: center; }

.contact__title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.7;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

.contact__org {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 18px;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.contact__org-label {
  font-size: 0.7rem;
  color: var(--c-text-light);
  font-weight: 500;
}

.contact__org-name {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: 0.04em;
}

.contact__text {
  font-size: 0.92rem;
  color: var(--c-text-light);
  line-height: 2;
  margin-bottom: 36px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--c-dark-deep);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-mark { color: var(--c-accent); font-size: 1.1rem; }

.footer__logo-text {
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-white);
}

.footer__by { font-size: 0.7rem; color: var(--c-gray-400); margin-left: 4px; }
.footer__copy { font-size: 0.7rem; color: var(--c-gray-400); }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-padding: 88px; }

  .solution-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px; }

  .hide-sp { display: none; }

  /* Header */
  .header__nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }

  .header__nav.is-open { opacity: 1; visibility: visible; }

  .header__nav-list {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .header__nav-link {
    font-size: 1.02rem;
    color: var(--c-text) !important;
  }

  .header__nav-link--cta {
    margin-top: 12px;
    padding: 13px 28px;
    font-size: 0.92rem;
  }

  .header__hamburger { display: flex; }

  /* Hero */
  .hero__content { padding: 120px 20px 100px; }
  .hero__scroll-hint { display: none; }

  /* Challenges */
  .challenges { grid-template-columns: 1fr; }

  /* Vision */
  .vision__body { flex-direction: column; gap: 0; }
  .vision__accent-bar { width: 100%; height: 4px; margin-bottom: 22px; }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Contact */
  .btn--large { padding: 15px 28px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section__title { font-size: 1.2rem; }
  .hero__title { font-size: 1.35rem; }
}
