/* ============================================================
   大地塾｜暗号資産スクール — Design System
   ============================================================ */

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

:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-bg: #F8F9FA;
  --color-bg-alt: #F1F3F5;
  --color-navy: #0F1C2E;
  --color-navy-light: #1A2D45;
  --color-navy-muted: #2A3F5A;
  --color-accent: #4C9595;
  --color-accent-dark: #3D7A7A;
  --color-accent-light: #E8F4F4;
  --color-accent-glow: rgba(76, 149, 149, 0.12);
  --color-text: #2C3E50;
  --color-text-muted: #6B7B8D;
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-light: #F0F2F5;

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

  /* Spacing */
  --section-gap: clamp(80px, 10vw, 140px);
  --container-width: 1120px;
  --container-padding: clamp(20px, 5vw, 40px);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(15, 28, 46, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 28, 46, 0.06);
  --shadow-lg: 0 8px 32px rgba(15, 28, 46, 0.08);
  --shadow-card: 0 2px 12px rgba(15, 28, 46, 0.05);

  /* Transition */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: 800px;
}

/* --- Typography --- */
.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-navy);
  background: var(--color-bg);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn--white:hover {
  background: var(--color-bg);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Card --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-border);
}

/* --- Sections --- */
section {
  padding: var(--section-gap) 0;
}

.section--white {
  background: var(--color-white);
}

.section--gray {
  background: var(--color-bg);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

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

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

/* Add version to CSS loading in html files to prevent cache issues */
/* This is a comment indicating styles logic */
.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

.fade-in-delay-4 {
  transition-delay: 0.4s;
}

.fade-in-delay-5 {
  transition-delay: 0.5s;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 100;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  /* Use clamp to dynamically scale gaps on smaller widths */
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  position: relative;
  white-space: nowrap;
  /* Prevent links themselves from wrapping */
  flex-shrink: 0;
  min-width: max-content;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--duration) var(--ease);
}

.header-nav a:hover {
  color: var(--color-navy);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-cta {
  font-size: 0.8rem !important;
  padding: 8px 20px !important;
  color: var(--color-white) !important;
  background: var(--color-navy);
  border-radius: var(--radius-sm);
}

.header-cta::after {
  display: none !important;
}

.header-cta:hover {
  background: var(--color-navy-light);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: all var(--duration) var(--ease);
  border-radius: 1px;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO / FIRST VIEW
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-white);
  overflow: hidden;
  padding-top: 72px;
}

/* Grid background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 28, 46, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
  opacity: 0.6;
}

/* Chart line decoration */
.hero-chart {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
}

.hero-chart svg {
  width: 100%;
  height: 100%;
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-catchcopy {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-subcopy {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 40px;
}

.hero-subcopy br {
  display: block;
  margin-bottom: 4px;
}

.hero .btn-group {
  margin-top: 8px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-family: var(--font-en);
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================================
   DATA STATS
   ============================================================ */
.stats {
  padding: 60px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number .stat-suffix {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-philosophy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.philosophy-card {
  padding: 36px 28px;
  text-align: center;
}

.philosophy-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.philosophy-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.philosophy-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Comparison table */
.comparison {
  max-width: 800px;
  margin: 0 auto;
}

.comparison h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 32px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--color-text-muted);
  width: 30%;
}

.comparison-table td:nth-child(2) {
  color: var(--color-text-muted);
}

.comparison-table td:nth-child(3) {
  color: var(--color-navy);
  font-weight: 500;
}

.comparison-check {
  color: var(--color-accent);
  font-weight: 600;
}

.comparison-cross {
  color: #C0C8D4;
}

/* ============================================================
   CURRICULUM (学べる内容)
   ============================================================ */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.curriculum-card {
  padding: 32px 28px;
  position: relative;
}

.curriculum-card-number {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.curriculum-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-accent);
  opacity: 0.8;
}

.curriculum-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.curriculum-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================================
   COURSES (コース一覧)
   ============================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.course-card {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.course-card--featured {
  border-color: var(--color-accent);
  border-width: 1.5px;
}

.course-card--featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: 16px;
  right: -28px;
  transform: rotate(45deg);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.6rem;
  font-weight: 600;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  padding: 4px 40px;
}

.course-tag {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.course-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.course-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-price {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.course-price .yen {
  font-size: 0.9rem;
  font-weight: 600;
}

.course-price .tax {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.course-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

.course-features li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   FLOW (学習フロー)
   ============================================================ */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -2px;
  width: calc(100% - 56px);
  height: 1px;
  background: var(--color-border);
  left: calc(50% + 28px);
}

.flow-step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-accent);
  position: relative;
  z-index: 2;
  transition: all var(--duration) var(--ease);
}

.flow-step:hover .flow-step-circle {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.05);
}

.flow-step-number {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.flow-step h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

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

/* ============================================================
   NEWS SAMPLE (ニュース分析サンプル)
   ============================================================ */
.news-sample-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.news-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-family: var(--font-en);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.news-sample-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.5;
  margin-bottom: 16px;
}

.news-sample-card .news-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.news-visual {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-visual-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-en);
}

