/* ========================================
   TOFAS Landing Page - Soft Educational Design
   Nhẹ nhàng, giáo dục, hiện đại
   ======================================== */

/* フォント定義 */
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/Cairo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/Cairo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/Cairo-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/Cairo-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

/* CSS変数 - Score Report Color Palette */
:root {
  /* Primary - Score Report Navy */
  --navy: #00008B;
  --navy-light: #1a1a9f;
  --navy-dark: #000066;
  --navy-soft: #e6e6f5;

  /* Accent - Score Report Pink */
  --pink: #E4007F;
  --pink-dark: #c20069;
  --pink-light: #ff4da6;
  --pink-soft: #ffeef7;

  /* Educational accent - Teal for variety */
  --teal: #0891b2;
  --teal-soft: #ecfeff;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #fafbfc;
  --gray-100: #f4f6f8;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;

  --font: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1100px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 139, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 139, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 139, 0.12);
  --shadow-pink: 0 8px 30px rgba(228, 0, 127, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   Animations
   ======================================== */

/* 言語切り替え中はアニメーション・トランジションを無効化 */
html.switching-lang,
html.switching-lang *,
html.switching-lang *::before,
html.switching-lang *::after {
  animation: none !important;
  transition: none !important;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(228, 0, 127, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(228, 0, 127, 0.6);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

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

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpBounce {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px);
  }
  80% {
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flipInX {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
  }
  40% {
    transform: perspective(400px) rotateX(-10deg);
  }
  70% {
    transform: perspective(400px) rotateX(5deg);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateX(0);
  }
}

@keyframes swoopIn {
  0% {
    opacity: 0;
    transform: translateX(-80px) rotate(-8deg) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0) scale(1);
  }
}

@keyframes swoopInRight {
  0% {
    opacity: 0;
    transform: translateX(80px) rotate(8deg) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0) scale(1);
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes confettiBurst {
  0% {
    opacity: 1;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) rotate(360deg) translateY(-30px);
  }
}

/* Scroll reveal animation class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card animation */
.stagger-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Slide-in variants */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Pop-in for badges */
.pop-in {
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pop-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* 3D tilt card effect */
.tilt-card {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  perspective: 800px;
}

.tilt-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 139, 0.15);
}

/* Count-up number animation */
.count-up {
  display: inline-block;
  transition: all 0.3s ease;
}

.count-up.animate-in {
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Hero entrance animation */
.hero-entrance {
  opacity: 0;
  transform: translateY(25px);
  animation: heroFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flow chart step-by-step animation */
.flow-step {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow-step.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Flow arrow grow animation */
.flow-arrow-animate {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow-arrow-animate.animate-in {
  transform: scaleY(1);
}

/* Flow branch slide animation */
.branch-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.branch-slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.branch-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.branch-slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Partner logo entrance */
.partner-pop {
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.partner-pop.animate-in {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Endorsement box dramatic entrance */
.endorsement-reveal {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.endorsement-reveal.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* CTA box bounce entrance */
.cta-bounce {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-bounce.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero bullet stagger */
.bullet-stagger {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bullet-stagger.animate-in {
  opacity: 1;
  transform: translateX(0);
}

html[dir="rtl"] .bullet-stagger {
  transform: translateX(20px);
}

html[dir="rtl"] .bullet-stagger.animate-in {
  transform: translateX(0);
}

/* Gradient text shimmer */
.text-shimmer {
  background-size: 200% auto;
  animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* University image zoom reveal */
.zoom-reveal {
  opacity: 0;
  transform: scale(1.1);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.zoom-reveal.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  line-height: 1.7;
  color: var(--gray-600);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   ボタン - Soft & Friendly
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-pink {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-pink);
  animation: glow 3s ease-in-out infinite;
}

.btn-pink:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(228, 0, 127, 0.35);
  animation: none;
}

.btn-pink:active {
  transform: translateY(-1px) scale(1);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 139, 0.25);
}

.btn-navy:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 139, 0.35);
}

.btn-navy:active {
  transform: translateY(-1px) scale(1);
}

.btn-lg {
  padding: 1.125rem 3rem;
  font-size: 1.125rem;
}

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

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================================
   ヘッダー - Clean & Minimal
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

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

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

.logo img {
  height: 32px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--pink);
}

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

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(228, 0, 127, 0.25);
}

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

.nav-links .nav-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 0, 127, 0.35);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-toggle:hover {
  transform: scale(1.1);
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--navy-soft) 100%);
  z-index: 999;
  padding: 2rem;
  transform: translateX(100%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
  padding-bottom: 4rem;
}

.mobile-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.mobile-link:hover {
  background: var(--white);
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.mobile-cta {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white) !important;
  text-align: center;
  margin-top: 1rem;
  border-radius: 50px;
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  box-shadow: var(--shadow-pink);
}

.mobile-cta:hover {
  transform: scale(1.02) !important;
}

/* Mobile Language Switcher - 2 buttons side by side */
.mobile-lang-switcher {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mobile-lang-btn {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  color: var(--gray-500);
  cursor: pointer;
  font-family: var(--font);
}

.mobile-lang-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.mobile-lang-btn:not(.active):hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ========================================
   ヒーローセクション - Soft & Inviting
   ======================================== */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--navy-soft) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--pink-soft) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--teal-soft) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 15s infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle:nth-child(2) {
  left: 30%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 18s;
  background: var(--navy);
}

