@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Noto+Serif+JP:wght@700;900&display=swap');

:root {
  --color-bg-dark: #f0f4f8;
  --color-bg: #ffffff;
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-accent: #f59e0b;
  --color-text: #0f172a;
  --color-text-light: #475569;
  --color-white: #ffffff;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 25px 35px -5px rgba(2, 132, 199, 0.15);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.font-eng { font-family: 'Montserrat', sans-serif; letter-spacing: 0.1em; }
.font-serif { font-family: 'Noto Serif JP', serif; }
section { position: relative; overflow: hidden; }
.section-padding { padding: 100px 20px; }
.container { max-width: 900px; margin: 0 auto; }

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0; 
  transform: translateY(40px) scale(0.98) translateZ(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible { 
  opacity: 1; 
  transform: translateY(0) scale(1) translateZ(0); 
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* =========================================
   HERO 
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  background-color: #000;
  overflow: hidden;
}
.hero-bg-video {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
  filter: contrast(1.1) saturate(1.1);
}
@keyframes slowPan {
  0% { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.05) translate(-2%, 2%); }
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0.8) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3; color: var(--color-white); padding: 0 20px; width: 100%;
  animation: heroPop 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroPop {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.hero-catch-sub {
  font-size: 1.2rem; letter-spacing: 0.3em; margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8); font-weight: 700; color: var(--color-accent);
}
.hero-catch-main {
  font-size: 3.5rem; line-height: 1.3; text-shadow: 0 10px 30px rgba(0,0,0,0.9); margin-bottom: 20px;
}

/* =========================================
   REPRESENTATIVE MESSAGE (代表の言葉)
   ========================================= */
.message-section { background: var(--color-bg); position: relative; }
.message-box {
  background: var(--color-bg-dark); border-radius: 12px; padding: 40px;
  display: flex; flex-direction: row-reverse; gap: 30px; align-items: center; box-shadow: var(--shadow-md);
}
.message-img {
  width: 150px; height: 150px; border-radius: 50%;
  background-image: url('../../HITEC-HP/website_v2/assets/images/president.png');
  background-size: cover; background-position: center; border: 4px solid #fff;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.message-quote {
  font-size: 1.4rem; font-weight: 900; color: var(--color-primary-dark);
  margin-bottom: 15px; font-style: italic; line-height: 1.5;
}
@media (max-width: 768px) {
  .message-box { flex-direction: column; text-align: center; }
}

/* =========================================
   PROBLEM / 共感
   ========================================= */
.problem-section {
  background: linear-gradient(135deg, var(--color-text) 0%, #1e293b 100%);
  color: var(--color-white); text-align: center; position: relative;
}
.problem-lead {
  font-size: 2rem; font-weight: 900; margin-bottom: 40px;
  color: var(--color-accent); text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}
.problem-list { list-style: none; font-size: 1.2rem; font-weight: 700; display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 0 auto; }
.problem-list li {
  background: rgba(255,255,255,0.05); padding: 20px; border-radius: 12px;
  border-left: 4px solid var(--color-accent); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* =========================================
   INFOGRAPHICS (数字で見るHITEC) - 10 Cards
   ========================================= */
.info-section { background: var(--color-bg-dark); }
.numbers-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px;
}
@media (min-width: 768px) { .numbers-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.number-card {
  background: #fff; border-radius: 12px; padding: 25px 10px; text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: relative; overflow: hidden;
  color: var(--color-text); transition: transform 0.3s;
}
.number-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.number-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--color-primary); }
.number-card:nth-child(2n)::before { background: var(--color-accent); }
.number-card:nth-child(3n)::before { background: #10b981; } /* Emerald */
.number-card:nth-child(4n)::before { background: #f43f5e; } /* Rose */
.number-card:nth-child(5n)::before { background: #8b5cf6; } /* Purple */

.nc-icon { font-size: 2rem; margin-bottom: 10px; display: inline-block; }
.nc-title { font-size: 0.85rem; font-weight: 700; color: var(--color-text-light); margin-bottom: 5px; }
.nc-stat { font-size: 2.5rem; font-weight: 900; color: var(--color-text); font-family: 'Montserrat', sans-serif; line-height: 1; margin-bottom: 5px; }
.nc-stat span { font-size: 1.2rem; }
.nc-stat .counter { font-size: inherit; color: var(--color-accent) }
.nc-desc { font-size: 0.75rem; color: #64748b; line-height: 1.4; }

/* =========================================
   WHY HITEC / 解決策
   ========================================= */
.solution-section { background-color: var(--color-bg-dark); }
.sec-title-wrap { text-align: center; margin-bottom: 70px; position: relative; }
.sec-title-en {
  font-size: 6vw; font-weight: 900; color: var(--color-primary); opacity: 0.05;
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.sec-title-jp { font-size: 2.2rem; font-weight: 900; position: relative; z-index: 2; display: inline-block; padding-bottom: 10px; }
.sec-title-jp::after { content: ''; position: absolute; bottom: 0; left: 20%; width: 60%; height: 4px; background: var(--color-primary); border-radius: 2px; }

.feature-box {
  background: var(--color-white); border-radius: 16px; box-shadow: var(--shadow-md); margin-bottom: 50px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s;
}
.feature-box:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.feature-img { height: 280px; background-size: cover; background-position: center; position: relative; }
.feature-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); }
.feature-num { position: absolute; bottom: -10px; right: 20px; font-size: 6rem; font-weight: 900; color: rgba(255,255,255,0.9); z-index: 2; line-height: 1; text-shadow: 0 10px 20px rgba(0,0,0,0.5); font-style: italic; }
.feature-content { padding: 40px; }
.feature-content h3 { font-size: 1.6rem; margin-bottom: 20px; color: var(--color-primary-dark); }

/* =========================================
   CAREER PATH (キャリアイメージ)
   ========================================= */
.career-section { background: #fff; }
.career-path { display: flex; flex-direction: column; gap: 20px; position: relative; }
@media (min-width: 768px) {
  .career-path { flex-direction: row; justify-content: space-between; overflow-x: auto; padding-bottom: 20px;}
}
.career-step {
  background: var(--color-bg-dark); padding: 25px; border-radius: 12px;
  flex: 1; min-width: 250px; position: relative; border-top: 5px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.career-year { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--color-primary); margin-bottom: 5px; }
.career-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--color-text); }
.career-desc { font-size: 0.9rem; color: var(--color-text-light); }
.career-badge {
  display: inline-block; background: var(--color-accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 20px; margin-bottom: 10px;
}

/* =========================================
   VOICES / カルーセル (スライダー)
   ========================================= */
.voices-section { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; }
.voices-section .sec-title-jp { color: #fff; }
.voices-section .sec-title-jp::after { background: var(--color-accent); }

/* Carousel Container */
.carousel-container {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 30px;
  /* Hide scrollbar */
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

.voice-card {
  scroll-snap-align: center;
  flex: 0 0 85%; /* 画面幅の85%にして次がチラ見えするように */
  max-width: 400px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 30px; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  position: relative; white-space: normal;
}
.voice-card::before { content: '“'; position: absolute; top: 10px; left: 20px; font-size: 4rem; color: rgba(2, 132, 199, 0.3); font-family: serif; line-height: 1; }
.voice-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; position: relative; z-index: 2; }
.voice-avatar { width: 85px; height: 85px; flex-shrink: 0; border-radius: 50%; background-size: cover; background-position: center; border: 2px solid var(--color-primary); }
.voice-name { font-weight: 900; font-size: 1.2rem; color: var(--color-accent); }
.voice-role { font-size: 0.85rem; color: #cbd5e1; }
.voice-text { font-size: 0.95rem; line-height: 1.8; color: #f8fafc; position: relative; z-index: 2; }

/* =========================================
   Q&A (アコーディオン)
   ========================================= */
.qa-section { background: var(--color-bg-dark); }
details {
  background: #fff; border-radius: 8px; margin-bottom: 15px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: all 0.3s;
}
details[open] { border-left: 4px solid var(--color-primary); box-shadow: var(--shadow-md); }
summary {
  padding: 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--color-primary-dark); font-size: 1.1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 300; transition: transform 0.3s;
}
details[open] summary::after { transform: rotate(45deg); }
.qa-content {
  padding: 0 20px 20px; color: var(--color-text-light); line-height: 1.8; border-top: 1px dashed #e2e8f0; margin-top: 5px; padding-top: 15px;
}

/* =========================================
   SCHEDULE / タイムライン
   ========================================= */
.timeline { position: relative; max-width: 600px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; top: 0; left: 8px; width: 4px; height: 100%; background: linear-gradient(to bottom, var(--color-primary), var(--color-accent)); border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 5px; width: 16px; height: 16px; background: #fff; border: 4px solid var(--color-primary); border-radius: 50%; z-index: 2; box-shadow: 0 0 10px rgba(2, 132, 199, 0.5); }
.tl-time { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.3rem; color: var(--color-primary); margin-bottom: 5px; }
.tl-content { background: var(--color-bg-dark); padding: 20px; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform 0.3s; }

/* =========================================
   Parallax Divider & Backgrounds
   ========================================= */
.parallax-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* PC等の大きな画面でのみパララックスを有効化（スマホでは通常スクロール） */
@media (min-width: 768px) {
  .parallax-bg {
    background-attachment: fixed;
  }
}

.parallax-divider {
  /* handled mostly inline now for iOS fix */
  display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,0.9); position: relative;
}
.parallax-divider h2 { position: relative; z-index: 2; font-size: 2.5rem; font-weight: 900; text-align: center; line-height: 1.4; }

/* =========================================
   REQUIREMENTS / 募集要項
   ========================================= */
.req-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow-md); border-radius: 12px; overflow: hidden; }
.req-table th, .req-table td { padding: 20px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.req-table th { background: var(--color-primary); color: #fff; font-weight: 700; width: 30%; white-space: nowrap; }
.req-table td { color: var(--color-text); font-weight: 500; line-height: 1.8; }

/* =========================================
   募集要項タブ
   ========================================= */
.req-tabs {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap;
}
.req-tab-btn {
  padding: 12px 24px; background: #fff; border: 2px solid var(--color-primary); color: var(--color-primary);
  border-radius: 30px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 1rem;
}
.req-tab-btn.active {
  background: var(--color-primary); color: #fff; box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}
.req-tab-btn:hover:not(.active) {
  background: #f0f9ff;
}
.req-tab-content {
  display: none; animation: fadeInBase 0.5s ease;
}
.req-tab-content.active {
  display: block;
}

/* =========================================
   Fixed CTA & Footer
   ========================================= */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}
.cta-fixed {
  position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-top: 1px solid rgba(0,0,0,0.1); padding: 15px 20px; z-index: 100; display: flex; justify-content: center; align-items: center; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cta-fixed.show { transform: translateY(0); }
.btn-primary {
  display: block; width: 100%; max-width: 500px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00d2ff 100%);
  color: var(--color-white); text-align: center; padding: 20px; border-radius: 50px; font-weight: 900; font-size: 1.25rem; text-decoration: none; text-shadow: 0 2px 4px rgba(0,0,0,0.2); animation: pulseGlow 2s infinite; transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%); }

.cta-spacer { height: 100px; }
@media (max-width: 768px) {
  .hero-catch-main { font-size: 2rem; }
  .sec-title-jp { font-size: 1.8rem; }
  .req-table th, .req-table td { display: block; width: 100%; }
  .req-table th { padding: 15px 20px 5px; background: #e0f2fe; color: var(--color-primary-dark); }
}
