/* サブページ・ナビ・フッターの共通部品。既存トップの色トークンをそのまま使う。 */
:root {
  --site-neon: #b18cff;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: transparent;
  color: var(--color-text);
}

.site-header .nav-toggle {
  color: var(--color-surface);
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform var(--transition-ui), opacity var(--transition-ui);
}

.site-nav a[aria-current="page"] {
  color: var(--color-purple);
  text-shadow: 0 0 12px rgba(177, 140, 255, .58);
}

.home-page .site-header {
  transition: opacity .3s ease, transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

html:not(.intro-ready) .home-page .site-header {
  opacity: .18;
  pointer-events: none;
  transform: translateY(-8px);
}

.site-footer {
  position: relative;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-block: 14px;
}

.footer-nav a {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-purple);
}

.page-main {
  position: relative;
  isolation: isolate;
  min-height: 72vh;
  padding-top: 67px;
  overflow: clip;
  /* 1枚目：固定ヘッダーの裏になる上端の帯。明るいままだと、上から薄くなるヘッダーのグラデーション越しに灰色のにごった帯に見えるため、先頭の紺と同じ色にする。 */
  background:
    linear-gradient(100deg, #1d2343 0%, #2e3558 48%, #343a5d 100%) top / 100% var(--page-main-top, 67px) no-repeat,
    radial-gradient(circle at 12% 12%, rgba(127, 216, 240, .15), transparent 24rem),
    radial-gradient(circle at 92% 35%, rgba(177, 140, 255, .15), transparent 27rem),
    var(--color-base);
}

.page-main > .snow-canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.songs-main::before {
  position: absolute;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  right: -14rem;
  top: 8rem;
  border-radius: 50%;
  background: var(--site-neon);
  box-shadow: 0 0 96px 42px var(--site-neon);
  content: "";
  opacity: .22;
  transition: background-color .45s ease, box-shadow .45s ease;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: min(48vw, 440px);
  padding-block: clamp(84px, 11vw, 148px) clamp(58px, 7vw, 98px);
  border-bottom: 1px solid rgba(255, 255, 255, .52);
  background-color: var(--color-night);
  background-image:
    linear-gradient(100deg, rgba(28, 34, 66, .93) 0%, rgba(47, 54, 91, .84) 48%, rgba(54, 57, 95, .55) 100%),
    linear-gradient(125deg, rgba(177, 140, 255, .16), rgba(127, 216, 240, .08)),
    var(--page-hero-image);
  background-position: center, center, var(--page-hero-image-position, right center);
  background-repeat: no-repeat;
  background-size: cover, cover, var(--page-hero-image-size, cover);
  color: var(--color-surface);
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  z-index: 0;
  content: "";
}

.page-hero > .page-shell {
  position: relative;
  z-index: 1;
}

.page-hero::before {
  inset: -25%;
  background: repeating-linear-gradient(125deg, transparent 0 42px, rgba(255, 255, 255, .07) 43px 44px, transparent 45px 84px);
  transform: translate3d(0, var(--hero-snow-shift, 0px), 0);
}

.page-hero::after {
  width: 32rem;
  height: 32rem;
  right: -11rem;
  bottom: -18rem;
  border: 1px solid rgba(127, 216, 240, .65);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(127, 216, 240, .32), inset 0 0 60px rgba(177, 140, 255, .18);
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, .72);
}

.page-hero h1 {
  max-width: 12em;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(255, 255, 255, .9), 0 0 24px rgba(177, 140, 255, .8), 0 0 56px rgba(127, 216, 240, .45);
}

/* 見出しの下の説明文。うたのきろくでは説明文の後ろに歌詞の枠が続くため、:last-child ではなく h1 の直後で指定する。 */
.page-hero h1 + p {
  max-width: 40rem;
  margin-top: 23px;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 12px rgba(25, 31, 62, .72);
}

/* ページ内容に合わせて、既存ビジュアルを右側から雪越しに見せる。 */
body[data-page="profile"],
body[data-page="guidelines"],
body[data-page="links"] {
  --page-hero-image-y: top;
}

