/* ================================================================
   muemo — Shared Component Styles
   Depends on muemo.css (design tokens) being loaded first.
   ================================================================ */

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body-l);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-8);
}
.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 var(--s-8);
}

/* ---------- Typography ---------- */
.display-xl,
.display-l,
.display-m {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.display-xl { font-size: var(--t-display-xl); line-height: 1.3; }
.display-l  { font-size: var(--t-display-l); }
.display-m  { font-size: var(--t-display-m); }

.brand {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-6);
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--t-body-m);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-outline:hover { background: var(--paper-2); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }

.btn-lg { height: 52px; padding: 0 var(--s-8); font-size: var(--t-body-l); }

.arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation (ログイン前) ---------- */
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav > .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo img { width: 28px; height: 28px; }
.nav-logo .word {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav-link {
  font-size: var(--t-body-m);
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav .btn-primary { height: 40px; padding: 0 18px; }

/* ---------- Navigation (ログイン後) ---------- */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  height: var(--nav-h);
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 var(--s-6);
  font-size: var(--t-body-m);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-tab:hover { color: var(--ink); }
.nav-tab.is-active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.nav-icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transition: opacity .15s;
}
.nav-avatar:hover { opacity: .85; }

/* ---------- Flash message ---------- */
.flash {
  padding: var(--s-4) 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.flash-inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-body-m);
}
.flash--success { background: var(--success-tint); border-bottom-color: var(--success-line); color: var(--success); }
.flash--danger  { background: var(--danger-tint);  border-bottom-color: var(--danger-line);  color: var(--danger); }
.flash--warning { background: var(--warning-tint); border-bottom-color: var(--warning-line); color: var(--warning); }

/* ---------- Image placeholder ---------- */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(27,41,66,.05) 0 8px,
      rgba(27,41,66,.02) 8px 16px
    ),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Avatar ---------- */
.avatar {
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 800;
  flex-shrink: 0;
}
.avatar-sm { width: 22px; height: 22px; font-size: 11px; }
.avatar-md { width: 36px; height: 36px; font-size: 15px; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }

/* ---------- Section ---------- */
.section { padding: var(--s-24) 0; position: relative; }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-caption);
  color: var(--ink-3);
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--s-6);
  margin-top: var(--s-3);
}
.footer-links a {
  color: var(--ink-3);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink-2);
}

/* ---------- Form elements ---------- */
.field { margin-bottom: var(--s-5); }
.label {
  display: block;
  font-size: var(--t-body-m);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.input,
.textarea,
.select select {
  width: 100%;
  height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--t-body-m);
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.textarea {
  height: auto;
  padding: var(--s-4);
  resize: vertical;
  line-height: 1.75;
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-4); }
.input:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,41,66,.08);
}
.input.is-danger,
.textarea.is-danger { border-color: var(--danger); }
.help { font-size: var(--t-caption); margin-top: var(--s-1); }
.help.is-danger { color: var(--danger); }

/* ---------- Responsive helpers ---------- */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  .nav-tabs { display: none; }
}
@media (max-width: 980px) {
  .hide-tablet { display: none !important; }
}

/* === Layout: App === */

/* === Layout: Auth === */
body { min-height: 100vh; }

/* ---- 左右分割レイアウト ---- */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---- 左パネル（ブランド） ---- */
.auth-brand {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-12) var(--s-16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(192,86,61,.5), rgba(192,86,61,0));
  pointer-events: none;
}
.brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.brand-top img { width: 28px; height: 28px; }
.brand-top .word {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.045em;
  color: var(--paper);
}
.brand-quote {
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.brand-quote .eyebrow {
  color: rgba(250,248,243,.55);
  margin-bottom: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.brand-quote .eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: rgba(250,248,243,.4);
}
.brand-quote h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.55;
  margin: 0 0 var(--s-6);
  color: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.brand-quote h1 .accent { color: var(--accent); }
.brand-quote p {
  color: rgba(250,248,243,.72);
  font-size: 14.5px;
  line-height: 2;
  margin: 0;
}

/* stamp-strip */
.stamp-strip { display: flex; gap: var(--s-2); position: relative; z-index: 1; }
.stamp-strip .sc {
  background: rgba(250,248,243,.06);
  border: 1px solid rgba(250,248,243,.12);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  flex: 1; min-width: 0;
}
.stamp-strip .sc.accent { background: var(--accent); border-color: var(--accent); }
.stamp-strip .sc .d {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(250,248,243,.5);
}
.stamp-strip .sc.accent .d { color: rgba(255,255,255,.7); }
.stamp-strip .sc .p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--paper);
  margin-top: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stamp-strip .sc.accent .p { color: #fff; }

/* ---- 右パネル（フォーム） ---- */
.auth-form {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-12) var(--s-10);
}
.auth-form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}
.auth-form-body--register {
  max-width: 440px;
  justify-content: flex-start;
  padding-top: var(--s-4);
}
.auth-form-body--sent {
  max-width: 440px;
  justify-content: flex-start;
  padding-top: var(--s-4);
}
.auth-form-inner {
  width: 100%;
  max-width: 400px;
}
.auth-form-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-title-l);
  margin: 0 0 var(--s-2);
  color: var(--ink);
}
.auth-form-inner .auth-sub {
  font-size: var(--t-body-m);
  color: var(--ink-3);
  margin: 0 0 var(--s-10);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-6) 0;
  font-size: var(--t-caption);
  color: var(--ink-3);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-footer-link {
  text-align: center;
  margin-top: var(--s-8);
  font-size: var(--t-body-m);
  color: var(--ink-2);
}
.auth-footer-link a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-footer-link a:hover { color: var(--accent); }

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form { padding: var(--s-10) var(--s-6); }
}

