/* MUGnet 1st Anniversary Special Page CSS
   Based on MUGnet Design Manual 
*/

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

:root {
  /* カラー設定 */
  --background: #ffffff; /* ローディング画面の背景色（白のまま） */
  --main-background: #f9f9f9; /* メインサイトの背景色（少し灰色よりに） */
  --text: #1A1A1A;
  --text-secondary: #333333;
  --border: #e2e8f0;
  --hover-bg: #f7f7f7;
  --divider-position: 0%;
  --exit-position: 0%; /* 退場アニメーション用の変数 */
  --card-shadow: 0 2px 10px rgba(0,0,0,0.05);
  --transition-slow: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  --transition-normal: 0.3s ease;
}

/* ローディング中のbody固定 */
body.loading {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* ローディングアニメーション */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  /* フェードアウトではなくクリップパスを使用 */
  clip-path: inset(0 0 0 var(--exit-position));
  transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1); /* イージング効果を適用 */
}

.loading-container {
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.logo-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 30px;
  overflow: hidden;
}

/* 左側ロゴ（Anniversary） */
.logo-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: clip-path, opacity;
  clip-path: polygon(0% 0%, var(--divider-position, 0%) 0%, var(--divider-position, 0%) 100%, 0% 100%);
  opacity: 0; /* 初期状態では非表示 */
  transition: opacity 1s ease-in;
}

/* 右側ロゴ（MUGnet） */
.logo-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: clip-path, opacity;
  clip-path: polygon(var(--divider-position, 0%) 0%, 100% 0%, 100% 100%, var(--divider-position, 0%) 100%);
  opacity: 0; /* 初期状態では非表示 */
  transition: opacity 1s ease-in;
}

#mugnet-logo, #anniversary-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ロゴサイズと位置の個別調整 */
#mugnet-logo {
  transform: scale(0.95);
}

#anniversary-logo {
  transform: scale(0.95);
}

/* フェードインアニメーションクラス */
.fade-in {
  opacity: 1 !important;
}

/* ローディングアニメーション完了時のスタイル */
.loading-complete {
  /* opacityではなくclip-pathで右に消えていく */
  clip-path: inset(0 0 0 100%) !important;
  pointer-events: none;
}

/* ベース設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text);
  background-color: var(--main-background); /* メインサイトの背景色を変更 */
}

/* Journey to die 専用フォント設定 */
.georgia-font {
  font-family: 'Arial', serif !important;
  letter-spacing: 0.03em;
}

/* レイアウト構造 */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 25px;
  text-align: center;
}

/* コンテンツフェードイン用の初期状態 */
header {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section {
  margin: 140px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: 0.07em;

  line-height: 1.4;
  text-align: center;
}

h1 {
  font-size: 2.7rem;
  margin-bottom: 3rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 40px;
  height: 1.5px;
  background-color: #000000;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

h2:hover:after {
  width: 60px;
}

/* Journey to die 特別セール見出しの赤い下線 */
#sale h2:after {
  background-color: #e53e3e;
}

h3 {
  font-size: 1.5rem;
  text-align: center;
}

p {
  margin-bottom: 1.8rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* リンクスタイル - 統一されたホバーアニメーション */
a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 1px;
}

a:hover {
  color: var(--text);
}

/* 統一された下線アニメーション（左から右へのスライドイン） */
a:not(.text-link):not(nav a):after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

a:not(.text-link):not(nav a):hover:after {
  width: 100%;
}

/* ナビゲーションメニュー改善 - よりスタイリッシュに */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
  padding: 0;
}

nav ul li {
  margin: 0 1rem;
  padding: 0.3rem 0;
}

/* ナビゲーションリンク特別スタイル */
nav ul li a {
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: none;
  color: var(--text);
}

/* 下線アニメーション */
nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

/* ボタン代替スタイル（テキストリンク） - ナビゲーションと同じアニメーション */
.text-link {
  display: inline-block;
  margin: 1.2rem 0.7rem;
  text-decoration: none;
  font-weight: 400;
  position: relative;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  transition: all 0.3s ease;
}

.text-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

.text-link:hover {
  transform: none;
  border: none;
  box-shadow: none;
}

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

/* カードコンポーネント */
.card {
  background-color: white;
  border-radius: 8px;
  padding: 2.5rem;
  margin: 1.5rem auto;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  max-width: 700px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-align: center;
}


/* ヘッダーとフッター */
header {
  padding: 4rem 0 2rem;
  text-align: center;
}

