:root {
  --bg: #06110c;
  --panel: #151925;
  --text: #eef3ff;
  --muted: #aab5ce;
  --line: #2d3447;
  --accent: #8ef0d4;
  --accent-blue: #7aa2ff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(4, 14, 9, 0.86), rgba(4, 14, 9, 0.94)),
    radial-gradient(circle at top left, rgba(142, 240, 212, 0.13), transparent 34rem),
    radial-gradient(circle at top right, rgba(77, 160, 98, 0.13), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family:
    "Zen Kaku Gothic New",
    system-ui,
    -apple-system,
    "Noto Sans JP",
    "Yu Gothic",
    sans-serif;
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(142, 240, 212, 0.08), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(96, 180, 92, 0.08), transparent 22rem),
    linear-gradient(120deg, rgba(255, 255, 255, 0.025), transparent 42%);
  z-index: -1;
}

a {
  color: var(--accent-blue);
}

a:hover {
  opacity: 0.85;
}

.container {
  width: min(980px, calc(100% - 40px));
  margin-inline: auto;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h2,
h3,
h4,
.site-title,
.section-kicker,
.page-title {
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
}

/* ===== ヘッダー ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 17, 12, 0.82);
  border-bottom: 1px solid rgba(55, 79, 62, 0.75);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(142, 240, 212, 0.08);
}

/* ===== ヒーロー ===== */

.hero {
  padding: 76px 0 68px;
}

.hero-inner {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.label,
.section-kicker {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.title-logo-frame {
  width: min(760px, 100%);
  margin: 10px auto 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  filter:
    drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(142, 240, 212, 0.22));
}

.title-logo {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
}

.lead {
  max-width: 780px;
  margin: 0 auto;
  color: #dce5fb;
  font-size: clamp(17px, 2.1vw, 21px);
}

.hero-buttons,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-buttons {
  margin-top: 32px;
}

.center-actions {
  margin-top: 24px;
}

/* ===== ボタン ===== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: 999px;
  background: rgba(21, 25, 37, 0.88);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.button.primary {
  background: linear-gradient(135deg, rgba(142, 240, 212, 0.95), rgba(112, 198, 112, 0.95));
  color: #081015;
  border-color: transparent;
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* ===== クイック情報 ===== */

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 780px;
  margin: 36px auto 0;
}

.quick-info div {
  background: rgba(17, 29, 22, 0.74);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 16px;
}

.quick-info dt {
  color: var(--muted);
  font-size: 13px;
}

.quick-info dd {
  margin: 4px 0 0;
  font-weight: 800;
}

/* ===== セクション共通 ===== */

.section {
  padding: 68px 0;
}

.section.alt {
  background: rgba(9, 28, 18, 0.28);
  border-top: 1px solid rgba(60, 92, 65, 0.55);
  border-bottom: 1px solid rgba(60, 92, 65, 0.55);
}

.section-head {
  text-align: center;
  margin-bottom: 30px;
}

.section-head h2,
.page-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin: 0;
}

.center-text {
  text-align: center;
}

.grid,
.download-grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-inline: auto;
}

.activity-grid.two-column,
.contact-card.two-column {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.download-panel,
.log {
  background: rgba(21, 25, 37, 0.86);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card.wide {
  max-width: 920px;
  margin: 18px auto 0;
}

.card h3,
.download-panel h3,
.log h3 {
  margin-top: 0;
}

.card ul {
  margin: 0;
  padding-left: 1.25em;
}

.card p,
.download-panel p,
.log p,
.notice p,
.music-card p,
.contact-card p,
.link-card p,
.work-body p,
.history-item p,
.voice-item p,
.log-article p,
.zip-card p,
.staff-profile p,
.music-preview-card p,
.creator-body p,
.logs-summary-card p {
  font-size: 16px;
  line-height: 1.85;
}

.muted,
.note {
  color: var(--muted);
}

.note {
  font-size: 14px;
}

/* ===== スクリーンショットスライダー ===== */

.screenshot-slider {
  position: relative;
  width: min(900px, 100%);
  aspect-ratio: 4 / 3;
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(142, 240, 212, 0.08), transparent 45%),
    radial-gradient(circle at bottom right, rgba(112, 198, 112, 0.10), transparent 48%),
    rgba(0, 0, 0, 0.38);
  box-shadow: var(--shadow);
}

.screenshot-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 900ms ease,
    transform 1200ms ease;
}

.screenshot-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.screenshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
}

.screenshot-slide .placeholder-text {
  display: none;
}

.screenshot-slide.is-placeholder {
  display: grid;
  place-items: center;
}

.screenshot-slide.is-placeholder .placeholder-text {
  display: block;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(238, 243, 255, 0.35);
}

.slider-dots span.is-active {
  width: 24px;
  background: var(--accent);
}

/* ===== PV ===== */

.pv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1080px;
  margin-inline: auto;
}

