/* ==========================================================================
   1. CORE VARIABLES & RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700&family=Noto+Serif+TC:wght@400;500;700&display=swap');

:root {
  --bg-main: #050608;
  --bg-elevated: #0d0e11;
  --bg-panel: #14161a;
  --bg-surface: #1a1c22;
  --text-main: #f5f2e8;
  --text-muted: #a19a8e;
  --accent-gold: #c9a450;
  --accent-gold-soft: rgba(201, 164, 80, 0.3);
  --accent-gold-dim: rgba(201, 164, 80, 0.1);
  --accent-red: #8b1a1a;
  --accent-red-soft: rgba(139, 26, 26, 0.15);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 164, 80, 0.2);
  --shadow-deep: 0 30px 60px rgba(0, 0, 0, 0.9);
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif TC", "Noto Serif JP", serif;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(201, 164, 80, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 50%, rgba(139, 26, 26, 0.03) 0%, transparent 30%),
    radial-gradient(circle at 100% 80%, rgba(201, 164, 80, 0.05) 0%, transparent 30%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a450' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4v-4H4v4H0v2h4v4h2v-4h4v-2H6zm30 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

/* Texture Overlays */
section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-45c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm26 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm16 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM5 69c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm73-32c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-7-20c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM31 35c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm14-7c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM70 92c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1z' fill='%23c9a450' fill-opacity='0.01' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   2. LAYOUT SYSTEM
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

section {
  padding: 100px 0;
  position: relative;
}

.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
.section-title {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  background: linear-gradient(to right, #c9a450 20%, #f5e6c8 40%, #f5e6c8 60%, #c9a450 80%);
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
  margin: 25px auto 0;
}

.section-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  color: var(--accent-gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0.7;
}

.subheading {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.subheading::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--accent-gold);
}

.center .subheading::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-normal { font-size: 1rem; color: var(--text-main); opacity: 0.9; }
.text-muted { font-size: 0.95rem; color: var(--text-muted); }
.text-small { font-size: 0.85rem; color: var(--text-muted); }
.center { text-align: center; }
.cta-center { display: flex; justify-content: center; width: 100%; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 40px; }
.w-full { width: 100%; }

/* Utility Backgrounds */
.bg-main { background-color: var(--bg-main); }
.bg-elevated { background-color: var(--bg-elevated); }
.bg-panel { background-color: var(--bg-panel); }

/* ==========================================================================
   4. BUTTONS & INTERACTION
   ========================================================================== */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(139, 26, 26, 0.2);
}

.btn-outline {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-main);
  transform: translateY(-3px);
}

.btn-lg { padding: 1.2rem 3rem; font-size: 1.1rem; }

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(5,6,8,0.9), transparent);
}

header.scrolled, header.nav-open {
  background: rgba(5, 6, 8, 0.98);
  backdrop-filter: blur(15px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img { height: 50px; width: auto; object-fit: contain; }
.logo-text-block { display: flex; flex-direction: column; min-width: 0; }
.logo-text-main { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-main); white-space: nowrap; }
.logo-text-sub { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-list {
  display: flex;
  gap: 25px;
}

.nav-list a {
  font-size: 0.9rem;
  color: var(--text-main);
  opacity: 0.7;
  position: relative;
  padding: 5px 0;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-list a:hover, .nav-list a.active {
  opacity: 1;
  color: var(--accent-gold);
}

.nav-list a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0; /* 移除內邊距以最大化點擊區域 */
  z-index: 1100;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  display: block;
  width: 30px; /* 稍微增加圖示寬度 */
  height: 2px;
  background: currentColor;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  transition: var(--transition-smooth);
}

.nav-toggle-icon::before { top: -10px; }
.nav-toggle-icon::after { top: 10px; }

header.nav-open .nav-toggle-icon { background: transparent; }
header.nav-open .nav-toggle-icon::before { transform: rotate(45deg); top: 0; }
header.nav-open .nav-toggle-icon::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 1100px) {
  .nav-container { padding: 0 24px; }
  .nav-toggle { 
    display: flex; /* 確保在小螢幕顯示為 flex */
    flex-shrink: 0; /* 防止按鈕被壓縮 */
  }
  .logo-text-main { 
    font-size: 1.1rem;
    white-space: normal; /* 允許換行 */
    line-height: 1.3;
  }
  .brand-suffix {
    display: block; /* 換行顯示 */
    font-size: 0.85em; /* 稍微縮小字體 */
    color: var(--text-muted); /* 使用次要顏色 */
    font-weight: 400; /* 減輕字重 */
    margin-top: 2px;
  }
  .logo-text-sub { display: none; } /* 在手機端隱藏副標題以節省空間 */
  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-panel);
    padding: 100px 40px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1050;
  }
  header.nav-open .primary-nav { right: 0; }
  .nav-list { flex-direction: column; gap: 25px; }
  .nav-list a { font-size: 1.1rem; }
}

