/* 明るめ恋活・婚活 UI — 地域パイロット（Pairs系の空気感） */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&family=Zen+Maru+Gothic:wght@500;700&display=swap');

:root {
  --ink: #2a2430;
  --ink-2: #3d3545;
  --paper: #fff5f8;
  --paper-2: #ffffff;
  --muted: #7a7180;
  --line: rgba(42, 36, 48, 0.1);
  --navy: #ff4f7b;
  --navy-deep: #e83b68;
  --brass: #ff8a5c;
  --sage: #3ec6c9;
  --ok: #1f9d6c;
  --danger: #d64545;
  --shadow: 0 14px 36px rgba(255, 79, 123, 0.12);
  --radius: 18px;
  --fast: 150ms ease;
  --font-sans: "Nunito", "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-serif: "Zen Maru Gothic", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(255, 79, 123, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(62, 198, 201, 0.14), transparent 50%),
    linear-gradient(180deg, #fff7fa 0%, #fff 42%, #f3fbff 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-deep); text-decoration: none; }
a:hover { color: var(--brass); }

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 100px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}
.nav { display: none; gap: 16px; font-weight: 700; font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a.active, .nav a:hover { color: var(--navy); text-decoration: none; }
@media (min-width: 880px) {
  .nav { display: flex; }
  .wrap { padding-bottom: 48px; }
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 20px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  z-index: 40;
}
.dock a {
  text-align: center;
  padding: 8px 2px 6px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}
.dock a span { display: block; font-size: 0.7rem; letter-spacing: 0.08em; margin-bottom: 2px; color: var(--navy); }
.dock a.active, .dock a:hover { background: linear-gradient(135deg, var(--navy), #ff7a9a); color: #fff; text-decoration: none; }
.dock a.active span, .dock a:hover span { color: #fff; }
@media (min-width: 880px) { .dock { display: none; } }

.hero {
  position: relative;
  overflow: hidden;
  color: #2a2430;
  border-radius: 28px;
  margin-bottom: 22px;
  min-height: clamp(320px, 42vw, 420px);
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(240px, 1fr);
  background: #fff7fa;
  box-shadow: var(--shadow);
}
.hero::before { display: none; }
.hero-copy {
  padding: clamp(28px, 4.5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(160deg, #fff7fa 0%, #ffffff 55%, #f3fbff 100%);
}
.hero-media {
  min-height: 100%;
  background: url("/public/images/hero-bright-couple.jpg") center 30% / cover no-repeat;
}
.hero .badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border: 0;
  background: #fff;
  color: #ff4f7b;
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 14px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(42, 36, 48, 0.1);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  line-height: 1.28;
  margin: 0 0 12px;
  max-width: 12em;
  font-weight: 700;
  color: #2a2430;
}
.hero p {
  margin: 0 0 16px;
  max-width: 28rem;
  font-size: 1.02rem;
  color: #4a4450;
}
.hero .btn-row { margin-top: 4px; }
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-media {
    order: -1;
    min-height: 220px;
    max-height: 260px;
  }
  .hero-copy { padding: 22px 20px 26px; }
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(24, 33, 43, 0.05);
  margin-bottom: 14px;
}
.card h2, .card h3 {
  font-family: var(--font-serif);
  margin: 0 0 10px;
  font-weight: 650;
  font-size: 1.35rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.muted { color: var(--muted); font-size: 0.95rem; }
.meta { font-size: 0.9rem; color: var(--muted); }

.flash {
  background: #f8ebe8;
  border: 1px solid #e7c5bf;
  color: var(--danger);
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.flash.ok { background: #e8f3ee; border-color: #b7d9c8; color: var(--ok); }

.note {
  background: linear-gradient(100deg, rgba(255, 79, 123, 0.08), rgba(62, 198, 201, 0.1));
  border-left: 4px solid var(--navy);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.swipe-hint {
  display: none;
  margin: -4px 0 12px;
  font-size: 0.86rem;
  text-align: center;
}
@media (max-width: 879px) {
  .swipe-hint { display: block; }
  .discover-deck {
    position: relative;
    min-height: min(72vh, 620px);
    display: block;
  }
  .discover-deck .person {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    margin: 0;
    transition: box-shadow var(--fast);
    touch-action: pan-y;
  }
  .discover-deck .person:nth-child(n + 2) {
    transform: scale(0.97) translateY(10px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
  }
  .discover-deck .person:nth-child(n + 3) {
    opacity: 0;
  }
  .discover-deck .person:first-child {
    z-index: 3;
    pointer-events: auto;
  }
  .discover-deck .person.is-dragging {
    transition: none;
    z-index: 5;
  }
  .discover-deck .person.swipe-like-hint::after,
  .discover-deck .person.swipe-pass-hint::after {
    position: absolute;
    top: 24px;
    z-index: 6;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.92);
  }
  .discover-deck .person.swipe-like-hint::after {
    content: "いいね";
    left: 18px;
    color: #ff4f7b;
    border: 3px solid #ff4f7b;
    transform: rotate(-12deg);
  }
  .discover-deck .person.swipe-pass-hint::after {
    content: "スキップ";
    right: 18px;
    color: #7a7180;
    border: 3px solid #7a7180;
    transform: rotate(12deg);
  }
  .swipe-out-right {
    animation: swipeOutR 0.22s ease forwards;
  }
  .swipe-out-left {
    animation: swipeOutL 0.22s ease forwards;
  }
  @keyframes swipeOutR {
    to { transform: translate(120vw, 20px) rotate(18deg); opacity: 0; }
  }
  @keyframes swipeOutL {
    to { transform: translate(-120vw, 20px) rotate(-18deg); opacity: 0; }
  }
}

.person {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(24, 33, 43, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform var(--fast), box-shadow var(--fast);
}
.person:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.person.is-leaving {
  opacity: 0;
  transform: scale(0.97);
  transition: 180ms ease;
  pointer-events: none;
}
.person-photo {
  position: relative;
  height: 168px;
  background: linear-gradient(145deg, var(--navy-deep), #3d6b63 80%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  overflow: hidden;
}
.person-photo.has-photo {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: #1a2430;
}
.person-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-ai-note {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,252,247,0.92);
  background: rgba(0,0,0,0.45);
  padding: 3px 7px;
  border-radius: 999px;
}
.detail-hero.with-photo {
  background: var(--paper-2);
  color: var(--ink);
  align-items: stretch;
}
.detail-hero.with-photo .detail-photo {
  width: min(42%, 220px);
  height: auto;
  min-height: 220px;
  border-radius: 16px;
  flex-shrink: 0;
}
.detail-hero.with-photo .meta { color: var(--muted); }
.detail-hero.with-photo .detail-name { color: var(--navy); }
.person-photo .avatar-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,252,247,0.9);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 650;
  color: #fff;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
}
.person-photo .photo-label {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,252,247,0.85);
  background: rgba(0,0,0,0.25);
  padding: 5px 10px;
  border-radius: 999px;
}
.person-photo .photo-loc {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(20, 16, 28, 0.72);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  line-height: 1.2;
}
.person-photo.has-photo .photo-loc {
  background: rgba(20, 16, 28, 0.78);
}
.pref-emphasis {
  color: var(--ink);
  font-weight: 800;
}
.person-hit {
  color: inherit;
  text-decoration: none !important;
  display: block;
  cursor: pointer;
}
.person-hit:hover .name { color: var(--navy); }
.person-body {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.person-actions {
  padding: 4px 14px 16px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.report-link {
  align-self: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.report-link:hover { color: var(--danger); }
.detail-actions { margin-top: 8px; }
.detail-links { justify-content: center; }

/* Mature action rail — not SNS hearts */
.act-rail {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.act-rail.compact { gap: 8px; }
.act {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px 10px;
  border-radius: 16px;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast);
  min-height: 72px;
}
.act:disabled { opacity: 0.55; cursor: wait; }
.act:hover { transform: translateY(-1px); }
.act:active { transform: translateY(0); }
.act-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  opacity: 0.9;
}
.act-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
}
.act-interest .act-ring {
  border-color: transparent;
  background: radial-gradient(circle at 50% 45%, #fff 0 22%, transparent 24%),
    linear-gradient(145deg, #ff7a9a, #ff4f7b);
  box-shadow: 0 4px 12px rgba(255, 79, 123, 0.35);
}
.act-interest .act-ring::after {
  content: "♥";
  inset: 0;
  display: grid;
  place-items: center;
  background: none;
  color: #fff;
  font-size: 0.95rem;
  opacity: 1;
  border-radius: 0;
  transform: none;
}
.act-lbl {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}
.act-pass {
  background: #f4f1ea;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.act-pass:hover { background: #ebe6dc; }
.act-interest {
  background: linear-gradient(165deg, #ff6b8f 0%, #ff4f7b 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 79, 123, 0.32);
}
.act-interest:hover {
  box-shadow: 0 12px 26px rgba(255, 79, 123, 0.4);
}
.act-interest .act-lbl {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
}
.act.is-done,
.act:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.act-interest.is-done {
  background: #c4b5b8;
  color: #fff;
}
.act-block {
  background: transparent;
  color: var(--danger);
  border: 1px dashed #e0b8b2;
}
.act-block:hover { background: #faf2f0; }
.act-rail.compact .act { min-height: 64px; padding: 10px 4px 8px; }
.act-rail.compact .act-lbl { font-size: 0.74rem; }
.act-rail.compact .act-interest .act-lbl { font-size: 0.84rem; }
.act-rail.compact .act-ring { width: 28px; height: 28px; }
.act-rail.compact .act-interest .act-ring::after { inset: 8px; }

@media (max-width: 420px) {
  .act-rail { gap: 6px; }
  .act-lbl { font-size: 0.72rem; }
  .act-interest .act-lbl { font-size: 0.82rem; }
}
.profile-detail { padding: 0; overflow: hidden; }
.detail-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 22px;
  color: #fff;
}
.avatar-mark.large {
  width: 104px;
  height: 104px;
  font-size: 2.4rem;
  flex-shrink: 0;
}
.detail-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 6px;
  font-weight: 650;
}
.detail-body { padding: 20px 22px 24px; }
.detail-list { margin: 0 0 18px; }
.detail-row {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row dt {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}
.detail-row dd { margin: 0; font-size: 1.05rem; }
.detail-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.person .name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0;
}
.score, .ring, .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
}
.score { color: var(--sage); background: #e5f0ed; }
.ring { color: var(--brass); background: #f3eadc; }
.tag { color: var(--muted); background: #eceae4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons { font-size: 0.86rem; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--fast), transform var(--fast), opacity var(--fast);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-sea { background: var(--sage); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid #e7c5bf; }
.btn-sm { padding: 9px 12px; font-size: 0.86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero .btn-ghost {
  color: #2a2430;
  border-color: rgba(42, 36, 48, 0.18);
  background: rgba(255, 255, 255, 0.75);
}
.hero .btn-ghost:hover { background: #fff; }
.hero .btn-primary { background: #ff4f7b; color: #fff; }
.hero .btn-primary:hover { background: #e83b68; }

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 14px 0 6px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(31, 58, 95, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.12);
}
textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.chat-box {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  margin-bottom: 12px;
}
.bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  clear: both;
}
.bubble.me { background: #e8eef6; float: right; border-bottom-right-radius: 4px; }
.bubble.them { background: #f1efe9; float: left; border-bottom-left-radius: 4px; }
.chat-clear { clear: both; height: 0; }

.qr-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.qr-wrap img { border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  word-break: break-all;
  background: #eceae4;
  padding: 10px 12px;
  border-radius: 10px;
}

.footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 160ms ease;
  z-index: 50;
  max-width: min(90vw, 380px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 880px) { .toast { bottom: 28px; } }

/* Admin */
.admin-shell { max-width: 1100px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 720px) { .admin-stats { grid-template-columns: 1fr 1fr; } }
.admin-stats .stat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none !important;
  display: block;
}
.admin-stats a.stat:hover {
  border-color: rgba(255, 79, 123, 0.35);
}
.admin-thumb-cell {
  width: 56px;
  vertical-align: middle !important;
}
.admin-user-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.admin-user-thumb.size-sm { width: 48px; height: 48px; }
.admin-user-thumb.size-md { width: 100%; height: 140px; border-radius: 14px 14px 0 0; }
.admin-user-thumb.size-lg { width: 100%; height: 220px; border-radius: 16px 16px 0 0; }
.admin-user-thumb.fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.admin-user-thumb.fallback.size-md { font-size: 2rem; }
.admin-user-thumb.fallback.size-lg { font-size: 2.8rem; }
.admin-users-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.admin-users-head h2 { margin: 0; }
.view-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-user-grid {
  display: grid;
  gap: 12px;
}
.admin-user-grid.view-medium {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.admin-user-grid.view-large {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.admin-user-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.admin-user-card-photo {
  background: #1a2430;
}
.admin-user-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-user-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}
.admin-user-card-body .actions {
  margin-top: 8px;
}
.likes-section-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.likes-section.is-focus .likes-section-title {
  color: var(--navy-deep);
}
.person.is-stale-like {
  opacity: 0.78;
}
.person.is-stale-like .person-photo {
  filter: grayscale(0.25);
}
  padding: 16px;
}
.admin-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy);
}
.admin-stats span { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }
.admin-table .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-table .reject-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-table .reject-inline input {
  min-width: 140px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.login-card { max-width: 440px; margin: 40px auto; }

/* Address verification */
.badge-verify {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  background: #e8f5f1;
  color: #1f6b5a;
  border: 1px solid #b7ddd2;
}
.verify-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.verify-chip.tone-ok { background: #e8f5f1; color: #1f6b5a; border-color: #b7ddd2; }
.verify-chip.tone-warn { background: #fff6e8; color: #8a5a12; border-color: #f0d5a0; }
.verify-chip.tone-bad { background: #fdeeee; color: #8b3a3a; border-color: #efc0c0; }
.verify-chip.tone-muted { color: var(--muted); }
.verify-status-line { margin: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verify-notes { margin: 0 0 14px; padding-left: 1.2em; color: var(--muted); font-size: 0.92rem; }
.verify-notes li { margin: 4px 0; }
.card.soft { background: var(--paper-2); }

/* Install / PWA */
.install-hero { text-align: center; }
.install-qr-wrap { margin: 18px auto 8px; }
.install-qr {
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  max-width: 100%;
  height: auto;
}
.install-url { margin-top: 10px; font-size: 0.85rem; word-break: break-all; }
.install-steps { text-align: left; margin: 0; padding-left: 1.2em; color: var(--muted); }
.install-steps li { margin: 6px 0; }
.install-status { min-height: 1.4em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Filters / notifications / likes (keep light) */
.badge-n {
  display: inline-block;
  min-width: 1.1em;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: #8b3a3a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: middle;
}
.filter-panel { margin-bottom: 14px; padding: 0; overflow: hidden; }
.filter-panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  user-select: none;
}
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary::after {
  content: "開く";
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.04em;
}
.filter-panel[open] > summary::after { content: "閉じる"; }
.filter-summary-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--navy);
}
.filter-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.filter-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8eef6;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}
.filter-form {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
}
.filter-bar { margin-bottom: 14px; }
.filter-bar h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); }
.notify-list { display: grid; gap: 8px; margin-top: 10px; }
.notify-item {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.notify-item:hover { border-color: rgba(31, 58, 95, 0.35); }
.notify-item strong { color: var(--navy); }
.notify-item span { color: var(--ink); font-size: 0.95rem; }
.notify-item time { color: var(--muted); font-size: 0.78rem; }
.likes-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.likes-blur-card {
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, #2a3d55, #5a6d82);
  filter: blur(0.4px);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.55);
  font-size: 1.6rem;
  font-weight: 800;
}
.legal-list { padding-left: 1.2em; line-height: 1.7; }
.legal-list li { margin-bottom: 0.6em; }
.legal .muted, .muted { color: var(--muted); }
.notice-paid {
  margin: 0 0 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 59, 104, 0.28);
  background: linear-gradient(135deg, rgba(255, 79, 123, 0.1), rgba(62, 198, 201, 0.08));
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.65;
}
.notice-paid strong { color: var(--navy-deep); }
.hero .notice-paid { max-width: 40rem; }
