/* ============================================================
   page-home.css
   トップページ（index.html）固有のスタイル
   ============================================================ */

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #020c1b;
}

/* --- 画像スライダー --- */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/*.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}*/

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide.active { opacity: 1; }
/* Ken Burns: スライドごとに方向を変える */
.hero-slide:nth-child(1) { animation: kb1 10s ease-in-out infinite alternate; }
.hero-slide:nth-child(2) { animation: kb2 10s ease-in-out infinite alternate; }
.hero-slide:nth-child(3) { animation: kb3 10s ease-in-out infinite alternate; }
.hero-slide:nth-child(4) { animation: kb4 10s ease-in-out infinite alternate; }
@keyframes kb1 { from { transform: scale(1)    translateX(0);   } to { transform: scale(1.08) translateX(-1%); } }
@keyframes kb2 { from { transform: scale(1.06) translateX(1%);  } to { transform: scale(1)    translateX(0);   } }
@keyframes kb3 { from { transform: scale(1)    translateY(0);   } to { transform: scale(1.08) translateY(-1%);} }
@keyframes kb4 { from { transform: scale(1.06) translateY(-1%); } to { transform: scale(1)    translateY(0);   } }

/* 青系グラデーションオーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(2,12,27,0.80) 0%, rgba(2,12,27,0.35) 55%, rgba(2,12,27,0.10) 100%),
    linear-gradient(to top,   rgba(2,12,27,0.60) 0%, transparent 50%);
}
/* 青みを足すカラーフィルター */
.hero-color-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10,40,90,0.28);
  mix-blend-mode: multiply;
}
/* グリッドテクスチャ */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(123,191,239,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,191,239,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* テキストコンテンツ */
.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 64px 80px;
  max-width: 700px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp .9s .3s forwards;
}
.eyebrow-line {
  width: 32px;
  height: 0.5px;
  background: rgba(123,191,239,.6);
  flex-shrink: 0;
}
.eyebrow-text {
  font-size: 10px;
  color: rgba(123,191,239,.75);
  letter-spacing: .22em;
  font-weight: 300;
}
.hero-headline {
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}
.hero-headline em {
  display: block;
  color: var(--blue-bright);
  font-style: normal;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  line-height: 2;
  margin-bottom: 38px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp .9s .7s forwards;
}
.hero-btns {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: fadeUp .9s .9s forwards;
}

/* 右サイドの実績数字 */
.hero-stats {
  position: absolute;
  right: 60px;
  bottom: 80px;
  z-index: 10;
  opacity: 0;
  animation: fadeRight .9s .8s forwards;
}
.stat-item {
  padding: 16px 0;
  border-top: 0.5px solid rgba(255,255,255,.1);
  min-width: 160px;
}
.stat-item:last-child { border-bottom: 0.5px solid rgba(255,255,255,.1); }
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  font-family: var(--serif);
}
.stat-num sup {
  font-size: 14px;
  font-weight: 400;
  color: var(--blue-bright);
  margin-left: 2px;
  vertical-align: top;
  line-height: 2.2;
}
.stat-label {
  font-size: 10px;
  color: rgba(255,255,255,.85);
  letter-spacing: .16em;
  margin-top: 4px;
  font-weight: 300;
}

/* スライドインジケーター */
.hero-indicators {
  position: absolute;
  bottom: 32px;
  right: 56px;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-dot {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  cursor: pointer;
  transition: width .3s;
  position: relative;
  overflow: hidden;
}
.hero-dot.active { width: 52px; }
.hero-dot.active::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--blue-bright);
  border-radius: 2px;
  animation: dotProgress var(--slide-duration, 6s) linear forwards;
}
@keyframes dotProgress { from { width: 0%; } to { width: 100%; } }