.pv-card {
  background: rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.pv-card h3 {
  margin-top: 0;
}

.video-frame,
.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(96, 132, 100, 0.48);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ===== ダウンロード ===== */

.download-grid {
  max-width: 980px;
  margin-inline: auto;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 26px 32px;
}

.download-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-body h3 {
  margin-bottom: 12px;
}

.download-body p {
  margin: 0 0 16px;
}

.download-info {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.download-info li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(96, 132, 100, 0.48);
}

.download-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.download-action .note {
  margin: 8px 0 0;
}

/* ===== 音楽室 ===== */

.music-preview-wrap {
  max-width: 820px;
  margin-inline: auto;
}

.music-preview-card,
.music-card,
.zip-card,
.music-page-block {
  background: rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.music-intro {
  margin: 0 0 16px;
  color: var(--text);
  font-family:
    "Zen Kaku Gothic New",
    system-ui,
    -apple-system,
    "Noto Sans JP",
    "Yu Gothic",
    sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.music-preview-list {
  display: grid;
  gap: 10px;
}

.music-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.music-card-simple {
  display: block;
  padding: 14px 16px;
}

.music-card audio,
.music-card-simple audio {
  width: 100%;
  display: block;
}

.card-head-row.plain {
  border-bottom: 1px solid rgba(96, 132, 100, 0.48);
  margin-bottom: 14px;
  padding-bottom: 8px;
}

.compact-actions {
  margin-top: 16px;
}

.download-only-grid {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin-inline: auto;
}

/* ===== 秘密のパスワード ===== */

.secret-list {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin-inline: auto;
}

.secret-card {
  background:
    radial-gradient(circle at top left, rgba(142, 240, 212, 0.12), transparent 48%),
    rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(142, 240, 212, 0.24);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.secret-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.secret-card h3 {
  margin: 0 0 10px;
}

/* ===== 制作記録 ===== */

.activity-grid {
  display: grid;
  gap: 18px;
  max-width: 1080px;
  margin-inline: auto;
}

.activity-card {
  background: rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.activity-card h3 {
  margin-top: 0;
  border-bottom: 1px solid rgba(96, 132, 100, 0.48);
  padding-bottom: 10px;
}

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(96, 132, 100, 0.48);
  margin-bottom: 10px;
}

.card-head-row h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.small-link,
.text-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.scroll-card {
  display: flex;
  flex-direction: column;
  height: 320px;
  min-height: 0;
}

.scroll-area {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: scroll;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.mini-log {
  padding: 14px 0;
  border-bottom: 1px solid rgba(96, 132, 100, 0.48);
}

.mini-log:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-log time,
.tweet-list time,
.update-list time,
.history-item time,
.voice-item time,
.log-article time {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.mini-log h4 {
  margin: 0 0 6px;
}

.mini-log p {
  margin: 0;
}

.tweet-list,
.update-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tweet-list li,
.update-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(96, 132, 100, 0.48);
}

.tweet-list li:last-child,
.update-list li:last-child {
  border-bottom: none;
}

.tweet-list p {
  margin: 0;
}

.tweet-list p,
.mini-log p,
.update-list span {
  white-space: pre-line;
}

.update-list span {
  display: block;
}

/* ===== スタッフ ===== */

.staff-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
}

.staff-cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.staff-card {
  background:
    linear-gradient(145deg, rgba(142, 240, 212, 0.08), transparent 38%),
    rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.staff-card.main-staff {
  border-color: rgba(142, 240, 212, 0.28);
}

.staff-role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.staff-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.staff-note {
  max-width: 980px;
  margin: 18px auto 0;
}

.staff-list {
  display: grid;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
}

.staff-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(96, 132, 100, 0.48);
}

.staff-list div:last-child {
  border-bottom: none;
}

.staff-list dt {
  color: var(--accent);
  font-weight: 800;
}

.staff-list dd {
  margin: 0;
}

/* ===== 関連リンク・問い合わせ ===== */

.link-grid,
.contact-card {
  display: grid;
  gap: 16px;
  margin-inline: auto;
}

.link-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

.link-card,
.contact-card > div {
  background: rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.link-card h3,
.contact-card h3 {
  margin: 0;
}

.centered-link-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.contact-card.contact-three-cards {
  max-width: 980px;
  grid-template-columns: repeat(3, 1fr);
}

.contact-card.contact-three-cards > div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card p {
  margin: 18px 0 0;
}

/* ===== 個別ページ共通 ===== */

.history-page,
.myaga-page,
.logs-page,
.music-page,
.staff-page {
  min-height: 72vh;
}

.history-list,
.voice-list,
.log-article-list {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin-inline: auto;
}

.history-item,
.voice-item,
.log-article,
.logs-summary-card {
  background: rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.logs-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto 22px;
}

.logs-summary-card h2,
.history-item h2,
.log-article h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.logs-summary-card ul {
  margin: 0;
  padding-left: 1.25em;
}

.history-item p,
.voice-item p,
.log-article p,
.logs-summary-card p {
  margin-bottom: 0;
}

.log-tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.long-text {
  display: grid;
  gap: 1em;
}

/* ===== みゃが・てんごく共通ページ ===== */

.myaga-work,
.creator-profile {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 22px;
  max-width: 980px;
  margin-inline: auto;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(122, 162, 255, 0.08), transparent 42%),
    rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.creator-profile.simple-profile {
  display: block;
  max-width: 780px;
}

.creator-thumb,
.work-thumb {
  min-height: 220px;
  border: 1px dashed rgba(170, 181, 206, 0.38);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at top left, rgba(142, 240, 212, 0.10), transparent 45%),
    rgba(0, 0, 0, 0.18);
}

.image-thumb {
  overflow: hidden;
  border-style: solid;
  padding: 12px;
  min-height: auto;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.12);
}

.image-thumb img {
  width: 100%;
  height: auto;
  max-height: 420px;
  min-height: 0;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent;
}

.creator-body h2,
.work-body h2 {
  margin: 0 0 10px;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ===== みゃが制作ゲーム スクリーンショット ===== */

.myaga-screenshot-slider {
  position: relative;
  width: min(900px, 100%);
  aspect-ratio: 4 / 3;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(142, 240, 212, 0.08), transparent 45%),
    radial-gradient(circle at bottom right, rgba(112, 198, 112, 0.10), transparent 48%),
    rgba(0, 0, 0, 0.38);
  box-shadow: var(--shadow);
}

.myaga-screenshot-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: myagaScreenshotFade 12s infinite;
}

.myaga-screenshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.35);
}

.myaga-screenshot-slide.slide-1 {
  animation-delay: 0s;
}

.myaga-screenshot-slide.slide-2 {
  animation-delay: 4s;
}

.myaga-screenshot-slide.slide-3 {
  animation-delay: 8s;
}

@keyframes myagaScreenshotFade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  38% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* ===== てんごくページ ===== */

