/* ============================================
   新しいポートフォリオページ - メインスタイル
   アニメ番組風の動きのあるデザイン
   ============================================ */

:root {
  --main-yellow: #FFD700;
  --accent-blue: #87CEEB;
  --bg-dark: #FFF8E7;
  --bg-darker: #F5F0E1;
  --text-light: #2C2C2C;
  --text-white: #1A1A1A;
  --text-gray: #666666;
  --text-dark-gray: #444444;
  --gradient-1: linear-gradient(135deg, #FFE5B4 0%, #FFD89B 100%);
  --gradient-2: linear-gradient(135deg, #FFF4E0 0%, #FFE5B4 100%);
  --gradient-3: linear-gradient(135deg, #E8F4F8 0%, #D4E8F0 100%);
  --shadow-glow: 0 0 40px rgba(255, 215, 0, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

/* デフォルトでカーソルを表示（カスタムカーソルが動作しない場合のフォールバック） */
body:not(.custom-cursor-active) {
  cursor: auto;
}

/* モーダルが開いている時は通常のカーソルを表示 */
body.modal-open,
.modal:not(.hidden) ~ body,
body:has(.modal:not(.hidden)) {
  cursor: auto;
}

body.modal-open .custom-cursor,
body:has(.modal:not(.hidden)) .custom-cursor {
  display: none;
}

/* ============================================
   カスタムカーソル
   ============================================ */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--main-yellow);
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent-blue);
}

/* タッチデバイスではカスタムカーソルを非表示 */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
  
  body.custom-cursor-active {
    cursor: auto;
  }
}

/* ============================================
   スクロール進行バー
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--main-yellow), var(--accent-blue));
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s;
}

/* ============================================
   ヘッダー
   ============================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  z-index: 1000;
  background: rgba(255, 248, 231, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.main-header * {
  pointer-events: auto;
}

.main-header.scrolled {
  padding: 1rem 3rem;
  background: rgba(255, 248, 231, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.logo:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--main-yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-accent {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--main-yellow);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--main-yellow);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer !important;
  padding: 0.5rem;
  z-index: 10001 !important;
  position: relative !important;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer !important;
  padding: 0.5rem;
  z-index: 10001 !important;
  position: relative !important;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition-smooth);
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -12.5px;
  margin-top: -1px;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-8px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(8px);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateY(0) scale(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
  transform-origin: center;
}

/* ミニプレーヤー */
.header-mini-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  position: relative;
  flex-shrink: 0;
  z-index: 10001;
}

.header-mini-player:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--main-yellow);
}

/* 再生中のミニプレーヤー */
.header-mini-player.playing {
  border-color: var(--main-yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  animation: miniPlayerPulse 2s ease-in-out infinite;
}

@keyframes miniPlayerPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

.header-mini-player.playing::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--main-yellow), var(--accent-blue), var(--main-yellow));
  border-radius: 30px;
  z-index: -1;
  opacity: 0.3;
  animation: miniPlayerBorder 3s linear infinite;
  background-size: 200% 200%;
}

@keyframes miniPlayerBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header-mini-player.hidden {
  display: none;
}

.mini-player-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-player-info {
  flex: 1;
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* ミニプレーヤーのコントロールボタン */
.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 0.5rem;
}

.mini-player-title-wrap {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.mini-player-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  overflow: visible;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

/* 長い曲名の無限スクロール */
.mini-player-title-wrap.scrolling {
  position: relative;
}

.mini-player-scroll-container {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: scrollTextBounce 8s ease-in-out infinite;
  will-change: transform;
}

.mini-player-title.scrolling {
  display: inline-block;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  flex-shrink: 0;
}

/* バウンス方式のため複製は不要（クラスは残しておく） */
.mini-player-title-clone {
  display: none;
}

@keyframes scrollTextBounce {
  0% {
    transform: translateX(0.75rem);
  }
  50% {
    transform: translateX(var(--move-distance, -100px));
  }
  100% {
    transform: translateX(0.75rem);
  }
}

/* スクロール時のフェード効果 */
.mini-player-title-wrap.scrolling::before,
.mini-player-title-wrap.scrolling::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 2;
  pointer-events: none;
}

.mini-player-title-wrap.scrolling::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.mini-player-title-wrap.scrolling::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.mini-player-artist {
  font-size: 0.7rem;
  color: var(--text-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  margin-top: -0.1rem;
}

.mini-player-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 14px;
  padding: 0;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.mini-player-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--main-yellow);
  transform: scale(1.1);
}

.mini-player-btn:active {
  transform: scale(0.95);
  background: rgba(255, 215, 0, 0.3);
}

.mini-player-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4);
}

/* iPad向けのボタンスタイル（通常のデザインを維持） */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-mini-player {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 10px !important;
    width: calc(100vw - 180px) !important;
    min-width: 200px !important;
    max-width: calc(100vw - 180px) !important;
    z-index: 10001 !important;
  }

  .menu-toggle {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10002 !important;
  }
  
  .header-mini-player .mini-player-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    border-width: 1px !important;
    background: transparent !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
  }
  
  .header-mini-player .mini-player-btn:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: var(--main-yellow) !important;
    transform: scale(1.1) !important;
  }
  
  .header-mini-player .mini-player-btn:active {
    transform: scale(0.95) !important;
    background: rgba(255, 215, 0, 0.3) !important;
  }
}

