/* トップページ専用 */

.portal-hero-section {
  padding-top: 18px;
}
.portal-hero-shell {
  width: min(100%, calc(100% - 24px));
  margin: 0 auto;
}
.portal-hero-frame {
  position: relative;
  min-height: clamp(420px, 62vw, 760px);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 247, 0.96);
  box-shadow: 0 4px 12px var(--vliver-slider-shadow, rgba(0, 0, 0, 0.15));
  background: linear-gradient(135deg, #0e214d 0%, #245dbb 48%, #72d0ff 100%);
}
.portal-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(11,25,66,.78) 100%);
}
.portal-hero-media,
.portal-hero-media iframe,
.portal-oembed,
.portal-oembed iframe,
.portal-hero-video,
.portal-hero-image,
.portal-hero-image picture,
.portal-hero-image img,
.portal-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portal-hero-image picture {
  display: block;
}
.portal-hero-image img,
.portal-hero-video,
.portal-hero-fallback {
  object-fit: cover;
}
.portal-oembed iframe { border: 0; }
.portal-hero-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(calc(var(--vliver-font-size-hero-heading, 86px) * 0.35), 3vw, calc(var(--vliver-font-size-hero-heading, 86px) * 0.6));
  font-weight: 900;
  letter-spacing: .1em;
}
.portal-hero-copy-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}
.portal-hero-copy {
  color: #fff;
  padding-bottom: clamp(28px, 4vw, 52px);
}
.portal-hero-copy .eyebrow {
  color: var(--vliver-color-hero-eyebrow, rgba(255,255,255,.78));
}
.portal-hero-copy h1 {
  margin: 0;
  color: var(--vliver-color-hero-heading, #fff);
  max-width: none;
  line-height: 1.05;
  font-size: clamp(calc(var(--vliver-font-size-hero-heading, 86px) * 0.45), 6vw, var(--vliver-font-size-hero-heading, 86px));
}
.portal-hero-copy p {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: var(--vliver-font-size-hero-text, 16px);
  color: var(--vliver-color-hero-text, rgba(255,255,255,.92));
}
.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.channel-tag {
  background: rgba(47, 137, 255, .08);
  border: 1px solid rgba(47, 137, 255, .18);
  color: var(--muted);
}

.channel-description {
  margin: 12px 0 0;
  line-height: 1.75;
}

.channel-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.channel-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(117,196,255,.22), rgba(255,255,255,.92)),
    var(--surface-soft);
  border-bottom: 1px solid rgba(219, 231, 247, 0.96);
}

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

.channel-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 26px;
}

.channel-card h3 {
  margin: 0;
}

button.channel-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.channel-thumb:focus-visible,
.channel-detail-button:focus-visible,
.channel-overlay-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, #ffffff 45%);
  outline-offset: 3px;
}

.channel-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--primary-dark);
  font-weight: 900;
  letter-spacing: .16em;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.82), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, rgba(117,196,255,.24), rgba(255,255,255,.96));
}

.channel-card-actions {
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 18px;
}

.channel-detail-button {
  border: 0;
  cursor: pointer;
}

body.channel-overlay-open {
  overflow: hidden;
}

.channel-overlay[hidden] {
  display: none;
}

.channel-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.channel-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 52, .56);
  backdrop-filter: blur(6px);
}

.channel-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(219, 231, 247, .96);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(117,196,255,.18), rgba(117,196,255,0) 34%),
    rgba(255,255,255,.98);
  box-shadow: 0 28px 70px rgba(7, 28, 71, .28);
}

.channel-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(219, 231, 247, .96);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--primary-dark);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.channel-overlay-layout {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.channel-overlay-thumb {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(219, 231, 247, .96);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(117,196,255,.22), rgba(255,255,255,.92)),
    var(--surface-soft);
}

.channel-overlay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-overlay-body {
  padding-right: 28px;
}

.channel-overlay-body .eyebrow {
  margin: 4px 0 8px;
}

.channel-overlay-body h3 {
  margin: 0;
  color: var(--vliver-color-card-heading, var(--vliver-color-heading, var(--text)));
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.22;
}

.channel-overlay-description {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.channel-overlay-meta {
  margin-top: 22px;
}

.channel-overlay-meta-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .08em;
}
