:root {
  --sagoa-bg: #120b18;
  --sagoa-bg-2: #201029;
  --sagoa-panel: #2a1834;
  --sagoa-panel-soft: #392048;
  --sagoa-lavender: #d9bcff;
  --sagoa-purple: #aa78e8;
  --sagoa-toxic: #b7ffcf;
  --sagoa-pink: #ffb7ea;
  --sagoa-cream: #fff4fb;
  --sagoa-muted: rgba(255, 244, 251, 0.72);
  --sagoa-border: rgba(217, 188, 255, 0.28);
  color: var(--sagoa-cream);
  background: var(--sagoa-bg);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(170, 120, 232, 0.34), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(183, 255, 207, 0.16), transparent 28%),
    linear-gradient(180deg, #170c20 0%, #0d0912 42%, #160a1d 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid var(--sagoa-border);
  border-radius: 8px;
  background: var(--sagoa-panel);
  color: var(--sagoa-cream);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

button:hover {
  border-color: rgba(183, 255, 207, 0.72);
  transform: translateY(-1px);
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 11, 24, 0.88), rgba(45, 19, 59, 0.34) 48%, rgba(18, 11, 24, 0.18)),
    url("./assets/sagoa-live-header.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(transparent, var(--sagoa-bg));
  pointer-events: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 11, 24, 0.2), rgba(18, 11, 24, 0.86)),
    radial-gradient(circle at 75% 44%, rgba(217, 188, 255, 0.18), transparent 20%),
    repeating-linear-gradient(90deg, rgba(255, 244, 251, 0.05) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.site-nav {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(247, 239, 227, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
}

.brand {
  margin-right: auto;
  color: var(--sagoa-cream);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(650px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10vh 0 16vh;
  margin-left: max(16px, calc((100vw - 1120px) / 2));
  align-self: end;
}

.hero__content > * {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--sagoa-toxic);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 8vw, 6.2rem);
  line-height: 1;
  text-shadow: 0 0 28px rgba(170, 120, 232, 0.45);
}

.lead {
  max-width: 690px;
  color: rgba(255, 244, 251, 0.86);
  font-size: clamp(1rem, 2.3vw, 1.22rem);
  line-height: 1.8;
  font-weight: 700;
}

.hero__stream {
  width: min(560px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  border: 1px solid rgba(217, 188, 255, 0.38);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(32, 16, 41, 0.76);
  box-shadow: 0 18px 55px rgba(32, 8, 52, 0.34);
  backdrop-filter: blur(12px);
}

.hero__stream span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #f44e9e;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

.hero__stream strong {
  color: var(--sagoa-cream);
  font-size: 1rem;
}

.hero__stream small {
  color: var(--sagoa-muted);
  font-weight: 800;
}


main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 66px;
}

.daily-pick {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 20px;
  margin: -78px 0 24px;
  border: 1px solid rgba(217, 188, 255, 0.36);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at 5% 15%, rgba(183, 255, 207, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(66, 35, 81, 0.94), rgba(30, 13, 40, 0.96));
  box-shadow: 0 24px 90px rgba(18, 6, 26, 0.56);
  overflow: hidden;
}

.daily-pick::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 244, 251, 0.16);
  border-radius: 15px;
  pointer-events: none;
}

.daily-pick__avatar {
  position: relative;
  z-index: 1;
  min-height: 270px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(18, 11, 24, 0.54);
}

.daily-pick__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.daily-pick__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.daily-pick h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 4vw, 2.55rem);
}

.daily-pick__comment {
  margin: 0;
  color: rgba(255, 244, 251, 0.86);
  font-weight: 800;
  line-height: 1.75;
}

.daily-pick__card {
  border: 1px solid rgba(183, 255, 207, 0.28);
  border-radius: 14px;
  padding: 14px;
  background: rgba(18, 11, 24, 0.48);
}

.daily-pick__type {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(183, 255, 207, 0.16);
  color: var(--sagoa-toxic);
  font-size: 0.72rem;
  font-weight: 900;
}

.daily-pick h3 {
  margin: 8px 0 8px;
  color: var(--sagoa-cream);
  font-size: clamp(1.12rem, 3vw, 1.55rem);
}

.daily-pick__card p {
  margin: 0;
  color: var(--sagoa-muted);
  font-weight: 750;
}

