/* ============================================================
   THEME VARIABLES (SAKURA style)
   ============================================================ */
:root {
  --primary:       #A0522D;
  --primary-light: #EFE0CC;
  --primary-dark:  #4A2C17;
  --accent:        #8B6F4E;
  --bg:            #F5ECD9;
  --surface:       #FFFFFF;
  --text:          #2A1F12;
  --text-muted:    #7A6A50;
  --border:        #E8D9C2;
  --radius:        14px;
  --shadow:        0 2px 16px rgba(74,44,23,0.13);
  --shadow-lg:     0 8px 32px rgba(74,44,23,0.20);
  --font: 'Noto Sans JP','Noto Sans KR','Noto Sans SC',system-ui,sans-serif;
  --max-width:     640px;
  --scroll-offset: 108px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 10px 20px;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s;
}
#header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  transition: color 0.35s;
  white-space: nowrap;
}
#header.scrolled .logo { color: var(--primary-dark); }

#lang-switcher {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.lang-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-family: var(--font);
}
.lang-btn:hover { background: rgba(255,255,255,0.35); }
.lang-btn.active { background: #fff; color: var(--primary-dark); border-color: #fff; }
#header.scrolled .lang-btn {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--border);
}
#header.scrolled .lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   HERO — FULL SCREEN
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: var(--primary-dark);
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 52px;
  color: #fff;
}
.hero-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}
.hero-text {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 16px;
  margin-bottom: 4px;
  line-height: 1.85;
  font-style: italic;
  color: #fff;
  max-width: 460px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  white-space: pre-line;
}
.hero-chips {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.hero-chip:hover { background: rgba(255,255,255,0.28); }
.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  animation: bounce 2.2s infinite;
  z-index: 2;
  line-height: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 14px 100px;
}

/* ============================================================
   SECTION CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  margin-bottom: 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.2s;
  scroll-margin-top: var(--scroll-offset);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.07); }

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 14px;
  background: #fff;
  border-bottom: 1px solid #F0F0F0;
  border-radius: 16px 16px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}
.card-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.card-body {
  padding: 18px 20px;
}

/* ============================================================
   TABLE OF CONTENTS — Floating FAB + Bottom Sheet
   ============================================================ */
.toc {
  display: none;
}
.toc-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(139,111,78,0.45);
  cursor: pointer;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.toc-fab:hover { background: var(--primary-dark); transform: scale(1.06); }
.toc-fab.open  { background: var(--primary-dark); transform: rotate(90deg); }

.toc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.toc-overlay.show { opacity: 1; pointer-events: auto; }

.toc-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  z-index: 500;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80svh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}
.toc-sheet.open { transform: translateY(0); }