/* === Page: Home === */
/* ---- HERO ---- */
.hero {
  padding: var(--s-24) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(192,86,61,.05), transparent 60%),
    radial-gradient(ellipse at 0% 110%, rgba(27,41,66,.04), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-16);
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.hero-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink-3);
  display: inline-block;
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: 0.01em;
  line-height: 1.36;
  margin: 0 0 var(--s-6);
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
.hero-h1 .accent {
  color: var(--accent);
  background-image: linear-gradient(transparent 78%, rgba(192,86,61,.18) 78% 92%, transparent 92%);
  background-repeat: no-repeat;
}
.hero-lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0 0 var(--s-10);
  max-width: 480px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: var(--s-8);
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  font-size: var(--t-caption);
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}
/* ---- カード（右側） ---- */
.stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}
.stack::before {
  content: "";
  position: absolute;
  inset: 32px -28px -28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transform: rotate(2.5deg);
  z-index: 0;
}
.stack::after {
  content: "";
  position: absolute;
  inset: 16px -8px -8px -16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transform: rotate(-1.5deg);
  z-index: 1;
}
.tag-callout {
  position: absolute;
  top: -18px; left: -36px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 3;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-2);
}
.checkin-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
/* 画像スロット: public/images/top-hero.jpg を置くと自動表示 */
.checkin-photo {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(27,41,66,.07) 0 10px, rgba(27,41,66,.03) 10px 20px),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.checkin-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.checkin-photo img.hidden { display: none; }
.checkin-photo .badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.checkin-photo .badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.checkin-body { padding: var(--s-6) var(--s-6) var(--s-5); }
.checkin-place {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.005em;
  margin: 0 0 4px;
}
.checkin-loc {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-bottom: var(--s-5);
}
.checkin-note {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.85;
  margin: 0 0 var(--s-5);
  padding-left: var(--s-4);
  border-left: 2px solid var(--accent);
}
.checkin-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.checkin-foot .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  letter-spacing: normal;
}
/* ---- SECTION 共通 ---- */
.section-eyebrow { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.section-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--ink-3); }
.section--ink .section-eyebrow::before { background: rgba(250,248,243,.4); }
.section--ink .eyebrow { color: rgba(250,248,243,.6); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: 0.005em;
  line-height: 1.4;
  margin: 0 0 var(--s-12);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
.section-title .accent { color: var(--accent); }
.section--ink .section-title { color: var(--paper); }
.section-lead { font-size: 16px; color: var(--ink-2); line-height: 1.95; max-width: 640px; }
.section--ink .section-lead { color: rgba(250,248,243,.78); }
/* ---- INTRO ---- */
.intro-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-16); align-items: start; }
.intro-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 2;
  color: var(--ink);
  margin: 0;
  padding-left: var(--s-6);
  border-left: 2px solid var(--accent);
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* ---- FEATURES ---- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
  padding: var(--s-16) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature--reverse .feature-mock { order: 2; }
.feature--reverse .feature-text { order: 1; }
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.feature-num strong { color: var(--accent); margin-right: 8px; font-weight: 700; }
.feature-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  margin: 0 0 var(--s-4);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.feature-text p { font-size: 15.5px; line-height: 2; color: var(--ink-2); margin: 0 0 var(--s-5); max-width: 460px; }
.feature-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.feature-bullets li { font-size: 14px; color: var(--ink-2); padding-left: var(--s-5); position: relative; }
.feature-bullets li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.mock-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: var(--s-6);
  max-width: 440px;
  margin: 0 auto;
}
.mock-checkin .mock-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-5);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase;
}
.mock-checkin .mock-head .dot { display: inline-flex; align-items: center; gap: 6px; }
.mock-checkin .mock-head .dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.mock-checkin .mock-place {
  background: var(--paper-2); border-radius: var(--r-sm); padding: var(--s-5);
  display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5);
}
.mock-pin {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary-tint); color: var(--primary);
  display: grid; place-items: center; font-family: var(--font-brand); font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.mock-checkin .mock-place .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.4; }
.mock-checkin .mock-place .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.06em; }
.mock-checkin .mock-btn {
  width: 100%; height: 48px; background: var(--primary); color: #fff;
  border: 0; border-radius: var(--r-sm); font-family: var(--font-body);
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: default;
}
.mock-memo .mock-tabs {
  display: flex; gap: var(--s-3); margin-bottom: var(--s-4);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase;
}
.mock-memo .mock-tabs .on { color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 4px; }
.mock-memo .mock-input {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-5);
  min-height: 140px; font-size: 14.5px; line-height: 1.95; color: var(--ink); background: var(--surface);
}
.mock-memo .mock-input .caret {
  display: inline-block; width: 1.5px; height: 18px; background: var(--accent);
  vertical-align: -3px; margin-left: 2px; animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.mock-memo .mock-tools { display: flex; gap: var(--s-3); margin-top: var(--s-4); flex-wrap: wrap; }
.mock-memo .tool {
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px;
  font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); letter-spacing: 0.04em;
}
.mock-history .mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-5); }
.mock-history .month { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.mock-history .count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }
.stamp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.stamp { aspect-ratio: 1; border-radius: 4px; background: var(--paper-2); border: 1px solid var(--line); }
.stamp.has { background: var(--primary); border-color: var(--primary); }
.stamp.has-accent { background: var(--accent); border-color: var(--accent); }
.stamp.faded { background: rgba(27,41,66,.18); border-color: transparent; }
/* ---- JOURNAL ---- */
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: center; }
.journal-stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); max-width: 460px; }
.stamp-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); padding: var(--s-5) var(--s-4);
  aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.stamp-card:nth-child(2) { transform: rotate(-1.5deg); }
