/* index.htmlの<style>タグ内の内容をすべてここに貼り付け */ 
:root {
  --main-yellow: #ffd700;
  --bg-color: #000;
  --text-color: #fff;
}

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

body, html {
  min-height: 100vh;
  transition: background 1s;
  color: var(--text-color);
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
  padding-top: 72px;
  background-color: #050914 !important; /* 余白用の夜色 */
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#cursorLight {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px !important;
  height: 60px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

#cursorLight img {
  width: 60px !important;
  height: 60px !important;
  pointer-events: none;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 0.5rem;
  background-color: #ffd700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 20000 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  pointer-events: auto;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
}

body.modal-is-open header {
  transform: translateY(-120%);
}

/* メニュー展開時にミニプレーヤーを非表示 */
#mainNav:not(.main-nav-collapsed) ~ header .header-mini-player,
body:not(.modal-is-open) #mainNav:not(.main-nav-collapsed) ~ header .header-mini-player {
  display: none !important;
}

/* --- S3ロゴ（黒丸＋黄色文字） --- */
.logo {
  width: 40px;
  height: 40px;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px #0003;
  letter-spacing: 0.04em;
  margin-right: 0.3em;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 900;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  cursor: pointer;
  z-index: 13000;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #222;
  border-radius: 2px;
  transition: 0.3s;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #111;
}

nav a {
  color: var(--main-yellow);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  border: none !important;
  box-shadow: none !important;
}

.section {
  padding: 4rem 2rem;
  min-height: 100vh;
  transition: opacity 0.6s ease-out;
  background: transparent !important;
  margin-top: 120px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

h1, .hero-title-animate {
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

h2, h3, h4, h5, h6 {
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  font-weight: 700;
}

p, .hero-desc-animate {
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
}

.hero-title-animate {
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeInUp 1.2s cubic-bezier(.33,1.02,.54,1) 0.2s forwards;
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.hero-desc-animate {
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeInUp 1.4s cubic-bezier(.33,1.02,.54,1) 0.7s forwards;
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
}
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 1.2s cubic-bezier(.4,1.6,.4,1) forwards;
  animation-delay: 0.2s;
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 1.2s cubic-bezier(.4,1.6,.4,1) forwards;
  animation-delay: 0.7s;
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  text-align: left;
}

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

/* ヒーローテキストふわりアニメーション */
.hero-title-animate {
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeInUp 1.2s cubic-bezier(.33,1.02,.54,1) 0.2s forwards;
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.hero-desc-animate {
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeInUp 1.4s cubic-bezier(.33,1.02,.54,1) 0.7s forwards;
  font-family: 'Kosugi Maru', 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
}
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-container {
  position: relative;
}

.floating-item {
  position: absolute;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
  box-shadow:
    0 0 48px 0 rgba(255,235,120,0.35),
    0 2px 8px rgba(0,0,0,0.10);
  transition: top 0.8s ease-in-out, left 0.8s ease-in-out, transform 0.4s ease-in-out;
}

@keyframes float-1 {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-40px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes float-2 {
  0% { transform: translateY(-20px) rotate(-5deg); }
  50% { transform: translateY(35px) rotate(10deg); }
  100% { transform: translateY(-20px) rotate(-5deg); }
}

@keyframes float-3 {
  0% { transform: translateY(15px) rotate(7deg); }
  50% { transform: translateY(-45px) rotate(-12deg); }
  100% { transform: translateY(15px) rotate(7deg); }
}

@keyframes float-4 {
  0% { transform: translateY(-30px) rotate(-8deg); }
  50% { transform: translateY(25px) rotate(15deg); }
  100% { transform: translateY(-30px) rotate(-8deg); }
}

@keyframes float-5 {
  0% { transform: translateY(20px) rotate(12deg); }
  50% { transform: translateY(-35px) rotate(-10deg); }
  100% { transform: translateY(20px) rotate(12deg); }
}

@keyframes float-6 {
  0% { transform: translateY(-25px) rotate(-6deg); }
  50% { transform: translateY(40px) rotate(9deg); }
  100% { transform: translateY(-25px) rotate(-6deg); }
}

/* === 新規追加：より多様でランダム性の高いアニメーション === */
@keyframes float-7 {
  0% { transform: translateY(0) rotate(0) scale(1); }
  25% { transform: translateY(-30px) rotate(15deg) scale(1.05); }
  50% { transform: translateY(-50px) rotate(-5deg) scale(0.95); }
  75% { transform: translateY(-20px) rotate(20deg) scale(1.1); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes float-8 {
  0% { transform: translateY(-15px) rotate(-10deg) scale(0.9); }
  33% { transform: translateY(25px) rotate(12deg) scale(1.15); }
  66% { transform: translateY(-35px) rotate(-8deg) scale(0.85); }
  100% { transform: translateY(-15px) rotate(-10deg) scale(0.9); }
}

@keyframes float-9 {
  0% { transform: translateY(10px) rotate(5deg) scale(1.1); }
  20% { transform: translateY(-40px) rotate(-15deg) scale(0.9); }
  40% { transform: translateY(30px) rotate(25deg) scale(1.2); }
  60% { transform: translateY(-25px) rotate(-5deg) scale(0.8); }
  80% { transform: translateY(45px) rotate(18deg) scale(1.05); }
  100% { transform: translateY(10px) rotate(5deg) scale(1.1); }
}

@keyframes float-10 {
  0% { transform: translateY(-20px) rotate(-12deg) scale(0.95); }
  30% { transform: translateY(35px) rotate(8deg) scale(1.1); }
  60% { transform: translateY(-45px) rotate(-20deg) scale(0.85); }
  100% { transform: translateY(-20px) rotate(-12deg) scale(0.95); }
}

@keyframes float-11 {
  0% { transform: translateY(0) rotate(0) scale(1); }
  15% { transform: translateY(-25px) rotate(10deg) scale(1.05); }
  30% { transform: translateY(-40px) rotate(-5deg) scale(0.9); }
  45% { transform: translateY(-30px) rotate(15deg) scale(1.1); }
  60% { transform: translateY(-50px) rotate(-10deg) scale(0.85); }
  75% { transform: translateY(-20px) rotate(20deg) scale(1.15); }
  90% { transform: translateY(-35px) rotate(-8deg) scale(0.95); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes float-12 {
  0% { transform: translateY(-10px) rotate(-8deg) scale(1.05); }
  25% { transform: translateY(20px) rotate(12deg) scale(0.9); }
  50% { transform: translateY(-30px) rotate(-15deg) scale(1.2); }
  75% { transform: translateY(15px) rotate(8deg) scale(0.85); }
  100% { transform: translateY(-10px) rotate(-8deg) scale(1.05); }
}

@keyframes float-13 {
  0% { transform: translateY(5px) rotate(3deg) scale(0.9); }
  20% { transform: translateY(-35px) rotate(-12deg) scale(1.1); }
  40% { transform: translateY(25px) rotate(18deg) scale(0.8); }
  60% { transform: translateY(-40px) rotate(-8deg) scale(1.15); }
  80% { transform: translateY(30px) rotate(10deg) scale(0.95); }
  100% { transform: translateY(5px) rotate(3deg) scale(0.9); }
}

@keyframes float-14 {
  0% { transform: translateY(-15px) rotate(-5deg) scale(1.1); }
  33% { transform: translateY(40px) rotate(15deg) scale(0.85); }
  66% { transform: translateY(-25px) rotate(-18deg) scale(1.2); }
  100% { transform: translateY(-15px) rotate(-5deg) scale(1.1); }
}

@keyframes float-15 {
  0% { transform: translateY(0) rotate(0) scale(1); }
  12% { transform: translateY(-20px) rotate(8deg) scale(1.05); }
  24% { transform: translateY(-35px) rotate(-5deg) scale(0.9); }
  36% { transform: translateY(-45px) rotate(12deg) scale(1.1); }
  48% { transform: translateY(-30px) rotate(-8deg) scale(0.85); }
  60% { transform: translateY(-50px) rotate(15deg) scale(1.15); }
  72% { transform: translateY(-25px) rotate(-10deg) scale(0.95); }
  84% { transform: translateY(-40px) rotate(18deg) scale(1.05); }
  96% { transform: translateY(-15px) rotate(-12deg) scale(0.9); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes float-16 {
  0% { transform: translateY(-8px) rotate(-3deg) scale(0.95); }
  25% { transform: translateY(30px) rotate(10deg) scale(1.1); }
  50% { transform: translateY(-35px) rotate(-15deg) scale(0.8); }
  75% { transform: translateY(20px) rotate(8deg) scale(1.2); }
  100% { transform: translateY(-8px) rotate(-3deg) scale(0.95); }
}

@keyframes float-17 {
  0% { transform: translateY(12px) rotate(6deg) scale(1.05); }
  20% { transform: translateY(-28px) rotate(-12deg) scale(0.9); }
  40% { transform: translateY(38px) rotate(18deg) scale(1.15); }
  60% { transform: translateY(-22px) rotate(-8deg) scale(0.85); }
  80% { transform: translateY(32px) rotate(14deg) scale(1.1); }
  100% { transform: translateY(12px) rotate(6deg) scale(1.05); }
}

@keyframes float-18 {
  0% { transform: translateY(-5px) rotate(-2deg) scale(0.9); }
  30% { transform: translateY(25px) rotate(9deg) scale(1.2); }
  60% { transform: translateY(-30px) rotate(-11deg) scale(0.8); }
  100% { transform: translateY(-5px) rotate(-2deg) scale(0.9); }
}

@keyframes float-19 {
  0% { transform: translateY(0) rotate(0) scale(1); }
  16% { transform: translateY(-18px) rotate(7deg) scale(1.03); }
  32% { transform: translateY(-32px) rotate(-4deg) scale(0.92); }
  48% { transform: translateY(-42px) rotate(11deg) scale(1.08); }
  64% { transform: translateY(-28px) rotate(-7deg) scale(0.88); }
  80% { transform: translateY(-48px) rotate(13deg) scale(1.12); }
  96% { transform: translateY(-22px) rotate(-9deg) scale(0.94); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes float-20 {
  0% { transform: translateY(-12px) rotate(-4deg) scale(1.02); }
  25% { transform: translateY(22px) rotate(8deg) scale(0.88); }
  50% { transform: translateY(-28px) rotate(-14deg) scale(1.18); }
  75% { transform: translateY(18px) rotate(6deg) scale(0.82); }
  100% { transform: translateY(-12px) rotate(-4deg) scale(1.02); }
}

/* SNSアイコン - シンプルな純正色デザイン */
.floating-sns {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px !important;
  height: 64px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.18s ease;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.floating-sns svg {
  width: 48px !important;
  height: 48px !important;
  display: block;
  transition: transform 0.18s ease;
  filter: none !important;
}

.floating-sns:hover {
  transform: scale(1.1);
}

.floating-sns:hover svg {
  transform: scale(1.05);
}

@media (max-width: 700px) {
  .floating-sns {
    width: 52px !important;
    height: 52px !important;
  }
  .floating-sns svg {
    width: 38px !important;
    height: 38px !important;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal.hidden {
  display: none;
}

.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;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 40vh;
  height: auto;
  display: block;
  margin: 0 auto 1.2rem auto;
  border-radius: 20px;
}

.modal-content video,
.modal-content audio {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
}

.modal-audio-title {
  color: var(--main-yellow);
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 0.05em;
}

.modal-audio-wave {
  width: 120px;
  height: 24px;
  margin: 0 auto 1.2rem auto;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.modal-audio-wave span {
  display: block;
  width: 6px;
  background: var(--main-yellow);
  border-radius: 3px;
  animation: wave 1.2s infinite ease-in-out;
}

.modal-audio-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.modal-audio-wave span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.modal-audio-wave span:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.modal-audio-wave span:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.modal-audio-wave span:nth-child(5) { height: 18px; animation-delay: 0.4s; }
.modal-audio-wave span:nth-child(6) { height: 14px; animation-delay: 0.5s; }
.modal-audio-wave span:nth-child(7) { height: 22px; animation-delay: 0.6s; }
.modal-audio-wave span:nth-child(8) { height: 10px; animation-delay: 0.7s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.7); }
}

#closeModal {
  position: fixed;
  top: 20px;
  right: 24px;
  color: #ffd700;
  cursor: pointer;
  z-index: 15000;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px #000a;
  border: 2px solid #ffd700;
  transition: all 0.2s;
}
#closeModal:hover {
  background: #ffd700;
  color: #111;
  transform: scale(1.05);
}
#closeModal.hidden {
  display: none;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  color: #aaa;
  text-align: center;
  padding: 10px 10px 5px;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* ピースが隠れないように */
  background-color: #000;
  z-index: 1000;
}

footer span {
  position: relative;
  z-index: 2;
}

/* --- YouTube Modal --- */
.modal-content.youtube-modal {
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: auto;
  max-width: none;
  max-height: none;
}

.youtube-modal .youtube-frame {
  width: 95vw;
  max-height: 95vh;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.youtube-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.floating-item[data-type="suzuri"] {
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  object-fit: cover !important;
}

.floating-item[data-type="suzuri"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 20px;
}

.shake-scatter {
  animation: shake-scatter 0.7s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake-scatter {
  0% { transform: translate(0,0) scale(1) rotate(0); }
  20% { transform: translate(-10px, 8px) scale(1.1) rotate(-8deg);}
  40% { transform: translate(12px, -10px) scale(0.95) rotate(7deg);}
  60% { transform: translate(-8px, 10px) scale(1.05) rotate(-6deg);}
  80% { transform: translate(10px, -8px) scale(1) rotate(5deg);}
  100% { transform: translate(0,0) scale(1) rotate(0);}
}

/* INDEXページ専用の整列モード設定 */
body:not(.link-page).align-mode .floating-container {
  display: block;
  min-height: 220px;
  height: auto;
  position: relative;
  width: 100%;
  padding: 32px 0 0 0;
}
.align-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 32px;
  width: 100%;
}
.align-group-title {
  color: #ffd700;
  font-size: 1.25rem;
  font-weight: bold;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: left;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.5s ease-in-out 0.5s; /* Delay fade-in */
  position: absolute; /* Needed for positioning */
  z-index: 2; /* To appear above items */
}
body:not(.link-page).align-mode .align-group-title {
    opacity: 1;
}
body.align-no-title .align-group-title {
  display: none !important;
}
@media (max-width: 768px) {
  body:not(.link-page).align-mode .floating-container {
    min-height: 120px;
    padding: 12px 0 0 0;
  }
  .align-group {
    margin-bottom: 18px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 0 8px;
  }
  .align-group-title {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.align-group .floating-item {
  position: static !important;
  margin: 12px 16px;
  top: auto !important;
  left: auto !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
  z-index: 1;
}
@media (max-width: 768px) {
  .align-group .floating-item {
    margin: 8px;
  }
  #alignBtn {
    position: fixed !important;
    top: auto !important;
    bottom: 160px !important;
    right: 18px !important;
    z-index: 15000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    padding: 18px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #alignBtn svg {
    width: 48px;
    height: 48px;
  }
}

.align-group .floating-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 12px 16px;
  align-self: center;
  vertical-align: middle;
  position: static !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
  z-index: 1;
  background: none;
  box-shadow: none;
}
.align-group .floating-sns svg {
  width: 80px !important;
  height: 80px !important;
  display: block;
  margin: 0 auto;
  margin-top: 8px;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .align-group .floating-sns {
    width: 72px;
    height: 72px;
    margin: 8px;
  }
  .align-group .floating-sns svg {
    width: 48px !important;
    height: 48px !important;
    margin-top: 4px;
    margin-bottom: 4px;
  }
}

.header-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
#muteBtn, #alignBtn, #scrambleBtn, #cucumberBtn {
  position: fixed !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #222 !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 4px 24px 0 #000a, 0 0 0 4px #fff8 !important;
  opacity: 1 !important;
  right: 24px !important;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}


#cucumberBtn {
  font-size: 24px;
  font-weight: bold;
  color: #ffd700;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  cursor: pointer;
  pointer-events: auto;
}
body.modal-is-open #alignBtn,
body.modal-is-open #scrambleBtn,
body.modal-is-open #cucumberBtn,
#welcomeOverlay:not(.hide) ~ #alignBtn,
#welcomeOverlay:not(.hide) ~ #scrambleBtn,
#welcomeOverlay:not(.hide) ~ #cucumberBtn,
body:not(.link-page).align-mode #scrambleBtn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(40px) scale(0.8);
  transition: opacity 0.4s, transform 0.4s;
}
#alignBtn, #scrambleBtn, #cucumberBtn {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s, transform 0.4s;
}
@media (max-width: 768px) {
  .header-btns {
    display: block;
    position: static;
    margin-left: 0;
    gap: 0;
  }
  #muteBtn, #alignBtn, #scrambleBtn, #cucumberBtn {
    position: fixed !important;
    right: 18px !important;
    width: 60px !important;
    height: 60px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
  
  #cucumberBtn {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    cursor: pointer;
    pointer-events: auto;
  }
}

.global-audio-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(20,20,20,0.97);
  box-shadow: 0 -2px 16px #000a;
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}
#globalAudio {
  width: 90vw;
  max-width: 480px;
  accent-color: #ffd700;
}

.shooting-star {
  position: fixed;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, #b3e0ff 60%, #00bfff 90%, transparent 100%);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
  box-shadow: 0 0 64px 24px #00bfff88, 0 0 32px 8px #b3e0ff;
  transform: rotate(0deg);
  animation: shooting-star-move 1.2s linear forwards;
}

@keyframes shooting-star-move {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

.album-track-btn.active, li.active .album-track-btn {
  background: #ffd700 !important;
  color: #222 !important;
  font-weight: bold;
  outline: 2px solid #ffd700;
  box-shadow: 0 0 0 2px #222;
}

.album-modal-flex ul {
  max-height: none !important;
  overflow-y: visible !important;
}
.album-modal-flex ul.scrollable {
  max-height: 320px !important;
  overflow-y: auto !important;
}

.album-modal-flex ul::-webkit-scrollbar {
  width: 8px;
  background: #222;
}
.album-modal-flex ul::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

.shuffle-on {
  background: #ffd700 !important;
  color: #222 !important;
}
.shuffle-off {
  background: #222 !important;
  color: #ffd700 !important;
}
.album-modal-flex ul::-webkit-scrollbar {
  width: 8px;
  background: #222;
}
.album-modal-flex ul::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

#shuffleSwitch:checked + #shuffleSwitchLabel {
  background: linear-gradient(90deg, #ffd700 60%, #222 100%);
  border: 2px solid #ffd700;
}
#shuffleSwitch:checked + #shuffleSwitchLabel .shuffle-knob {
  left: 19px;
  background: #222;
}
.shuffle-toggle {
  display: inline-block;
  width: 38px;
  height: 22px;
  background: linear-gradient(90deg, #222 60%, #ffd700 100%);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  border: 2px solid #ffd700;
  transition: background 0.2s, border 0.2s;
  box-shadow: 0 2px 8px #0004;
}
.shuffle-knob {
  display: block;
  width: 18px;
  height: 18px;
  background: #ffd700;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  box-shadow: 0 2px 6px #0006;
  transition: left 0.2s, background 0.2s;
}
.shuffle-icon {
  color: #ffd700;
  z-index: 2;
  pointer-events: none;
  transition: color 0.2s;
}
#shuffleSwitch:checked + #shuffleSwitchLabel .shuffle-icon {
  color: #222;
}

.music-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1em;
  background: none;
  border-radius: 0;
  padding: 1.2em 0 0.5em 0;
  margin-top: 1.2em;
  width: 100%;
}
.music-btn {
  background: #ffd700;
  color: #222;
  border: none;
  border-radius: 12px;
  font-size: 1.08em;
  font-weight: bold;
  padding: 0.5em 1.3em;
  margin: 0 0.1em;
  box-shadow: 0 2px 8px #0002;
  display: flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.music-btn:active {
  filter: brightness(0.92);
}
.music-btn.active {
  background: #222;
  color: #ffd700;
  border: 2px solid #ffd700;
}
.shuffle-label, #repeatBtn {
  font-size: 0.92em;
  padding: 0.32em 1.1em;
}
.shuffle-label.off {
  background: #222;
  color: #ffd700;
  border: 1.5px solid #ffd700;
}
.shuffle-label:active {
  filter: brightness(0.92);
}
.album-modal-flex ul {
  background: transparent !important;
  flex: 0 1 auto !important;
  padding-bottom: 2.5em !important;
  margin-bottom: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #ffd70022 #232323;
}
.album-modal-flex ul.scrollable {
  max-height: 340px !important;
  overflow-y: auto !important;
}
.album-modal-flex ul:not(.scrollable) {
  max-height: none !important;
  overflow-y: visible !important;
}
.album-modal-flex ul::-webkit-scrollbar {
  width: 6px;
  background: #232323;
}
.album-modal-flex ul::-webkit-scrollbar-thumb {
  background: #ffd70033;
  border-radius: 4px;
}
.album-track-btn.active, li.active .album-track-btn {
  background: #ffd700 !important;
  color: #222 !important;
  font-weight: bold;
  outline: 2px solid #ffd700;
  box-shadow: 0 0 0 2px #222;
}

.album-modal-flex > div:nth-child(2) {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.album-modal-flex ul {
  flex: 0 1 auto !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
}
.music-controls {
  flex: 0 0 auto !important;
  margin-top: 1em !important;
}

#globalMusicControls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  background: #181818;
  box-shadow: 0 -2px 16px #0008;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  padding: 0.7em 1.5em;
  min-height: 56px;
}

.album-modal-flex > div:nth-child(2) {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.1s;
  border-radius: 14px;
  border: 2px solid #ffd700;
  margin-right: 0.2em;
}

/* 言語切り替えボタン左端固定 */
.language-toggle, #languageToggle {
  position: fixed;
  top: 80px;
  left: 8px;
  z-index: 21000;
  display: flex;
  background: none;
  border-radius: 20px;
  padding: 2px;
  align-items: center;
  border: 1px solid rgba(255,215,0,0.5);
}
.language-toggle .lang-btn, #languageToggle .lang-btn {
  font-size: 0.85em;
  font-weight: 600;
  color: rgba(80,80,80,0.7);
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 4px 8px;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  min-width: 28px;
  text-align: center;
}
.language-toggle .lang-btn.active, #languageToggle .lang-btn.active {
  background: rgba(255,215,0,0.9);
  color: #222;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.language-toggle .lang-btn:hover, #languageToggle .lang-btn:hover {
  opacity: 1;
  color: #222;
}
@media (max-width: 600px) {
  .language-toggle, #languageToggle {
    top: 70px;
    left: 4px;
    padding: 1px;
    border-radius: 16px;
  }
  .language-toggle .lang-btn, #languageToggle .lang-btn {
    font-size: 0.8em;
    padding: 3px 6px;
    border-radius: 15px;
    min-width: 24px;
  }
}

