/* ============================================================
   booknator — 書店の平台
   無彩色(和紙×墨)ベース + 朱色1色 / スマホファースト
   ============================================================ */

:root {
  --paper: #f7f6f2;        /* 和紙 */
  --paper-deep: #efede6;
  --ink: #1c1b18;          /* 墨 */
  --ink-soft: #55534c;
  --ink-faint: #8b887e;
  --line: #dedbd2;
  --shu: #c73e2e;          /* 朱 — 唯一のアクセント */
  --shu-deep: #a83225;
  --shu-wash: #f7e8e5;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(28, 27, 24, 0.08), 0 6px 18px -6px rgba(28, 27, 24, 0.14);
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  /* 紙の質感: ごく薄いノイズ */
  background-image: radial-gradient(rgba(28, 27, 24, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ============ ヘッダー ============ */

.site-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 0 10px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand .brand-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--shu);
  border-radius: 50%;
  margin-left: 2px;
}

.head-note {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* ============ トップ: ジャンル選択 ============ */

.hero { padding: 40px 0 8px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 6vw, 44px);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.hero h1 em {
  font-style: normal;
  color: var(--shu);
}

.hero p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 34em;
}

.hero .hero-count {
  font-family: var(--font-display);
  color: var(--ink);
}

.genre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 28px 0 60px;
}

@media (min-width: 600px) {
  .genre-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 960px) {
  .genre-grid { grid-template-columns: repeat(3, 1fr); }
}

.genre-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.genre-card:hover, .genre-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--shu);
  box-shadow: 0 10px 28px -8px rgba(199, 62, 46, 0.25);
}

/* 平台: 代表書影を扇状に並べる */
.shelf {
  position: relative;
  height: 132px;
  background: linear-gradient(180deg, var(--paper-deep), #e6e3da);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.shelf img {
  width: 76px;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 4px 14px -2px rgba(28, 27, 24, 0.35);
  margin: 0 -12px;
  transform: translateY(14px) rotate(calc((var(--n) - 2) * 3.5deg));
  transform-origin: bottom center;
  transition: transform 0.25s ease;
  z-index: calc(10 - max(var(--n) - 2, 2 - var(--n)));
  position: relative;
}

.genre-card:hover .shelf img {
  transform: translateY(8px) rotate(calc((var(--n) - 2) * 4.5deg));
}

.g-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.genre-card .g-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 10px;
}

.genre-card .g-count {
  font-size: 11px;
  color: var(--ink-faint);
}

.genre-card .g-arrow {
  color: var(--shu);
  font-size: 18px;
  transition: transform 0.18s ease;
}

.genre-card:hover .g-arrow { transform: translateX(4px); }

/* ============ 探索: 進捗 ============ */

.explore-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.turn-label {
  font-family: var(--font-display);
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.turn-label strong { font-size: 19px; color: var(--shu); }

.progress-beads { display: flex; gap: 6px; flex: 1; }

.bead {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--line);
  transition: background 0.4s ease;
}

.bead.done { background: var(--shu); }
.bead.now {
  background: linear-gradient(90deg, var(--shu) 50%, var(--line) 50%);
  animation: pulse-bead 1.6s ease-in-out infinite;
}

@keyframes pulse-bead { 50% { opacity: 0.55; } }

.progress-hint {
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ============ 軸チップ ============ */

.axis-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 12px;
  scrollbar-width: none;
  max-width: 1040px;
  margin: 0 auto;
}

.axis-row::-webkit-scrollbar { display: none; }

.axis-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}

.axis-chip:active { transform: scale(0.96); }
.axis-chip:hover { border-color: var(--shu); color: var(--shu); }

.axis-row.attention .axis-chip {
  border-color: var(--shu);
  color: var(--shu-deep);
  background: var(--shu-wash);
  animation: chip-nudge 0.9s ease 2;
}

@keyframes chip-nudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}

/* ============ 書影グリッド ============ */

.grid-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-soft);
  padding: 18px 0 4px;
  letter-spacing: 0.04em;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 12px 0 110px;
}

@media (min-width: 900px) {
  .book-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.book-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  animation: card-in 0.5s ease forwards;
}

