@charset "UTF-8";

:root {
  /* Premium Palette */
  --primary: #2C3E50;
  /* Deep Charcoal */
  --accent: #D4AF37;
  /* Muted Gold */
  --bg-color: #FAFAFA;
  /* Clean Off-white */
  --card-bg: #FFFFFF;
  --text-color: #333333;
  --text-light: #666666;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --font-main: 'Noto Sans JP', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: padding 0.3s;
}

header h1 a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

/* Main Visual */
.main-visual {
  height: 100vh;
  background-image: url("./main_visual.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.main-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.title {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  /* Sophisticated reveal animation */
  animation: clipReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  clip-path: inset(0 100% 0 0);
}

@keyframes clipReveal {
  from {
    clip-path: inset(0 100% 0 0);
    transform: translateX(-20px);
    opacity: 0;
  }

  to {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
    opacity: 1;
  }
}

/* Gallery Section */
.under-area {
  padding: 60px 5%;
  max-width: 1600px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--primary);
  font-weight: 300;
  letter-spacing: 0.2em;
  position: relative;
  display: block;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem auto 0;
}



/* Swiper Customization */
.swiper {
  width: 100%;
  padding-bottom: 50px !important;
  /* Space for pagination */
  overflow: visible;
  /* Allow shadow to be seen */
}

.swiper-slide {
  height: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.swiper-slide.swiper-slide-active,
.swiper-slide.swiper-slide-next,
.swiper-slide.swiper-slide-prev {
  opacity: 1;
}

.img-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  /* Sharper corners for modern look */
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 3/2;
}

.img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

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

.img-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.img-item:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* Swiper Navigation & Pagination */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.2rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary);
  color: white;
}

.swiper-pagination-bullet {
  background: var(--primary);
  opacity: 0.3;
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85vh;
  box-shadow: var(--shadow-md);
  border-radius: 2px;
}

#caption {
  margin-top: 1.5rem;
  color: #f0f0f0;
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.close:hover {
  opacity: 1;
}

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 4rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-top: 6rem;
}

/* Scroll Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--card-bg);
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
  font-size: 1.2rem;
}

#scrollToTopBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  color: var(--accent);
}

#scrollToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }

  .under-area {
    padding: 80px 5%;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
    /* Hide nav arrows on mobile, use swipe */
  }

  nav ul {
    display: none;
    /* Should implement hamburger menu for full mobile support */
  }
}

/* Omikuji Section (Restored & Refined) */
.omikuji-section {
  text-align: center;
  background-color: var(--bg-color);
  padding: 80px 5%;
  position: relative;
}

.omikuji-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.omikuji-container p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.btn-omikuji {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 50px;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
  font-family: var(--font-main);
}

.btn-omikuji:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-omikuji:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.omikuji-result {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-out, opacity 0.6s;
  opacity: 0;
  margin-top: 30px;
}

.omikuji-result.show {
  max-height: 300px;
  opacity: 1;
}

.result-inner {
  padding: 30px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: #fff;
}

.omikuji-main-text {
  font-size: 2.5rem;
  font-weight: 500;
  color: #d63031;
  /* Keeping red for Omikuji tradition */
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.omikuji-sub-text {
  color: var(--text-color);
  font-size: 0.95rem;
}