/* Reset */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Hero Section */
.hero-section {
  display: grid;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 7; /* .hero-main より下なら z-index: 2 */
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 237, 223, 0) 60%, rgba(255, 237, 223, 0.5) 100%);
}


.hero-section > * {
  grid-row: 1;
  grid-column: 1;
}

.hero-bg {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;

  /* グラデーションマスクで下に向かって透明にする */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.hero-title {
  z-index: 8;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  max-height: 80vh;
  object-fit: contain;
  object-position: center;
}

.hero-main {
  z-index: 3;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  max-height: 70vh;
  object-fit: cover;
  object-position: center;

  /* グラデーションマスクで下に向かって透明にする */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.hero-author {
  position: absolute;
  z-index: 10;
  bottom: 10px;
  left: 10px;
  width: 150px;
  height: auto;
}

.hero-catch {
  z-index: 9;
  position: absolute;
  top: 50px;
  right: 10px;
  height: 90vh;
}

/* Responsive Hero */
@media screen and (min-width: 745px) {
  .hero-main {
    height: 100vh;
    max-height: none;
    bottom: 0;
  }
}

@media screen and (max-width: 745px) {
  .hero-catch {
    left: 50%;
    transform: translateX(-40%);
    top: 10px;
    height: 60vh;
  }

  .hero-title {
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    height: 100vh;
  }

  .hero-main {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 70vh;
    max-width: 100%;
  }

  .hero-author {
    width: 100px;
  }
}

/* Trailer Section */
.trailer-section {
  width: 100%;
  padding: 50px 30px;
  margin: 0 auto;
}

.video-carousel {
  position: relative;
}

.youtube-video-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.youtube-video-container::-webkit-scrollbar {
  display: none;
}
.youtube-video-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.video-item {
  flex: 0 0 calc(100% / 3 - 20px);
  margin-right: 30px;
  position: relative;
  aspect-ratio: 300 / 169;
  scroll-snap-align: center;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 300 / 169;
  overflow: hidden;
  border-radius: 12px;
}
.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .video-item {
    flex: 0 0 100%;
    margin-right: 30px;
  }
}

.youtube-video-container .video-item:last-child {
  margin-right: 0;
}

.video-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #f7cdc2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: background-color 0.2s ease-in-out;
}
.carousel-arrow img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

@media (max-width: 767px) {
  .carousel-arrow { width: 30px; height: 30px; }
  .left-arrow, .right-arrow { display: none; }
}

.carousel-dots {
  text-align: center;
  margin-top: 10px;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}
.dot.active { background: #333; }

/* Random Image Section */
.random-image-section {
  position: relative;
  width: 100%;
  height: 80vh;
}
.random-image-container {
  position: relative;
  width: 100%;
  height: 90%;
  overflow: hidden;
}
.random-image {
  position: absolute;
  object-fit: cover;
  filter: grayscale(100%);
}

/* News Section */
.news-section {
  padding: 40px 20px;
}
.news-container {
  max-width: 800px;
  margin: 0 auto;
}
.news-item {
  padding: 15px 0;
  border-bottom: 1px solid #df5446;
}
.news-item:last-child { border-bottom: none; }

.news-date-category {
  display: flex;
  gap: 10px;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
  align-items: center;
}
.news-date { white-space: nowrap; }
.news-category {
  background-color: #e0e0e0;
  color: #666;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85em;
}
.news-item p { 
  margin: 0; 
  font-size: 1em; 
  color: #333; 
  text-align: left;
}

.introduction-section{
    width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  padding: 30px 0px;
  margin: 0 auto;
}

.introduction-section p{
    font-family: 'Aozora Mincho', 'Times New Roman', 'Klee One', 'MS Mincho', sans-serif;
    margin: 0 10%;
    text-align: center;
    line-height: 2.0rem;
    font-size: 1rem;
}

.font-accent{
    font-weight: bold;
    font-size: 1.25rem;
}

.color-accent{
    color: #df5446;
    font-weight: bold;
    font-size: 1.25rem;
}


@media (max-width: 767px) {

    .introduction-section p {
        font-size: 0.8rem;
    }

    .font-accent{
        font-weight: bold;
        font-size: 1rem;
    }

    .color-accent{
        color: #df5446;
        font-weight: bold;
        font-size: 1rem;
    }

}

.news-container {
  max-height: 360px;
  overflow-y: auto;
}

.news-container::-webkit-scrollbar {
  width: 6px;
}
.news-container::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.3);
  border-radius: 3px;
}


.news-item .news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
