/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  color: #000;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --main-color: #24214E;
  --main-color-alt: #241454;
  --gold-gradient: linear-gradient(90deg, #D4AF37 0%, #F9F0B3 50%, #B8860B 75%, #D4AF37 100%);
  --gold-solid: #D4AF37;
  --bg-gray: #F7F7F7;
  --fv-bg: #372E54;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Initial state for fade-in elements (visible by default for JS-disabled) */
.fade-in,
.fade-in-initial {
  opacity: 1;
}

/* JS-enabled styles */
.js-enabled .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .fade-in-initial {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* Faster animation on mobile */
@media (max-width: 768px) {
  .js-enabled .fade-in {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
}

/* ==========================================================================
   Common Components
   ========================================================================== */
.section-title {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
  margin: 0;
}

section:not(.fv):nth-child(odd) {
  background-color: var(--bg-gray);
}
section:not(.fv):nth-child(even) {
  background-color: #fff;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}
section:not(.fv):last-of-type {
  border-bottom: none;
}

.section-title.main-color {
  color: var(--main-color);
}

.section-title-en {
  font-weight: 700;
  font-size: 20px;
  font-family: "Inria Serif";
  line-height: 1.1;
  text-align: center;
  color: var(--main-color);
  margin: 0;
}

.section-title-en.gold {
  color: var(--gold-solid);
}

.section-title-line {
  width: 300px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 7px auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  padding-inline: 4%;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 63px;
  background: var(--main-color);
  z-index: -1;
}

.header-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* ==========================================================================
   FV (First View)
   ========================================================================== */
.fv {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.fv-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--fv-bg);
}

.fv-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  height: 100%;
  background: url('../images/202511/fv-img.jpg') center center / cover no-repeat;
}

.fv-title-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 4, 7, .8);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 34px 20px;
}

.fv-title-line-top,
.fv-title-line-bottom {
  width: 100%;
  max-width: 1240px;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.6;
}
@media (min-width: 769px) {
  .fv-title-line-top {
    margin-top: 10px;
  }
  .fv-title-line-bottom {
    margin-bottom: 15px;
  }
}

.fv-title-date {
  font-weight: 700;
  font-size: 25px;
  line-height: 0.88;
  text-align: center;
  color: #fff;
  margin: 0;
}

.fv-title-main {
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  text-align: center;
  color: #fff;
  margin: 0;
}

/* ==========================================================================
   Greet Section
   ========================================================================== */
.greet {
  position: relative;
  width: 100%;
  padding: 80px 20px;
}

.greet-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.greet-content {
  max-width: 1000px;
  margin: 0 auto;
}

.greet .section-title {
  color: var(--main-color);
}

.greet-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.greet-logo {
  flex-shrink: 0;
}

.greet-text {
  flex: 1;
  min-width: 300px;
}

.greet-text p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.greet-text p:last-child {
  margin-bottom: 0;
}

.greet-signature {
  width: 100%;
  text-align: right;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   Video Section
   ========================================================================== */
.video {
  position: relative;
  width: 100%;
  padding: 80px 20px;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-content {
  max-width: 1080px;
  margin: 0 auto;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  margin-top: 54px;
}

.video-item {
  width: 100%;
  max-width: 500px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--gold-solid);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-wrapper:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.video-wrapper:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
  font-size: 16px;
  line-height: 1.375;
  text-align: center;
  margin: 15px 0 0;
}

/* Single video centered */
.video-grid.single {
  justify-content: center;
}

.video-grid.single .video-item {
  max-width: 700px;
}

/* ==========================================================================
   Book Section
   ========================================================================== */
.book {
  position: relative;
  width: 100%;
  padding: 123px 20px 112px;
}

.book-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.book-content {
  max-width: 938px;
  margin: 0 auto;
  position: relative;
}

.book-content .section-title-line {
  height: 1px;
  margin: 15px auto 30px;
}

.book-main-title {
  font-weight: 700;
  font-size: 20px;
  font-family: "Inria Serif";
  line-height: 1.8;
  text-align: center;
  color: var(--main-color);
  margin: 0 0 20px;
}

.book-body {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.book-img {
  flex-shrink: 0;
  transform: rotate(8deg);
}
@media (min-width: 769px) {
  .book-img {
    position: absolute;
    left: 0;
    top: 0;
  }
  .book-inner {
    max-width: 510px;
    margin-inline: auto 0;
  }
}

.book-img img {
  width: auto;
  max-height: 362px;
  box-shadow: 5px 4px 9px 5px rgba(0, 0, 0, 0.25);
}

.book-info {
  flex: 1;
  min-width: 300px;
  max-width: 509px;
}

.book-description {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 4px;
}

.book-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  height: 45px;
  background: var(--main-color);
  border: 1px solid var(--main-color);
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
  transition: background 0.3s ease, color 0.3s ease;
}

.book-btn:hover {
  background: #fff;
  color: var(--main-color);
}

.sp {
  display: none;
}

/* ==========================================================================
   Photo Section
   ========================================================================== */
.photo {
  position: relative;
  width: 100%;
  padding: 80px 20px 80px;
}

.photo-content {
  max-width: 1280px;
  margin: 0 auto;
}

.photo .section-title {
  color: #000;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 54px;
}

.photo-item {
  aspect-ratio: 1;
  cursor: pointer;
  padding: 2px;
  background: var(--gold-gradient);
}
.photo-item > div {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.1);
}

