/**
 * TOP Page Styles
 *
 * @package Kobayashi
 */

/* ==========================================================================
   Hero - Horizontal Cards
   ========================================================================== */
.hero-cards {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-cards-wrap {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-card {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inactive cards are darker */
.hero-card .hero-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.6s ease;
  z-index: 1;
}

/* Active card is bright */
.hero-card.is-active .hero-card-overlay {
  background: rgba(0, 0, 0, 0.2);
}

/* Hover effect */
.hero-card:hover .hero-card-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.hero-card.is-active:hover .hero-card-overlay {
  background: rgba(0, 0, 0, 0.1);
}

/* Active card expands */
.hero-card.is-active {
  flex: 2.5;
}

.hero-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-card-bg img {
  transform: scale(1.05);
}

.hero-card-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-white);
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}

.hero-card.is-active .hero-card-content {
  opacity: 1;
}

.hero-card:hover .hero-card-content {
  opacity: 1;
}

.hero-card-num {
  display: block;
  font-family: var(--font-family-serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: 0.8;
  margin-bottom: 12px;
}

.hero-card-title {
  font-family: var(--font-family-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  transition: font-size 0.6s ease;
}

.hero-card.is-active .hero-card-title {
  font-size: 48px;
}

.hero-card-subtitle {
  font-family: var(--font-family-base);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ==========================================================================
   Top Section (Full Width)
   ========================================================================== */
.top-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.top-section-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.top-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.top-section-bg img,
.top-section-bg-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.top-section-link:hover .top-section-bg img,
.top-section-link:hover .top-section-bg-placeholder {
  transform: scale(1.05);
}

.top-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background 0.3s ease;
}

.top-section-link:hover .top-section-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.top-section-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  z-index: 2;
}

.top-section-title {
  font-family: var(--font-family-serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.top-section-num {
  display: block;
  font-family: var(--font-family-serif);
  font-size: 14px;
  letter-spacing: 0.3em;
  opacity: 0.8;
  margin-bottom: 16px;
}

.top-section-subtitle {
  font-family: var(--font-family-base);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}

.top-section-text {
  font-family: var(--font-family-serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  line-height: 2;
  margin-top: 24px;
  opacity: 0.9;
}

.top-section-desc {
  max-width: 600px;
  margin: 24px auto 0;
  text-align: center;
}

.top-section-desc p {
  font-family: var(--font-family-base);
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 2;
  color: var(--color-white);
  opacity: 0.9;
}

.top-section-btn {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 48px;
  font-family: var(--font-family-base);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--color-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-section-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .hero-cards {
    height: 100svh;
    min-height: 500px;
  }

  .hero-cards-wrap {
    flex-direction: column;
  }

  .hero-card {
    flex: 1;
  }

  .hero-card.is-active {
    flex: 2;
  }

  .hero-card-content {
    bottom: 50%;
    transform: translate(-50%, 50%);
  }

  .hero-card-title {
    font-size: 24px;
  }

  .hero-card.is-active .hero-card-title {
    font-size: 32px;
  }

  .hero-card-num {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .hero-card-subtitle {
    font-size: 10px;
  }

  .top-section {
    height: 70vh;
    min-height: 400px;
  }

  .top-section-title {
    font-size: 32px;
  }

  .top-section-subtitle {
    font-size: 12px;
  }

  .top-section-desc {
    max-width: 90%;
    margin: 16px auto 0;
  }

  .top-section-desc p {
    font-size: 13px;
    line-height: 1.8;
  }

  .top-section-btn {
    margin-top: 24px;
    padding: 12px 36px;
    font-size: 12px;
  }
}