.news-visual-point {
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.news-visual-point:last-child {
  border-bottom: none;
}

.news-point-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   MESSAGE (代表メッセージ)
   ============================================================ */
.message-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.message-photo {
  width: 280px;
  height: 340px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  position: sticky;
  top: 120px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.message-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.message-name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.message-body p {
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--color-text);
  margin-bottom: 24px;
}

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

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: color var(--duration) var(--ease);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 0 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* ============================================================
   WHITE PAPER
   ============================================================ */
.whitepaper {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.whitepaper h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.whitepaper p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.whitepaper-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.whitepaper-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.whitepaper-form input::placeholder {
  color: var(--color-text-light);
}

.whitepaper-form input:focus {
  border-color: var(--color-accent);
}

/* ============================================================
   VOICE (お客様の声)
   ============================================================ */
.voice-slider-wrapper {
  position: relative;
}

.voice-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all var(--duration) var(--ease);
}

.voice-slider-arrow:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.05);
}

.voice-slider-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.voice-slider-arrow.prev {
  left: -24px;
}

.voice-slider-arrow.next {
  right: -24px;
}

.voice-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 32px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  /* hide scrollbar for elegance */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.voice-grid::-webkit-scrollbar {
  display: none;
}

.voice-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  width: 320px;
  height: 320px;
  /* Strict square exact constraint */
  box-sizing: border-box;
  scroll-snap-align: center;
}

.voice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.voice-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: 20px;
}

.voice-location {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.voice-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.375rem;
  /* ~1.05 * 1.5 * 1.5 as fallback */
}

.voice-text {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.8;
}

.voice-text-wrapper {
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  /* take up remaining space before button */
  max-height: 100px;
  /* Fits the square securely */
  transition: max-height 0.6s var(--ease);
}

.voice-text-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--color-white));
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.voice-text-wrapper.is-expanded {
  max-height: 1200px;
}

.voice-text-wrapper.is-expanded::after {
  opacity: 0;
}

.voice-card.is-expanded {
  height: auto;
  min-height: 320px;
}

.voice-read-more-container {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 12px;
}

.voice-read-more {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 50%;
  color: var(--color-navy);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--duration) var(--ease);
}

.voice-read-more:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

.voice-read-more span {
  display: none;
  /* hide the text, keep the aria-label in js or just visually hide */
}

.voice-read-more svg {
  transition: transform 0.4s var(--ease);
}

.voice-read-more.is-open svg {
  transform: rotate(45deg);
  /* turn plus into an X */
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}

.final-cta .section-title {
  color: var(--color-white);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 24px;
}

.final-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 40px;
}

.final-cta .btn-group {
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 0 32px;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
}

.footer-sns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--duration) var(--ease);
}

.footer-sns a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration) var(--ease);
  font-size: 0.8rem;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-en);
  font-size: 0.75rem;
}