.particle:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
  animation-duration: 14s;
}

.particle:nth-child(4) {
  left: 70%;
  width: 8px;
  height: 8px;
  animation-delay: 1s;
  animation-duration: 16s;
  background: var(--navy);
}

.particle:nth-child(5) {
  left: 90%;
  width: 12px;
  height: 12px;
  animation-delay: 3s;
  animation-duration: 20s;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

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

.tofas-logo {
  max-width: 180px;
  margin: 0 auto 2rem;
}

.hero-title {
  margin-bottom: 2rem;
}

.title-pink {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.title-navy {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(135deg, var(--white) 0%, #fdf2f8 100%);
  border-radius: var(--radius-xl);
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 700px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(30, 58, 95, 0.08);
  transition: var(--transition);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 3s infinite;
  z-index: 1;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(30, 58, 95, 0.15);
}

.hero-card-asterisk {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 40px;
  height: 40px;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(30, 58, 95, 0.12));
}

.hero-card-text {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.tagline-text {
  text-align: center;
}

.tagline-small {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1.5px;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.tagline-big {
  display: none;
}

.tagline-medium {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
  line-height: 1.3;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-bullets {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.hero-bullets li:hover {
  transform: translateX(5px);
}

.hero-bullets li:last-child {
  margin-bottom: 0;
}

.bullet-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(228, 0, 127, 0.3);
}

.bullet-check svg {
  width: 12px;
  height: 12px;
  color: var(--white);
}

.hero-bullets li > span:last-child {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

/* ========================================
   セクション共通
   ======================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.section-title.center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

/* ========================================
   ジャーニーセクション
   ======================================== */
.journey-section {
  background: var(--white);
}

.journey-header {
  margin-bottom: 1.5rem;
}

.journey-cta {
  text-align: center;
  margin-bottom: 2rem;
}

.flow-chart {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.flow-item {
  text-align: center;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.flow-item:hover {
  transform: scale(1.02);
}

.flow-completed {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.flow-question {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 139, 0.25);
  font-size: 1.1rem;
}

.flow-arrow {
  width: 3px;
  height: 30px;
  background: var(--navy);
  margin: 0.75rem auto;
  border-radius: 2px;
}

.flow-branches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.flow-branch {
  text-align: center;
}

.branch-label {
  display: inline-block;
  padding: 0.625rem 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 139, 0.25);
  transition: var(--transition);
}

.branch-label:hover {
  transform: scale(1.05);
}

.branch-connector {
  width: 3px;
  height: 24px;
  background: var(--navy);
  margin: 0 auto 0.5rem;
  border-radius: 2px;
}

.branch-list {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.branch-list li {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.5rem 0;
  transition: var(--transition);
}

.branch-list li:hover {
  color: var(--pink);
  transform: translateX(3px);
}

.branch-list--sync:hover li {
  color: var(--pink);
  transform: translateX(3px);
}

/* ========================================
   証明書セクション
   ======================================== */
.certificate-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.certificate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.certificate-image {
  max-width: 450px;
  transition: var(--transition);
}

.certificate-image:hover {
  transform: rotate(-2deg) scale(1.02);
}

.certificate-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.cert-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(228, 0, 127, 0.25);
}

.cert-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1rem;
}

.cert-certified {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 0.25rem;
}

.cert-orgs {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cert-value {
  font-size: 1.05rem;
  color: var(--gray-600);
  font-style: italic;
}

/* ========================================
   ベネフィットセクション
   ======================================== */
.benefits-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.benefits-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(228, 0, 127, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.benefits-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.benefits-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.highlight {
  color: var(--pink-light);
}

.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-bounce);
  border: 1px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(228, 0, 127, 0.2);
  border-color: var(--pink);
}

.benefit-card:hover .benefit-icon {
  animation: bounce 0.6s ease;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--navy-soft) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
  animation: float 4s ease-in-out infinite;
}

.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  animation: wiggle 0.5s ease-in-out, popIn 0.4s ease;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  color: var(--pink);
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon svg {
  color: var(--white);
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.benefit-card p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   アップグレードセクション
   ======================================== */
.upgrade-section {
  background: var(--white);
}

.upgrade-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.upgrade-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upgrade-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--gray-50);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.upgrade-feature:hover {
  background: var(--white);
  border-color: var(--navy-soft);
  transform: translateX(8px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.upgrade-feature:hover .feature-icon {
  transform: rotate(-5deg) scale(1.1);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.upgrade-feature strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.upgrade-feature span {
  font-size: 1rem;
  color: var(--gray-500);
}

.upgrade-image {
  text-align: center;
}

.upgrade-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  margin: 0 auto;
  transition: var(--transition);
}

.upgrade-image img:hover {
  transform: scale(1.03) rotate(1deg);
}

.cta-box {
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--white) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  border: 2px solid var(--pink);
  transition: var(--transition);
  text-align: center;
}

.cta-box:hover {
  box-shadow: var(--shadow-pink);
}

.cta-box h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
}

.price {
  font-size: 2.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-note {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.next-steps {
  text-align: center;
  margin-bottom: 2.5rem;
}

.next-steps-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.next-steps-desc {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
  background: var(--gray-100);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
}

/* ========================================
   大学セクション
   ======================================== */
.university-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.university-card {
  margin-bottom: 2.5rem;
}

.university-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.university-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.university-image-wrapper:hover .university-image {
  transform: scale(1.05);
}

.university-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  transition: var(--transition);
}

.university-image-wrapper:hover .university-badge {
  transform: scale(1.1);
}

.university-badge img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.university-tagline h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pink);
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--white) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(228, 0, 127, 0.15);
}

.university-renowned {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.university-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(8px);
  border-color: var(--pink);
  box-shadow: var(--shadow);
}

.feature-item .feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  background: none;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.feature-item:hover .feature-icon {
  animation: bounce-spin 0.6s ease;
}

@keyframes bounce-spin {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.3) rotate(-15deg); }
  50% { transform: scale(0.9) rotate(10deg); }
  70% { transform: scale(1.15) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.feature-item .feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.feature-item span {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.endorsement-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.endorsement-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(228, 0, 127, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.endorsement-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--pink-light);
  position: relative;
}

.endorsement-box p {
  font-size: 1.25rem;
  line-height: 1.7;
  opacity: 0.95;
  position: relative;
}

.university-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 4px 15px rgba(228, 0, 127, 0.3);
}

.university-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(228, 0, 127, 0.4);
  color: var(--white);
}

/* ========================================
   タイムラインセクション
   ======================================== */
.timeline-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--teal-soft) 100%);
}

