@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@300;400;600;700&display=swap');

/* ==========================================================================
   デザインシステム & 変数定義 (HARU.K 完全再現プレミアムガラスモーフィズム)
   ========================================================================== */
:root {
  /* 基本配色 */
  --color-bg-dark: #07080e;        /* 深夜の深い暗闇 */
  
  /* ガラスタイル（超透過＆3Dエッジハイライト） */
  --color-glass-bg: rgba(255, 255, 255, 0.022);     /* 極薄ガラス超透過白 */
  --color-glass-border: rgba(255, 255, 255, 0.05);   /* 極細ガラス側面境界 */
  --color-glass-highlight: rgba(255, 255, 255, 0.16);/* 上・左のエッジを際立たせる3D反射光 */
  
  /* アクセントカラー */
  --color-amber: #ffa630;          /* コジーな街灯をイメージした琥珀色 */
  --color-amber-dim: rgba(255, 166, 48, 0.12); /* 琥珀色の薄い光彩 */
  --color-amber-glow: rgba(255, 166, 48, 0.4);  /* ホバー時の背面発光 */
  
  /* 文字色 */
  --color-text-main: #f3f5fa;      /* ほぼ純白のメインテキスト */
  --color-text-muted: #8d95b5;     /* 湿度と情緒を感じる青灰色のサブテキスト */

  /* フォント */
  --font-en: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  /* アニメーション */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   リセット & ベーススタイル
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* AI生成された「深夜のコジーな夜の部屋」の美麗な背景イラストを全体に適用 */
  background-image: url('assets/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* スクロールしても背景は固定（圧倒的な視差効果） */
  color: var(--color-text-main);
  font-family: var(--font-jp);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* 
   文字の読みやすさを確保しつつ、Lo-Fiな深夜の雰囲気を出すための
   全体を包む半透明のダークスクリーン（オーバーレイシールド）
*/
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 8, 14, 0.72); /* コントラストを完璧にする72%のダークスクリーン */
  z-index: -2;
  pointer-events: none;
}

/* 
   背景のイラストの琥珀色の街灯を、さらに幻想的に浮かび上がらせる
   ゆっくりと浮遊・明滅するアンビエントライティングオーブ
*/
body::after {
  content: '';
  position: fixed;
  top: 10%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 166, 48, 0.08) 0%, rgba(255, 166, 48, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.ambient-bg-orb {
  position: fixed;
  bottom: 10%;
  right: 5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.04) 0%, rgba(139, 92, 246, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 24s ease-in-out infinite alternate-reverse;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(9, 10, 18, 0.8);
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 3px solid rgba(9, 10, 18, 0.8);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-amber);
}

/* ==========================================================================
   レイアウトコンテナ (2カラムアシンメトリー構造)
   ========================================================================== */
.portfolio-container {
  display: flex;
  gap: 3.5rem;
  max-width: 1250px;
  margin: 0 auto;
  padding: 4rem 2rem;
  align-items: flex-start;
}

/* ==========================================================================
   左サイドバー (HARU.K プロフィール固定領域)
   ========================================================================== */
.sidebar-wrapper {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

/* アバターと周囲のピクセルデコレーション */
.avatar-block {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 1.5rem;
}

.main-avatar {
  width: 100%;
  height: 100%;
  border-radius: 36px; /* 画像と完全に一致する、非常に柔らかく愛らしい角丸 */
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-bounce);
}

.avatar-block:hover .main-avatar {
  transform: scale(1.04) rotate(1.5deg);
  border-color: var(--color-amber);
  box-shadow: 0 15px 35px rgba(255, 166, 48, 0.25);
}

/* アバター周辺のピクセルスター & ちび猫デコレーション */
.avatar-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.star {
  position: absolute;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 5px rgba(255, 166, 48, 0.5));
  animation: twinkle 3s infinite alternate;
}

.star-top-left {
  top: -15px;
  left: -15px;
  animation-delay: 0s;
}

