/* =========================================================
   遊び場ログ — Pastel UI (Home / List / Detail カンプ準拠)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&family=Zen+Maru+Gothic:wght@500;700;900&family=M+PLUS+Rounded+1c:wght@500;700;800;900&display=swap');

:root {
  /* ベース */
  --bg:           #fdfdfe;
  --surface:      #ffffff;
  --surface-2:    #f7f9fc;
  --surface-3:    #f0f3f9;
  --border:       #f1f3f7;
  --border-2:     #e6e9f0;

  /* テキスト */
  --text:         #1a2a4d;       /* deep navy */
  --text-soft:    #44506b;
  --text-muted:   #6b7280;
  --text-faint:   #9ca3af;

  /* アクセント(カンプより) */
  --primary:      #6c5ce7;        /* iris */
  --primary-deep: #5b4bd6;
  --primary-soft: #a594ff;
  --primary-tint: #efeaff;        /* very light lavender */
  --primary-bg:   #f4efff;

  --pink:         #ec4899;
  --pink-soft:    #fbcfe8;
  --pink-tint:    #fdeef7;

  --mint:         #10b981;
  --mint-soft:    #6ee7b7;
  --mint-tint:    #e7f8f1;

  --sky:          #3b82f6;
  --sky-soft:     #93c5fd;
  --sky-tint:     #e7f0ff;

  --teal:         #14b8a6;
  --teal-tint:    #d8f3ee;

  --gold:         #f59e0b;

  /* シャドウ */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 2px 8px -2px rgba(20,30,70,.05), 0 1px 2px rgba(15,23,42,.03);
  --shadow-md: 0 8px 24px -8px rgba(20,30,70,.08), 0 2px 6px -2px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 60px -20px rgba(28,25,80,.16);
  --shadow-glow:0 12px 36px -10px rgba(108,92,231,.32);

  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --side-w: 240px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }

/* iOS Safari のフォーカス時自動ズーム防止: 入力要素は最低 16px */
input, textarea, select { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14.5px;
  font-feature-settings: "palt" 1;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; }

#app { min-height: 100vh; padding-bottom: 92px; }

/* =========================================================
   ロゴ
   ========================================================= */
.brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo .logo-mark {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.brand-logo .logo-mark img,
.brand-logo .logo-mark svg { width: 100%; height: 100%; object-fit: contain; }
.brand-logo .logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.brand-logo .logo-text {
  font-size: 22px; font-weight: 500; letter-spacing: 0.18em;
  color: #1e3a8a;
  font-family: 'Zen Maru Gothic','Hiragino Maru Gothic ProN','M PLUS Rounded 1c','Noto Sans JP', sans-serif;
}
.brand-logo .logo-text-wrap { gap: 0; }
.brand-logo .logo-sub {
  font-size: 11.5px; color: var(--text-muted); margin-top: 6px;
  font-weight: 500;
}

/* =========================================================
   モバイルヘッダー
   ========================================================= */
.mobile-header {
  padding: 16px 18px 18px;
  padding-top: calc(16px + env(safe-area-inset-top));
  display: flex; flex-direction: column; gap: 14px;
}
.mobile-header-row {
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-header-actions { display: flex; gap: 10px; align-items: center; }

.bell-btn {
  width: 38px; height: 38px;
  background: transparent; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); position: relative;
}
.bell-btn svg { width: 22px; height: 22px; }
.bell-btn::after {
  content: ''; position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--primary); border: 1.5px solid #fff;
}

/* 新規登録ボタン(モバイルヘッダー右上) */
.add-btn {
  width: 42px; height: 42px;
  border: none; cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff 0%, #ec4899 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -4px rgba(124,92,255,.45);
  transition: transform .15s, box-shadow .15s;
}
.add-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -4px rgba(124,92,255,.55); }
.add-btn:active { transform: scale(.94); }
.add-btn .icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.add-btn svg { width: 20px; height: 20px; display: block; stroke-width: 2.6; }

.search-row {
  display: flex; gap: 10px; align-items: center;
  padding: 0 18px;
}
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: #f3f4f8;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  flex: 1;
  transition: box-shadow .2s;
}
.search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(108,92,231,.15);
}
.search-bar svg { width: 18px; height: 18px; color: var(--text-muted); flex: 0 0 auto; }
.search-bar input {
  border: none; outline: none; background: transparent;
  width: 100%; font-size: 16px; color: var(--text);
}
.search-bar input::placeholder { color: var(--text-faint); }

