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

:root {
  --ink:    #0f0e0d;
  --paper:  #faf8f4;
  --gold:   #b89a5a;
  --goldlt: #e2d0a8;
  --muted:  #9e9890;
  --border: #e8e2d8;
  --white:  #ffffff;
  --dock-h: 68px;
}

html, body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── 波紋 ── */
.ripple-container {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 0;
}
.ripple {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: ripple 3s ease-out infinite;
}
.ripple:nth-child(2) { animation-delay: 1s; }
.ripple:nth-child(3) { animation-delay: 2s; }
@keyframes ripple {
  0%   { width: 8px;   height: 8px;   opacity: 0.5; }
  100% { width: 280px; height: 280px; opacity: 0; }
}

/* ── ローディング ── */
.loading {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.loading-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

/* ── ポータル（スクロール領域） ── */
.portal {
  position: relative; z-index: 1;
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px calc(var(--dock-h) + 32px);
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ① ヘッダー ── */
.portal-header {
  padding-top: 48px;
  padding-bottom: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.yui-mark {
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}
.store-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1.3;
}
.store-name.font-serif   { font-family: 'Shippori Mincho', serif; }
.store-name.font-gothic  { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 300; }
.store-name.font-display { font-family: 'DM Serif Display', serif; font-style: italic; }

.store-tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-top: 6px;
  margin-bottom: 20px;
}

.message-block {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 16px 18px;
}
.message-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.message-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink);
  white-space: pre-wrap;
}
.message-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* ── ② でかウィジェット ── */
.widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease forwards 0.2s;
  opacity: 0;
}
.big-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.big-widget:hover  { background: #fdf9f3; border-color: var(--goldlt); border-left-color: var(--gold); }
.big-widget:active { background: #f8f3ea; transform: scale(0.99); }
.widget-label { font-weight: 400; }
.widget-arrow { font-size: 12px; color: var(--gold); flex-shrink: 0; margin-left: 12px; }

/* ── フッター ── */
.portal-footer {
  text-align: center;
  animation: fadeUp 0.8s ease forwards 0.35s;
  opacity: 0;
}
.footer-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--goldlt), transparent);
  margin-bottom: 14px;
}
.footer-brand { font-size: 9px; letter-spacing: 0.2em; color: var(--muted); }

/* ── ③ Dock ── */
.dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  height: var(--dock-h);
  background: var(--paper);
  border-top: 1px solid var(--border);
  align-items: center;
  z-index: 100;
}
.dock-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s;
}
.dock-item:active { color: var(--gold); }
.dock-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dock-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: inherit;
}

/* ── トースト ── */
.toast {
  position: fixed;
  bottom: calc(var(--dock-h) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15,14,13,0.85);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── モーダル（ボトムシート） ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,14,13,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--white);
  border-radius: 12px 12px 0 0;
  padding: 32px 24px calc(var(--dock-h) + 16px);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0); }

.modal-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.modal-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink);
  white-space: pre-wrap;
  margin-bottom: 24px;
}
.modal-close {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── エラー ── */
.error-screen {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
}
.error-mark { font-family: 'Shippori Mincho', serif; font-size: 24px; color: var(--goldlt); }
.error-text { font-family: 'Noto Serif JP', serif; font-size: 14px; color: var(--muted); }
.error-sub  { font-size: 11px; color: var(--border); }