.tengoku-work {
  grid-template-columns: 0.78fr 1.22fr;
}

.tengoku-card-thumb {
  max-width: 300px;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 12px;
}

.tengoku-card-thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 10px;
}

.tengoku-illust-card {
  width: min(560px, 100%);
  margin: 0 auto;
  background: rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.tengoku-illust-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(96, 132, 100, 0.62);
  background:
    radial-gradient(circle at top left, rgba(142, 240, 212, 0.08), transparent 45%),
    radial-gradient(circle at bottom right, rgba(112, 198, 112, 0.08), transparent 48%),
    rgba(0, 0, 0, 0.32);
}

.tengoku-illust-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation-duration: 22.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.tengoku-illust-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.22);
}

.tengoku-illust-slide.illust-1 {
  animation-name: tengokuIllustFadeA;
}

.tengoku-illust-slide.illust-2 {
  animation-name: tengokuIllustFadeB;
}

.tengoku-illust-slide.illust-3 {
  animation-name: tengokuIllustFadeC;
}

@keyframes tengokuIllustFadeA {
  0% {
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  24% {
    opacity: 1;
  }

  31% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes tengokuIllustFadeB {
  0% {
    opacity: 0;
  }

  35% {
    opacity: 0;
  }

  41% {
    opacity: 1;
  }

  57% {
    opacity: 1;
  }

  64% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes tengokuIllustFadeC {
  0% {
    opacity: 0;
  }

  68% {
    opacity: 0;
  }

  74% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  97% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* ===== 注意事項・フッター ===== */

.notice-section {
  padding-top: 32px;
}

.notice {
  max-width: 920px;
  margin-inline: auto;
  border-color: rgba(142, 240, 212, 0.22);
}

.site-footer {
  border-top: 1px solid rgba(96, 132, 100, 0.48);
  background: rgba(0, 0, 0, 0.18);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--muted);
}

/* ===== スマホ・タブレット調整 ===== */

@media (max-width: 980px) {
  .activity-grid.two-column,
  .staff-cards,
  .staff-cards.three,
  .contact-card.two-column,
  .contact-card.contact-three-cards,
  .grid.two,
  .download-panel,
  .myaga-work,
  .creator-profile,
  .link-grid,
  .pv-grid,
  .logs-summary-grid {
    grid-template-columns: 1fr;
  }

  .download-panel {
    padding: 22px;
  }

  .download-action {
    align-items: flex-start;
    text-align: left;
  }

  .contact-card.contact-three-cards > div {
    min-height: auto;
  }

  .centered-link-card {
    min-height: auto;
  }

  .tengoku-card-thumb {
    max-width: 280px;
  }

  .tengoku-illust-card {
    width: min(500px, 100%);
  }

  .tengoku-illust-slider {
    height: 480px;
  }

  .title-logo-frame {
    width: min(680px, 100%);
  }

  .title-logo {
    width: min(100%, 680px);
  }

  body {
    background:
      linear-gradient(rgba(4, 14, 9, 0.88), rgba(4, 14, 9, 0.94)),
      radial-gradient(circle at top left, rgba(142, 240, 212, 0.13), transparent 34rem),
      radial-gradient(circle at top right, rgba(77, 160, 98, 0.13), transparent 32rem),
      var(--bg);
  }
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 52px 0 50px;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .staff-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .music-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 26px, 980px);
  }

  .site-nav a {
    font-size: 13px;
  }

  .title-logo-frame {
    width: min(100%, 520px);
    margin-top: 6px;
    margin-bottom: 20px;
  }

  .title-logo {
    width: min(100%, 520px);
  }

  .activity-card,
  .staff-card,
  .card,
  .download-panel,
  .log,
  .music-card,
  .secret-card,
  .contact-card > div,
  .link-card,
  .history-item,
  .voice-item,
  .myaga-work,
  .creator-profile,
  .log-article,
  .logs-summary-card,
  .zip-card,
  .music-preview-card,
  .pv-card {
    padding: 18px;
  }

  .section {
    padding: 52px 0;
  }

  .scroll-card {
    height: 300px;
  }

  .scroll-area {
    max-height: none;
  }

  .card-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .image-thumb {
    max-width: 300px;
  }

  .image-thumb img {
    max-height: 360px;
  }

  .tengoku-card-thumb {
    max-width: 240px;
  }

  .tengoku-illust-card {
    padding: 12px;
  }

  .tengoku-illust-slider {
    height: 420px;
  }
}


/* ===== 情報表示・開発記録追加 ===== */

.compact-head {
  margin-bottom: 20px;
}

.information-panel {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin-inline: auto;
}

.information-card {
  background:
    radial-gradient(circle at top left, rgba(142, 240, 212, 0.10), transparent 42%),
    rgba(21, 25, 37, 0.90);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.information-card-primary {
  border-color: rgba(142, 240, 212, 0.42);
  background:
    linear-gradient(145deg, rgba(142, 240, 212, 0.14), transparent 42%),
    rgba(21, 25, 37, 0.94);
}

.info-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.information-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.information-card p:last-child {
  margin-bottom: 0;
}

.devlog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin-inline: auto;
}

.devlog-card,
.devlog-article {
  background:
    radial-gradient(circle at top left, rgba(142, 240, 212, 0.08), transparent 44%),
    rgba(21, 25, 37, 0.88);
  border: 1px solid rgba(96, 132, 100, 0.62);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.devlog-card h3,
.devlog-article h2 {
  margin: 0 0 10px;
}

.devlog-card p:last-child,
.devlog-article p:last-child {
  margin-bottom: 0;
}

.devlog-list {
  display: grid;
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
}

.devlog-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.devlog-gallery figure {
  margin: 0;
  border: 1px solid rgba(96, 132, 100, 0.48);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.devlog-gallery figure.is-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.devlog-gallery figure.is-placeholder::before {
  content: "Screenshot";
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.devlog-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.devlog-gallery figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}

.devlog-qa {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.devlog-qa > div {
  border-left: 3px solid rgba(142, 240, 212, 0.52);
  padding: 10px 0 10px 14px;
  background: rgba(142, 240, 212, 0.04);
}

.devlog-question {
  color: var(--accent);
  font-weight: 800;
  margin-top: 0;
}

.scroll-card {
  height: 430px;
}

.tweet-list p,
.mini-log p,
.update-list span {
  font-size: 17px;
  line-height: 1.95;
}

.tweet-list time,
.update-list time,
.mini-log time {
  font-size: 14px;
}

@media (max-width: 980px) {
  .devlog-preview-grid {
    grid-template-columns: 1fr;
  }

  .scroll-card {
    height: 380px;
  }
}

@media (max-width: 560px) {
.information-card,
  .devlog-card,
  .devlog-article {
    padding: 18px;
  }

  .devlog-gallery {
    grid-template-columns: 1fr;
  }

  .scroll-card {
    height: 360px;
  }

  .tweet-list p,
  .mini-log p,
  .update-list span {
    font-size: 16px;
  }
}


/* ===== v9 final adjustments ===== */

:root {
  --bg: #082719;
  --panel: #172131;
  --text: #f2f8ff;
  --muted: #c0cbe0;
  --line: #3d5d55;
  --accent: #8dffe0;
  --accent-blue: #9bb8ff;
}

body {
  background:
    linear-gradient(rgba(4, 30, 19, 0.58), rgba(3, 24, 17, 0.76)),
    radial-gradient(circle at 18% 8%, rgba(125, 255, 214, 0.36), transparent 35rem),
    radial-gradient(circle at 86% 12%, rgba(103, 232, 132, 0.30), transparent 34rem),
    radial-gradient(circle at 50% 78%, rgba(88, 171, 255, 0.16), transparent 42rem),
    var(--bg);
}

body::before {
  background:
    radial-gradient(circle at 16% 24%, rgba(142, 240, 212, 0.16), transparent 25rem),
    radial-gradient(circle at 80% 18%, rgba(124, 231, 128, 0.15), transparent 26rem),
    radial-gradient(circle at 55% 62%, rgba(118, 162, 255, 0.09), transparent 40rem),
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 48%);
}

.section.alt {
  background: rgba(12, 54, 34, 0.36);
  border-top-color: rgba(92, 176, 119, 0.70);
  border-bottom-color: rgba(92, 176, 119, 0.70);
}

.site-header {
  background: rgba(5, 25, 16, 0.88);
  border-bottom: 1px solid rgba(142, 240, 212, 0.24);
}

.header-inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: 28px;
}

.site-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 104px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: clamp(38px, 3.1vw, 56px);
  line-height: 1.05;
  white-space: nowrap;
  filter: drop-shadow(0 0 12px rgba(142, 240, 212, 0.12));
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 22px 52px;
  min-height: 104px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  color: #d9e5f2;
  font-size: clamp(20px, 1.35vw, 25px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--accent);
  background: transparent;
}

.info-ticker,
.ticker-viewport,
.ticker-track {
  display: none !important;
}

.card,
.download-panel,
.log,
.activity-card,
.pv-card,
.music-preview-card,
.music-card,
.zip-card,
.link-card,
.contact-card > div,
.staff-card,
.history-item,
.voice-item,
.log-article,
.logs-summary-card,
.devlog-card,
.devlog-article {
  background:
    radial-gradient(circle at top left, rgba(142, 255, 224, 0.07), transparent 45%),
    rgba(22, 29, 42, 0.88);
}

.download-action .button {
  min-height: 64px;
  padding: 16px 34px;
  font-size: 21px;
  font-weight: 900;
}

.download-action .button.disabled {
  font-size: 20px;
}

.activity-grid.three-column.activity-diary-first {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  max-width: 1080px;
}

.activity-grid.three-column.activity-diary-first .diary-link-card {
  grid-column: 1 / -1;
  width: min(520px, 100%);
  justify-self: center;
  min-height: 220px;
}

.activity-diary-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 128px;
  gap: 18px;
}

