/* ========================================
   シュールゲームス - スタイルシート
   ======================================== */

:root {
  --bg-primary: #0d0221;
  --bg-secondary: #1a0a3e;
  --accent-pink: #ff6ec7;
  --accent-green: #39ff14;
  --accent-yellow: #ffff00;
  --accent-cyan: #00fff7;
  --text-primary: #f0f0f0;
  --text-muted: #b0a8c8;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'Hachi Maru Pop', cursive;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
}

/* リセット */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ========================================
   固定ナビゲーション
   ======================================== */

.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(13, 2, 33, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.fixed-nav.visible {
  transform: translateY(0);
}

.fixed-nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.fixed-nav__link:hover {
  color: var(--accent-pink);
  background: rgba(255, 110, 199, 0.1);
}

/* トップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-pink);
  color: var(--bg-primary);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 110, 199, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 30px rgba(255, 110, 199, 0.6);
}

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

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #2d1b69 100%);
  animation: hueShift 20s ease-in-out infinite alternate;
}

@keyframes hueShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(30deg); }
}

/* 浮遊する図形 */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  animation: floatShape 15s ease-in-out infinite;
}

.shape--1 { top: 10%; left: 10%; color: var(--accent-pink); animation-delay: 0s; font-size: 3rem; }
.shape--2 { top: 20%; right: 15%; color: var(--accent-green); animation-delay: -3s; font-size: 2.5rem; }
.shape--3 { bottom: 30%; left: 20%; color: var(--accent-yellow); animation-delay: -6s; }
.shape--4 { top: 60%; right: 25%; color: var(--accent-cyan); animation-delay: -9s; font-size: 2.5rem; }
.shape--5 { bottom: 15%; left: 50%; color: var(--accent-pink); animation-delay: -12s; font-size: 3rem; }
.shape--6 { top: 40%; left: 70%; color: var(--accent-green); animation-delay: -4s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(90deg); }
  50% { transform: translateY(10px) rotate(180deg); }
  75% { transform: translateY(-20px) rotate(270deg); }
}

/* グリッチテキスト */
.glitch {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 5rem);
  color: var(--text-primary);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch:hover::before {
  opacity: 0.8;
  color: var(--accent-pink);
  animation: glitch1 0.3s infinite;
}

.glitch:hover::after {
  opacity: 0.8;
  color: var(--accent-cyan);
  animation: glitch2 0.3s infinite;
}

@keyframes glitch1 {
  0% { clip-path: inset(20% 0 60% 0); transform: translateX(-3px); }
  25% { clip-path: inset(60% 0 10% 0); transform: translateX(3px); }
  50% { clip-path: inset(40% 0 30% 0); transform: translateX(-2px); }
  75% { clip-path: inset(10% 0 70% 0); transform: translateX(2px); }
  100% { clip-path: inset(50% 0 20% 0); transform: translateX(-3px); }
}

@keyframes glitch2 {
  0% { clip-path: inset(50% 0 20% 0); transform: translateX(3px); }
  25% { clip-path: inset(10% 0 70% 0); transform: translateX(-3px); }
  50% { clip-path: inset(30% 0 40% 0); transform: translateX(2px); }
  75% { clip-path: inset(70% 0 5% 0); transform: translateX(-2px); }
  100% { clip-path: inset(15% 0 55% 0); transform: translateX(3px); }
}

/* ヒーローキャラクター */
.hero-chara {
  position: absolute;
  width: clamp(120px, 18vw, 220px);
  bottom: 8%;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(255, 110, 199, 0.3));
  pointer-events: none;
  opacity: 0.85;
}

.hero-chara--left {
  left: 5%;
  transform: rotate(-8deg);
  animation: charaLeftBounce 4s ease-in-out infinite;
}

.hero-chara--right {
  right: 5%;
  transform: scaleX(-1) rotate(-8deg);
  animation: charaRightBounce 4s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes charaLeftBounce {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  30% { transform: rotate(-2deg) translateY(-25px); }
  50% { transform: rotate(-12deg) translateY(-10px); }
  80% { transform: rotate(-5deg) translateY(-18px); }
}

@keyframes charaRightBounce {
  0%, 100% { transform: scaleX(-1) rotate(-8deg) translateY(0); }
  30% { transform: scaleX(-1) rotate(-2deg) translateY(-25px); }
  50% { transform: scaleX(-1) rotate(-12deg) translateY(-10px); }
  80% { transform: scaleX(-1) rotate(-5deg) translateY(-18px); }
}

.tagline {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  line-height: 2;
}

.hero-nav {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--accent-pink);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--accent-pink);
  border-radius: 999px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--accent-pink);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 110, 199, 0.4);
}

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