.star-top-right {
  top: -20px;
  right: -10px;
  font-size: 1.4rem;
  animation-delay: 0.5s;
}

.star-mid-left {
  bottom: 30%;
  left: -22px;
  font-size: 0.95rem;
  animation-delay: 1s;
}

/* アバターの左肩に乗っている可愛いドット猫 🐱 */
.pixel-cat {
  position: absolute;
  top: -6px;
  left: -4px;
  font-size: 1.6rem;
  z-index: 6;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: floatChibi 4s ease-in-out infinite alternate;
}

/* プロフィール基本情報 */
.profile-meta {
  margin-bottom: 2rem;
  width: 100%;
}

.profile-name {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  word-spacing: 4px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  margin-bottom: 0.2rem;
}

.profile-tagline {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  word-spacing: 1px;
}

/* SNS正方形アイコンスロット (4x2グリッド) */
.sns-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.sns-slot-btn {
  aspect-ratio: 1 / 1;
  background: var(--color-glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; /* 丸くて可愛いスロット */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 0.2rem;
  gap: 4px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.04);
  transition: var(--transition-bounce);
}

.sns-slot-btn:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* 完璧なアプリアイコンタイル表現 (カラフルな公式背景 ＋ 白SVG) */
.sns-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: var(--transition-bounce);
}

.sns-slot-btn:hover .sns-icon-box {
  transform: scale(1.1);
}

.sns-icon-box svg {
  width: 16px;
  height: 16px;
}