.stamp-card:nth-child(3) { transform: rotate(1.2deg); }
.stamp-card:nth-child(4) { transform: rotate(0.6deg); }
.stamp-card:nth-child(5) { transform: rotate(-1deg); }
.stamp-card:nth-child(7) { transform: rotate(1.4deg); }
.stamp-card:nth-child(8) { transform: rotate(-0.8deg); }
.stamp-card .date { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-3); }
.stamp-card .place { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; line-height: 1.4; word-break: keep-all; }
.stamp-card.muted { background: var(--paper-2); color: var(--ink-3); box-shadow: none; }
.stamp-card.muted .place { color: var(--ink-3); }
.stamp-card.accent { background: var(--accent); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.stamp-card.accent .date { color: rgba(255,255,255,.7); }
.stamp-card.accent .place { color: #fff; }
/* ---- CTA ---- */
.cta-inner { text-align: center; padding: var(--s-12) 0; }
.cta-mark { width: 64px; height: 64px; margin: 0 auto var(--s-6); display: block; }
.cta-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--paper);
  margin: 0 0 var(--s-4);
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.cta-sub { font-size: 15px; color: rgba(250,248,243,.72); margin: 0 auto var(--s-10); max-width: 520px; line-height: 2; }
.cta-row { display: flex; justify-content: center; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.btn-on-ink { background: var(--paper); color: var(--ink); }
.btn-on-ink:hover { background: #fff; }
.cta-ghost-link {
  color: rgba(250,248,243,.78); font-size: 14.5px; text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid rgba(250,248,243,.3);
}
.cta-ghost-link:hover { color: #fff; border-bottom-color: #fff; }
/* ---- レスポンシブ ---- */
@media (max-width: 980px) {
  .hero-grid, .intro-inner, .feature, .journal-grid { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero { padding: var(--s-16) 0; }
  .stack { margin: 0 auto; }
  .stack::before, .stack::after { display: none; }
  .feature--reverse .feature-mock { order: 1; }
  .feature--reverse .feature-text { order: 2; }
  .section { padding: var(--s-16) 0; }
}

/* === Page: Login === */
.form-top {
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: auto;
  padding-bottom: var(--s-8);
}
.form-top a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  margin-left: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
}
.form-top a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.form-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink-3);
}
.form-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.4;
  margin: 0 0 var(--s-3);
  color: var(--ink);
  word-break: keep-all;
}
.form-sub { color: var(--ink-2); font-size: 14.5px; margin: 0 0 var(--s-10); line-height: 1.85; }

.auth-form .field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field-label .hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-weight: 400;
}
.field-label .hint a {
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-2);
}
.field-label .hint a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.input-wrap { position: relative; }
.input-auth {
  width: 100%;
  height: 52px;
  padding: 0 var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.input-auth::placeholder { color: var(--ink-4); }
.input-auth:hover { border-color: var(--ink-3); }
.input-auth:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,41,66,.08); }
.input-auth.is-danger { border-color: var(--danger); }
.input-auth.has-icon-r { padding-right: 48px; }

.toggle-pw {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: var(--r-xs);
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  transition: color .15s, background .15s;
}
.toggle-pw:hover { color: var(--ink); background: var(--paper-2); }

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: var(--s-2) 0 var(--s-8);
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.checkbox input[type="checkbox"] { display: none; }
.checkbox .box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: all .15s;
  flex-shrink: 0;
}
.checkbox input:checked + .box { background: var(--ink); border-color: var(--ink); }
.checkbox input:checked + .box::after {
  content: "";
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: 0; border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.btn-submit {
  width: 100%; height: 56px;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  transition: background .15s, transform .08s;
  letter-spacing: 0.02em;
}
.btn-submit:hover { background: var(--primary-hover); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-divider {
  display: flex; align-items: center; gap: var(--s-4);
  margin: var(--s-8) 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase;
}
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.signup-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.signup-card .text { display: flex; flex-direction: column; gap: 2px; }
.signup-card .text strong {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--ink); line-height: 1.4;
}
.signup-card .text span { font-size: 12.5px; color: var(--ink-3); }
.signup-card a {
  flex-shrink: 0;
  height: 40px; padding: 0 var(--s-5);
  background: transparent; border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.signup-card a:hover { background: var(--ink); color: var(--paper); }

.form-foot {
  margin-top: var(--s-10);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3);
  display: flex; gap: var(--s-5); flex-wrap: wrap;
}
.form-foot a {
  color: var(--ink-3); text-decoration: none;
  padding-bottom: 1px; border-bottom: 1px solid transparent;
}
.form-foot a:hover { color: var(--ink); border-bottom-color: var(--line-2); }

.error-message {
  background: var(--danger-tint);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-sm);
  color: var(--danger);
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-body-m);
  margin-bottom: var(--s-6);
}

/* === Page: Register === */
.field-label .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 400;
  text-transform: uppercase;
}

.input-auth.has-icon-l { padding-left: 38px; }
.input-prefix {
  position: absolute;
  left: var(--s-4); top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 14px;
  pointer-events: none;
}

.field-help {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}

.field.is-error .input-auth { border-color: var(--danger); background: rgba(192,57,43,.04); }
.field.is-error .input-auth:focus { box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.field-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 500;
}

.pw-strength { display: flex; gap: 4px; margin-top: 4px; }
.pw-strength .bar { height: 4px; flex: 1; background: var(--line); border-radius: 2px; transition: background .2s; }
.pw-strength .bar.on1 { background: var(--danger); }
.pw-strength .bar.on2 { background: var(--warning); }
.pw-strength .bar.on3 { background: var(--success); }

.terms-row {
  margin: var(--s-8) 0 var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--paper-2);
  border-radius: var(--r-sm);
}
.terms-row .checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.7;
}
.terms-row .checkbox input[type="checkbox"] { display: none; }
.terms-row .checkbox .box {
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: all .15s;
}
.terms-row .checkbox input:checked + .box { background: var(--ink); border-color: var(--ink); }
.terms-row .checkbox input:checked + .box::after {
  content: "";
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: 0; border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.terms-row .checkbox a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-2);
}
.terms-row .checkbox a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.login-card {
  margin-top: var(--s-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.login-card .text strong {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--ink); display: block;
}
.login-card .text span { font-size: 12px; color: var(--ink-3); display: block; margin-top: 2px; }
.login-card a {
  flex-shrink: 0;
  height: 38px; padding: 0 var(--s-4);
  background: transparent; border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.login-card a:hover { background: var(--ink); color: var(--paper); }

/* welcome-notes on brand panel */
.welcome-notes { position: relative; z-index: 1; display: grid; gap: var(--s-3); }
.wn {
  display: flex; gap: var(--s-3); align-items: flex-start;
  color: rgba(250,248,243,.78); font-size: 13.5px; line-height: 1.7;
}
.wn .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(192,86,61,.18); color: var(--accent);
  display: grid; place-items: center; margin-top: 1px;
}
.wn strong { color: var(--paper); font-weight: 600; }

/* === Page: RegisterSent === */
.envelope {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(192,86,61,.08);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-8);
  position: relative;
}
.envelope::before, .envelope::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: .35;
  animation: pulse-ring 2.6s ease-out infinite;
}
.envelope::before { inset: -10px; }
.envelope::after { inset: -22px; animation-delay: 1.3s; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .35; } 100% { transform: scale(1.18); opacity: 0; } }