/* ==========================================================================
   6. COMPONENTS (Cards, Forms, Modals)
   ========================================================================== */
/* Grid Variations */
.card-grid { display: grid; gap: 30px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .card-grid.two, .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }
}

/* Vertical Tag */
.vertical-tag {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  border-left: 1px solid var(--accent-gold-soft);
  padding-left: 10px;
  margin-right: 20px;
  opacity: 0.8;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  padding: 30px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(201, 164, 80, 0.03), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold-soft);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 164, 80, 0.05);
}

.card:hover::before {
  transform: translateX(100%);
}

/* Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.card-image-wrap {
  position: relative;
  margin: -30px -30px 20px -30px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-photo { transform: scale(1.1); }

.card-title {
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-red-soft);
  color: var(--accent-gold);
  font-size: 0.75rem;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5,6,8,0.8), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover .card-overlay { opacity: 1; }

/* Review Cards */
.review-card { text-align: center; }
.review-stars { color: var(--accent-gold); margin-bottom: 15px; font-size: 0.9rem; letter-spacing: 2px; }
.review-text { font-style: italic; color: var(--text-main); margin-bottom: 20px; font-size: 0.95rem; }
.review-author { color: var(--text-muted); font-size: 0.85rem; }
.review-author span { color: var(--accent-gold); margin-left: 5px; }