#globalMusicControls button {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 2px solid #ffd700;
  background: #222;
  color: #ffd700;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.1s;
  margin: 0 0.1em;
}
#globalMusicControls button:hover {
  background: #ffd700;
  color: #222;
  border-color: #ffd700;
  transform: scale(1.08);
}
#globalMusicControls button:active {
  filter: brightness(0.92);
}
#globalMusicControls .shuffle-toggle {
  position: relative;
  width: 44px; height: 28px;
  background: #222;
  border-radius: 14px;
  border: 2px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.2em;
  transition: border 0.2s;
}
#globalMusicControls .shuffle-toggle:hover {
  border-color: #fff700;
}
#globalMusicControls .shuffle-knob {
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  background: #ffd700;
  border-radius: 50%;
  box-shadow: 0 2px 6px #0003;
  transition: left 0.2s, background 0.2s;
}
#globalMusicControls input[type="checkbox"]:checked + label .shuffle-knob {
  left: 24px;
  background: #fff;
}
#globalMusicControls .shuffle-icon {
  position: absolute;
  left: 10px; top: 6px;
  font-size: 1.1em;
  color: #222;
}
#globalMusicControls .track-title {
  color: #fff;
  font-size: 1.08em;
  font-weight: bold;
  letter-spacing: 0.03em;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  margin: 0 0.7em;
}

.album-modal-flex > div:nth-child(2) {
  background: #181818 !important;
}
.album-modal-flex ul {
  background: transparent !important;
  flex: 0 1 auto !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
  padding-bottom: 2.5em !important;
  margin-bottom: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #ffd70022 #232323;
}
.album-modal-flex ul::-webkit-scrollbar {
  width: 6px;
  background: #232323;
}
.album-modal-flex ul::-webkit-scrollbar-thumb {
  background: #ffd70033;
  border-radius: 4px;
}

.shuffle-label {
  background: #ffd700;
  color: #222;
  border: none;
  border-radius: 14px;
  padding: 0.4em 1.4em;
  font-size: 1em;
  font-weight: bold;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  margin-left: 1em;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.shuffle-label.off {
  background: #222;
  color: #ffd700;
  border: 1.5px solid #ffd700;
}
.shuffle-label:active {
  filter: brightness(0.92);
}

.album-modal-flex ul {
  background: transparent !important;
  flex: 0 1 auto !important;
  padding-bottom: 2.5em !important;
  margin-bottom: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #ffd70022 #232323;
}
.album-modal-flex ul.scrollable {
  max-height: 340px !important;
  overflow-y: auto !important;
}
.album-modal-flex ul:not(.scrollable) {
  max-height: none !important;
  overflow-y: visible !important;
}
.album-modal-flex ul::-webkit-scrollbar {
  width: 6px;
  background: #232323;
}
.album-modal-flex ul::-webkit-scrollbar-thumb {
  background: #ffd70033;
  border-radius: 4px;
}

.music-controls, .music-controls button, .shuffle-label {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10000 !important;
}
.album-modal-flex > div:nth-child(2) {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

#globalAudioPlayer {
  display: none !important;
}

/* --- Album Player Modal (Final Version) --- */
.modal-content.album-modal-mode {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  max-width: 720px;
  width: 95vw;
}

.album-player-container {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #181818;
  border-radius: 16px;
  padding: 1.5em;
  box-shadow: 0 4px 24px #0008;
  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: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0004;
  transition: border-radius 0.5s ease-out;
}
.album-cover-art.spinning {
  animation: spin 12s linear infinite;
  border-radius: 50%;
}
.album-player-title {
  color: #ffd700;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 0.6em;
  text-align: center;
}
.album-player-artist {
  color: #fff;
  font-size: 1em;
  margin-top: 0.1em;
  text-align: center;
}
.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: #ffd70033;
  border-radius: 4px;
}
.album-player-right::-webkit-scrollbar-thumb:hover {
  background: #ffd70088;
}

/* --- Buttons (内容は変更なし) --- */
.album-music-btn {
  background: #ffd700;
  color: #222;
  border: none;
  border-radius: 12px;
  font-size: 1.2em;
  font-weight: bold;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.album-music-btn.play-pause-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5em;
}
.album-music-btn:active { transform: scale(0.92); }

.album-mode-btn {
  background: #333;
  color: #ccc;
  border: 1.5px solid #555;
  border-radius: 10px;
  padding: 0.4em 1.2em;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-width: 100px;
  text-align: center;
}
.album-mode-btn.active {
  background: #ffd700;
  color: #222;
  border-color: #ffd700;
}

.album-track-btn {
  background: #282828;
  border: none;
  color: #fff;
  font-size: 0.95em;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0.5em 0.8em;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.album-track-btn:hover { background: #383838; }
.album-track-btn.active {
  background: #ffd700 !important;
  color: #222 !important;
  font-weight: bold;
}

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

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

/* PCやタブレットなど、通常の2列レイアウト */
@media (min-width: 601px) {
   .album-player-grid {
    flex-direction: row; 
    align-items: stretch;
  }
  .album-player-left {
    flex-basis: 220px;
    flex-shrink: 0;
    flex-grow: 0;
  }
}

/* 横向きのスマホなど、高さが非常に低いデバイス向けの2列レイアウト調整 */
@media (min-width: 601px) and (max-height: 500px) {
  .album-player-left {
     flex-basis: 180px;
  }
  .album-cover-art {
    width: 110px;
    height: 110px;
  }
  .album-player-title {
    font-size: 1em;
    margin-top: 0.5em;
  }
  .album-player-artist {
    font-size: 0.9em;
    margin-top: 0.05em;
  }
  .album-player-controls {
    margin-top: 1.5em;
    transform: scale(0.9);
    gap: 0.8em;
  }
}

@media (max-width: 768px) {
  .floating-item {
    width: 120px;
    height: 120px;
  }
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 100%;
}

.header-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em;
  color: #000;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.header-mini-player {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: 25px;
  cursor: pointer;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

header.player-visible #headerMiniPlayer {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

header.player-visible .hamburger {
  display: none;
}

.mini-player-cover {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-player-info {
  display: flex;
  flex-direction: column;
  max-width: 120px;
  overflow: hidden;
  flex: 1;
}

.mini-player-title {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.2;
  color: #111;
  transition: transform 0.3s ease;
}

/* --- ミニプレーヤー曲名のマーキー機能（2重表示でスムーズスクロール）--- */
.mini-player-title-wrap {
  overflow: hidden;
  position: relative;
  width: 140px;
  height: 1.2em;
}

.mini-player-title {
  display: inline-block;
  white-space: nowrap;
  transition: none;
  position: relative;
}

/* 2重表示用のコンテナ */
.mini-player-title-container {
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

/* 2重表示のテキスト */
.mini-player-title-text {
  display: inline-block;
  white-space: nowrap;
}

.mini-player-title-text.duplicate {
  margin-left: 20px; /* 2つ目のテキストとの間隔（縮小） */
}

/* 単一表示の場合（スクロール不要時） */
.mini-player-title:not(.scrolling) .mini-player-title-text {
  margin-left: 0;
}

.mini-player-title.scrolling .mini-player-title-container {
  animation: marquee-double 8s linear infinite;
  will-change: transform;
}

@keyframes marquee-double {
  0% { 
    transform: translateX(0); 
  }
  100% { 
    transform: translateX(-50%); 
  }
}

/* スクロール開始時の滑らかなフェードイン */
.mini-player-title {
  transition: opacity 0.3s ease;
}

.mini-player-title.scrolling {
  opacity: 1;
}

/* より滑らかなスクロールのための追加設定 */
.mini-player-title.scrolling .mini-player-title-container {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.mini-player-artist {
  font-size: 12px;
  opacity: 0.8;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.2;
  color: #111;
}

.mini-player-btn {
  background: #fff;
  color: #222;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.1s ease;
}
.mini-player-btn:active {
  transform: scale(0.95);
}

/* --- ヘッダータイトルの段階的縮小・非表示 --- */
@media (max-width: 600px) {
  .header-title {
    font-size: 1.05rem;
    max-width: 140px;
  }
}
@media (max-width: 500px) {
  .header-title {
    font-size: 1.05rem;
    max-width: 110px;
  }
}
@media (max-width: 440px) {
  .header-title {
    font-size: 0.92rem;
    max-width: 70px;
  }
}
@media (max-width: 350px) {
  .header-title {
    display: none;
  }
}

/* --- YouTubeピースのサムネイル画像の余白問題を修正 --- */
img[data-type="youtube"] {
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  width: 100%;
  height: 100%;
}

/* --- YouTubeピースのサイズを他のピースと統一 --- */
.floating-item[data-type="youtube"] {
  width: 160px !important;
  height: 160px !important;
}

@media (max-width: 768px) {
  .floating-item[data-type="youtube"] {
    width: 120px !important;
    height: 120px !important;
  }
}

/* --- メニューボタン三本線・バツ色統一＆位置・歪み修正 --- */
/* 1723行目付近の古い定義を削除し、5751行目以降の統一定義のみ使用 */

#closeModal {
  z-index: 999999 !important;
  pointer-events: auto !important;
  position: fixed !important;
  top: 20px !important;
  right: 24px !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.5) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  color: #ffd700 !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 2px 12px #000a !important;
  transition: all 0.2s;
}
#closeModal:hover {
  background: #ffd700 !important;
  color: #111 !important;
  transform: scale(1.05);
}
#closeModal.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.menu-btn:focus, .menu-btn:focus-visible,
#closeModal:focus, #closeModal:focus-visible {
  outline: 3px solid #FFD700 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(255,215,0,0.2) !important;
  z-index: 100000 !important;
}

/* --- レスポンシブ調整 --- */
@media (max-width: 900px) {
  header {
    padding: 1rem 0.5rem;
  }
  .header-right {
    margin-left: 0;
  }
  .menu-btn {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  header {
    padding: 0.8rem;
  }
  .header-right {
    flex-grow: 1;
    width: auto;
    justify-content: flex-end;
    align-items: center;
    display: flex;
  }
  .menu-btn {
    margin-left: auto;
    padding: 10px;
    position: relative;
    margin: 0 0 0 auto;
  }
}

@media (max-width: 400px) {
  header {
    padding: 0.6rem;
  }
  .header-right {
    gap: 6px;
  }
  .header-mini-player {
    min-width: 180px;
    padding: 6px 10px;
  }
  .mini-player-info {
    max-width: 80px;
  }
}

/* --- ミニプレーヤー表示時の調整 --- */
header.player-visible .header-right {
  gap: 6px;
}

header.player-visible .menu-btn {
  margin-left: 0;
}

/* --- メニューボタンは常に表示 --- */
/* コメントアウトされた設定を削除 */
/* @media (max-width: 420px) {
  header.player-visible .menu-btn {
    display: none !important;
  }
} */

body.modal-is-open .cursor-light {
  display: none !important;
}

/* モーダル表示中のカーソル制御 */
body.modal-is-open {
  cursor: auto !important;
}

/* --- ヒーロー部テキスト色の一元化（JS制御のため削除） --- */
/* .section.hero .hero-title-animate,
.section.hero .hero-desc-animate {
  color: #f3f6fa;
}
.section.hero.day .hero-title-animate,
.section.hero.day .hero-desc-animate {
  color: #3a3a3a;
} */

body:not(.link-page).align-mode #scrambleBtn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(40px) scale(0.8);
  transition: opacity 0.4s, transform 0.4s;
}
#scrambleBtn {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s, transform 0.4s;
}