/* ============================================================
   STICKY CTA BAR (mobile)
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-light);
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  display: none;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  gap: 10px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.sticky-cta .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.8rem;
}


/* ============================================================
   VOICE MODAL
   ============================================================ */
.voice-modal {
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  margin: auto;
  border-radius: 24px;
  overflow: visible;
  /* we handle scrolling inside .voice-modal-content */
}

/* Base state for animation */
.voice-modal[open] {
  animation: modal-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.voice-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdrop-fade-in 0.3s ease-out forwards;
}

@keyframes backdrop-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.voice-modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: 24px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

.voice-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-navy);
  transition: background var(--duration) var(--ease);
}

.voice-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.voice-modal-body .voice-meta {
  margin-bottom: 24px;
}

.voice-modal-body .voice-title {
  height: auto;
  -webkit-line-clamp: unset;
  display: block;
}

.voice-modal-body .voice-text {
  font-size: 0.95rem;
  line-height: 2;
}

/* ============================================================
   OFFICIAL SNS
   ============================================================ */
.sns-slider {
  display: flex !important;
  gap: 20px !important;
  margin-top: 40px;
  overflow-x: auto !important;
  padding-bottom: 32px !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.sns-slider::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.sns-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
  flex: 0 0 300px !important;
  width: 300px !important;
  scroll-snap-align: start;
}

.sns-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background 0.3s;
}

.sns-card.is-line::before {
  background: #06C755;
}

.sns-card.is-instagram::before {
  background: #E1306C;
}

.sns-card.is-twitter::before {
  background: #1DA1F2;
}

.sns-card.is-tiktok::before {
  background: #000000;
}

.sns-card.is-note::before {
  background: #41C9B4;
}

.sns-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: transparent;
  background: var(--color-white);
}

.sns-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sns-card:hover .sns-card-icon {
  transform: scale(1.1);
  color: var(--color-accent);
}

.sns-card.is-line:hover .sns-card-icon {
  color: #06C755;
}

.sns-card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.sns-card-content p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
}



/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .voice-slider-arrow {
    display: none;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    transition: box-shadow var(--duration) var(--ease), height var(--duration) var(--ease), background var(--duration) var(--ease);
  }

  .site-header.menu-open {
    height: 100vh;
    background: var(--color-white);
  }

  .header-nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 32px;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path var(--duration) cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header-nav.is-open {
    clip-path: circle(150% at 100% 0%);
    pointer-events: all;
  }

  /* When taking over viewport, fix the header-nav a items */
  .header-nav a {
    font-size: 1.25rem;
    flex-shrink: initial;
    white-space: normal;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .about-philosophy {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comparison-table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
    white-space: nowrap;
  }

  .comparison-table td:nth-child(2) {
    white-space: normal;
    min-width: 140px;
  }

  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .courses-grid,
  .expert-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .flow-step:not(:last-child)::after {
    display: block;
    width: 2px;
    height: calc(100% + 24px);
    /* 親要素のgap(24px)分を追加して次の円に接続する */
    top: 48px;
    left: 23px;
    /* 48px / 2 - 1px */
    transform: none;
  }

  .flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 0;
    position: relative;
    /* ::afterの位置基準用に追加 */
    width: 100%;
  }

  .flow-step-circle {
    margin: 0;
    min-width: 48px;
    width: 48px;
    height: 48px;
    margin-top: 2px;
  }

  .news-sample-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .message-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .message-photo {
    width: 100%;
    height: 380px;
    position: static;
  }

  .message-photo img {
    object-position: center top;
  }

  .whitepaper {
    padding: 40px 24px;
  }

  .whitepaper-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 12px;
  }

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

  /* Show sticky CTA on mobile */
  .sticky-cta {
    display: block;
  }

  /* Add padding to body for sticky CTA */
  .site-footer {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .hero-catchcopy {
    font-size: 1.6rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .course-card--featured::before {
    font-size: 0.5rem;
    padding: 3px 36px;
  }
}