/* ========================================
   くむすた教材シリーズ - メインスタイルシート
   ======================================== */

/* ----------------------------------------
   CSS Variables
---------------------------------------- */
:root {
  /* Primary Colors - 信頼感のある青系 */
  --primary: #1E3A5F;
  --primary-dark: #152B47;
  --primary-light: #2D5A8A;
  
  /* Accent Colors - 落ち着いた補助色 */
  --accent: #2C7A7B;
  --accent-dark: #234E52;
  --accent-light: #38B2AC;
  
  /* Secondary Colors */
  --secondary: #C53030;
  --secondary-light: #E53E3E;
  
  /* Category Colors - 文教向けの落ち着いた配色 */
  --color-basic: #D69E2E;
  --color-python: #2B6CB0;
  --color-pro: #9C4221;
  --color-school: #276749;
  --color-classroom: #6B46C1;
  
  /* Neutral Colors */
  --dark: #1A202C;
  --dark-soft: #2D3748;
  --gray-dark: #4A5568;
  --gray: #718096;
  --gray-light: #A0AEC0;
  --light: #F7FAFC;
  --light-alt: #EDF2F7;
  --white: #FFFFFF;
  
  /* Gradients - 信頼感のある落ち着いたグラデーション */
  --gradient-primary: linear-gradient(135deg, #1E3A5F 0%, #2C5282 100%);
  --gradient-warm: linear-gradient(135deg, #2C7A7B 0%, #285E61 100%);
  --gradient-cool: linear-gradient(135deg, #2B6CB0 0%, #3182CE 100%);
  --gradient-dark: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
  
  /* Typography */
  --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Sizing */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows - より落ち着いた影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.12);
  --shadow-color: 0 10px 40px rgba(30, 58, 95, 0.2);
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --header-height: 80px;
  --container-max: 1200px;
  --container-wide: 1400px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

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

.sp-hide {
  display: inline;
}

.sp-only {
  display: none;
}

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

.btn svg {
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(30, 58, 95, 0.45);
}

.btn-secondary {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  width: 100%;
}

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

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ----------------------------------------
   Header & Navigation
---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: var(--header-height);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

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

.logo-icon {
  font-size: 2rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* メニュー内ロゴ（デスクトップでは非表示） */
.nav-menu .menu-logo {
  display: none;
}

.nav-menu a {
  font-weight: 500;
  color: var(--gray-dark);
  transition: color var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

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

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

.btn-contact {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
}

.btn-contact::after {
  display: none;
}

.btn-contact:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5.5px);
}

/* ----------------------------------------
   Hero Section
---------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1E3A5F 0%, #2C5282 50%, #1E3A5F 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ドットグリッドパターン */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.4;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 20px 20px; }
  100% { background-position: 40px 40px, 60px 60px; }
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(56, 178, 172, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(99, 179, 237, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    linear-gradient(135deg, rgba(30, 58, 95, 0.8) 0%, rgba(44, 82, 130, 0.6) 50%, rgba(30, 58, 95, 0.8) 100%);
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 60px 24px 60px 48px;
  max-width: 650px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.label-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-line {
  display: block;
  margin-bottom: 0.1em;
}

.highlight {
  background: linear-gradient(135deg, #38B2AC 0%, #63B3ED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.highlight-accent {
  background: linear-gradient(135deg, #63B3ED 0%, #38B2AC 50%, #2DD4BF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(56, 178, 172, 0.3));
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 1rem;
}

.hero-visual {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 550px;
  z-index: 1;
  animation: floatIn 1s ease-out 0.5s both;
}

/* アクセント枠線 */
.hero-accent-border {
  position: absolute;
  top: 10px;
  right: -10px;
  bottom: -10px;
  left: 10px;
  border: 3px solid rgba(56, 178, 172, 0.6);
  border-radius: 24px;
  z-index: 0;
  pointer-events: none;
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { 
    border-color: rgba(56, 178, 172, 0.6);
    transform: translate(0, 0);
  }
  50% { 
    border-color: rgba(99, 179, 237, 0.8);
    transform: translate(-2px, 2px);
  }
}

/* 装飾要素 */
.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.decoration-code {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(56, 178, 172, 0.4);
  animation: floatCode 6s ease-in-out infinite;
}

.decoration-code.decoration-1 {
  top: -20px;
  left: -30px;
  animation-delay: 0s;
}

.decoration-code.decoration-2 {
  bottom: 20px;
  left: -40px;
  animation-delay: 1.5s;
}

.decoration-code.decoration-3 {
  top: 50%;
  right: -30px;
  animation-delay: 3s;
}

.decoration-geometric {
  position: absolute;
  border: 2px solid rgba(99, 179, 237, 0.3);
  animation: rotateGeometric 8s linear infinite;
}

.decoration-geometric.decoration-4 {
  width: 30px;
  height: 30px;
  top: -15px;
  right: 50px;
  border-radius: 4px;
  animation-delay: 0s;
}

.decoration-geometric.decoration-5 {
  width: 20px;
  height: 20px;
  bottom: 30px;
  right: -20px;
  border-radius: 50%;
  animation-delay: 2s;
}

@keyframes floatCode {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.4;
  }
  50% { 
    transform: translate(10px, -10px) rotate(5deg);
    opacity: 0.7;
  }
}

@keyframes rotateGeometric {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(56, 178, 172, 0.2));
}

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
}

.hero-slideshow .slide.active img {
  animation: zoomEffect 6s ease-out forwards;
}

@keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

/* Legacy robot styles - kept for compatibility */
.robot-container {
  position: relative;
  aspect-ratio: 1;
}

.robot-container.placeholder .hero-robot {
  display: none;
}

.robot-container.placeholder .robot-placeholder {
  display: flex !important;
}

.hero-robot {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
}

.robot-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  color: var(--white);
  gap: 16px;
}

.placeholder-icon {
  font-size: 5rem;
  opacity: 0.8;
}

.placeholder-text {
  font-size: 1rem;
  opacity: 0.7;
}

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(10px); opacity: 0.5; }
}