.daily-pick__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.daily-pick__button {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(183, 255, 207, 0.48);
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(135deg, #a774e6, #7b4ab8);
  color: #fff;
  font-weight: 900;
}

.daily-pick__button--ghost {
  border-color: rgba(217, 188, 255, 0.42);
  background: rgba(255, 244, 251, 0.08);
}

.frog-banner {
  margin: 0 0 24px;
  border: 1px solid rgba(217, 188, 255, 0.34);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(32, 16, 41, 0.74);
  box-shadow: 0 18px 60px rgba(18, 6, 26, 0.38);
}

.frog-banner img {
  display: block;
  width: 100%;
  height: clamp(150px, 22vw, 250px);
  object-fit: cover;
  object-position: center;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 240px) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.search-field,
.sort-field {
  display: grid;
  gap: 8px;
  color: var(--sagoa-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.search-field input,
.sort-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(217, 188, 255, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(32, 16, 41, 0.9);
  color: var(--sagoa-cream);
}

.sort-field select {
  cursor: pointer;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tab {
  padding: 0 14px;
  color: var(--sagoa-muted);
}

.tab.is-active {
  border-color: var(--sagoa-toxic);
  background: #3d2250;
  color: var(--sagoa-cream);
}

.archive-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.archive-summary div {
  border: 1px solid rgba(217, 188, 255, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(32, 16, 41, 0.78);
}

.archive-summary span {
  display: block;
  color: var(--sagoa-cream);
  font-size: 1.8rem;
  font-weight: 900;
}

.archive-summary small {
  color: var(--sagoa-muted);
  font-weight: 800;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-group__title {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  border-left: 4px solid var(--sagoa-toxic);
  padding: 4px 0 4px 12px;
  color: var(--sagoa-cream);
  font-size: clamp(1.16rem, 3vw, 1.55rem);
  line-height: 1.35;
}

.guidelines {
  margin: 0 0 24px;
  border: 1px solid rgba(217, 188, 255, 0.24);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(170, 120, 232, 0.22), rgba(32, 16, 41, 0.84)),
    var(--sagoa-panel);
}

.guidelines h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3.5vw, 2.2rem);
}

.guidelines__body {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.guidelines__body p {
  margin: 0;
  color: rgba(255, 244, 251, 0.82);
  line-height: 1.9;
  font-weight: 650;
}

.prompt-card {
  position: relative;
  border: 1px solid rgba(217, 188, 255, 0.24);
  border-radius: 18px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(57, 32, 72, 0.94), rgba(32, 16, 41, 0.98));
  overflow: visible;
  box-shadow: 0 16px 45px rgba(14, 6, 20, 0.28);
}

.prompt-card.is-open {
  border-color: rgba(183, 255, 207, 0.54);
}

.prompt-card h2 {
  margin: 0;
  color: var(--sagoa-cream);
  font-size: 1rem;
  line-height: 1.42;
}

.prompt-card__toggle {
  position: relative;
  width: 100%;
  min-height: clamp(106px, 10vw, 136px);
  border: 0;
  border-radius: 17px 17px 12px 12px;
  padding: 22px 26% 22px 22%;
  background:
    linear-gradient(90deg, rgba(255, 244, 251, 0.04), rgba(255, 244, 251, 0.18) 34%, rgba(255, 244, 251, 0.04) 72%),
    url("./assets/sagoa-accordion-banner.png") center / 100% 100% no-repeat;
  color: #2a1438;
  text-align: left;
  font-size: clamp(0.98rem, 1.45vw, 1.2rem);
  line-height: 1.42;
  font-weight: 900;
  text-shadow:
    0 2px 0 rgba(255, 244, 251, 0.62),
    0 0 12px rgba(255, 244, 251, 0.42);
  box-shadow: none;
  overflow-wrap: anywhere;
}

.prompt-card__toggle:hover {
  background:
    linear-gradient(90deg, rgba(255, 244, 251, 0.1), rgba(255, 244, 251, 0.26) 34%, rgba(255, 244, 251, 0.06) 72%),
    url("./assets/sagoa-accordion-banner.png") center / 100% 100% no-repeat;
  filter: brightness(1.04) saturate(1.04);
  transform: none;
}

.prompt-card__toggle::before {
  content: none;
}

.prompt-card__toggle::after {
  content: "開";
  position: absolute;
  right: 5.2%;
  top: 50%;
  width: clamp(44px, 5.2vw, 66px);
  height: clamp(44px, 5.2vw, 66px);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5d3678;
  font-size: clamp(0.86rem, 1.25vw, 1.12rem);
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(255, 244, 251, 0.75),
    0 0 12px rgba(255, 244, 251, 0.7);
  transform: translateY(-50%);
}

.prompt-card__toggle[aria-expanded="true"]::after {
  content: "閉";
}

.prompt-card.is-open .prompt-card__toggle {
  border-radius: 17px 17px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 244, 251, 0.07), rgba(183, 255, 207, 0.18) 34%, rgba(255, 244, 251, 0.04) 72%),
    url("./assets/sagoa-accordion-banner.png") center / 100% 100% no-repeat;
  color: #2a1438;
}

.prompt-card__details {
  position: relative;
  display: grid;
  gap: 12px;
  border-top: 0;
  border-radius: 0 0 17px 17px;
  padding: 18px 16px 16px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(11, 7, 14, 0.55), transparent 42px),
    rgba(20, 10, 27, 0.72);
}