.diary-link-card .button.disabled {
  pointer-events: none;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }

  .site-title {
    justify-content: center;
    min-height: auto;
  }

  .site-nav {
    grid-template-columns: repeat(3, max-content);
    min-height: auto;
    gap: 14px 28px;
  }
}

@media (max-width: 720px) {
  .site-title {
    font-size: 32px;
  }

  .site-nav {
    grid-template-columns: repeat(2, max-content);
    gap: 12px 20px;
  }

  .site-nav a {
    font-size: 16px;
  }

  .activity-grid.three-column.activity-diary-first {
    grid-template-columns: 1fr;
  }

  .activity-grid.three-column.activity-diary-first .diary-link-card {
    grid-column: auto;
    width: 100%;
  }
}

/* ===== v10 header and activity refinements ===== */

.site-header {
  background: rgba(5, 27, 17, 0.90);
  border-bottom: 1px solid rgba(142, 240, 212, 0.24);
}

.header-inner {
  min-height: 122px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding-block: 16px;
}

.site-title {
  display: none !important;
}

.site-nav {
  grid-column: 1 / -1;
  width: min(1180px, 100%);
  min-height: 90px;
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: 22px 72px;
  margin-inline: auto;
}

.site-nav a {
  font-size: clamp(21px, 1.45vw, 27px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.update-list li:not(:last-child) {
  border-bottom: 1px solid rgba(96, 132, 100, 0.48);
}

@media (max-width: 1180px) {
  .header-inner {
    min-height: auto;
    padding-block: 18px;
  }

  .site-nav {
    width: 100%;
    min-height: auto;
    grid-template-columns: repeat(3, max-content);
    gap: 16px 34px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    grid-template-columns: repeat(2, max-content);
    gap: 12px 22px;
  }

  .site-nav a {
    font-size: 16px;
  }
}


/* ===== v11 Tanabata limited theme ===== */

body.season-tanabata {
  --bg: #073a42;
  --panel: #17253a;
  --text: #f7fbff;
  --muted: #d4dff0;
  --line: #5aa99b;
  --accent: #95ffe9;
  --accent-blue: #aab8ff;
  background:
    linear-gradient(rgba(5, 24, 31, 0.28), rgba(4, 28, 24, 0.60)),
    radial-gradient(ellipse at 18% 12%, rgba(86, 255, 226, 0.38), transparent 34rem),
    radial-gradient(ellipse at 82% 10%, rgba(137, 126, 255, 0.30), transparent 34rem),
    radial-gradient(ellipse at 50% 42%, rgba(41, 180, 255, 0.25), transparent 44rem),
    radial-gradient(ellipse at 52% 88%, rgba(127, 255, 204, 0.24), transparent 36rem),
    url("assets/tanabata-bg.webp") center top / cover fixed,
    var(--bg);
}

body.season-tanabata::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 245, 178, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 42%, rgba(160, 255, 238, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 48%, rgba(205, 178, 255, 0.26) 0 2px, transparent 3px),
    radial-gradient(ellipse at 18% 30%, rgba(118, 255, 230, 0.18), transparent 24rem),
    radial-gradient(ellipse at 78% 20%, rgba(160, 145, 255, 0.16), transparent 26rem),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 46%);
  animation: tanabataGlow 7s ease-in-out infinite alternate;
}

