:root {
  --blue-navy: #23577f;
  --blue-mid: #5c8fbd;
  --blue-bg: #cfe3f8;
  --yellow: #ffd400;
  --cream: #faf1d8;
  --text-dark: #2e2e2e;
  --text-gray: #666;
  --font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.l-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== header ==================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: transparent;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.header__sub img {
  height: 50px;
  width: auto;
}

/* ==================== main visual ==================== */
.mv {
  position: relative;
  background-image: url("../img/mv-bg.png");
  background-size: cover;
  background-position: center;
      padding: 100px 0 120px;
  overflow: hidden;
}

.mv .l-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: flex-start;
  gap: 40px;
}

.mv__main {
  min-width: 0;
}

.mv__title-wrap {
  position: relative;
  max-width: 669px;
}

.mv__title {
  width: 100%;
}

.mv__char {
  position: absolute;
  left: 0.9%;
  bottom: -53.6%;
  width: 38.2%;
}

.mv__period {
  position: absolute;
right: 4%;
  bottom: 11%;
  z-index: 2;
  display: inline-block;
  margin: 0;
  padding: clamp(2px, 1vw, 3px) clamp(8px, 3vw, 16px);
  background: #d4e5f3;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  color: var(--blue-navy);
  font-size: clamp(12px, 1.5vw, 14px);
  white-space: nowrap;
}

.mv__period-date {
  font-family: "Oswald", var(--font-family);
}

.mv__text {
  margin: 10px 0 30px 33%;
  font-size: 16px;
  color: var(--text-dark);
  text-shadow:
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff,
    0 2px 6px rgba(255, 255, 255, 0.8);
}

.mv__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 503 / 56;
  background-image: url("../img/mv-button.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  text-decoration: none;
  color: var(--blue-navy);
  font-weight: bold;
  font-size: 15px;
}

.mv__button:after {
  content: "\203A";
  margin-left: 8px;
  font-weight: bold;
}

.mv__photo {
  min-width: 0;
  padding-top: 70px;
}

.mv__slide {
  position: relative;
  width: 100%;
  max-width: 550px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  aspect-ratio: 551 / 368;
  background: #fff;
}

.mv__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.mv__slide img.is-active {
  opacity: 1;
}

.mv__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.mv__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
  cursor: pointer;
}

.mv__dots button.is-active {
  opacity: 1;
  background: var(--blue-navy);
}

.mv__bottom {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: auto;
  line-height: 0;
}

/* ==================== sections ==================== */
.section {
  padding: 70px 0;
  background: #fff;
}

.section__title {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
}

.section--photos .section__title {
display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* ==================== movies grid ==================== */
.movieGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

.movieCard__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 213 / 135;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.movieCard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movieCard__caption {
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--text-dark);
}

/* ==================== photos grid ==================== */
.photoGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
}

.photoCard {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.photoCard__img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.photoCard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photoCard__org {
  margin: 12px 0 4px;
  font-size: 15px;
  font-weight: bold;
}

.photoCard__desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-gray);
}

.photoGrid__loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.photoGrid__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--blue-bg);
  border-top-color: var(--blue-mid);
  border-radius: 50%;
  animation: photoGridSpin 0.8s linear infinite;
}

@keyframes photoGridSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== empty state (準備中) ==================== */
.emptyState {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 40px 20px;
  background: var(--blue-bg);
  border-radius: 10px;
  text-align: center;
}

.emptyState__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: bold;
  color: var(--blue-navy);
}

.emptyState__desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-gray);
}

.mv__slide .emptyState {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
}

/* ==================== pagination ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid var(--blue-mid);
  background: #fff;
  color: var(--blue-mid);
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.pagination button.is-active {
  background: var(--blue-mid);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination span.ellipsis {
  color: var(--text-gray);
  padding: 0 2px;
}

/* ==================== footer ==================== */
.footer {
  position: relative;
  background: var(--cream);
  padding-top:50px;
  padding-bottom:0px;
}

.footer__top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: auto;
  line-height: 0;
}

.footer__sns {
  padding: 22px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer__sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.footer__sns svg {
  width: 100%;
  height: 100%;
}

.footer__copyright {
  background: var(--blue-navy);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 16px 0;
  margin: 0;
}

/* ==================== responsive ==================== */
@media (max-width: 767px) {
  .mv .l-inner {
    grid-template-columns: 1fr;
  }

  .movieGrid,
  .photoGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mv__button {
    font-size: 13px;
  }

  .mv__char {
    width: clamp(120px, 40vw, 160px);
    bottom: -106px;
    left: 20px;
  }

  .mv__period {
        left: 45vw;
          right: auto;
          bottom: -80px;
          font-size: 18px;
          padding: 8px 24px;
          border-radius: 999px;
          text-align: center;
  }

  .mv__text {
    max-width: 100%;
    margin: 120px 0 30px;
    font-size: 16px;
  }

  .mv__photo {
    width: 100%;
  }

  .mv__slide {
    width: 100%;
    margin: 0 auto;
  }

  .header {
    padding: 12px 16px;
  }

  .header__logo img {
    height: 34px;
  }

  .header__sub img {
    height: 38px;
  }

  .section {
    padding: 50px 0;
  }
}


/* ==================== video modal ==================== */
.videoModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.videoModal.is-open {
  display: flex;
}

.videoModal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.videoModal__inner {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.videoModal__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.videoModal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.videoModal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==================== photo modal ==================== */
.photoModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.photoModal.is-open {
  display: flex;
}

.photoModal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.photoModal__inner {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  padding: 24px;
}

.photoModal__close {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.photoModal__img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}

.photoModal__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photoModal__org {
  margin: 16px 0 6px;
  font-size: 17px;
  font-weight: bold;
}

.photoModal__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-gray);
}

@media (max-width: 500px) {
  .mv__period-date {
    display: block;
  }
}