/* iPhone向けのボタンスタイル改善 */
@media (max-width: 768px) {
  .header-mini-player .mini-player-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
    border-width: 2px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
  }
  
  .header-mini-player .mini-player-controls {
    gap: 0.4rem !important;
    padding-left: 0.6rem !important;
  }
  
  .header-mini-player .mini-player-btn:active {
    transform: scale(0.88) !important;
    background: rgba(255, 215, 0, 0.3) !important;
    border-color: var(--main-yellow) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
  }
}

/* ============================================
   ヒーローセクション
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
  min-height: 100vh;
  isolation: isolate;
  padding: 2rem 0;
  box-sizing: border-box;
}

/* 参考サイト風の背景エフェクト */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(255, 215, 0, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 235, 180, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(135, 206, 235, 0.15) 0%, transparent 70%);
  z-index: 0;
  animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  mix-blend-mode: screen;
}

.noise-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.03;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: visible;
  padding-top: 10vh;
  padding-bottom: 10vh;
}

.hero-title-wrapper {
  margin-bottom: auto;
  flex: 0 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  padding: 1rem 0;
  max-width: 100%;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(50px) rotateX(90deg);
  animation: titleReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  position: relative;
  transform-origin: center bottom;
  transition: transform 0.3s ease-out;
  max-width: 100%;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

.title-line:hover {
  transform: translateY(0) rotateX(0deg) scale(1.02);
}

.title-line:nth-child(1) {
  animation-delay: 0.3s;
  color: var(--text-light);
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.3),
    0 0 40px rgba(255, 215, 0, 0.2);
}

.title-line:nth-child(2) {
  animation-delay: 0.6s;
  background: linear-gradient(135deg, var(--main-yellow), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
  position: relative;
}

.title-line:nth-child(2)::before,
.title-line:nth-child(2)::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--main-yellow), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: glitchText 3s infinite;
}

.title-line:nth-child(2)::before {
  clip-path: inset(0 0 50% 0);
  transform: translateX(-2px);
  animation-delay: 0.1s;
}

.title-line:nth-child(2)::after {
  clip-path: inset(50% 0 0 0);
  transform: translateX(2px);
  animation-delay: 0.2s;
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(45deg) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) rotateX(-2deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

@keyframes glitchText {
  0%, 90%, 100% {
    opacity: 0;
    transform: translateX(0);
  }
  92% {
    opacity: 0.8;
    transform: translateX(-3px);
  }
  94% {
    opacity: 0.8;
    transform: translateX(3px);
  }
  96% {
    opacity: 0.8;
    transform: translateX(-2px);
  }
  98% {
    opacity: 0;
    transform: translateX(2px);
  }
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-gray);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.9s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-scroll-indicator {
  position: relative;
  margin-top: auto;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.2s forwards;
  z-index: 10;
  flex: 0 0 auto;
}

.scroll-text {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-gray);
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: var(--main-yellow);
  position: relative;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--main-yellow);
  border-bottom: 2px solid var(--main-yellow);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-1);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-2);
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  top: 50%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ============================================
   セクション共通スタイル
   ============================================ */
.section {
  position: relative;
  padding: 15rem 0;
  min-height: 100vh;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  display: flex;
  align-items: center;
  position: relative;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 初期状態でも表示されるように */
.section:not(.hero-section) {
  opacity: 1;
}

.section-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 6rem;
  width: 100%;
}

.section-header {
  margin-bottom: 10rem;
  text-align: left;
}

.section-label {
  font-size: 0.75rem;
  color: var(--text-dark-gray);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  display: block;
}

.section-title {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 200;
  letter-spacing: -0.08em;
  margin-bottom: 4rem;
  line-height: 0.9;
  color: var(--text-white);
  text-transform: none;
  font-family: 'Inter', sans-serif;
}

.section-description {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--text-gray);
  letter-spacing: 0;
  margin-bottom: 0;
  line-height: 1.8;
  max-width: 700px;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
}

.sort-note {
  font-size: 0.7em;
  color: var(--text-gray);
  opacity: 0.7;
  font-weight: 400;
}

/* ============================================
   WORKS セクション
   ============================================ */
.works-section {
  background: var(--bg-dark);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.work-card {
  position: relative;
  border-radius: 0;
  padding: 4rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.work-card:hover {
  transform: translateY(-5px);
  background: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.2);
}

.work-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.work-card-title {
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--text-white);
  margin: 0;
  flex: 1;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.work-card-price {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dark-gray);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-card-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin: 2rem 0 0 0;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
}

.work-card-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-card-features li {
  font-size: 1rem;
  color: var(--text-gray);
  padding-left: 0;
  position: relative;
  line-height: 2;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  list-style: none;
}

.work-card-features li::before {
  content: '';
  display: none;
}

.work-card-demo-btn {
  display: inline-block;
  margin-top: 3rem;
  padding: 0;
  background: transparent;
  color: var(--text-white);
  text-decoration: none;
  border-radius: 0;
  font-weight: 300;
  transition: all 0.3s ease;
  text-align: left;
  align-self: flex-start;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-card-demo-btn:hover {
  border-bottom-color: var(--text-white);
  color: var(--text-white);
  transform: translateX(5px);
  box-shadow: none;
}

.work-card-demo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* ============================================
   MUSIC セクション
   ============================================ */
.music-section {
  background: var(--bg-dark);
}

.music-container-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.music-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2rem 0 3rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--main-yellow) transparent;
  position: relative;
  scroll-behavior: smooth;
  /* マウスホイールでの横スクロールを有効化 */
  overscroll-behavior-x: contain;
}