/* ----------------------------------------
   Trust Bar (信頼の証明バー)
---------------------------------------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--light-alt);
  padding: 24px 0;
  position: relative;
  z-index: 5;
}

.trust-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border-radius: var(--radius);
  padding: 8px 12px;
}

.trust-item:hover {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.05);
  transform: translateY(-2px);
}

.trust-icon {
  font-size: 1.25rem;
}

.trust-text {
  white-space: nowrap;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--light-alt);
}

@media (max-width: 768px) {
  .trust-bar {
    padding: 20px 0;
  }
  
  .trust-bar-content {
    gap: 20px;
  }
  
  .trust-item {
    font-size: 0.85rem;
    gap: 8px;
  }
  
  .trust-icon {
    font-size: 1.1rem;
  }
  
  .trust-divider {
    display: none;
  }
}

/* ----------------------------------------
   Section Styles (Common)
---------------------------------------- */
section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ----------------------------------------
   Features Section
---------------------------------------- */
.features {
  background: var(--white);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--light-alt), transparent);
}

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

.feature-card {
  position: relative;
  text-align: center;
  padding: 40px 24px;
  background: var(--light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card.featured {
  grid-column: span 1;
  background: var(--gradient-primary);
  color: var(--white);
}

.feature-card.featured::before {
  display: none;
}

.feature-card.featured .feature-number {
  color: rgba(255, 255, 255, 0.3);
}

.feature-card.featured p {
  color: rgba(255, 255, 255, 0.9);
}

.feature-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--light-alt);
  line-height: 1;
}

.feature-icon-wrap {
  margin-bottom: 20px;
}