.timeline-steps {
  max-width: 520px;
  margin: 2.5rem auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-left: 3px solid var(--gray-200);
  padding-left: 2rem;
  margin-left: 1.25rem;
  position: relative;
  transition: var(--transition);
}

.timeline-item:hover {
  border-left-color: var(--pink);
}

.timeline-item:last-child {
  border-left-color: transparent;
}

.timeline-num {
  position: absolute;
  left: -1.25rem;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(228, 0, 127, 0.3);
  transition: var(--transition);
}

.timeline-item:hover .timeline-num {
  transform: scale(1.15);
}

.timeline-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.timeline-text span {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.accessible-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.accessible-box p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

/* ========================================
   リテストセクション
   ======================================== */
.retest-section {
  background: var(--gray-50);
}

.retest-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.retest-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.retest-header p {
  font-size: 1.25rem;
  color: var(--pink);
  font-weight: 700;
}

.retest-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.retest-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-bounce);
}

.retest-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 139, 0.12);
  border-color: var(--pink);
}

.retest-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--pink-soft) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
  animation: float 4s ease-in-out infinite;
}

.retest-card:hover .retest-icon {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  animation: wiggle 0.5s ease-in-out, popIn 0.4s ease;
}

.retest-icon svg {
  width: 28px;
  height: 28px;
  color: var(--navy);
  transition: var(--transition);
}

