/* コンサート情報セクション */
.concert-section {
  padding: 90px 0 40px;
  background-color: var(--color-light-blue);
  position: relative;
  overflow-x: hidden; /* 左側のオーバーフローを隠す */
}

.container {
  margin: 0 auto;
  padding: 0 20px; /* 左右のパディングを追加 */
  position: relative;
  width: 85%;
  max-width: 1440px;
}

/* 横並びレイアウト */
.concert-layout {
  display: grid;
  grid-template-columns: 220px 1fr; /* ヘッダー領域を少し広げる */
  grid-gap: 60px; /* ギャップを維持 */
  position: relative;
  margin-bottom: 40px;
  /* overflow: hidden を削除して右側の表示を許可 */
}

/* 左側：ヘッダー領域 */

.concert-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.section-header {
  margin-bottom: 40px;
}

/* ナビゲーションボタン */
.concert-slider__nav {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.nav-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #B2C1D6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-dark-blue);
  transition: all 0.3s ease;
  position: relative; /* 位置指定を追加 */
  z-index: 10; /* 最上位に表示 */
}

.nav-button:hover {
  background: #002C6C;
  color: #fff;
  border-color: #002C6C;
}

.nav-button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-button.disabled:hover {
  background: #fff;
  color: #B2C1D6;
  border-color: #B2C1D6;
}

/* 右側：スライダー領域 */
.concert-slider {
  grid-column: 2;
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: visible; /* 完全に可視に変更 */
  mask-image: linear-gradient(to right, black 85%, transparent 100%); /* マスクで右側をフェードアウト */
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.concert-slider.no-concerts {
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coming-soon-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 5px;
  overflow: hidden; /* はみ出した部分を隠す */
}

.coming-soon-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.concert-slider__wrapper {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  padding-right: 80px; /* 右側の余白を増やして2.5枚目がしっかり見えるように */
  position: relative; /* 位置指定を追加 */
}

/* コンサートカード */
.concert-card {
  flex: 0 0 auto; /* 固定サイズに変更（JS側で調整） */
  overflow: hidden;
  background-color: transparent;
  transition: transform 0.3s ease;
  border-bottom: 1px solid #B2C1D6;
  padding-bottom: 20px;
  max-width: none; /* 最大幅の制限を解除（JS側で調整） */
  position: relative; /* 位置指定を追加 */
}

.concert-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  max-height: 240px;
}

.concert-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 5px;
}

.concert-card:hover .concert-card__image img {
  transform: scale(1.05);
}

.concert-card__content {
  padding: 20px 0;
  position: relative;
}

.concert-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  color: var(--color-dark-blue);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 80px;
  padding-left: 3px;
}

.concert-card__date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  padding-left: 3px;
}

/* チケット購入ボタン */
.ticket-button-container {
  margin-top: 60px;
  display: flex; /* 必須：flexboxを有効化 */
  justify-content: center;
  width: 100%; /* 幅を100%に設定 */
}

.ticket-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 50%; /* フル幅に変更 */
  padding: 0 30px;
  height: 120px; /* 高さを固定 */
  background-color: var(--color-dark-blue);
  background-image: url('../../img/top/note-background.png'); /* 音符背景画像を適用 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 5px; 
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ticket-button:hover {
  background-color: #001e4a;
}

.ticket-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.ticket-label {
  font-size: 10px;
  opacity: 0.8;
  margin-right: 20px;
}

.ticket-text {
  font-size: 22px;
  font-weight: 700;
}

.ticket-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EF5F0C; /* オレンジ色に変更 */
  border-radius: 50%;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.ticket-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #EF5F0C;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-light-blue);
  transition: all 0.3s ease;
  position: relative; /* 位置指定を追加 */
  z-index: 10; /* 最上位に表示 */
}


.ticket-button:hover .ticket-arrow {
  transform: translateX(5px);
}

.concert-card:hover .border-circle .animated {
  stroke-dashoffset: 0; /* ホバー時に完全表示 */
}

.ticket-arrow svg {
  width: 18px;  /* SVGの幅を小さく設定 */
  height: 18px; /* SVGの高さを小さく設定 */
}


@media (max-width: 1024px) {
  .concert-layout {
    grid-template-columns: 180px 1fr; /* タブレットでヘッダー領域を少し狭める */
    grid-gap: 40px; /* ギャップも少し狭める */
  }
  
  .section-title {
    font-size: 28px; /* タイトルフォントサイズを調整 */
  }

  .ticket-button {
    height: 80px;
    padding: 0 15px;
  }

  .ticket-text {
    font-size: 14px;
  }

  .ticket-arrow {
    width: 20px;
    height: 20px;
  }

}