#albumShuffleBtn, #albumRepeatBtn {
  font-size: 0.95em;
  padding: 0.1em 0.7em;
  min-width: 80px;
  height: 28px;
  background: transparent;
  color: #ffd700;
  border: 1.2px solid #ffd700;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: none;
  white-space: nowrap;
  vertical-align: middle;
}
#albumShuffleBtn.active, #albumRepeatBtn.active {
  background: #ffd700;
  color: #222;
  border-color: #ffd700;
}

#albumPrevBtn, #albumNextBtn {
  margin: 0 24px;
}

/* 横長のときだけ横並び（Safari対応） */
@media all and (min-width: 600px) and (min-aspect-ratio: 4/3) {
  .modal-flex-row {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-flex-direction: row !important;
    flex-direction: row !important;
    gap: 3rem !important;
    max-width: 800px !important;
    padding: 3rem 2.5rem !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* 念のため、min-widthだけでも横並びにするテスト用（必要ならコメントアウト可） */
@media (min-width: 900px) {
  .modal-flex-row {
    flex-direction: row !important;
  }
}

@media (orientation: landscape) {
  .modal,
  .modal-content,
  .modal-flex-row,
  .modal-img-col {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .modal-flex-row {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
  }
  .modal-img-col img {
    height: 100% !important;
    width: auto !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto !important;
    background: #222;
  }
  #modalBody img[data-type="image"] {
    max-height: 80vh !important;
    max-width: 90vw !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    background: #222 !important;
  }
}

@media (orientation: landscape) and (max-width: 900px) {
  .modal-flex-row {
    background: transparent !important;
  }
  .modal-img-col {
    background: transparent !important;
    border: none !important;
  }
  .modal-img-col img {
    border: none !important;
    background: #fff !important;
    width: auto !important;
    height: 90vh !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

#modalBody img[data-type="image"] {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  background: none !important;
}

.welcome-overlay-simple {
  position: fixed;
  z-index: 20000;
  inset: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.7s;
  pointer-events: all;
}
.welcome-overlay-simple.hide {
  opacity: 0;
  pointer-events: none;
}
.welcome-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  text-align: center;
}
.welcome-message-simple {
  font-size: 2.8rem;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #FFD700;
  margin-bottom: 1.1em;
  line-height: 1.1;
  text-align: center;
}
.welcome-message-simple span {
  opacity: 0;
  display: inline-block;
  transition: opacity 0.25s;
}
.welcome-message-simple span.visible {
  opacity: 1;
}
.cool-arrow {
  font-size: 2.2em;
  color: #FFD700;
  animation: arrowBounce 1.2s infinite;
  line-height: 1;
  margin-bottom: 1em;
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.scroll-text {
  font-size: 1em;
  color: #FFD700;
  letter-spacing: 0.1em;
  opacity: 0.7;
  animation: blink 1.2s infinite;
  text-align: center;
  width: 100%;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(16px);}
}
@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.2; }
}

/* ウェルカム画面表示中はミュート・整列ボタンを隠す */
#welcomeOverlay:not(.hide) ~ #muteBtn,
#welcomeOverlay:not(.hide) ~ #alignBtn,
#welcomeOverlay:not(.hide) ~ #scrambleBtn,
#welcomeOverlay:not(.hide) ~ #dropPiecesBtn,
#welcomeOverlay:not(.hide) ~ header,
body.align-mode #scrambleBtn {
  display: none !important;
}

/* ヒーロー画像スライドショー */
#heroSlideshow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70vw;
  max-width: 400px;
  height: 50vw;
  max-height: 320px;
  transform: translate(-50%, -50%);
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px #0006;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
#heroSlideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
  border-radius: 18px;
}
#heroSlideshow img.active {
  opacity: 1;
  z-index: 2;
}
.section.hero {
  position: relative;
  overflow: hidden;
}

/* ヒーロー昼夜グラデーション背景 */
.section.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  transition: background 1s;
  background: linear-gradient(to bottom, #aeefff 0%, #fffbe7 100%); /* 昼 */
}
.section.hero.night {
  background: linear-gradient(to bottom, #0a1640 0%, #1a223a 100%); /* 夜 */
  transition: background 1.5s;
}

/* 星空パーティクル用canvasをヒーロー背景に重ねる */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* 夜になったらコンテンツをふわっと表示 */
.show-content .floating-container,
.show-content .section.floating-container {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.2s;
}
.floating-container {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s;
}

/* モーダルのレスポンシブ調整 */
@media (max-width: 900px) and (max-height: 500px) {
  .modal-content {
    padding: 1rem 0.5rem;
    max-height: 80vh;
  }
  .modal-content img {
    max-height: 30vh;
  }
}

/* モーダル2カラムレイアウト（縦余白を元に戻す） */
.modal-flex-row {
  box-sizing: border-box;
  margin: 0 auto;
}
.modal-img-col img {
  background: #fff;
  border-radius: 16px;
  object-fit: contain !important;
  width: 100%;
  height: auto;
  max-width: 240px;
  max-height: 40vh;
  display: block;
}
.modal-info-col {
  align-items: flex-start;
  text-align: left;
  padding: 0 0.5rem;
}
@media (max-width: 900px), (max-height: 600px) {
  .modal-flex-row {
    padding: 1.2rem 0.5rem;
    gap: 1.2rem;
    max-width: 98vw;
  }
  .modal-img-col img {
    max-width: 90vw;
    max-height: 32vh;
  }
  .modal-info-col {
    align-items: center;
    text-align: center;
    padding: 0;
  }
}
.suzuri-btn {
  background: linear-gradient(90deg, #ffe066 0%, #ffd700 100%);
  color: #222;
  border: none;
  box-shadow: 0 2px 8px #ffd70044;
}
.line-btn {
  background: linear-gradient(90deg, #06c755 60%, #00e676 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px #06c75544;
}

/* 縦長デバイス（縦向きスマホ、タブレット）向けの縦積みレイアウト */
@media (max-width: 900px) or (max-height: 600px) {
  .modal-flex-row {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 96vw;
    padding: 2rem 1rem;
  }
  .modal-img-col {
    min-width: 0;
    max-width: 80vw;
  }
  .modal-img-col img {
    max-width: 80vw;
    max-height: 35vh;
  }
  .modal-info-col {
    align-items: center;
    width: 100%;
    padding: 0;
    text-align: center;
  }
  .modal-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  .modal-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .modal-btn {
    font-size: 1rem;
    padding: 0.7rem 1.8rem;
    margin-top: 1rem;
  }
}

/* 横長デバイス（横向きスマホ、タブレット、PC）向けの2列レイアウト */
@media (min-width: 700px) and (min-height: 350px) {
  .modal-flex-row {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
    max-height: 100vh;
    padding: 2rem 0 1rem 0;
    gap: 1.5rem;
  }
  .modal-img-col {
    width: 100vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-img-col img {
    height: 80vh !important;
    width: auto !important;
    max-width: 100vw !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    background: #222;
  }
  .modal-info-col {
    width: 100vw;
    text-align: center;
    padding: 0.5rem 0 0 0;
  }
  .modal-title, .modal-caption {
    color: #ffd700;
    font-size: 1.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px #000a;
  }
}

/* --- メニュー基本設定 --- */
#mainNav {
  position: fixed;
  top: 120px; /* ヘッダーの高さに合わせて調整 */
  left: 0;
  width: 100vw;
  z-index: 10000;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

#mainNav.main-nav-collapsed {
  display: none !important;
}

#mainNav:not(.main-nav-collapsed) {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-top: 0;
  padding-bottom: 16px;
}

#mainNav a {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  color: #fff !important;
  font-size: 1.1em;
  width: 100%;
  text-align: left;
  padding: 16px 24px;
  margin: 0;
  border-radius: 0 !important;
}
#mainNav a:hover {
  background: #ffd700 !important;
  color: #222 !important;
}

/* --- メニュー展開時の「×」ボタンを最前面・右上固定 --- */
.menu-btn.open {
  position: fixed !important;
  top: 12px;
  right: 16px;
  z-index: 99999 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.menu-btn.open span {
  background: #222 !important;
}

/* --- スマホ・タブレット時も同じデザインに統一 --- */
@media (max-width: 900px) {
  #mainNav {
    top: 120px;
    left: 0;
    width: 100vw;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    z-index: 10000;
  }
  #mainNav:not(.main-nav-collapsed) {
    background: transparent !important;
  }
  #mainNav a {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    color: #fff !important;
    font-size: 1.1em;
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    margin: 0;
    border-radius: 0 !important;
  }
  #mainNav a:hover {
    background: #ffd700 !important;
    color: #222 !important;
  }
  .menu-btn.open {
    position: fixed !important;
    top: 12px;
    right: 16px;
    z-index: 99999 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* --- スマホ用ドロワー式メニュー --- */
@media (max-width: 900px) {
  /* ドロワーメニュー背景オーバーレイ */
  body.drawer-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 14000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  body.drawer-open::before {
    opacity: 1;
    pointer-events: auto;
  }
  #mainNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    height: 100vh;
    max-height: none;
    background: transparent !important;
    color: #fff !important;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    font-size: 1.1rem;
    padding: 80px 2rem 2rem 2rem;
    box-shadow: -4px 0 18px #0005;
    opacity: 1;
    pointer-events: auto;
    border-radius: 0;
    transform: none;
    transition: right 0.4s cubic-bezier(.25,.46,.45,.94);
    overflow-y: auto;
    /* デバッグ用：確実に表示されるよう強制 */
    visibility: visible !important;
    display: flex !important;
  }
  #mainNav:not(.main-nav-collapsed) {
    background: rgba(0,0,0,0.75) !important;
  }
  #mainNav.main-nav-collapsed {
    opacity: 0 !important;
    pointer-events: none !important;
    right: -100% !important;
    visibility: hidden !important;
    transition: right 0.4s cubic-bezier(.25,.46,.45,.94), opacity 0.3s cubic-bezier(.25,.46,.45,.94), visibility 0.3s;
  }
  #mainNav:not(.main-nav-collapsed) {
    opacity: 1 !important;
    pointer-events: auto !important;
    right: 0 !important;
    visibility: visible !important;
    transition: right 0.4s cubic-bezier(.25,.46,.45,.94), opacity 0.3s cubic-bezier(.25,.46,.45,.94), visibility 0.3s;
    background: transparent !important;
  }
  #mainNav a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    padding: 1.2em 1.5em;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
    margin: 0;
    font-size: 1.2rem;
    display: block !important;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  #mainNav a:hover {
    background: rgba(255,215,0,0.15) !important;
    color: #ffd700 !important;
  }
  /* デバッグ用：メニュー内のリンクを確実に表示 */
  #mainNav:not(.main-nav-collapsed) a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #fff !important;
    background: rgba(255,255,255,0.05) !important;
  }
  /* 強制表示テスト */
  #mainNav a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid #fff !important;
    margin: 2px 0 !important;
  }
  #mainNav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 400px) {
  #mainNav {
    width: 85vw;
    padding: 70px 1.5rem 1.5rem 1.5rem;
    background: transparent !important;
  }
  #mainNav:not(.main-nav-collapsed) {
    background: rgba(0,0,0,0.75) !important;
  }
  #mainNav a {
    font-size: 1.1rem;
    padding: 1em 1.2em;
  }
}

@media (max-width: 480px) {
  header.player-visible .header-title {
    display: none !important;
  }
  header.player-visible #headerMiniPlayer {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  header:not(.player-visible) .header-title {
    display: inline-block !important;
  }
  header:not(.player-visible) #headerMiniPlayer {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* SUZURI・LINEスタンプモーダル専用スタイル */
.modal-content[data-type="suzuri"],
.modal-content[data-type="line"] {
  max-width: 96vw;
  margin: 0 auto;
  padding: 1rem;
  background: #181c2a;
  border-radius: 18px;
  box-shadow: 0 4px 32px #0005;
}

/* 横長画面用レイアウト */
@media (min-width: 900px) and (min-aspect-ratio: 4/3) {
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row,
  .modal-content[data-type="link"] .modal-flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
  }

  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col,
  .modal-content[data-type="link"] .modal-img-col {
    flex: 0 0 auto;
    width: 40%;
  }

  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img,
  .modal-content[data-type="link"] .modal-img-col img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0002;
  }

  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col,
  .modal-content[data-type="link"] .modal-info-col {
    flex: 1;
    text-align: left;
    padding: 0 1rem;
  }
}

/* 縦長画面用レイアウト */
@media (max-width: 899px), (max-aspect-ratio: 4/3) {
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row,
  .modal-content[data-type="link"] .modal-flex-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col,
  .modal-content[data-type="link"] .modal-img-col {
    width: 100%;
  }

  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img,
  .modal-content[data-type="link"] .modal-img-col img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 40vh;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0002;
  }

  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col,
  .modal-content[data-type="link"] .modal-info-col {
    width: 100%;
    text-align: center;
    padding: 0;
  }
}

