/* Past Events Page Styles */

section.past-mv-content {
  height: auto;
  width: 100%;
  object-fit: cover;
  margin-top: -56px;
}

.past-mv-content_wrap {
  position: relative;
  max-height: 400px;
  overflow: hidden;
}
.past-mv-content_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-mv-content_wrap > .past-mv-content_ab img {
  position: absolute;
  width: 100%;
  height: 40px;
  top: 50%;
  left: 0;
  text-align: center;
  object-fit: contain;
}

/* Past Events Banner */
.past-events-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../img/main/banner-bg.jpg");
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 96px;
  position: relative;
}

.past-events-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/main/banner-bg.jpg") center/cover;
  filter: blur(8px);
  opacity: 0.4;
  z-index: 1;
}

.past-events-banner-content {
  position: relative;
  z-index: 2;
}

.past-events-title {
  color: #fff;
  font-size: 64px;
  font-weight: bold;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section Titles */
.section-title {
  height: 28px;
}

.section-title img {
  width: auto;
  height: 28px;
  object-fit: contain;
}

.cool-japan-friends-section > .section-title img {
  width: auto;
  height: 38px;
  object-fit: contain;
}

section.highlight-content-past {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 96px;
}

.main-column-past-highlight {
  width: 100%;
  padding: 0 32px;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.highlight-videobox-wrapper {
  display: flex;
  height: auto;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--Background-Navy, #17171c);
  box-shadow: 0px 0px 12px 2px rgba(255, 255, 255, 0.3);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Highlight Movie Section */

/* コンテナー */
.container {
  max-width: 900px;
  margin: 0 auto;
}

/* スライダーのwrapper */
.infinite-slider .swiper-wrapper {
  transition-timing-function: linear;
}

/* スライド */
.infinite-slider .swiper-slide {
  height: 320px !important; /* 高さを指定 */
  width: auto !important;
}

/* スライド内の画像 */
.infinite-slider .swiper-slide img {
  width: auto;
  height: 100%;
}

.session-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  background: rgba(255, 107, 53, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  max-width: 250px;
  line-height: 1.3;
  color: #fff;
  font-weight: 500;
}

.video-title {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  background: rgba(255, 107, 53, 0.9);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.speaker-name {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(255, 107, 53, 0.8);
  padding: 8px 16px;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

/* Archives Section */
.archives-section {
  margin-bottom: 96px;
  margin-left: auto;
  margin-right: auto;
}

.archives-section h2 {
  max-width: 1280px;
  display: inline-block;
  padding: 0 40px;
  margin-bottom: 24px;
}

.archives-slideshow {
  position: relative;
}

.archives-content {
  margin: 0 auto;
  overflow: hidden;
}

.archives-container {
  overflow: hidden;
  margin-bottom: 20px;
}

.archives-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: archivesScroll 30s linear infinite;
  /* スクロールバーを非表示にする設定 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Webkit系ブラウザ（Chrome, Safari, Edge）のスクロールバーを非表示 */
.archives-track::-webkit-scrollbar {
  display: none;
}

.archive-item {
  flex: 0 0 320px;
  position: relative;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--Background-Navy, #17171c);
  width: 100%;
  box-shadow: 0px 0px 12px 2px rgba(255, 255, 255, 0.3);
}

.archive-video-wrapper {
  position: relative;
  width: 440px;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
}

.archive-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.archives-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.archives-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
}
.archives-links .highlight-button {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin: 0;
  width: 300px;
}

/* Photo Gallery Section */
.photo-gallery-section {
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}

.photo-gallery-section h2 {
  max-width: 1280px;
  display: inline-block;
  padding: 0 40px;
  margin-bottom: 40px;
}

.gallery-slideshow {
  position: relative;
}

.gallery-content {
  margin: 0 auto;
}

.gallery-container {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 20px;
  /* スクロールバーを非表示にする設定 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  /* ドラッグ操作のための設定 */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* Safari対応 */
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Webkit系ブラウザ（Chrome, Safari, Edge）のスクロールバーを非表示 */
.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 40px;
  /* Safari対応 */
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Safari専用のスタイル */

_::-webkit-full-page-media,
_:future,
:root .gallery-track {
  width: 100%;
  min-width: 100%;
  /* Safariでのスクロールバー非表示 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Safariでのスクロールバー非表示 */
_::-webkit-full-page-media,
_:future,
:root .gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 460px;
  height: 340px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Panel Session Section */
.panel-session-section {
  margin-bottom: 96px;
  margin-left: auto;
  margin-right: auto;
}

.panel-session-section h2 {
  max-width: 1280px;
  display: inline-block;
  padding: 0 40px;
  margin-bottom: 40px;
}

[class^="panel-container"] {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 20px;
  scrollbar-width: none;
  padding: 0 40px;
  /* Safari対応 */
  -webkit-overflow-scrolling: touch;
  position: relative;
}

_::-webkit-full-page-media,
_:future,
:root [class^="panel-container"] {
  padding: 0 0 0 20px;
  /* Safariでのスクロールバー非表示 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Safariでのスクロールバー非表示 */
_::-webkit-full-page-media,
_:future,
:root [class^="panel-container"]::-webkit-scrollbar {
  display: none;
}

.panel-content {
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.panel-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto 40px;
}

.panel-session-title {
  max-width: 1280px;
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  padding: 0 40px;
}

[class^="panel-images-grid"] {
  display: flex;
  gap: 20px;
  width: max-content;
  min-width: max-content;
  padding: 0 16px;
  margin: 0 -40px; /* 親のpaddingを相殺して全幅に */
  overflow-x: auto;
  overflow-y: hidden;
  /* スクロールバーを非表示にする設定 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  /* ドラッグ操作のための設定 */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* Safari対応 */
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Safari専用のスタイル */
_::-webkit-full-page-media,
_:future,
:root [class^="panel-images-grid"] {
  width: 100%;
  min-width: 100%;
  margin: 0 0px;
  /* Safariでのスクロールバー非表示 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Safariでのスクロールバー非表示 */
_::-webkit-full-page-media,
_:future,
:root [class^="panel-images-grid"]::-webkit-scrollbar {
  display: none;
}

/* Webkit系ブラウザ（Chrome, Safari, Edge）のスクロールバーを非表示 */
.panel-images-grid::-webkit-scrollbar {
  display: none;
}

.panel-image-item {
  flex: 0 0 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.panel-image-item:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
}

.panel-images-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

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

/* Dots Navigation */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8c8c8c;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background: #ff9b02;
}

/* Cool Japan Friends Section */
.cool-japan-friends-section {
  margin-bottom: 96px;
  margin-left: auto;
  margin-right: auto;
}

.cool-japan-friends-section h2 {
  max-width: 1280px;
  display: inline-block;
  padding: 0 40px;
  margin-bottom: 40px;
}

.friends-grid {
  display: flex;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px auto 0;
}

.friend-item {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  width: 306px;
}
.friend-info {
  flex: 1;
}

.friend-image {
  width: 120px;
  height: 120px;
  border-radius: 2000px;
  overflow: hidden;
}

.friend-image img {
  width: 105%;
  height: 105%;
  object-fit: cover;
}

.friend-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.friend-company {
  color: #8c8c8c;
  line-height: 1.4;
}

/* Responsive Design */
.friends-grid {
  column-gap: 40px;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 32px;
  max-width: 1280px;
  padding: 0px 40px;
}

.panel-item img {
  width: 150px;
  height: 90px;
}

@media (min-width: 797px) {
  .pc {
    display: none;
  }
  .sp {
    display: flex;
  }
}

@media (max-width: 768px) {
  .past-mv-content_wrap img {
    height: 480px;
  }
  .past-mv-content_wrap {
    height: 480px;
  }
  .past-mv-content_wrap > .past-mv-content_ab img {
    height: 34px;
  }
  .main-column-past-highlight {
    padding: 0 16px;
  }
  .archives-section h2 {
    display: inline-block;
    padding: 0 16px;
    margin-bottom: 24px;
  }
  .archives-track {
    display: flex;
    gap: 24px;
    width: max-content;
    flex-direction: column;
    animation: none;
    margin: 0 auto;
  }
  .archive-video-wrapper {
    width: 343px;
    height: 210px;
    border-radius: 8px;
    overflow: hidden;
  }

  .archive-item {
    position: relative;
    padding: 16px;
    border-radius: 8px;
    border: none;
    background: none;
    width: 100%;
    box-shadow: none;
    padding: 0;
    flex: inherit;
  }
  .archives-links {
    flex-direction: column;
  }

  .photo-gallery-section h2 {
    max-width: 100%;
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .gallery-container {
    padding: 0 16px;
  }

  .gallery-track {
    padding: 0;
    gap: 16px;
  }

  .gallery-item {
    flex: 0 0 270px;
    height: 200px;
  }

  .panel-row {
    margin: 0 auto 16px;
  }
  .panel-session-section h2 {
    max-width: 100%;
    padding: 0 16px;
    margin-bottom: 24px;
  }
  .panel-session-section h2 > img {
    height: 25px;
  }

  .panel-session-title {
    max-width: 100%;
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    padding: 0 16px;
  }

  .panel-images-grid {
    padding: 0 16px;
    gap: 16px;
    margin: 0 -16px; /* 親のpaddingを相殺して全幅に */
  }

  .panel-image-item {
    flex: 0 0 210px;
    height: auto;
  }

  .panel-images-grid img {
    width: 100%;
    height: 100%;
  }
  .section-title img {
    height: 28px;
  }
  .cool-japan-friends-section > .section-title img {
    height: 70px;
  }
  .cool-japan-friends-section > .section-title {
    height: 70px;
  }
  .cool-japan-friends-section {
    padding: 0px 16px;
  }
  .friend-item {
    max-width: 375px;
    width: 100%;
  }
  .cool-japan-friends-section h2 {
    max-width: 100%;
    padding: 0 16px;
    margin-bottom: 24px;
  }
}

.yt {
  position: relative;
}
.yt_play {
  position: absolute;
}
.yt_play:hover {
  cursor: pointer;
}
.yt_play::before {
  /* YouTubeアイコン */
  position: absolute;
  background: url(../img/past/yt_icon_mono_light.png);
  content: "";
  background-size: 100%;
  width: 70px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  transition: 0.5s;
}
.yt_play:hover::before {
  /* YouTubeアイコン */
  cursor: pointer;
  background-image: url(../img/past/yt_icon_rgb.png);
}
