/* ==========================================================
   キットムーンとは（2026-07-18 デザインカンプ準拠）
   ========================================================== */

/* ---------- ストーリー ---------- */
.story {
  background: url("../../assets/images/common/bg-space.jpg") center / cover no-repeat;
  padding: clamp(48px, 8vw, 96px) var(--space-sm);
}

.story__inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.story__card {
  position: relative;
  z-index: 1;
  background: #fdf9ee;
  border: 2px solid var(--color-gold);
  outline: 1px solid var(--color-gold);
  outline-offset: 5px;
  border-radius: 18px;
  padding: clamp(32px, 6vw, 56px) clamp(24px, 6vw, 64px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.story__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}

.story__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold-light));
}

.story__illust {
  margin: 0 0 28px;
}

.story__illust img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.story__text {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
}

/* キットムーンの立ち絵と本文が重ならないよう右に余白 */
@media (min-width: 1180px) {
  .story__text {
    padding-right: 80px;
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  .story__text {
    padding-right: 150px;
  }
}

/* カード右外に立つキットムーン */
.story__kitmoon {
  position: absolute;
  right: -140px;
  bottom: -48px;
  z-index: 2;
  width: clamp(180px, 20vw, 260px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* キットムーンがはみ出す余白を確保 */
@media (min-width: 1180px) {
  .story__inner {
    max-width: 900px;
  }
}

@media (max-width: 1179px) {
  .story__kitmoon {
    right: -20px;
    bottom: -40px;
    width: clamp(150px, 18vw, 200px);
  }
}

@media (max-width: 767px) {
  .story__kitmoon {
    display: none;
  }
}

/* ---------- キャラクター ---------- */
.chara {
  background: var(--color-cream);
  padding: clamp(48px, 8vw, 96px) 0;
}

.chara__card {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 48px);
  margin-top: var(--space-md);
}

.chara .section-title {
  margin-bottom: var(--space-sm);
}

.chara__visual {
  text-align: center;
}

.chara__visual img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.chara__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--color-red);
  margin-bottom: 16px;
}

.chara__desc {
  line-height: 1.8;
}

.chara__spec {
  margin-top: 20px;
}

.chara__spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(43, 43, 53, 0.12);
}

.chara__spec-row:first-child {
  border-top: 1px solid rgba(43, 43, 53, 0.12);
}

.chara__spec-row dt {
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
}

.chara__spec-row dd {
  line-height: 1.8;
  font-size: 16px;
}

@media (max-width: 767px) {
  .chara__card {
    grid-template-columns: 1fr;
  }

  .chara__visual img {
    max-height: 300px;
  }

  .chara__spec-row {
    grid-template-columns: 96px 1fr;
  }
}

/* ===== キットムーン誕生秘話 ===== */
.birth {
  background: var(--color-white);
  padding: clamp(48px, 8vw, 96px) 0;
}

.birth__item {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: stretch;
  background: var(--color-white);
  border: 1px solid #ddd;
  margin-top: var(--space-sm);
}

.birth__body {
  padding: clamp(24px, 3vw, 40px);
  align-self: center;
}

.birth__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--color-red);
  margin-bottom: 16px;
}

.birth__text {
  font-size: 16px;
  line-height: 1.8;
}

.birth__photo {
  min-height: 200px;
}

.birth__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .birth__item {
    grid-template-columns: 1fr;
  }

  .birth__photo {
    order: 2;
    min-height: 0;
  }

  .birth__photo img {
    height: auto;
  }
}