/* ボタンスタイル */
.suzuri-btn {
  background: linear-gradient(90deg, #ffe066 0%, #ffd700 100%);
  color: #222;
  border: none;
  box-shadow: 0 2px 8px #ffd70044;
}

.line-btn {
  background: linear-gradient(90deg, #06c755 60%, #00e676 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px #06c75544;
}

.suzuri-btn:hover,
.line-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #0004;
}

.modal-content[data-type="suzuri"] .modal-flex-row,
.modal-content[data-type="line"] .modal-flex-row {
  background: #181c2a !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 32px #0005 !important;
  margin: 0 auto !important;
  padding: 1.5rem 1rem !important;
  width: 100% !important;
  max-width: 96vw !important;
  box-sizing: border-box !important;
}

@media (min-width: 700px) and (min-aspect-ratio: 4/3) {
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row,
  .modal-content[data-type="link"] .modal-flex-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5rem !important;
    padding: 2.5rem 2rem !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    background: #181c2a !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 32px #0005 !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col,
  .modal-content[data-type="link"] .modal-img-col {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #181c2a !important;
    border-radius: 14px !important;
    padding: 0 !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img,
  .modal-content[data-type="link"] .modal-img-col img {
    width: 100% !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 48vh !important;
    object-fit: contain !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 12px #0002 !important;
    margin: 0 auto !important;
    display: block !important;
    border: 2px solid #222 !important;
  }
  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col,
  .modal-content[data-type="link"] .modal-info-col {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: left !important;
    padding: 0 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 1.1em !important;
    line-height: 1.7 !important;
  }
  .modal-content[data-type="suzuri"] .modal-title,
  .modal-content[data-type="line"] .modal-title,
  .modal-content[data-type="link"] .modal-title {
    font-size: 1.18rem !important;
    margin-bottom: 0.3em !important;
    color: #ffd700 !important;
    letter-spacing: 0.04em;
  }
  .modal-content[data-type="suzuri"] .modal-subtitle,
  .modal-content[data-type="line"] .modal-subtitle,
  .modal-content[data-type="link"] .modal-subtitle {
    font-size: 1.05rem !important;
    margin-bottom: 0.7em !important;
    color: #fff !important;
    opacity: 0.85;
  }
  .modal-content[data-type="suzuri"] .modal-btn.suzuri-btn,
  .modal-content[data-type="line"] .modal-btn.suzuri-btn,
  .modal-content[data-type="link"] .modal-btn.suzuri-btn {
    background: #ffe066 !important;
    color: #222 !important;
    border: none !important;
    box-shadow: 0 2px 8px #ffd70044 !important;
    padding: 0.8em 2em !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 1.08rem !important;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1.2em !important;
    letter-spacing: 0.04em;
  }
  .modal-content[data-type="suzuri"] .modal-btn.suzuri-btn:hover,
  .modal-content[data-type="line"] .modal-btn.suzuri-btn:hover,
  .modal-content[data-type="link"] .modal-btn.suzuri-btn:hover {
    background: #ffd700 !important;
    color: #181c2a !important;
    box-shadow: 0 4px 12px #ffd70066 !important;
  }
}

/* SUZURI・LINEモーダル画像の赤枠を消す */
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: #181c2a !important;
  border-radius: 16px !important;
  object-fit: contain !important;
  width: 100%;
  height: auto;
  max-width: 220px;
  max-height: 48vh;
  display: block;
  margin: 0 auto;
}

/* SUZURI・LINEモーダル画像の赤い縁を親要素も含めて完全に消す */
.modal-content[data-type="suzuri"] .modal-flex-row,
.modal-content[data-type="line"] .modal-flex-row,
.modal-content[data-type="suzuri"] .modal-img-col,
.modal-content[data-type="line"] .modal-img-col {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* タイトル文字サイズ調整＆1行省略 */
.modal-content[data-type="suzuri"] .modal-title,
.modal-content[data-type="line"] .modal-title {
  font-size: 1.25rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 95%;
  display: block;
  margin-bottom: 0.5em;
}

/* --- 縦長画面（スマホ縦持ち等）用 --- */
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.2rem !important;
    padding: 1.2rem 0.5rem !important;
    width: 100% !important;
    max-width: 98vw !important;
    margin: 0 auto !important;
    background: #181c2a !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 32px #0005 !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col {
    width: 100% !important;
    max-width: 90vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #181c2a !important;
    border-radius: 16px !important;
    margin-bottom: 0.5em;
  }
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 90vw !important;
    max-height: 32vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
  }
}

/* --- 横長画面（PC/タブレット横持ち等）用 --- */
@media (min-width: 701px) and (min-aspect-ratio: 4/3) {
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5rem !important;
    padding: 2.5rem 2rem !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    background: #181c2a !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 32px #0005 !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col {
    flex: 0 0 220px !important;
    max-width: 220px !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #181c2a !important;
    border-radius: 16px !important;
    margin-bottom: 0 !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 220px !important;
    max-height: 48vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col {
    flex: 1 1 0%;
    text-align: left !important;
    align-items: flex-start !important;
    padding: 0 0.5rem !important;
  }
}

/* SUZURI・LINEモーダル画像の白背景を消し、ダークな影と枠線で馴染ませる */
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  background: transparent !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px #0008 !important;
  border: 1.5px solid #222 !important;
}

/* SUZURI・LINEモーダル画像の背景・枠線・影を徹底的に一元化 */
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  background: transparent !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px #000a !important;
  border: 2.5px solid #222 !important;
  outline: none !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
  max-width: 90vw !important;
  max-height: 48vh !important;
}

/* すべてのメディアクエリ内の .modal-content[data-type="suzuri"] .modal-img-col img, .modal-content[data-type="line"] .modal-img-col img の background, box-shadow, border, outline, margin, display, object-fit, max-width, max-height を !important で上書き */
@media (min-width: 900px), (max-width: 899px), (max-width: 700px), (min-width: 700px), (orientation: landscape), (orientation: portrait) {
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    background: transparent !important;
    box-shadow: 0 4px 24px #000a !important;
    border: 2.5px solid #222 !important;
    outline: none !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    max-width: 90vw !important;
    max-height: 48vh !important;
  }
}

/* --- SUZURI・LINEモーダル画像のバランス徹底調整 --- */
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  background: #23232a !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 32px #000a !important;
  border: 3px solid #23232a !important;
  outline: none !important;
  margin: 0 auto 1.2em auto !important;
  display: block !important;
  object-fit: contain !important;
  max-width: 70vw !important;
  max-height: 32vh !important;
  padding: 0.5em !important;
}

.modal-content[data-type="suzuri"] .modal-flex-row,
.modal-content[data-type="line"] .modal-flex-row {
  padding: 2.5em 1.2em 2em 1.2em !important;
  gap: 2.2em !important;
}

.modal-content[data-type="suzuri"] .modal-info-col,
.modal-content[data-type="line"] .modal-info-col {
  padding: 0.5em 0.5em 0 0.5em !important;
  text-align: center !important;
  align-items: center !important;
}

/* --- SUZURI・LINEモーダル画像の2重背景・枠線・影を完全リセット＆統一 --- */
.modal-content[data-type="suzuri"],
.modal-content[data-type="line"] {
  background: #23232a !important;
  box-shadow: 0 8px 32px #000a !important;
  border-radius: 18px !important;
  border: none !important;
  outline: none !important;
}
.modal-content[data-type="suzuri"] .modal-flex-row,
.modal-content[data-type="line"] .modal-flex-row,
.modal-content[data-type="suzuri"] .modal-img-col,
.modal-content[data-type="line"] .modal-img-col {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  border-radius: 16px !important;
  margin: 0 auto 1.2em auto !important;
  display: block !important;
  object-fit: contain !important;
  max-width: 70vw !important;
  max-height: 32vh !important;
  padding: 0.5em !important;
}

/* --- SUZURI・LINEモーダルの背景・影・枠線を完全に消す --- */
.modal-content[data-type="suzuri"],
.modal-content[data-type="line"] {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}
.modal-content[data-type="suzuri"] .modal-flex-row,
.modal-content[data-type="line"] .modal-flex-row,
.modal-content[data-type="suzuri"] .modal-img-col,
.modal-content[data-type="line"] .modal-img-col {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  border-radius: 0 !important;
  margin: 0 auto 1.2em auto !important;
  display: block !important;
  object-fit: contain !important;
  max-width: 70vw !important;
  max-height: 32vh !important;
  padding: 0 !important;
}

/* --- SUZURI・LINEモーダル 画像と文字バランス最適化 --- */
.modal-content[data-type="suzuri"] .modal-flex-row,
.modal-content[data-type="line"] .modal-flex-row {
  flex-direction: column !important;
  align-items: center !important;
  gap: 2.2em !important;
  padding: 2.5em 1.2em 2em 1.2em !important;
}
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  max-width: 88vw !important;
  max-height: 44vh !important;
  margin: 0 auto 1.5em auto !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}
.modal-content[data-type="suzuri"] .modal-info-col,
.modal-content[data-type="line"] .modal-info-col {
  width: 100% !important;
  text-align: center !important;
  align-items: center !important;
  padding: 0 0.5em !important;
}
.modal-content[data-type="suzuri"] .modal-title,
.modal-content[data-type="line"] .modal-title {
  font-size: 1.45rem !important;
  font-weight: bold !important;
  margin-bottom: 0.5em !important;
  letter-spacing: 0.04em;
}
.modal-content[data-type="suzuri"] .modal-subtitle,
.modal-content[data-type="line"] .modal-subtitle {
  font-size: 1.05rem !important;
  color: #888 !important;
  margin-bottom: 1.2em !important;
}
.modal-content[data-type="suzuri"] .modal-btn,
.modal-content[data-type="line"] .modal-btn {
  font-size: 1.08rem !important;
  padding: 0.9em 2.2em !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.5em !important;
  border-radius: 8px !important;
  font-weight: bold !important;
}

/* --- SUZURI・LINEモーダル 画像・文字・ボタンの縦横バランス徹底調整 --- */
.modal-content[data-type="suzuri"] .modal-flex-row,
.modal-content[data-type="line"] .modal-flex-row {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2.5em !important;
  padding: 3em 1.2em 2.2em 1.2em !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.modal-content[data-type="suzuri"] .modal-img-col,
.modal-content[data-type="line"] .modal-img-col {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0 !important;
}
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  max-width: 64vw !important;
  max-height: 38vh !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}
@media (max-width: 700px) {
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 92vw !important;
    max-height: 32vh !important;
  }
}
.modal-content[data-type="suzuri"] .modal-info-col,
.modal-content[data-type="line"] .modal-info-col {
  width: 100% !important;
  text-align: center !important;
  align-items: center !important;
  padding: 0 0.5em !important;
  margin: 0 !important;
}
.modal-content[data-type="suzuri"] .modal-title,
.modal-content[data-type="line"] .modal-title {
  font-size: 1.3rem !important;
  font-weight: bold !important;
  margin: 1.2em 0 0.5em 0 !important;
  letter-spacing: 0.04em;
  text-align: center !important;
  line-height: 1.25 !important;
  max-width: 95%;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.modal-content[data-type="suzuri"] .modal-subtitle,
.modal-content[data-type="line"] .modal-subtitle {
  font-size: 1.05rem !important;
  color: #888 !important;
  margin-bottom: 1.2em !important;
  text-align: center !important;
  line-height: 1.5 !important;
}
.modal-content[data-type="suzuri"] .modal-btn,
.modal-content[data-type="line"] .modal-btn {
  font-size: 1.08rem !important;
  padding: 0.9em 2.2em !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.8em !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  width: 80% !important;
  max-width: 320px !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- SUZURI・LINEモーダル 画像・文字・ボタンの縦位置バランス徹底調整（IMG_8718.PNG参照）--- */
.modal-content[data-type="suzuri"] .modal-flex-row,
.modal-content[data-type="line"] .modal-flex-row {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5em !important;
  padding: 3.5em 1.2em 2.5em 1.2em !important;
  min-height: 60vh !important;
  height: auto !important;
  box-sizing: border-box !important;
}
.modal-content[data-type="suzuri"] .modal-img-col,
.modal-content[data-type="line"] .modal-img-col {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0 !important;
}
.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  max-width: 80vw !important;
  max-height: 38vh !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto 0.8em auto !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}
.modal-content[data-type="suzuri"] .modal-info-col,
.modal-content[data-type="line"] .modal-info-col {
  width: 100% !important;
  text-align: center !important;
  align-items: center !important;
  padding: 0 0.5em !important;
  margin: 0 !important;
  gap: 1.2em !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.modal-content[data-type="suzuri"] .modal-title,
.modal-content[data-type="line"] .modal-title {
  font-size: 1.25rem !important;
  font-weight: bold !important;
  margin: 0.2em 0 0.5em 0 !important;
  letter-spacing: 0.04em;
  text-align: center !important;
  line-height: 1.25 !important;
  max-width: 95%;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.modal-content[data-type="suzuri"] .modal-subtitle,
.modal-content[data-type="line"] .modal-subtitle {
  font-size: 1.05rem !important;
  color: #888 !important;
  margin-bottom: 0.8em !important;
  text-align: center !important;
  line-height: 1.5 !important;
}
.modal-content[data-type="suzuri"] .modal-btn,
.modal-content[data-type="line"] .modal-btn {
  font-size: 1.08rem !important;
  padding: 0.9em 2.2em !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.5em !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  width: 80% !important;
  max-width: 320px !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 700px) {
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 96vw !important;
    max-height: 28vh !important;
  }
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row {
    padding: 2.2em 0.5em 1.5em 0.5em !important;
    min-height: 50vh !important;
  }
}

/* SUZURI・LINEモーダルのボタン内テキストは改行禁止 */
.modal-content[data-type="suzuri"] .modal-btn,
.modal-content[data-type="line"] .modal-btn {
  white-space: nowrap !important;
}

/* --- SUZURI・LINEモーダル 画像左・テキスト右の2カラム配置（PC/タブレット） --- */
@media (min-width: 700px) {
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.8em !important;
    padding: 3em 2.2em 2.2em 2.2em !important;
    min-height: 60vh !important;
    height: auto !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col {
    width: 44vw !important;
    max-width: 320px !important;
    min-width: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-bottom: 0 !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 100% !important;
    max-height: 38vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 12px !important;
  }
  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col {
    width: 56vw !important;
    min-width: 180px !important;
    max-width: 420px !important;
    text-align: left !important;
    align-items: flex-start !important;
    padding: 0 0 0 2.2em !important;
    margin: 0 !important;
    gap: 1.2em !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .modal-content[data-type="suzuri"] .modal-btn,
  .modal-content[data-type="line"] .modal-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* --- スマホ・狭い画面は縦並び --- */
@media (max-width: 699px) {
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5em !important;
    padding: 2.2em 0.5em 1.5em 0.5em !important;
    min-height: 50vh !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 96vw !important;
    max-height: 28vh !important;
    margin: 0 auto 0.8em auto !important;
  }
  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    padding: 0 0.5em !important;
    margin: 0 !important;
    gap: 1.2em !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  .modal-content[data-type="suzuri"] .modal-btn,
  .modal-content[data-type="line"] .modal-btn {
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* SUZURI・LINEモーダルのボタン内テキストを上下左右中央揃え */
.modal-content[data-type="suzuri"] .modal-btn,
.modal-content[data-type="line"] .modal-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding-top: 0.85em !important;
  padding-bottom: 0.85em !important;
  min-height: 2.6em !important;
}

@media (min-width: 700px) {
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 96vw !important;
    max-height: 28vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 12px !important;
  }
}

.modal-content[data-type="suzuri"] .modal-img-col img,
.modal-content[data-type="line"] .modal-img-col img {
  max-width: 70vw !important;
  max-height: 60vh !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto 1.2em auto !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}
@media (max-width: 700px) {
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 92vw !important;
    max-height: 36vh !important;
  }
}

.modal-content[data-type="suzuri"] .modal-info-col .modal-title,
.modal-content[data-type="suzuri"] .modal-info-col .modal-subtitle,
.modal-content[data-type="line"] .modal-info-col .modal-title,
.modal-content[data-type="line"] .modal-info-col .modal-subtitle {
  text-align: center !important;
  align-self: center !important;
  width: 100%;
}

.modal-content[data-type="suzuri"] .modal-info-col,
.modal-content[data-type="line"] .modal-info-col {
  align-items: center !important;
  text-align: center !important;
  justify-content: center !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-content[data-type="suzuri"] .modal-info-col .modal-title,
.modal-content[data-type="suzuri"] .modal-info-col .modal-subtitle,
.modal-content[data-type="line"] .modal-info-col .modal-title,
.modal-content[data-type="line"] .modal-info-col .modal-subtitle {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  align-self: center !important;
  width: 100%;
}

@media (min-width: 700px) {
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5em !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col,
  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 50% !important;
  }
  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

.modal-content[data-type="suzuri"] .modal-btn,
.modal-content[data-type="line"] .modal-btn {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  width: fit-content !important;
  min-width: 180px !important;
  max-width: 100% !important;
}

/* --- WELCOME PUSH Overlay --- */
.welcome-overlay-push {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #23232a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s;
  opacity: 1;
  pointer-events: all;
}
.welcome-overlay-push.hide {
  opacity: 0;
  pointer-events: none;
}
.welcome-bg-part {
  position: absolute;
  width: calc(50vw - 1px);
  height: calc(50vh - 1px);
  background: #23232a;
  transition: transform 2s cubic-bezier(.7,1.7,.5,1), opacity 1.8s;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  box-shadow: none;
  transform: none; /* 初期状態でのtransformを明示的に設定 */
}
#bgPart1 {
  top: 0; left: 0;
  background: #23232a;
  box-shadow: none;
  transform: none; /* 初期状態でのtransformを明示的に設定 */
}
#bgPart2 {
  top: 0; left: calc(50vw + 1px);
  background: #23232a;
  box-shadow: none;
  transform: none; /* 初期状態でのtransformを明示的に設定 */
}
#bgPart3 {
  top: calc(50vh + 1px); left: 0;
  background: #23232a;
  box-shadow: none;
  transform: none; /* 初期状態でのtransformを明示的に設定 */
}
#bgPart4 {
  top: calc(50vh + 1px); left: calc(50vw + 1px);
  background: #23232a;
  box-shadow: none;
  transform: none; /* 初期状態でのtransformを明示的に設定 */
}
.welcome-push-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 10;
  font-size: 0.95rem;
  font-family: 'Inter','Noto Sans JP',sans-serif;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg,#ff3b3b 0%,#b80000 100%);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  padding: 0;
  box-shadow: 0 4px 18px #b8000055, 0 2px 8px #ff3b3b44;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 8px #b80000aa;
  outline: none;
  animation: pushBtnPulseRed 1.2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-push-btn:hover {
  transform: translate(-50%,-50%) scale(1.12);
  box-shadow: 0 8px 32px #ff3b3b88,0 2px 8px #ff3b3b44;
}
@keyframes pushBtnPulseRed {
  0%,100% { box-shadow: 0 4px 18px #b8000055, 0 2px 8px #ff3b3b44; }
  50% { box-shadow: 0 12px 36px #ff3b3b88,0 2px 8px #ff3b3b44; }
}
/* アニメーション用クラス（JSで付与） */
.welcome-overlay-push.split #bgPart1 { 
  transform: translate(-120vw,-120vh) scale(1.3) rotate(-32deg) !important; 
  opacity: 0 !important; 
  z-index: 3 !important; 
}
.welcome-overlay-push.split #bgPart2 { 
  transform: translate(120vw,-120vh) scale(1.3) rotate(32deg) !important; 
  opacity: 0 !important; 
  z-index: 3 !important; 
}
.welcome-overlay-push.split #bgPart3 { 
  transform: translate(-120vw,120vh) scale(1.3) rotate(32deg) !important; 
  opacity: 0 !important; 
  z-index: 3 !important; 
}
.welcome-overlay-push.split #bgPart4 { 
  transform: translate(120vw,120vh) scale(1.3) rotate(-32deg) !important; 
  opacity: 0 !important; 
  z-index: 3 !important; 
}
.welcome-overlay-push.split .welcome-push-btn { 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.4s; 
}

