@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN SYSTEM)
   ========================================================================== */
:root {
  /* Colors - Based on the Corporate Logo & Premium Light Tech Aesthetic */
  --primary: #335d8d;       /* ★ロゴ由来の品格高いロイヤルスレートブルー */
  --primary-light: #4c7bb5; /* 明るめのブルー */
  --primary-dark: #1e293b;  /* ホワイト背景上で抜群の高級感と可読性を放つダークスレート */
  
  --secondary: #335d8d;     /* ロゴ由来のスレートブルー (SYSTEM・LOGICSロゴ文字色) */
  --accent: #0099ff;        /* ★さわやかなスカイテックブルー */
  --accent-light: #e0f2fe;  /* 非常に澄み切ったライトスカイブルー */
  --accent-purple: #4f46e5; /* 信頼感を高めるインディゴブルー */
  
  --text-dark: #1e293b;     /* メインテキスト色（濃紺グレー） */
  --text-muted: #475569;    /* よりハッキリして読みやすいスレートグレー */
  --text-light: #ffffff;    /* 明るいテキスト */
  --bg-light: #f8fafc;      /* さわやかでクリーンな超微細グレー背景 */
  --bg-white: #ffffff;      /* 清潔感あふれるピュアホワイト */
  --border-color: rgba(51, 93, 141, 0.08);
  --card-shadow: 0 10px 30px -15px rgba(51, 93, 141, 0.06);
  --card-shadow-hover: 0 20px 40px -15px rgba(51, 93, 141, 0.1);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(51, 93, 141, 0.05);
  --glass-blur: 12px;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-normal: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-slow: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white); /* さわやかで清潔なピュアホワイト */
  color: var(--text-dark); /* 読みやすい濃紺テキスト */
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    linear-gradient(rgba(51, 93, 141, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 93, 141, 0.02) 1px, transparent 1px); /* 白背景に極めて淡いブルーグレーのグリッド */
  background-size: 40px 40px;
  background-position: center top;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark); /* 白背景に抜群の品格と可読性を誇るチャコール濃紺 */
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Section Header Underline */
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, var(--accent), var(--secondary)); /* スカイブルーからロイヤルブルーへの爽快グラデーション */
  border-radius: 2px;
  transition: var(--transition-normal);
}

section:hover h2::after {
  width: 80px;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LAYOUT COMPONENTS & CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.section-dark h2, .section-dark h3 {
  color: var(--text-light);
}

.section-dark p {
  color: #a8b2d1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.7); /* さわやかで高潔なライトガラスモーフィズム */
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(51, 93, 141, 0.05);
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  box-shadow: 0 10px 30px rgba(51, 93, 141, 0.04);
  background-color: rgba(255, 255, 255, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* シンボルと文字ロゴの絶妙な距離 */
  height: 100%;
}

.logo-symbol {
  height: 38px; /* メインのサイコロロゴを存在感あるサイズに */
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition-normal);
}

.logo-text {
  height: 22px; /* 文字ロゴはシンボルに調和するスマートなサイズに */
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition-normal);
  opacity: 0.95;
  /* ロゴ本来の色（ロイヤルスレートブルー）をそのまま表示 */
}

.header.scrolled .logo-symbol {
  height: 32px; /* スクロール時に少し縮小 */
}

.header.scrolled .logo-text {
  height: 18px; /* スクロール時に少し縮小 */
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark); /* 読みやすい濃紺テキスト */
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--secondary); /* ロイヤルブルー */
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary);
  font-weight: 600;
}

/* Hamburger Menu Icon */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-dark); /* 濃紺バー */
  transition: var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--primary-dark);
  transition: var(--transition-normal);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Active Hamburger State */
.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--primary-dark);
  color: #a8b2d1;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #8892b0;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #8892b0;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #8892b0;
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 50px; /* pill shape for high-end feel */
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%); /* よりサイバーなネオングラデーション */
}

.btn-secondary {
  background: transparent;
  color: var(--primary); /* ロゴ由来の美しいロイヤルスレートブルー */
  border: 1.5px solid var(--primary); /* 視認性を担保するしっかりとした枠線 */
}

