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

:root {
  --sans: 'Noto Sans TC', sans-serif;
  --serif: 'Noto Serif TC', serif;
  --gold: #b8985a;
  --gold-light: #d4b97a;
  --gold-pale: #f0e6cc;
  --gold-bg: #faf6ee;
  --cream: #f7f3eb;
  --dark: #2c2518;
  --mid: #6b5d42;
  --muted: #a8966e;
  --border: #e2d5b8;
  --white: #fffdf8;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* nav base — each page overrides just `background` inline */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 56px;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.97);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(247, 243, 235, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(184, 152, 90, 0.10);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-overlay {
  display: none;
}

.nav-cta {
  font-size: 13px;
  padding: 9px 24px;
  background: var(--gold);
  color: var(--white);
  letter-spacing: 0.08em;
  border-radius: 2px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.nav-cta:hover {
  background: var(--gold-light);
}

.nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  animation: cta-shine 2.5s ease-in-out infinite;
}

@keyframes cta-shine {
  0% {
    left: -100%;
  }

  40% {
    left: 160%;
  }

  100% {
    left: 160%;
  }
}

section {
  padding: 88px 56px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  color: var(--dark);
}

.section-title-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 48px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

.contact-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 64px;
}

.contact-tagline {
  font-size: 14px;
  color: var(--mid);
  line-height: 2;
  margin-bottom: 36px;
  max-width: 320px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.contact-detail-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-detail-value {
  font-size: 16px;
  color: var(--dark);
  font-family: var(--serif);
  line-height: 1.8;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact-right-item {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.contact-right-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.phone-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-numbers {
  display: flex;
  align-items: center;
  gap: 16px;
}

footer {
  background: #1e1608;
  padding: 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #3a2e1a;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 12px;
  color: #5a4e38;
}

.back-to-top {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #4a3e28;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  background: none;
}

.back-to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
}

br.mobile-br {
  display: none;
}

@media (max-width: 768px) {
  br.mobile-br {
    display: inline;
  }

  nav {
    padding: 14px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-cta {
    font-size: 11px;
    padding: 7px 14px;
  }

  .nav-logo-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    max-width: 80vw;
    background: var(--white);
    padding: 90px 32px 32px;
    gap: 28px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
  }

  .drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  section {
    padding: 48px 20px;
  }

  .contact-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .phone-numbers {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px;
  }

  .back-to-top {
    margin: 0 auto;
  }
}

/* ===== Shared subpage sections (group / individual / room) ===== */

.nav-logo-url {
  font-size: 13px;
  color: var(--mid);
  letter-spacing: 0.06em;
}

.nav-links a.current {
  color: var(--gold);
}

/* 介紹（含頁面標題） */
.intro-section {
  background: #fff;
}

.intro-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.intro-lead {
  font-size: 15px;
  color: var(--mid);
  line-height: 2;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  max-width: 480px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
  min-height: 520px;
}

.intro-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.intro-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.intro-text p {
  font-size: 14px;
  color: var(--mid);
  line-height: 2.1;
  margin-bottom: 18px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-img {
  min-height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}

.intro-text .section-title-line {
  margin: 24px 0 20px;
}

.intro-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.intro-points li {
  font-size: 13px;
  color: var(--dark);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.intro-points li::before {
  content: '牌';
  font-family: var(--serif);
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 流程 */
.flow-section {
  background: var(--cream);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.flow-step {
  text-align: center;
}

.step-line-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.step-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.step-connector.hidden {
  background: transparent;
}

.flow-step:hover .step-num {
  background: var(--dark);
  transform: scale(1.12);
}

.flow-step:hover .step-body strong {
  color: var(--gold);
}

.flow-step strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--dark);
  transition: color 0.3s;
}

.flow-step span {
  display: block;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.8;
  max-width: 180px;
  margin: 0 auto;
}

/* 費用 */
.price-section {
  background: #fff;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.price-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184, 152, 90, 0.12);
}

.price-card.featured {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.price-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 20px;
  padding: 4px 14px;
  display: inline-block;
  margin-bottom: 16px;
}

.price-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.price-desc {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 20px;
  line-height: 1.8;
}

.price-value {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.price-value-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.price-features li {
  font-size: 12.5px;
  color: var(--mid);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.7;
}

.price-features li::before {
  content: '·';
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}

.price-note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
  line-height: 1.9;
}

.orientation-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.orientation-label {
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-align: center;
}

.orientation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.orientation-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px 16px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.orientation-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184, 152, 90, 0.10);
}

.orientation-card.selected {
  border-color: var(--gold);
  background: var(--gold-bg);
  box-shadow: 0 8px 24px rgba(184, 152, 90, 0.15);
}

.orientation-card.selected .orientation-name {
  color: var(--gold);
}

.orientation-card.selected .orientation-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.orientation-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.orientation-name {
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 14px;
}

.orientation-divider {
  width: 20px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 14px;
}

.orientation-price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.04em;
}

.orientation-price span {
  color: var(--gold);
  font-size: 14px;
  margin-left: 2px;
}

/* 意義 — 引言橫幅 */
.meaning-banner {
  padding: 164px 56px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.meaning-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.meaning-banner-line {
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.meaning-banner-quote {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 300;
  line-height: 2;
  color: var(--dark);
  letter-spacing: 0.05em;
  margin: 24px 0;
}

/* 安奉須知 */
.care-section {
  background: #ffffff;
}

.care-group {
  margin-bottom: 48px;
}

.care-group:last-child {
  margin-bottom: 0;
}

.care-group-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.placement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.placement-card {
  padding: 28px 24px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.placement-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184, 152, 90, 0.12);
}

.placement-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark);
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.placement-card p {
  font-size: 12.5px;
  color: var(--mid);
  line-height: 1.9;
}

.flow-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flow-tips-grid li {
  list-style: none;
}

.flow-tips-grid strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
}

.flow-tips-grid li.highlight strong {
  color: var(--gold);
}

.flow-tips-grid span {
  font-size: 12.5px;
  color: var(--mid);
  line-height: 1.8;
}

.contact-section {
  background: var(--white);
  color: var(--dark);
  padding: 88px 56px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .meaning-banner {
    background-attachment: scroll;
  }

  .intro-title {
    font-size: 24px;
  }

  .intro-lead {
    font-size: 14px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }

  .intro-left {
    height: auto;
  }

  .intro-text {
    flex: none;
  }

  .intro-points {
    margin-top: 24px;
  }

  .intro-img {
    min-height: 220px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .step-line-wrap {
    flex-direction: column;
    width: 32px;
    margin-right: 16px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-connector {
    width: 1px;
    height: 32px;
  }

  .flow-step span {
    max-width: none;
    margin: 0;
  }

  .flow-tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .orientation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