body .welcome-overlay-push {
  cursor: pointer !important;
}

.welcome-overlay-push.split {
  background: transparent !important;
  transition: background 0.3s ease;
}

.welcome-overlay-push.split .welcome-push-btn { 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.4s; 
}

@media (min-width: 900px) {
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 520px !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    padding: 0 !important;
    background: none !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
}

@media (min-width: 900px) {
  .modal-content[data-type="suzuri"], .modal-content[data-type="line"] {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .modal-content[data-type="suzuri"] .modal-flex-row,
  .modal-content[data-type="line"] .modal-flex-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col,
  .modal-content[data-type="line"] .modal-img-col {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
  }
  .modal-content[data-type="suzuri"] .modal-img-col img,
  .modal-content[data-type="line"] .modal-img-col img {
    max-width: 400px !important;
    max-height: 70vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
  }
  .modal-content[data-type="suzuri"] .modal-info-col,
  .modal-content[data-type="line"] .modal-info-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    min-width: 220px !important;
    max-width: 340px !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    gap: 16px !important;
  }
  .modal-content[data-type="suzuri"] .modal-btn,
  .modal-content[data-type="line"] .modal-btn {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
    align-self: flex-start !important;
  }
}

@media (max-width: 900px) and (max-height: 500px) {
  .album-player-left {
    max-height: 100% !important;
    overflow: auto !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .album-player-main-controls {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }
  .album-player-sub-controls {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    display: flex !important;
    gap: 4px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  /* ボタン自体のfont-sizeやpaddingは一切変更しない */
}

@media (max-width: 900px) and (max-height: 500px) {
  .album-player-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    width: 100% !important;
    padding-bottom: 0 !important;
  }
  .album-player-main-controls {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .album-player-sub-controls {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    margin: 0 !important;
    width: 100% !important;
  }
  /* ボタン自体の大きさ・形・padding・font-sizeは一切変更しない */
  .album-player-left {
    overflow-y: auto !important;
    max-height: 100% !important;
  }
}

@media (max-width: 900px) and (max-height: 500px) {
  .album-player-main-controls {
    gap: 4px !important;
    margin: 0 !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .album-player-sub-controls {
    gap: 4px !important;
    margin: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 2px !important;
  }
  .album-player-sub-controls .album-mode-btn {
    display: inline-block !important;
    min-width: 90px;
    margin-right: 2px !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 900px) and (max-height: 500px) {
  .album-player-main-controls,
  .album-player-sub-controls {
    flex-wrap: nowrap !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .album-player-main-controls {
    justify-content: center !important;
  }
  .album-player-sub-controls {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 2px !important;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #222;
  }
  .album-player-sub-controls .album-mode-btn {
    display: inline-block !important;
    min-width: 90px;
    margin-right: 2px !important;
    margin-left: 0 !important;
    vertical-align: middle;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .modal-content.album-modal-mode .album-player-grid {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .modal-content.album-modal-mode .album-player-left,
  .modal-content.album-modal-mode .album-player-right {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .modal-content.album-modal-mode .album-player-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1em;
  }
  .modal-content.album-modal-mode .album-cover-art {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 0.5em auto !important;
  }
  .modal-content.album-modal-mode .album-player-controls {
    width: 100% !important;
    margin: 0.5em 0 0.5em 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .modal-content.album-modal-mode .album-player-main-controls,
  .modal-content.album-modal-mode .album-player-sub-controls {
    width: 100% !important;
    justify-content: center !important;
    margin-bottom: 0.3em !important;
  }
  .modal-content.album-modal-mode .album-player-right {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: auto;
    margin: 0;
    padding: 0 0.5em;
  }
  .modal-content.album-modal-mode .album-track-list {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

/* YouTubeモーダル表示時はミュートボタンを非表示 */
.modal-content.youtube-modal ~ #muteBtn,
body.modal-is-open .modal-content.youtube-modal ~ #muteBtn,
body.modal-is-open .modal-content[data-type="youtube"] ~ #muteBtn,
.modal-content[data-type="youtube"] ~ #muteBtn {
  display: none !important;
}

/* 新: LINKページだけで非表示 */
body.link-page #muteBtn { display: none !important; }

/* ミュートボタン非表示（LINKページのみ） */
body.link-page #muteBtn { display: none !important; }




body.modal-is-open #muteBtn {
  display: none !important;
}

/* === 22937939.png専用：中央表示＆切れ防止 === */
img[src$="22937939.png"] {
  display: block;
  margin: auto;
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
  background: #222 !important; /* お好みで */
  border-radius: 16px !important; /* お好みで */
}

/* === 22937939.png専用：中央表示＆切れ防止 === */
img[src$="22937939.png"] {
  object-fit: contain !important;
  object-position: center !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* LINEモーダルのボタンを最優先でLINE緑グラデに */
body .modal-content[data-type="line"] .modal-btn,
body .modal-content[data-type="line"] button.modal-btn,
body .modal-content[data-type="line"] a.modal-btn,
body .modal-content[data-type="line"] .line-btn,
body .modal-content[data-type="line"] button.line-btn,
body .modal-content[data-type="line"] a.line-btn {
  background: linear-gradient(90deg, #06c755 60%, #00e676 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px #06c75544 !important;
  font-weight: bold !important;
  text-shadow: none !important;
}
body .modal-content[data-type="line"] .modal-btn:hover,
body .modal-content[data-type="line"] .line-btn:hover {
  background: linear-gradient(90deg, #00e676 0%, #06c755 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px #06c75588 !important;
}

/* === LINEモーダル：タイトル・説明文を明るいグレーに === */
.modal-content[data-type="line"] .modal-title {
  color: #ffd700 !important;
}
.modal-content[data-type="line"] .modal-subtitle {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

/* === SUZURIモーダル：商品名・説明文を明るいグレーに === */
.modal-content[data-type="suzuri"] .modal-title {
  color: #f5f5f5 !important;
}
.modal-content[data-type="suzuri"] .modal-subtitle {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

/* === SUZURIモーダル：説明文やサブタイトルだけ明るいグレー、タイトルは黄色で維持 === */
.modal-content[data-type="suzuri"] .modal-info-col .modal-title {
  color: #ffd700 !important;
}
.modal-content[data-type="suzuri"] .modal-info-col .modal-subtitle,
.modal-content[data-type="suzuri"] .modal-info-col .modal-desc {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

/* 音楽モーダル内のミュートボタン */
.album-player-container #albumMuteBtn {
  position: absolute !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 1000 !important;
  width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #222 !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 4px 24px 0 #000a, 0 0 0 4px #fff8 !important;
  opacity: 1 !important;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.album-player-container #albumMuteBtn:hover {
  transform: scale(1.05);
}

.album-player-container #albumMuteBtn svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* 音楽モーダル内のミュートボタン（画面右下固定） */
.modal-content.album-modal-mode #albumMuteBtn {
  position: fixed !important;
  bottom: 40px !important;
  right: 24px !important;
  z-index: 15000 !important;
  width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #222 !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 4px 24px 0 #000a, 0 0 0 4px #fff8 !important;
  opacity: 1 !important;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-content.album-modal-mode #albumMuteBtn:hover {
  transform: scale(1.05);
}

.modal-content.album-modal-mode #albumMuteBtn svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* --- 音楽モーダル：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: #ffd700;
  font-size: 0.98em;
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  opacity: 0.85;
}
#albumProgressBar {
  flex: 1 1 0;
  height: 4px;
  background: transparent;
  accent-color: #ffd700;
  border-radius: 2px;
  outline: none;
  margin: 0 0.3em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s;
}
#albumProgressBar::-webkit-slider-runnable-track {
  height: 4px;
  background: #ffd700;
  border-radius: 2px;
}
#albumProgressBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 2px 8px #ffd70055;
  border: 2px solid #fff;
  margin-top: -5px;
  transition: background 0.2s;
}
#albumProgressBar:focus::-webkit-slider-thumb {
  background: #fff700;
}
#albumProgressBar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px #ffd70055;
  transition: background 0.2s;
}
#albumProgressBar:focus::-moz-range-thumb {
  background: #fff700;
}
#albumProgressBar::-ms-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px #ffd70055;
  transition: background 0.2s;
}
#albumProgressBar:focus::-ms-thumb {
  background: #fff700;
}
#albumProgressBar::-ms-fill-lower {
  background: #ffd700;
  border-radius: 2px;
}
#albumProgressBar::-ms-fill-upper {
  background: #ffd700;
  border-radius: 2px;
}
#albumProgressBar:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffd70055;
}
#albumProgressBar::-webkit-slider-thumb {
  box-shadow: 0 2px 8px #ffd70055;
}
#albumProgressBar::-moz-range-thumb {
  box-shadow: 0 2px 8px #ffd70055;
}
#albumProgressBar::-ms-thumb {
  box-shadow: 0 2px 8px #ffd70055;
}

/* === LINKページ専用ピース表示設定 === */
#link-pieces.floating-container {
  min-height: 60vh;
  height: 60vh;
  position: relative;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.link-page .floating-container {
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: opacity 0.3s;
}

body.link-page .floating-item {
  position: absolute !important;
  width: 160px !important;
  height: 160px !important;
  border-radius: 20px !important;
  object-fit: cover !important;
  cursor: pointer !important;
  box-shadow: 0 0 48px 0 rgba(255,235,120,0.35), 0 2px 8px rgba(0,0,0,0.10) !important;
  transition: top 0.8s ease-in-out, left 0.8s ease-in-out, transform 0.4s ease-in-out !important;
  z-index: 10 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  animation: float-1 8s infinite ease-in-out !important;
}

/* LINKページのピースが確実に見えるように */
body.link-page #link-pieces .floating-item {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: absolute !important;
  z-index: 10 !important;
}

/* LINKページのピースが確実に表示されるように追加設定 */
body.link-page .floating-container {
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: opacity 0.3s;
}

body.link-page .floating-item {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: absolute !important;
  z-index: 10 !important;
  animation: float-1 8s infinite ease-in-out !important;
}

/* LINKページのピースが初期化時に確実に表示されるように */
body.link-page #link-pieces .floating-item {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: absolute !important;
  z-index: 10 !important;
}

/* === ピース画像読み込みアニメーション === */

/* スケルトンローディング用のスタイル */
.floating-item.loading {
  background: transparent !important;
  background-size: 200% 100%;
  animation: none !important;
  position: relative;
  overflow: hidden;
}

.floating-item.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/img/22937939.png') center/contain no-repeat !important;
  animation: spin 2s linear infinite !important;
}

.floating-item.loading img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.floating-item.loaded img {
  opacity: 1;
}

/* スケルトンアニメーション */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* シャイマー効果 */
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 読み込み完了時のフェードイン */
.floating-item.fade-in {
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 読み込み失敗時のスタイル */
.floating-item.error {
  background: #333;
  border: 2px dashed #666;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.8em;
  text-align: center;
}

.floating-item.error::after {
  content: '画像読み込みエラー';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 0.7em;
  white-space: nowrap;
}

/* === LINKページモーダル：SUZURIと同じスタイル === */
.modal-content[data-type="link"] .modal-title {
  color: #ffd700 !important;
}
.modal-content[data-type="link"] .modal-subtitle {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

/* === LINKページモーダル：説明文やサブタイトルだけ明るいグレー、タイトルは黄色で維持 === */
.modal-content[data-type="link"] .modal-info-col .modal-title {
  color: #ffd700 !important;
}
.modal-content[data-type="link"] .modal-info-col .modal-subtitle,
.modal-content[data-type="link"] .modal-info-col .modal-desc {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

/* === LINKページモーダル：ボタンスタイル === */
body .modal-content[data-type="link"] .modal-btn,
body .modal-content[data-type="link"] button.modal-btn,
body .modal-content[data-type="link"] a.modal-btn {
  background: linear-gradient(90deg, #ff6b35 60%, #f7931e 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px #ff6b3544 !important;
  font-weight: bold !important;
  text-shadow: none !important;
}
body .modal-content[data-type="link"] .modal-btn:hover {
  background: linear-gradient(90deg, #f7931e 0%, #ff6b35 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px #ff6b3588 !important;
}

/* === LINKページ整列リスト形式 === */
.link-list-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: static;
  display: block;
  min-height: 300px;
  background: transparent;
  z-index: auto;
}

.link-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.link-list-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.link-list-img {
  width: 80px;
  height: 80px;
  margin-right: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.link-list-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  border: none;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.link-list-title {
  flex: 1;
  margin-right: 16px;
}

.link-list-title h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffd700;
  transition: color 0.2s ease;
}

.link-list-item:hover .link-list-title h3 {
  color: #ffed4e;
}

.link-list-title p {
  margin: 0;
  font-size: 14px;
  color: #f5f5f5;
  opacity: 0.8;
  line-height: 1.4;
}

.link-list-button {
  margin-left: auto;
}

.link-list-button button {
  background: linear-gradient(90deg, #ff6b35 60%, #f7931e 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px #ff6b3544;
}

.link-list-button button:hover {
  background: linear-gradient(90deg, #f7931e 0%, #ff6b35 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .link-list-item {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .link-list-img {
    margin-right: 0;
    margin-bottom: 12px;
    width: 60px;
    height: 60px;
  }
  .link-list-title {
    margin-right: 0;
    margin-bottom: 12px;
  }
  .link-list-button button {
    width: 100%;
    max-width: 200px;
  }
}

/* 整列モード時のスクロール対応 */
body.align-mode .floating-container {
  overflow-y: auto;
  overflow-x: hidden;
}

body.link-page.align-mode .link-list-container {
  padding-bottom: 40px;
}

/* 整列モード時のピース非表示 - LINKページ専用（リスト画像は除外） */
body.link-page.align-mode .floating-item:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container > .floating-item:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container img.floating-item:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container > img.floating-item:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode *[class*="floating-item"]:not(.link-list-image):not([data-type="list-image"]) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -999 !important;
  position: absolute !important;
}

/* 整列モード時のコンテナ設定 - LINKページ専用 */
body.link-page.align-mode .floating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* リストコンテナの設定 */
.link-list-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: static;
  left: auto;
  right: auto;
  transform: none;
}

/* LINKページ専用の整列モード時のピース非表示 */
body.link-page.align-mode .floating-item:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container > .floating-item:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container img.floating-item:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container > img.floating-item:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode *[class*="floating-item"]:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode #link-pieces .floating-item:not(.link-list-image):not([data-type="list-image"]) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -999 !important;
  position: absolute !important;
}

/* さらに強力なセレクタで確実に非表示 */
body.link-page.align-mode img[class*="floating-item"]:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode #link-pieces img:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container img:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container > img:not(.link-list-image):not([data-type="list-image"]),
body.link-page.align-mode .floating-container > *[class*="floating-item"]:not(.link-list-image):not([data-type="list-image"]) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -999 !important;
  position: absolute !important;
  visibility: hidden !important;
}

/* リスト内の画像は表示する */
body.link-page.align-mode .link-list-container img,
body.link-page.align-mode .link-list-img img {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: auto !important;
  position: static !important;
  visibility: visible !important;
}

/* link-list-imageクラスを持つ画像は確実に表示 */
body.link-page.align-mode .link-list-image,
body.link-page.align-mode img[data-type="list-image"] {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: auto !important;
  position: static !important;
  visibility: visible !important;
}

/* さらに強力なセレクタでリスト内の画像を確実に表示 */
body.link-page.align-mode .link-list-container .link-list-img .link-list-image,
body.link-page.align-mode .link-list-container .link-list-img img,
body.link-page.align-mode .link-list-item .link-list-img img,
body.link-page.align-mode .link-list-item .link-list-img .link-list-image,
body.link-page.align-mode .link-list-container .link-list-img img[data-type="list-image"],
body.link-page.align-mode .link-list-item .link-list-img img[data-type="list-image"] {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: auto !important;
  position: static !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
}

/* align-mode-list-itemクラスを持つ要素とその子要素は確実に表示 */
body.link-page.align-mode .align-mode-list-item,
body.link-page.align-mode .align-mode-list-item *,
body.link-page.align-mode .align-mode-list-item img,
body.link-page.align-mode .align-mode-list-item .link-list-image {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: auto !important;
  position: static !important;
  visibility: visible !important;
}

.link-list-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  background: transparent !important;
  border: none !important;
  object-fit: cover !important;
  border-radius: 6px !important;
}