body.season-tanabata::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(150,255,235,0.72) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,230,150,0.78) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(190,170,255,0.62) 0 1px, transparent 2px);
  background-size: 140px 140px, 190px 190px, 240px 240px, 310px 310px;
  background-position: 0 0, 36px 72px, 84px 18px, 18px 120px;
  mix-blend-mode: screen;
  opacity: 0.58;
  animation: tanabataTwinkle 4.8s ease-in-out infinite alternate;
}

body.season-tanabata .hero {
  position: relative;
  overflow: hidden;
}

body.season-tanabata .hero::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 50%;
  width: min(900px, 76vw);
  height: 180px;
  transform: translateX(-50%) rotate(-8deg);
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(110, 245, 255, 0.34), transparent 63%),
    linear-gradient(90deg, transparent, rgba(171, 139, 255, 0.18), rgba(120, 255, 229, 0.24), transparent);
  filter: blur(8px);
  opacity: 0.72;
}

body.season-tanabata .hero::after {
  content: "";
  position: absolute;
  top: 24%;
  left: -16%;
  width: 210px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.94), rgba(145, 255, 232, 0.10));
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.84);
  transform: rotate(-18deg);
  animation: tanabataShootingStar 6.5s ease-in-out infinite;
  opacity: 0;
}

body.season-tanabata .site-header {
  background:
    linear-gradient(90deg, rgba(5, 39, 42, 0.92), rgba(8, 33, 49, 0.88), rgba(8, 48, 35, 0.92));
  border-bottom-color: rgba(142, 255, 232, 0.36);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

body.season-tanabata .site-nav a:hover {
  color: #fff2a8;
  text-shadow: 0 0 14px rgba(255, 242, 168, 0.52);
}

body.season-tanabata .section.alt {
  background: rgba(10, 72, 58, 0.38);
  border-top-color: rgba(142, 255, 232, 0.32);
  border-bottom-color: rgba(142, 255, 232, 0.32);
}

body.season-tanabata .card,
body.season-tanabata .download-panel,
body.season-tanabata .activity-card,
body.season-tanabata .pv-card,
body.season-tanabata .music-preview-card,
body.season-tanabata .music-card,
body.season-tanabata .zip-card,
body.season-tanabata .link-card,
body.season-tanabata .contact-card > div,
body.season-tanabata .staff-card {
  background:
    radial-gradient(circle at top left, rgba(155, 255, 234, 0.12), transparent 45%),
    radial-gradient(circle at bottom right, rgba(162, 146, 255, 0.10), transparent 48%),
    rgba(19, 30, 49, 0.84);
  border-color: rgba(142, 255, 232, 0.34);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(73, 255, 220, 0.06);
}

body.season-tanabata .title-logo-frame {
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 24px rgba(140, 255, 232, 0.38))
    drop-shadow(0 0 18px rgba(192, 154, 255, 0.26));
}

body.season-tanabata .button.primary {
  background: linear-gradient(135deg, rgba(143, 255, 229, 0.98), rgba(147, 183, 255, 0.96), rgba(255, 218, 139, 0.92));
  color: #07131b;
}

body.season-tanabata .section-kicker,
body.season-tanabata .label,
body.season-tanabata .mini-log time,
body.season-tanabata .tweet-list time,
body.season-tanabata .update-list time {
  color: #9bffed;
  text-shadow: 0 0 12px rgba(142, 255, 232, 0.28);
}