/* スクロールヒント */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  animation: fadeUp .9s 1.3s forwards;
}
.scroll-hint span {
  font-size: 10px;
  color: rgba(255,255,255,.85);
  letter-spacing: .2em;
}
.scroll-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(123,191,239,.5));
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { opacity: 0; transform: scaleY(0);    transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1);    }
  100% { opacity: 0; transform: scaleY(1) translateY(8px); }
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: var(--white);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
}
.about-text .body-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 2.1;
  margin-bottom: 16px;
  font-weight: 300;
}
.about-text .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--blue-accent);
  text-decoration: none;
  letter-spacing: .04em;
  margin-top: 10px;
  border-bottom: 0.5px solid var(--blue-accent);
  padding-bottom: 2px;
  transition: gap .2s;
}
.about-text .read-more:hover { gap: 14px; }
.about-image { position: relative; }
.about-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--blue-pale);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-align: center;
}
.about-img-sub {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 48%;
  aspect-ratio: 4/3;
  background: var(--navy-mid);
  border-radius: 2px;
  border: 4px solid var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-sub img { width: 100%; height: 100%; object-fit: cover; }

/* ===== SERVICES ===== */
.services {
  padding: 120px 0 140px;
  background: var(--off-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 52px;
}
.service-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-mid);
}
.service-card-bg {
  position: absolute;
  inset: 0;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s ease;
}
.service-card:hover .service-card-bg { transform: scale(1.06); }
.service-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
  transition: opacity .4s;
}
.service-card:hover .service-card-bg img { opacity: .35; }
.service-ph { font-size: 12px; color: rgba(255,255,255,.85); letter-spacing: .08em; }
.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,12,27,.85) 0%, rgba(2,12,27,.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background .4s;
}
.service-card:hover .service-overlay {
  background: linear-gradient(to top, rgba(2,12,27,.95) 0%, rgba(10,63,116,.3) 60%, transparent 100%);
}
.service-tag {
  font-size: 10px;
  color: var(--blue-bright);
  letter-spacing: .18em;
  margin-bottom: 8px;
  font-weight: 300;
}
.service-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.service-desc {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .4s;
  opacity: 0;
  font-weight: 300;
}
.service-card:hover .service-desc { max-height: 80px; opacity: 1; }
.service-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 32px; height: 32px;
  border: 0.5px solid rgba(123,191,239,.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s, transform .3s;
}
.service-card:hover .service-arrow { opacity: 1; transform: scale(1); }
.service-arrow::after { content: '→'; color: var(--blue-bright); font-size: 15px; }

/* ===== STATS ===== */
.stats {
  padding: 100px 0;
  background: var(--navy-deep);
}
.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
}
.stats-divider { height: 60px; background: rgba(255,255,255,.1); }
.stat-block { padding: 0 40px; text-align: center; }
.stat-block-num {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.stat-block-num .unit {
  font-size: 18px;
  color: var(--blue-bright);
  font-weight: 300;
  font-family: 'Noto Sans JP', sans-serif;
}
.stat-block-label {
  font-size: 11px;
  color: rgba(255,255,255,.85);
  letter-spacing: .18em;
  margin-top: 10px;
  font-weight: 300;
}
.stat-block-sub {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
  font-weight: 300;
}

/* ===== NEWS ===== */
.news {
  padding: 120px 0;
  background: var(--white);
}
.news-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}
.news-header { /*position: sticky;*/ top: 100px; }
.news-list { list-style: none; }
.news-item {
  display: grid;
  grid-template-columns: 100px auto 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 0.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left .2s;
}
.news-item:last-child { border-bottom: 0.5px solid var(--border); }
.news-item:hover { padding-left: 8px; }
.news-date {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .04em;
  white-space: nowrap;
  font-weight: 300;
}
.news-cat {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 400;
}
.cat-announce  { background: #fff0e2; color: rgb(255, 102, 0); }
.cat-caution  { background: #fff0ee; color: #a33; }
.cat-research { background: var(--blue-pale); color: var(--blue-accent); }
.cat-recruit  { background: #eaf3de; color: #3b6d11; }
.news-title {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 400;
}
.news-item:hover .news-title { color: var(--blue-accent); }
.news-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--blue-accent);
  text-decoration: none;
  letter-spacing: .04em;
  margin-top: 24px;
  border-bottom: 0.5px solid var(--blue-accent);
  padding-bottom: 2px;
  transition: gap .2s;
}
.news-all:hover { gap: 14px; }

/* ===== CTA ===== */
.cta {
  padding: 0;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #020c1b 0%, #041e3a 40%, #0a3f74 100%);
  background-size: 300% 300%;
  animation: gradFlow 18s ease infinite;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,95,168,.25) 0%, transparent 70%);
  right: -100px; top: -100px;
  animation: glowPulse 12s ease-in-out infinite;
}
/* ネットワーク模様 Canvas */
.cta-network {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cta-network canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cta-inner {
  position: relative;
  z-index: 5;
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.cta-label {
  font-size: 11px;
  color: rgba(123,191,239,.6);
  letter-spacing: .22em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 0.5px;
  background: rgba(123,191,239,.6);
}
.cta-title {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
}
.cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  line-height: 1.9;
  font-weight: 300;
}
.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}
.cta-btn-main {
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--navy-deep);
  padding: 16px 32px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background .2s;
}
.cta-btn-main:hover { background: var(--blue-pale); }
.cta-btn-sub {
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  background: transparent;
  color: rgba(255,255,255,.85);
  padding: 16px 32px;
  border: 0.5px solid rgba(255,255,255,.85);
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: border-color .2s, color .2s;
}
.cta-btn-sub:hover {
  border-color: rgba(255,255,255,.85);
  color: rgba(255,255,255,.9);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { padding: 0 28px 70px; }
  .hero-headline { font-size: 46px; }
  .hero-stats { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-img-sub { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 24px; }
  .stats-divider { display: none; }
  .news-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
  .news-header { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 36px; }
}