.link-list-img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 80px !important;
  height: 80px !important;
  margin-right: 16px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 768px) {
  .link-list-img {
    width: 60px !important;
    height: 60px !important;
  }
}

.link-list-container {
  display: block !important;
  min-height: 300px !important;
  background: transparent !important;
  z-index: 1 !important;
}

/* --- 追加: LINKページ整列モードのボタン位置揃え --- */
body.link-page.align-mode .link-list-item {
  align-items: stretch !important;
}
body.link-page.align-mode .link-list-button {
  min-width: 160px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}
body.link-page.align-mode .link-list-button button {
  width: auto;
  min-width: 120px;
  margin: 0;
}
@media (max-width: 768px) {
  body.link-page.align-mode .link-list-item {
    flex-direction: column !important;
    align-items: center !important;
  }
  body.link-page.align-mode .link-list-button {
    min-width: 0;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  body.link-page.align-mode .link-list-button button {
    width: 100%;
    min-width: 0;
  }
}

/* === LINKページ整列モード リストレイアウト修正（2025/06/30）=== */
body.link-page.align-mode .link-list-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px 40px 20px;
  box-sizing: border-box;
  display: block;
  min-height: 300px;
  background: transparent;
  z-index: auto;
}
body.link-page.align-mode .link-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  text-align: left;
}
body.link-page.align-mode .link-list-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
body.link-page.align-mode .link-list-img {
  width: 80px;
  height: 80px;
  margin-right: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
body.link-page.align-mode .link-list-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 999 !important;
  position: relative !important;
  max-width: none !important;
  max-height: none !important;
  min-width: auto !important;
  min-height: auto !important;
}

/* さらに強力なセレクタで画像を確実に表示 */
body.link-page.align-mode .link-list-container .link-list-item .link-list-img img,
body.link-page.align-mode .link-list-container .link-list-item .link-list-img .link-list-image,
body.link-page.align-mode .link-list-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 999 !important;
  position: relative !important;
  max-width: none !important;
  max-height: none !important;
  min-width: auto !important;
  min-height: auto !important;
}

/* リスト画像の非表示設定を完全に無効化 */
body.link-page.align-mode .link-list-image,
body.link-page.align-mode img[data-type="list-image"],
body.link-page.align-mode .link-list-container img,
body.link-page.align-mode .link-list-item img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 999 !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
}
body.link-page.align-mode .link-list-title {
  flex: 1;
  margin-right: 16px;
  min-width: 0;
}
body.link-page.align-mode .link-list-title h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffd700;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.link-page.align-mode .link-list-item:hover .link-list-title h3 {
  color: #ffed4e;
}
body.link-page.align-mode .link-list-title p {
  margin: 0;
  font-size: 14px;
  color: #f5f5f5;
  opacity: 0.8;
  line-height: 1.4;
  white-space: normal;
}
body.link-page.align-mode .link-list-button {
  margin-left: auto;
  display: flex;
  align-items: center;
}
body.link-page.align-mode .link-list-button button {
  background: linear-gradient(90deg, #ff6b35 60%, #f7931e 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px #ff6b3544;
}
body.link-page.align-mode .link-list-button button:hover {
  background: linear-gradient(90deg, #f7931e 0%, #ff6b35 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  body.link-page.align-mode .link-list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }
  body.link-page.align-mode .link-list-img {
    margin-right: 0;
    margin-bottom: 12px;
    width: 60px;
    height: 60px;
  }
  body.link-page.align-mode .link-list-title {
    margin-right: 0;
    margin-bottom: 12px;
  }
  body.link-page.align-mode .link-list-title h3 {
    font-size: 14px;
    white-space: normal;
  }
  body.link-page.align-mode .link-list-title p {
    font-size: 12px;
  }
  body.link-page.align-mode .link-list-button {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  body.link-page.align-mode .link-list-button button {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    font-size: 12px;
  }
}
/* 既存の.link-list-系!importantやdisplay: block!important等はこの下で上書きされる */

/* === 整列モード時のリスト再表示強制 === */
body.link-page.align-mode .link-list-container,
body.link-page.align-mode .link-list-container *,
body.link-page.align-mode .link-list-container .link-list-item,
body.link-page.align-mode .link-list-container .link-list-img,
body.link-page.align-mode .link-list-container .link-list-image,
body.link-page.align-mode .link-list-container .link-list-title,
body.link-page.align-mode .link-list-container .link-list-button {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1 !important;
  position: static !important;
  visibility: visible !important;
}
body.link-page.align-mode .link-list-container .link-list-item {
  display: flex !important;
  align-items: center !important;
}
@media (max-width: 900px) {
  body.link-page.align-mode .link-list-container .link-list-item {
    flex-direction: column !important;
    align-items: center !important;
  }
}

/* =============================
   SUKI Portfolio 共通スタイル
   - メニューボタン・モーダル・ピース・レスポンシブ
   - アクセシビリティ強化（outline, :focus, :focus-visible）
   - 日本語コメント追加
============================= */

/* === アクセシビリティ: フォーカス可視化 === */
.menu-btn:focus, .menu-btn:focus-visible,
#closeModal:focus, #closeModal:focus-visible,
#alignBtn:focus, #alignBtn:focus-visible,
#scrambleBtn:focus, #scrambleBtn:focus-visible,
.floating-item:focus, .floating-item:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,215,0,0.2);
  z-index: 100000;
}

/* === ボタン・ピース画像のキーボード操作補助 === */
.menu-btn, #closeModal, #alignBtn, #scrambleBtn, .floating-item {
  cursor: pointer;
}

/* --- メニューボタン open/hover/active時のデバッグ枠・背景を完全リセット --- */
.menu-btn.open,
.menu-btn:active,
.menu-btn:hover {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.menu-btn.open span {
  background: #222 !important;
  box-shadow: none !important;
}

/* --- メニューボタン背景・影リセット --- */
.menu-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.menu-btn:hover,
.menu-btn:focus,
.menu-btn:active {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.menu-btn span {
  background: #222 !important;
}

/* ロゴのアンダーラインを消す */
a.header-title {
  text-decoration: none !important;
}

/* ロゴ画像サイズ調整 */
.logo-img {
  height: 32px;
  width: auto;
  max-width: 180px;
  vertical-align: middle;
  display: inline-block;
}






body:not(.modal-is-open) header {
  transform: none !important;
}

.breadcrumb-location-small {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 99999;
  font-size: 0.98rem;
  color: #888;
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  padding: 2px 12px 2px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  pointer-events: none;
  user-select: none;
  font-family: 'Noto Sans JP', 'Kosugi Maru', 'Inter', sans-serif;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.breadcrumb-location-small a {
  color: #aaa;
  text-decoration: underline dotted;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .breadcrumb-location-small {
    top: 8px;
    right: 6px;
    font-size: 0.90rem;
    padding: 1px 7px 1px 7px;
  }
}

.current-location-under-logo {
  display: block;
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 0.1em;
  margin-left: 2px;
  margin-bottom: 0.2em;
  font-family: 'Noto Sans JP', 'Kosugi Maru', 'Inter', sans-serif;
  letter-spacing: 0.01em;
  font-weight: 400;
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 600px) {
  .current-location-under-logo {
    font-size: 0.74rem;
    margin-left: 1px;
  }
}

.current-location-outside-header {
  font-size: 0.68rem;
  color: #aaa;
  margin: 0 0 0.1em 8px;
  font-family: 'Noto Sans JP', 'Kosugi Maru', 'Inter', sans-serif;
  letter-spacing: 0.01em;
  font-weight: 400;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  text-align: left;
  line-height: 1.1;
}
@media (max-width: 600px) {
  .current-location-outside-header {
    font-size: 0.60rem;
    margin-left: 4px;
  }
}

/* ミニプレーヤーカバー画像回転アニメーション */
.mini-player-cover.rotating {
  animation: mini-player-spin 1.2s linear infinite;
}
@keyframes mini-player-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
  #mainNav {
    width: 100vw;
    left: 0;
    right: 0;
    border-radius: 0 0 18px 18px;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    padding: 0.7em 0 1.1em 0;
  }
  #mainNav a {
    text-align: center;
    padding: 0.45em 0;
    font-size: 1.08rem;
    border-radius: 8px;
    display: block;
    width: 100%;
  }
  .header-right {
    margin-left: 0;
  }
}

