/* ==========================================================
   トップページ（2026-07-18 デザインカンプ準拠）
   ========================================================== */

/* ---------- ヒーロー ---------- */
/* 演出：黒背景 → 星空がフェードイン → キットムーンが登場 */
.hero {
  position: relative;
  background: #000;
  overflow: hidden;
}

/* 星空背景を別レイヤーにしてフェードインさせる */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/images/common/bg-hero.jpg") center / cover no-repeat;
  opacity: 0;
  animation: hero-bg-in 1.4s ease 0.3s forwards;
}

/* 一枚絵イラストを左右中央・下揃えで配置 */
.hero__stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: clamp(320px, 55vw, 780px);
  padding-top: clamp(24px, 4vw, 56px);
}

.hero__illust {
  width: min(1121px, 92%);
  height: auto;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: hero-illust-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

@keyframes hero-bg-in {
  to {
    opacity: 1;
  }
}

@keyframes hero-illust-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* アニメーションを控えたい設定の場合は即表示 */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero__illust {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- メッセージ（星空背景＋白カード） ---------- */
.message {
  background: url("../../assets/images/common/bg-space.jpg") center / cover no-repeat;
  padding: clamp(48px, 8vw, 96px) var(--space-sm);
}

.message__inner {
  max-width: 900px;
  margin: 0 auto;
}

.message__card {
  position: relative;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
}

.message__char {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.message__char--kitmoon {
  left: clamp(8px, 3vw, 40px);
  top: -40px;
  width: clamp(120px, 17vw, 180px);
}

.message__char--kotori {
  right: -24px;
  bottom: 48px;
  width: clamp(96px, 14vw, 140px);
}

/* リード文はカード内左上のキットムーン画像を避けて右寄せ。
   min-heightで画像の下端よりグレーボックスが下に来るようにする */
.message__lead {
  max-width: 540px;
  margin-left: clamp(150px, 26%, 250px);
  min-height: 370px;
}

.message__catch {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 3.4vw, 28px);
  color: var(--color-text);
  margin-bottom: 20px;
}

.message__lead p {
  line-height: 1.8;
}

@media (min-width: 768px) {
  .message__lead p {
    font-size: 20px;
  }
}

.message__lead em {
  font-style: normal;
  color: var(--color-red);
  font-weight: 700;
}

.message__thought {
  margin-top: 40px;
  background: #ececec;
  border-radius: 14px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 56px);
  padding-right: clamp(24px, 12%, 130px); /* 右下のことり画像を避ける */
}

.message__label {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 22px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.message__thought p {
  line-height: 1.8;
}

.message__thought p + p {
  margin-top: 1.5em;
}

.message__thought em {
  font-style: normal;
  color: var(--color-red);
  font-weight: 700;
}

.message__btn {
  text-align: center;
  margin-top: clamp(32px, 5vw, 56px);
}

@media (max-width: 1023px) {
  .message__char--kitmoon {
    left: -12px;
    top: -48px;
  }

  .message__char--kotori {
    right: -8px;
  }
}

@media (max-width: 767px) {
  .message__card {
    display: flex;
    flex-direction: column;
  }

  .message__char--kitmoon {
    position: static;
    align-self: center;
    margin: -72px auto 16px;
  }

  .message__lead {
    max-width: none;
    margin-left: 0;
    /* PCではカード左上に絶対配置したキットムーン画像を避けるため min-height を
       効かせているが、SPでは画像が position:static で通常フローに入るため不要。
       残すと本文と「代表の想い」の間に大きな余白ができる */
    min-height: 0;
  }

  .message__thought {
    padding-right: clamp(24px, 5vw, 56px);
  }

  /* HTML上は本文より前だが、SPでは最後（代表の想いの後）に表示する */
  .message__char--kotori {
    position: static;
    order: 99;
    align-self: center;
    margin: 24px auto 0;
  }
}

/* ---------- NEWS ---------- */
.news {
  background: var(--color-white);
  padding: clamp(48px, 8vw, 96px) 0;
}

.news__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: var(--space-md);
}

.news__link {
  display: block;
  transition: opacity 0.3s;
}

.news__link:hover {
  opacity: 0.75;
}

.news__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.news__date {
  display: block;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 10px;
}

.news__title {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 4px;
}

@media (max-width: 1023px) {
  .news__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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