.feature-icon {
  font-size: 3rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ----------------------------------------
   Products Section
---------------------------------------- */
.products {
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.product-card[data-category="basic"]::before { background: var(--color-basic); }
.product-card[data-category="practical"]::before { background: var(--color-python); }
.product-card[data-category="advanced"]::before { background: var(--color-pro); }
.product-card[data-category="school"]::before { background: var(--color-school); }
.product-card[data-category="classroom"]::before { background: var(--color-classroom); }

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.product-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-card[data-category="basic"] .product-badge {
  background: var(--color-basic);
  color: var(--dark);
}

.product-card[data-category="practical"] .product-badge {
  background: var(--color-python);
  color: var(--white);
}

.product-card[data-category="advanced"] .product-badge {
  background: var(--color-pro);
  color: var(--white);
}

.product-card[data-category="school"] .product-badge {
  background: var(--color-school);
  color: var(--white);
}

.product-card[data-category="classroom"] .product-badge {
  background: var(--color-classroom);
  color: var(--white);
}

.product-target-icons {
  display: flex;
  gap: 8px;
  font-size: 1.25rem;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-tagline {
  color: var(--gray);
  margin-bottom: 20px;
}

.product-image {
  aspect-ratio: 16/10;
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

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

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gray-light);
  font-size: 0.9rem;
}

.product-features {
  margin-bottom: 20px;
}

.product-features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.highlight-icon {
  font-size: 1rem;
}

/* ----------------------------------------
   Curriculum Section
---------------------------------------- */
.curriculum {
  background: var(--white);
}

.curriculum-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.curriculum-tab {
  padding: 12px 24px;
  border: 2px solid var(--light-alt);
  background: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
}

.curriculum-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.curriculum-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.curriculum-content {
  display: none;
}

.curriculum-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.curriculum-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.overview-card {
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}

.overview-card h4 {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.overview-card p {
  font-weight: 600;
  color: var(--dark);
}

.curriculum-timeline {
  position: relative;
  padding-left: 48px;
}

.curriculum-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-alt);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -48px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1;
}

.timeline-content {
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.timeline-content ul {
  color: var(--gray-dark);
}

.timeline-content li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.timeline-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.curriculum-extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.extra-item {
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--light-alt);
}

.extra-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.extra-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

.curriculum-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.curriculum-column {
  background: var(--light);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.column-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.column-info {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.list-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ----------------------------------------
   Samples Section
---------------------------------------- */
.samples {
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.samples-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.samples-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--light-alt);
  background: var(--white);
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.samples-tab:hover {
  border-color: var(--primary);
}

.samples-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.samples-content {
  display: none;
}

.samples-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.sample-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.sample-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.sample-preview {
  aspect-ratio: 4/3;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

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

.sample-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gray-light);
  gap: 12px;
}

.sample-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.sample-info {
  padding: 24px;
}

.sample-badge {
  display: inline-block;
  background: var(--color-school);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.sample-badge.video {
  background: var(--color-pro);
}

.sample-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sample-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Video specific */
.video-preview {
  cursor: pointer;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.35);
  transition: all var(--transition);
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.samples-cta {
  text-align: center;
  padding: 40px;
  background: var(--light);
  border-radius: var(--radius-lg);
}

.samples-cta p {
  color: var(--gray);
  margin-bottom: 16px;
}

/* ----------------------------------------
   Equipment Section
---------------------------------------- */
.equipment {
  background: var(--white);
}

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

.equipment-card {
  background: var(--light);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

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

.equipment-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.equipment-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.equipment-card ul {
  text-align: left;
}

.equipment-card li {
  padding: 6px 0;
  color: var(--gray-dark);
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.equipment-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ----------------------------------------
   CTA Section
---------------------------------------- */
.cta-section {
  background: var(--gradient-primary);
  padding: 100px 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.cta-buttons .btn-primary:hover {
  background: var(--light);
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.footer-links-external {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-external a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact .company-name {
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-contact address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ----------------------------------------
   Modal
---------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--light-alt);
}

.modal-body {
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body img {
  width: 100%;
  border-radius: var(--radius);
}

.modal-body video {
  width: 100%;
  border-radius: var(--radius);
}

.modal-placeholder {
  aspect-ratio: 16/9;
  background: var(--light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  gap: 16px;
}

.modal-placeholder .placeholder-icon {
  font-size: 4rem;
  opacity: 0.5;
}

/* ----------------------------------------
   Responsive Styles
---------------------------------------- */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-card.featured {
    grid-column: span 3;
  }
  
  .hero-visual {
    width: 38%;
    right: 30px;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Scratch Video Gallery */
  .scratch-video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  /* Scratch Video Gallery */
  .scratch-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-bottom: 60px;
  }
  
  .hero-content {
    padding: 40px 24px;
    max-width: 100%;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-accent-border {
    top: 5px;
    right: -5px;
    bottom: -5px;
    left: 5px;
    border-width: 2px;
  }
  
  .hero-decorations {
    display: none;
  }
  
  .hero-slideshow {
    border-radius: 16px;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-card.featured {
    grid-column: span 2;
  }
  
  .curriculum-dual {
    grid-template-columns: 1fr;
  }
  
  .equipment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  section {
    padding: 80px 0;
  }
  
  /* Navigation */
  .hamburger {
    display: flex;
    z-index: 9999;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    background: #FFFFFF;
    background-color: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding: 32px;
    padding-top: 24px;
    box-sizing: border-box;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  }
  
  .nav-menu .menu-logo {
    display: block;
    margin-bottom: 24px;
  }
  
  .nav-menu .menu-logo img {
    height: 40px;
    width: auto;
  }
  
  .nav-menu.active {
    transform: translateX(0);
    background: #FFFFFF;
    background-color: #FFFFFF;
  }
  
  .nav-menu li {
    list-style: none;
    text-align: center;
  }
  
  .nav-menu a {
    color: #4A5568;
    font-size: 1.1rem;
    text-decoration: none;
  }
  
  .nav-menu a:hover {
    color: #1E3A5F;
  }
  
  .nav-menu .btn-contact,
  .nav-menu a.btn-contact {
    color: #FFFFFF;
  }
  
  .btn-contact {
    margin-top: 16px;
  }
  
  /* Hero */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .sp-hide {
    display: none;
  }
  
  .sp-only {
    display: inline;
  }
  
  /* Features Compact */
  .features-compact-header {
    flex-direction: column;
    text-align: center;
  }
  
  .features-text .section-title {
    text-align: center;
  }
  
  .features-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-compact-grid .feature-compact-item:last-child {
    grid-column: span 2;
  }
  
  /* Products Compact */
  .products-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-compact-grid .product-compact-card:last-child {
    grid-column: span 2;
  }
  
  .product-compact-card {
    min-height: 240px;
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card.featured {
    grid-column: span 1;
  }
  
  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  /* Curriculum */
  .curriculum-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .curriculum-tab {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .curriculum-overview {
    grid-template-columns: 1fr;
  }
  
  .curriculum-extras {
    grid-template-columns: 1fr;
  }
  
  /* Samples */
  .samples-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .samples-tab {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .samples-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links-external {
    align-items: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .product-card {
    padding: 24px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .modal-content {
    max-height: 80vh;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  /* Features Compact */
  .features-compact-grid {
    grid-template-columns: 1fr;
  }
  
  .features-compact-grid .feature-compact-item:last-child {
    grid-column: span 1;
  }
  
  /* Products Compact */
  .products-compact-grid {
    grid-template-columns: 1fr;
  }
  
  .products-compact-grid .product-compact-card:last-child {
    grid-column: span 1;
  }

  /* Scratch Video Gallery */
  .scratch-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ----------------------------------------
   Features Compact Section (Top Page)
---------------------------------------- */
.features-compact {
  padding: 60px 0;
  background: var(--light);
}

.features-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.features-text {
  flex: 1;
}

.features-text .section-label {
  margin-bottom: 8px;
}

.features-text .section-title {
  margin-bottom: 8px;
  text-align: left;
}

.features-text p {
  color: var(--gray);
}

.features-compact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.feature-compact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-compact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-compact-icon {
  font-size: 2.5rem;
}

.feature-compact-label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ----------------------------------------
   Scratch Video Gallery Section
---------------------------------------- */
.scratch-video-gallery-section {
  padding: 100px 0;
  background: var(--light);
}

.scratch-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.scratch-video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scratch-video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: var(--light-alt);
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scratch-video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 1;
}

.scratch-video-card:hover .play-overlay {
  background: rgba(30, 58, 95, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.play-overlay svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.video-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  padding: 16px;
  margin: 0;
  text-align: center;
  transition: color var(--transition);
}

.scratch-video-card:hover .video-card-title {
  color: var(--primary);
}

.scratch-video-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
  color: var(--dark);
}

/* ----------------------------------------
   Products Compact Section (Top Page)
---------------------------------------- */
.products-compact {
  padding: 80px 0;
  background: var(--white);
}

.products-compact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.product-compact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--light);
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--dark);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.product-compact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.product-compact-card[data-category="basic"]::before { background: var(--color-basic); }
.product-compact-card[data-category="practical"]::before { background: var(--color-python); }
.product-compact-card[data-category="advanced"]::before { background: var(--color-pro); }
.product-compact-card[data-category="school"]::before { background: var(--color-school); }
.product-compact-card[data-category="classroom"]::before { background: var(--color-classroom); }

.product-compact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.product-compact-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-compact-card[data-category="basic"] .product-compact-badge {
  background: var(--color-basic);
  color: var(--dark);
}

.product-compact-card[data-category="practical"] .product-compact-badge {
  background: var(--color-python);
  color: var(--white);
}

.product-compact-card[data-category="advanced"] .product-compact-badge {
  background: var(--color-pro);
  color: var(--white);
}

.product-compact-card[data-category="school"] .product-compact-badge {
  background: var(--color-school);
  color: var(--white);
}

.product-compact-card[data-category="classroom"] .product-compact-badge {
  background: var(--color-classroom);
  color: var(--white);
}

.product-compact-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-compact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-compact-icon .icon-fallback {
  font-size: 3rem;
}

.product-compact-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-compact-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
  flex: 1;
}

.product-compact-targets {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 1.25rem;
}

.product-compact-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 1.25rem;
  color: var(--gray-light);
  transition: all var(--transition);
}

.product-compact-card:hover .product-compact-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.products-cta {
  text-align: center;
}

/* ----------------------------------------
   Value Section (導入価値)
---------------------------------------- */
.value-section {
  padding: 100px 0;
  background: var(--white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.value-card {
  background: var(--light);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.value-cta {
  text-align: center;
}

/* ----------------------------------------
   Targets Section (導入対象)
---------------------------------------- */
.targets-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

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

.target-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.target-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.target-card.featured {
  grid-column: span 2;
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}

.target-card.featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.target-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.target-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.target-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.target-desc {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.target-card.featured .target-desc {
  color: rgba(255, 255, 255, 0.85);
}

.target-list {
  margin-bottom: 20px;
  flex: 1;
}

.target-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.target-card.featured .target-list li {
  color: rgba(255, 255, 255, 0.9);
}

.target-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.target-card.featured .target-list li::before {
  color: var(--accent-light);
}

.target-products,
.target-examples {
  background: var(--light);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.target-card.featured .target-products,
.target-card.featured .target-examples {
  background: rgba(255, 255, 255, 0.15);
}

.target-products .label,
.target-examples .label {
  font-weight: 600;
  color: var(--gray-dark);
  display: block;
  margin-bottom: 4px;
}

.target-card.featured .target-products .label,
.target-card.featured .target-examples .label {
  color: rgba(255, 255, 255, 0.9);
}

.target-products a {
  color: var(--primary);
  font-weight: 500;
  margin-right: 12px;
}

.target-card.featured .target-products a {
  color: var(--accent-light);
}

.target-products a:hover {
  text-decoration: underline;
}

.target-examples span:not(.label) {
  color: var(--gray);
  line-height: 1.6;
}

.target-card.featured .target-examples span:not(.label) {
  color: rgba(255, 255, 255, 0.85);
}

.target-card .btn {
  margin-top: auto;
  width: 100%;
}

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ----------------------------------------
   Products Section (新デザイン)
---------------------------------------- */
.products-section {
  padding: 100px 0;
  background: var(--white);
}

.products-grid-new {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-card-new {
  display: flex;
  flex-direction: column;
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--dark);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card-new:hover {
  background: var(--white);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-category-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.product-card-new[data-category="school"] .product-category-bar { background: var(--color-school); }
.product-card-new[data-category="classroom"] .product-category-bar { background: var(--color-classroom); }
.product-card-new[data-category="basic"] .product-category-bar { background: var(--color-basic); }
.product-card-new[data-category="practical"] .product-category-bar { background: var(--color-python); }
.product-card-new[data-category="advanced"] .product-category-bar { background: var(--color-pro); }

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.product-card-new .product-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.product-card-new[data-category="school"] .product-badge { background: var(--color-school); color: var(--white); }
.product-card-new[data-category="classroom"] .product-badge { background: var(--color-classroom); color: var(--white); }
.product-card-new[data-category="basic"] .product-badge { background: var(--color-basic); color: var(--dark); }
.product-card-new[data-category="practical"] .product-badge { background: var(--color-python); color: var(--white); }
.product-card-new[data-category="advanced"] .product-badge { background: var(--color-pro); color: var(--white); }

.product-targets-icons {
  display: flex;
  gap: 4px;
  font-size: 1rem;
}

.product-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-icon .icon-fallback {
  font-size: 2.5rem;
}

.product-card-new h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.product-card-new .product-tagline {
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-card-new .product-features {
  flex: 1;
  margin-bottom: 16px;
}

.product-card-new .product-features li {
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  font-size: 0.8rem;
  color: var(--gray-dark);
}

.product-card-new .product-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.product-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.product-card-new:hover .product-link {
  color: var(--primary-dark);
}

/* ----------------------------------------
   Benefits Section (導入メリット)
---------------------------------------- */
.benefits-section {
  padding: 100px 0;
  background: var(--light);
}

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

.benefit-item {
  display: flex;
  gap: 24px;
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

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

.benefit-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
}

.benefit-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.benefit-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ----------------------------------------
   CTA Section 追加スタイル
---------------------------------------- */
.cta-contact-info {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-contact-info p {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-contact-info .phone-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.cta-contact-info .business-hours {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------
   Footer 追加スタイル
---------------------------------------- */
.footer-tel {
  margin-top: 12px;
  font-weight: 600;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  margin-top: 20px;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ----------------------------------------
   Responsive - 新セクション対応
---------------------------------------- */
@media (max-width: 1200px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid-new {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .targets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .target-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .products-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .targets-grid {
    grid-template-columns: 1fr;
  }
  
  .target-card.featured {
    grid-column: span 1;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .value-section,
  .targets-section,
  .products-section,
  .benefits-section {
    padding: 60px 0;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid-new {
    grid-template-columns: 1fr;
  }
  
  .benefit-item {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .benefit-number {
    font-size: 2rem;
  }
}

/* ----------------------------------------
   Print Styles
---------------------------------------- */
@media print {
  .header,
  .hero-cta,
  .scroll-indicator,
  .modal,
  .btn {
    display: none !important;
  }
  
  section {
    padding: 40px 0;
    page-break-inside: avoid;
  }
  
  .hero {
    min-height: auto;
    padding: 40px 0;
    background: none !important;
    color: var(--dark);
  }
  
  .hero-title,
  .hero-description {
    color: var(--dark);
  }
}

/* Curriculum Navigation */
.curriculum-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

.curriculum-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.curriculum-nav-item:hover {
  background: var(--nav-color, rgba(255, 255, 255, 0.25));
  border-color: var(--nav-color, rgba(255, 255, 255, 0.5));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.curriculum-nav-item .nav-icon {
  font-size: 1.2rem;
}

.curriculum-nav-item .nav-label {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .curriculum-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .curriculum-nav {
    gap: 8px;
  }
  
  .curriculum-nav-item {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .curriculum-nav-item .nav-icon {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .curriculum-nav-item {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 12px 10px;
  }
  
  .curriculum-nav-item .nav-label {
    font-size: 0.8rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