.music-container::-webkit-scrollbar {
  height: 1px !important;
}

.music-container::-webkit-scrollbar-track {
  background: transparent !important;
}

.music-container::-webkit-scrollbar-thumb {
  background: var(--main-yellow) !important;
  border-radius: 0 !important;
  height: 1px !important;
}

.music-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue) !important;
  height: 2px !important;
}

/* Firefox用 */
.music-container {
  scrollbar-width: thin !important;
  scrollbar-color: var(--main-yellow) transparent !important;
}

.music-scroll-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.15);
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: var(--main-yellow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.music-scroll-btn:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: var(--main-yellow);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.music-scroll-btn:active {
  transform: scale(0.95);
}

.music-scroll-btn.hidden {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

.music-scroll-btn svg {
  width: 24px;
  height: 24px;
}

.albums-grid {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  min-height: 320px;
  width: max-content;
  padding: 1rem 4rem;
  align-items: center;
}

.albums-grid:empty::before {
  content: 'アルバムデータを読み込み中...';
  display: block;
  text-align: center;
  color: var(--text-gray);
  padding: 4rem;
}

.album-card {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  backdrop-filter: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0) scale(1);
  box-shadow: none;
}

.album-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}

.album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  border-radius: 0;
  filter: grayscale(20%) brightness(0.9);
  animation: none !important;
}

.album-card:hover .album-cover {
  transform: scale(1.05) !important;
  filter: grayscale(0%) brightness(1);
  animation: none !important;
}

/* 再生中のアルバムカード */
.album-card.playing {
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.5),
    0 0 60px rgba(255, 215, 0, 0.3),
    0 25px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--main-yellow);
  animation: playingPulse 2s ease-in-out infinite;
  z-index: 10;
}

.album-card.playing::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: playingGlow 2s ease-in-out infinite;
  border-radius: 12px;
}

/* 再生中のアルバムカードの画像は回転しない */
.album-card.playing .album-cover {
  animation: none !important;
  transform: none !important;
}

/* 全てのアルバムカードの画像は回転しない（再生中でない場合も） */
.album-cover {
  animation: none !important;
}

@keyframes playingPulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(255, 215, 0, 0.5),
      0 0 60px rgba(255, 215, 0, 0.3),
      0 25px 50px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(255, 215, 0, 0.7),
      0 0 80px rgba(255, 215, 0, 0.4),
      0 25px 50px rgba(0, 0, 0, 0.5);
  }
}

@keyframes playingGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* 再生中のインジケーター */
.album-card .playing-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 2px solid var(--main-yellow);
}

.album-card.playing .playing-indicator {
  display: flex;
}

.album-card .playing-indicator::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid var(--main-yellow);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
  animation: playingIconPulse 1.5s ease-in-out infinite;
}

.album-card .playing-indicator.paused::before {
  width: 14px;
  height: 14px;
  border: none;
  background: var(--main-yellow);
  margin-left: 0;
  clip-path: polygon(0 0, 0 100%, 33% 100%, 33% 0, 66% 0, 66% 100%, 100% 100%, 100% 0);
  animation: none;
}

@keyframes playingIconPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

.album-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 9, 20, 0.95) 100%);
  transform: translateY(100%);
  transition: transform 0.4s;
}

.album-card:hover .album-info {
  transform: translateY(0);
}

.album-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-yellow);
  margin-bottom: 0.3rem;
}

.album-tracks {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* ============================================
   ILLUSTRATIONS セクション
   ============================================ */
.illustrations-section {
  background: var(--bg-dark);
}

.illustrations-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  min-height: 200px;
}

.illustrations-masonry:empty::before {
  content: 'イラストデータを読み込み中...';
  display: block;
  text-align: center;
  color: var(--text-gray);
  padding: 4rem;
  grid-column: 1 / -1;
}

.illustration-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.6s ease-out forwards;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.illustration-item:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(255, 215, 0, 0.4);
  border-color: var(--main-yellow);
}

.illustration-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}

.illustration-item:hover .illustration-image {
  transform: scale(1.1);
}

/* 動画アイテム用スタイル */
.illustration-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}

.illustration-item:hover .illustration-video {
  transform: scale(1.1);
}

.illustration-item.video-item {
  position: relative;
}

.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.illustration-item.video-item:hover .video-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

/* モーダル内動画スタイル */
.image-modal-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  background: #000;
}

.image-modal-container.video-modal {
  text-align: center;
}

/* ============================================
   LINKS セクション
   ============================================ */
.links-section {
  background: var(--bg-dark);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  min-height: 200px;
}

.links-grid:empty::before {
  content: 'リンクデータを読み込み中...';
  display: block;
  text-align: center;
  color: var(--text-gray);
  padding: 4rem;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
  text-align: center;
}

.link-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.link-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--main-yellow);
}

.link-card:hover::before {
  opacity: 1;
}

/* アイコン/画像のスタイル */
.link-card-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  z-index: 2;
  flex-shrink: 0;
}

.link-card-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid rgba(255, 215, 0, 0.4);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.2);
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.1);
}

.link-card:hover .link-card-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--main-yellow);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 215, 0, 0.4);
}

.link-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.link-card-title,
.link-card-name,
.link-card-description,
.link-card-button {
  position: relative;
  z-index: 2;
}

.link-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-yellow);
  margin-bottom: 0.5rem;
}