footer {
  margin-top: 100px;
  padding: 3rem 0;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.5rem auto; /* 中央揃えのために左右のマージンをautoに設定 */
}

/* アーカイブカードグリッド */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 900px;
}

/* ifコンテンツスタイル */
.if-content {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.if-item {
  background-color: transparent;
  border-radius: 0;
  padding: 1rem 0;
  box-shadow: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.if-item:hover {
  transform: none;
  box-shadow: none;
  border-bottom: 1px solid var(--text);
}

.if-item h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
}

.if-item h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.if-item:hover h3:after {
  width: 100%;
}

.if-item p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.if-item .text-link {
  align-self: center;
  margin: 0;
}

/* ifセクション見出し */
.if-section-title {
  font-size: 1.8rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  text-align: center;
}

.if-section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 30px;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

/* タイムラインスタイル */
.timeline-container {
  position: relative;
  margin: 4rem 0 2rem;
  width: 100%;
}

.timeline-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 0;
  scrollbar-width: none; /* Firefox */
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.timeline-scroll::-webkit-scrollbar {
  display: none; /* Chromeなどで非表示 */
}

.timeline-item {
  flex: 0 0 300px;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  margin-right: 2rem;
  box-shadow: var(--card-shadow);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
}

.timeline-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.timeline-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.timeline-nav-left,
.timeline-nav-right {
  cursor: pointer;
  width: 45px;
  height: 45px;
  background-color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.timeline-nav-left:hover:not(.disabled),
.timeline-nav-right:hover:not(.disabled) {
  background-color: rgba(0,0,0,0.03);
}

.timeline-nav-left.disabled,
.timeline-nav-right.disabled {
  opacity: 0.3;
  cursor: default;
}

.product-layout {
  display: flex;
  flex-direction: column; /* 縦並びにする */
  align-items: center; /* 中央寄せ */
  gap: 40px; /* 画像とテキストの間のスペース */
  margin-top: 50px;
  background-color: #ffffff; /* カードの背景色 */
  border-radius: 8px; /* カードの角を丸くする */
  box-shadow: var(--card-shadow); /* カードの影 */
  padding: 30px; /* カードの内側の余白 */
  max-width: 400px; /* カードの最大幅 */
  margin-left: auto; /* 中央寄せ */
  margin-right: auto; /* 中央寄せ */
}

.product-image-container {
  flex-shrink: 0;
  width: 250px; /* マグカップ画像のサイズに合わせて調整 */
  height: 250px; /* マグカップ画像のサイズに合わせて調整 */
  overflow: hidden;
  border-radius: 8px; /* 角を丸くする */
  transition: transform var(--transition-normal);
  display: flex; /* 画像自体を中央寄せするため */
  justify-content: center; /* 画像自体を中央寄せするため */
  align-items: center; /* 画像自体を中央寄せするため */
}

.product-image-container:hover .product-image {
  transform: scale(1.05);
}

.product-image {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.product-details {
  flex-grow: 1;
  text-align: center; /* テキストを中央寄せ */
  max-width: 500px; /* テキストの最大幅を設定 */
}

/* クローズセクション特別スタイル */
#closing {
  padding: 5rem 0;
}

#closing p {
  font-size: 1.2rem;
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.07em;
}

/* セールセクションの背景色 */
#sale {
    background-color: #f9f9f9;
    padding: 60px 0; /* 上下のパディングを追加して見栄えを調整 */
}

.sale-banner {
  display: flex;
  background-color: white;
  border-radius: 8px; /* MUGnetデザインマニュアルに合わせて8pxに調整 */
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 淡い影に変更 */
  margin: 3rem auto;
  max-width: 700px;
}

.sale-content {
  padding: 2.8rem; /* パディングを増やす */
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 縦方向の中央揃え */
}

.sale-content h3 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 1.2rem;
}

.sale-image {
  width: 40%;
  min-height: 300px; /* 高さを調整 */
  background-color: #f9f9f9; /* 背景色を追加 */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem; /* パディングを追加して余白を確保 */
}

.sale-product-image {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 4px; /* 角を少し丸める */
  filter: grayscale(0.5); /* モノトーン調に近づける */
  object-fit: cover; /* アスペクト比を維持 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 淡い影を追加 */
}

.sale-product-image:hover {
  transform: scale(1.02); /* ホバー時の拡大を控えめに */
  filter: grayscale(0.2); /* ホバー時に少し色を戻す */
}

.sale-description {
  margin-bottom: 2rem;
  text-align: left;
}

.sale-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.sale-period, .sale-price {
  flex: 1;
}