/* モバイル用ナビゲーションをデフォルトで非表示に */
.mobile-slider-nav {
  display: none; /* デフォルトでは非表示に */
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 20;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.mobile-slider-nav .nav-button {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #B2C1D6;
  background-color: #fff; /* 白背景に変更 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-dark-blue);
  transition: all 0.3s ease;
}

.mobile-slider-nav .nav-button:hover {
  background: #002C6C;
  color: #fff;
  border-color: #002C6C;
}



/* コンサートカードをaタグにしたためのスタイル調整 */
a.concert-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.3s ease;
}

a.concert-card:hover .concert-card__image img {
  transform: scale(1.1);
}

a.concert-card:hover .border-circle .animated {
  stroke-dashoffset: 0; /* ホバー時に完全表示 */
}

/* アニメーション付き円形ボーダー用（既存のスタイルがある場合は不要） */
.border-circle .default {
  stroke: #B2C1D6;
  fill: none;
}

.border-circle .animated {
  stroke: #002C6C;
  fill: none;
  stroke-dasharray: 125;
  stroke-dashoffset: 125;
  transition: stroke-dashoffset 0.3s ease;
}



/* モバイル対応（768px以下） */
@media (max-width: 768px) {
  .concert-section {
    padding: 40px 0;
  }
  
  .container {
    width: 90%;
    padding: 0 15px;
  }
  
  /* グリッドからフレックスに変更して縦並びに */
  .concert-layout {
    display: flex;
    flex-direction: column;
    grid-gap: 0;
    margin-bottom: 30px;
  }
  
  /* ヘッダー領域を中央揃えに */
  .concert-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .section-header {
    margin-bottom: 20px;
  }
  
  /* ナビゲーションボタンをスライダーの左右に配置 */
  .concert-slider__nav {
    display: none; /* PC用ナビをいったん非表示 */
  }
  
  /* モバイル用のナビゲーション追加 - ここが修正箇所 */
  .mobile-slider-nav {
    position: absolute;
    width: 110%; /* 幅を広げて写真の端からはみ出すようにする */
    top: 60%;
    left: -5%; /* 左側にはみ出す */
    transform: translateY(-50%);
    z-index: 50; /* z-indexを上げて最前面に表示 */
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none; /* スライダー全体にはイベントを発生させない */
  }
  
  .mobile-slider-nav .nav-button {
    pointer-events: auto; /* ボタン自体はクリック可能に */
    width: 36px;
    height: 36px;
    border: 2px solid #fff; /* 白い枠線を太く */
    z-index: 55; /* 個別のボタンにもz-indexを設定 */
  }
  
  /* スライダー領域の調整 */
  .concert-slider {
    width: 100%;
    overflow: hidden;
    grid-column: auto;
  }

  /* マスク効果を調整 */
  .concert-slider {
    mask-image: none;
    -webkit-mask-image: none;
  }

  /* レイアウト調整 */
  .concert-layout {
    grid-template-columns: 1fr; /* グリッドを1列に */
    grid-gap: 0;
  }

  .concert-slider__wrapper {
    width: 100% !important; /* スライダーラッパーの幅を100%に固定 */
    padding-right: 0; /* パディングを削除 */
  }
  
  /* カードの幅を調整（1枚表示） */
  .concert-card {
    flex: 0 0 100% !important; /* カードの幅を100%に強制 */
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 0;
  }

  .concert-card__image {
    max-height: 100%;
  }
  
  
  .coming-soon-image {
    width: 100%;
  }
  
  /* チケット購入ボタンの調整 */
  .ticket-button {
    width: 100%;
    padding: 15px 20px;
  }
  
  .ticket-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .ticket-label {
    margin-right: 0;
  }
  
  /* チケット購入テキストを改行 */
  .ticket-text {
    display: flex;
    flex-direction: column;
    font-size: 18px;
  }
  
  .ticket-text::after {
    content: "こちらから";
    display: block;
  }
  
  .ticket-text > span:last-child {
    display: none; /* 「こちらから」を非表示（CSSで追加するため） */
  }

  .ticket-arrow {
    width: 30px;
    height: 30px;
  }

  .ticket-button {
    height: 100px;
    padding: 0 15px;
  }
}

/* 円環状スライダー用追加スタイル */
.concert-slider__wrapper {
  transition: transform 0.4s ease;
}

/* パフォーマンス向上のためのGPUアクセラレーション設定 */
.concert-slider {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  
  -webkit-perspective: 1000;
  -moz-perspective: 1000;
  -ms-perspective: 1000;
  perspective: 1000;
}

.concert-slider__wrapper {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}



/* デスクトップでの画像ズーム効果 - 画像自体をズーム */
@media (max-width: 1200px) {
  .coming-soon-image {
    transform: scale(1.05);
  }
}

@media (max-width: 992px) {
  .coming-soon-image {
    transform: scale(1.1);
  }
}

/* モバイルでの正方形表示 */
@media (max-width: 768px) {
  .coming-soon-container {
    max-width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
  }
  
  .coming-soon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.2); /* 中央部分にズームイン */
  }
}