/* ============================================
   INDEX PAGE STYLES
   ============================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,51,0.88) 0%, rgba(26,58,92,0.72) 50%, rgba(13,31,51,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
  animation: fadeInUp 0.9s ease both;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s 0.1s ease both;
}
.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.9s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.3s ease both;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span:first-child {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* ---- Info Bar ---- */
.info-bar { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.info-bar-inner { display: flex; align-items: flex-start; gap: 32px; }
.info-bar-label { flex-shrink: 0; padding-top: 4px; }
.info-list { flex: 1; display: flex; flex-direction: column; gap: 0; }
.info-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--color-border); transition: var(--transition); }
.info-item:last-child { border-bottom: none; }
.info-item:hover { color: var(--color-accent); }
.info-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-light); white-space: nowrap; }
.info-title { font-size: 0.85rem; color: var(--color-text); transition: var(--transition); }
.info-item:hover .info-title { color: var(--color-accent); }
.info-more { flex-shrink: 0; font-size: 0.8rem; color: var(--color-primary); font-weight: 500; transition: var(--transition); white-space: nowrap; padding-top: 4px; }
.info-more:hover { color: var(--color-accent); }

/* ---- Q&A ---- */
.qa-section { background: #fff; padding: 32px 0; border-bottom: 1px solid var(--color-border); }
.qa-card { display: flex; gap: 24px; padding: 28px 32px; background: #fff8f9; border: 1px solid rgba(200,16,46,0.15); border-left: 4px solid var(--color-accent); border-radius: var(--radius-md); }
.qa-icon { flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.qa-content h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--color-text); margin-bottom: 12px; }
.qa-content p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.75; margin-bottom: 8px; }
.qa-link { font-size: 0.82rem; color: var(--color-accent); font-weight: 500; transition: var(--transition); }
.qa-link:hover { text-decoration: underline; }

/* ---- About ---- */
.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.about-features { display: flex; flex-direction: column; gap: 24px; }
.feature-card { display: flex; gap: 20px; padding: 24px; background: var(--color-bg); border-radius: var(--radius-md); border: 1px solid var(--color-border); transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: rgba(26,58,92,0.2); }
.feature-icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(26,58,92,0.06); border-radius: var(--radius-sm); }
.feature-icon img { width: 28px; height: 28px; }
.feature-card h3 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; color: var(--color-primary); margin-bottom: 8px; }
.feature-card p { font-size: 0.83rem; color: var(--color-text-light); line-height: 1.7; }

/* ---- Departments ---- */
.dept-section { background: var(--color-bg); }
.dept-header { margin-bottom: 36px; }
.dept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dept-card { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/2; transition: var(--transition); }
.dept-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dept-card:hover img { transform: scale(1.06); }
.dept-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,31,51,0.8) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 14px; opacity: 0; transition: var(--transition); }
.dept-card:hover .dept-overlay { opacity: 1; }
.dept-overlay span { font-size: 0.78rem; color: #fff; font-weight: 500; letter-spacing: 0.04em; }

/* ---- CPC Highlight ---- */
.cpc-highlight { position: relative; padding: 96px 0; overflow: hidden; }
.cpc-highlight-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cpc-highlight-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,31,51,0.92) 0%, rgba(26,58,92,0.85) 100%); }
.cpc-highlight-inner { position: relative; z-index: 1; max-width: 600px; }
.cpc-highlight-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: #fff; font-weight: 300; margin-bottom: 16px; }
.cpc-highlight-inner p { color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 28px; font-size: 0.95rem; }

/* ---- Kyushu Section ---- */
.kyushu-section { background: #fff; }
.kyushu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.kyushu-img { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.kyushu-img img { width: 100%; height: 420px; object-fit: cover; }
.kyushu-img-badge { position: absolute; bottom: 24px; left: 24px; background: var(--color-accent); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 0.9rem; line-height: 1.4; }
.kyushu-img-badge span { display: block; }

/* ---- Main Service ---- */
.main-service-section { position: relative; padding: 96px 0; overflow: hidden; }
.ms-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ms-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,31,51,0.93) 40%, rgba(13,31,51,0.65) 100%); }
.ms-content { position: relative; z-index: 1; max-width: 600px; }
.ms-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: #fff; font-weight: 300; margin-bottom: 20px; }
.ms-content h2 em { display: block; font-size: 0.6em; font-style: normal; color: rgba(255,255,255,0.6); margin-top: 4px; letter-spacing: 0.03em; }
.ms-content p { color: rgba(255,255,255,0.68); line-height: 1.75; margin-bottom: 12px; font-size: 0.92rem; }
.ms-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---- Animal ---- */
.animal-section { background: var(--color-bg); }
.animal-inner { max-width: 600px; margin-bottom: 36px; }
.animal-img-wrap { border-radius: var(--radius-md); overflow: hidden; max-height: 380px; }
.animal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Topics ---- */
.topics-section { background: #fff; }
.topics-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.topics-all { font-size: 0.85rem; color: var(--color-primary); font-weight: 500; transition: var(--transition); }
.topics-all:hover { color: var(--color-accent); }
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.topic-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); transition: var(--transition); background: #fff; }
.topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.topic-img { aspect-ratio: 16/9; overflow: hidden; }
.topic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.topic-card:hover .topic-img img { transform: scale(1.05); }
.topic-body { padding: 16px; }
.topic-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.topic-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-text-light); }
.topic-body h4 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 500; color: var(--color-text); line-height: 1.55; }

/* ---- Links ---- */
.links-section { background: var(--color-bg); }
.links-header { margin-bottom: 28px; }
.links-grid { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.link-card { display: flex; align-items: center; justify-content: center; padding: 16px 24px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: var(--transition); min-width: 140px; }
.link-card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-primary); }
.link-card img { max-height: 40px; max-width: 140px; object-fit: contain; }
.links-text a { font-size: 0.85rem; color: var(--color-primary); font-weight: 500; transition: var(--transition); }
.links-text a:hover { color: var(--color-accent); text-decoration: underline; }

/* ============================================ RESPONSIVE */
@media(max-width:1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .kyushu-grid { grid-template-columns: 1fr; gap: 40px; }
  .topics-grid { grid-template-columns: repeat(2,1fr); }
  .dept-grid { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:768px) {
  .info-bar-inner { flex-direction: column; gap: 12px; }
  .info-more { align-self: flex-end; }
  .qa-card { flex-direction: column; gap: 16px; }
  .dept-grid { grid-template-columns: repeat(2,1fr); }
  .topics-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
}
@media(max-width:480px) {
  .hero-actions { flex-direction: column; }
  .dept-grid { grid-template-columns: 1fr; }
  .links-grid { flex-direction: column; align-items: flex-start; }
}