.toc-sheet__bar {
  position: sticky;
  top: 0;
  background: var(--surface);
  padding: 10px 20px 12px;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.toc-sheet__handle {
  width: 38px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 0 auto 12px;
}
.toc-sheet__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}
.toc-sheet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 16px 20px;
}
.toc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 10px 12px;
  background: var(--primary-light);
  border-radius: 10px;
  border: 1px solid rgba(139,111,78,0.15);
  transition: background 0.15s, transform 0.1s;
  font-weight: 500;
}
.toc-item:hover  { background: #EAD9C8; }
.toc-item:active { transform: scale(0.97); }
.toc-item .icon  { font-size: 16px; flex-shrink: 0; }

/* ============================================================
   TAB NAVIGATION (Airbnb-style)
   ============================================================ */
.tab-nav {
  position: fixed;
  top: 52px;
  left: 0; right: 0;
  z-index: 150;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #EBEBEB;
  transform: translateY(-300%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
}
.tab-nav.visible { transform: translateY(0); }
.tab-nav__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
}
.tab-nav__inner::-webkit-scrollbar { display: none; }
.tab-nav__btn {
  white-space: nowrap;
  padding: 14px 14px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #717171;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
  font-family: var(--font);
  position: relative;
  bottom: -1px;
  flex-shrink: 0;
}
.tab-nav__btn:hover { color: #222; }
.tab-nav__btn.active { color: #222; border-bottom-color: #222; }

/* ============================================================
   CONTENT COMPONENTS
   ============================================================ */

/* Wi-Fi */
.wifi-box {
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
  margin-bottom: 12px;
}
.wifi-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.wifi-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.wifi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.08em;
}
.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  letter-spacing: 1px;
}

/* Check-in/out */
.checkin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkin-item {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.checkin-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.checkin-icon { font-size: 24px; margin-bottom: 6px; }
.checkin-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2px;
}

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  background: var(--primary);
  color: #fff;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.steps-heading {
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
  margin-bottom: 0;
}
.self-checkin-note {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}
.step-pdf-link {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.step-pdf-link:hover {
  background: var(--primary-dark);
}

/* Key */
.key-info { text-align: center; }
.key-code-box {
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.key-code-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.key-code-value {
  font-size: 22px;
  font-weight: 700;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
}
.key-instruction {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  text-align: left;
  margin-bottom: 10px;
}
.checkout-note {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-top: 12px;
  border-left: 4px solid var(--accent);
  background: #FFF8EC;
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  text-align: left;
}

/* Address & Access */
.address-box {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.address-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.address-text {
  font-size: 14px;
  margin: 6px 0 10px;
  line-height: 1.6;
}
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
}
.btn-map:hover { background: var(--primary-dark); }
.btn-map:active { transform: scale(0.98); }

.access-methods { display: grid; gap: 10px; }
.access-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.access-card:last-child { border-bottom: none; }
.access-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 12px;
  padding: 14px;
  border: 2px solid var(--primary);
  background: var(--primary-light);
  transition: background 0.2s, box-shadow 0.2s;
}
.access-card--link:hover {
  background: #e8d5c0;
  box-shadow: var(--shadow);
}
.access-card-arrow {
  margin-left: auto;
  font-size: 11px;
  flex-shrink: 0;
  align-self: center;
  background: var(--primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.access-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 0;
  width: 8em;
  flex-shrink: 0;
}
.access-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* House Rules */
.rules-list {
  list-style: none;
  padding: 0;
}
.rules-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}
.rules-list li:last-child { border-bottom: none; }
.nowrap { white-space: nowrap; }
.rules-list li.rule-highlight-red {
  background: #fdecea;
  margin: 0 -16px;
  padding: 9px 16px;
  border-radius: 8px;
}
.rules-list li::before {
  content: "●";
  color: var(--primary);
  font-size: 10px;
  flex-shrink: 0;
  line-height: 1.4;
  margin-top: 5px;
}

/* Extended Stay */
.extended-stay-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.extended-stay-item:last-child { border-bottom: none; }
.extended-stay-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.extended-stay-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Accordion (collapsible card) */
.accordion-card-title {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.accordion-arrow {
  font-size: 12px;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}
.accordion-card-title.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-body.open {
  max-height: 3000px;
}

/* Trash Rules */
.trash-list { display: grid; gap: 10px; margin-bottom: 10px; }
.trash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--primary-light);
  border-radius: 12px;
}
.trash-icon {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.trash-category {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
}
.trash-desc {
  font-size: 13px;
  color: var(--text-muted);
}
.trash-note {
  font-size: 13px;
  color: var(--text);
  border-left: 4px solid var(--accent);
  background: #FFF8EC;
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  margin-top: 10px;
  line-height: 1.7;
}

/* Link List (Equipment & Nearby) */
.link-list { display: grid; gap: 8px; }
.link-item {
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.link-item:hover { box-shadow: var(--shadow); background: var(--primary-light); }
.link-item-icon {
  font-size: 1.3rem;
  margin-right: 14px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.link-item-text { flex: 1; }
.link-item-name { font-weight: 700; font-size: 14px; }
.link-item-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.link-item-arrow {
  margin-left: auto;
  font-size: 11px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Sub heading */
.sub-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 20px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Facility List */
.facility-list { display: grid; gap: 8px; }
.facility-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.facility-item:last-child { border-bottom: none; }
.facility-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1.2;
}
.facility-name {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
}
.facility-time {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* Spot Card (Nearby) */
.spot-list { display: grid; gap: 8px; }
.spot-card {
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.spot-card:hover { box-shadow: var(--shadow); background: var(--primary-light); }
.spot-card-icon {
  font-size: 1.3rem;
  margin-right: 14px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.spot-card-body { flex: 1; min-width: 0; }
.spot-card-name { font-weight: 700; font-size: 14px; }
.spot-card-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.spot-card-dist { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 3px; }
.spot-card-arrow {
  margin-left: auto;
  font-size: 11px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Emergency - Contact Card (SAKURA style) */
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card__icon { font-size: 28px; flex-shrink: 0; }
.contact-card__name { font-weight: 700; font-size: 14px; }
.contact-card__tel {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.contact-card__tel--text { cursor: default; }
.contact-card__note { font-size: 12px; color: var(--text-muted); }

.emergency-grid {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}
.emergency-card {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0;
  transition: box-shadow 0.2s;
}
.emergency-card:hover { box-shadow: var(--shadow); }
.emergency-icon { font-size: 28px; flex-shrink: 0; }
.emergency-label {
  font-weight: 700;
  font-size: 14px;
}
.emergency-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.emergency-number a {
  color: var(--primary);
  text-decoration: none;
}
.emergency-card .emergency-note {
  font-size: 12px;
  color: var(--text-muted);
}
.emergency-host {
  margin-top: 12px;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.7;
}
.emergency-host-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.emergency-host-value {
  font-size: 13px;
  color: var(--text);
}

/* Notice Box */
.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--primary-light);
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.notice--blue {
  background: var(--primary-light, #EFE0CC);
  border-left: 4px solid var(--primary, #A0522D);
  border-radius: 0 10px 10px 0;
}
.id-notice-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.form-link {
  display: block;
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--primary, #A0522D);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
}
.form-link:hover {
  background: var(--primary-dark, #8B4513);
}
.notice-label {
  font-size: 12px;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 4px;
}
.notice-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   PHOTO DIVIDERS
   ============================================================ */
.photo-divider {
  margin: 20px calc(-50vw + 50%);
  width: 100vw;
  height: 120px;
  overflow: hidden;
  position: relative;
}
.photo-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245,236,217,0.6) 0%,
    rgba(245,236,217,0) 30%,
    rgba(245,236,217,0) 70%,
    rgba(245,236,217,0.6) 100%
  );
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-page {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 600;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.25s ease;
}
.detail-page.hidden {
  transform: translateX(100%);
  pointer-events: none;
}
.detail-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn-back:hover { background: var(--primary-light); }
.back-arrow { font-size: 1.2rem; }

.detail-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 80px;
}
.detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.detail-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-body {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
  color: var(--text);
}

/* PDF Viewer */
.pdf-viewer {
  width: 100%;
  height: calc(100vh - 140px);
  border: none;
  border-radius: var(--radius);
}

/* Detail Images */
.detail-images {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-img-wrap {
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}
.detail-img-wrap:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.detail-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}
@media (min-width: 640px) {
  .detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .detail-layout .detail-images { margin-bottom: 0; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 24px 20px 40px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ============================================================
   INLINE HELPERS
   ============================================================ */
p { margin-bottom: 8px; font-size: 14px; }
strong { color: var(--primary-dark); }

/* Utilities */
.hidden { display: none !important; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .detail-page, .card, .toc-sheet { transition: none; }
}
