/* Wrap and main video styles */
#wrap {
  padding: 40px;
}
.case-main {
  position: relative;
  width: 100%;
  padding-top: 46.25%; /* 16:9のアスペクト比（9/16 = 0.5625） */
  overflow: hidden;
}

.case-main video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-main-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video loading indicator */
.video-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.5s ease-out;
}

.video-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-background-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.3;
}

.loading-logo {
  width: 200px;
  height: auto;
}

.loading-spinner {
  position: relative;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Info label */
.info-label {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 60px;
  height: auto;
}

.info-label img {
  width: 100%;
  height: auto;
  display: block;
}

.info-label:hover {
  opacity: 0.6;
  transition: opacity 0.3s;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  #wrap {
    padding: 24px;
  }
  .case-main {
    padding-top: 56.25%; /* モバイルでも16:9を維持 */
  }
}

@media screen and (max-width: 768px) {
  .info-label {
    top: auto;
    bottom: 15px;
    width: 65%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* News section */
.news {
  padding: 50px 6%;
}

.news h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  gap: 20px;
}

.news-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.news-date {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
  min-width: 100px;
}

.news-title {
  flex: 1;
  font-size: 16px;
  margin: 0;
}

.news-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.news-title a:hover {
  color: #0066cc;
}

.news-link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  line-height: 1;
}

.news-link .material-icons {
  font-size: 24px;
}

.news-link:hover {
  color: #0066cc;
}

@media screen and (max-width: 768px) {
  .news {
    padding: 40px 6%;
  }

  .news h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .news-item {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 0 10px;
    align-items: start;
  }

  .news-date {
    font-size: 13px;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .news-title {
    font-size: 15px;
    text-align: left;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .news-link {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .news-link .material-icons {
    font-size: 20px;
  }
}

/* Infinite scroll gallery */
@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.scroll-infinity__wrap {
  display: flex;
  overflow: hidden;
}

.scroll-infinity__list {
  display: flex;
  list-style: none;
  padding: 0;
}

.scroll-infinity__list--left {
  animation: infinity-scroll-left 20s infinite linear 0.5s both;
}

.scroll-infinity__item {
  width: 200px;
  height: 200px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.scroll-infinity__item > a,
.scroll-infinity__item > img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-infinity__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ホバー時に一時停止 */
.scroll-infinity__wrap:hover .scroll-infinity__list--left {
  animation-play-state: paused;
}

/* Radio section */
.radio {
  padding: 80px 6%;
  text-align: center;
}

.radio h2 {
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: bold;
}

.radio .about_flex_wrap {
  max-width: 800px;
  margin: 0 auto 60px;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-width: 320px;
  margin: 0 auto;
}

.video-container::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9のアスペクト比 (9/16 = 0.5625) */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 768px) {
  .radio {
    padding: 60px 6%;
  }

  .radio h2 {
    font-size: 36px;
  }
}

/* SNS section */
.sns {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
.sns li {
  margin: 0 10px;
}
.sns img {
  width: 20px;
}