.btn-secondary:hover {
  background-color: var(--primary); /* ホバー時にブランド色で満たす */
  color: var(--text-light); /* 文字は白に反転 */
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(51, 93, 141, 0.25); /* 上品なスレートブルーのシャドウ効果 */
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  color: var(--text-light);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.45);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(0, 210, 255, 0.05);
  border-color: var(--accent-light);
  transform: translateY(-3px);
}

/* ==========================================================================
   COMMON CARDS & GLASSMORPHISM
   ========================================================================== */
.card {
  background-color: var(--bg-white); /* クリーンな純白 */
  border-radius: 12px;
  padding: 3rem 2.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  border: 1px solid rgba(51, 93, 141, 0.08); /* 非常に淡いブルーグレーのエッジ */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, var(--accent), var(--secondary)); /* スカイブルーからロイヤルブルーへのさわやかなグラデーション */
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover); /* 柔らかく上品なブルー浮遊シャドウ */
  border-color: rgba(51, 93, 141, 0.15);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark); /* 高級感のあるスレート濃紺 */
  letter-spacing: -0.3px;
  transition: var(--transition-fast);
}

.card p {
  color: var(--text-muted); /* カード内の説明テキストも読みやすい高コントラストなスレートグレーに */
}

.card:hover h3 {
  color: var(--accent); /* ホバー時にネオンブルーに点灯 */
}

/* ==========================================================================
   HOMEPAGE HERO (INDEX.HTML)
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, rgba(255, 255, 255, 1) 100%),
              radial-gradient(circle at 20% 80%, rgba(51, 93, 141, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
  color: var(--text-dark);
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Dual dynamic glowing blobs in background */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.65;
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255, 255, 255, 0) 75%);
  top: -10%;
  right: -5%;
  animation: float-slow 15s ease-in-out infinite alternate;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(51, 93, 141, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -5%;
  left: -5%;
  animation: float-slow 20s ease-in-out infinite alternate-reverse;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
  100% { transform: translate(-3%, -2%) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
}

.hero-graphic {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(244, 247, 250, 0.7) 100%);
  border: 1px solid rgba(51, 93, 141, 0.12); /* 上品なスレートブルーの極細エッジ */
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 30px 60px -15px rgba(51, 93, 141, 0.1),
              0 0 30px rgba(14, 165, 233, 0.05), /* さわやかなグロー */
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: float-logo 6s ease-in-out infinite alternate;
}

/* Float Floating animation for corporate mascot symbol */
@keyframes float-logo {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.hero-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(51, 93, 141, 0.1)); /* シンボルの柔らかいシャドウ */
}

.hero-subtitle-badge {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border: 1px solid rgba(51, 93, 141, 0.15); /* 爽快エッジ */
  color: var(--secondary); /* ロイヤルブルー */
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  border-radius: 50px;
  margin-bottom: 2rem;
  background: rgba(51, 93, 141, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.8rem;
  color: var(--primary-dark); /* 高級感のあるスレート濃紺 */
  letter-spacing: -1.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%); /* スカイブルーからロイヤルブルーへのさわやかなグラデーション */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-muted); /* 優しいテックグレー */
  margin-bottom: 3rem;
  max-width: 640px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Dynamic SVG Wave Overlay */
.hero-waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 12vh;
  min-height: 80px;
  max-height: 150px;
  z-index: 5;
  pointer-events: none;
}

.waves {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Animation for SVG waves */
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

/* Infinite Scrolling Tech Slider */
.tech-slider-section {
  background-color: var(--bg-white);
  border-top: 1px solid rgba(51, 93, 141, 0.04);
  border-bottom: 1px solid rgba(51, 93, 141, 0.04);
  padding: 1.8rem 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 10;
}

.tech-slider-track {
  display: flex;
  width: calc(250px * 18);
  animation: scroll-left 40s linear infinite;
  gap: 3.5rem;
  align-items: center;
}

.tech-slide {
  width: 200px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 1.5px;
  transition: var(--transition-fast);
  cursor: default;
}

.tech-slide:hover {
  color: var(--secondary);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 9)); }
}