/* Forms */
.form-row {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row label {
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.form-row input, .form-row select, .form-row textarea {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
  min-width: 0; /* 防止在 flex/grid 中溢出 */
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px var(--accent-gold-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.reservation-form-card {
  padding: 40px;
}

@media (max-width: 768px) {
  .reservation-form-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .reservation-form-card {
    padding: 25px 15px;
  }
}

.required { color: var(--accent-red); margin-left: 4px; }

.form-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold);
}

.gold-link { color: var(--accent-gold); text-decoration: underline; transition: var(--transition-smooth); }
.gold-link:hover { color: var(--text-main); }

/* Modals */
.oz-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.oz-overlay.show { opacity: 1; visibility: visible; }

.oz-modal {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.oz-overlay.show .oz-modal { transform: translateY(0); }

.oz-modal-head { padding: 25px 35px; border-bottom: 1px solid var(--border-soft); }
.oz-modal-title { color: var(--accent-gold); font-size: 1.3rem; }
.oz-modal-body { padding: 35px; overflow-y: auto; }
.oz-modal-foot { padding: 25px 35px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 15px; }
.oz-modal-actions { display: flex; justify-content: flex-end; gap: 15px; }
.oz-modal-hint { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* Calendar */
.calendar-wrapper { position: relative; }
.calendar-input { display: flex; }
.calendar-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; cursor: pointer; }
.calendar-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-left: none;
  color: var(--accent-gold);
  padding: 0 15px;
  cursor: pointer;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.calendar-pop {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 320px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  z-index: 100;
  padding: 15px;
  display: none;
  box-shadow: var(--shadow-deep);
  margin-top: 10px;
}

.calendar-pop.show { display: block; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.cal-nav { background: none; border: none; color: var(--accent-gold); font-size: 1.5rem; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal-grid div { padding: 8px 5px; cursor: pointer; border-radius: 4px; font-size: 0.9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 45px; }
.cal-status { display: block; font-size: 0.65rem; margin-top: 2px; font-weight: normal; }
.status-full { color: #ff4d4d; }
.status-few { color: #ffa500; }
.status-ok { color: #2e7d32; }
.cal-grid div:hover:not(.is-disabled) { background: var(--accent-gold-soft); }
.cal-grid .is-disabled { opacity: 0.5; cursor: not-allowed; }
.cal-grid .is-disabled span:first-child { opacity: 0.3; }
.cal-grid .is-selected { background: var(--accent-gold); color: var(--bg-main); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.8rem; color: var(--accent-gold); margin-bottom: 10px; opacity: 0.7; }

.cal-foot {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cal-legend {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.cal-dot-disabled { background: #555; }
.cal-dot-few { background: #ffa500; }
.cal-dot-ok { background: #2e7d32; }

/* News Cards Horizontal */
.news-card-horizontal {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
  overflow: hidden;
  min-height: 250px;
}

.news-card-horizontal .card-image-wrap {
  margin: 0;
  aspect-ratio: auto;
  height: 100%;
  min-width: 0;
}

.news-card-horizontal .card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 1024px) {
  .news-card-horizontal {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 768px) {
  .news-card-horizontal {
    grid-template-columns: 1fr;
  }
  .news-card-horizontal .card-image-wrap {
    height: 200px; /* 減小手機端圖片高度 */
  }
  .news-card-horizontal .card-content {
    padding: 24px !important; /* 手機端更緊湊的內邊距 */
  }
}

.news-tag {
  writing-mode: horizontal-tb;
  border-right: none;
  border-left: 2px solid var(--accent-gold);
  padding: 0 0 0 15px;
  margin-bottom: 15px;
  height: auto;
}

.news-meta-date {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.news-excerpt {
  margin-bottom: 25px;
}

/* Gallery & Blog Carousel */
.carousel-container {
  position: relative;
  width: 100%;
}

.gallery-carousel-wrapper, .blog-carousel-wrapper {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.gallery-carousel, .blog-carousel {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  cursor: grab;
}

.gallery-carousel .card, .blog-carousel .card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
}

/* Carousel Navigation Buttons */
.carousel-nav {
  display: none; /* 預設隱藏，僅在手機端顯示 */
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
  justify-content: space-between;
  padding: 0 10px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(5, 6, 8, 0.8);
  border: 1px solid var(--accent-gold-soft);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.nav-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-main);
}

.nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .gallery-carousel-wrapper, .blog-carousel-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
  }
  .gallery-carousel-wrapper::-webkit-scrollbar, .blog-carousel-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .gallery-carousel, .blog-carousel {
    padding: 0 4px;
    width: max-content;
    cursor: default;
    gap: 16px;
  }
  .gallery-carousel .card, .blog-carousel .card {
    flex: 0 0 85vw;
    min-width: 280px;
    scroll-snap-align: center;
  }
  .carousel-nav {
    display: flex;
    top: 40%; /* 稍微向上偏移以對齊圖片中央 */
  }
}

/* ==========================================================================
   7. PAGE SECTIONS
   ========================================================================== */
/* Section Overlap Fix */
.overlap-section {
  padding: 0;
  margin-top: -60px;
  z-index: 10;
  position: relative;
}

@media (max-width: 1100px) {
  .overlap-section {
    margin-top: 0;
    padding: 60px 0;
  }
}

/* Hero Section (Standard Page Hero) */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background-position: center;
  background-size: cover;
}

/* Home Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(20,20,25,0.4), var(--bg-main));
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-deep);
}

.hero-video-wrapper iframe,
.hero-video-wrapper .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-main));
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 40px; /* 縮小頂部內邊距，使內容更靠近 Logo */
}

.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 500; }
.hero-subtitle { font-size: 1.1rem; color: var(--accent-gold); letter-spacing: 0.3em; margin-bottom: 30px; }
.hero-copy { font-size: 1.1rem; color: var(--text-muted); max-width: 550px; margin-bottom: 40px; }
.hero-meta { font-size: 0.9rem; color: var(--accent-gold-soft); margin-bottom: 40px; border-left: 2px solid var(--accent-gold); padding-left: 20px; }
.hero-actions { display: flex; gap: 20px; }

@media (max-width: 1100px) {
  #hero { height: auto; padding: 100px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .hero-visual { order: -1; margin-bottom: 30px; }
  .hero-title { font-size: 3.5rem; }
  .hero-copy { margin: 0 auto 40px; }
  .hero-meta { border-left: none; border-top: 1px solid var(--accent-gold-soft); padding: 20px 0 0; }
  .hero-actions { justify-content: center; }
}

/* About Section */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.image-stack { position: relative; }
.image-sub { position: absolute; width: 60%; bottom: -30px; right: -30px; border: 4px solid var(--bg-main); box-shadow: var(--shadow-deep); }

@media (max-width: 900px) {
  section { padding: 60px 0; }
  .about-layout { grid-template-columns: 1fr; text-align: center; }
  .image-sub { display: none; }
}

/* Reservation Rules Section */
.reservation-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.list-indent { padding-left: 20px; }
.list-indent li { margin-bottom: 12px; position: relative; }
.list-indent li::before { content: "・"; position: absolute; left: -20px; color: var(--accent-gold); }

@media (max-width: 900px) {
  .reservation-layout { grid-template-columns: 1fr; }
}

/* News Section */
.news-list { 
  display: flex; 
  flex-direction: column; 
  gap: 24px; 
  max-width: 1000px;
  margin: 0 auto;
}

.news-item.card { 
  flex-direction: row; 
  align-items: center; 
  gap: 40px; 
  padding: 35px 45px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
}

.news-item.card:hover {
  border-left-color: var(--accent-gold);
  transform: translateX(10px);
  background: var(--bg-elevated);
}

.news-date { 
  color: var(--accent-gold); 
  font-weight: 500; 
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  min-width: 140px;
  border-right: 1px solid var(--border-soft);
  padding-right: 40px;
}

.news-content {
  flex: 1;
}

.news-title {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Course/Access List Styles */
.course-flow-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.course-step {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.step-num {
  font-size: 1.5rem;
  color: var(--accent-gold);
  font-weight: 700;
  opacity: 0.3;
  font-family: "Noto Serif JP", serif;
  border-bottom: 2px solid var(--accent-gold-soft);
  padding-bottom: 5px;
  line-height: 1;
}
.step-content strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .news-item.card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
  }
  .news-date {
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
    width: 100%;
  }
  .news-item.card:hover {
    transform: translateY(-5px);
  }
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
  background: var(--bg-elevated);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto 60px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.footer-logo { height: 60px; width: auto; object-fit: contain; flex-shrink: 0; }
.footer-title { 
  font-size: 1.5rem; 
  font-weight: 600; 
  line-height: 1.3;
}
.footer-brand-suffix {
  display: block;
  font-size: 0.8em;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-sub { font-size: 0.8rem; color: var(--text-muted); }

.footer-meta { text-align: right; font-size: 0.95rem; }
.footer-meta-line { margin-bottom: 8px; }
.sep { margin: 0 10px; opacity: 0.3; }

.footer-copy {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-inner { flex-direction: column; gap: 40px; text-align: center; padding: 0 24px; }
  .footer-meta { text-align: center; }
  .footer-copy { padding: 40px 24px 0; }
}

/* ==========================================================================
   9. FLOATING BUTTONS
   ========================================================================== */
.floating-buttons {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  overflow: hidden;
}

.floating-btn:hover {
  transform: translateY(-5px);
  background: var(--accent-gold);
  color: var(--bg-main);
  box-shadow: 0 8px 25px rgba(201,164,80,0.3);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

.btn-messenger {
  background: #0084ff;
  border-color: #0084ff;
  color: #fff;
}

.btn-messenger:hover {
  background: #0073e6;
  border-color: #0073e6;
  color: #fff;
}

.btn-line {
  background: #06c755;
  border-color: #06c755;
  color: #fff;
}

.btn-line:hover {
  background: #05b34c;
  border-color: #05b34c;
  color: #fff;
}

/* ==========================================================================
   10. ANIMATIONS & REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delay staggered children */
.revealed:nth-child(2) { transition-delay: 0.1s; }
.revealed:nth-child(3) { transition-delay: 0.2s; }
.revealed:nth-child(4) { transition-delay: 0.3s; }

/* Luxury Card Enhancement */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(201, 164, 80, 0.03), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.card:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  width: 100%;
}

/* Smooth Image Loading */
img {
  transition: opacity 0.5s ease;
}

/* Ensure lazy loaded images are visible if JS fails or is not used */
img[loading="lazy"] {
  opacity: 1;
}

img.loaded {
  opacity: 1;
}

/* Text Shimmer Effect for Gold Titles */
.section-title, .subheading {
  background: linear-gradient(to right, #c9a450 20%, #f5e6c8 40%, #f5e6c8 60%, #c9a450 80%);
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.line-text {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.btn-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

@media (max-width: 768px) {
  .floating-buttons {
    right: 20px;
    bottom: 20px;
    gap: 10px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
  }
}

/* Lightbox Styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1200px;
  max-height: 80vh;
  object-fit: contain;
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from {transform:scale(0.9); opacity:0}
  to {transform:scale(1); opacity:1}
}

#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-gold);
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px){
  .lightbox-content {
    width: 95%;
  }
}
