/* ==============================
   top.css
   トップページ専用CSS

   役割：
   - ヒーロー
   - NEWSバナー
   - ようこそ
   - 主要データカード
   - Coming Soonオーバーレイ
   - MOD Wiki導線バナー
   - 更新履歴 / 更新予定
============================== */


/* ==============================
   ヒーロー
============================== */

.hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(
      rgba(2, 28, 42, 0.15),
      rgba(2, 28, 42, 0.65)
    ),
    url("../images/sn2_hero.webp") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 32px 28px;
  text-align: center;
  border: 1px solid rgba(210, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(0, 58, 82, 0.48);
  box-shadow:
    0 0 20px rgba(0, 220, 255, 0.2),
    inset 0 0 22px rgba(255, 255, 255, 0.08);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  color: #082232;
  background: linear-gradient(135deg, #ffb21f, #ff7a18);
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: 0 0 14px rgba(255, 174, 32, 0.5);
}

.hero-title {
  margin: 0;
  color: #f4fdff;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  line-height: 1.35;
  text-shadow:
    0 0 10px rgba(118, 242, 255, 0.85),
    0 4px 10px rgba(0, 0, 0, 0.7);
}

.hero-text {
  margin: 16px 0 0;
  color: #dffcff;
  line-height: 1.9;
  font-weight: 700;
}


/* ==============================
   NEWSバナー
   ※現在はリンクなしの静的バナー想定
============================== */

.sn2-news-banner {
  margin: 28px auto 34px;
}

.sn2-news-banner-link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 126px;
  cursor: default;
  border-radius: 16px;
  border: 1px solid rgba(120, 220, 255, 0.55);
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 220, 255, 0.32), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(255, 174, 32, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(3, 31, 49, 0.92), rgba(5, 94, 122, 0.65), rgba(2, 18, 34, 0.95));
  box-shadow:
    0 0 20px rgba(0, 210, 255, 0.24),
    inset 0 0 24px rgba(120, 220, 255, 0.08);
}

.sn2-news-banner-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 10, 16, 0.56), rgba(2, 34, 48, 0.2), rgba(2, 10, 16, 0.56)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 34px
    );
  opacity: 0.9;
}

.sn2-news-banner-overlay {
  position: relative;
  z-index: 1;
  min-height: 126px;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.sn2-news-label {
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb21f, #ff7a18);
  color: #041722;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(255, 174, 32, 0.45);
}

.sn2-news-date {
  color: #a9f4ff;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sn2-news-text {
  color: #f4fbff;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 900;
  line-height: 1.45;
  text-shadow:
    0 0 8px rgba(0, 180, 220, 0.75),
    0 2px 5px rgba(0, 0, 0, 0.65);
}


/* ==============================
   ようこそ
============================== */

.welcome {
  margin-top: 28px;
  padding: 26px 28px;
  text-align: center;
}

.welcome p {
  position: relative;
  z-index: 1;
  margin: 0.75em 0;
  line-height: 1.9;
  font-weight: 700;
}

.welcome .en {
  color: #c9f8ff;
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.92;
}


/* ==============================
   主要データカード
============================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.main-creature-card {
  margin-bottom: 22px;
}

.data-card {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid rgba(82, 234, 255, 0.75);
  border-radius: 12px;
  background: rgba(0, 40, 60, 0.65);
  box-shadow:
    0 0 14px rgba(0, 220, 255, 0.2),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.data-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 35, 0.85);
  box-shadow:
    0 0 22px rgba(255, 184, 35, 0.22),
    0 0 28px rgba(0, 220, 255, 0.2);
}

.data-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.82);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.data-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.2) brightness(0.95);
}

.data-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 16, 28, 0.88), rgba(0, 60, 84, 0.18), transparent),
    radial-gradient(circle at 50% 100%, rgba(0, 224, 255, 0.22), transparent 55%);
}

.data-card-title {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 58px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  color: #f4fdff;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: rgba(0, 34, 50, 0.58);
  text-shadow:
    0 0 8px rgba(0, 220, 255, 0.8),
    0 2px 5px rgba(0, 0, 0, 0.75);
}

.data-card-wide {
  min-height: 220px;
}

.data-card-wide .data-card-title {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(
      90deg,
      rgba(0, 18, 28, 0.62),
      rgba(0, 36, 50, 0.36),
      rgba(0, 18, 28, 0.62)
    );
}

.data-card-title-en {
  display: block;
  color: #f4fdff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-shadow:
    0 0 10px rgba(0, 220, 255, 0.95),
    0 0 24px rgba(0, 220, 255, 0.7),
    0 3px 8px rgba(0, 0, 0, 0.85);
}

.data-card-title-ja {
  display: block;
  color: #dffcff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(0, 220, 255, 0.85),
    0 2px 5px rgba(0, 0, 0, 0.8);
}


/* ==============================
   Coming Soonオーバーレイ
============================== */

.coming-soon-area {
  position: relative;
  margin-top: 8px;
}

.coming-soon-area .card-grid,
.coming-soon-area .main-creature-card,
.coming-soon-area .section-title {
  filter: saturate(0.75) brightness(0.78);
}

/* 作成予定オーバーレイ表示中は、奥のカードをクリック不可にする */
.coming-soon-area .data-card {
  pointer-events: none;
  cursor: default;
}

/* クリック不可中はカードのホバー演出も無効化 */
.coming-soon-area .data-card:hover {
  transform: none;
  border-color: rgba(82, 234, 255, 0.75);
  box-shadow:
    0 0 14px rgba(0, 220, 255, 0.2),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.coming-soon-area .data-card:hover img {
  transform: none;
  filter: saturate(1.08) brightness(0.82);
}

.coming-soon-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 52%;
  width: min(720px, calc(100% - 28px));
  transform: translate(-50%, -50%);
  padding: 26px 28px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 190, 45, 0.75);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 184, 35, 0.22), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(0, 220, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(3, 28, 42, 0.94), rgba(4, 76, 104, 0.9), rgba(2, 18, 30, 0.96));
  box-shadow:
    0 0 24px rgba(255, 184, 35, 0.28),
    0 0 38px rgba(0, 220, 255, 0.22),
    inset 0 0 28px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