.sale-period h4, .sale-price h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.original-price {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.discount-price {
  font-size: 1.5rem;
  font-weight: 400;
  color: #e53e3e;
  margin-right: 0.5rem;
}

.discount-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  background-color: #e53e3e;
  color: white;
  border-radius: 4px;
}

.special-link {
  margin-top: 1.5rem;
  display: inline-block;
}

.sale-link {
  font-weight: 400;
}

.sale-link:after {
  background-color: #e53e3e;
}

/* モバイル対応 */
@media (max-width: 768px) {
  /* モバイル表示時のカード共通スタイル */
  :root {
    --card-mobile-max-width: 350px;
    --card-mobile-padding: 25px;
    --card-mobile-image-size: 200px;
  }

  html, body {
    font-size: 15px; /* モバイルでの基本フォントサイズを微調整 */
  }

  .container {
    padding: 0 20px;
  }

  section {
    margin: 100px 0;
    text-align: center; /* モバイルでのセクション内テキストを中央揃えに統一 */
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 5px;
  }

  .timeline-item {
    flex: 0 0 250px;
  }

  /* 記念グッズと楽曲配信のカードスタイルを統一 */
  .product-layout,
  .music-layout { /* 楽曲配信セクションも共通化されたスタイルにマージンautoを追加 */
    max-width: var(--card-mobile-max-width); /* 統一された横幅 */
    gap: 30px;
    padding: var(--card-mobile-padding); /* 統一されたパディング */
    margin: 0 auto; /* 中央揃えを追加 */
  }

  .product-image-container,
  .music-image-container {
    width: var(--card-mobile-image-size); /* 統一された画像サイズ */
    height: var(--card-mobile-image-size); /* 統一された画像サイズ */
  }

  .product-details {
    text-align: center; /* 記念グッズのテキストを中央揃えに */
    max-width: 100%; /* 親要素の幅に合わせる */
  }

  #closing p {
    font-size: 1.2rem;
  }

  .if-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .if-item {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
  }

  .if-item p {
    max-width: 100%;
  }

  .if-section-title {
    margin-top: 3rem;
    font-size: 1.8rem;
  }

  .sale-banner {
    flex-direction: column;
    max-width: var(--card-mobile-max-width); /* 統一された横幅 */
    margin: 0 auto; /* 中央揃えを追加 */
    padding: var(--card-mobile-padding); /* 統一されたパディング */
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    background-color: #ffffff;
  }

  .sale-content {
    width: 100%;
    order: 2;
    padding: 0;
    text-align: center; /* 特別セールコンテンツのテキストを中央揃えに */
  }

  .sale-content h3 { /* この行を追加 */
    text-align: center; /* h3タグのテキストを強制的に中央揃えにする */
  }

  .sale-details {
    flex-direction: column;
  }

  .sale-image {
    width: 100%;
    margin-bottom: 0;
    order: 1;
    min-height: var(--card-mobile-image-size); /* 統一された画像サイズ */
    padding: 0;
    box-shadow: none;
  }
  
  .music-layout {
    max-width: 350px; /* 横幅を350pxに統一 */
    gap: 30px;
    padding: 25px;
  }
  
  .music-image-container {
    width: 200px; /* 画像サイズを調整 */
    height: 200px; /* 画像サイズを調整 */
  }
  
  .music-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 4px;
    opacity: 0.8;
  }
  
  .music-image-container:hover .music-image {
    transform: scale(1.05);
    opacity: 1;
  }
  
  .music-details {
    flex-grow: 1;
    text-align: center; /* 楽曲配信のテキストを中央揃えに */
    max-width: 100%; /* 親要素の幅に合わせる */
  }

  /* モバイルでの改行を非表示にする */
  .mobile-hidden-br {
    display: none;
  }

  /* モバイルでのみ表示 */
  .pc-only {
    display: none;
  }

  .mobile-only {
    display: block; /* モバイルでのみ表示 */
  }
}