.prompt-card__details::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(183, 255, 207, 0.55), transparent);
}

.prompt-card__details[hidden] {
  display: none;
}

.prompt-card__meta[hidden] {
  display: none;
}

.prompt-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-card__type {
  border: 1px solid rgba(183, 255, 207, 0.36);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--sagoa-toxic);
  font-size: 0.74rem;
  font-weight: 900;
}

.prompt-card__date {
  margin-left: auto;
  color: rgba(255, 244, 251, 0.56);
  font-size: 0.76rem;
  font-weight: 800;
}

.prompt-card__meta {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(217, 188, 255, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(10, 6, 14, 0.38);
}

.prompt-card__meta div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: baseline;
}

.prompt-card__meta dt,
.prompt-card__meta dd {
  margin: 0;
}

.prompt-card__meta dt {
  color: rgba(255, 244, 251, 0.58);
  font-size: 0.74rem;
  font-weight: 900;
}

.prompt-card__meta dd,
.prompt-card__meta a {
  min-width: 0;
  color: #f7c5ff;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.prompt-card__body {
  margin-bottom: 0;
  color: rgba(255, 244, 251, 0.82);
  line-height: 1.82;
  white-space: pre-line;
}

.prompt-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.prompt-card__tags li {
  border: 1px solid rgba(217, 188, 255, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #f7c5ff;
  font-size: 0.72rem;
  font-weight: 800;
}

.prompt-card__copy {
  border-color: var(--sagoa-toxic);
  background: linear-gradient(135deg, #7c49b8, #56306f);
  color: #fff;
  font-weight: 900;
}

.sagoa-footer {
  width: min(1120px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 auto 34px;
  border: 1px solid rgba(217, 188, 255, 0.28);
  border-radius: 20px;
  padding: 14px 18px;
  background: rgba(32, 16, 41, 0.82);
}


.sagoa-footer__top {
  display: block;
  border-radius: 18px;
  transition: transform 160ms ease, filter 160ms ease;
}

.sagoa-footer__top:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 18px rgba(217, 188, 255, 0.58));
}

.sagoa-footer img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 244, 251, 0.9);
}

.sagoa-footer p:last-child {
  margin: 0;
  color: rgba(255, 244, 251, 0.82);
  font-weight: 800;
  line-height: 1.75;
}

@media (max-width: 880px) {

  .daily-pick {
    grid-template-columns: 1fr;
    margin-top: -44px;
  }

  .daily-pick__avatar {
    min-height: 220px;
  }

  
  .toolbar {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    justify-content: flex-start;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .prompt-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-nav {
    min-height: 62px;
    gap: 10px;
    font-size: 0.82rem;
  }

  .site-nav a:not(.brand) {
    display: none;
  }

  .hero {
    min-height: 68vh;
  }

  .hero__content {
    padding-bottom: 11vh;
  }

  .hero__stream {
    border-radius: 16px;
  }

  .daily-pick {
    padding: 14px;
  }

  .prompt-card__toggle {
    min-height: 96px;
    padding: 18px 28% 18px 21%;
    font-size: 0.94rem;
  }

  .prompt-card__toggle::after {
    right: 4.8%;
    width: 42px;
    height: 42px;
    font-size: 0.78rem;
  }

  .archive-summary {
    grid-template-columns: 1fr;
  }

  .prompt-card {
    min-height: 0;
  }

  .sagoa-footer {
    grid-template-columns: 1fr;
  }

  

  .sagoa-footer img {
    width: min(180px, 100%);
    height: 180px;
  }
}