.email-card {
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-8);
  border-left: 3px solid var(--accent);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.email-card .icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.email-card .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.email-card .addr {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.3;
}
.email-card .change {
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-2);
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-end;
}
.email-card .change:hover { color: var(--accent); border-bottom-color: var(--accent); }

.next-steps { margin-bottom: var(--s-8); }
.next-steps .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.next-steps .label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step-list { display: grid; gap: var(--s-3); }
.step-item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}
.step-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 11px;
  margin-top: 1px;
}
.step-item strong { color: var(--ink); font-weight: 600; }

.resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
  gap: var(--s-4);
  flex-wrap: wrap;
}
.resend-row .text { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.resend-row .text small {
  display: block;
  color: var(--ink-3);
  font-size: 11.5px;
  margin-top: 2px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.btn-resend {
  flex-shrink: 0;
  height: 40px;
  padding: 0 var(--s-5);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}
.btn-resend:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn-resend:disabled { opacity: .4; cursor: not-allowed; }

.help-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.85;
}
.help-card strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }
.help-card ul { margin: 0; padding: 0 0 0 var(--s-5); list-style: disc; }
.help-card li { margin-bottom: 2px; }
.help-card li::marker { color: var(--ink-4); }
.brand-inline { font-family: var(--font-brand); font-weight: 600; }
.text-link { color: var(--ink); text-decoration: underline; }

/* === Page: VerifyResult === */
.error-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(192,57,43,.08);
  color: var(--danger);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-8);
}

.action-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.btn-primary-full {
  width: 100%; height: 52px;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  text-decoration: none;
  transition: background .15s;
  letter-spacing: 0.02em;
}
.btn-primary-full:hover { background: var(--primary-hover); }
.btn-outline-full {
  width: 100%; height: 52px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-outline-full:hover { border-color: var(--ink-3); color: var(--ink); }

/* === Page: Museums Index === */
.page-head { padding: var(--s-12) 0 var(--s-8); }
.page-eyebrow-row {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.page-eyebrow-row::before { content:""; width: 24px; height: 1px; background: var(--ink-3); }
.page-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); letter-spacing: 0.005em; line-height: 1.4;
  margin: 0 0 var(--s-3);
  word-break: keep-all; overflow-wrap: break-word;
}
.page-sub { color: var(--ink-2); font-size: 15px; margin: 0; }
.page-sub strong { color: var(--ink); font-family: var(--font-brand); font-weight: 700; }

.filter-bar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4);
  box-shadow: var(--shadow-1);
  display: grid; grid-template-columns: 1.4fr 1fr auto;
  gap: var(--s-3); align-items: center;
  margin-bottom: var(--s-6);
}
.filter-search {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--paper-2); border-radius: var(--r-sm); padding: 0 var(--s-4);
  height: 44px;
}
.filter-search svg { flex-shrink: 0; color: var(--ink-3); }
.filter-search input {
  flex: 1; border: 0; background: transparent; outline: 0;
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); height: 100%;
}
.filter-search input::placeholder { color: var(--ink-4); }
.filter-select {
  height: 44px; padding: 0 var(--s-10) 0 var(--s-4);
  background: var(--paper-2); border: 0; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  appearance: none; cursor: pointer; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A8F9A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.filter-submit {
  height: 44px; padding: 0 var(--s-5);
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.filter-submit:hover { background: var(--primary-hover); }

.category-row {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  margin-bottom: var(--s-8);
}
.chip {
  height: 36px; padding: 0 var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.result-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-6); padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.result-count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
.result-count strong { color: var(--ink); font-weight: 700; font-size: 13px; }

.facility-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6); margin-bottom: var(--s-12);
}
.facility-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.facility-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2);
}
.facility-photo {
  aspect-ratio: 16/10; position: relative; background: var(--paper-2); overflow: hidden;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-4); text-transform: uppercase;
}
.facility-photo.cat-art {
  background: repeating-linear-gradient(135deg, rgba(27,41,66,.06) 0 8px, rgba(27,41,66,.02) 8px 16px), #E8EAF0;
}
.facility-photo.cat-history {
  background: repeating-linear-gradient(135deg, rgba(192,86,61,.10) 0 8px, rgba(192,86,61,.03) 8px 16px), #F2E4DD;
}
.facility-photo.cat-science {
  background: repeating-linear-gradient(45deg, rgba(46,111,184,.10) 0 8px, rgba(46,111,184,.03) 8px 16px), #E1E8F2;
}
.facility-photo.cat-nature {
  background: repeating-linear-gradient(135deg, rgba(47,122,79,.10) 0 8px, rgba(47,122,79,.03) 8px 16px), #DFE9E2;
}
.facility-photo.cat-general {
  background: repeating-linear-gradient(45deg, rgba(193,138,44,.10) 0 8px, rgba(193,138,44,.03) 8px 16px), #F0E8D6;
}
.facility-photo.cat-other {
  background: repeating-linear-gradient(135deg, rgba(27,41,66,.04) 0 8px, rgba(27,41,66,.02) 8px 16px), var(--paper-2);
}
.photo-cat {
  position: absolute; top: var(--s-3); left: var(--s-3);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  color: var(--ink); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill);
}
.facility-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.facility-name {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  line-height: 1.45; color: var(--ink); margin: 0;
  word-break: keep-all; overflow-wrap: break-word;
}
.facility-meta { font-size: 12.5px; color: var(--ink-3); }
.facility-meta .loc {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-2);
}
.facility-foot {
  margin-top: auto; padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.checkin-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.checkin-stat .num { font-family: var(--font-brand); font-weight: 700; font-size: 15px; color: var(--ink); }
.checkin-stat .lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.facility-arrow { font-size: 16px; color: var(--ink-3); transition: transform .15s, color .15s; }
.facility-card:hover .facility-arrow { transform: translateX(2px); color: var(--accent); }

.empty-state {
  padding: var(--s-16) 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
}
.empty-state h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--ink); margin: 0 0 var(--s-3);
}

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-2); padding: var(--s-12) 0 var(--s-16); flex-wrap: wrap;
}
.page-btn {
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm);
  font-family: var(--font-brand); font-weight: 600; font-size: 14px;
  color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; white-space: nowrap; transition: all .15s;
}
.page-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.page-btn.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-btn[aria-disabled="true"] { color: var(--ink-4); cursor: not-allowed; opacity: .5; pointer-events: none; }
.page-ellipsis { color: var(--ink-3); padding: 0 var(--s-1); user-select: none; }