@keyframes tanabataGlow {
  from {
    opacity: 0.66;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes tanabataTwinkle {
  from {
    opacity: 0.34;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0.78;
    transform: translate3d(8px, -10px, 0) scale(1.012);
  }
}

@keyframes tanabataShootingStar {
  0%, 18% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }

  28% {
    opacity: 0.9;
  }

  52%, 100% {
    opacity: 0;
    transform: translate3d(150vw, 28vh, 0) rotate(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.season-tanabata::before,
  body.season-tanabata::after,
  body.season-tanabata .hero::after {
    animation: none;
  }
}


/* ===== v13 常設発光テーマ ===== */

body.site-glow {
  --bg: #0a2733;
  --panel: #17283a;
  --text: #f8fbff;
  --muted: #d2dced;
  --line: #70c9c2;
  --accent: #a4fff0;
  --accent-blue: #b4c3ff;
  background:
    linear-gradient(rgba(7, 27, 35, 0.38), rgba(6, 30, 31, 0.72)),
    radial-gradient(ellipse at 16% 10%, rgba(88, 255, 226, 0.28), transparent 32rem),
    radial-gradient(ellipse at 84% 12%, rgba(137, 126, 255, 0.22), transparent 34rem),
    radial-gradient(ellipse at 50% 50%, rgba(47, 185, 255, 0.18), transparent 46rem),
    url("assets/site-bg.webp") center top / cover fixed,
    var(--bg);
}

body.site-glow::before {
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.34) 0 1.5px, transparent 3px),
    radial-gradient(circle at 32% 38%, rgba(156, 255, 237, 0.30) 0 1.5px, transparent 3px),
    radial-gradient(circle at 70% 22%, rgba(255, 246, 190, 0.30) 0 1.5px, transparent 3px),
    radial-gradient(circle at 87% 48%, rgba(196, 176, 255, 0.28) 0 1.5px, transparent 3px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 48%);
  animation: siteGlowFloat 7s ease-in-out infinite alternate;
}

body.site-glow::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.92) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(151,255,237,0.72) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,231,164,0.70) 0 1px, transparent 2px);
  background-size: 150px 150px, 220px 220px, 300px 300px;
  background-position: 0 0, 44px 82px, 96px 24px;
  mix-blend-mode: screen;
  opacity: 0.48;
  animation: siteTwinkle 5s ease-in-out infinite alternate;
}

body.site-glow .site-header {
  background: linear-gradient(90deg, rgba(7, 39, 47, 0.92), rgba(10, 32, 55, 0.88), rgba(8, 47, 40, 0.92));
  border-bottom-color: rgba(164, 255, 240, 0.32);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

body.site-glow .site-nav {
  grid-template-columns: repeat(5, max-content);
  justify-content: center;
}

body.site-glow .site-nav a,
body.site-glow .section-head h2,
body.site-glow .page-title,
body.site-glow .card h3,
body.site-glow .download-panel h3,
body.site-glow .activity-card h3,
body.site-glow .staff-card h3,
body.site-glow .zip-card h3 {
  text-shadow:
    0 0 8px rgba(164, 255, 240, 0.25),
    0 0 18px rgba(135, 170, 255, 0.16);
}

body.site-glow .section-kicker,
body.site-glow .label,
body.site-glow .mini-log time,
body.site-glow .tweet-list time,
body.site-glow .update-list time {
  color: #a4fff0;
  text-shadow: 0 0 12px rgba(164, 255, 240, 0.35);
}

body.site-glow .download-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(164, 255, 240, 0.58);
  background:
    radial-gradient(circle at 10% 12%, rgba(164, 255, 240, 0.18), transparent 38%),
    radial-gradient(circle at 88% 84%, rgba(161, 148, 255, 0.15), transparent 42%),
    rgba(20, 34, 52, 0.88);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(114, 255, 232, 0.22),
    inset 0 0 18px rgba(137, 171, 255, 0.07);
  animation: downloadPanelGlow 3.8s ease-in-out infinite alternate;
}

body.site-glow .download-panel::before {
  content: "";
  position: absolute;
  inset: -45% -25%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.10) 48%, transparent 61%);
  transform: translateX(-42%);
  animation: downloadShine 6.5s ease-in-out infinite;
}

body.site-glow .download-action .button,
body.site-glow .hero-buttons .button,
body.site-glow .music-preview-card .button,
body.site-glow .zip-card .button {
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(142, 255, 232, 0.22);
}

body.site-glow .button.primary {
  background: linear-gradient(135deg, rgba(150, 255, 234, 0.98), rgba(145, 190, 255, 0.96), rgba(255, 225, 157, 0.92));
  color: #07131b;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.30),
    0 0 18px rgba(142, 255, 232, 0.34),
    0 0 34px rgba(144, 181, 255, 0.18);
}

@keyframes siteGlowFloat {
  from { opacity: 0.72; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(0, -7px, 0); }
}

@keyframes siteTwinkle {
  from { opacity: 0.30; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0.68; transform: translate3d(7px, -9px, 0) scale(1.01); }
}

@keyframes downloadPanelGlow {
  from {
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.34),
      0 0 18px rgba(114, 255, 232, 0.14),
      inset 0 0 18px rgba(137, 171, 255, 0.05);
  }
  to {
    box-shadow:
      0 20px 52px rgba(0, 0, 0, 0.36),
      0 0 30px rgba(114, 255, 232, 0.30),
      inset 0 0 24px rgba(137, 171, 255, 0.10);
  }
}

@keyframes downloadShine {
  0%, 28% { transform: translateX(-55%); opacity: 0; }
  40% { opacity: 0.9; }
  64%, 100% { transform: translateX(58%); opacity: 0; }
}

@media (max-width: 1180px) {
  body.site-glow .site-nav {
    grid-template-columns: repeat(3, max-content);
  }
}

@media (max-width: 720px) {
  body.site-glow .site-nav {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-glow::before,
  body.site-glow::after,
  body.site-glow .download-panel,
  body.site-glow .download-panel::before {
    animation: none;
  }
}


/* ===== v14 ナビゲーション詰め・ダウンロード発光強化 ===== */

/* 9項目を1列に揃え、右端の空白をなくす */
body.site-glow .header-inner {
  min-height: 94px;
  padding-block: 12px;
}

body.site-glow .site-nav {
  width: min(1500px, 100%);
  min-height: 68px;
  grid-template-columns: repeat(9, max-content);
  justify-content: center;
  align-content: center;
  column-gap: clamp(24px, 2.6vw, 48px);
  row-gap: 0;
}

/* ダウンロードボタンに明確な光の走査と星の瞬きを追加 */
body.site-glow .download-action .button {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-color: rgba(203, 255, 247, 0.78);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.30),
    0 0 18px rgba(142, 255, 232, 0.54),
    0 0 38px rgba(145, 190, 255, 0.32),
    inset 0 0 12px rgba(255, 255, 255, 0.18);
  animation: downloadButtonPulse 1.8s ease-in-out infinite alternate;
}