/* 公式ブランドカラー背景の指定 */
.btn-pixiv .sns-icon-box { background: #0096ff; }
.btn-youtube .sns-icon-box { background: #ff0000; }
.btn-note .sns-icon-box { background: #2cb696; }
.btn-itch .sns-icon-box { background: #fa5c5c; }
.btn-booth-alt .sns-icon-box { background: #fa5c5c; }
.btn-booth .sns-icon-box { background: #fc4d50; }
.btn-x .sns-icon-box { background: #111111; }
.btn-misskey .sns-icon-box { background: #86b300; }
.btn-discord .sns-icon-box { background: #5865F2; }

.sns-slot-text {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.sns-slot-btn:hover .sns-slot-text {
  color: #fff;
}

/* ==========================================================================
   右コンテンツエリア (メインスクロール領域)
   ========================================================================== */
.content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* 1. 上部カプセルナビゲーション */
.top-nav-capsule {
  background: rgba(9, 10, 18, 0.35);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid var(--color-glass-highlight);
  border-left: 1px solid var(--color-glass-highlight);
  border-radius: 50px;
  padding: 0.55rem 2rem;
  display: flex;
  gap: 1.1rem;
  align-items: center;
  width: fit-content;
  align-self: flex-end; /* 右端寄せ */
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.nav-item {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--color-text-main);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

/* ==========================================================================
   コンテンツ共通ガラスフレーム (Current Projects & Featured Art)
   ========================================================================== */
.glass-container {
  background: var(--color-glass-bg);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid var(--color-glass-highlight);
  border-left: 1px solid var(--color-glass-highlight);
  border-radius: 28px; /* 優しくて愛らしい丸角 */
  padding: 2.2rem 2.2rem 2.4rem;
  box-shadow: 
    0 24px 55px rgba(0, 0, 0, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.06);
  position: relative;
}

.section-title {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 1.75rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   2. CURRENT PROJECTS (3カラムカードグリッド)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.9rem;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 166, 48, 0.2);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 166, 48, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.project-img-box {
  position: relative;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  background: #0b0c16;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.project-title {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

.project-sub {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* 進捗ステータスバー (Pixel RPG Adventure 用) */
.project-status-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.status-fill {
  height: 100%;
  background: linear-gradient(90deg, #42cbb5 0%, #a2e535 100%);
  box-shadow: 0 0 6px rgba(66, 203, 181, 0.5);
  border-radius: 10px;
}

/* 動画用オーバーレイバッジ (123再生数) */
.project-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 50px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-wave {
  color: var(--color-amber);
  opacity: 0.85;
}

/* 下部のミニ装飾アイコン */
.project-icons {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.4rem;
}

.mini-icon {
  font-size: 0.85rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   3. 中間ログ・アップデートフレーム (2分割カラム)
   ========================================================================== */
.logs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mini-log-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid var(--color-glass-highlight);
  border-left: 1px solid var(--color-glass-highlight);
  border-radius: 24px;
  padding: 1.2rem 1.6rem;
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* はみ出す可愛いドットおばけデコレーション 👻 */
.log-decorations {
  position: absolute;
  top: -16px;
  right: 22px;
  pointer-events: none;
  z-index: 5;
}

.log-chibi-ghost {
  font-size: 1.5rem;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: floatChibi 3.5s ease-in-out infinite alternate;
}

/* ログ項目 */
.log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 8px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.log-item:last-child {
  border-bottom: none;
}

.log-item:hover {
  background: rgba(255, 255, 255, 0.035);
  padding-left: 0.8rem;
  padding-right: 0.4rem;
}

.log-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-title {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.log-title.font-highlight {
  color: var(--color-amber);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 166, 48, 0.3);
}

.log-title .log-author {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.log-date {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.log-decor-sub {
  display: flex;
  gap: 4px;
}

.log-mini-char {
  font-size: 0.85rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   4. FEATURED ARTWORK セクション (8点アートグリッド)
   ========================================================================== */
.relative-container {
  position: relative;
}

/* 周囲にはみ出す可愛いピクセルデコレーション 👻 🤖 ⭐ */
.section-decor-ghost {
  position: absolute;
  top: -18px;
  right: 12%;
  font-size: 1.8rem;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: floatChibi 4s ease-in-out infinite alternate;
}

.section-decor-robot {
  position: absolute;
  top: -16px;
  right: calc(12% - 24px);
  font-size: 1.35rem;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: floatChibi 3.8s ease-in-out infinite alternate-reverse;
}

.section-decor-star {
  position: absolute;
  bottom: -15px;
  right: 22px;
  font-size: 1.6rem;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(255, 166, 48, 0.4));
  animation: pulse 2s infinite;
}

/* 4列×2行のアートワークグリッド */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.artwork-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
}

.artwork-card:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: rgba(255, 166, 48, 0.15);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.35),
    0 0 15px rgba(255, 166, 48, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.art-img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 完全な正方形 */
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.art-label {
  align-self: flex-end;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 4px;
  margin-right: 4px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   フッター (SNSアイコンリンク & コピーライト)
   ========================================================================== */
.main-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2.2rem;
  width: 100%;
}

.access-counter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.counter-prefix,
.counter-suffix {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.counter-display {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  gap: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 166, 48, 0.05);
}

.counter-digit {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-amber);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  width: 18px;
  text-align: center;
  display: inline-block;
  text-shadow: 0 0 4px var(--color-amber-glow);
}

.footer-copyright-text {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  word-spacing: 1px;
}

/* ==========================================================================
   キーフレーム & アニメーション
   ========================================================================== */
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -60px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes floatChibi {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes twinkle {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 166, 48, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 166, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 166, 48, 0); }
}

/* ==========================================================================
   レスポンシブデザイン (メディアクエリ)
   ========================================================================== */
@media (max-width: 992px) {
  .portfolio-container {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem 1.5rem;
  }

  .sidebar-wrapper {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 450px;
  }

  .sns-slot-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .top-nav-capsule {
    align-self: center;
    width: 100%;
    justify-content: center;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    gap: 0.75rem;
  }

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

  .logs-container {
    grid-template-columns: 1fr;
  }

  .artwork-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sns-slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   スクロールリビール (フェードイン & 浮き上がり) アニメーション
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   レトロLo-Fiミュージックプレイヤー (すりガラス＆アンバーグロウ)
   ========================================================================== */
.music-player-panel {
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid var(--color-glass-highlight);
  border-left: 1px solid var(--color-glass-highlight);
  border-radius: 16px;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  position: relative;
  text-align: left;
  transition: var(--transition-bounce);
}

.music-player-panel:hover {
  border-color: rgba(255, 166, 48, 0.2);
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 15px rgba(255, 166, 48, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* 丸くて可愛い再生ボタン */
.player-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 166, 48, 0.15);
  border: 1px solid rgba(255, 166, 48, 0.3);
  color: var(--color-amber);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition-bounce);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.player-play-btn:hover {
  background: var(--color-amber);
  color: var(--color-bg-dark);
  transform: scale(1.08);
  box-shadow: 0 0 10px var(--color-amber);
}

.player-play-btn:active {
  transform: scale(0.95);
}

/* プレイヤー情報部 */
.player-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.player-track-title {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.player-track-sub {
  font-family: var(--font-en);
  font-size: 0.58rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2px;
  margin-top: 1px;
}

/* ボリュームスライダー */
.player-vol-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.vol-icon {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.player-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-amber);
  cursor: pointer;
  transition: transform 0.1s;
}

.player-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* 再生中にカタカタ動く可愛いドットイコライザー 📊 */
.player-eq-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  width: 20px;
  flex-shrink: 0;
}

.eq-bar {
  width: 2.5px;
  height: 2px;
  background-color: var(--color-amber);
  border-radius: 1px;
  transition: height 0.1s ease;
}

/* アニメーション状態 */
.player-eq-visualizer.playing .eq-bar:nth-child(1) {
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}
.player-eq-visualizer.playing .eq-bar:nth-child(2) {
  animation: eqBounce 0.5s ease-in-out infinite alternate 0.15s;
}
.player-eq-visualizer.playing .eq-bar:nth-child(3) {
  animation: eqBounce 0.7s ease-in-out infinite alternate 0.3s;
}
.player-eq-visualizer.playing .eq-bar:nth-child(4) {
  animation: eqBounce 0.6s ease-in-out infinite alternate 0.05s;
}

@keyframes eqBounce {
  0% { height: 2px; }
  100% { height: 16px; }
}

/* ==========================================================================
   ギャラリーカテゴリーフィルタータブ (すりガラス＆アンバー)
   ========================================================================== */
.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 1rem;
}

.filter-tab-btn {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 0.35rem 1.1rem;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.filter-tab-btn:hover {
  border-color: rgba(255, 166, 48, 0.2);
  color: var(--color-text-main);
  background: rgba(255, 166, 48, 0.05);
}

.filter-tab-btn.active {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-bg-dark);
  box-shadow: 0 0 12px var(--color-amber-glow);
  text-shadow: none;
}

/* アートワークカード内に表示する可愛いカテゴリーブランドバッジ */
.artwork-card {
  position: relative; /* バッジを絶対配置するため */
  overflow: hidden;
}

.art-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  z-index: 2;
  text-transform: uppercase;
  pointer-events: none; /* ホバー動作に干渉させない */
  letter-spacing: 0.5px;
}

/* 各サービスのブランドカラーバッジ */
.badge-pixiv { background: rgba(0, 150, 255, 0.9); }
.badge-youtube { background: rgba(255, 0, 0, 0.9); }
.badge-note { background: rgba(44, 182, 150, 0.9); }
.badge-itch, .badge-itch-io { background: rgba(250, 92, 92, 0.9); }
.badge-booth { background: rgba(252, 77, 80, 0.9); }

/* ==========================================================================
   ページネーションコントロール
   ========================================================================== */
.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.pag-btn {
  background: var(--color-glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: var(--color-text-main);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-bounce);
}

.pag-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--color-amber);
  box-shadow: 0 6px 15px rgba(255, 166, 48, 0.15);
}

.pag-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pag-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pag-info {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}