@media (max-width: 980px) {
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .filter-submit { grid-column: 1 / -1; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .filter-bar { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr; }
  .page-head { padding: var(--s-8) 0 var(--s-6); }
}

/* === Page: Museum Show === */
.breadcrumb {
  padding: var(--s-5) 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--ink-3); text-transform: uppercase;
  display: flex; align-items: center; gap: var(--s-3);
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--ink); }

.detail-hero {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: var(--s-10); padding: var(--s-6) 0 var(--s-12);
  align-items: stretch;
}
.hero-photo {
  aspect-ratio: 4/3; border-radius: var(--r-md);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.hero-photo.cat-art {
  background: repeating-linear-gradient(135deg, rgba(27,41,66,.06) 0 8px, rgba(27,41,66,.02) 8px 16px), #E8EAF0;
}
.hero-photo.cat-history {
  background: repeating-linear-gradient(135deg, rgba(192,86,61,.10) 0 8px, rgba(192,86,61,.03) 8px 16px), #F2E4DD;
}
.hero-photo.cat-science {
  background: repeating-linear-gradient(45deg, rgba(46,111,184,.10) 0 8px, rgba(46,111,184,.03) 8px 16px), #E1E8F2;
}
.hero-photo.cat-nature {
  background: repeating-linear-gradient(135deg, rgba(47,122,79,.10) 0 8px, rgba(47,122,79,.03) 8px 16px), #DFE9E2;
}
.hero-photo.cat-general {
  background: repeating-linear-gradient(45deg, rgba(193,138,44,.10) 0 8px, rgba(193,138,44,.03) 8px 16px), #F0E8D6;
}
.hero-photo.cat-other {
  background: repeating-linear-gradient(135deg, rgba(27,41,66,.04) 0 8px, rgba(27,41,66,.02) 8px 16px), var(--paper-2);
}
.photo-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-4); text-transform: uppercase;
}

.hero-info { display: flex; flex-direction: column; gap: var(--s-5); }
.hero-cat-row {
  display: flex; gap: var(--s-2); align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase;
}
.cat-tag {
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(192,86,61,.1); color: var(--accent);
  font-weight: 700; letter-spacing: 0.06em;
}
.site-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none;
  font-family: var(--font-body); font-weight: 500; font-size: 11.5px; letter-spacing: 0;
  text-transform: none; transition: border-color .15s, color .15s;
}
.site-chip:hover { border-color: var(--accent); color: var(--accent); }
.detail-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px); letter-spacing: 0.005em; line-height: 1.4;
  color: var(--ink); margin: 0; word-break: keep-all; overflow-wrap: break-word;
}
.hero-loc {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2);
}
.hero-loc svg { color: var(--accent); flex-shrink: 0; }

.stat-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-1); background: var(--paper-2);
  border-radius: var(--r-md); padding: var(--s-5); margin-top: var(--s-2);
}
.stat { text-align: left; padding: 0 var(--s-3); border-right: 1px dashed var(--line-2); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-brand); font-weight: 700;
  font-size: 28px; line-height: 1; color: var(--ink);
  display: flex; align-items: baseline; gap: 4px;
}
.stat .num .unit { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.stat .lbl {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: uppercase; margin-top: 6px;
}

.checkin-cta {
  background: var(--ink); color: var(--paper); border-radius: var(--r-md);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4);
  box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.checkin-cta::after {
  content:""; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(192,86,61,.5), rgba(192,86,61,0));
  pointer-events: none;
}
.checkin-cta .ttl {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word;
}
.btn-checkin {
  background: var(--accent); color: #fff;
  height: 52px; padding: 0 var(--s-6); border: 0; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  cursor: pointer; transition: background .15s, transform .08s; width: 100%;
  letter-spacing: 0.02em; text-decoration: none;
}
.btn-checkin:hover { background: #b04d34; }
.btn-checkin:active { transform: translateY(1px); }
.btn-checkin--login { background: var(--ink); box-shadow: none; }

.body-grid {
  display: grid; grid-template-columns: 1fr 340px;
  gap: var(--s-12); padding-bottom: var(--s-20);
}
.section-block { padding: var(--s-10) 0; border-top: 1px solid var(--line); }
.section-block:first-child { border-top: 0; padding-top: 0; }
.block-eyebrow { display:flex; align-items:center; gap: var(--s-3); margin-bottom: var(--s-5); }
.block-eyebrow::before { content:""; width: 24px; height: 1px; background: var(--ink-3); }
.block-h {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.4; margin: 0 0 var(--s-5);
}

.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left; padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top;
}
.info-table th {
  width: 130px; color: var(--ink-3);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  padding-top: calc(var(--s-4) + 3px);
}
.info-table td { color: var(--ink); line-height: 1.85; }
.info-table td a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.info-table td a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.map-link { margin-left: 8px; font-size: 12px; }

