/* ==============================
   creature.css
   生物一覧ページ専用CSS
   - ページ見出し
   - 生物カテゴリ
   - 生物カード
   - 追加予定メモ
============================== */

/* ==============================
   ページ見出し
============================== */

.creature-page-head {
  padding: 34px 28px;
  text-align: center;
}

.creature-page-label,
.creature-page-title,
.creature-page-text {
  position: relative;
  z-index: 1;
}

.creature-page-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb21f, #ff7a18);
  color: #041722;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  box-shadow: 0 0 16px rgba(255, 174, 32, 0.45);
}

.creature-page-title {
  margin: 0;
  color: #f4fdff;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 10px rgba(0, 220, 255, 0.9),
    0 3px 8px rgba(0, 0, 0, 0.75);
}

.creature-page-text {
  max-width: 780px;
  margin: 18px auto 0;
  color: #dffcff;
  line-height: 1.9;
  font-weight: 700;
}

.creature-page-text.en {
  margin-top: 8px;
  color: #bff8ff;
  font-size: 0.92rem;
  font-style: italic;
  opacity: 0.95;
}

/* ==============================
   生物カテゴリ
============================== */

.creature-category {
  margin-top: 46px;
}

.creature-category-title {
  margin: 0 0 24px;
  padding-bottom: 8px;
  color: #35f4ff;
  font-size: clamp(1.18rem, 3vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  border-bottom: 2px solid rgba(128, 235, 255, 0.72);
  text-shadow:
    0 0 8px rgba(53, 244, 255, 0.85),
    0 2px 5px rgba(0, 0, 0, 0.75);
}

/* ==============================
   生物大分類
============================== */

.creature-major-section {
  margin-top: 54px;
}

.creature-major-section:first-of-type {
  margin-top: 40px;
}

.creature-major-title {
  margin: 0 0 30px;
  padding: 12px 18px;
  color: #f4fdff;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.06em;
  border: 1px solid rgba(128, 235, 255, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(0, 74, 105, 0.5),
      rgba(0, 145, 175, 0.22),
      rgba(0, 29, 48, 0.58)
    );
  box-shadow:
    0 0 18px rgba(0, 210, 255, 0.2),
    inset 0 0 18px rgba(148, 239, 255, 0.08);
  text-shadow:
    0 0 10px rgba(0, 220, 255, 0.85),
    0 3px 8px rgba(0, 0, 0, 0.75);
}

/* ==============================
   生物カード
============================== */

.creature-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.creature-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 200px;
  border: 1px solid rgba(82, 234, 255, 0.72);
  border-radius: 10px;
  background: rgba(0, 32, 46, 0.76);
  box-shadow:
    0 0 14px rgba(0, 220, 255, 0.16),
    inset 0 0 16px rgba(255, 255, 255, 0.05);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.creature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 35, 0.88);
  box-shadow:
    0 0 20px rgba(255, 184, 35, 0.22),
    0 0 26px rgba(0, 220, 255, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.creature-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 10, 16, 0.88);
}

.creature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 0.28s ease;
}

.creature-card:hover .creature-card-image img {
  transform: scale(1.05);
  filter: none;
}

.creature-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 16, 28, 0.36), transparent 55%),
    radial-gradient(circle at center, rgba(0, 224, 255, 0.12), transparent 58%);
}

.creature-card-image.no-data {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(0, 180, 220, 0.12), transparent 45%),
    linear-gradient(135deg, rgba(0, 14, 22, 0.94), rgba(0, 34, 48, 0.88));
}

.creature-card-image.no-data span {
  color: rgba(120, 235, 255, 0.62);
  font-size: 1.05rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(0, 220, 255, 0.5);
}

.creature-card-name {
  min-height: 52px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  color: #f4fdff;
  background: rgba(0, 28, 40, 0.88);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.03em;
  text-shadow:
    0 0 8px rgba(0, 220, 255, 0.78),
    0 2px 5px rgba(0, 0, 0, 0.75);
}


/* 生物一覧ページだけ横幅を広げる */
.page-wrap {
  width: min(1280px, calc(100% - 24px));
}

/* ==============================
   ホームへ戻るボタン
============================== */

.creature-back-home {
  margin-top: 52px;
  text-align: center;
}

.creature-back-home-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(120, 220, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(0, 126, 156, 0.82), rgba(0, 58, 86, 0.92));
  color: #f4fdff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(0, 220, 255, 0.7),
    0 2px 5px rgba(0, 0, 0, 0.75);
  box-shadow:
    0 0 16px rgba(0, 220, 255, 0.24),
    inset 0 0 16px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.creature-back-home-button:hover {
  transform: translateY(-2px);
  color: #ffcf62;
  border-color: rgba(255, 184, 35, 0.9);
  box-shadow:
    0 0 20px rgba(255, 184, 35, 0.26),
    0 0 28px rgba(0, 220, 255, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
}


/* ==============================
   スマホ・タブレット表示
============================== */

@media screen and (max-width: 980px) {
  .creature-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media screen and (max-width: 640px) {
  .creature-page-head {
    padding: 28px 18px;
  }

  .creature-category {
    margin-top: 38px;
  }

  .creature-category-title {
    margin-bottom: 18px;
    font-size: 1.15rem;
  }

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

  .creature-card {
    min-height: 160px;
  }

  .creature-note {
    padding: 22px 18px;
  }
}