/* ==========================================================================
   TIMELINE (ABOUT.HTML)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-white);
  border: 4px solid var(--secondary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-normal);
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 1.5rem;
  background-color: var(--bg-white);
  position: relative;
  border-radius: 6px;
  box-shadow: var(--card-shadow);
}

.timeline-item:hover::after {
  background-color: var(--accent);
  transform: scale(1.2);
}

.timeline-year {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   TABLES (ABOUT.HTML)
   ========================================================================== */
.table-container {
  overflow-x: auto;
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th, .table td {
  padding: 1.2rem 1.5rem;
}

.table th {
  background-color: var(--primary);
  color: var(--text-light);
  font-weight: 600;
  width: 25%;
}

.table td {
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:nth-child(even) td {
  background-color: rgba(248, 250, 252, 0.5);
}

/* ==========================================================================
   TABS & RECRUITMENT CARDS (RECRUIT.HTML)
   ========================================================================== */
.tab-container {
  margin-bottom: 3rem;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background-color: #f1f5f9;
  padding: 0.4rem;
  border-radius: 50px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  flex: 1;
}

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

.tab-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(10, 25, 47, 0.1);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn var(--transition-slow);
}

.recruit-grid {
  display: grid;
  gap: 2rem;
}

.recruit-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.recruit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.recruit-title {
  font-size: 1.35rem;
  color: var(--primary);
}

.recruit-badge {
  background-color: rgba(0, 210, 255, 0.1);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.recruit-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recruit-row {
  display: flex;
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 0.8rem;
}

.recruit-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recruit-label {
  font-weight: 600;
  color: var(--primary-light);
  width: 150px;
  flex-shrink: 0;
}

.recruit-value {
  color: var(--text-dark);
}

/* ==========================================================================
   ANIMATIONS & SCROLL UTILITIES
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .timeline::after {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .section {
    padding: 4rem 0;
  }

  /* Responsive Nav Header */
  .menu-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition-normal);
    box-shadow: -10px 0 30px rgba(2, 12, 27, 0.2);
    border-left: 1px solid var(--glass-border);
  }

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

  .nav-link {
    color: #a8b2d1;
    font-size: 1.1rem;
    width: 100%;
  }

  .nav-link:hover, .nav-link.active {
    color: var(--secondary);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-graphic {
    display: none; /* スマホでは非表示にして、圧倒的なすっきり感をキープ */
  }

  .hero h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 320px;
  }

  .recruit-row {
    flex-direction: column;
    gap: 0.3rem;
  }

  .recruit-label {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   STATS GRID (INDEX.HTML / PREMIUM REFACTORED)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 480px;
}

.stats-box {
  background: var(--bg-white);
  border: 1px solid rgba(51, 93, 141, 0.06);
  border-left: 4px solid var(--accent);
  padding: 1.8rem 2.2rem;
  border-radius: 0 12px 12px 0;
  transition: var(--transition-normal);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

/* Dynamic Interactive Progress Line on hover */
.stats-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.stats-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(51, 93, 141, 0.12);
}

.stats-box:hover::after {
  transform: scaleX(1);
}

.stats-val {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  color: var(--secondary); /* ロイヤルブルー */
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -1px;
}

.stats-val span {
  font-size: 1.2rem;
  font-weight: 600;
  margin-left: 0.2rem;
}

.stats-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark); /* チャコール濃紺 */
  margin-bottom: 0.3rem;
}

.stats-desc {
  font-size: 0.88rem;
  color: var(--text-muted); /* 優しいテックグレー */
  margin-bottom: 0;
}

/* ==========================================================================
   REFACTORED UTILITY CLASSES FOR MESSAGE & SECTIONS
   ========================================================================== */
.section-ambient {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-light);
}

.grid-align-center {
  align-items: center;
  gap: 4rem;
}

.badge-message {
  border-color: rgba(51, 93, 141, 0.15);
  color: var(--secondary);
  background: rgba(51, 93, 141, 0.03);
}

.section-title-dark {
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.message-quote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--primary-dark);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 500;
}

.message-text-block {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.message-text-block p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.message-highlight-sign {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(51, 93, 141, 0.08);
  padding-top: 1.2rem;
}

.president-signature-block {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.president-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
  box-shadow: var(--card-shadow);
}

.president-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.president-title-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.btn-message {
  margin-top: 1.5rem;
}
