.mv {
  text-align: center;
  background-image: url("../images/internship-host-companies/mv-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.mv .inner {
  background-color: rgba(0,0,0,.3);
  padding: 120px 0;
}
.mv .inner h1 {
  color: #fff;
  font-size: 32px;
  line-height: 1;
  margin: 15px auto 0;
  font-weight: bold;
}
.mv .inner p {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

@media (max-width: 580px) {
  .mv .inner p {
    font-size: 20px;
  }
}
.sec_01 {
  text-align: center;
  margin: 100px auto 0;
  max-width: 1100px;
  width: 95%;
}
.sec_02 {
  max-width: 1100px;
  margin: 120px auto 0;
  text-align: center;
  width: 95%;
}
.video-gallery {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 50px;
}
.video-card {
  text-align: left;
  flex: 1;
}
.video-thumbnail {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 260 / 470;
  cursor: pointer;
  margin-bottom: 25px;
}
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  filter: grayscale(100%);
  opacity: 0.9;
  border-radius: 10px;
}
.video-thumbnail::after {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease-in-out;
}
.video-thumbnail:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
}
.company-info,
.company-url {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sec_02 .company-info {
  padding-left: 6px;
}
.sec_02 .company-comment {
  padding-left: 6px;
  padding-right: 10px;
}
.company-info .icon,
.company-url .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.company-info p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex: 1;
}
.company-info .name {
  font-weight: bold;
  font-size: 16px;
}
.company-info .industry {
  font-size: 12px;
  color: #fff;
  background-color: #9F9F9F;
  padding: 2px 18px;
  white-space: nowrap;
}
.company-comment {
  margin-top: 10px;
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 14px;
}
.company-url a {
  color: #337ab7;
  text-decoration: none;
}
.company-url a:hover {
  text-decoration: underline;
}
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer; 
}
.video-modal-overlay.active {
  display: flex; 
}
.video-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default; 
}
.video-modal-content video {
  display: block;
  width: 100%;
  height: 100%;
}

.sec_03 {
  max-width: 1100px;
  width: 95%;
  margin: 90px auto 40px;
  padding-left: 35px;
  padding-right: 35px;
  box-sizing: border-box;
}
.internship-gallery {
  display: grid;
  /* grid-template-columns: 380px 1fr 380px; */
    grid-template-columns: 440px 120px 440px;
  align-items: start;
  row-gap: 60px;
}
.internship-card {
  display: flex;
  flex-direction: column;
}
.internship-card:nth-child(odd) {
  grid-column: 1;
  align-items: flex-end;
}
.internship-card:nth-child(even) {
  grid-column: 3;
  align-items: flex-start;
}
.internship-card .slider-container,
.internship-card .company-details {
  width: 440px;
}
.sec_03 .company-details {
  margin-top: 50px;
}
.sec_03 .company-url {
  margin-top: 6px;
}
.splide {
  padding-bottom: 30px;
  overflow: visible;
}
.splide__track {
  border-radius: 10px;
  overflow: hidden;
}
.splide__slide {
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
}
.splide__slide img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.splide__arrows {
  position: absolute;
  top: calc(50% - 15px);
  transform: translateY(-50%);
  width: calc(100% + 70px);
  left: -35px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}
.splide__arrow {
  width: 25px;
  height: 25px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  padding: 0;
}
.splide__arrow svg { display: none !important; }
.splide__arrow--prev { background-image: url('../images/internship-host-companies/arrow-left.svg'); }
.splide__arrow--next { background-image: url('../images/internship-host-companies/arrow-right.svg'); }
.splide__pagination { bottom: 5px; gap: 8px; }
.splide__pagination__page {
  display: inline-block;
  width: 8px;
  height: 8px;
  padding: 0 !important;
  border: none;
  border-radius: 50%;
  background: #ccc;
  line-height: 0;
  box-sizing: content-box;
  aspect-ratio: 1 / 1;
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
  transition: background-color .2s;
}
.splide__pagination__page.is-active {
  background: #989898;
  transform: none !important;
}
.splide--caption {
  margin-top: 15px;
  padding-bottom: 0;
}
.splide--caption .splide__slide { height: auto; }
.splide--caption .description {
  font-size: 14px; line-height: 1.7; margin: 0;
  overflow-wrap: anywhere;
}
.splide--caption .splide__arrows,
.splide--caption .splide__pagination {
  display: none !important;
}

@media (max-width: 800px) {
  .sec_02 .video-gallery {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }
  .sec_02 .video-card {
    flex: 0 1 auto !important;
    max-width: 400px;
    width: 100%;
  }
  .sec_02 .video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 260 / 470;
  }
}
@media (max-width: 580px) {
  .sec_02 {
    margin: 60px auto 0;
    width: 95%;
  }
  .sec_02 .video-card {
    max-width: 100% !important;
  }
  .sec_02 .video-thumbnail {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1030px) {
  .internship-card {
    display: block;
  }
  .internship-card .slider-container,
  .internship-card .description,
  .internship-card .company-details {
    width: auto;
  }
  .internship-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 40px;
  }
  .internship-card,
  .internship-card:nth-child(odd),
  .internship-card:nth-child(even) {
    grid-column: auto;
    max-width: 400px;
    width: 100%;
  }
  .splide__arrows {
    width: calc(100% - 20px);
    left: 10px;
  }
}
@media (max-width: 800px) {
  .internship-gallery {
    grid-template-columns: 1fr;
    justify-items: center; 
  }
  .sec_03 .company-details {
    margin-top: 20px;
  }
}
@media (max-width: 580px) {
  .mv .inner {
    padding: 50px 0;
  }
  .mv .inner h1 {
    font-size: 22px;
  }
  .sec_01 {
    margin: 25px auto;
  }
  .sec_02 {
    margin: 60px auto;
  }
  .sec_03 {
    padding-left: 0;
    padding-right: 0;
  }
  .video-card {
    max-width: 100%; 
  }
  .internship-gallery {
    padding: 0 15px;
  }
  .internship-card,
  .internship-card:nth-child(odd),
  .internship-card:nth-child(even) {
    max-width: none;
  }
}



/* ===================================
   Splideスライダー専用モーダルのCSS
   =================================== */

/* 動画サムネイルのスタイル */
.splide-video-thumbnail {
  position: relative;
  cursor: pointer;
}

.splide-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* 再生ボタンアイコン */
.splide-video-thumbnail::after {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease-in-out;
  pointer-events: none; /* アイコンがクリックイベントを邪魔しないように */
}

.splide-video-thumbnail:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
}

/* スライダー内のサムネイル用の調整 */
.splide__slide .splide-video-thumbnail {
  width: 100%;
  height: 100%;
}

/* 動画モーダルのスタイル */
.splide-video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* 初期状態は非表示 */
  justify-content: center;
  align-items: center;
  z-index: 2000; /* 他の要素より手前に表示 */
  cursor: pointer; 
}

/* モーダル表示時のスタイル */
.splide-video-modal-overlay.is-splide-video-active {
  display: flex; 
}

.splide-video-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default; 
}

.splide-video-modal-content video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 90vh;
}