/* === LINEスタンプモーダル専用ボタン（LINE緑グラデ） === */
body .modal-content[data-type="line"] .modal-btn,
body .modal-content[data-type="line"] button.modal-btn,
body .modal-content[data-type="line"] a.modal-btn {
  background: linear-gradient(90deg, #06C755 0%, #00B900 100%);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(6,199,85,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
body .modal-content[data-type="line"] .modal-btn:hover,
body .modal-content[data-type="line"] button.modal-btn:hover,
body .modal-content[data-type="line"] a.modal-btn:hover {
  background: linear-gradient(90deg, #00B900 0%, #06C755 100%);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(6,199,85,0.18);
}

/* === LINEスタンプモーダル画像：角丸＆切れ防止＆背景白 === */
body .modal-content[data-type="line"] .modal-img-col img {
  border-radius: 18px !important;
  object-fit: contain !important;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 6px;
  max-width: 100%;
  max-height: 340px;
  display: block;
  margin: 0 auto;
}

body .modal-content[data-type="line"] .modal-btn,
body .modal-content[data-type="line"] button.modal-btn,
body .modal-content[data-type="line"] a.modal-btn {
  background: linear-gradient(90deg, #06C755 0%, #39E27C 100%) !important;
  color: #fff !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(6,199,85,0.15) !important;
  padding: 0.9em 2.2em !important;
  font-size: 1.15em !important;
  letter-spacing: 0.05em !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-block !important;
}
body .modal-content[data-type="line"] .modal-btn:hover,
body .modal-content[data-type="line"] button.modal-btn:hover,
body .modal-content[data-type="line"] a.modal-btn:hover {
  background: linear-gradient(90deg, #39E27C 0%, #06C755 100%) !important;
  box-shadow: 0 4px 16px rgba(6,199,85,0.22) !important;
  filter: brightness(1.08) !important;
}


/* --- 横画面・横長時もLINEボタンをグリーングラデに強制上書き --- */
body .modal-content[data-type="line"] .modal-info-col .modal-btn,
body .modal-content[data-type="line"] .modal-btn,
body .modal-content[data-type="line"] button.modal-btn,
body .modal-content[data-type="line"] a.modal-btn {
  background: linear-gradient(90deg, #06C755 0%, #39E27C 100%) !important;
  color: #fff !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(6,199,85,0.15) !important;
  padding: 0.9em 2.2em !important;
  font-size: 1.15em !important;
  letter-spacing: 0.05em !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-block !important;
  z-index: 10000 !important;
}
body .modal-content[data-type="line"] .modal-info-col .modal-btn:hover,
body .modal-content[data-type="line"] .modal-btn:hover,
body .modal-content[data-type="line"] button.modal-btn:hover,
body .modal-content[data-type="line"] a.modal-btn:hover {
  background: linear-gradient(90deg, #39E27C 0%, #06C755 100%) !important;
  box-shadow: 0 4px 16px rgba(6,199,85,0.22) !important;
  filter: brightness(1.08) !important;
}

/* landscape, 横長用の全メディアクエリにも強制 */
@media (orientation: landscape), (min-width: 700px), (max-width: 900px), (min-width: 900px) {
  body .modal-content[data-type="line"] .modal-info-col .modal-btn,
  body .modal-content[data-type="line"] .modal-btn,
  body .modal-content[data-type="line"] button.modal-btn,
  body .modal-content[data-type="line"] a.modal-btn {
    background: linear-gradient(90deg, #06C755 0%, #39E27C 100%) !important;
    color: #fff !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(6,199,85,0.15) !important;
    padding: 0.9em 2.2em !important;
    font-size: 1.15em !important;
    letter-spacing: 0.05em !important;
    transition: background 0.2s, box-shadow 0.2s !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
    outline: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    z-index: 10000 !important;
  }
  body .modal-content[data-type="line"] .modal-info-col .modal-btn:hover,
  body .modal-content[data-type="line"] .modal-btn:hover,
  body .modal-content[data-type="line"] button.modal-btn:hover,
  body .modal-content[data-type="line"] a.modal-btn:hover {
    background: linear-gradient(90deg, #39E27C 0%, #06C755 100%) !important;
    box-shadow: 0 4px 16px rgba(6,199,85,0.22) !important;
    filter: brightness(1.08) !important;
  }
}

/* --- 最強セレクタでLINEボタンだけグリーングラデに --- */
body .modal[data-type="line"] .modal-content[data-type="line"] .modal-info-col .modal-btn,
body .modal-content[data-type="line"] .modal-info-col .modal-btn,
body .modal-content[data-type="line"] .modal-btn,
body .modal-content[data-type="line"] button.modal-btn,
body .modal-content[data-type="line"] a.modal-btn,
body .modal-content[data-type="line"] .modal-info-col a.modal-btn,
body .modal-content[data-type="line"] .modal-info-col button.modal-btn {
  background: linear-gradient(90deg, #06C755 0%, #39E27C 100%) !important;
  color: #fff !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(6,199,85,0.15) !important;
  padding: 0.9em 2.2em !important;
  font-size: 1.15em !important;
  letter-spacing: 0.05em !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-block !important;
  z-index: 10000 !important;
}
body .modal-content[data-type="line"] .modal-info-col .modal-btn:hover,
body .modal-content[data-type="line"] .modal-btn:hover,
body .modal-content[data-type="line"] button.modal-btn:hover,
body .modal-content[data-type="line"] a.modal-btn:hover,
body .modal-content[data-type="line"] .modal-info-col a.modal-btn:hover,
body .modal-content[data-type="line"] .modal-info-col button.modal-btn:hover {
  background: linear-gradient(90deg, #39E27C 0%, #06C755 100%) !important;
  box-shadow: 0 4px 16px rgba(6,199,85,0.22) !important;
  filter: brightness(1.08) !important;
}

/* === LINEモーダル画像 切れ防止・中央寄せ・最大サイズ強制 === */
body .modal-content[data-type="line"] .modal-img-col img {
  border-radius: 18px !important;
  object-fit: contain !important;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
  padding: 6px !important;
  max-width: 100% !important;
  max-height: 340px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ===== scrollガイド：矢印中央固定＆キャラ左右ふわふわ（最優先！） ===== */
.scroll-guide-character {
  position: fixed !important;
  top: 72px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  width: 220px !important;
  height: 260px !important;
  pointer-events: none !important;
  display: block !important;
}
.scroll-guide-character * {
  box-sizing: border-box !important;
}
.guide-chara-img {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  margin-bottom: 0 !important;
  z-index: 2 !important;
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
  animation: charaFloatX 3.5s ease-in-out infinite alternate !important;
  pointer-events: auto !important;
}
@keyframes charaFloatX {
  0% { transform: translateX(-50%) translateX(-30px); }
  100% { transform: translateX(-50%) translateX(30px); }
}
.guide-chara-scroll-text {
  position: absolute !important;
  left: 50% !important;
  top: 180px !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  font-size: 1.2em !important;
  color: #222 !important;
  font-family: 'Inter', 'Noto Sans JP', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 2px !important;
  user-select: none !important;
  text-shadow: 0 2px 8px rgba(255,255,255,0.7) !important;
  z-index: 3 !important;
  pointer-events: none !important;
}
.guide-chara-arrow {
  position: absolute !important;
  left: 50% !important;
  top: 210px !important;
  transform: translateX(-50%) !important;
  margin-top: 0 !important;
  display: block !important;
  z-index: 2 !important;
  animation: none !important;
  border: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.guide-chara-arrow::before,
.guide-chara-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  display: block;
}
.guide-chara-arrow::before {
  border-width: 18px 24px 0 24px;
  border-color: #fff transparent transparent transparent;
  top: 0;
  z-index: 2;
}
.guide-chara-arrow::after {
  border-width: 24px 32px 0 32px;
  border-color: #ffd700 transparent transparent transparent;
  top: 6px;
  z-index: 1;
  opacity: 0.7;
}
.guide-chara-balloon {
  display: none !important;
}

.scroll-guide-character.hidden {
  display: none !important;
}

/* === セクション共通フェードインアニメーション === */
.section.fade-in, .fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.section.fade-in.visible, .fade-in.visible {
  opacity: 1;
  transform: none;
}

/* === 雨アニメーション用canvas === */
#rainCanvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.7s;
  opacity: 1;
}
#rainCanvas.hide {
  opacity: 0;
  transition: opacity 0.7s;
}

.align-group .floating-sns.x-icon svg { margin-top: 38px; }
.align-group .floating-sns.insta-icon svg { margin-top: 10px; }
.align-group .floating-sns.yt-icon svg { margin-top: 14px; }
@media (max-width: 768px) {
  .align-group .floating-sns.x-icon svg { margin-top: 24px; }
  .align-group .floating-sns.insta-icon svg { margin-top: 6px; }
  .align-group .floating-sns.yt-icon svg { margin-top: 8px; }
}

.align-group .floating-sns img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .align-group .floating-sns img {
    width: 48px;
    height: 48px;
  }
}

.align-group .floating-sns img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .align-group .floating-sns img {
    width: 80px;
    height: 80px;
  }
}

.align-group .floating-sns.x-icon img {
  padding: 24px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .align-group .floating-sns.x-icon img {
    padding: 12px;
  }
}

.align-group .floating-sns.x-icon img {
  transform: scale(0.7);
}
@media (max-width: 768px) {
  .align-group .floating-sns.x-icon img {
    transform: scale(0.5);
  }
}

.align-group .floating-sns.x-icon img {
  transform: scale(0.32);
}
@media (max-width: 768px) {
  .align-group .floating-sns.x-icon img {
    transform: scale(0.22);
  }
}

.floating-sns img,
.floating-sns svg {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 16px; /* 余白を追加して重なり防止 */
  box-sizing: border-box;
}
.align-group .floating-sns {
  margin: 0 16px; /* アイコン同士の間隔を広げる */
}

/* === きゅうりが降ってくる演出 === */
.cucumber-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.cucumber-drop {
  position: absolute;
  width: 40px;
  height: 40px;
  background: url('/img/22937939.png') center/contain no-repeat;
  animation: cucumber-fall linear infinite;
  opacity: 0.8;
  transform: rotate(0deg);
}

@keyframes cucumber-fall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(360deg);
    opacity: 0;
  }
}

/* きゅうりの回転バリエーション */
.cucumber-drop:nth-child(odd) {
  animation-duration: 4s;
  animation-delay: 0s;
}

.cucumber-drop:nth-child(even) {
  animation-duration: 5s;
  animation-delay: 1s;
}

.cucumber-drop:nth-child(3n) {
  animation-duration: 6s;
  animation-delay: 2s;
}

.cucumber-drop:nth-child(4n) {
  animation-duration: 4.5s;
  animation-delay: 0.5s;
}

.cucumber-drop:nth-child(5n) {
  animation-duration: 5.5s;
  animation-delay: 1.5s;
}

/* きゅうりサイズのバリエーション */
.cucumber-drop.small {
  width: 30px;
  height: 30px;
}

.cucumber-drop.large {
  width: 50px;
  height: 50px;
}

/* きゅうりが降っている間の背景効果 */
body.cucumber-raining {
  position: relative;
}

body.cucumber-raining::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  animation: cucumber-glow 3s ease-in-out infinite alternate;
}

@keyframes cucumber-glow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.6;
  }
}

/* --- デバッグ用：ヒーロー文言の強制表示（JS制御のため削除） --- */
/* .hero-title-animate, .hero-desc-animate {
  opacity: 1 !important;
  color: #222 !important;
  text-shadow: 0 2px 8px #fff, 0 0 2px #fff;
} */

/* --- デバッグ用：全親要素の強制表示 --- */
body, .section, .hero, .section.hero {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* --- ヒーロー説明文・各行を中央寄せ --- */
.hero-desc-animate {
  text-align: center !important;
  margin: 0 auto !important;
  width: 100%;
  max-width: 700px;
  display: block;
  padding: 0.5em 0 0.5em 0;
}
.hero-line {
  display: inline-block;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(.33,1.02,.54,1), transform 0.8s cubic-bezier(.33,1.02,.54,1);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 2.1;
  /* color: #f3f6fa; JS制御のため削除 */
  /* text-shadow: 0 2px 8px #000a; JS制御のため削除 */
}
.hero-line.visible {
  opacity: 1;
  transform: translateY(0) scale(1.08);
  /* color: #ffd700; JS制御のため削除 */
  /* text-shadow: 0 4px 16px #ffd70088, 0 2px 8px #000a; JS制御のため削除 */
}

/* --- ヒーロー説明文：中央配置・左寄せ --- */
.hero-desc-animate {
  text-align: left !important;
  margin: 0 auto !important;
  width: 100%;
  max-width: 700px;
  display: block;
  padding: 0.5em 0 0.5em 0;
}
.hero-line {
  display: block;
  width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(.33,1.02,.54,1), transform 0.9s cubic-bezier(.33,1.02,.54,1), color 0.7s, text-shadow 0.7s;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 2.1;
  color: #3a3a3a;
  text-shadow: none;
}
.hero-line.visible {
  opacity: 1;
  transform: translateY(0) scale(1.08);
  color: #ffd700;
  text-shadow: 0 4px 16px #ffd70088, 0 2px 8px #000a;
}
.hero-line.slide-left {
  transform: translate(-48px, 48px) scale(0.96);
}
.hero-line.slide-right {
  transform: translate(48px, 48px) scale(0.96);
}
.hero-line.visible.slide-left {
  transform: translateX(0) scale(1.08);
}
.hero-line.visible.slide-right {
  transform: translateX(0) scale(1.08);
}

/* --- ヒーロー文言の初期色を必ず濃いグレーに強制（JS制御のため削除） --- */
/* .section.hero .hero-title-animate,
.section.hero .hero-desc-animate,
.hero-line {
  color: #3a3a3a !important;
} */

/* --- ヒーロー文言のドロップシャドウを完全に消す（JS制御のため削除） --- */
/* .section.hero .hero-title-animate,
.section.hero .hero-desc-animate,
.hero-line {
  text-shadow: none !important;
} */

/* --- ピース落下アニメーション --- */
.falling {
  animation: piece-fall 1.2s cubic-bezier(.3,1.2,.5,1.0) forwards !important;
  z-index: 99999 !important;
}
@keyframes piece-fall {
  0% { transform: translateY(0); }
  80% { transform: translateY(80vh) scale(1.05) rotate(-6deg); }
  100% { transform: translateY(88vh) scale(1) rotate(0deg); }
}

#dropPiecesBtn {
  position: fixed !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #222 !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 4px 24px 0 #000a, 0 0 0 4px #fff8 !important;
  opacity: 1 !important;
  right: 24px !important;
  bottom: 10px !important; /* 一番下に配置 */
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  cursor: pointer;
  font-size: 2.2em !important;
  color: #ffd700 !important;
  background: #222 !important;
}
@media (max-width: 768px) {
  #dropPiecesBtn {
    right: 18px !important;
    width: 60px !important;
    height: 60px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: rgba(34,34,34,0.95);
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em !important;
  }
}


#muteBtn { bottom: 40px !important; }
#alignBtn { bottom: 120px !important; }
#scrambleBtn { bottom: 200px !important; }
#cucumberBtn { bottom: 280px !important; }
#dropPiecesBtn { bottom: 440px !important; }
@media (max-width: 768px) {
  #muteBtn { bottom: 40px !important; }
  #alignBtn { bottom: 120px !important; }
  #scrambleBtn { bottom: 200px !important; }
  #cucumberBtn { bottom: 280px !important; }
  #dropPiecesBtn { bottom: 440px !important; }
}

.youtube-modal ~ #dropPiecesBtn,
body.modal-is-open .youtube-modal ~ #dropPiecesBtn {
  display: none !important;
}

body.modal-is-open .modal-content.youtube-modal ~ #dropPiecesBtn,
body.modal-is-open .modal-content.youtube-modal + #dropPiecesBtn,
body.modal-is-open #dropPiecesBtn {
  display: none !important;
}

.floating-item {
  z-index: 1000 !important; /* フッターより上に重なるように */
}

/* PC用：横長画面でも従来通りの横並びメニュー */
@media (min-width: 901px) {
  #mainNav {
    top: 60px;
    right: 20px;
    width: min(280px, 80vw);
    max-height: 70vh;
    background: transparent !important;
    color: #fff !important;
    z-index: 13000 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 1.5em 0.8em 1.2em 0.8em;
    box-shadow: 0 4px 18px #0003;
    opacity: 1;
    pointer-events: auto;
    border-radius: 12px;
    transform: translateY(-100%);
    transition: transform 0.7s cubic-bezier(.33,1.02,.54,1), opacity 0.5s cubic-bezier(.33,1.02,.54,1);
  }
  #mainNav.main-nav-collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    background: transparent !important;
  }
  #mainNav:not(.main-nav-collapsed) {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    background: rgba(0,0,0,0.55) !important;
  }
  #mainNav a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7em 1.2em;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    margin: 0.2em 0;
    font-size: 1.08rem;
    display: block;
    width: 100%;
    text-align: left;
  }
  #mainNav a:hover {
    background: rgba(255,215,0,0.08) !important;
    color: #ffd700 !important;
  }
}



/* スマホ横長画面用：ドロワー式メニューを維持 */
@media (max-width: 900px) and (orientation: landscape) {
  #mainNav {
    /* スマホ用ドロワー式設定を継承 */
    overflow: visible;
    flex-wrap: wrap;
    font-size: clamp(0.8rem, 2vw, 1.02rem);
    min-height: 48px;
    height: auto;
  }
  #mainNav a {
    white-space: normal;
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: 0.4em 0.1em;
    margin: 0 0.1em 0.1em 0.1em;
  }
}

/** SUKI Portfolio 共通メニューボタン仕様（全ページ統一） **/
.menu-btn {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1000001;
  width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: content-box;
  background: none;
  border: none;
  box-shadow: none;
  display: block;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.menu-btn span {
  position: absolute;
  width: 28px;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  background: #222;
  border-radius: 2px;
  display: block;
  transition: background 0.2s, transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.2s, top 0.3s cubic-bezier(.4,2,.6,1);
  transform-origin: 50% 50%;
  box-sizing: border-box;
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 30px; }
.menu-btn.open span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); transform-origin: 50% 50%; }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); transform-origin: 50% 50%; }
@media (max-width: 600px) {
  .menu-btn { 
    padding: 0 !important; 
    position: relative !important;
    margin: 0 0 0 auto !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  #muteBtn, #alignBtn, #scrambleBtn, #cucumberBtn, #dropPiecesBtn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    font-size: 1.1em !important;
    right: 8px !important;
  }
  #muteBtn { bottom: 40px !important; }
  #alignBtn { bottom: 90px !important; }
  #scrambleBtn { bottom: 140px !important; }
  #cucumberBtn { bottom: 190px !important; }
  #dropPiecesBtn { bottom: 290px !important; }
  #muteBtn svg, #alignBtn svg, #scrambleBtn svg, #cucumberBtn svg, #dropPiecesBtn svg {
    width: 22px !important;
    height: 22px !important;
  }
}

/* --- グローバルメニュー徹底リセット&シンプル化 --- */
header + #mainNav {
  position: fixed;
  top: 120px; /* ヘッダー高さに合わせて調整 */
  left: 0;
  width: 100vw;
  z-index: 10000;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  opacity: 1;
  transition: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 16px 0;
}

#mainNav.main-nav-collapsed {
  display: none;
  background: transparent;
}

#mainNav:not(.main-nav-collapsed) {
  display: flex;
  background: rgba(34, 34, 34, 0.5);
}

header + #mainNav a {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(34, 34, 34, 0.5);
  color: #fff;
  border: none;
  box-shadow: none;
  border-radius: 0;
  font-size: 1.1em;
  font-weight: 600;
  padding: 16px 24px;
  margin: 0;
  transition: background 0.2s, color 0.2s;
}
header + #mainNav a:hover {
  background: #ffd700;
  color: #222;
}

/* --- メニュー展開時の「×」ボタンを最前面・右上固定 --- */
.menu-btn.open {
  position: fixed;
  top: 38px;
  right: 16px;
  z-index: 99999;
  background: none;
  border: none;
  box-shadow: none;
}

.menu-btn.open span {
  background: #222;
}

/* --- スマホ・タブレット時も同じデザインに統一 --- */
@media (max-width: 900px) {
  header + #mainNav {
    top: 120px;
    left: 0;
    width: 100vw;
    border: none;
    box-shadow: none;
    background: rgba(34, 34, 34, 0.5);
    border-radius: 0;
    padding: 0 0 16px 0;
  }
  header + #mainNav a {
    border: none;
    box-shadow: none;
    background: rgba(34, 34, 34, 0.5);
    color: #fff;
    font-size: 1.1em;
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    margin: 0;
    border-radius: 0;
  }
  header + #mainNav a:hover {
    background: #ffd700;
    color: #222;
  }
  .menu-btn.open {
    position: fixed;
    top: 38px;
    right: 16px;
    z-index: 99999;
    background: none;
    border: none;
    box-shadow: none;
  }
}

/* --- グローバルメニュー徹底リセット（全パターン網羅・最強版）--- */
#mainNav, #mainNav *, nav#mainNav, nav#mainNav *, .main-nav-collapsed, .main-nav-collapsed *,
#mainNav:not(.main-nav-collapsed), #mainNav:not(.main-nav-collapsed) *,
#mainNav a, nav#mainNav a, .main-nav-collapsed a, #mainNav:not(.main-nav-collapsed) a {
  background: none !important;
}

#mainNav {
  position: fixed !important;
  top: 120px !important;
  left: 0 !important;
  width: 100vw !important;
  z-index: 10000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 0 0 16px 0 !important;
}
#mainNav.main-nav-collapsed {
  display: none !important;
}
#mainNav:not(.main-nav-collapsed) {
  display: flex !important;
}