/* 段差のある登場アニメーション */
.book-card:nth-child(1) { animation-delay: 0.02s; }
.book-card:nth-child(2) { animation-delay: 0.07s; }
.book-card:nth-child(3) { animation-delay: 0.12s; }
.book-card:nth-child(4) { animation-delay: 0.17s; }
.book-card:nth-child(5) { animation-delay: 0.22s; }
.book-card:nth-child(6) { animation-delay: 0.27s; }
.book-card:nth-child(7) { animation-delay: 0.32s; }
.book-card:nth-child(8) { animation-delay: 0.37s; }

@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

.cover-box {
  position: relative;
  aspect-ratio: 5 / 7;
  background: var(--paper-deep);
  overflow: hidden;
}

.cover-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

.cluster-tag {
  position: absolute;
  left: 0; top: 10px;
  max-width: 92%;
  background: rgba(28, 27, 24, 0.82);
  color: #f7f6f2;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 10px 4px 8px;
  border-radius: 0 999px 999px 0;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 朱印スタンプ(好き) */
.stamp {
  position: absolute;
  right: 8px; top: 8px;
  width: 44px; height: 44px;
  border: 2.5px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  transform: scale(0) rotate(-18deg);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.book-card.is-liked .stamp { transform: scale(1) rotate(-8deg); }
.book-card.is-liked .cover-box img { transform: scale(1.03); }
.book-card.is-liked { border-color: var(--shu); }

.book-card.is-disliked .cover-box img { filter: grayscale(1) brightness(0.82); }
.book-card.is-disliked { opacity: 0.9; }

.read-badge {
  position: absolute;
  left: 8px; bottom: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.book-card.is-read .read-badge { transform: scale(1); }
.book-card.is-read .cover-box img { filter: sepia(0.25) brightness(0.92); }

.card-meta { padding: 8px 10px 6px; flex: 1; }

.card-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.card-author {
  margin-top: 2px;
  font-size: 10px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}

.act {
  min-height: 44px;
  border: none;
  background: none;
  font-size: 11px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.act + .act { border-left: 1px solid var(--line); }

.act .ico { font-size: 15px; line-height: 1; }

.act:active { transform: scale(0.94); }

.act-like.on { background: var(--shu-wash); color: var(--shu-deep); font-weight: 700; }
.act-dislike.on { background: var(--paper-deep); color: var(--ink); font-weight: 700; }
.act-read.on { background: var(--ink); color: var(--paper); font-weight: 700; }

/* ============ 下部固定バー ============ */

.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(247, 246, 242, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.bottom-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pick-summary { font-size: 12px; color: var(--ink-soft); flex: 1; }
.pick-summary strong { color: var(--shu); font-size: 16px; font-family: var(--font-display); }

.next-btn {
  min-height: 50px;
  padding: 0 34px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.next-btn:active { transform: scale(0.97); }
.next-btn.primary { background: var(--shu); }
.next-btn:disabled { opacity: 0.4; cursor: default; }

/* ============ 結果画面 ============ */

.result-head {
  text-align: center;
  padding: 44px 0 10px;
}

.result-head .res-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--shu);
  font-weight: 700;
}

.result-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 5.5vw, 36px);
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.result-head p { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }

.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0 60px;
  max-width: 720px;
  margin: 0 auto;
}

.result-item {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(12px);
  animation: card-in 0.5s ease forwards;
}

.result-item:nth-child(n) { animation-delay: calc(0.05s * var(--i, 0)); }

.res-rank {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--shu);
  min-width: 1.6em;
  text-align: center;
  line-height: 1.2;
}

.res-cover {
  width: 72px;
  flex-shrink: 0;
  aspect-ratio: 5 / 7;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-deep);
}

.res-cover img { width: 100%; height: 100%; object-fit: cover; }

.res-body { flex: 1; min-width: 0; }
.res-title { font-size: 14px; font-weight: 700; line-height: 1.5; }
.res-author { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.res-meta { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.res-meta .star { color: var(--shu); }

.res-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  min-height: 40px;
  padding: 8px 18px;
  background: var(--shu);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.res-cta:hover { background: var(--shu-deep); }

.retry-row { text-align: center; padding: 4px 0 70px; }

.retry-link {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============ フォールバックパネル ============ */

.panel {
  max-width: 480px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 24px;
  text-align: center;
}

.panel h3 { font-family: var(--font-display); font-size: 18px; }
.panel p { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.panel .panel-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============ SEOページ共通 ============ */

.breadcrumb {
  font-size: 11px;
  color: var(--ink-faint);
  padding: 14px 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--shu); }

/* 書籍詳細 */
.book-detail { padding: 12px 0 8px; }

.bd-main {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
}

.bd-cover { width: 128px; flex-shrink: 0; }

@media (min-width: 720px) {
  .bd-cover { width: 200px; }
}

.bd-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 6px 18px -4px rgba(28, 27, 24, 0.35);
}

.bd-info { flex: 1; min-width: 0; }

.bd-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 4.5vw, 28px);
  font-weight: 700;
  line-height: 1.45;
}

