:root {
  --primary-color: #059669;
  --secondary-color: #10b981;
  --secondary-hover: #059669;
  --accent-color: #93C47D;
  --accent-hover: #7db368;
  --text-main: #333333;
  --text-light: #777777;
  --bg-color: #F7F9FB;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
}

/* Admin pages keep original dark/orange theme */
.admin-body {
  --primary-color: #0f172a;
  --secondary-color: #f97316;
  --secondary-hover: #ea580c;
  --accent-color: #3b82f6;
  --text-main: #334155;
  --text-light: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.1);
  --radius-md: 8px;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: var(--radius-full);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

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

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

/* Phase 1-B: CTA & Sticky Bar Styles */
.btn-cta-safe {
  background: #059669 !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3) !important;
  border: none !important;
}

.btn-cta-safe:hover {
  background: #047857 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
}

#sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  z-index: 2000;
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none; /* Only show on mobile */
}

@media (max-width: 768px) {
  #sticky-cta-bar {
    display: block;
  }
}

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

.sticky-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 15px;
}

.sticky-cta-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  flex: 1;
}

.sticky-cta-button {
  padding: 10px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: 8px;
}

/* Visibility Utilities */
.sp-br { display: none; }
.pc-br { display: block; }

@media (max-width: 768px) {
  .sp-br { display: block; }
  .pc-br { display: none; }
}

/* Text Highlights */
.highlight {
  color: #fbbf24;
}
.highlight-bold {
  color: #fbbf24;
  font-weight: 800;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--secondary-color);
}

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