.checkin-list { display: flex; flex-direction: column; gap: var(--s-5); }
.checkin-item {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4);
  padding: var(--s-5); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); transition: border-color .15s;
}
.checkin-item:hover { border-color: var(--line-2); }
.ci-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2);
  display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 700; font-size: 16px; color: var(--ink);
}
.ci-avatar.ink { background: var(--ink); color: var(--paper); }
.ci-avatar.accent { background: var(--accent); color: #fff; }
.ci-avatar.tint { background: rgba(27,41,66,.1); color: var(--primary); }
.ci-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ci-head { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.ci-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.ci-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.ci-note {
  font-family: var(--font-display); font-weight: 500;
  font-size: 15px; line-height: 1.85; color: var(--ink);
  margin: 0; word-break: keep-all; overflow-wrap: break-word;
}

.sidebar { display: flex; flex-direction: column; gap: var(--s-5); position: sticky; top: var(--s-6); align-self: start; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.side-card .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: var(--s-3);
}
.side-card .value {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; line-height: 1.5; color: var(--ink); margin-bottom: var(--s-2);
}

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .15s, color .15s;
}
.back-link:hover { border-color: var(--ink-3); color: var(--ink); }

@media (max-width: 980px) {
  .detail-hero { grid-template-columns: 1fr; }
  .body-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .sidebar { position: static; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .detail-hero { gap: var(--s-6); padding: var(--s-4) 0 var(--s-8); }
}

/* === Page: Checkin Form === */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,248,243,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 720px; margin: 0 auto;
  padding: var(--s-4) var(--s-6);
  display: flex; align-items: center; gap: var(--s-4);
}
.topbar-left { display: flex; align-items: center; gap: var(--s-4); flex: 1; min-width: 0; }
.topbar-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.topbar-brand img { width: 22px; height: 22px; display: block; }
.topbar-brand .word { font-family: var(--font-brand); font-weight: 800; font-size: 17px; letter-spacing: -0.045em; line-height: 1; }
.topbar-divider { width: 1px; height: 18px; background: var(--line-2); flex-shrink: 0; }
.btn-cancel {
  background: transparent; border: 0;
  font-family: var(--font-body); font-size: 13.5px; color: var(--ink-3);
  cursor: pointer; padding: 6px 10px; flex-shrink: 0;
}
.btn-cancel:hover { color: var(--ink); }

.page { max-width: 640px; margin: 0 auto; padding: var(--s-10) var(--s-6) var(--s-16); }

.checkin-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: var(--s-4);
}
.checkin-eyebrow::before { content:""; width: 24px; height: 1px; background: var(--accent); }
.checkin-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 36px); line-height: 1.4;
  margin: 0 0 var(--s-2); color: var(--ink); word-break: keep-all;
}
.checkin-sub { color: var(--ink-3); font-size: 14px; margin: 0 0 var(--s-8); }

.facility-card-wrap {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-5);
  display: flex; gap: var(--s-5); align-items: center;
  margin-bottom: var(--s-8); position: relative; overflow: hidden;
}
.facility-card-wrap::after {
  content: ""; position: absolute; top: -1px; right: -1px;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, transparent 50%, rgba(192,86,61,.1) 50%);
  pointer-events: none;
}
.facility-thumb {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--r-sm);
  background: var(--ink); display: grid; place-items: center;
  color: rgba(255,255,255,.9);
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
}
.facility-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.facility-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.facility-name-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); line-height: 1.4; }

.field-group { margin-bottom: var(--s-8); }
.field-label-l {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--s-3);
}
.field-label-l .label {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
}
.field-label-l .label .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); font-weight: 500;
  background: rgba(192,86,61,.1); border-radius: 4px;
  padding: 2px 6px; letter-spacing: 0.04em;
}
.field-label-l .meta { font-size: 12px; color: var(--ink-3); }

.date-picker-wrap {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-3);
}
.date-chips { display: flex; gap: var(--s-2); }
.date-chip {
  flex: 1; padding: var(--s-3) var(--s-2); border-radius: var(--r-sm);
  background: transparent; border: 1.5px solid transparent;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: background .15s, border-color .15s;
}
.date-chip:hover { background: var(--paper-2); }
.date-chip .chip-day { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
.date-chip .chip-num { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); line-height: 1; }
.date-chip .chip-month { font-size: 10.5px; color: var(--ink-3); font-family: var(--font-mono); }
.date-chip.is-active { background: var(--ink); border-color: var(--ink); }
.date-chip.is-active .chip-day { color: rgba(192,86,61,.9); }
.date-chip.is-active .chip-num, .date-chip.is-active .chip-month { color: var(--paper); }

.custom-date {
  flex: 0 0 auto; min-width: 64px;
  background: var(--paper-2); border: 1.5px solid var(--line-2);
}
.date-custom-input {
  width: 100%; border: 0; background: transparent;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  outline: none; margin-top: var(--s-3); display: none;
}
.date-hidden { display: none; }

.memo-wrap {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5) var(--s-3);
  transition: border-color .15s, box-shadow .15s;
}
.memo-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,41,66,.08); }
.memo-wrap.is-error { border-color: var(--danger); }
.memo-textarea {
  width: 100%; min-height: 140px; border: 0; outline: none; resize: vertical;
  font-family: var(--font-body); font-size: 15px; line-height: 1.95;
  color: var(--ink); background: transparent;
}
.memo-textarea::placeholder { color: var(--ink-4); }
.memo-foot {
  display: flex; justify-content: flex-end; align-items: center;
  margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line);
}
.char-count { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.char-count .cur { color: var(--ink-2); font-weight: 500; }
.char-count.is-warn .cur { color: var(--warning); }
.char-count.is-danger .cur { color: var(--danger); }
.char-hint { color: var(--ink-4); }

.vis-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.vis-card {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5); cursor: pointer;
  display: flex; gap: var(--s-3); align-items: flex-start; transition: all .15s;
}
.vis-card:hover { border-color: var(--ink-3); }
.vis-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--ink-2); display: grid; place-items: center;
}
.vis-text strong { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); display: block; line-height: 1.3; }
.vis-text span { font-size: 11.5px; color: var(--ink-3); display: block; margin-top: 3px; line-height: 1.5; }
.vis-card.is-on { background: var(--ink); border-color: var(--ink); }
.vis-card.is-on .vis-icon { background: rgba(255,255,255,.15); color: var(--paper); }
.vis-card.is-on.public .vis-icon { background: var(--accent); color: #fff; }
.vis-card.is-on .vis-text strong { color: var(--paper); }
.vis-card.is-on .vis-text span { color: rgba(250,248,243,.65); }
.vis-card input[type="radio"] { display: none; }

.submit-bar {
  margin-top: var(--s-10); padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex; gap: var(--s-3); align-items: center;
}
.btn-primary-submit {
  flex: 1; height: 56px; padding: 0 var(--s-6);
  background: var(--accent); color: #fff; border: 0; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  transition: background .15s, transform .08s;
  box-shadow: 0 8px 22px -10px rgba(192,86,61,.6);
}
.btn-primary-submit:hover { background: #b04d34; }
.btn-primary-submit:active { transform: translateY(1px); }
.btn-secondary-submit {
  flex-shrink: 0; height: 56px; padding: 0 var(--s-5);
  background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--ink-2); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-secondary-submit:hover { border-color: var(--ink-3); color: var(--ink); }
.submit-hint { margin-top: var(--s-4); font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.7; }

@media (max-width: 640px) {
  .topbar-inner { padding: var(--s-3) var(--s-4); }
  .page { padding: var(--s-6) var(--s-4) var(--s-12); }
  .vis-row { grid-template-columns: 1fr; }
  .date-chips { flex-wrap: nowrap; overflow-x: auto; }
}

/* === Page: Checkin History === */
.page-header {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: var(--s-12) 0 0;
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: var(--s-4);
}
.page-eyebrow::before { content:""; width: 24px; height: 1px; background: var(--accent); }
.page-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px); line-height: 1.25;
  margin: 0 0 var(--s-3); color: var(--ink); word-break: keep-all;
}
.page-h1 .accent { color: var(--accent); }
.page-sub { font-size: 15px; color: var(--ink-2); line-height: 2; margin: 0; max-width: 620px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5); margin: var(--s-10) 0 0;
  padding-bottom: var(--s-8);
}
.stat-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-5) var(--s-6);
}
.stat-card .lbl {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: var(--s-2);
}
.stat-card .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 4vw, 48px); line-height: 1; color: var(--ink);
  display: flex; align-items: baseline; gap: 4px;
}
.stat-card .num .unit { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.stat-card.is-accent { background: var(--ink); border-color: var(--ink); }
.stat-card.is-accent .lbl { color: rgba(192,86,61,.8); }
.stat-card.is-accent .num { color: var(--paper); }
.stat-card.is-accent .num .unit { color: rgba(250,248,243,.65); }
.stat-value { font-size: var(--t-display-m); }

.timeline { padding: var(--s-10) 0 var(--s-16); }

.month-block { margin-bottom: var(--s-12); }
.month-head {
  display: flex; align-items: baseline; gap: var(--s-4);
  margin-bottom: var(--s-6); padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.month-head .y { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); }
.month-head .m { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--ink); line-height: 1; }
.month-head .ct { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); }

