@charset "utf-8";

/* ============ トップページ専用 (index.html のみで読み込み) ============ */

body#top{
  background: var(--bg);
}

/* ヘッダー: スクロールすると濃くなる */
body#top .site-header{
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}
body#top .site-header.is-scrolled{
  background: rgba(6,9,20,.88);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

/* ---------- Hero ---------- */
.hero.hero-top{
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 860px);
  padding: 80px 0 120px;
  background: #02040b;
  display: flex;
  align-items: center;
}

/* 背景画像: ゆっくりズーム (Ken Burns) */
.hero-top .hero-bg{
  position: absolute;
  inset: -4%;
  background: url("../images/hero_space.jpg") center / cover no-repeat;
  animation: kenburns 40s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns{
  from{ transform: scale(1)    translate3d(0,0,0); }
  to  { transform: scale(1.12) translate3d(-2%,-1.5%,0); }
}

/* 星空キャンバス */
.hero-top .starfield{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

/* オーバーレイ: 文字側を暗く、下端を本文へなじませる */
.hero-top .hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(168,85,247,.18), transparent 60%),
    linear-gradient(90deg, rgba(2,4,11,.88) 0%, rgba(2,4,11,.55) 55%, rgba(2,4,11,.25) 100%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}

.hero-top .hero-inner{
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero-top .kicker{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-top .kicker::before{
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #93c5fd);
}

.hero-top h1{
  font-size: clamp(34px, 6.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 22px;
}
.hero-top h1 .grad{
  background: linear-gradient(100deg, #ffffff 0%, #93c5fd 30%, #c4b5fd 55%, #fdba74 80%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
  white-space: nowrap;
}
@keyframes shimmer{
  from{ background-position: 0% 50%; }
  to  { background-position: 250% 50%; }
}

.hero-top .lead{
  font-size: 17px;
  max-width: 46em;
  color: rgba(255,255,255,.82);
  margin-bottom: 28px;
}

.hero-top .btn{
  padding: 12px 20px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-top .btn:hover{
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(147,197,253,.5), 0 12px 40px rgba(59,130,246,.45);
}
.hero-top .btn.ghost{ backdrop-filter: blur(6px); }

/* 入場アニメーション */
.hero-top .rise{
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero-top .rise:nth-child(1){ animation-delay: .15s; }
.hero-top .rise:nth-child(2){ animation-delay: .30s; }
.hero-top .rise:nth-child(3){ animation-delay: .50s; }
.hero-top .rise:nth-child(4){ animation-delay: .70s; }
@keyframes rise{
  from{ opacity: 0; transform: translateY(18px); }
}

/* キーワードが流れる帯 */
.hero-top .ticker{
  position: absolute;
  left: 0; right: 0; bottom: 64px;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.10);
  background: rgba(2,4,11,.35);
  backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero-top .ticker-track{
  display: flex;
  width: max-content;
  animation: ticker 50s linear infinite;
}
.hero-top .ticker span{
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  white-space: nowrap;
}
.hero-top .ticker span::before{
  content: "✦";
  margin-right: 22px;
  color: #93c5fd;
}
@keyframes ticker{
  to{ transform: translateX(-50%); }
}

/* スクロールの合図 */
.hero-top .scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 14px;
}
.hero-top .scroll-cue::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{
  0%  { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100%{ opacity: 0; transform: translateY(12px); }
}

/* ---------- Explore カード ---------- */
.explore{
  padding: 56px 0 64px;
  color: #fff;
}
.explore .section-head h2{
  color: #fff;
  font-size: 24px;
}
.explore .muted{ color: rgba(255,255,255,.6); }

.explore-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.explore-card{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.explore-card .bg{
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.explore-card::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2,4,11,.10) 0%, rgba(2,4,11,.78) 50%, rgba(2,4,11,.96) 100%);
}
.explore-card:hover{
  color: #fff;
  transform: translateY(-6px);
  border-color: rgba(147,197,253,.6);
  box-shadow: 0 20px 50px rgba(59,130,246,.35);
}
.explore-card:hover .bg{ transform: scale(1.08); }

.explore-card .en{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #93c5fd;
}
.explore-card h3{
  margin: 4px 0 6px;
  font-size: 20px;
}
.explore-card p{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
}
.explore-card .go{
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}
.explore-card .go::after{
  content: " →";
  display: inline-block;
  transition: transform .25s ease;
}
.explore-card:hover .go::after{ transform: translateX(4px); }

/* ---------- お知らせ (明るい背景) ---------- */
body#top #contents{
  background: #f6f7fb;
  border-radius: 28px 28px 0 0;
  padding-top: 48px;
}
body#top .site-footer{
  background: #f6f7fb;
}

/* スクロールで浮かび上がる (JS が有効なときだけ) */
.js .reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .explore-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .hero.hero-top{ min-height: auto; padding: 56px 0 120px; }
  .hero-top .lead{ font-size: 15px; }
  .hero-top h1 .grad{ white-space: normal; }
  .hero-top .kicker{ letter-spacing: .16em; font-size: 11px; }
  .explore-grid{ grid-template-columns: 1fr; }
  .explore-card{ min-height: 200px; }
}

/* 動きを減らす設定の人には止める */
@media (prefers-reduced-motion: reduce){
  .hero-top .hero-bg,
  .hero-top h1 .grad,
  .hero-top .ticker-track,
  .hero-top .scroll-cue::after{ animation: none; }
  .hero-top .rise{ animation: none; opacity: 1; transform: none; }
  .js .reveal{ opacity: 1; transform: none; transition: none; }
}