.nav-links a {
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

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

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

.header-actions {
  display: flex;
  gap: 15px;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-bg {
  background-image: url('../images/hero_calm.webp');
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  color: var(--white);
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.hero-sub {
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.main-cta {
  width: 100%;
  justify-content: center;
  padding: 22px 20px;
  font-size: 1.3rem;
  background: #06C755;
  box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
  border-radius: 12px;
  border: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  gap: 10px;
}

.hero-sub-cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.sub-cta {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  gap: 8px;
}

.sub-cta:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 500;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-pain-points {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-pain-points span {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: var(--white);
}

.hero-message {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* LINE Button Base */
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 40px;
  background: #06C755;
  color: white;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
  transition: all 0.3s ease;
}

.btn-line i {
  font-size: 1.3rem;
}

.hero-line-btn {
  width: 100%;
  max-width: 480px;
}

/* Header Button Styles */
.btn-line-header {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-color: #06C755;
  color: #06C755;
}

.btn-admin-lock {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Empathy Section Highlight */
.empathy-highlight {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 16px;
}

/* Story Card Utility Classes */
.story-title {
  font-weight: 700;
}

.story-result {
  color: var(--accent-color);
  font-weight: 700;
}

.story-body {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
}

.story-link {
  display: block;
  margin-top: 16px;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.story-more {
  text-align: center;
  margin-top: 30px;
}

/* Schools Section Utilities */
.schools-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-top: -30px;
  margin-bottom: 40px;
}

.school-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.school-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-card-placeholder--blue {
  background: linear-gradient(135deg, #dbeafe, #EBF4FF);
}

.school-card-placeholder--green {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
}

.school-card-placeholder--yellow {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
}

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

.school-card-placeholder-icon--blue {
  color: var(--secondary-color);
}

.school-card-placeholder-icon--green {
  color: var(--accent-color);
}

.school-card-placeholder-icon--yellow {
  color: #f59e0b;
}

/* CTA Variants */
.btn-cta-full {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
}

.btn-cta-large {
  padding: 20px 50px;
  font-size: 1.2rem;
  position: relative;
}

/* CTA Micro-copy */
.btn-with-micro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.micro-copy {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.hero-cta-wrapper {
  margin-top: 30px;
}

/* Parent's Voices Section */
.parents-section {
  padding: 80px 0;
  background-color: #fff;
}

.parents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.parent-card {
  background: var(--bg-color);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
}

.parent-card::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  color: var(--secondary-color);
  opacity: 0.15;
}

.parent-info {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 10px;
}

.parent-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
}

.parent-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.parent-text {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Enhanced LINE button */
.btn-line-enhanced {
  background: #06C755;
  color: white;
  padding: 20px 40px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-line-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(6, 199, 85, 0.4);
  color: white;
}

/* CTA Note */
.cta-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Footer Utilities */
.footer-logo {
  color: white;
}

.footer-desc {
  margin-top: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* Search Box (in Hero) */
.search-box {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 15px;
}

.search-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  background: transparent;
  border: none;
}

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

.search-inputs {
  display: flex;
  gap: 15px;
}

.search-inputs input,
.search-inputs select {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-inputs input:focus,
.search-inputs select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-inputs .btn-primary {
  padding: 15px 40px;
  border-radius: var(--radius-md);
}

/* Features/Tags Section */
.conditions-section {
  padding: 80px 0;
  background-color: var(--white);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tag-chip {
  padding: 10px 20px;
  background-color: var(--bg-color);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-full);
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-chip i {
  color: var(--accent-color);
}

.tag-chip:hover, .tag-chip.selected {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tag-chip.selected i {
  color: var(--white);
}

/* School Cards Section */
.schools-section {
  padding: 60px 0;
}

/* Filter Bar */
.filter-bar {
  margin-bottom: 40px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-tag {
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.filter-tag:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.filter-tag.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.filter-tag.active i {
  color: var(--white);
}

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

.school-count {
  color: var(--text-light);
  font-size: 0.9rem;
}

.sort-select {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.1);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--white);
  cursor: pointer;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.no-results p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .filter-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-tag {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .filter-meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.school-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

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

.school-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.school-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.school-card:hover .school-card-img img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}

.school-card-body {
  padding: 25px;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.school-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background-color: var(--bg-color);
  color: var(--text-light);
  border-radius: var(--radius-sm);
}

.school-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.school-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.school-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 15px;
}

/* Problem & Solution Blocks */
.empathy-section {
  padding: 60px 0;
  background-color: var(--white);
  text-align: center;
}

.empathy-list p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.problem-section {
  padding: 60px 0;
  background-color: #fffaf0; /* Warm cautionary color */
  text-align: center;
}

.problem-card {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 5px solid #f6ad55;
}

.solution-section {
  padding: 60px 0;
  background-color: #f0fdf4; /* Healing green */
  text-align: center;
}

.solution-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.solution-item {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.solution-item i {
  font-size: 2rem;
  color: #06C755;
  margin-bottom: 15px;
}

/* Future Presentation */
.future-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #2c5282 0%, #4a90e2 100%);
  color: white;
  text-align: center;
}

.future-section h2 {
  color: white;
}

/* Q&A Section */
.qa-section {
  padding: 60px 0;
  background-color: var(--white);
}

.qa-list {
  max-width: 800px;
  margin: 0 auto;
}

.qa-item {
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qa-question {
  background-color: var(--bg-color);
  padding: 20px;
  font-weight: 700;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.qa-question span {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.qa-answer {
  padding: 20px;
  background-color: white;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border-top: 1px solid rgba(0,0,0,0.03);
}

.qa-answer span {
  color: #f97316;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Floating Action Button */
.fab-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--secondary-color);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.5);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
}

.fab-floating:hover {
  transform: scale(1.1) rotate(15deg);
  background-color: var(--secondary-hover);
}

.fab-floating .fab-text {
  position: absolute;
  right: 75px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 15px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  transform: translateX(10px);
}

.fab-floating .fab-text::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary-color);
}

.fab-floating:hover .fab-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* School Detail Page */
.school-hero {
  height: 50vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.school-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.school-hero-content {
  position: relative;
  z-index: 10;
}

.school-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 15px;
}

.info-bar {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 20;
}

.info-item {
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.05);
}

.info-item:last-child {
  border-right: none;
}

.info-item .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.info-item .value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.detail-section {
  padding: 60px 0;
}

.detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.main-content h2 {
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 5px solid var(--secondary-color);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.feature-item {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-item h3 i {
  color: var(--secondary-color);
}

.sidebar-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.sidebar-card h3 {
  margin-bottom: 20px;
  text-align: center;
}

/* Admin Dashboard */
.admin-body {
  background-color: #f1f5f9;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 30px 0;
  flex-shrink: 0;
}

.admin-sidebar .logo {
  color: var(--white);
  padding: 0 30px;
  margin-bottom: 40px;
  display: block;
}

.admin-nav {
  display: flex;
  flex-direction: column;
}

.admin-nav-item {
  padding: 15px 30px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.admin-nav-item:hover, .admin-nav-item.active {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
  border-left: 4px solid var(--secondary-color);
}

.admin-main {
  flex-grow: 1;
  padding: 40px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin-bottom: 30px;
}

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

.admin-table th, .admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.85rem;
}

.status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pending { background: #fee2e2; color: #ef4444; }
.status-contacted { background: #fef9c3; color: #a16207; }
.status-completed { background: #dcfce7; color: #16a34a; }

/* Admin Grid Form */
.admin-form-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1px;
  background-color: #e2e8f0;
  border: 1px solid #e2e8f0;
}

.admin-form-label {
  background-color: #f1f5f9;
  padding: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-form-value {
  background-color: #fff;
  padding: 15px;
}

.admin-form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

/* Animations disabled as a fallback */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Wizard & Recommendation Styles */
.tag-chip-select {
  cursor: pointer;
}

.tag-chip-select span {
  display: inline-block;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: var(--transition);
}

.tag-chip-select input:checked + span {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

#recommend-step-1 label:has(input:checked) {
  border-color: var(--secondary-color) !important;
  background: #fff7ed !important;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.1);
}

#recommended-list > div {
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
  transform: translateX(-10px);
}

#recommended-list > div:nth-child(2) { animation-delay: 0.1s; }
#recommended-list > div:nth-child(3) { animation-delay: 0.2s; }

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Quick Response Templates */
.template-chip {
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.template-chip:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
  }

  .nav-links a::after {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .header-actions.mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .hero-title-sub {
    font-size: 1.2rem !important;
  }

  .hero-message {
    font-size: 1.2rem;
  }
  
  .search-inputs {
    flex-direction: column;
  }

  .schools-grid {
    grid-template-columns: 1fr;
  }
  
  .info-bar {
    grid-template-columns: 1fr 1fr;
  }
  
  .detail-content {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .empathy-section h2 {
    font-size: 1.4rem;
  }

  .cta-section h2 {
    font-size: 1.4rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .stats-item {
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
  }
}

/* Comparison & Floating Buttons */
.compare-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.line-fab:hover {
  transform: scale(1.1);
}

.line-fab:hover .fab-text {
  opacity: 1;
  visibility: visible;
}

#comparison-bar {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ========================================
   NEW: Empathy-First Design Components
   ======================================== */

/* Symptom Selection Buttons */
.symptom-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 30px;
}

.symptom-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  text-decoration: none;
}

.symptom-btn:hover, .symptom-btn.selected {
  border-color: var(--secondary-color);
  background: #EBF4FF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.symptom-btn i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Empathy Section */
.empathy-section {
  padding: 80px 0;
  background: var(--bg-color);
  text-align: center;
}

.empathy-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.empathy-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Story Cards (Horizontal Scroll) */
.story-section {
  padding: 80px 0;
  background: var(--white);
}

.story-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.story-scroll::-webkit-scrollbar {
  height: 6px;
}

.story-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.story-card {
  min-width: 300px;
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  scroll-snap-align: start;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

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

.story-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-label.before {
  background: #fee2e2;
  color: #dc2626;
}

.story-label.after {
  background: #dcfce7;
  color: #16a34a;
}

.story-change {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.95rem;
}

.story-change .arrow {
  color: var(--accent-color);
  font-weight: 700;
}

/* Compatibility Badge */
.compat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #EBF4FF, #dbeafe);
  color: var(--secondary-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.compat-badge i {
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #EBF4FF 0%, var(--bg-color) 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 40px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--white);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-soft:hover {
  background: #EBF4FF;
}

/* Diagnosis Page */
.diagnosis-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-color);
}

.progress-bar {
  width: 100%;
  max-width: 480px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 40px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--secondary-color);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.diagnosis-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.diagnosis-card h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  text-align: center;
}

.diagnosis-card p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
}

.diagnosis-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagnosis-option {
  padding: 16px 20px;
  background: var(--bg-color);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  text-align: left;
}

.diagnosis-option:hover, .diagnosis-option.selected {
  border-color: var(--secondary-color);
  background: #EBF4FF;
}

/* Result Page */
.result-type-card {
  background: linear-gradient(135deg, #EBF4FF, #dbeafe);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
}

.result-type-card .type-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.result-type-card .type-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.result-school-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.result-school-card .school-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-school-card .reason {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
  padding: 10px;
  background: var(--bg-color);
  border-radius: 8px;
}

/* Diff Tags */
.diff-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #EBF4FF;
  color: var(--secondary-color);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 2px;
}

/* "Why it fits" Section */
.why-fits {
  padding: 40px 0;
}

.why-fits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-color);
  border-radius: var(--radius-md);
}

.why-item i {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-top: 2px;
}

.why-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Updated button for public pages */
.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

@media (max-width: 768px) {
  .symptom-buttons {
    max-width: 100%;
  }
  .diagnosis-card {
    padding: 24px;
  }
  .story-card {
    min-width: 260px;
  }
}

/* ========================================
   Micro-interactions & Animations
   ======================================== */

/* CTA Pulse Effect */
.btn-cta {
  animation: subtlePulse 3s ease-in-out infinite;
}

.btn-cta:hover {
  animation: none;
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(74, 144, 226, 0.5); }
}

/* Result Card Entrance */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Diagnosis Option Click Ripple */
.diagnosis-option {
  position: relative;
  overflow: hidden;
}

.diagnosis-option::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 10%, transparent 60%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.diagnosis-option.selected::after {
  transform: scale(2.5);
  opacity: 1;
}

/* School Card Hover Shine */
.school-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: none;
}

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

.school-card:hover::after {
  left: 100%;
  transition: left 0.6s ease;
}

/* Story Card Scale on Hover */
.story-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* LINE Button Glow */
.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4) !important;
}

/* Smooth page load */
body {
  animation: pageLoad 0.5s ease;
}

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

/* ========================================
   Utility Classes & Layout Fixes
   ======================================== */

/* Fix for Header Overlap */
.header {
    z-index: 10000 !important; /* Ensure it's above everything */
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important; /* Almost solid for better legibility */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Spacing Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-50 { margin-top: 50px !important; }
.mt-80 { margin-top: 80px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-50 { margin-bottom: 50px !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-sm { font-size: 0.85rem !important; }
.text-md { font-size: 1.1rem !important; }
.text-lg { font-size: 1.2rem !important; }
.text-xl { font-size: 1.5rem !important; }
.text-2xl { font-size: 2.2rem !important; }

.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

.lh-1-2 { line-height: 1.2 !important; }
.lh-1-3 { line-height: 1.3 !important; }
.lh-1-6 { line-height: 1.6 !important; }
.lh-1-7 { line-height: 1.7 !important; }
.lh-1-8 { line-height: 1.8 !important; }

/* Responsive Line Breaks */
@media (max-width: 768px) {
  .pc-br { display: none !important; }
  .sp-br { display: inline !important; }
}
@media (min-width: 769px) {
  .pc-br { display: inline !important; }
  .sp-br { display: none !important; }
}

/* Color & Background Utilities */
.text-white { color: var(--white) !important; }
.text-light { color: var(--text-light) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

.bg-white { background-color: var(--white) !important; }
.bg-empathy-light { background: #F0FDF4 !important; border: 1px solid #bbf7d0 !important; }
.bg-empathy-yellow { background: #fffbeb !important; border: 1px solid #fde68a !important; }
.bg-light-blue { background: #f8fafc !important; }
.bg-gray-card { background: #f8fafc; border: 1px solid #e2e8f0; }

.diff-tag-yellow { background: #fbbf24 !important; color: #fff !important; }
.border-left-yellow { border-left: 4px solid #fbbf24 !important; }

/* Article & Content Layouts */
.article-container { 
    max-width: 850px; 
    margin: 0 auto; 
    padding: 120px 20px 60px; 
}

.article-card { 
    background: var(--white); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: var(--shadow-md); 
}

.article-hero { 
    background: linear-gradient(135deg, #ebf4ff 0%, #fff 100%); 
    padding: 50px 40px; 
    border-bottom: 1px solid #e2e8f0; 
}

.article-body { 
    padding: 40px; 
}

/* Common Flex Utilities */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.gap-8 { gap: 8px !important; }
.gap-10 { gap: 10px !important; }
.gap-12 { gap: 12px !important; }
.gap-20 { gap: 20px !important; }

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Diagnosis Banner */
.diagnosis-banner {
  padding: 60px 0;
}

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

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    padding: 120px 20px 60px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 1.1rem;
  }
  .hero-message {
    font-size: 1.2rem;
  }
}

/* ========================================
   CV Optimization Components
   ======================================== */

/* Floating CTA (Mobile Only, 50% scroll) */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: none; /* Controlled by JS */
    animation: slideUp 0.4s ease;
}

@media (max-width: 768px) {
    .floating-cta.active {
        display: block;
    }
}

.floating-cta .btn-cta {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
    border-radius: 12px;
    justify-content: center;
}

/* Exit Intent / Timed Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.exit-popup.active {
    display: flex;
}

.exit-popup-content {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.exit-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

/* Trust Area & Badges */
.trust-area {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.trust-badge-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Dual CTA Sequence (result.html) */
.cta-sequence {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.cta-step-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.cta-box-light {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}

.cta-box-heavy {
    background: var(--bg-color);
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}

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

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


/* UI Refinement: Margin, Shadows, Image sizing */
.emotion-img { width: 92%; margin: 20px auto; display: block; border-radius: 12px; filter: brightness(0.9); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.emotion-caption { text-align: center; font-size: 14px; font-weight: 700; color: #555; margin-bottom: 5px; }
.floating-cta { position: fixed; bottom: 10px; left: 5%; width: 90%; z-index: 999; transform: translateY(150%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.floating-cta.active { transform: translateY(0); }
.floating-cta .btn { width: 100%; border-radius: 12px; padding: 14px; font-weight: 700; }
.result-wrap { max-width: 600px; margin: 0 auto; padding: 24px 16px; }
.result-wrap > div, .result-wrap > section { margin-bottom: 32px; }
.result-wrap h2 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.result-wrap h3 { font-size: 18px; margin-bottom: 10px; }
.result-wrap p { font-size: 15px; line-height: 1.7; color: #333; }
.result-warning { background: #fff7f7; padding: 16px; border-radius: 10px; font-size: 14px; line-height: 1.6; border-left: 4px solid #ff6b6b; margin-bottom: 28px; }
.line-box { background: #f0fff4; border: 2px solid #06C755; padding: 18px; border-radius: 12px; }
.cta-area { text-align: center; margin-bottom: 60px; }
.btn-main, .btn-main-action { width: 100%; padding: 16px; background: #4A90E2; color: #fff; border-radius: 12px; font-size: 16px; font-weight: bold; margin-top: 12px; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: transform 0.1s; }
.btn-main:active, .btn-main-action:active { transform: scale(0.97); }
.btn-cta-large, .btn-line-enhanced { box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: transform 0.1s; }
.btn-cta-large:active, .btn-line-enhanced:active { transform: scale(0.97); }
.sub-note { font-size: 12px; color: #777; margin-top: 8px; display: block; }


/* School Trust Section (Swiper Version) */
.school-trust-section {
    overflow: hidden; /* Prevent horizontal scroll from swiper */
}
.school-trust-swiper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 50px !important; /* Extra bottom padding for pagination */
}
.school-trust-card {
    text-align: center;
    padding: 24px 16px;
    background: #f8fafc;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: auto;
}
.school-trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    background: #fff;
}
.school-trust-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
/* School Trust Section */
.school-trust-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.school-trust-tag-main {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px;
    text-align: center;
}
.school-trust-img {
    width: 100%;
    height: 140px;
    margin: 20px 0 15px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.school-trust-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.school-trust-name {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.school-trust-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}
;
    font-weight: 700;
}

/* Swiper Navigation Customization */
.school-trust-swiper .swiper-button-next,
.school-trust-swiper .swiper-button-prev {
    color: var(--secondary-color);
    transform: scale(0.7);
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}
.school-trust-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .school-trust-swiper {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    .school-trust-img {
        width: 80px;
        height: 80px;
    }
}

/* ===============================
   SCHOOL DETAIL PAGES (Responsive Grids)
   =============================== */
.school-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.school-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.school-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.school-courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.school-admissions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.school-voices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.school-stats-flex {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}


/* ===============================
   RESPONSIVE: PC/SP Line Break Control
   =============================== */
.pc-br {
  display: inline;
}

/* ===============================
   HERO OPTIMIZED VERSION
   =============================== */
.hero-sub {
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.hero-title-sub {
  font-size: 1.8rem;
  display: inline-block;
  margin-top: 10px;
}

.hero-cta-inner {
  max-width: 480px;
  margin: 0 auto;
}

.hero-trust {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: center;
  opacity: 0.9;
  flex-wrap: wrap;
}

/* ===============================
   MOBILE OPTIMIZATION (All Sections)
   =============================== */
@media (max-width: 768px) {

  /* PC用改行をスマホでは非表示 */
  .pc-br {
    display: none;
  }

  /* 全体の可読性向上 */
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  /* ヒーロー */
  .hero {
    min-height: auto;
    padding: 110px 16px 50px;
  }

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

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-bottom: 15px;
  }

  .hero-title br.sp-br {
    display: block;
  }

  .hero-title-sub {
    font-size: 1.25rem;
  }

  .hero-sub {
    font-size: 0.85rem;
    margin-bottom: 8px !important;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: keep-all;
    margin-bottom: 30px !important;
  }

  .hero-trust {
    font-size: 0.75rem;
    gap: 10px;
  }

  .hero-sub-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .sub-cta {
    width: 100%;
    min-width: auto;
    padding: 14px;
    font-size: 0.95rem;
  }

  /* ボタンサイズ調整 */
  .btn-cta-large {
    padding: 16px 24px;
    font-size: 1.05rem;
  }

  .main-cta {
    padding: 18px 20px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  /* セクション共通の余白縮小 */
  .empathy-section,
  .problem-section,
  .solution-section,
  .story-section,
  .parents-section,
  .qa-section {
    padding: 40px 0;
  }

  .future-section {
    padding: 40px 0;
  }

  .cta-section {
    padding: 50px 0;
  }

  .diagnosis-banner {
    padding: 30px 0;
  }

  /* セクションタイトル */
  .section-title {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    word-break: keep-all;
  }

  /* 共感セクション */
  .empathy-section h2 {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .empathy-highlight {
    font-size: 1.1rem;
  }

  .empathy-list p {
    font-size: 1rem;
  }

  /* 問題セクション */
  .problem-card {
    padding: 20px;
    margin: 20px auto;
  }

  /* 解決セクション */
  .solution-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solution-item {
    padding: 20px;
  }

  /* インラインスタイルの上書き（カード内パディング縮小） */
  .knowledge-section .bg-light-blue {
    padding: 24px 16px !important;
  }

  .diagnosis-banner .bg-white {
    padding: 30px 20px !important;
  }

  /* CTAセクション */
  .cta-section h2 {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .cta-section p {
    font-size: 0.95rem;
  }

  /* テキストユーティリティの上書き */
  .text-2xl {
    font-size: 1.5rem !important;
  }

  .text-xl {
    font-size: 1.2rem !important;
  }

  .text-lg {
    font-size: 1.05rem !important;
  }

  /* 保護者カード */
  .parents-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .parent-card {
    padding: 20px;
  }

  /* Q&A */
  .qa-question, .qa-answer {
    padding: 16px;
    font-size: 0.9rem;
  }

  /* フッター */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer {
    padding: 40px 0 20px;
  }

  /* 感情画像 */
  .emotion-img {
    width: 100%;
  }

  /* 学校個別ページ用 上書き */
  .school-grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .school-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .school-header-flex {
    flex-direction: column;
    gap: 20px;
  }
  .school-header-flex > div {
    width: 100%;
  }
  .school-header-flex .btn-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .school-courses-grid,
  .school-admissions-grid,
  .school-voices-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .school-stats-flex {
    flex-direction: column;
    gap: 15px;
  }
}


/* --- CV Optimization Elements --- */
.tag-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag-select button {
    padding: 12px 20px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.tag-select button:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.tag-select button.active {
    border-color: var(--primary-color);
    background: #eff6ff;
    color: var(--primary-color);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: #10b981;
}

/* --- School Trust Carousel (Phase 4) --- */
.school-trust-section {
    overflow: hidden;
}

.school-trust-swiper {
    padding: 20px 0 50px !important;
}

.school-trust-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
}

.school-trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.school-trust-tag-main {
    background: #f0fdf4;
    color: #059669;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 15px;
    border-bottom: 1px solid #d1fae5;
}

.school-trust-img {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.school-trust-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-trust-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    padding: 20px 20px 10px;
}

.school-trust-desc {
    font-size: 0.9rem;
    color: #64748b;
    padding: 0 20px 25px;
    line-height: 1.6;
    flex: 1;
}

.swiper-pagination-bullet-active {
    background: #059669 !important;
}

.swiper-button-next, .swiper-button-prev {
    color: #059669 !important;
}

@media (max-width: 768px) {
    .school-trust-card {
        margin: 0 10px;
    }
}

/* ==========================================================================
   Premium Search & Modal Features UI (Refactored)
   ========================================================================== */

/* Keyframe Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes premiumPulse {
  0% {
    box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.6), 0 4px 6px rgba(0,0,0,0.05);
    background-color: rgba(240, 253, 244, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.25), 0 10px 25px rgba(16, 185, 129, 0.15);
    background-color: rgba(240, 253, 244, 0.9);
    border-color: #10b981;
  }
  100% {
    box-shadow: 0 0 0 0px rgba(16, 185, 129, 0), 0 4px 6px rgba(0,0,0,0.05);
    background-color: rgba(245, 247, 250, 0);
  }
}

/* Feature Chip UI */
.feature-chip {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.feature-chip:hover {
  background: #f0fdf4 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.feature-chip.selected {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.25);
  transform: translateY(-1px);
}

.feature-chip.selected i {
  color: #ffffff !important;
}

.feature-chip:active {
  transform: translateY(0);
}

/* Advanced Filters Premium Highlight */
#advanced-filters {
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

#advanced-filters.premium-highlight-active {
  border-color: #10b981 !important;
  border-radius: 16px;
  animation: premiumPulse 2.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Reduced Motion Compatibility */
@media (prefers-reduced-motion: reduce) {
  .feature-chip,
  #advanced-filters,
  .modal-content,
  .modal-overlay {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Leads-off School Card styles */
.school-card.leads-off-card {
  opacity: 0.4 !important;
}

.btn-cta-gray {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  animation: none !important;
  box-shadow: none !important;
}
.btn-cta-gray:hover {
  background: #e2e8f0 !important;
  color: #475569 !important;
}

/* 769px〜1024pxの中画面（タブレットや小型PC）において、ヘッダーにリンクが6個ある場合の表示崩れを防ぐ */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links {
    gap: 12px; /* リンク間の余白を小さく */
  }
  .nav-links a {
    font-size: 0.85rem; /* 文字サイズを少し小さく */
  }
  .nav-request {
    padding: 6px 12px !important; /* 資料請求ボタンのサイズを縮小 */
  }
}