.stamp {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-5);
  position: relative; transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.stamp:nth-child(3n)   { transform: rotate(-0.6deg); }
.stamp:nth-child(3n+1) { transform: rotate(0.4deg); }
.stamp:nth-child(3n+2) { transform: rotate(-0.2deg); }
.stamp:hover { transform: rotate(0) translateY(-3px); box-shadow: var(--shadow-2); z-index: 2; }

.stamp .head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s-3); margin-bottom: var(--s-3);
}
.stamp .date-stamp {
  flex-shrink: 0; border: 1.5px solid var(--accent); color: var(--accent);
  border-radius: var(--r-xs); padding: 4px 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; transform: rotate(-2deg); background: var(--paper);
}
.stamp .date-stamp .day {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  line-height: 1; display: block; letter-spacing: -0.02em; color: var(--accent);
}
.stamp .vis {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  color: var(--ink-4); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 2px;
}
.stamp .vis.private { color: var(--ink-3); }

.stamp .museum-cat {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px;
}
.stamp .museum-name {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--ink); line-height: 1.4; margin-bottom: var(--s-3);
  word-break: keep-all;
}
.stamp .museum-name a { color: inherit; text-decoration: none; }
.stamp .museum-name a:hover { color: var(--accent); }
.stamp .memo {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.95;
  border-left: 2px solid var(--line-2); padding-left: var(--s-3);
  margin-bottom: var(--s-4);
}
.stamp .memo.is-empty { color: var(--ink-4); font-style: italic; border-color: var(--line); }

.stamp .actions {
  position: absolute; top: var(--s-3); right: var(--s-3);
  display: flex; gap: 4px; opacity: 0; transition: opacity .15s;
}
.stamp:hover .actions { opacity: 1; }
.act-btn {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-3); cursor: pointer; display: grid; place-items: center;
}
.act-btn:hover { color: var(--ink); border-color: var(--ink-3); background: var(--paper-2); }
.act-btn.is-danger:hover { color: var(--danger); border-color: var(--danger); }

.empty-state {
  max-width: 540px; margin: var(--s-12) auto;
  padding: var(--s-12) var(--s-6); text-align: center;
  background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-md);
}
.empty-state .icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--paper-2);
  display: grid; place-items: center; margin: 0 auto var(--s-6); color: var(--ink-3);
}
.empty-state h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  color: var(--ink); margin: 0 0 var(--s-3); word-break: keep-all;
}
.empty-state p { font-size: 14px; color: var(--ink-2); line-height: 2; margin: 0 0 var(--s-6); }
.empty-state .btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 var(--s-6);
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: var(--r-sm); font-weight: 700; font-size: 14.5px;
}
.empty-state .btn:hover { background: #b04d34; }

.pagi {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-2); padding: var(--s-8) 0 var(--s-4);
  font-family: var(--font-mono); font-size: 12.5px;
}
.pagi a, .pagi span {
  display: grid; place-items: center;
  min-width: 36px; height: 36px; padding: 0 var(--s-3);
  border-radius: var(--r-xs); color: var(--ink-2); text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
}
.pagi a:hover { background: var(--paper-2); }
.pagi .is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.pagi .ellipsis { color: var(--ink-4); cursor: default; }
.pagi .arrow { border-color: var(--line); }
.pagi .arrow[aria-disabled="true"] { opacity: .4; pointer-events: none; }

@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .stamp { transform: none !important; }
  .month-head .m { font-size: 22px; }
}

/* ============ STATIC PAGES ============ */