@media (min-width: 769px) {
  /* PC版での横長カード共通スタイル */
  .product-layout,
  section#music .music-layout { /* music-layoutにIDセレクタを追加し詳細度を上げる */
    display: flex; /* Flexboxを有効化 */
    max-width: 800px; /* 横長カードに適した幅に統一 */
    flex-direction: row; /* 横並びにする */
    justify-content: center; /* 中央寄せ */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 40px; /* 画像とテキストの間のスペース */
    padding: 40px; /* PC版でのパディングを統一 */
    margin-left: auto; /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
  }

  .product-image-container,
  section#music .music-image-container { /* music-image-containerにIDセレクタを追加 */
    width: 250px; /* PC版での画像サイズを統一 */
    height: 250px; /* PC版での画像サイズを統一 */
    flex: 0 0 250px; /* Flex-basisを明示的に指定して幅を固定 */
  }

  .product-details,
  section#music .music-details { /* music-detailsにIDセレクタを追加 */
    flex: 1 1 auto; /* 残りのスペースを占有 */
    text-align: left; /* テキストを左揃えに統一 */
    max-width: none; /* 幅の制限を解除 */
  }

  /* 特別セールセクションの調整 */
  .sale-content {
    /* PC版ではtext-align: left;を明示的に指定 */
    text-align: left;
  }
  
  /* PC版でのカード内のフォントサイズ調整 */
  .product-layout h3,
  section#music .music-layout h3,
  .sale-content h3 {
    font-size: 1.3rem; /* 既存のh3より少し小さく */
  }

  .product-layout p,
  section#music .music-layout p,
  .sale-content p {
    font-size: 0.95rem; /* 既存のpより少し小さく */
  }

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

  /* PCでのみ表示 */
  .pc-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}

/* カードのリンクスタイル統一 */
.card .text-link {
  display: block; /* ブロック要素として扱い、余分な余白をなくす */
  margin: 0; /* すべてのマージンをリセット */
  line-height: 1; /* 行の高さを詰める */
  padding: 0; /* すべてのパディングをリセット */
}

/* タイムラインアイテムのホバー効果調整 */
.timeline-item {
  flex: 0 0 300px;
  margin-right: 2.5rem;
  background-color: var(--background);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 1.8rem;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

/* タイムラインナビゲーションボタンのホバー効果 */
.timeline-nav-left,
.timeline-nav-right {
  cursor: pointer;
  width: 45px;
  height: 45px;
  background-color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.timeline-nav-left:hover:not(.disabled),
.timeline-nav-right:hover:not(.disabled) {
  background-color: rgba(0,0,0,0.03);
}

.timeline-nav-left.disabled,
.timeline-nav-right.disabled {
  opacity: 0.3;
  cursor: default;
}

/* 商品画像のホバー効果調整 */
.product-image-container {
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-image-container:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  transition: all 0.3s ease;
}

/* 楽曲配信セクションスタイル */
.music-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  background-color: #ffffff; /* カードの背景色 */
  border-radius: 8px; /* カードの角を丸くする */
  box-shadow: var(--card-shadow); /* カードの影 */
  padding: 30px; /* カードの内側の余白 */
  max-width: 400px; /* カードの最大幅 */
  margin-left: auto; /* 中央寄せ */
  margin-right: auto; /* 中央寄せ */
}

.music-image-container {
  flex-shrink: 0;
  width: 250px; /* 必要に応じて調整 */
  height: 250px; /* 必要に応じて調整 */
  overflow: hidden;
  border-radius: 8px; /* 角を丸くする */
  transition: transform var(--transition-normal);
  display: flex; /* Flexboxを有効にする */
  justify-content: center; /* 水平方向の中央寄せ */
  align-items: center; /* 垂直方向の中央寄せ */
}

.music-image-container:hover {
  transform: translateY(-5px);
}

.music-image {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 4px;
  opacity: 0.8;
}

.music-image-container:hover .music-image {
  transform: scale(1.05);
  opacity: 1;
}

.music-details {
  flex-grow: 1;
  text-align: left;
}

/* PC版でのみ表示 */
/* .pc-only { */ /* グローバル定義を削除 */
/*   display: block; */
/* } */

/* モバイル版でのみ表示 */
/* .mobile-only { */ /* グローバル定義を削除 */
/*   display: none; */
/* } */

.read-more-content {
    display: none;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

.story-details {
    position: relative;
}

.story-details .collapsible-content {
    max-height: 150px; /* 閉じているときに表示される高さ */
    opacity: 0.3; /* 初期状態では文字を薄く */
    overflow: hidden; /* はみ出したコンテンツを隠す */
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%); /* 下部をフェードアウト */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.story-details[open] .collapsible-content {
    max-height: 1000px; /* 開いた時に十分な高さを設定（コンテンツの最大高さを超える値） */
    opacity: 1; /* 開いた時に文字を濃く */
    -webkit-mask-image: none; /* 開いた時にマスクを解除 */
    mask-image: none;
}

.note-text {
    font-size: 0.8em;
    color: #888;
    margin: 0;
    line-height: 1;
    padding: 0;
    margin-top: +0.6em;
}