.bd-author { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

.bd-meta { margin-top: 14px; font-size: 12px; }
.bd-meta div { display: flex; gap: 10px; padding: 3px 0; }
.bd-meta dt { color: var(--ink-faint); min-width: 4.5em; }
.bd-meta .star { color: var(--shu); }

.bd-cta { margin-top: 18px; font-size: 14px; padding: 12px 24px; }

.bd-desc {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.bd-desc h2, .similar-books h2, .genre-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.bd-desc p { font-size: 13px; line-height: 1.9; color: var(--ink-soft); }

.similar-books, .genre-section { padding: 26px 0 6px; }

/* 一覧タイル */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (min-width: 720px) {
  .tile-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

.book-tile { text-decoration: none; display: block; min-width: 0; }

.tile-cover {
  display: block;
  aspect-ratio: 5 / 7;
  background: var(--paper-deep);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.book-tile:hover .tile-cover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(199, 62, 46, 0.3);
}

.tile-cover img { width: 100%; height: 100%; object-fit: cover; }

.tile-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 7px;
}

.tile-author {
  display: block;
  font-size: 10px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 26px 0 40px;
  background: var(--paper-deep);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 14px;
}

.footer-nav a {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--shu); }

.footer-note { font-size: 10px; color: var(--ink-faint); line-height: 1.8; }

/* ============ 診断ウィザード ============ */

.diag-question {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-top: 30px;
  text-align: center;
}

.diag-sub {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
}

.diag-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 24px 0 10px;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .diag-options { gap: 18px; }
}

.diag-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 0 0 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  opacity: 0;
  transform: translateY(12px);
  animation: card-in 0.45s ease forwards;
}

.diag-card:nth-child(1) { animation-delay: 0.03s; }
.diag-card:nth-child(2) { animation-delay: 0.09s; }
.diag-card:nth-child(3) { animation-delay: 0.15s; }
.diag-card:nth-child(4) { animation-delay: 0.21s; }

.diag-card:hover, .diag-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--shu);
  box-shadow: 0 10px 26px -8px rgba(199, 62, 46, 0.28);
}

.diag-card:active { transform: scale(0.97); }

.diag-covers {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 118px;
  background: linear-gradient(180deg, var(--paper-deep), #e8e5dc);
  align-items: flex-end;
  overflow: hidden;
}

.diag-covers img {
  width: 72px;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 4px 12px -2px rgba(28, 27, 24, 0.35);
  transform: translateY(10px);
}

.diag-covers img:first-child { transform: translateY(10px) rotate(-4deg); margin-right: -10px; }
.diag-covers img:last-child { transform: translateY(14px) rotate(4deg); }

.diag-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0 10px;
  min-height: 24px;
  display: flex;
  align-items: center;
}

.diag-back-row { text-align: center; padding: 16px 0 60px; }

.diag-back {
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
}

/* えらび方切替(TOP) */
.mode-switch {
  display: flex;
  gap: 0;
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px;
  width: fit-content;
  box-shadow: var(--shadow-card);
}

.mode-btn {
  border: none;
  background: none;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.18s ease;
}

.mode-btn.on {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.mode-note { font-size: 11px; color: var(--ink-faint); margin-top: 8px; }

/* ローディング */
.loading {
  display: none;
  padding: 60px 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
}

.loading.show { display: block; }

.loading .dots::after {
  content: "…";
  animation: dots 1.2s steps(3) infinite;
}

@keyframes dots { 0% { content: ""; } 33% { content: "・"; } 66% { content: "・・"; } 100% { content: "・・・"; } }

.foot-note {
  padding: 20px 16px calc(90px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 10px;
  color: var(--ink-faint);
}