body.site-glow .download-action .button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(255,255,255,0.96) 0 1.5px, transparent 3px),
    radial-gradient(circle at 82% 18%, rgba(174,255,240,0.96) 0 1.5px, transparent 3px),
    radial-gradient(circle at 92% 76%, rgba(255,229,166,0.92) 0 1.5px, transparent 3px),
    radial-gradient(circle at 18% 82%, rgba(190,177,255,0.90) 0 1.5px, transparent 3px);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.88));
  opacity: 0.42;
  animation: downloadSparkle 1.35s steps(2, end) infinite;
}

body.site-glow .download-action .button::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 24%, rgba(255,255,255,0.78) 45%, transparent 66%);
  transform: translateX(-145%);
  mix-blend-mode: screen;
  animation: downloadButtonShine 2.4s ease-in-out infinite;
}

/* 準備中ボタンは押せない状態を保ちつつ、弱い発光だけ残す */
body.site-glow .download-action .button.disabled {
  animation: disabledButtonGlow 2.8s ease-in-out infinite alternate;
}

body.site-glow .download-action .button.disabled::after {
  opacity: 0.32;
}

@keyframes downloadButtonPulse {
  from {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  to {
    transform: translateY(-1px) scale(1.025);
    filter: brightness(1.14);
  }
}

@keyframes downloadSparkle {
  0%, 100% { opacity: 0.32; transform: rotate(0deg) scale(0.96); }
  50% { opacity: 1; transform: rotate(2deg) scale(1.06); }
}

@keyframes downloadButtonShine {
  0%, 22% { transform: translateX(-145%); opacity: 0; }
  34% { opacity: 0.96; }
  62%, 100% { transform: translateX(145%); opacity: 0; }
}

@keyframes disabledButtonGlow {
  from { box-shadow: 0 0 10px rgba(164,255,240,0.14); }
  to { box-shadow: 0 0 22px rgba(164,255,240,0.28); }
}

@media (max-width: 1320px) {
  body.site-glow .site-nav {
    grid-template-columns: repeat(5, max-content);
    row-gap: 16px;
  }
}

@media (max-width: 900px) {
  body.site-glow .site-nav {
    grid-template-columns: repeat(3, max-content);
  }
}

@media (max-width: 620px) {
  body.site-glow .site-nav {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-glow .download-action .button,
  body.site-glow .download-action .button::before,
  body.site-glow .download-action .button::after {
    animation: none;
  }
}

/* ===== v15 修正：ダウンロード枠内に出る白い走査光を停止 ===== */
body.site-glow .download-panel::before {
  content: none;
  display: none;
  animation: none;
}

/* ===== v16 ヘッダー全体のバランス調整 ===== */
body.site-glow .site-header {
  min-height: 84px;
}

body.site-glow .header-inner {
  width: min(1500px, calc(100% - 56px));
  min-height: 84px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.site-glow .site-nav {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  align-content: center;
  column-gap: 10px;
  row-gap: 0;
  margin: 0;
}

body.site-glow .site-nav a {
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  line-height: 1.15;
  text-align: center;
}

@media (max-width: 1320px) {
  body.site-glow .site-header,
  body.site-glow .header-inner {
    min-height: 112px;
  }

  body.site-glow .header-inner {
    width: min(1080px, calc(100% - 40px));
    padding-block: 10px;
  }

  body.site-glow .site-nav {
    min-height: 92px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 8px;
  }

  body.site-glow .site-nav a {
    min-height: 42px;
  }
}

@media (max-width: 900px) {
  body.site-glow .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.site-glow .header-inner {
    width: min(100% - 24px, 520px);
  }

  body.site-glow .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-glow .site-nav a {
    font-size: 15px;
  }
}

/* ===== v17 修正：ダウンロード光漏れ除去・ヘッダー2段整列 ===== */

/* ボタン外へ飛び出していた白い走査光を完全に停止。
   発光パルスと星粒は維持する。 */
body.site-glow .download-action .button::after {
  content: none !important;
  display: none !important;
  animation: none !important;
  background: none !important;
}

/* ヘッダーは上段5項目・下段4項目の中央揃えに固定する。 */
body.site-glow .site-header {
  min-height: 126px;
}

body.site-glow .header-inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 126px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.site-glow .site-nav {
  width: 100%;
  min-height: 98px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(2, 44px);
  align-items: center;
  justify-items: center;
  align-content: center;
  column-gap: 14px;
  row-gap: 10px;
  margin: 0;
}

body.site-glow .site-nav a {
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* 上段5項目 */
body.site-glow .site-nav a:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
body.site-glow .site-nav a:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
body.site-glow .site-nav a:nth-child(3) { grid-column: 5 / span 2; grid-row: 1; }
body.site-glow .site-nav a:nth-child(4) { grid-column: 7 / span 2; grid-row: 1; }
body.site-glow .site-nav a:nth-child(5) { grid-column: 9 / span 2; grid-row: 1; }

/* 下段4項目を中央へ寄せる */
body.site-glow .site-nav a:nth-child(6) { grid-column: 2 / span 2; grid-row: 2; }
body.site-glow .site-nav a:nth-child(7) { grid-column: 4 / span 2; grid-row: 2; }
body.site-glow .site-nav a:nth-child(8) { grid-column: 6 / span 2; grid-row: 2; }
body.site-glow .site-nav a:nth-child(9) { grid-column: 8 / span 2; grid-row: 2; }

@media (max-width: 980px) {
  body.site-glow .site-header {
    min-height: auto;
  }

  body.site-glow .header-inner {
    width: min(760px, calc(100% - 32px));
    min-height: auto;
    padding: 12px 0;
  }

  body.site-glow .site-nav {
    min-height: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 42px;
    gap: 8px 10px;
  }

  body.site-glow .site-nav a {
    grid-column: span 2 !important;
    grid-row: auto !important;
    min-height: 42px;
    white-space: normal;
  }

  /* 最終行3項目を自然に中央配置 */
  body.site-glow .site-nav a:nth-child(7) { grid-column: 1 / span 2 !important; }
  body.site-glow .site-nav a:nth-child(8) { grid-column: 3 / span 2 !important; }
  body.site-glow .site-nav a:nth-child(9) { grid-column: 5 / span 2 !important; }
}

@media (max-width: 620px) {
  body.site-glow .header-inner {
    width: min(100% - 20px, 520px);
  }

  body.site-glow .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 40px;
  }

  body.site-glow .site-nav a,
  body.site-glow .site-nav a:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
    font-size: 14px;
    min-height: 40px;
  }

  body.site-glow .site-nav a:last-child {
    grid-column: 1 / -1 !important;
  }
}

/* ===== v18 背景上での文字視認性強化 ===== */

/* サイト全体の基本ウェイトを一段上げる。 */
body.site-glow {
  font-weight: 500;
}

/* 背景画像の上に直接載るヒーロー文字は、太さと暗い縁取りを強める。 */
body.site-glow .label,
body.site-glow .lead {
  font-weight: 900;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.92),
    0 0 10px rgba(0, 0, 0, 0.58),
    0 0 14px rgba(164, 255, 240, 0.28);
}

/* 各カード内の主要本文を読みやすくする。 */
body.site-glow .card p,
body.site-glow .card li,
body.site-glow .download-body p,
body.site-glow .download-info li,
body.site-glow .quick-info dd,
body.site-glow .music-intro,
body.site-glow .activity-card p,
body.site-glow .tweet-list p,
body.site-glow .update-list span,
body.site-glow .staff-card p,
body.site-glow .link-card p,
body.site-glow .contact-card p,
body.site-glow .work-body p,
body.site-glow .history-item p,
body.site-glow .voice-item p,
body.site-glow .log-article p,
body.site-glow .zip-card p {
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
}

/* 情報ラベル、日付、注記も背景に埋もれないようにする。 */
body.site-glow .quick-info dt,
body.site-glow .download-info strong,
body.site-glow .staff-role,
body.site-glow .note,
body.site-glow .mini-log time,
body.site-glow .tweet-list time,
body.site-glow .update-list time {
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78);
}

