/**
 * ソニーミュージック財団 メインビジュアルスタイル
 */

/* メインビジュアル全体のコンテナ */
.main-visual {
  position: relative;
  width: 100%;
  display: flex;
  background-color: #fff;
  margin: 0 auto;
  overflow: hidden;
}

/* 左側エリア（音符とロゴ） */
.main-visual__left {
  width: 35%;
  /* 左側の高さを右側に合わせる */
  height: auto;
  align-self: stretch; /* 親要素の高さに合わせる */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
}

/* 音符エリア */
.main-visual__notes-container {
  position: relative;
  height: 70%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-visual__notes-container .fivemarks {
  width: 250%; /* 画像をさらに拡大 */
  max-width: none;
  position: absolute;
  transform: translateY(25%) translateX(-10%); /* 上下左右位置の微調整 */
  left: 0; /* 左から配置開始 */
}

/* ロゴエリア */
.main-visual__logo {
  margin-bottom: 3rem;
  justify-content: left;
  display: flex;
  padding-left: 40px;
}

.main-visual__logo img {
  max-width: 80%;
  height: auto;
}

/* 右側エリア（スライダー部分） */
.main-visual__right {
  width: 65%;
  /* 明示的なパディング比率テクニックで3:2を強制 */
  height: 0;
  padding-bottom: calc(65% * 2/3); /* 幅の65%に対して、高さは2/3倍 */
  position: relative;
  overflow: hidden;
}

/* スライド全体のコンテナ */
.main-visual__slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 個別スライド */
.main-visual__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1; /* 基本的なz-index */
  pointer-events: none; /* 非アクティブなスライドはクリック不可 */
}

.main-visual__slide.active {
  opacity: 1;
  z-index: 2; /* アクティブなスライドは前面に */
  pointer-events: auto; /* アクティブなスライドはクリック可能 */
}

.main-visual__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の比率を保ちつつ、指定したコンテナを埋める */
}

/* ナビゲーション - デスクトップ用 */
.main-visual__nav--desktop {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

/* モバイル用ナビゲーション - 初期状態は非表示 */
.main-visual__nav--mobile {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

/* シェブロンナビゲーションボタン */
.main-visual__nav-triangle {
  width: 2.5rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  margin: 0.7rem 0;
}

/* 上シェブロン */
.main-visual__nav-up::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.9);
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -25%) rotate(45deg);
}

/* 下シェブロン */
.main-visual__nav-down::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -75%) rotate(-45deg);
}


.main-visual__nav--mobile .main-visual__nav-up::before {
  border-left: 1px solid rgba(0, 0, 0, 0.9); /* 黒色に変更 */
  border-top: 1px solid rgba(0, 0, 0, 0.9); /* 黒色に変更 */
  transform: translate(-25%, -50%) rotate(-45deg); /* 左向きに変更 */
}

.main-visual__nav--mobile .main-visual__nav-down::before {
  border-left: 1px solid rgba(0, 0, 0, 0.9); /* 黒色に変更 */
  border-bottom: 1px solid rgba(0, 0, 0, 0.9); /* 黒色に変更 */
  transform: translate(-75%, -50%) rotate(-135deg); /* 右向きに変更 */
}

.main-visual__nav--mobile .main-visual__current {
  color: #000; /* 黒色に変更 */
}

/* カウンター */
.main-visual__counter {
  margin: 0.5rem 0;
  text-align: center;
}

.main-visual__current {
  font-family: "BIZ UDPGothic", sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

/* プログレスバー */
.main-visual__progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: transparent;
  z-index: 900;
}

.main-visual__progress-bar {
  height: 100%;
  width: 0;
  background-color: #002C6C; /* ブランドカラー */
  transition: width 0.1s linear;
}

/**
 * ソニーミュージック財団 メインビジュアル レスポンシブスタイル
 */

