/**
 * Shared interactive and front-page styles.
 */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.75)),
    radial-gradient(circle at top, rgba(202, 102, 102, 0.18), transparent 52%);
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  padding: 160px 0 120px;
}

.hero-logo {
  margin-bottom: 28px;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 300;
  letter-spacing: 0.22em;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Hero slide indicators */
.hero-indicators {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-indicator.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.35);
}

.hero-indicator:hover:not(.active) {
  background: rgba(255, 255, 255, 0.4);
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.2rem;
  cursor: pointer;
  animation: bounce 2.2s infinite;
}

.about,
.events,
.gallery,
.contact {
  position: relative;
}

.about {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%),
    var(--dark);
}

.events,
.contact {
  background: rgba(255, 255, 255, 0.02);
}

.features,
.event-grid,
.gallery-grid {
  display: grid;
  gap: 28px;
}

.features,
.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.event-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(28px);
  transition:
    transform 0.6s ease,
    opacity 0.6s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card.animate,
.event-card.animate,
.gallery-item.animate,
.contact-info.animate,
.contact-form.animate,
.event-more.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover,
.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(202, 102, 102, 0.38);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}

.feature-img-container,
.event-img-container {
  position: relative;
  overflow: hidden;
}

.feature-img-container {
  aspect-ratio: 4 / 3;
}

.event-img-container {
  aspect-ratio: 4 / 3;
}

.feature-img,
.event-img,
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-img,
.event-card:hover .event-img,
.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}

.feature-content,
.event-content {
  padding: 24px;
}

.feature-title,
.event-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.feature-desc,
.event-desc {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
}

.event-date {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  background: rgba(5, 5, 5, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.event-more {
  margin-top: 36px;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  font-size: 1.6rem;
}

.gallery-text {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.contact-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.contact-info,
.contact-form {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-heading {
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-text {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
}

.contact-map {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-map iframe {
  display: block;
}

.contact-details {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-icon,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(202, 102, 102, 0.12);
  color: var(--primary);
}

.contact-info-text h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.contact-info-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(202, 102, 102, 0.16);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--light);
}

.form-control:focus {
  outline: 0;
  border-color: rgba(202, 102, 102, 0.55);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 85vh;
}

.modal-image {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.modal-close:hover {
  background: rgba(202, 102, 102, 0.85);
}

body.modal-open {
  overflow: hidden;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-12px);
  }

  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* フェードイン要素は即時表示。
     .hero-slide は除外（強制 opacity:1 にするとスライダーが機能しなくなる）。 */
  .feature-card,
  .event-card,
  .gallery-item,
  .contact-info,
  .contact-form,
  .event-more,
  .about-intro,
  [class*="animate"],
  .flow-step-body {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-down {
    animation: none;
  }
}

@media screen and (max-width: 1024px) {
  .features,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .hero-content {
    padding: 140px 0 96px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
    letter-spacing: 0.12em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .features,
  .event-grid,
  .gallery-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .feature-content,
  .event-content,
  .contact-info,
  .contact-form {
    padding: 24px;
  }

  .modal {
    padding: 16px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    min-height: 86vh;
  }

  .hero-content {
    width: min(100%, calc(100% - 32px));
  }

  .hero-logo {
    width: 140px;
  }

  .feature-content,
  .event-content,
  .contact-info,
  .contact-form {
    padding: 20px;
  }

  .gallery-item {
    min-height: 220px;
  }
}

/* === ご利用の流れ (Booking Flow) === */
.booking-flow {
  padding: 100px 0 60px;
  background-color: rgba(10, 10, 10, 0.4);
  position: relative;
}

.booking-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/bg-dark.jpg') center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.booking-flow .container {
  position: relative;
  z-index: 1;
}

.booking-flow .about-description {
  max-width: 720px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
}

.flow-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 940px;
  position: relative;
  counter-reset: flow-step;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, rgba(202, 102, 102, 0.55), rgba(202, 102, 102, 0.08));
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 6px 0 36px;
  align-items: flex-start;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step-num {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(202, 102, 102, 0.95), rgba(202, 102, 102, 0.7));
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(202, 102, 102, 0.25);
  border: 4px solid rgba(10, 10, 10, 1);
}

.flow-step-body {
  background-color: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 22px 26px;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-step-body::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 28px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 11px 9px 0;
  border-color: transparent rgba(20, 20, 20, 0.72) transparent transparent;
}

.flow-step:hover .flow-step-body {
  border-color: rgba(202, 102, 102, 0.4);
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.flow-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(202, 102, 102, 0.12);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
}

.flow-step-title {
  font-size: 1.2rem;
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.flow-step-meta {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-step-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-size: 0.93rem;
}

.flow-step-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(202, 102, 102, 0.45);
  text-underline-offset: 3px;
}

.flow-step-text a:hover {
  text-decoration-color: var(--accent);
}

.flow-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .booking-flow {
    padding: 70px 0 40px;
  }

  .flow-steps::before {
    left: 28px;
  }

  .flow-step {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .flow-step-num {
    width: 58px;
    height: 58px;
    font-size: 1.15rem;
    border-width: 3px;
  }

  .flow-step-body {
    padding: 18px 18px;
  }

  .flow-step-body::before {
    top: 22px;
    border-width: 7px 9px 7px 0;
  }

  .flow-step-title {
    font-size: 1.05rem;
  }
}
