@charset "utf-8";
/* CSS Document */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Custom underline animation */
.underline-animation {
  background: linear-gradient(transparent 60%, rgba(201, 169, 97, 0.3) 60%);
}

/* Hide scrollbar for image slider */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 桜の花びらアニメーション */
.sakura-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.sakura-petal {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(ellipse at center, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
  border-radius: 50% 0 50% 50%;
  opacity: 0.6;
  animation: sakura-fall linear infinite;
}

.sakura-petal::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}

@keyframes sakura-fall {
  0% { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(400px) rotate(360deg) scale(0.8); opacity: 0; }
}

.sakura-petal:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; }
.sakura-petal:nth-child(2) { left: 15%; animation-duration: 10s; animation-delay: 1s; }
.sakura-petal:nth-child(3) { left: 25%; animation-duration: 9s; animation-delay: 2s; }
.sakura-petal:nth-child(4) { left: 35%; animation-duration: 11s; animation-delay: 0.5s; }
.sakura-petal:nth-child(5) { left: 45%; animation-duration: 8s; animation-delay: 3s; }
.sakura-petal:nth-child(6) { left: 55%; animation-duration: 10s; animation-delay: 1.5s; }
.sakura-petal:nth-child(7) { left: 65%; animation-duration: 9s; animation-delay: 2.5s; }
.sakura-petal:nth-child(8) { left: 75%; animation-duration: 11s; animation-delay: 0.8s; }
.sakura-petal:nth-child(9) { left: 85%; animation-duration: 8s; animation-delay: 3.5s; }
.sakura-petal:nth-child(10) { left: 95%; animation-duration: 10s; animation-delay: 1.2s; }
.sakura-petal:nth-child(11) { left: 10%; animation-duration: 9s; animation-delay: 4s; }
.sakura-petal:nth-child(12) { left: 30%; animation-duration: 11s; animation-delay: 2.8s; }
.sakura-petal:nth-child(13) { left: 50%; animation-duration: 8s; animation-delay: 1.8s; }
.sakura-petal:nth-child(14) { left: 70%; animation-duration: 10s; animation-delay: 3.2s; }
.sakura-petal:nth-child(15) { left: 90%; animation-duration: 9s; animation-delay: 0.3s; }

/* CTAボタンアニメーション */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.3);
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* 微細なパルスアニメーション */
.pulse-subtle {
  animation: pulse-subtle 2.5s ease-in-out infinite;
}
@keyframes pulse-subtle {
  0%, 100% { box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(0, 51, 102, 0.5); }
}

/* シーンタイムライン */
.scene-timeline { position: relative; }
.scene-item { position: relative; padding-left: 2rem; }
.scene-item::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: #c9a961;
  border-radius: 50%;
}
.scene-item::after {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 0.5rem);
  background: linear-gradient(to bottom, #c9a961, transparent);
}
.scene-item:last-child::after { display: none; }

/* 画像ズームモーダル */
.image-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  touch-action: pinch-zoom;
}
.image-zoom-modal.active { display: flex; }
.image-zoom-modal img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  touch-action: pinch-zoom;
}

.image-zoom-modal .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 101;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 画像フィッティング改善 */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gallery-image:hover { transform: scale(1.02); }
.gallery-image:active { transform: scale(0.98); }

.image-container { position: relative; }

/* スクロールボタン */
.scroll-container { position: relative; }
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 51, 102, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.scroll-btn:hover {
  background: rgba(0, 51, 102, 1);
  transform: translateY(-50%) scale(1.1);
}
.scroll-btn-left { left: -18px; }
.scroll-btn-right { right: -18px; }

/* div直下テキスト対策：pの余白消し */
.scroll-btn p,
.modal-nav-btn p,
.close-btn p,
.js-swipe-hint p {
  margin: 0;
  line-height: 1;
}

/* モーダル内ナビゲーション */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  color: #003366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 102;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.modal-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}
.modal-nav-prev { left: 1rem; }
.modal-nav-next { right: 1rem; }

.modal-counter {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
}
.modal-counter p { margin: 0; }

.js-swipe-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 4px;
}

/* SP時はスクロールボタン非表示 */
@media (max-width: 640px) {
  .scroll-btn { display: none; }
}