/* タブレット以下のレスポンシブ対応 (768px以下) */
@media screen and (max-width: 768px) {
  /* メインビジュアル全体のコンテナ */
  .main-visual {
    flex-direction: column; /* 縦方向のレイアウトに変更 */
    height: 80vh; /* 高さを画面の80%に設定 */
    max-height: none; /* アスペクト比の制限を解除 */
    margin-top: 56px;
    position: relative;
  }

  /* 右側エリア（スライダー部分）を上に配置 */
  .main-visual__right {
    width: 100%;
    padding-bottom: calc(100% * 2/3); /* 幅の100%に対して、高さは2/3倍 */
    order: 1;
  }

  /* 左側エリア（音符とロゴ）を下に配置 */
  .main-visual__left {
    width: 100%; /* 幅を100%に変更 */
    height: 45%; /* 高さを40%に設定 */
    order: 2; /* 表示順序を変更 - 後に表示 */
    padding: 1rem 0;
    padding-top: 3.5rem;
  }

  .main-visual__nav--mobile {
    display: flex;
    position: absolute; /* 絶対位置に変更 */
    top: calc((100vw * 2) / 3); /* 右側エリアの高さ(vwに対する3:2の計算) */
    left: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 5; /* 重なり順を調整 */
  }

  /* 音符エリア */
  .main-visual__notes-container {
    height: 60%;
    overflow: visible; /* オーバーフローを許可 */
    position: relative;
  }

  .main-visual__notes-container .fivemarks {
    position: absolute;
    width: 200%; /* ビューポート幅に対する相対値 */
    max-width: none;
    left: 100%;
    top: 60%;
    transform: translate(-50%, -40%); /* 中央から調整 */
  }
  
  /* 上シェブロン */
  .main-visual__nav-up::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -25%) rotate(45deg);
  }
  
  /* 下シェブロン */
  .main-visual__nav-down::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -75%) rotate(-45deg);
  }

  /* ロゴエリア */
  .main-visual__logo {
    margin-bottom: 0; /* 下余白を調整 */
    z-index: 5;
  }

  .main-visual__logo img {
    max-width: 80%; /* ロゴサイズを調整 */
  }

  /* デスクトップ用ナビゲーションを非表示 */
  .main-visual__nav--desktop {
    display: none;
  }
  
  /* モバイル用ナビゲーションを表示 */
  .main-visual__nav--mobile {
    display: flex;
  }
  
  /* モバイル用ナビゲーションを調整 */
  .main-visual__nav--mobile .main-visual__nav-triangle {
    width: 3rem; /* 幅を調整 */
    height: 1.7rem; /* 高さを調整 */
  }
  
  .main-visual__nav--mobile .main-visual__current {
    font-size: 0.7rem; /* フォントサイズを調整 */
  }

  /* プログレスバー */
  .main-visual__progress-container {
    height: 4px; /* 高さを調整 */
    bottom: 0;
  }
}



@media screen and (max-width: 450px) {
  .main-visual{
    margin-bottom: -30px;
  }
  
  /* スマホでもアスペクト比3:2を維持 */
  .main-visual__right {
    height: auto; /* 高さをautoに設定し、アスペクト比から自動計算 */
    aspect-ratio: 3/2;
  }
}








/* SNS固定アイコンスタイル */
#fixed-sns {
  position: fixed;
  right: 20px;
  top: 80%;
  transform: translateY(-50%);
  z-index: 100;
  transition: all 0.5s ease; 
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px) translateY(-50%);
}

#fixed-sns.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(-50%); /* 表示時は元の位置に戻る */
}

/* 各アイコンに遅延をつけて連続的に表示させる */
#fixed-sns.visible .sns-icon:nth-child(1) {
  transition-delay: 0s;
}
#fixed-sns.visible .sns-icon:nth-child(2) {
  transition-delay: 0.1s;
}
#fixed-sns.visible .sns-icon:nth-child(3) {
  transition-delay: 0.2s;
}
#fixed-sns.visible .sns-icon:nth-child(4) {
  transition-delay: 0.3s;
}

.sns-container {
  display: flex;
  flex-direction: column;
  gap: 15px;

}

.sns-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sns-icon img {
  width: 36px;
  height: 36px;
}

/* 2枚目のスライドにのみカーソルポインタを追加 */
.main-visual__slide[data-slide="2"] {
  cursor: pointer;
}