.link-card-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.link-card-description {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* 「私すき」コメントの吹き出しデザイン（説明文の下に小さく表示） */
.link-card-comment {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.75rem auto 0;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.85) 0%, rgba(255, 192, 203, 0.75) 100%);
  color: #8B5A6B;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  box-shadow: 
    0 2px 8px rgba(255, 182, 193, 0.2),
    0 0 12px rgba(255, 182, 193, 0.1);
  z-index: 2;
  animation: commentBubble 0.4s ease-out;
  transform-origin: center;
  text-align: center;
  align-self: center;
  border: 1px solid rgba(255, 182, 193, 0.3);
}

/* 吹き出しのしっぽ（上向き） */
.link-card-comment::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(255, 182, 193, 0.85);
  filter: drop-shadow(0 -1px 2px rgba(255, 182, 193, 0.15));
}

/* 吹き出しアニメーション */
@keyframes commentBubble {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ホバー時のアニメーション */
.link-card:hover .link-card-comment {
  transform: scale(1.05);
  box-shadow: 
    0 3px 10px rgba(255, 182, 193, 0.3),
    0 0 16px rgba(255, 182, 193, 0.15);
}

/* スマホ表示時の調整 */
@media (max-width: 900px) {
  .link-card-comment {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    margin-top: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .link-card-comment::before {
    top: -5px;
    border-left-width: 5px;
    border-right-width: 5px;
    border-bottom-width: 5px;
  }
}

/* ============================================
   GOODS セクション（特徴的なデザイン）
   ============================================ */
.goods-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  position: relative;
  overflow: hidden;
}

.goods-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(0, 195, 0, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 245, 230, 0.3) 0%, rgba(255, 250, 240, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
}

.goods-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.goods-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.goods-card:nth-child(even) {
  flex-direction: row-reverse;
}

.goods-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 245, 230, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  border-radius: 12px;
}

.goods-card:hover::before {
  opacity: 1;
}

.goods-card:hover {
  transform: translateX(10px);
  padding-left: 2.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

.goods-card:nth-child(even):hover {
  transform: translateX(-10px);
  padding-right: 2.5rem;
  padding-left: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

.goods-card-image-wrapper {
  flex: 0 0 400px;
  width: 400px;
  height: 400px;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.goods-card:nth-child(odd) .goods-card-image-wrapper {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.goods-card:nth-child(even) .goods-card-image-wrapper {
  transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.goods-card:hover .goods-card-image-wrapper {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.goods-card-image-wrapper::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
}

.goods-card:hover .goods-card-image-wrapper::after {
  opacity: 1;
}

.goods-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(20%) brightness(0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.goods-card:hover .goods-card-image {
  filter: grayscale(0%) brightness(1.05);
  box-shadow: 0 30px 80px rgba(255, 215, 0, 0.2);
}

.goods-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
}

.goods-card-info::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--main-yellow) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.goods-card:nth-child(even) .goods-card-info::before {
  left: auto;
  right: -2rem;
}

.goods-card:hover .goods-card-info::before {
  opacity: 1;
}

.goods-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}

.goods-card-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--main-yellow);
  transition: width 0.6s ease;
}

.goods-card:hover .goods-card-title::after {
  width: 100%;
}

.goods-card-description {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin: 0;
  max-width: 500px;
  font-weight: 300;
}

.goods-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  align-self: flex-start;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.goods-card-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.goods-card:hover .goods-card-badge::before {
  left: 100%;
}

.goods-card-badge-suzuri {
  background: rgba(255, 215, 0, 0.1);
  color: var(--main-yellow);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.goods-card:hover .goods-card-badge-suzuri {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--main-yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.goods-card-badge-line {
  background: rgba(0, 195, 0, 0.1);
  color: #00c300;
  border: 2px solid rgba(0, 195, 0, 0.3);
}

.goods-card:hover .goods-card-badge-line {
  background: rgba(0, 195, 0, 0.2);
  border-color: #00c300;
  box-shadow: 0 0 20px rgba(0, 195, 0, 0.3);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .goods-card {
    flex-direction: column !important;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .goods-card-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    height: 300px;
  }
  
  .goods-card-info::before {
    display: none;
  }
  
  .goods-card-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   ABOUT セクション
   ============================================ */
/* ============================================
   CONTACT セクション
   ============================================ */
.contact-section {
  background: var(--bg-dark);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-info {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-white);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
  font-weight: 300;
}

.contact-form-wrapper {
  background: transparent;
  border: none;
  padding: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dark-gray);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-weight: 300;
  color: var(--text-white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--main-yellow);
  border-bottom-width: 2px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(44, 44, 44, 0.4);
  font-weight: 300;
}

.form-group textarea {
  min-height: 120px;
  padding-top: 0.5rem;
}

.contact-submit-btn {
  padding: 0.875rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-white);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  align-self: flex-start;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-submit-btn:hover {
  background: var(--main-yellow);
  border-color: var(--main-yellow);
  color: var(--bg-dark);
  transform: none;
}

.contact-submit-btn:active {
  transform: none;
}

.contact-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact-message {
  margin-top: 1.5rem;
  padding: 0.875rem 0;
  text-align: left;
  font-weight: 300;
  font-size: 0.9rem;
  display: none !important;
  border-bottom: 1px solid;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.contact-message.success {
  display: block !important;
  color: var(--text-dark-gray);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.contact-message.error {
  display: block !important;
  color: var(--text-dark-gray);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

@media (max-width: 768px) {
  .contact-content {
    padding: 2rem 1rem;
  }
  
  .contact-info h3 {
    font-size: 1.5rem;
  }
  
  .contact-form {
    gap: 2rem;
  }
  
  .contact-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

.about-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-intro,
.about-site {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
  position: relative;
  z-index: 1;
}

.about-site {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--main-yellow);
  display: inline-block;
}

.about-intro-text,
.about-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-white) !important;
  position: relative;
  z-index: 1;
  visibility: visible !important;
}

.about-intro-text p,
.about-text p {
  margin-bottom: 1.5rem;
  opacity: 1 !important;
  transform: translateX(0) !important;
  animation: none !important;
  color: var(--text-white);
}

.about-intro-text p:nth-child(2),
.about-text p:nth-child(2) {
  animation-delay: 0.2s;
}

.about-intro-text p:nth-child(3),
.about-text p:nth-child(3) {
  animation-delay: 0.4s;
}

.about-keywords {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.keywords-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.keywords-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.keyword-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: default;
  border: 1px solid transparent;
  white-space: nowrap;
}

.keyword-skill {
  background: rgba(255, 215, 0, 0.1);
  color: var(--main-yellow);
  border-color: rgba(255, 215, 0, 0.3);
}

.keyword-skill:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--main-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.keyword-tool {
  background: rgba(0, 195, 0, 0.1);
  color: #00c300;
  border-color: rgba(0, 195, 0, 0.3);
}

.keyword-tool:hover {
  background: rgba(0, 195, 0, 0.2);
  border-color: #00c300;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 195, 0, 0.2);
}

.keyword-community {
  background: rgba(135, 206, 235, 0.1);
  color: var(--accent-blue);
  border-color: rgba(135, 206, 235, 0.3);
}

.keyword-community:hover {
  background: rgba(135, 206, 235, 0.2);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(135, 206, 235, 0.2);
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-visual {
  position: relative;
  height: 300px;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-character {
  position: absolute;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  animation: floatCharacter 10s ease-in-out infinite;
  transition: all 0.4s ease;
  cursor: pointer;
}

.character-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: brightness(0.95);
}

.floating-character:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.4));
  z-index: 10;
}

.floating-character:hover .character-img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.element-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.element-2 {
  top: 30%;
  right: 15%;
  animation-delay: 3s;
}

.element-3 {
  bottom: 15%;
  left: 20%;
  animation-delay: 6s;
}

@keyframes floatCharacter {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg); 
  }
  20% { 
    transform: translate(20px, -30px) rotate(3deg); 
  }
  40% { 
    transform: translate(-15px, -20px) rotate(-3deg); 
  }
  60% { 
    transform: translate(25px, 15px) rotate(2deg); 
  }
  80% { 
    transform: translate(-10px, 25px) rotate(-2deg); 
  }
}