.retest-card:hover .retest-icon svg {
  color: var(--white);
}

.retest-card:nth-child(2) .retest-icon {
  animation-delay: 0.3s;
}

.retest-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.retest-card p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Purchase CTA */
.retest-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ========================================
   モック試験セクション
   ======================================== */
.mock-exam-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.mock-exam-section::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.mock-exam-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mock-exam-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.mock-exam-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.mock-exam-section .btn-outline {
  border-color: var(--white);
  color: var(--white);
  padding: 1rem 2.5rem;
}

.mock-exam-section .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-3px) scale(1.02);
}

/* ========================================
   パートナーセクション
   ======================================== */
.partners-section {
  background: var(--white);
  text-align: center;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  margin: 2.5rem 0;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100px;
  transition: var(--transition);
}

.partner-item:hover {
  transform: scale(1.05);
}

.partner-item img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition);
}

.partner-item:hover img {
  filter: grayscale(0%);
}

.partner-sprix .sprix-icon {
  height: 70px;
}

.partner-sprix .sprix-text {
  height: 13px;
  margin-top: 0.25rem;
}

.partner-item:last-child {
  margin-left: -1rem;
}

.partner-item:last-child img {
  height: 90px;
}

.partners-description {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   フッター - Gradient Navy to Pink
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 40%, #4a0050 100%);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(228, 0, 127, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(228, 0, 127, 0.1) 0%, transparent 30%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-centered {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 44px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.footer-contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}

.footer-contact-item:hover {
  background: rgba(228, 0, 127, 0.15);
  border-color: rgba(228, 0, 127, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--pink-light);
  flex-shrink: 0;
}

button.footer-contact-item {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: inherit;
}

button.footer-contact-item.copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

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

.footer-social a:hover {
  background: var(--pink);
  border-color: var(--pink);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(228, 0, 127, 0.4);
}

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

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

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

/* ========================================
   レスポンシブ - タブレット (768px)
   ======================================== */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  .hero {
    padding: 9rem 0 5rem;
  }

  .tofas-logo {
    max-width: 220px;
  }

  .title-pink {
    font-size: 1.85rem;
  }

  .title-navy {
    font-size: 1.35rem;
  }

  .hero-card {
    max-width: 700px;
    margin: 0 auto 2rem;
    flex-direction: row;
  }

  .hero-card-text {
    flex: 1;
    padding: 2.5rem;
    text-align: left;
  }

  .hero-card-image {
    width: 45%;
    flex-shrink: 0;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  }

  .hero-card-asterisk {
    width: 46px;
    height: 46px;
    top: -18px;
    left: -18px;
  }

  .hero-card-image img {
    height: 100%;
    min-height: 220px;
  }

  .tagline-text {
    text-align: left;
  }


  .tagline-small,
  .tagline-medium {
    font-size: 1.35rem;
  }

  .section {
    padding: 6rem 0;
  }

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

  .certificate-content {
    flex-direction: row;
    text-align: left;
    gap: 3.5rem;
  }

  .certificate-image {
    max-width: 500px;
  }

  .upgrade-image img {
    max-width: 450px;
  }

  .benefits-grid {
    flex-direction: row;
  }

  .benefit-card {
    flex: 1;
  }

  .flow-branches {
    grid-template-columns: 1fr 1fr;
  }

  .upgrade-content {
    flex-direction: row;
    align-items: center;
  }

  .upgrade-features {
    flex: 1;
  }

  .upgrade-image {
    flex: 1;
  }

  .cta-box {
    padding: 2.5rem;
  }

  .university-image {
    height: 300px;
  }

  .retest-grid {
    flex-direction: row;
  }

  .retest-card {
    flex: 1;
  }


  .partners-grid {
    gap: 4rem;
  }

  .partner-item {
    height: 130px;
  }

  .partner-item img {
    height: 90px;
  }

  .partner-sprix .sprix-icon {
    height: 90px;
  }

  .partner-sprix .sprix-text {
    height: 15px;
  }

  .partner-item:last-child {
    margin-left: -1.5rem;
  }

  .partner-item:last-child img {
    height: 115px;
  }

  .footer {
    padding: 5rem 0 2.5rem;
  }

  .footer-contact-row {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

/* ========================================
   レスポンシブ - デスクトップ (1024px)
   ======================================== */
@media (min-width: 1024px) {
  .logo img {
    height: 42px;
  }

  .nav-links {
    gap: 3rem;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .hero {
    padding: 10rem 0 6rem;
  }

  .tofas-logo {
    max-width: 280px;
  }

  .title-pink {
    font-size: 2.5rem;
  }

  .title-navy {
    font-size: 1.5rem;
  }

  .hero-card {
    max-width: 750px;
  }

  .hero-card-asterisk {
    width: 52px;
    height: 52px;
    top: -20px;
    left: -20px;
  }

  .hero-card-text {
    padding: 3rem;
  }

  .tagline-small,
  .tagline-medium {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-bullets {
    max-width: 750px;
    padding: 2.5rem;
  }

  .hero-bullets li > span:last-child {
    font-size: 1.1rem;
  }

  .section {
    padding: 7rem 0;
  }

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

  .section-subtitle {
    font-size: 1.2rem;
  }

  .flow-item {
    font-size: 1.1rem;
    padding: 1.125rem 2rem;
  }

  .branch-label {
    font-size: 1.1rem;
  }

  .branch-list li {
    font-size: 1.1rem;
  }

  .certificate-image {
    max-width: 560px;
  }

  .upgrade-image img {
    max-width: 500px;
  }

  .cert-title {
    font-size: 2.5rem;
  }

  .cert-certified {
    font-size: 1.1rem;
  }

  .cert-orgs {
    font-size: 1.25rem;
  }

  .cert-value {
    font-size: 1.15rem;
  }

  .benefits-header h2 {
    font-size: 2rem;
  }

  .benefit-title {
    font-size: 1.25rem;
  }

  .benefit-card p {
    font-size: 1.05rem;
  }

  .upgrade-title {
    font-size: 2rem;
  }

  .upgrade-feature strong {
    font-size: 1.2rem;
  }

  .upgrade-feature span {
    font-size: 1.05rem;
  }

  .cta-box h3 {
    font-size: 2rem;
  }

  .price {
    font-size: 2.5rem;
  }

  .university-tagline h3 {
    font-size: 1.35rem;
  }

  .feature-item strong {
    font-size: 1.2rem;
  }

  .feature-item span {
    font-size: 1.05rem;
  }

  .endorsement-box h3 {
    font-size: 1.5rem;
  }

  .endorsement-box p {
    font-size: 1.35rem;
  }

  .university-image {
    height: 360px;
  }

  .timeline-text strong {
    font-size: 1.15rem;
  }

  .timeline-text span {
    font-size: 1rem;
  }

  .accessible-box p {
    font-size: 1.2rem;
  }

  .retest-header h2 {
    font-size: 2rem;
  }

  .retest-header p {
    font-size: 1.25rem;
  }

  .retest-card h3 {
    font-size: 1.3rem;
  }

  .retest-card p {
    font-size: 1.1rem;
  }


  .mock-exam-content h2 {
    font-size: 2.25rem;
  }

  .mock-exam-content p {
    font-size: 1.2rem;
  }

  .partners-description {
    font-size: 1.15rem;
  }

  .partner-item {
    height: 160px;
  }

  .partner-item img {
    height: 110px;
  }

  .partner-sprix .sprix-icon {
    height: 110px;
  }

  .partner-sprix .sprix-text {
    height: 18px;
  }

  .partner-item:last-child {
    margin-left: -2rem;
  }

  .partner-item:last-child img {
    height: 140px;
  }

}

/* ========================================
   Button Ripple Effect
   ======================================== */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========================================
   Language Switcher
   ======================================== */
.lang-switcher {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

@media (min-width: 768px) {
  .lang-switcher {
    display: flex;
  }
}

.lang-btn {
  background: transparent;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  border-color: var(--pink);
  color: var(--white);
}

/* ========================================
   RTL Support - Arabic
   ======================================== */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  text-align: right;
}

/* Header RTL */
html[dir="rtl"] .header {
  direction: rtl;
}

html[dir="rtl"] .nav {
  flex-direction: row;
}

html[dir="rtl"] .logo {
  order: 0;
}

html[dir="rtl"] .nav-links {
  order: 1;
  flex-direction: row-reverse;
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .lang-switcher {
  order: 2;
  margin-left: 0;
  margin-right: 1rem;
}

html[dir="rtl"] .mobile-toggle {
  order: 3;
}

/* Mobile menu RTL */
html[dir="rtl"] .mobile-menu {
  transform: translateX(-100%);
}

html[dir="rtl"] .mobile-menu.active {
  transform: translateX(0);
}

html[dir="rtl"] .mobile-link:hover {
  transform: translateX(-8px);
}

/* Hero RTL */
html[dir="rtl"] .hero-bullets {
  text-align: right;
}

html[dir="rtl"] .hero-bullets li {
  direction: rtl;
}

html[dir="rtl"] .hero-bullets li:hover {
  transform: translateX(-5px);
}

html[dir="rtl"] .hero-bullets li > span:last-child {
  text-align: right;
}

html[dir="rtl"] .hero-card-text {
  text-align: right;
}

html[dir="rtl"] .tagline-text {
  text-align: right;
}

html[dir="rtl"] .hero-card-asterisk {
  left: auto;
  right: -16px;
}

@media (min-width: 768px) {
  html[dir="rtl"] .hero-card-image {
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  }
}

/* Flow branches RTL - swap YES/NO positions */
html[dir="rtl"] .flow-branches {
  direction: rtl;
}

/* Certificate section RTL */
html[dir="rtl"] .certificate-content {
  flex-direction: column;
  text-align: right;
}

html[dir="rtl"] .certificate-info {
  text-align: right;
}

@media (min-width: 768px) {
  html[dir="rtl"] .certificate-content {
    flex-direction: row;
    text-align: right;
  }
}

/* Benefits RTL */
html[dir="rtl"] .benefits-grid {
  direction: rtl;
}

@media (min-width: 768px) {
  html[dir="rtl"] .benefits-grid {
    flex-direction: row;
  }
}

html[dir="rtl"] .benefit-card {
  text-align: center;
}

/* Upgrade features RTL */
html[dir="rtl"] .upgrade-feature {
  direction: rtl;
}

html[dir="rtl"] .upgrade-feature > div:last-child {
  text-align: right;
}

html[dir="rtl"] .upgrade-feature:hover {
  transform: translateX(-8px);
}

html[dir="rtl"] .upgrade-content {
  flex-direction: column-reverse;
}

@media (min-width: 768px) {
  html[dir="rtl"] .upgrade-content {
    flex-direction: row;
  }
}

/* CTA box RTL */
html[dir="rtl"] .cta-box {
  text-align: center;
}

/* University section RTL */
html[dir="rtl"] .university-badge {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .feature-item {
  direction: rtl;
}

html[dir="rtl"] .feature-item > div:last-child {
  text-align: right;
}

html[dir="rtl"] .feature-item:hover {
  transform: translateX(-8px);
}

/* Timeline RTL */
html[dir="rtl"] .timeline-item {
  border-left: none;
  border-right: 3px solid var(--gray-200);
  padding-left: 0;
  padding-right: 2rem;
  margin-left: 0;
  margin-right: 1.25rem;
}

html[dir="rtl"] .timeline-item:hover {
  border-right-color: var(--pink);
}

html[dir="rtl"] .timeline-item:last-child {
  border-right-color: transparent;
}

html[dir="rtl"] .timeline-num {
  left: auto;
  right: -1.25rem;
}

html[dir="rtl"] .timeline-text {
  text-align: right;
}

/* Retest cards RTL */
html[dir="rtl"] .retest-grid {
  direction: rtl;
}


/* Footer RTL */
html[dir="rtl"] .footer-social {
  flex-direction: row-reverse;
}

/* Partners RTL */
html[dir="rtl"] .partners-grid {
  direction: rtl;
}

/* ========================================
   Hover & Animation Preferences
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .stagger-item,
  .slide-left,
  .slide-right,
  .pop-in,
  .flow-step,
  .flow-arrow-animate,
  .branch-slide-left,
  .branch-slide-right,
  .partner-pop,
  .endorsement-reveal,
  .cta-bounce,
  .bullet-stagger,
  .zoom-reveal,
  .hero-entrance {
    opacity: 1;
    transform: none;
  }
}
