/* ==========================================================================
   Front page
   ========================================================================== */

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 4rem) 0 5rem;
  background:
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(111, 186, 44, 0.14), transparent 60%),
    linear-gradient(160deg, var(--color-deep) 0%, var(--color-deep-2) 70%);
  color: var(--color-on-dark);
  overflow: hidden;
}

/* 背景写真（回路基板）：深緑のベースに薄く重ね、ゆっくりズームさせる（Ken Burns） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/hero-bg.jpg") center / cover no-repeat;
  opacity: 0.3;
  animation: hero-zoom 28s ease-in-out infinite alternate;
  will-change: transform;
}
/* 写真の上から深緑を重ねて文字の可読性を確保 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(14, 42, 28, 0.55) 0%, rgba(10, 30, 20, 0.82) 75%);
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

.hero-wave {
  position: absolute;
  inset: auto 0 0; /* ヒーロー最下部に固定（CTAボタンと重ならない位置） */
  height: 120px;
  color: rgba(111, 186, 44, 0.4);
  pointer-events: none;
  z-index: 1;
  animation: wave-glow 5s ease-in-out 3.2s infinite alternate;
}
.hero-wave svg { width: 100%; height: 100%; }
@keyframes wave-glow {
  from { opacity: 0.65; }
  to   { opacity: 1; }
}

.hero-inner { position: relative; z-index: 2; }

.hero-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 1.2em;
}

.hero-title {
  font-size: var(--fs-hero);
  color: var(--color-on-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.7em;
}

.hero-lead {
  color: var(--color-on-dark-muted);
  max-width: 44em;
  margin-bottom: 2.2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8em;
}
.hero .btn--ghost { color: var(--color-on-dark); }

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-wave { animation: none; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; }
  .pc-only { display: none; }
}

/* Research cards */
.research-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.research-card { padding: 0; overflow: hidden; }
.research-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-surface-2);
}
.research-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.research-card:hover .research-card-img img { transform: scale(1.05); }
.research-card-body { padding: 1.75rem 1.75rem 2rem; }
.research-card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--color-accent-2);
  margin-bottom: 1em;
}
.research-card h3 { font-size: var(--fs-h3); }
.research-card p:last-child {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  .research-card-img img { transition: none; }
}

.section-more { margin-top: 2rem; }
.section-more a {
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 900px) {
  .research-cards { grid-template-columns: 1fr; }
}

/* For students */
.for-students {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.for-students-facts {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.for-students-facts > div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 1rem;
  padding: 1.1em 0.25em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.for-students-facts dt {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-accent-2);
  font-size: var(--fs-small);
}
.for-students-facts dd {
  margin: 0;
  color: var(--color-on-dark);
  font-size: var(--fs-small);
}

@media (max-width: 900px) {
  .for-students { grid-template-columns: 1fr; gap: 2rem; }
}

/* News list（front / newsページ共通クラス） */
.news-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.news-item { border-bottom: 1px solid var(--color-border); }
.news-item a {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.2em 0.5em;
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--transition);
}
.news-item a:hover { background: var(--color-surface-2); opacity: 1; }
.news-item time {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--color-accent);
  flex-shrink: 0;
}
.news-item-title { font-weight: 500; }

@media (max-width: 600px) {
  .news-item a { flex-direction: column; gap: 0.2rem; }
}

/* Contact banner */
.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-banner-action { flex-shrink: 0; }