/* ==========================================================================
   To Top Link
   ========================================================================== */
.to-top {
  display: flex;
  justify-content: center;
  margin-top: 78px;
  padding: 0 0 90px;
  background: #fff;
}

.to-top-link {
  font-size: 16px;
  line-height: 1.8;
  color: #000;
  transition: opacity 0.3s ease;
}

.to-top-link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  z-index: -1;
}

.footer-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 15px;
}

.footer-next {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox,
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-active,
.video-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  max-width: 90vw;
  max-height: 90vh;
  padding: 2px;
  background: var(--gold-gradient);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: -32px;
  right: -38px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  transition: background 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}


.lightbox-image {
  max-width: 100%;
  max-height: calc(80vh - 4px);
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox-image.is-fading {
  opacity: 0;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}


.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.video-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  z-index: 5;
  padding: 0 20px;
}

.video-lightbox .lightbox-close {
  position: absolute;
  top: -32px;
  right: -18px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  transition: background 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ==========================================================================
   Movie btn
   ========================================================================== */
.btn-movie {
  position: fixed;
  right: 3%;
  bottom: 4%;
  overflow: hidden;
  line-height: 0;
  border-radius: 50%;
}

.btn-movie::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -150%;
  width: 60%;
  height: 300%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 215, 130, 0.4) 30%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 215, 130, 0.4) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
}

.btn-movie:hover::before {
  animation: shiny 1.2s ease-in-out forwards;
}

@keyframes shiny {
  0% { left: -150%; top: -100%; }
  100% { left: 150%; top: 100%; }
}


/* ==========================================================================
   Responsive: Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */
@media (max-width: 768px) {
  /* Header */
  .header {
    justify-content: center;
  }

  .header-title {
    font-size: 22px;
  }

  /* FV */
  .fv {
    height: 740px;
  }

  .fv-img {
    background-position: 39% center;
  }

  .fv-title-container {
    padding-block: 34px;
    gap: 20px;
  }

  .fv-title-date {
    font-size: 16px;
    line-height: 1.375;
  }

  .fv-title-main {
    font-size: 20px;
    line-height: 1.5;
  }

  /* Greet */
  .greet {
    padding: 60px 15px;
  }

  .greet-logo {
    order: -1;
  }

  .greet-text {
    min-width: 0;
  }

  .greet-text p {
    font-size: 14px;
    line-height: 1.57;
  }

  .greet-signature {
    font-size: 14px;
    line-height: 1.57;
  }

  /* Video */
  .video {
    padding: 60px 15px;
  }

  .video-grid {
    gap: 40px;
  }

  .video-caption {
    font-size: 14px;
  }

  /* Book */
  .book {
    padding: 60px 15px;
  }

  .book-body {
    flex-direction: column;
  }

  .book-main-title {
    font-size: 18px;
  }

  .book-img img {
    width: 173px;
    height: auto;
  }

  .book-info {
    min-width: 0;
    text-align: center;
  }

  .book-description {
    font-size: 14px;
    text-align: left;
  }

  .book-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  /* Photo */
  .photo {
    padding: 60px 5px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .to-top {
    margin-top: 60px;
    padding: 6px 20px 75px;
    border-top: none;
  }

  /* Footer */
  .footer-title {
    font-size: 16px;
  }

  .footer-next {
    font-size: 16px;
  }

  /* Lightbox */
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }

  .btn-movie {
    max-width: 20%;
    right: 2%;
    bottom: 3%;
  }

  .sp {
    display: inline-block;
  }
}

/* ==========================================================================
   Responsive: Small Mobile
   ========================================================================== */
@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .fade-in,
  .fade-in-initial {
    opacity: 1 !important;
    transform: none !important;
  }
}