.menu-btn.open {
  position: fixed !important;
  top: 38px !important;
  right: 16px !important;
  z-index: 99999 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.menu-btn.open span {
  background: #222 !important;
}

@media (max-width: 900px) {
  #mainNav {
    top: 120px !important;
    left: 0 !important;
    width: 100vw !important;
    border: none !important;
    box-shadow: none !important;
    background: #222 !important;
    border-radius: 0 !important;
    padding: 0 0 16px 0 !important;
  }
}

#mainNav a,
nav#mainNav a,
#mainNav:not(.main-nav-collapsed) a,
#mainNav a:enabled,
#mainNav a:not([disabled]),
#mainNav a:not(.disabled) {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
  color: #fff !important;
  cursor: pointer !important;
}

#mainNav a.disabled,
#mainNav a[disabled] {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
  color: #fff !important;
  cursor: pointer !important;
}

#mainNav, nav#mainNav {
  background: rgba(34,34,34,0.85) !important;
}

#mainNav, #mainNav *, nav#mainNav, nav#mainNav * {
  pointer-events: auto !important;
  opacity: 1 !important;
  user-select: auto !important;
  z-index: 10000 !important;
}

#mainNav, #mainNav *, #mainNav a, #mainNav li, #mainNav ul {
  background: rgba(34,34,34,0.85) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  user-select: auto !important;
  z-index: 10000 !important;
  filter: none !important;
  cursor: pointer !important;
}
#mainNav a:disabled, #mainNav a.disabled, #mainNav li:disabled, #mainNav li.disabled {
  opacity: 1 !important;
  pointer-events: auto !important;
  color: #fff !important;
  filter: none !important;
  cursor: pointer !important;
}

@media (max-width: 900px) {
  body.drawer-open::before {
    z-index: 9000;
  }
  #mainNav {
    z-index: 20000 !important;
  }
}

/* 言語切り替えボタン左端固定 */
.language-toggle, #languageToggle {
  position: fixed;
  top: 80px;
  left: 8px;
  z-index: 21000;
  display: flex;
  background: none;
  border-radius: 20px;
  padding: 2px;
  align-items: center;
  border: 1px solid rgba(255,215,0,0.5);
}
.language-toggle .lang-btn, #languageToggle .lang-btn {
  font-size: 0.85em;
  font-weight: 600;
  color: rgba(80,80,80,0.7);
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 4px 8px;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  min-width: 28px;
  text-align: center;
}
.language-toggle .lang-btn.active, #languageToggle .lang-btn.active {
  background: rgba(255,215,0,0.9);
  color: #222;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.language-toggle .lang-btn:hover, #languageToggle .lang-btn:hover {
  opacity: 1;
  color: #222;
}
@media (max-width: 600px) {
  .language-toggle, #languageToggle {
    top: 70px;
    left: 4px;
    padding: 1px;
    border-radius: 16px;
  }
  .language-toggle .lang-btn, #languageToggle .lang-btn {
    font-size: 0.8em;
    padding: 3px 6px;
    border-radius: 15px;
    min-width: 24px;
  }
}

header + #mainNav a {
  background: none !important;
}

header + #mainNav a {
  background: rgba(34,34,34,0.18) !important;
  color: #fff !important;
  transition: background 0.2s, color 0.2s;
}
header + #mainNav a:hover {
  background: rgba(255,215,0,0.7) !important;
  color: #222 !important;
}
header + #mainNav > a:first-child {
  margin-top: 36px !important;
}

/* ▼ミニプレーヤーとメニューボタンの重なり防止（20250706） */
.header-mini-player {
  margin-right: 56px; /* メニューボタン分の余白を確保 */
}
@media (max-width: 600px) {
  .header-mini-player {
    margin-right: 48px;
    min-width: 160px;
    padding: 6px 8px;
  }
}

/* ▼600px以上でも三本線中央揃え維持（20250706最終修正） */
@media (min-width: 601px) {
  .menu-btn {
    padding: 0 !important;
    box-sizing: content-box !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 !important;
  }
  .menu-btn span {
    width: 28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    position: absolute !important;
  }
  .menu-btn.open span:nth-child(1) {
    transform: translateX(-50%) rotate(45deg) !important;
    transform-origin: 50% 50% !important;
  }
  .menu-btn.open span:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg) !important;
    transform-origin: 50% 50% !important;
  }
  .header-right {
    justify-content: flex-end !important;
    align-items: center !important;
    display: flex !important;
    gap: 12px !important;
  }
}

#mainNav.main-nav-collapsed {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  #mainNav.main-nav-collapsed {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    background: transparent !important;
    right: -100% !important;
  }
}

/* ▼黒帯完全消去 最終強制リセット（20250706） */
#mainNav,
#mainNav *,
nav#mainNav,
nav#mainNav *,
#mainNav.main-nav-collapsed,
#mainNav:not(.main-nav-collapsed),
#mainNav:not(.main-nav-collapsed) *,
header + #mainNav,
header + #mainNav *,
header + #mainNav a,
header + #mainNav a:hover {
  background: transparent !important;
}

@media (max-width: 900px) {
  #mainNav,
  #mainNav *,
  #mainNav.main-nav-collapsed,
  #mainNav:not(.main-nav-collapsed),
  header + #mainNav,
  header + #mainNav * {
    background: transparent !important;
  }
}

@media (min-width: 901px) {
  #mainNav,
  #mainNav *,
  #mainNav.main-nav-collapsed,
  #mainNav:not(.main-nav-collapsed),
  header + #mainNav,
  header + #mainNav * {
    background: transparent !important;
  }
}

@media (max-width: 400px) {
  #mainNav,
  #mainNav *,
  #mainNav.main-nav-collapsed,
  #mainNav:not(.main-nav-collapsed),
  header + #mainNav,
  header + #mainNav * {
    background: transparent !important;
  }
}

body.drawer-open::before {
  background: transparent !important;
}

.piece-returning {
  transition: top 0.7s cubic-bezier(.4,2,.6,1), left 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
}

/* ▼グローバルメニュー背景を全状態で50%濃度に統一（最優先で上書き） */
#mainNav,
#mainNav *,
nav#mainNav,
nav#mainNav *,
#mainNav.main-nav-collapsed,
#mainNav:not(.main-nav-collapsed),
#mainNav:not(.main-nav-collapsed) *,
header + #mainNav,
header + #mainNav *,
header + #mainNav a,
header + #mainNav a:hover {
  background: rgba(34,34,34,0.5) !important;
}

/* ▼グローバルメニュー ぬるっと出てくるアニメーション */
#mainNav:not(.main-nav-collapsed) {
  animation: menuSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: top center;
}

@keyframes menuSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ▼グローバルメニュー おすすめホバー効果 */
#mainNav a {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: rgba(34,34,34,0.5) !important;
}

#mainNav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.15), transparent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

#mainNav a:hover::before {
  left: 100%;
}

#mainNav a:hover {
  background: rgba(255,215,0,0.2) !important;
  color: #ffff00 !important;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(255,215,0,0.2);
}

#mainNav a:active {
  transform: translateX(4px) scale(0.98);
  transition: all 0.1s ease;
}

/* ▼LINKページ専用 グローバルメニューホバー効果（黄色文字） */
body.link-page #mainNav a:hover {
  background: rgba(255,215,0,0.2) !important;
  color: #ffff00 !important;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(255,215,0,0.2);
}

body.link-page #mainNav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.15), transparent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

body.link-page #mainNav a:hover::before {
  left: 100%;
}

@media (max-width: 900px) {
  body.link-page #mainNav a:hover {
    background: rgba(255,215,0,0.2) !important;
    color: #ffff00 !important;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(255,215,0,0.2);
  }
}

@media (max-width: 600px) {
  body.link-page #mainNav a:hover {
    background: rgba(255,215,0,0.2) !important;
    color: #ffff00 !important;
    transform: translateX(6px);
    box-shadow: 0 3px 8px rgba(255,215,0,0.2);
  }
}

/* ▼スマホ縦画面でロゴが必ず全て表示されるように調整（20250706） */
@media (max-width: 600px) {
  .logo {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.1rem !important;
    margin-right: 0.15em !important;
  }
  .logo-img {
    height: 24px !important;
    max-width: 120px !important;
    width: auto !important;
    margin-right: 0.1em !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
}

/* ▼ミニプレーヤー表示時はロゴを非表示（20250706） */
header.player-visible .logo,
header.player-visible .logo-img {
  display: none !important;
}

/* ▼ミニプレーヤー表示時はスマホ（600px以下）のみロゴを非表示（20250706修正版） */
@media (max-width: 600px) {
  header.player-visible .logo,
  header.player-visible .logo-img {
    display: none !important;
  }
}

/* ▼ヘッダー右側の並び・間隔を常に一定に（20250706） */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-mini-player {
  margin-right: 0 !important;
}

@media (max-width: 600px) {
  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    width: 100%;
    overflow: visible;
  }
  .header-mini-player {
    margin-right: 0 !important;
    min-width: 0 !important;
    max-width: 60vw !important;
    flex-shrink: 1 !important;
    flex-grow: 0 !important;
    padding: 4px 6px !important;
  }
  .menu-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .header-title {
    font-size: 1.05rem;
    max-width: none !important;
    min-width: 0 !important;
    flex-basis: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    display: block;
  }
  .header-left {
    min-width: 0 !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
  }
}

/* ▼ロゴが常に表示されるよう強制設定（20250706） */
.header-title {
  max-width: none !important;
  min-width: 0 !important;
  flex-basis: auto !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.header-left {
  min-width: 0 !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.header-right {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
  flex-grow: 0 !important;
}

.header-mini-player {
  margin-right: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  flex-shrink: 1 !important;
  flex-grow: 0 !important;
}

.menu-btn {
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

/* ▼スマホ用の追加調整 */
@media (max-width: 600px) {
  .header-title {
    font-size: 1.05rem !important;
    max-width: none !important;
    min-width: 0 !important;
    flex-basis: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .header-left {
    min-width: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    flex-grow: 0 !important;
  }
  
  .header-mini-player {
    margin-right: 0 !important;
    min-width: 0 !important;
    max-width: 60vw !important;
    flex-shrink: 1 !important;
    flex-grow: 0 !important;
    padding: 4px 6px !important;
  }
  
  .menu-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
}

/* ▼ミニプレーヤー表示時もロゴを維持（スマホのみ非表示） */
@media (max-width: 600px) {
  header.player-visible .logo,
  header.player-visible .logo-img {
    display: none !important;
  }
}

/* ▼ヘッダー右側の並び・間隔を常に右端に固定（20250706） */
.header-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
  flex-grow: 0 !important;
}

.header-mini-player {
  margin-right: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  flex-shrink: 1 !important;
  flex-grow: 0 !important;
}

.menu-btn {
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

@media (max-width: 600px) {
  .header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    flex-grow: 0 !important;
  }
  .header-mini-player {
    margin-right: 0 !important;
    min-width: 0 !important;
    max-width: 60vw !important;
    flex-shrink: 1 !important;
    flex-grow: 0 !important;
    padding: 4px 6px !important;
  }
  .menu-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
}

/* === スマホ縦画面でロゴが消える時だけkappa画像をロゴ位置に表示 === */
.kappa-logo {
  display: none;
}

@media (max-width: 600px) {
  header.player-visible .header-left {
    position: relative;
    min-width: 32px;
    min-height: 32px;
    overflow: visible;
    z-index: 10000;
  }
  
  header.player-visible .kappa-logo {
    display: block;
    width: 100px;
    height: 100px;
    background: url('/img/kappa_wakuwaku.gif') no-repeat center/contain;
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    margin: auto;
    z-index: 10000;
    pointer-events: none;
  }
}

.kappa-logo {
  display: none;
}

@media (max-width: 600px) {
  /* ロゴ・ロゴ画像・タイトルを消す */
  header.player-visible .logo,
  header.player-visible .logo-img,
  header.player-visible .header-title {
    display: none !important;
  }

  /* ロゴ位置にkappa画像を表示（サイズ大きめに） */
  header.player-visible .header-left {
    position: relative;
    min-width: 40px;
    min-height: 40px;
    overflow: visible;
    z-index: 10000;
  }
  header.player-visible .kappa-logo {
    display: block;
    width: 40px;
    height: 40px;
    background: url('/img/kappa_wakuwaku.gif') no-repeat center/contain;
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    margin: auto;
    z-index: 10000;
    pointer-events: none;
  }
}

/* === 投げ銭モーダル === */
.tipjar-content {
  position: relative;
  max-width: 500px;
  width: 90vw;
  background: #222;
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 0;
  color: #fff;
}

.tipjar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #444;
}

.tipjar-header h2 {
  margin: 0;
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #ffd700;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.tipjar-body {
  padding: 24px;
  text-align: center;
}

.tipjar-body p {
  margin: 0 0 16px 0;
  line-height: 1.6;
  color: #ccc;
}

.tipjar-link {
  margin-top: 24px;
}

.tipjar-link img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.tipjar-link img:hover {
  transform: scale(1.05);
}


#muteBtn, #alignBtn, #scrambleBtn, #cucumberBtn, #dropPiecesBtn {
  z-index: 10010 !important;
}




@media (orientation: landscape) and (max-width: 900px) {
  body::before {
    content: "スマホ横画面は非対応です。縦向きでご覧ください。";
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #222c;
    color: #fff;
    font-size: 2.2vw;
    text-align: center;
    padding: 10vw 5vw;
    pointer-events: all;
  }
  #muteBtn, #scrambleBtn, #alignBtn, #cucumberBtn,
  header, main, footer, .main-content, .container, .player, .hero, .album-modal-mode {
    display: none !important;
  }
}
@media (orientation: landscape) and (max-width: 1000px) {
  body::before {
    content: "スマホ横画面は非対応です。縦向きでご覧ください。";
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #222c;
    color: #fff;
    font-size: 2.2vw;
    text-align: center;
    padding: 10vw 5vw;
    pointer-events: all;
  }
  #muteBtn, #scrambleBtn, #alignBtn, #cucumberBtn,
  header, main, footer, .main-content, .container, .player, .hero, .album-modal-mode {
    display: none !important;
  }
}

body.drawer-open header.player-visible #headerMiniPlayer,
body.drawer-open .header-mini-player {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- tipjarボタン専用：一元化・競合排除 --- */
#tipjarBtn, .tip-btn {
  position: fixed;
  right: 24px;
  bottom: 360px;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  border-radius: 50%;
  background: #222;
  border: 2.5px solid #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  z-index: 10010;
  transition: box-shadow 0.2s, background 0.2s;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 4px 24px 0 #000a, 0 0 0 4px #fff8;
}
#tipjarBtn svg, .tip-btn svg {
  width: 32px;
  height: 32px;
  display: block;
}
@media (max-width: 900px) and (orientation: landscape) {
  #tipjarBtn, .tip-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    right: 8px;
    bottom: 240px;
  }
  #tipjarBtn svg, .tip-btn svg {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 768px) {
  #tipjarBtn, .tip-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    right: 16px;
    bottom: 180px;
  }
  #tipjarBtn svg, .tip-btn svg {
    width: 28px;
    height: 28px;
  }
}


/* --- tipjarボタンの縦位置を他ボタンと完全統一 --- */
#tipjarBtn, .tip-btn {
  bottom: 360px !important;
}
@media (max-width: 900px) and (orientation: landscape) {
  #tipjarBtn, .tip-btn {
    bottom: 240px !important;
  }
}
@media (max-width: 768px) {
  #tipjarBtn, .tip-btn {
    bottom: 360px !important;
  }
}

/* --- tipjarボタンのサイズも他ボタンと完全統一 --- */
#tipjarBtn, .tip-btn {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
}
@media (max-width: 900px) and (orientation: landscape) {
  #tipjarBtn, .tip-btn {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }
}
@media (max-width: 768px) {
  #tipjarBtn, .tip-btn {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }
}

.tipjar-content {
  height: auto !important;
  min-height: 0 !important;
  align-items: initial !important;
  display: block !important;
}


/* === カスタムマウスカーソルを無効化し、通常の矢印カーソルに戻す === */
#cursorLight {
  display: none !important;
}
body, html {
  cursor: auto !important;
}
