/* Supabaseから読み込むHOMEコンテンツと一覧モーダル */

.home-content-status {
  width: 100%;
  margin: 0;
  padding: 24px 0;
  color: #666;
  font-family: "Yusei Magic", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.home-archive-card--link {
  color: inherit;
  text-decoration: none;
}

.home-content-modal[hidden] {
  display: none;
}

.home-content-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: max(20px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  overflow-y: auto;
  background: rgb(0 0 0 / 58%);
  place-items: center;
}

.home-content-modal__card {
  width: min(100%, 960px);
  max-height: min(820px, calc(100svh - 40px));
  overflow-y: auto;
  border: 2px solid #222;
  border-radius: 4px;
  background: #f3f0e8;
  box-shadow: 0 18px 60px rgb(0 0 0 / 25%);
}

.home-content-modal__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 34px);
  border-bottom: 2px solid #222;
  background: #f3f0e8;
}

.home-content-modal__header h2 {
  margin: 0;
  font-family: "Londrina Shadow", sans-serif;
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.home-content-modal__close {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid #222;
  border-radius: 50%;
  color: #171717;
  background: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.home-content-modal__body {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 36px);
}

.home-content-modal__body--watch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-content-modal__body--archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-news-bubble.is-actionable {
  cursor: pointer;
}

.home-news-detail {
  width: min(100%, 720px);
  margin-inline: auto;
}

.home-news-detail__media {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid #222;
  background: #111;
}

.home-news-detail__media img,
.home-news-detail__media video {
  display: block;
  width: 100%;
  max-height: 62svh;
  object-fit: contain;
}

.home-news-detail__text {
  margin: 0;
  color: #171717;
  font-family: "Yusei Magic", sans-serif;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.9;
  white-space: pre-wrap;
}

.home-news-detail__link {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid #222;
  color: #171717;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.home-content-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .home-content-modal {
    place-items: end center;
  }

  .home-content-modal__card {
    max-height: calc(100svh - max(16px, env(safe-area-inset-top)));
  }

  .home-content-modal__header {
    padding: 15px 16px;
  }

  .home-content-modal__body {
    padding: 16px;
  }

  .home-content-modal__body--watch,
  .home-content-modal__body--archive {
    grid-template-columns: 1fr;
  }
}