/* ABOUT セクション レスポンシブ対応 */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-subtitle {
    font-size: 1.3rem;
  }
  
  .about-intro-text,
  .about-text {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .about-content {
    gap: 2.5rem;
    margin-bottom: 3rem;
  }
  
  .about-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .about-intro-text,
  .about-text {
    font-size: 0.95rem;
    line-height: 1.8;
  }
  
  .about-intro-text p,
  .about-text p {
    margin-bottom: 1.2rem;
  }
  
  .about-keywords {
    margin-top: 2rem;
  }
  
  .keywords-title {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .keyword-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .about-visual {
    height: 250px;
    margin-top: 1.5rem;
  }
}

/* ============================================
   フッター
   ============================================ */
.main-footer {
  padding: 3rem;
  text-align: center;
  background: #D4B08A;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-text {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--main-yellow);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-gray);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.social-icon:hover {
  color: var(--main-yellow);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-content {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ============================================
   モーダル
   ============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: var(--bg-dark);
  border-radius: 20px;
  border: none !important;
  padding: 2rem;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 1;
}

.modal-close:hover {
  background: var(--main-yellow);
  color: var(--bg-dark);
  transform: rotate(90deg);
}

/* --- Album Player Modal (Final Version) - ミニマルデザイン --- */
.modal-content,
.modal-content.album-modal-mode {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.modal-content.album-modal-mode {
  max-width: 720px;
  width: 95vw;
}

.album-player-container {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2rem 0;
  box-shadow: none;
  max-height: 90vh; 
}

.album-player-grid {
  display: flex;
  flex-direction: column; 
  gap: 1.5em;
  flex-grow: 1; 
  min-height: 0;
}

.album-player-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0; 
}

.album-cover-art {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.album-cover-art.spinning {
  animation: spin 12s linear infinite;
  border-radius: 50%;
}
.album-player-title {
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 1.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}
.album-player-artist {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 300;
}
.album-player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 2em;
}
.album-player-main-controls, .album-player-sub-controls {
  display: flex;
  align-items: center;
  gap: 1em;
}

.album-player-right {
  overflow-y: auto;
  min-height: 0;
  flex-grow: 1;
}
.album-track-list {
  list-style: none;
  padding: 0 0.5em 0 0;
  margin: 0;
}
.album-track-list li { margin-bottom: 0.5em; }
.album-player-right::-webkit-scrollbar {
  width: 6px;
}
.album-player-right::-webkit-scrollbar-track {
  background: transparent;
}
.album-player-right::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0;
}
.album-player-right::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* --- Buttons (ミニマルデザイン) --- */
.album-music-btn {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  font-size: 1.2em;
  font-weight: 300;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.album-music-btn.play-pause-btn {
  width: 60px;
  height: 60px;
  border-radius: 0;
  font-size: 1.5em;
}

.album-music-btn.loading {
  opacity: 0.6;
  cursor: wait;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.album-music-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.album-music-btn:hover:not(:disabled) {
  background: var(--main-yellow);
  border-color: var(--main-yellow);
  color: var(--bg-dark);
}
.album-music-btn:active:not(:disabled) { transform: scale(0.95); }

.album-mode-btn {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  padding: 0.5em 0.8em;
  font-size: 0.75rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-mode-btn:hover {
  border-color: var(--main-yellow);
  color: var(--text-white);
}
.album-mode-btn.active {
  background: transparent;
  color: var(--text-white);
  border-color: var(--main-yellow);
  border-bottom-width: 2px;
}

.album-track-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 300;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0.875rem 0;
  border-radius: 0;
  transition: all 0.3s ease;
}
.album-track-btn:hover {
  border-bottom-color: var(--main-yellow);
  border-bottom-width: 2px;
}
.album-track-btn.active,
li.active .album-track-btn {
  background: transparent !important;
  color: var(--text-white) !important;
  border-bottom-color: var(--main-yellow) !important;
  border-bottom-width: 2px !important;
  font-weight: 400 !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* タブナビゲーション */
.music-tabs {
  display: flex !important;
  justify-content: center !important;
  gap: 0 !important;
  margin-bottom: 2rem !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
  padding-bottom: 0 !important;
  width: 100% !important;
  min-width: 300px !important;
}

.tab-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--text-gray) !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

.tab-btn:hover {
  color: var(--text-white) !important;
  border-bottom-color: rgba(0, 0, 0, 0.2) !important;
}

.tab-btn.active {
  color: var(--text-white) !important;
  border-bottom-color: var(--main-yellow) !important;
  background: transparent !important;
}

.tab-btn.active::after {
  display: none !important;
}

.tab-content {
  display: none !important;
  animation: fadeIn 0.3s ease-in-out !important;
  width: 100% !important;
  min-width: 300px !important;
}

.tab-content.active {
  display: block !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lyrics-container {
  max-height: 300px !important;
  overflow-y: auto !important;
  padding: 1.5rem 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  text-align: left !important;
}

.lyrics-text {
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
  color: var(--text-white) !important;
  font-weight: 300 !important;
  white-space: pre-line !important;
  font-family: 'Noto Sans JP', 'Inter', sans-serif !important;
}

.lyrics-container::-webkit-scrollbar {
  width: 6px !important;
}

.lyrics-container::-webkit-scrollbar-track {
  background: transparent !important;
  border-radius: 0 !important;
}

.lyrics-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 0 !important;
}

.lyrics-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3) !important;
}

/* --- 音楽モーダル：Spotify風進捗バー --- */
.album-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  margin: 0.7em 0 0.2em 0;
  padding: 0 0.5em;
}
#albumCurrentTime, #albumDuration {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 300;
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
#albumProgressBar {
  flex: 1 1 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  accent-color: var(--main-yellow);
  border-radius: 0;
  outline: none;
  margin: 0 0.5em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.3s ease;
}
#albumProgressBar::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0;
}
#albumProgressBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--main-yellow);
  box-shadow: none;
  border: 1px solid var(--main-yellow);
  margin-top: -5px;
  transition: all 0.3s ease;
}
#albumProgressBar:focus::-webkit-slider-thumb {
  background: var(--main-yellow);
}
#albumProgressBar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--main-yellow);
  border: 1px solid var(--main-yellow);
  box-shadow: none;
  transition: all 0.3s ease;
}
#albumProgressBar:focus::-moz-range-thumb {
  background: var(--main-yellow);
}
#albumProgressBar::-ms-thumb {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--main-yellow);
  border: 1px solid var(--main-yellow);
  box-shadow: none;
  transition: all 0.3s ease;
}
#albumProgressBar:focus::-ms-thumb {
  background: var(--main-yellow);
}
#albumProgressBar::-ms-fill-lower {
  background: var(--main-yellow);
  border-radius: 0;
}
#albumProgressBar::-ms-fill-upper {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0;
}
#albumProgressBar:focus {
  outline: none;
  box-shadow: none;
}