section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

/* ========================================
   ゲームカード
   ======================================== */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.prototypes-link {
  text-align: center;
  margin-top: 2.5rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 110, 199, 0.15);
}

.game-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 0), 70%, 15%),
    hsl(calc(var(--hue, 0) + 60), 80%, 25%)
  );
  transition: transform 0.5s ease;
}

.game-card:hover .placeholder-art {
  transform: scale(1.1) rotate(3deg);
}

/* ゲームカード内のキャラ画像 */
.card-chara {
  width: 55%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.game-card:hover .card-chara {
  transform: scale(1.15) rotate(5deg);
}

/* かにかにカード: ホバーで飛び出し＆セリフ */
.card-chara--kanikani {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  z-index: 10;
  position: relative;
}

.game-card:hover .card-chara--kanikani {
  transform: scale(3) translateY(-25%) rotate(10deg);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.game-card:has(.card-chara--kanikani) {
  overflow: visible;
}

.game-card:has(.card-chara--kanikani) .game-card__image {
  overflow: visible;
}

.game-card:has(.card-chara--kanikani) .placeholder-art {
  overflow: visible;
  position: relative;
}

.kanikani-speech {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.8);
  background: #fff;
  color: #d63384;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  box-shadow: 0 4px 20px rgba(214, 51, 132, 0.3);
  border: 2px solid #ff69b4;
  z-index: 20;
}

.kanikani-speech::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}

.game-card:hover .kanikani-speech {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* 篤カード: ホバーで飛び出し＆セリフ */
.card-chara--atsushi {
  width: 85%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  z-index: 10;
  position: relative;
}

.game-card:hover .card-chara--atsushi {
  transform: scale(2.5) translateY(-25%) rotate(-8deg);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.game-card:has(.card-chara--atsushi) {
  overflow: visible;
}

.game-card:has(.card-chara--atsushi) .game-card__image {
  overflow: visible;
}

.game-card:has(.card-chara--atsushi) .placeholder-art {
  overflow: visible;
  position: relative;
}

.atsushi-speech {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.8);
  background: #fff;
  color: #7b2ff7;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  box-shadow: 0 4px 20px rgba(123, 47, 247, 0.3);
  border: 2px solid #c471ed;
  z-index: 20;
}

.atsushi-speech::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
}

.game-card:hover .atsushi-speech {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* さくらんぼカード: ホバーで飛び出し＆セリフ */
.card-chara--sakuranbo {
  width: 75%;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  z-index: 10;
  position: relative;
}

.game-card:hover .card-chara--sakuranbo {
  transform: scale(2.5) translateY(-20%) rotate(-5deg);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.game-card:has(.card-chara--sakuranbo) {
  overflow: visible;
}

.game-card:has(.card-chara--sakuranbo) .game-card__image {
  overflow: visible;
}

.game-card:has(.card-chara--sakuranbo) .placeholder-art {
  overflow: visible;
  position: relative;
}

.sakuranbo-speech {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.8);
  background: #fff;
  color: #8b2252;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  box-shadow: 0 4px 20px rgba(139, 34, 82, 0.3);
  border: 2px solid #c06080;
  z-index: 20;
}

.sakuranbo-speech::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}

.game-card:hover .sakuranbo-speech {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.game-card__body {
  padding: 1.5rem;
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent-yellow);
}

.game-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* ストアボタン */
.store-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.store-btn:hover:not(.store-btn--disabled) {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.store-btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.store-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========================================
   ギャラリー
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 110, 199, 0.2), 0 0 20px rgba(0, 255, 247, 0.1);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-caption {
  padding: 0.8rem 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-yellow);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--card-border);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   アバウト
   ======================================== */

#about {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(255, 110, 199, 0.06) 0%, transparent 70%);
  border-top: 1px solid rgba(255, 110, 199, 0.1);
  border-bottom: 1px solid rgba(0, 255, 247, 0.1);
}

/* 背景キャラ：うっすら浮かび上がる演出 */
.about-bg-chara {
  position: absolute;
  bottom: -10%;
  right: -2%;
  width: 280px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  object-fit: contain;
  object-position: top center;
  filter: grayscale(0.2);
  z-index: 0;
  transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 1.5s ease;
}
.about-bg-chara.visible {
  opacity: 0.18;
  animation: aboutCharaReveal 3s ease-out forwards,
             aboutCharaFloat 8s ease-in-out 3s infinite;
}
@keyframes aboutCharaReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  60% { opacity: 0.2; }
  100% { opacity: 0.18; transform: translateY(0) scale(1); }
}
@keyframes aboutCharaFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-15px, -12px) rotate(-2deg); }
  50% { transform: translate(10px, -20px) rotate(1.5deg); }
  75% { transform: translate(-8px, -8px) rotate(-1deg); }
}
/* 突然巨大化 */
.about-bg-chara.jumpscare {
  opacity: 1 !important;
  z-index: 999 !important;
  filter: grayscale(0) !important;
  animation: none !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(90vw, 90vh) !important;
  height: auto !important;
  object-fit: contain;
  background: none;
  transition: none !important;
}
/* 巨大化時の背景オーバーレイ */
.jumpscare-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 998;
}

