/* ============================================================
   COMPONENTS.CSS — 再利用コンポーネント
   Pasir Putih HP
============================================================ */

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
  display: inline-block;
  background: var(--earth);
  color: var(--white);
  padding: 16px 40px;
  font-size: 13px;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--deep);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--earth);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border: 1px solid var(--earth);
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
  background: var(--earth);
  color: var(--white);
}

/* ============================================
   CATEGORY TAGS
============================================ */
.news-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--tag-news-bg);
  color: var(--tag-news-fg);
}

.news-tag[data-category="キャンペーン"] {
  background: #fce8d5;
  color: #a0582a;
}

.news-tag[data-category="ヨガ"] {
  background: var(--tag-yoga-bg);
  color: var(--tag-yoga-fg);
}

.news-tag[data-category="メンズデー"] {
  background: var(--tag-mensday-bg);
  color: var(--tag-mensday-fg);
}

/* ============================================
   NEWS CARDS
============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(58, 47, 37, 0.08);
}

.news-thumb {
  height: 160px;
  background: var(--sand);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.04);
}

.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.news-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.news-date {
  font-size: 11px;
  color: var(--text-light);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.04em;
}

.news-card h3 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}

/* テキストのみカード（トップページお知らせ） */
.news-card--text {
  background: var(--white);
}

.news-card--text .news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card--text .news-body {
  padding: 24px;
}

.news-card--text h3 {
  font-size: 14px;
}

/* ============================================
   FEATURE CARDS
============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
}

.feature-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: none;
  transition: transform 0.4s ease;
  box-shadow: none;
}

.feature-icon-1 { background-image: url(../../images/whyus_1.png); }
.feature-icon-2 { background-image: url(../../images/whyus_2.png); }
.feature-icon-3 { background-image: url(../../images/whyus_3.png); }
.feature-icon-4 { background-image: url(../../images/whyus_4.png); }
.feature-icon-5 { background-image: url(../../images/whyus_5.png); }
.feature-icon-6 { background-image: url(../../images/whyus_6.png); }

.feature-card:hover .feature-icon {
  transform: scale(1.08);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--deep);
  letter-spacing: 0.04em;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
}

/* ============================================
   FLOW STEPS
============================================ */
.flow-steps {
  display: flex;
  position: relative;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.flow-step + .flow-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid var(--earth-light);
  opacity: 0.5;
}

.flow-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--earth);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  transition: background 0.25s;
}

.flow-step:hover .flow-num {
  background: var(--deep);
}

.flow-step h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--deep);
  letter-spacing: 0.04em;
}

.flow-step p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   MENU CARDS
============================================ */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 8px;
}

.menu-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--white);
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(58, 47, 37, 0.08);
}

.menu-card-img {
  height: 200px;
  background: var(--sand);
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.04);
}

.menu-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-light);
}

.menu-card-body {
  padding: 24px;
}

.menu-card-body h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--deep);
  letter-spacing: 0.04em;
}

.menu-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--earth);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.menu-price small {
  font-size: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-light);
  font-weight: 300;
}

.menu-card-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   VOICE / REVIEW CARDS
============================================ */
.voice-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}

.voice-card {
  background: var(--white);
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(58, 47, 37, 0.05);
  transition: box-shadow 0.25s;
}

.voice-card:hover {
  box-shadow: 0 6px 28px rgba(58, 47, 37, 0.1);
}

.voice-stars {
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.voice-card blockquote {
  font-size: 13px;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 16px;
  font-style: normal;
  position: relative;
  padding-left: 0;
}

.voice-card cite {
  font-size: 12px;
  color: var(--text-light);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.voice-source {
  display: inline-block;
  background: var(--sand);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  color: var(--earth);
  letter-spacing: 0.04em;
}

/* ============================================
   MEDIA SCROLL
============================================ */
.media-scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.media-scroll::-webkit-scrollbar {
  height: 4px;
}

.media-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.media-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.media-item {
  flex: 0 0 260px;
  text-align: center;
}

.media-thumb {
  width: 260px;
  height: 190px;
  background: var(--sand);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

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

.media-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-light);
}

.media-item h4 {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}

.media-item p {
  font-size: 11px;
  color: var(--text-light);
}

/* ============================================
   ACCESS INFO
============================================ */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.access-map {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.access-info dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px 20px;
  align-items: start;
}

.access-info dt {
  font-weight: 500;
  color: var(--deep);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.access-info dd {
  color: var(--text);
  line-height: 1.9;
  font-size: 13px;
}

.access-info dd a {
  color: var(--earth);
  transition: opacity 0.2s;
}

.access-info dd a:hover {
  opacity: 0.75;
}

/* ============================================
   CTA SECTION（共通）
============================================ */
.section-cta {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 96px 24px;
  background: url(../../images/feature_1.jpg) center / cover no-repeat;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 60, 50, 0.78);
  z-index: 0;
}

.section-cta > * {
  position: relative;
  z-index: 1;
}

.section-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 300;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  color: var(--white);
}

.section-cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}

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

.cta-btn-reserve {
  display: inline-block;
  background: #55bccd;
  color: #fff;
  padding: 18px 52px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
}

.cta-btn-reserve:hover {
  background: #7dd4e0;
  transform: translateY(-1px);
}

.cta-btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  padding: 18px 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.cta-btn-tel:hover {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

/* ============================================
   RESERVE MODAL（Square予約埋め込み）
============================================ */
.reserve-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(30, 22, 14, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.reserve-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.reserve-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 2001;
  width: min(680px, 94vw);
  height: min(85vh, 820px);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(30, 22, 14, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.reserve-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.reserve-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.reserve-modal-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--deep);
  letter-spacing: 0.06em;
}

.reserve-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.reserve-modal-close:hover {
  background: var(--sand);
  color: var(--deep);
}

.reserve-modal-body {
  flex: 1;
  overflow: hidden;
}

.reserve-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.reserve-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ============================================
   SCROLL TO TOP
============================================ */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--earth);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 996;
  box-shadow: 0 2px 12px rgba(58, 47, 37, 0.15);
}

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

.scroll-top:hover {
  background: var(--deep);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   RESPONSIVE — COMPONENTS
============================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .menu-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-cta {
    padding: 72px 24px;
  }

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

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

  .news-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 28px 16px;
  }

  .feature-icon {
    width: 96px;
    height: 96px;
  }

  .menu-cards {
    grid-template-columns: 1fr;
  }

  .voice-cards {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    flex-direction: column;
    gap: 24px;
  }

  .flow-step + .flow-step::before {
    display: none;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .access-map iframe {
    height: 280px;
  }
}

@media (max-width: 900px) {
  /* 固定CTAバーの上にスクロールトップボタン */
  .scroll-top {
    bottom: 88px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== セクション境界マンダラ装飾 ===== */
section + section {
  position: relative;
}
section + section::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: url(../../images/pasir_m.png) no-repeat center / contain;
  opacity: 0.3;
  pointer-events: none;
  z-index: 5;
}
.section-cta + section::after {
  top: -60px;
}