/* 音楽モーダル内のミュートボタン（画面右下固定） */
.modal-content.album-modal-mode #albumMuteBtn {
  position: fixed !important;
  bottom: 40px !important;
  right: 24px !important;
  z-index: 15000 !important;
  width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

.modal-content.album-modal-mode #albumMuteBtn:hover {
  background: var(--main-yellow) !important;
  border-color: var(--main-yellow) !important;
  transform: none;
}

.modal-content.album-modal-mode #albumMuteBtn svg {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--text-white);
}

/* --- Responsive Layouts (ここからが本番) --- */

/* タブレット・PC向けの2列レイアウト（縦位置タブレット除く） */
@media (min-width: 769px) {
   .album-player-grid {
    flex-direction: row;
    align-items: stretch;
  }
  .album-player-left {
    flex-basis: 220px;
    flex-shrink: 0;
    flex-grow: 0;
  }
}

/* タブレット縦位置や高さが低いデバイス向けの調整 */
@media (min-width: 601px) and (max-width: 768px), (min-width: 769px) and (max-height: 600px) {
  .album-player-grid {
    flex-direction: row;
    align-items: stretch;
  }
  .album-player-left {
     flex-basis: 180px;
  }
  .album-cover-art {
    width: 140px;
    height: 140px;
  }
  .album-player-title {
    font-size: 1.1em;
    margin-top: 0.5em;
  }
  .album-player-artist {
    font-size: 0.9em;
    margin-top: 0.05em;
  }
  .album-player-controls {
    margin-top: 1em;
    transform: scale(0.85);
    gap: 0.6em;
  }
}

