/* ============================================================
   TOP.CSS — TOPページ専用スタイル
   Pasir Putih HP
============================================================ */

/* ============================================
   HERO
============================================ */
.hero {
  height: 100vh;
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* 背景画像スライドショー */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 旧 .hero-bg 互換 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 画像がない場合のグラデーション fallback */
.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.hero-bg-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(196, 162, 101, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(139, 115, 85, 0.06) 0%, transparent 50%);
}

/* オーバーレイ（画像使用時） */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 22, 14, 0.38);
  z-index: 1;
}

/* テキストコンテンツ */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 24px;
  padding-top: var(--header-h);
  animation: heroFadeUp 1.2s ease-out both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* 画像使用時はサブテキストを白系に */
.hero.has-image .hero-sub {
  color: rgba(245, 240, 232, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 300;
  color: var(--deep);
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero.has-image h1 {
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--earth-light);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  font-weight: 300;
}

.hero.has-image .hero-tagline {
  color: rgba(245, 240, 232, 0.75);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-copy {
  font-size: 14px;
  line-height: 2.3;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero.has-image .hero-copy {
  color: rgba(245, 240, 232, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ヒーロー電話ボタン（白背景で目立つ） */
.btn-hero-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  font-size: 13px;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.95);
  color: var(--deep);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-hero-tel:hover {
  background: #fff;
  transform: translateY(-1px);
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-light);
  text-align: center;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

.hero.has-image .scroll-indicator {
  color: rgba(245, 240, 232, 0.55);
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--earth-light), transparent);
  margin: 8px auto 0;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(4px); }
}

/* ============================================
   § NEWS
============================================ */
.section-news {
  background: var(--white);
}

/* ============================================
   § ABOUT
============================================ */
.section-about {
  background: var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.about-img {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand-dark);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-light);
  border: 2px dashed var(--border);
  border-radius: 4px;
}

.about-text p {
  font-size: 14px;
  color: var(--text);
  line-height: 2.3;
  margin-bottom: 24px;
}

.about-text .keyword {
  color: var(--earth);
  font-weight: 400;
}

.about-text .btn-secondary {
  margin-top: 8px;
}

/* ============================================
   § FEATURES
============================================ */
.section-features {
  background: var(--white);
}

/* ============================================
   § FLOW
============================================ */
.section-flow {
  background: var(--sand);
}

.section-flow .section-inner > .btn-secondary,
.flow-more {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
}

/* ============================================
   § MENU
============================================ */
.section-menu {
  background: var(--white);
}

/* ============================================
   § VOICE
============================================ */
.section-voice {
  background: var(--sand);
}

/* ============================================
   § MEDIA
============================================ */
.section-media {
  background: var(--white);
}

/* ============================================
   § ACCESS
============================================ */
.section-access {
  background: var(--sand);
}

/* ============================================
   RESPONSIVE — TOP
============================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-text .btn-secondary {
    display: block;
    text-align: center;
  }

  .about-img {
    aspect-ratio: 16 / 9;
  }

  .about-img-placeholder {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: calc(var(--header-h) + 16px);
  }

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary,
  .hero-cta .btn-hero-tel {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn-reserve,
  .cta-btn-tel {
    width: 100%;
    justify-content: center;
  }
}