.coming-soon-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 34px
    );
  opacity: 0.65;
}

.coming-soon-label,
.coming-soon-main,
.coming-soon-sub {
  position: relative;
  z-index: 1;
  display: block;
}

.coming-soon-label {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb21f, #ff7a18);
  color: #041722;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(255, 174, 32, 0.5);
}

.coming-soon-main {
  color: #f4fdff;
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  font-weight: 900;
  line-height: 1.55;
  text-shadow:
    0 0 8px rgba(0, 220, 255, 0.85),
    0 3px 8px rgba(0, 0, 0, 0.7);
}

.coming-soon-sub {
  margin-top: 8px;
  color: #bff8ff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  opacity: 0.95;
}

/* EA開始後は .coming-soon-area に is-open を追加する */
.coming-soon-area.is-open .coming-soon-panel {
  display: none;
}

.coming-soon-area.is-open .card-grid,
.coming-soon-area.is-open .main-creature-card,
.coming-soon-area.is-open .section-title {
  filter: none;
}

.coming-soon-area.is-open .data-card {
  pointer-events: auto;
  cursor: pointer;
}


/* ==============================
   Subnautica MODクリーチャーWiki 導線バナー
============================== */

.modwiki-banner {
  width: 100%;
  margin-top: 34px;
}

.modwiki-banner-link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  border-radius: 14px;
  border: 1px solid rgba(82, 234, 255, 0.8);
  background: rgba(0, 30, 44, 0.75);
  box-shadow:
    0 0 16px rgba(0, 220, 255, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.modwiki-banner-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.05);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.modwiki-banner-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 12, 20, 0.45),
      rgba(0, 20, 30, 0.18),
      rgba(0, 12, 20, 0.45)
    ),
    radial-gradient(circle at center, rgba(0, 220, 255, 0.12), transparent 55%);
  transition: opacity 0.25s ease;
}

.modwiki-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.modwiki-banner-en {
  color: #f4fdff;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 8px rgba(0, 220, 255, 0.95),
    0 0 18px rgba(0, 220, 255, 0.7),
    0 3px 8px rgba(0, 0, 0, 0.85);
}

.modwiki-banner-ja {
  color: #dffcff;
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow:
    0 0 7px rgba(0, 220, 255, 0.85),
    0 2px 5px rgba(0, 0, 0, 0.8);
}

.modwiki-banner-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 35, 0.9);
  box-shadow:
    0 0 22px rgba(255, 184, 35, 0.25),
    0 0 30px rgba(0, 220, 255, 0.24),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.modwiki-banner-link:hover img {
  transform: scale(1.04);
  filter: brightness(0.78) saturate(1.22);
}

.modwiki-banner-link:hover::before {
  opacity: 0.72;
}

.modwiki-banner-link:hover .modwiki-banner-en {
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 184, 35, 0.8),
    0 0 20px rgba(0, 220, 255, 0.9),
    0 3px 8px rgba(0, 0, 0, 0.85);
}

.modwiki-banner-link:hover .modwiki-banner-ja {
  color: #ffcf62;
}


/* ==============================
   更新履歴 / 更新予定
============================== */

.log-panel {
  margin-top: 42px;
  padding: 26px 28px;
}

.log-title {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  padding-bottom: 10px;
  color: #35f4ff;
  font-size: 1.28rem;
  border-bottom: 1px solid rgba(79, 232, 255, 0.55);
  text-shadow: 0 0 8px rgba(53, 244, 255, 0.8);
}

.log-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 11px 0 11px 14px;
  border-left: 2px solid rgba(0, 225, 255, 0.75);
}

.log-date {
  color: #dffcff;
  font-weight: 900;
}

.log-text {
  color: #d7fbff;
  line-height: 1.7;
  font-weight: 700;
}

.log-text small {
  display: block;
  margin-top: 3px;
  color: #a8f2ff;
  font-size: 0.86rem;
  font-style: italic;
  opacity: 0.92;
}


/* ==============================
   スマホ表示：トップページ専用
============================== */

@media screen and (max-width: 760px) {
  .hero {
    min-height: 280px;
    padding: 18px;
  }

  .hero-content {
    padding: 24px 18px;
  }

  .welcome {
    padding: 22px 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .data-card {
    min-height: 150px;
  }

  .data-card-wide {
    min-height: 170px;
  }

  .data-card-title-en {
    font-size: 1.45rem;
    letter-spacing: 0.05em;
  }

  .data-card-title-ja {
    font-size: 0.95rem;
  }

  .sn2-news-banner-link,
  .sn2-news-banner-overlay {
    min-height: 150px;
  }

  .sn2-news-banner-overlay {
    padding: 20px 18px;
  }

  .coming-soon-panel {
    top: 50%;
    padding: 22px 18px;
  }

  .coming-soon-label {
    font-size: 0.9rem;
    padding: 7px 14px;
  }

  .coming-soon-sub {
    font-size: 0.82rem;
  }

  .modwiki-banner-link {
    min-height: 160px;
  }

  .modwiki-banner-link img {
    height: 160px;
  }

  .modwiki-banner-en {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
  }

  .modwiki-banner-ja {
    font-size: 0.92rem;
  }

  .log-panel {
    padding: 22px 18px;
  }

  .log-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