.about-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-deco__item {
  position: absolute;
  opacity: 0.2;
  animation: aboutFloat 6s ease-in-out infinite;
}

.about-deco__item--1 { top: 10%; left: 5%; font-size: 2.5rem; color: var(--accent-pink); animation-delay: 0s; }
.about-deco__item--2 { top: 20%; right: 8%; font-size: 2rem; color: var(--accent-cyan); animation-delay: -1s; }
.about-deco__item--3 { bottom: 25%; left: 10%; font-size: 1.8rem; color: var(--accent-yellow); animation-delay: -2s; }
.about-deco__item--4 { bottom: 15%; right: 5%; font-size: 2.2rem; color: var(--accent-green); animation-delay: -3s; }
.about-deco__item--5 { top: 50%; left: 2%; font-size: 1.5rem; color: var(--accent-pink); animation-delay: -4s; }
.about-deco__item--6 { top: 40%; right: 3%; font-size: 1.8rem; color: var(--accent-yellow); animation-delay: -5s; }

@keyframes aboutFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-15px) rotate(20deg); opacity: 0.35; }
}

.about-content {
  max-width: 700px;
  margin: 2rem auto 0;
  font-size: 1.05rem;
  line-height: 2.2;
  position: relative;
  z-index: 1;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content strong {
  color: var(--accent-pink);
}

.about-content em {
  color: var(--accent-yellow);
  font-style: normal;
  border-bottom: 2px dashed var(--accent-yellow);
  padding-bottom: 2px;
}

/* ========================================
   フッター
   ======================================== */

footer {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border: 2px solid var(--text-muted);
  border-radius: 999px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-link--x:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 25px rgba(240, 240, 240, 0.3);
}

.footer-copy {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ========================================
   フェードインアニメーション
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   イースターエッグ: 画面反転
   ======================================== */

.inverted {
  animation: invertFlash 1s ease;
}

@keyframes invertFlash {
  0% { filter: invert(0); }
  30% { filter: invert(1) hue-rotate(180deg); }
  70% { filter: invert(1) hue-rotate(180deg); }
  100% { filter: invert(0); }
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 768px) {
  .fixed-nav {
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fixed-nav__link {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
  }

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

  .hero-chara {
    width: 90px;
    bottom: 4%;
    opacity: 0.6;
  }

  .hero-chara--left { left: 2%; }
  .hero-chara--right { right: 2%; }

  .hero-nav {
    flex-direction: column;
    align-items: center;
  }

  section {
    padding: 3rem 1rem;
  }

  #gallery {
    padding-bottom: 1.5rem;
  }

  #about {
    padding-top: 2rem;
  }

  .about-bg-chara {
    width: 200px;
    bottom: auto;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 0;
  }
  .about-bg-chara.visible {
    opacity: 0.13;
    animation: aboutCharaRevealMobile 3s ease-out forwards,
               aboutCharaFloatMobile 8s ease-in-out 3s infinite;
  }

  @keyframes aboutCharaRevealMobile {
    0% { opacity: 0; transform: translate(50%, -40%) scale(0.9); }
    60% { opacity: 0.15; }
    100% { opacity: 0.13; transform: translate(50%, -50%) scale(1); }
  }
  @keyframes aboutCharaFloatMobile {
    0%, 100% { transform: translate(50%, -50%) rotate(0deg); }
    25% { transform: translate(45%, -55%) rotate(-2deg); }
    50% { transform: translate(55%, -45%) rotate(1.5deg); }
    75% { transform: translate(48%, -52%) rotate(-1deg); }
  }

  .about-content {
    font-size: 0.95rem;
    line-height: 2;
    padding: 0 0.5rem;
    text-align: center;
  }

  .about-content p {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 480px) {
  .store-links {
    flex-direction: column;
  }

  .store-btn {
    justify-content: center;
  }
}

/* ========================================
   トップに戻るリンク（試作品ページ等）
   ======================================== */

.back-to-top-link {
  position: fixed;
  top: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  z-index: 300;
  transition: color 0.2s;
}

.back-to-top-link:hover {
  color: #fff;
}