/* ボタン文字を明瞭にする。 */
body.site-glow .button {
  font-weight: 900;
  letter-spacing: 0.02em;
}


/* ===== v19 全ページ背景の抑制・黒縁取り ===== */

/* 背景画像と発光色を一段奥へ下げ、全ページで文字を優先する。 */
body.site-glow {
  background:
    linear-gradient(rgba(6, 22, 30, 0.64), rgba(5, 25, 29, 0.84)),
    radial-gradient(ellipse at 16% 10%, rgba(88, 255, 226, 0.16), transparent 32rem),
    radial-gradient(ellipse at 84% 12%, rgba(137, 126, 255, 0.13), transparent 34rem),
    radial-gradient(ellipse at 50% 50%, rgba(47, 185, 255, 0.10), transparent 46rem),
    url("assets/site-bg.webp") center top / cover fixed,
    var(--bg);
}

/* 背景上の装飾粒子も少し控えめにする。 */
body.site-glow::before {
  opacity: 0.68;
}

body.site-glow::after {
  opacity: 0.30;
}

/* 全ページの明るい文字へ、実効約2pxの黒縁を追加する。 */
body.site-glow :where(
  h1,
  h2,
  h3,
  h4,
  p,
  li,
  dt,
  dd,
  time,
  strong,
  .site-nav a,
  .section-kicker,
  .label,
  .page-title,
  .small-link,
  .text-link,
  .placeholder-text
) {
  -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.96);
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.96),
     1px -1px 0 rgba(0, 0, 0, 0.96),
    -1px  1px 0 rgba(0, 0, 0, 0.96),
     1px  1px 0 rgba(0, 0, 0, 0.96),
     0 0 2px rgba(0, 0, 0, 0.98),
     0 2px 3px rgba(0, 0, 0, 0.88) !important;
}

/* 明るいボタン上の黒文字は黒縁を重ねず、可読性を維持する。 */
body.site-glow .button.primary {
  -webkit-text-stroke: 0;
  text-shadow: none !important;
}

/* 暗色ボタン上の文字には黒縁を残す。 */
body.site-glow .button:not(.primary) {
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.94);
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.90),
     1px -1px 0 rgba(0, 0, 0, 0.90),
    -1px  1px 0 rgba(0, 0, 0, 0.90),
     1px  1px 0 rgba(0, 0, 0, 0.90),
     0 0 2px rgba(0, 0, 0, 0.96) !important;
}

/* ===== v20 スクロール演出・舞い散る葉・ナビ現在地 ===== */

/* --- 舞い散る葉のキャンバス（背景と本文の間に固定） --- */
.leaf-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* --- スクロールで各要素がふわっと現れる --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 表示後は will-change を解放してスクロールを軽く保つ */
.reveal.is-done {
  will-change: auto;
}

/* --- ヒーローロゴのゆらぎ（呼吸するような浮遊感） --- */
body.site-glow .title-logo-frame {
  animation: heroLogoFloat 6.5s ease-in-out infinite alternate;
}

@keyframes heroLogoFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

/* --- ナビの現在地ハイライト --- */
.site-nav a.is-current {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(164, 255, 240, 0.85);
}

body.site-glow .site-nav a.is-current {
  color: #a4fff0;
  text-shadow:
    0 0 10px rgba(164, 255, 240, 0.55),
    0 0 22px rgba(135, 170, 255, 0.30);
}

/* --- 動きを減らす設定のユーザーには演出を止める --- */
@media (prefers-reduced-motion: reduce) {
  .leaf-canvas {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.site-glow .title-logo-frame {
    animation: none;
  }
}