body[data-page="profile"] {
  --page-hero-image: url("images/character-about-800.webp");
  --page-hero-image-position: right 18% top;
  --page-hero-image-size: auto 118%;
}

body[data-page="songs"] {
  --page-hero-image: url("images/outro-stage-1536.webp");
  --page-hero-image-position: center;
}

body[data-page="schedule"],
body[data-page="admin"] {
  --page-hero-image: url("images/story-room-1536.webp");
  --page-hero-image-position: right center;
}

body[data-page="guidelines"] {
  --page-hero-image: url("images/hero-1536.webp");
  --page-hero-image-position: right top;
}

body[data-page="links"] {
  --page-hero-image: url("images/character-fan-800.webp");
  --page-hero-image-position: right 18% top;
  --page-hero-image-size: auto 112%;
}

.site-section {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid rgba(223, 228, 241, .85);
}

.site-section.is-white {
  background: rgba(255, 255, 255, .8);
}

/* 最終章だけは次の章への間隔が不要なため、内容の終わりに合わせる。 */
body[data-page="profile"] .site-section:last-child,
body[data-page="guidelines"] .site-section:last-child,
body[data-page="links"] .site-section:last-child {
  padding-bottom: clamp(64px, 7vw, 88px);
}

.site-heading {
  margin-bottom: 42px;
}

.site-heading .eyebrow {
  color: var(--color-purple);
}

.site-heading h2 {
  margin-top: 10px;
}

.site-lead {
  max-width: 47rem;
  font-size: 18px;
  line-height: 2;
}

/* 自己紹介のように段落が続くとき、段落の区切りが見えるよう間を空ける。 */
.site-lead + .site-lead {
  margin-top: 1em;
}

.site-card,
.info-card,
.schedule-week-card,
.song-record,
.link-panel,
.admin-panel {
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 28px rgba(177, 140, 255, .1);
}

.site-card {
  padding: clamp(22px, 4vw, 38px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 32px;
  align-items: start;
}

.profile-name {
  color: var(--color-purple);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  text-shadow: 0 0 22px rgba(177, 140, 255, .32);
}

.profile-reading,
.profile-quote {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.profile-quote {
  margin-top: 16px;
  color: var(--color-text);
  font-size: 16px;
  letter-spacing: .04em;
}

.profile-image {
  position: relative;
  padding: 12px;
  border: 1px solid var(--color-cyan);
  background: linear-gradient(145deg, rgba(127, 216, 240, .14), rgba(255, 255, 255, .76));
}

.profile-image img {
  width: 100%;
  height: auto;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.profile-meta div {
  padding: 16px;
  border-top: 2px solid var(--color-purple);
  background: rgba(255, 255, 255, .72);
}

.profile-meta dt,
.detail-list dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-meta dd,
.detail-list dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-line);
  background: var(--color-line);
}

.detail-list div {
  padding: 20px 22px;
  background: rgba(255, 255, 255, .9);
}

/* 2列で項目が奇数のとき、最後の行の右に線の色の空き箱が出ないよう、最後の項目を横いっぱいにする。 */
.detail-list div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag-cloud span {
  padding: 7px 12px;
  border: 1px solid var(--color-cyan);
  background: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 700;
}

.cursor-snow {
  position: fixed;
  z-index: 80;
  color: var(--color-cyan);
  font-size: 16px;
  pointer-events: none;
  text-shadow: 0 0 12px #fff, 0 0 22px var(--color-purple);
  animation: cursor-snow-fall .85s ease-out forwards;
}

.lyrics-snow {
  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(25, 31, 62, .26);
}

.page-hero .lyrics-snow {
  margin-top: 28px;
}

.lyrics-snow p {
  position: absolute;
  margin: 0;
  color: rgba(255, 255, 255, .96);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(127, 216, 240, .8), 0 0 26px rgba(177, 140, 255, .7);
  animation: lyric-fall .8s var(--ease-out) forwards;
}

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

.song-record {
  position: relative;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 20px;
  padding: 12px;
  border-color: var(--song-color, var(--color-purple));
  transition: transform var(--transition-ui), box-shadow var(--transition-ui), background-color var(--transition-ui);
}

.song-record:focus-within,
.song-record:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 0 9px color-mix(in srgb, var(--song-color, var(--color-purple)) 50%, transparent), 0 0 42px color-mix(in srgb, var(--song-color, var(--color-purple)) 25%, transparent);
}