.filter-icon-btn {
  width: 50px; height: 50px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-soft);
  flex: 0 0 auto;
  transition: all .15s;
}
.filter-icon-btn:hover { border-color: var(--primary-soft); color: var(--primary); }
.filter-icon-btn svg { width: 18px; height: 18px; }

/* =========================================================
   フィルタピル(一覧画面)
   ========================================================= */
.filter-pills {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 14px 18px;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.fpill {
  flex: 0 0 auto;
  padding: 8px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  border: none;
  transition: opacity .15s;
}
.fpill:hover { opacity: .85; }
.fpill .pill-caret { display: inline-block; font-size: 0.8em; line-height: 1; margin-left: -1px; }
.fpill-rating  { background: #efeaff; color: var(--primary-deep); }
.fpill-area    { background: #d8f3ee; color: #0d9488; }
.fpill-pref    { background: var(--sky-tint); color: #1d4ed8; }
.fpill-fee     { background: #fdeef7; color: #be185d; }
.fpill-default { background: var(--surface); color: var(--text-soft); border: 1px solid var(--border-2); }
.fpill-free    { background: var(--mint-tint); color: #047857; }
.fpill-wish    { background: #fef3c7; color: #b45309; }
.fpill.active  { box-shadow: 0 0 0 2px var(--primary-soft) inset; }

/* =========================================================
   ソートバー
   ========================================================= */
.sort-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 18px 6px;
  font-size: 13px; color: var(--text-muted);
}
.sort-bar .sort-left {
  display: inline-flex; align-items: center; gap: 8px;
}
.sort-bar .sort-left svg { width: 14px; height: 14px; }
.sort-bar select {
  border: none; background: transparent;
  font-weight: 600; color: var(--text); font-size: 13px;
  cursor: pointer; padding: 0;
}
.sort-bar .count { color: var(--text-muted); }

/* =========================================================
   カード(一覧画面)
   ========================================================= */
.list { padding: 6px 18px 28px; display: flex; flex-direction: column; gap: 14px; }

.list-card {
  background: var(--surface);
  border: none;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all .15s;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
}
.list-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.list-card:active { transform: translateY(0) scale(.998); }

.list-card-thumb {
  width: 110px; height: 110px;
  border-radius: 14px; overflow: hidden;
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.list-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-card-thumb .thumb-placeholder {
  color: var(--primary); opacity: .5;
}
.list-card-thumb .thumb-placeholder svg { width: 38px; height: 38px; }

.list-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.list-card-row1 {
  display: flex; align-items: flex-start; gap: 8px;
}
.list-card-name {
  flex: 1; font-weight: 800; font-size: 17px; color: var(--text);
  letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}
.list-card-fav {
  flex: 0 0 auto;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-faint); padding: 0; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, transform .15s;
}
.list-card-fav svg { width: 22px; height: 22px; }
.list-card-fav.active { color: var(--pink); }
.list-card-fav:hover { color: var(--pink-soft); }
.list-card-fav:active { transform: scale(.85); }

.list-card-meta {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 13px; color: var(--text-soft);
}
.list-card-meta .meta-line {
  display: inline-flex; align-items: center; gap: 6px;
}
.list-card-meta .meta-line svg { width: 13px; height: 13px; flex: 0 0 auto; }
.list-card-meta .meta-line.area svg { color: var(--mint); }
.list-card-meta .meta-line.time svg { color: var(--sky); }
.list-card-meta .meta-line.year svg { color: var(--text-muted); }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.tag-purple { background: var(--primary-tint); color: var(--primary-deep); }
.tag-blue   { background: var(--sky-tint); color: #1d4ed8; }
.tag-pink   { background: var(--pink-tint); color: #be185d; }
.tag-mint   { background: var(--mint-tint); color: #047857; }
.tag-gray   { background: var(--surface-3); color: var(--text-soft); }

.list-card-notes {
  margin-top: 10px;
  font-size: 13px; color: var(--text-soft);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card-readmore {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--primary); font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
}
.list-card-readmore svg { width: 12px; height: 12px; }
.list-card-row-notes {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.list-card-row-notes .list-card-notes { flex: 1; margin-top: 0; }

.list-card-tag-row {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* =========================================================
   ホーム画面
   ========================================================= */
.home-container { padding-bottom: 28px; }

.quick-actions {
  margin: 18px 18px 0;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.quick-action {
  background: transparent; border: none; cursor: pointer;
  padding: 6px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  font-family: inherit;
}
.quick-action .qa-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.quick-action:hover .qa-icon { transform: translateY(-2px); }
.quick-action .qa-icon .icon {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0;
}
.quick-action .qa-icon svg { width: 24px; height: 24px; stroke-width: 1.8; display: block; }
.qa-icon.qa-blue  { background: var(--sky-tint); color: var(--sky); }
.qa-icon.qa-mint  { background: var(--mint-tint); color: var(--mint); }
.qa-icon.qa-pink  { background: var(--pink-tint); color: var(--pink); }
.qa-icon.qa-iris  { background: var(--primary-bg); color: var(--primary); }

.kpi-card {
  margin: 16px 18px 0;
  background: var(--surface);
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kpi-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding-left: 0;
  position: relative;
  text-align: center;
}
.kpi-item:not(:first-child)::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.kpi-icon-row {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-muted); font-weight: 600;
}
.kpi-icon-row .kpi-ic {
  width: 22px; height: 22px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.kpi-icon-row .kpi-ic .icon {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0;
}
.kpi-icon-row .kpi-ic svg { width: 13px; height: 13px; display: block; }
.kpi-icon-row .kpi-ic.iris { background: var(--primary-bg); color: var(--primary); }
.kpi-icon-row .kpi-ic.pink { background: var(--pink-tint); color: var(--pink); }
.kpi-icon-row .kpi-ic.mint { background: var(--mint-tint); color: var(--mint); }
.kpi-value {
  font-size: 30px; font-weight: 800; color: var(--text);
  letter-spacing: -0.03em; line-height: 1.1;
  font-family: 'Inter', sans-serif;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.kpi-unit {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
}

.section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 18px 10px;
}
.section-head h2 {
  margin: 0; font-size: 16px; font-weight: 800;
  color: var(--text); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1;
}
.section-head h2 .section-icon {
  display: inline-flex; align-items: center; justify-content: center;
  height: 1em;
}
.section-head h2 .section-icon svg {
  width: 18px; height: 18px; display: block;
}
.section-icon.recent { color: var(--sky); }
.section-icon.wish   { color: var(--pink); }
.section-head a, .section-head .all-link {
  color: var(--sky); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 2px;
  cursor: pointer;
}
.section-head a svg, .section-head .all-link svg { width: 12px; height: 12px; }

.h-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 18px 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-left: 18px;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: 0 0 auto; }
/* 右端にスクロールしきった時にも余白を残す(webkit対策) */
.h-scroll::after { content: ''; flex: 0 0 1px; }

/* recent カード */
.recent-card {
  width: 168px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  transition: all .15s;
  display: flex; flex-direction: column;
}
.recent-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.recent-thumb {
  width: 100%; aspect-ratio: 4/3;
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-thumb .thumb-placeholder { color: var(--primary); opacity: .5; }
.recent-thumb .thumb-placeholder svg { width: 36px; height: 36px; }
.recent-thumb .thumb-fav {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-faint); transition: all .15s;
  box-shadow: var(--shadow-xs);
}
.thumb-fav svg { width: 14px; height: 14px; }
.thumb-fav.active { color: var(--pink); }
.recent-body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.recent-name {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}
.recent-meta {
  font-size: 11.5px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 3px;
}
.recent-meta svg { width: 11px; height: 11px; color: var(--mint); }
.recent-meta-time {
  font-size: 11.5px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 3px;
}
.recent-meta-time svg { width: 11px; height: 11px; color: var(--sky); }
.recent-stars {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 1px;
}
.recent-stars .star { color: var(--gold); display: inline-flex; }
.recent-stars .star svg { width: 12px; height: 12px; }
.recent-stars .score { font-size: 12px; font-weight: 700; color: var(--text); }
.recent-notes {
  margin-top: 5px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 6px 8px;
  /* 高さを完全に固定して3行目を切り捨て */
  height: 46px;
  overflow: hidden;
  position: relative;
}
.recent-notes-text {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  max-height: 34px;
}

/* wish カード(小サイズ) */
.wish-card {
  width: 168px;
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}
.wish-card:hover .wish-thumb { transform: translateY(-2px); }
.wish-thumb {
  width: 100%; aspect-ratio: 4/3;
  border-radius: 14px;
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: transform .15s;
  box-shadow: var(--shadow-sm);
}
.wish-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wish-thumb .thumb-placeholder { color: var(--primary); opacity: .5; }
.wish-thumb .thumb-placeholder svg { width: 32px; height: 32px; }
.wish-name {
  margin-top: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.01em;
}
.wish-area {
  font-size: 12px; color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 長文メモバナー */
.notes-banner {
  margin: 22px 18px 0;
  background: var(--primary-bg);
  border-radius: 18px;
  padding: 16px 18px;
}
.notes-banner-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.notes-banner-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 800; color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
}
.notes-banner-title .nb-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(108,92,231,.16); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.notes-banner-title .nb-icon svg { width: 14px; height: 14px; }
.notes-banner-pill {
  background: var(--surface);
  color: var(--primary-deep);
  font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.notes-banner-desc {
  margin-top: 8px;
  font-size: 12.5px; color: var(--text-soft); line-height: 1.55;
}
.notes-banner-item {
  margin-top: 10px;
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.notes-banner-item-left {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  overflow: hidden;
}
.notes-banner-item-left .name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notes-banner-item-len {
  background: var(--primary-bg);
  color: var(--primary-deep);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.notes-banner-readmore {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--primary-deep);
  font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  flex: 0 0 auto;
}
.notes-banner-readmore svg { width: 11px; height: 11px; }

/* =========================================================
   詳細画面
   ========================================================= */
.detail-page { padding-bottom: 10px; }

.detail-topbar {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  padding-top: calc(14px + env(safe-area-inset-top));
  z-index: 5;
}
.detail-topbar .left, .detail-topbar .right {
  display: flex; align-items: center; gap: 6px;
}
.detail-topbar .title {
  position: absolute; left: 0; right: 0; top: calc(14px + env(safe-area-inset-top));
  text-align: center; font-size: 15.5px; font-weight: 700; color: var(--text);
  pointer-events: none;
  line-height: 38px;
}
.btn-naked {
  width: 38px; height: 38px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  transition: background .15s;
}
.btn-naked:hover { background: var(--surface-2); }
.btn-naked svg { width: 22px; height: 22px; }
.btn-naked.fav-active { color: var(--pink); }
.btn-naked.share-active { color: var(--sky); }

.detail-hero {
  width: 100%; aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .hero-fallback { color: var(--primary); opacity: .55; }
.detail-hero .hero-fallback svg { width: 64px; height: 64px; }

.detail-card {
  margin: -16px 14px 0;
  background: var(--surface);
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-md);
  position: relative; z-index: 2;
}
.detail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: flex-start;
}
.detail-name {
  margin: 0; font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
}
.detail-meta-list {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px; color: var(--text-soft);
}
.detail-meta-list .meta-line {
  display: inline-flex; align-items: center; gap: 8px;
}
.detail-meta-list .meta-line svg { width: 14px; height: 14px; flex: 0 0 auto; }
.detail-meta-list .meta-line.area svg { color: var(--mint); }
.detail-meta-list .meta-line.time svg { color: var(--sky); }
.detail-meta-list .meta-line.cal  svg { color: var(--text-muted); }

.rating-pad {
  background: var(--primary-bg);
  border-radius: 16px;
  padding: 12px 16px;
  text-align: center;
  min-width: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.rating-pad-head {
  font-size: 12.5px; color: var(--primary-deep); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.rating-pad-head .rb-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800; font-size: 14px; color: var(--primary);
}
.rating-pad-score {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 18px; font-weight: 800; color: var(--text);
}
.rating-pad-score .star { color: var(--gold); display: inline-flex; }
.rating-pad-score .star svg { width: 16px; height: 16px; }

.detail-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 16px 0 4px;
}

.detail-section {
  margin: 14px 14px 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.detail-section.notes {
  background: var(--primary-bg);
  box-shadow: none;
}
.section-head-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
}
.section-head-row .left {
  display: flex; align-items: flex-start; gap: 10px;
}
.section-head-row .sect-ic {
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.section-head-row .sect-ic.info { background: var(--sky); color: #fff; }
.section-head-row .sect-ic.fee  { background: var(--mint); color: #fff; }
.section-head-row .sect-ic.eq   { background: var(--teal); color: #fff; }
.section-head-row .sect-ic.note { background: var(--primary); color: #fff; }
.section-head-row .sect-ic svg { width: 14px; height: 14px; }
.section-head-row .sect-title {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.4;
}
.section-head-row .sect-summary {
  font-size: 13px; color: var(--text-soft); margin-top: 2px;
  line-height: 1.5;
}
.section-head-row .caret {
  color: var(--text-muted); transition: transform .2s;
  flex: 0 0 auto;
}
.section-head-row .caret svg { width: 16px; height: 16px; }
.section-head-row.open .caret { transform: rotate(180deg); }

.section-body {
  padding: 0 16px 16px;
  font-size: 14px; color: var(--text);
}

.notes-text {
  margin: 0;
  padding: 4px 0;
  line-height: 1.7; color: var(--text);
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.notes-show-all {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px auto 4px;
  padding: 8px 24px;
  background: var(--surface); border: 1px solid var(--primary-soft);
  color: var(--primary-deep); font-weight: 700; font-size: 13px;
  border-radius: 999px; cursor: pointer;
  transition: background .15s;
  line-height: 1;
}
.notes-show-all-wrap { text-align: center; }
.notes-show-all:hover { background: var(--primary-bg); }
.notes-show-all .icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.notes-show-all svg { width: 14px; height: 14px; display: block; }

.url-card {
  margin: 14px 14px 0;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
}
.url-card:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.url-card .url-ic {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--sky-tint); color: var(--sky);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.url-card .url-ic svg { width: 14px; height: 14px; }
.url-card .url-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.url-card .url-text .label {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
}
.url-card .url-text .url {
  font-size: 13px; color: var(--sky);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.url-card .url-ext {
  color: var(--sky); flex: 0 0 auto;
  display: inline-flex;
}
.url-card .url-ext svg { width: 16px; height: 16px; }

.related-photos {
  margin: 22px 14px 0;
}
.related-photos h3 {
  margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--text);
}
.related-photos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.related-photo {
  aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
}
.related-photo img { width: 100%; height: 100%; object-fit: cover; }

.detail-actions {
  display: flex; gap: 10px;
  padding: 18px 14px 0;
}

/* =========================================================
   フォーム
   ========================================================= */
.form { padding: 16px 18px 28px; max-width: 760px; margin: 0 auto; }
.form .field { margin-bottom: 14px; }
.form label {
  display: block; font-size: 11px;
  color: var(--text-muted); margin-bottom: 6px;
  font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-2); background: var(--surface);
  font-size: 16px; color: var(--text);
  transition: all .15s; box-shadow: var(--shadow-xs);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(108,92,231,.15);
}
.form textarea { min-height: 160px; resize: vertical; line-height: 1.75; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.section-toggle {
  width: 100%; text-align: left; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.section-toggle:hover { background: var(--surface-2); }

/* =========================================================
   編集画面: フォームセクションカード
   ========================================================= */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.form-section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.form-section-head .fs-ic {
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}
.form-section-head .fs-ic .icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.form-section-head .fs-ic svg { width: 14px; height: 14px; display: block; }
.form-section-head .fs-ic.basic { background: var(--primary); }
.form-section-head .fs-ic.place { background: var(--teal); }
.form-section-head .fs-ic.fee   { background: var(--mint); }
.form-section-head .fs-ic.eq    { background: var(--sky); }
.form-section-head .fs-ic.note  { background: var(--pink); }
.form-section-head .fs-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing: -0.005em;
  font-family: 'Noto Sans JP', sans-serif;
  display: flex; align-items: center; gap: 8px;
}
.form-section-head .fs-required {
  font-size: 10.5px; font-weight: 700;
  background: var(--pink-tint); color: #be185d;
  padding: 2px 8px; border-radius: 999px;
}
.form-section-head .fs-optional {
  font-size: 10.5px; font-weight: 600;
  color: var(--text-muted);
}
.form-section .field:last-child { margin-bottom: 0; }

/* =========================================================
   画像アップローダー
   ========================================================= */
.image-uploader {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.image-thumb {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-thumb-remove {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  border: none; cursor: pointer;
  background: rgba(15,23,42,0.7); color: #fff;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.image-thumb-remove:hover { background: rgba(15,23,42,0.9); }
.image-thumb-remove svg { width: 22px; height: 22px; display: block; }
.image-thumb-cover-tag {
  position: absolute; bottom: 4px; left: 4px;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.92); color: var(--primary-deep);
  padding: 2px 8px; border-radius: 999px;
}
.image-add {
  aspect-ratio: 1/1;
  border: 1.5px dashed var(--primary-soft);
  background: var(--primary-bg);
  border-radius: 12px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  color: var(--primary);
  font-size: 11.5px; font-weight: 600;
  transition: all .15s;
}
.image-add:hover { background: #ebe2ff; border-color: var(--primary); }
.image-add svg { width: 22px; height: 22px; }
.image-add input[type=file] { display: none; }

/* =========================================================
   関連写真ギャラリー(詳細画面下部)
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gallery-grid-cell {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery-grid-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute; top: calc(20px + env(safe-area-inset-top)); right: 20px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.16); border: none; cursor: pointer;
  color: #fff; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* =========================================================
   (旧)折りたたみフォームセクション ※今は未使用、互換のため残置
   ========================================================= */
.edit-section {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 14px;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  transition: all .18s;
  font-family: inherit;
}
.edit-section:hover {
  border-color: var(--primary-soft);
  background: var(--surface-2);
}
.edit-section.open {
  border-color: var(--primary-soft);
  background: var(--primary-bg);
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid transparent;
}
.edit-section-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-bg); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: all .18s;
}
.edit-section.open .edit-section-ic { background: var(--surface); }
.edit-section-ic .icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.edit-section-ic svg { width: 16px; height: 16px; display: block; }
.edit-section-text { flex: 1; min-width: 0; }
.edit-section-title {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 8px;
}
.edit-section-title .filled-pill {
  font-size: 10.5px; font-weight: 700;
  background: var(--mint-tint); color: #047857;
  padding: 2px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 3px;
}
.edit-section-title .filled-pill svg { width: 9px; height: 9px; }
.edit-section-summary {
  font-size: 12.5px; color: var(--text-muted);
  margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.edit-section.open .edit-section-summary { color: var(--primary-deep); opacity: .85; }
.edit-section-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: all .18s;
}
.edit-section-toggle svg { width: 16px; height: 16px; stroke-width: 2.5; }
.edit-section.open .edit-section-toggle {
  background: var(--primary); color: #fff;
  transform: rotate(45deg);
}
.edit-section-body {
  padding: 18px 16px 4px;
  background: var(--primary-bg);
  border: 1.5px solid var(--primary-soft);
  border-top: none;
  border-radius: 0 0 14px 14px;
  margin-top: -2px;
  margin-bottom: 14px;
  animation: edit-section-open .22s ease;
}
@keyframes edit-section-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.edit-section-body .field { margin-bottom: 12px; }
.edit-section-body .field:last-child { margin-bottom: 6px; }
.edit-section-body input,
.edit-section-body textarea {
  background: var(--surface);
  border-color: var(--border-2);
}

.mode-toggle {
  display: flex; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 4px;
  margin-bottom: 18px;
}
.mode-toggle button {
  flex: 1; padding: 11px; border: none; background: transparent;
  cursor: pointer; font-size: 13.5px; color: var(--text-muted);
  font-weight: 600; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
}
.mode-toggle button.active {
  background: var(--surface); color: var(--primary-deep);
  box-shadow: var(--shadow-xs);
}
.mode-toggle button svg { width: 14px; height: 14px; }

.rating-picker { display: flex; gap: 8px; }
.rating-picker button {
  flex: 1; padding: 14px 8px; border-radius: 12px;
  border: 1.5px solid var(--border-2); background: var(--surface);
  cursor: pointer; font-size: 18px; font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text); transition: all .15s;
}
.rating-picker button.active {
  border-color: var(--primary); background: var(--primary-bg);
  color: var(--primary-deep);
}

/* =========================================================
   ボタン
   ========================================================= */
.btn {
  flex: 1; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--border-2); background: var(--surface);
  cursor: pointer; font-size: 14.5px; font-weight: 600;
  color: var(--text); text-align: center;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
  box-shadow: var(--shadow-xs);
}
.btn:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.btn svg { width: 15px; height: 15px; display: block; }
.btn-label {
  display: inline-block;
  line-height: 1;
  transform: translateY(1px); /* JP字形の光学補正 */
}
.btn.primary {
  background: var(--primary); color: #fff; border-color: transparent;
}
.btn.primary:hover { background: var(--primary-deep); }
.btn.danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.btn-link {
  background: none; border: none; color: var(--primary-deep);
  cursor: pointer; padding: 0; font-size: 13.5px; font-weight: 600;
}
.btn-link .icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.btn-link svg { width: 14px; height: 14px; display: block; }

/* =========================================================
   ログイン
   ========================================================= */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(800px 600px at 50% -10%, rgba(108,92,231,.15), transparent 60%),
    radial-gradient(600px 400px at 100% 110%, rgba(236,72,153,.10), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.login-card .brand-block { text-align: center; margin-bottom: 24px; }
.login-card .brand-block .brand-logo { justify-content: center; }
.login-card .field { margin-bottom: 12px; }
.login-card label {
  display: block; font-size: 11px; letter-spacing: 0.06em;
  font-weight: 700; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 6px;
}
.login-card input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-2); background: var(--surface);
  font-size: 16px;
}
.login-card input:focus {
  outline: none; border-color: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(108,92,231,.15);
}
.login-card .btn { width: 100%; margin-top: 8px; padding: 14px; }
.error-msg {
  color: #b91c1c; font-size: 13px;
  background: #fef2f2; border: 1px solid #fecaca;
  padding: 8px 12px; border-radius: 10px;
  margin-top: 12px;
}

/* =========================================================
   ボトムナビ
   ========================================================= */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
}
.bottom-nav button {
  flex: 1; padding: 4px; border: none; background: transparent;
  cursor: pointer; font-size: 11.5px; color: var(--text-muted); font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: color .15s;
}
.bottom-nav button.active { color: var(--primary); font-weight: 700; }
.bottom-nav .nav-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit;
}
.bottom-nav .nav-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

/* =========================================================
   FAB
   ========================================================= */
.fab {
  position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--primary); color: #fff; border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  z-index: 15;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.fab:hover { transform: scale(1.06); }
.fab:active { transform: scale(.96); }
.fab svg { width: 22px; height: 22px; }

/* =========================================================
   マップ
   ========================================================= */
.map-container { width: 100%; height: calc(100vh - 84px); }
.map-fallback { padding: 60px 24px; text-align: center; color: var(--text-muted); }

/* =========================================================
   共通
   ========================================================= */
.empty {
  text-align: center; padding: 80px 20px; color: var(--text-muted);
  font-size: 14px;
}
.empty .empty-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--primary-bg); border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.empty .empty-icon svg { width: 28px; height: 28px; }
.spinner {
  display: inline-block; width: 22px; height: 22px;
  border: 2.5px solid var(--border-2); border-top-color: var(--primary);
  border-radius: 999px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,0.94); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 500;
  z-index: 50;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.4);
  animation: toast-in .25s cubic-bezier(.2,.7,.3,1.2);
  max-width: calc(100% - 32px);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px) scale(.95); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  animation: fade-in .2s ease;
  display: flex; align-items: flex-end; justify-content: center;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  background: var(--surface);
  width: 100%; max-width: 560px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 12px 0 calc(20px + env(safe-area-inset-bottom));
  max-height: 75vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.3);
  animation: sheet-up .28s cubic-bezier(.2,.7,.3,1);
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.sheet .grabber {
  width: 36px; height: 4px; background: var(--border-2);
  border-radius: 999px; margin: 4px auto 12px;
}
.sheet .sheet-title {
  font-weight: 700; font-size: 15.5px;
  padding: 4px 20px 12px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.sheet .sheet-search {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.sheet .sheet-search input {
  width: 100%; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface-2);
  font-size: 16px; outline: none;
}
.sheet .sheet-search input:focus {
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(108,92,231,.14);
}
.sheet .sheet-body { overflow-y: auto; padding: 8px 12px; }
.sheet-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 14px; border-radius: 12px;
  cursor: pointer; transition: background .15s;
  font-size: 14.5px;
}
.sheet-item:hover { background: var(--surface-2); }
.sheet-item.active { background: var(--primary-bg); color: var(--primary-deep); font-weight: 700; }
.sheet-item .count {
  font-size: 12px; color: var(--text-muted);
  background: var(--surface-2); padding: 2px 10px; border-radius: 999px;
}
.sheet-item.active .count { background: var(--surface); color: var(--primary-deep); }

/* =========================================================
   PCワイド
   ========================================================= */
@media (min-width: 900px) {
  .home-container { max-width: 720px; margin: 0 auto; }
  .detail-page { max-width: 720px; margin: 0 auto; }

  .list-page { max-width: 1280px; margin: 0 auto; }
  .list-page .list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
  }
  .list-page .list-card {
    align-content: start;
  }
}
