
:root {
  --bg: #f6f0e8;
  --panel: #fffdf9;
  --panel-soft: #efe8de;
  --ink: #2f251d;
  --muted: #75685d;
  --line: #ded3c5;
  --shadow: 0 18px 45px rgba(47,37,29,.08);
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #fbf7f1 0, var(--bg) 46%, #f3ece3 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}
a { color: inherit; }
.site-header {
  width: min(1120px, calc(100% - 36px));
  margin: 42px auto 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.brand { text-decoration: none; }
.brand-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: .92;
  letter-spacing: -.035em;
}
.brand-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .9rem;
}
.menu-button, .small-pill {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 17px;
  background: rgba(255,253,249,.7);
  color: var(--muted);
  white-space: nowrap;
}
.menu-button:hover, .small-pill:hover { background: #fff; color: var(--ink); }
.shell {
  width: min(970px, calc(100% - 36px));
  margin: 0 auto 60px;
  background: rgba(255,253,249,.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}
.home-intro { margin-bottom: 30px; }
.home-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin: 0 0 10px;
}
.home-text { color: var(--muted); margin: 0; max-width: 650px; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}
.menu-card {
  display: block;
  min-height: 116px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffaf2;
  padding: 22px;
  transition: transform .15s ease, background .15s ease;
}
.menu-card:hover { transform: translateY(-2px); background: #fff; }
.menu-number { display: block; color: var(--muted); font-size: .85rem; letter-spacing: .08em; margin-bottom: 12px; }
.menu-name { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.1; }
.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 5rem);
  line-height: .95;
  margin: 0 0 28px;
}
.page-title.only-name { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 28px; }
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel-soft);
}
.video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.gallery-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.page-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.placeholder {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #f4eee6, #e9dfd2);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.placeholder h1 { font-family: Georgia, "Times New Roman", serif; color: var(--ink); margin: 0 0 8px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18,14,11,.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: min(1100px, 92vw); max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-image {
  max-width: 100%;
  max-height: calc(92vh - 100px);
  object-fit: contain;
  background: #111;
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
}
.lightbox-caption {
  margin-top: 14px;
  color: #fff8ef;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.35;
  max-width: 900px;
  text-align: center;
}
.lightbox-button {
  position: fixed;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(0,0,0,.22);
  color: #fff;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  cursor: pointer;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .site-header { margin-top: 26px; align-items: center; }
  .brand-title { font-size: 2.5rem; }
  .brand-subtitle { font-size: .75rem; }
  .shell { width: min(100% - 22px, 970px); padding: 20px; border-radius: 22px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-nav { font-size: .9rem; }
  .chapter-menu { right: 0; }
  .lightbox { padding: 12px; }
  .lightbox-button { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.music-bar {
  margin: 0 0 18px;
  display: flex;
  justify-content: flex-start;
}
.music-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fffaf2;
  color: var(--ink);
  cursor: pointer;
  font-size: .95rem;
}
.music-toggle:hover { background: #fff; }
.music-note { margin-right: 8px; }

.menu-wrap {
  position: relative;
  display: inline-block;
}
.menu-button {
  cursor: pointer;
  font: inherit;
}
.chapter-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 36px));
  background: rgba(255,253,249,.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 20;
}
.chapter-menu.is-open { display: block; }
.chapter-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--ink);
}
.chapter-link:hover { background: #f4eee6; }
.chapter-number {
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .08em;
  padding-top: 2px;
}
.chapter-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.15;
}


/* Updates 20260609-home-p02fix1 */
.home-cover-wrap {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}
.home-cover {
  display: block;
  width: min(100%, 720px);
  max-height: calc(100vh - 220px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #fff;
}
.home-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.gallery-item img { object-fit: contain; background: #fffaf2; }
.page-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 22px;
}


/* Updates 20260609-video-fullscreen1: page 01 fullscreen video start button */
.video-actions {
  margin: 0 0 14px;
  display: flex;
  justify-content: flex-start;
}
.video-start-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fffaf2;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.video-start-button:hover { background: #fff; }
.video-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
@media (max-width: 640px) {
  .page-title.only-name { margin-bottom: 18px; }
  .video-frame { border-radius: 16px; }
}