.song-jacket {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-night);
}

.song-jacket::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, color-mix(in srgb, var(--song-color) 52%, transparent));
  content: "";
}

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

.song-kind,
.song-date,
.song-credits {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.song-record h2 {
  margin-top: 5px;
  font-size: clamp(19px, 2vw, 25px);
}

.song-credits {
  margin-top: 12px;
  line-height: 1.7;
}

.song-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 13px;
}

.song-links a,
.text-link {
  color: var(--color-purple);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.next-stream {
  position: relative;
  padding: clamp(26px, 5vw, 50px);
  overflow: hidden;
  border: 1px solid var(--color-cyan);
  background: linear-gradient(135deg, #1d2543, #303b68);
  color: #fff;
  box-shadow: 0 0 42px rgba(127, 216, 240, .24);
}

.next-stream::after {
  position: absolute;
  width: 15rem;
  height: 15rem;
  right: -4rem;
  top: -9rem;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 50%;
  content: "";
}

.next-stream .eyebrow,
.next-stream p {
  color: rgba(255, 255, 255, .76);
}

.next-stream h2 {
  position: relative;
  z-index: 1;
  max-width: 25rem;
  margin-top: 10px;
  font-size: clamp(27px, 4vw, 47px);
}

.next-stream time {
  display: block;
  margin-top: 22px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.countdown {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 27px;
  padding: 12px 18px;
  border: 1px solid var(--color-pink);
  color: #fff;
  font-size: clamp(19px, 3vw, 31px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  line-height: 1.3;
  text-shadow: 0 0 7px #fff, 0 0 18px var(--color-pink), 0 0 32px var(--color-cyan);
  box-shadow: inset 0 0 16px rgba(255, 182, 213, .25), 0 0 20px rgba(255, 182, 213, .42);
}

.timezone-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.timezone-switch button[aria-pressed="true"] {
  border-color: var(--color-purple);
  background: var(--color-purple);
  color: #fff;
}

.schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.schedule-week-card {
  min-height: 220px;
  padding: 17px 12px;
  border-top: 3px solid var(--color-purple);
}

.schedule-week-card:nth-child(3n + 2) { border-top-color: var(--color-cyan); }
.schedule-week-card:nth-child(3n) { border-top-color: var(--color-pink); }
.schedule-week-card.is-off { opacity: .62; }

.schedule-week-card .day {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.schedule-week-card time {
  display: block;
  margin-top: 16px;
  color: var(--color-purple);
  font-size: 18px;
  font-weight: 700;
}

.schedule-week-card h3 {
  margin-top: 13px;
  font-size: 15px;
}

.schedule-week-card p:last-child {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.6;
}

.schedule-events {
  display: grid;
  gap: 12px;
}

.schedule-event {
  display: grid;
  grid-template-columns: minmax(10.5rem, .7fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-cyan);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 24px rgba(127, 216, 240, .08);
}

.schedule-event.is-past {
  opacity: .48;
}

.schedule-event-date {
  color: var(--color-purple);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.schedule-event-date time {
  display: block;
}

.schedule-event-main h3 {
  margin-top: 4px;
  font-size: 18px;
}

.schedule-event-main p {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
}

.schedule-event-kind {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--color-pink);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
}

.schedule-event-link {
  justify-self: end;
  white-space: nowrap;
}

.guideline-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  background: #fff;
}

.guideline-table {
  width: 100%;
  /* 720px 固定だと、枠がそれより狭い幅（スマホ・768px）で右の列が切れ、表の中に横スクロールが出るため、枠の幅を上限にする。 */
  min-width: min(720px, 100%);
  border-collapse: collapse;
  font-size: 13px;
}

.guideline-table th,
.guideline-table td {
  padding: 14px;
  border: 1px solid var(--color-line);
  text-align: left;
  vertical-align: middle;
}

.guideline-table th {
  background: rgba(242, 245, 251, .9);
}

.status-badge {
  display: inline-block;
  min-width: 4.8em;
  padding: 3px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

.status-ok { background: #54a98c; }
.status-ask { background: #bd85d9; }
.status-no { background: #d86d86; }

.credit-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-left: 4px solid var(--color-cyan);
  background: rgba(255, 255, 255, .8);
}

.guideline-table-wrap + .credit-box {
  margin-top: 32px;
}

.credit-box code {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
}

.care-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.care-list li {
  padding: 16px 18px;
  border-left: 3px solid var(--color-pink);
  background: rgba(255, 255, 255, .76);
  font-weight: 700;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.link-panel {
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 22px;
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}

.link-panel:hover,
.link-panel:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 0 29px rgba(127, 216, 240, .22);
}

.link-panel p {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.link-panel h2 {
  margin-top: 10px;
  font-size: 25px;
}

.link-panel a {
  margin-top: auto;
}

/* 名前が2行になったカードでも、説明文とリンクがくっつかないよう最低限の間を取る。 */
.link-panel h2 + p {
  margin-bottom: 16px;
}

.question-card {
  position: relative;
  max-width: 680px;
  padding: clamp(24px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid var(--color-pink);
  background: linear-gradient(135deg, #fff, #fff4fa);
}

.question-card::before {
  position: absolute;
  right: 24px;
  top: 18px;
  color: var(--color-pink);
  content: "？";
  font-size: 130px;
  font-weight: 700;
  line-height: 1;
  opacity: .25;
}

.question-card h2,
.question-card p,
.question-card a { position: relative; }

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

.creator-credit article {
  padding: 22px;
  border-top: 2px solid var(--color-cyan);
  background: rgba(255, 255, 255, .78);
}

.creator-credit p {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.creator-credit h2 {
  margin-top: 6px;
  font-size: 22px;
}

.admin-main {
  padding-top: 67px;
  background: var(--color-base);
}

.admin-page-hero {
  min-height: min(42vw, 360px);
}

.demo-admin-notice {
  padding: 13px 24px;
  background: var(--color-night);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.admin-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 52px var(--gutter) 90px;
}

.admin-heading p {
  color: var(--color-muted);
}

.admin-panel {
  margin-top: 28px;
  padding: clamp(18px, 4vw, 32px);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-item {
  padding: 18px;
  border: 1px solid var(--color-line);
  background: #fff;
}

.admin-events {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-field {
  display: grid;
  gap: 5px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-field input,
.admin-field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--color-line);
  border-radius: 0;
  background: #fff;
  color: var(--color-text);
}

.admin-field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
}

.admin-field-check input {
  width: 20px;
  height: 20px;
}

.save-status {
  min-height: 1.9em;
  margin-top: 14px;
  color: var(--color-purple);
  font-size: 13px;
  font-weight: 700;
}

.site-ready [data-site-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.site-ready [data-site-reveal].is-visible {
  animation: section-in .65s var(--ease-out) both;
}

/* 到着時の見出しは点滅させず、共通の一方向フェードだけで表示する。 */
.site-ready .page-hero [data-site-reveal].is-visible h1 {
  animation: none;
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursor-snow-fall {
  from { opacity: .95; transform: translate(-50%, -50%) scale(.7); }
  to { opacity: 0; transform: translate(-50%, 22px) scale(1.25) rotate(35deg); }
}

@keyframes neon-light {
  0%, 16% { opacity: .16; text-shadow: none; }
  24% { opacity: 1; text-shadow: 0 0 8px #fff, 0 0 34px var(--color-cyan); }
  37% { opacity: .42; }
  54%, to { opacity: 1; text-shadow: 0 0 8px rgba(255, 255, 255, .9), 0 0 24px rgba(177, 140, 255, .8), 0 0 56px rgba(127, 216, 240, .45); }
}

@keyframes lyric-fall {
  from { opacity: 0; transform: translateY(-56px) rotate(-5deg); }
  78%, to { opacity: 1; transform: translateY(0) rotate(0); }
}