/* ============================================
   レスポンシブ
   ============================================ */
/* ハンバーガーメニュー表示（タブレット縦位置・スマホ） */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }
  
  .main-nav {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 248, 231, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex !important;
    pointer-events: auto !important;
    left: auto !important;
  }
  
  .main-nav * {
    pointer-events: auto !important;
  }
  
  .main-nav.nav-open {
    right: 0 !important;
    left: auto !important;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    touch-action: manipulation;
  }
  
  .nav-link:hover,
  .nav-link:active {
    opacity: 0.8;
    background-color: rgba(255, 215, 0, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  /* オーバーレイを完全に削除 */
  body.menu-open::before,
  body.menu-open::after {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 1rem 1.5rem;
  }

  .section {
    padding: 8rem 0;
  }

  .section-container {
    padding: 0 2rem;
  }

  .section-header {
    margin-bottom: 4rem;
  }

  .section-label {
    font-size: 0.7rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(3rem, 12vw, 6rem);
    margin-bottom: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .works-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .albums-grid {
    gap: 1.5rem;
    padding: 1rem 2rem;
  }

  .album-card {
    width: 220px;
    height: 220px;
  }

  .music-container {
    padding: 1.5rem 0 2.5rem 0;
  }

  .music-container-wrapper {
    gap: 0;
    position: relative;
  }

  .music-scroll-btn {
    width: 40px;
    height: 40px;
    z-index: 5;
    background: rgba(255, 215, 0, 0.08);
    border: 2px solid rgba(255, 215, 0, 0.15);
    position: absolute;
    backdrop-filter: blur(5px);
  }
  
  .music-scroll-left {
    left: 5px;
  }
  
  .music-scroll-right {
    right: 5px;
  }

  .music-scroll-btn svg {
    width: 20px;
    height: 20px;
    z-index: 6;
    position: relative;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  }
  
  .albums-grid {
    padding: 1rem 45px !important;
  }
  
  /* 矢印ボタンの下にアルバムの端が見えるように */
  .music-container {
    position: relative;
  }
  
  .album-card {
    position: relative;
    z-index: 1;
  }

  .music-container {
    padding: 1.5rem 0 2.5rem 0;
  }

  .music-container::before,
  .music-container::after {
    width: 40px;
  }

  .link-card-icon-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .links-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .link-card {
    padding: 2rem;
  }
  
  .link-card-title {
    font-size: 1.3rem;
  }
  
  .link-card-name {
    font-size: 0.85rem;
  }
  
  .link-card-description {
    font-size: 0.9rem;
  }

  .illustrations-masonry {
    columns: 2;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* iPad Pro 11インチ横位置向け（ハンバーガーメニューを表示） */
@media (min-width: 1025px) and (max-width: 1200px) {
  .menu-toggle {
    display: flex !important;
    z-index: 10002 !important;
    position: relative;
  }
  
  .header-container {
    position: relative;
  }
  
  .header-mini-player {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    padding: 0.3rem 0.5rem;
    gap: 0.5rem;
  }
  
  .mini-player-info {
    max-width: 160px;
    min-width: 0;
    flex: 1;
  }
  
  .mini-player-title {
    font-size: 0.8rem;
  }
  
  .mini-player-artist {
    font-size: 0.7rem;
  }
  
  .mini-player-cover {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  
  .header-container.mini-player-visible .logo {
    position: relative;
    z-index: 10000;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 248, 231, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .main-nav.nav-open {
    right: 0;
  }
}

/* ハンバーガーメニュー表示（タブレット縦位置・スマホ） */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
    z-index: 10002 !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* ミニプレーヤーとハンバーガーメニューを重ねる */
  .header-container {
    position: relative;
  }
  
  .header-mini-player {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    z-index: 10001;
    width: calc(100vw - 180px);
    min-width: 140px;
    max-width: calc(100vw - 180px);
  }
  
  /* ミニプレーヤーが表示されている時はロゴを非表示 */
  .header-container.mini-player-visible .logo {
    display: none !important;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 248, 231, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .main-nav.nav-open {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  /* オーバーレイを完全に削除 */
  body.menu-open::before,
  body.menu-open::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* より小さい画面ではミニプレーヤーをさらに縮小（iPad Pro 11インチ横位置と同じ設定に統一） */
@media (max-width: 600px) {
  .header-mini-player {
    right: 10px;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    padding: 0.3rem 0.4rem 0.3rem 0.6rem;
    gap: 0.5rem;
  }
  
  .mini-player-cover {
    width: 28px;
    height: 28px;
  }
  
  .mini-player-title {
    font-size: 0.75rem;
  }
  
  .mini-player-artist {
    font-size: 0.65rem;
  }
  
  /* ミニプレーヤーが表示されている時、ロゴを非表示 */
  .header-container.mini-player-visible .logo {
    position: relative;
    z-index: 10000;
  }
}

@media (max-width: 480px) {
  .illustrations-masonry {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
  }
}

/* ============================================
   画像モーダル
   ============================================ */
.modal-content.image-modal-mode {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  max-width: 95vw;
  max-height: 95vh;
  overflow: visible;
}

.image-modal-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.image-modal-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.4);
}

.image-modal-title-wrapper {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.image-modal-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin: 0;
  text-align: center;
}

.image-modal-date {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  text-align: center;
}

.image-modal-description {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

/* --- Responsive Layouts (ここからが本番) --- */

/* タブレット・PC向けの2列レイアウト（縦位置タブレット除く） */
@media (min-width: 769px) {
   .album-player-grid {
    flex-direction: row;
    align-items: stretch;
  }
  .album-player-left {
    flex-basis: 220px;
    flex-shrink: 0;
    flex-grow: 0;
  }
}

/* タブレット縦位置や高さが低いデバイス向けの調整 */
@media (min-width: 601px) and (max-width: 768px), (min-width: 769px) and (max-height: 600px) {
  .album-player-grid {
    flex-direction: row;
    align-items: stretch;
  }
  .album-player-left {
     flex-basis: 180px;
  }
  .album-cover-art {
    width: 140px;
    height: 140px;
  }
  .album-player-title {
    font-size: 1.1em;
    margin-top: 0.5em;
  }
  .album-player-artist {
    font-size: 0.9em;
    margin-top: 0.05em;
  }
  .album-player-controls {
    margin-top: 1em;
    transform: scale(0.85);
    gap: 0.6em;
  }
}

/* スマホ向けの音楽モーダル調整 */
@media (max-width: 600px) {
  .modal-content.album-modal-mode .album-player-container {
    padding: 1rem 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  .modal-content.album-modal-mode {
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  .modal-content.album-modal-mode .album-player-left {
    padding-top: 0.5rem !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
  
  .modal-content.album-modal-mode .album-cover-art {
    width: 160px !important;
    height: 160px !important;
    margin-bottom: 0 !important;
  }
  
  .modal-content.album-modal-mode .album-player-title {
    font-size: 1.2rem !important;
    margin-top: 0.8rem !important;
    line-height: 1.3 !important;
  }
  
  .modal-content.album-modal-mode .album-player-artist {
    font-size: 0.85rem !important;
    margin-top: 0.3rem !important;
  }
  
  .modal-content.album-modal-mode .current-playing-track {
    margin-top: 0.8rem !important;
    padding: 0.6rem 0.8rem !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
  }
  
  .modal-content.album-modal-mode .current-track-label {
    font-size: 0.7rem !important;
  }
  
  .modal-content.album-modal-mode .current-track-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }
  
  .modal-content.album-modal-mode .album-player-controls {
    margin-top: 1em !important;
    gap: 0.8em !important;
  }
  
  .modal-content.album-modal-mode .album-player-grid {
    gap: 1em !important;
  }
  
  .modal-content.album-modal-mode .album-player-right {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 50vh !important;
    min-height: 250px !important;
    margin-top: 1.5rem !important;
    padding: 0 0.5rem !important;
    flex: 1 1 auto !important;
  }
  
  .modal-content.album-modal-mode .album-track-list {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .modal-content.album-modal-mode .album-track-list li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .modal-content.album-modal-mode .album-track-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.9rem !important;
    color: var(--text-white) !important;
  }
  
  /* モーダル全体の高さを確保 */
  .modal-content.album-modal-mode {
    max-height: 95vh !important;
    overflow-y: auto !important;
  }
  
  /* コンテナの高さを確保 */
  .modal-content.album-modal-mode .album-player-container {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* グリッドの高さを確保 */
  .modal-content.album-modal-mode .album-player-grid {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
}

.music-visualizer {
  width: 100%;
  height: 80px;
  display: block;
  border-radius: 8px;
}

/* ============================================
   登校可能日判定アプリ
   ============================================ */
.school-check-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
}

.school-check-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.school-check-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.school-check-form .form-group {
  margin-bottom: 1.5rem;
}

.school-check-form label {
  display: block;
  color: #666666;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.school-check-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #333333;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.school-check-form .form-input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.15);
}

.school-check-form .form-hint {
  display: block;
  color: #888888;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.school-check-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent-yellow);
  color: #1A1A1A;
  border: 2px solid var(--accent-yellow);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  opacity: 1;
  display: block;
}

.school-check-btn:hover {
  background: #ffd700;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.school-check-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

.school-check-btn:focus {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

.school-check-result {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  animation: fadeInUp 0.5s ease;
}

.school-check-result.hidden {
  display: none;
}

.result-header {
  margin-bottom: 1.5rem;
}

.result-header h3 {
  color: #333333;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.result-item.highlight {
  background: rgba(255, 215, 0, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent-yellow);
  margin-top: 0.5rem;
}

.result-label {
  color: #666666;
  font-size: 0.95rem;
  font-weight: 500;
}

.result-item.highlight .result-label {
  color: var(--accent-yellow);
  font-weight: 600;
}

.result-value {
  color: #333333;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
}

.result-item.highlight .result-value {
  color: var(--accent-yellow);
  font-size: 1.1rem;
}

.result-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.result-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-note p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .school-check-container {
    padding: 1rem;
  }
  
  .school-check-form {
    padding: 1.5rem;
  }
  
  .school-check-result {
    padding: 1.5rem;
  }
  
  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .result-value {
    text-align: left;
  }
}