/* page-head extensions for static doc pages */
.page-head--doc {
  border-bottom: 1px solid var(--line);
  padding: var(--s-12) 0 var(--s-10);
  background: var(--paper-2);
}
.page-head--doc .crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}
.page-head--doc .crumbs a { color: var(--ink-3); text-decoration: none; }
.page-head--doc .crumbs a:hover { color: var(--ink-2); }
.page-head--doc .crumbs .sep { color: var(--ink-4); margin: 0 6px; }
.page-head--doc h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.page-head--doc .sub {
  margin-top: var(--s-4);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.95;
  max-width: 58ch;
}
.page-head--doc .meta {
  margin-top: var(--s-6);
  display: flex; gap: var(--s-6); flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.page-head--doc .meta .k {
  color: var(--ink-4);
  text-transform: uppercase;
  margin-right: 6px;
  letter-spacing: 0.1em;
}
.page-head--doc .meta .v { color: var(--ink-2); }

/* layout */
.doc-main {
  padding-top: var(--s-10);
  padding-bottom: var(--s-16);
}
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-16);
  align-items: start;
}
@media (max-width: 880px) {
  .doc-layout { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* TOC */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-5));
  max-height: calc(100vh - var(--nav-h) - var(--s-10));
  overflow-y: auto;
  padding-right: var(--s-3);
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.toc ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 7px 0 7px 32px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 1px solid var(--line);
  margin-left: 8px;
  position: relative;
  transition: color .15s, border-color .15s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 12px; top: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.toc a:hover { color: var(--ink); border-left-color: var(--ink-3); }
.toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--accent); }
.toc a.is-active::before { color: var(--accent); }
@media (max-width: 880px) {
  .toc {
    position: static; max-height: none; overflow: visible;
    padding: var(--s-4) var(--s-5);
    background: var(--paper-2); border-radius: var(--r-md);
    border: 1px solid var(--line);
  }
}

/* doc body */
.doc {
  max-width: 720px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
}
.doc .lead {
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--ink);
  padding-bottom: var(--s-8);
  margin: 0 0 var(--s-10);
  border-bottom: 1px solid var(--line);
}
.doc section + section { margin-top: var(--s-12); }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  padding-top: var(--s-2);
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  scroll-margin-top: calc(var(--nav-h) + var(--s-5));
}
.doc h2 .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.doc h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: var(--s-8) 0 var(--s-3);
  line-height: 1.7;
}
.doc p { margin: 0 0 var(--s-5); color: var(--ink); text-wrap: pretty; }
.doc p:last-child { margin-bottom: 0; }
.doc ol, .doc ul {
  margin: 0 0 var(--s-5);
  padding-left: 0;
  list-style: none;
  counter-reset: item;
}
.doc ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 2.4em;
  margin-bottom: var(--s-3);
  line-height: 1.95;
}
.doc ol > li::before {
  content: counter(item) ".";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  width: 2em;
  text-align: right;
  padding-right: 0.5em;
}
.doc ol ol { counter-reset: item; }
.doc ol ol > li {
  padding-left: 2.4em;
  margin-top: var(--s-2);
  margin-bottom: var(--s-1);
  font-size: 14px;
  color: var(--ink-2);
}
.doc ol ol > li::before {
  content: "(" counter(item) ")";
  color: var(--ink-4);
  font-size: 12px;
}
.doc ul > li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: var(--s-2);
}
.doc ul > li::before {
  content: "";
  position: absolute; left: 0.5em; top: 0.95em;
  width: 4px; height: 1px;
  background: var(--ink-3);
}
.doc dl {
  margin: 0 0 var(--s-5);
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: var(--s-3) var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.doc dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  padding-top: 1px;
}
.doc dd { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.95; }
@media (max-width: 640px) {
  .doc dl { grid-template-columns: 1fr; gap: var(--s-1) 0; }
  .doc dd { padding-bottom: var(--s-3); border-bottom: 1px dashed var(--line); }
  .doc dd:last-child { border-bottom: 0; padding-bottom: 0; }
}
.doc .callout {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  background: var(--paper-2);
  border-left: 3px solid var(--ink-3);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.doc .callout .ct-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.doc .callout.is-warn { border-left-color: var(--warning); background: rgba(193,138,44,.06); }
.doc .callout.is-warn .ct-label { color: var(--warning); }
.doc .callout.is-accent { border-left-color: var(--accent); background: rgba(192,86,61,.05); }
.doc .callout.is-accent .ct-label { color: var(--accent); }
.doc strong { font-weight: 700; color: var(--ink); }
.doc em { font-style: normal; color: var(--ink); background: rgba(192,138,44,.15); padding: 0 3px; }
.doc code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.doc a.linkish {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.doc a.linkish:hover { color: var(--accent); border-bottom-color: var(--accent); }
.doc .tbl-wrap { margin: var(--s-5) 0; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc th, .doc td {
  text-align: left; padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.8;
}
.doc th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.doc section { scroll-margin-top: calc(var(--nav-h) + var(--s-5)); }

/* doc footer meta */
.doc-foot {
  margin-top: var(--s-16);
  padding-top: var(--s-8);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: end;
}
.doc-foot .hist {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.95;
  letter-spacing: 0.04em;
}
.doc-foot .hist .hist-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: var(--s-2);
  display: block;
}
.doc-foot .hist-list { list-style: none; margin: 0; padding: 0; }
.doc-foot .hist-list li { display: flex; gap: var(--s-4); }
.doc-foot .hist-list .d { color: var(--ink-2); flex-shrink: 0; }
.doc-foot .hist-list .t { color: var(--ink-3); }
.doc-foot .actions { display: flex; gap: var(--s-3); }
.doc-foot .btn-line {
  height: 40px; padding: 0 var(--s-5);
  background: transparent; border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.doc-foot .btn-line:hover { background: var(--ink); color: var(--paper); }
.doc-foot .btn-line--fill { background: var(--ink); color: var(--paper); }
.doc-foot .btn-line--fill:hover { background: transparent; color: var(--ink); }
@media (max-width: 640px) {
  .doc-foot { grid-template-columns: 1fr; }
  .doc-foot .actions { flex-wrap: wrap; }
}

/* related links */
.related {
  margin-top: var(--s-10);
  padding: var(--s-5) var(--s-6);
  background: var(--paper-2);
  border-radius: var(--r-md);
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  font-size: 13px;
}
.related .lb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.related a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-2);
}
.related a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* print */
@media print {
  .toc, .doc-foot .actions, .related { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
  .page-head--doc { background: transparent; padding: 0 0 var(--s-6); }
  .doc-main { padding: 0; }
  .doc { max-width: none; font-size: 11pt; line-height: 1.8; }
}

@media (max-width: 640px) {
  .page-head--doc { padding: var(--s-8) 0 var(--s-6); }
  .page-head--doc h1 { font-size: 26px; }
}
