/* =========================================
   MOTO JOURNAL — style.css
   Design tokens are taken from the Claude Design file (BikerBlog.dc.html)
   ========================================= */
:root {
  --bg:           oklch(98% 0.006 80);
  --bg-blur:      oklch(98% 0.006 80 / 0.92);
  --surface:      oklch(100% 0 0);

  --text:         oklch(20% 0.01 80);
  --text-body:    oklch(25% 0.01 80);
  --text-muted:   oklch(40% 0.01 80);
  --text-subtle:  oklch(50% 0.01 80);
  --text-faint:   oklch(55% 0.01 80);

  --line:         oklch(90% 0.006 80);
  --line-card:    oklch(92% 0.006 80);
  --line-chip:    oklch(85% 0.006 80);

  --accent:       oklch(58% 0.15 40);
  --accent-hover: oklch(48% 0.15 40);
  --accent-soft:  oklch(93% 0.03 40);
  --accent-ink:   oklch(38% 0.12 40);

  --chip-on-bg:   oklch(30% 0.02 60);
  --chip-on-fg:   oklch(97% 0.006 80);

  --danger:       oklch(52% 0.17 25);

  --font-display: 'Archivo', sans-serif;
  --font-logo:    'Archivo Expanded', 'Archivo', sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --r-card: 16px;
  --r-md:   12px;
  --r-hero: 18px;
  --r-pill: 999px;

  --container: 1280px;
  --reading:   860px;
  --pad-x:     32px;
}

/* ===== Base ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.4px; }
::-webkit-scrollbar { display: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg-blur);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 700; font-size: 22px; letter-spacing: 0.5px;
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.logo:hover { color: var(--text); }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }

.global-nav { margin-left: auto; }
.global-nav ul {
  display: flex; gap: 28px; margin: 0; padding: 0; list-style: none;
  font-size: 14px; font-weight: 600;
}
.global-nav a { color: var(--text-muted); }
.global-nav a:hover { color: var(--text); }

@media (max-width: 620px) {
  .global-nav { display: none; }
  :root { --pad-x: 20px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-chip);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--text-muted); color: var(--text); }

.btn-primary {
  background: var(--chip-on-bg);
  border-color: transparent;
  color: var(--chip-on-fg);
}
.btn-primary:hover { background: var(--text); color: var(--chip-on-fg); }
.btn:disabled, .btn-primary:disabled { opacity: .5; cursor: progress; }

.btn-quiet { border-color: transparent; color: var(--text-faint); padding: 9px 10px; }
.btn-quiet:hover { border-color: transparent; color: var(--text); }

.btn-danger { border-color: var(--line-chip); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }

/* ヘッダーのログイン状態 */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); }
.user-chip:hover { color: var(--text); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.user-name { font-size: 13px; font-weight: 600; }
@media (max-width: 760px) { .user-name { display: none; } }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 48px var(--pad-x) 100px; }
.reading   { max-width: var(--reading);   margin: 0 auto; padding: 40px var(--pad-x) 120px; }
.narrow    { max-width: 440px;            margin: 0 auto; padding: 40px var(--pad-x) 120px; }

.lead { font-size: 14.5px; line-height: 1.8; color: var(--text-muted); margin: -14px 0 28px; }

/* ===== Hero ===== */
.hero { margin-bottom: 40px; max-width: 640px; }
.hero h1 { font-weight: 800; font-size: 44px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.5px; }
.hero p  { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin: 0; }

@media (max-width: 620px) { .hero h1 { font-size: 32px; } }

/* ===== Category chips ===== */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-chip);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  white-space: nowrap; flex-shrink: 0;
}
.chip:hover { border-color: var(--text-muted); color: var(--text); }
.chip.is-active { background: var(--chip-on-bg); border-color: transparent; color: var(--chip-on-fg); }

/* ===== Masonry grid ===== */
.masonry { column-count: 4; column-gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1180px) { .masonry { column-count: 3; } }
@media (max-width: 860px)  { .masonry { column-count: 2; } }
@media (max-width: 560px)  { .masonry { column-count: 1; } }

.card {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-card);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px oklch(20% 0.01 80 / 0.10); }

.card-media {
  position: relative; margin: 0; width: 100%; overflow: hidden;
  background: oklch(94% 0.006 80);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.h-s  { height: 200px; }
.h-m  { height: 280px; }
.h-l  { height: 360px; }
.h-xl { height: 440px; }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: oklch(100% 0 0 / 0.9); color: var(--text);
}

.empty { color: var(--text-faint); font-size: 14px; padding: 40px 0; }

/* ===== Post ===== */
.back-link {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: oklch(45% 0.01 80);
  padding: 0 0 28px;
  display: flex; align-items: center; gap: 6px;
}

.page-title { font-weight: 800; font-size: 32px; margin: 0 0 28px; }

.pill {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-ink);
}

.post-title { font-weight: 800; font-size: 38px; line-height: 1.15; margin: 18px 0 14px; letter-spacing: -0.4px; }
.post-meta  { display: flex; gap: 10px; font-size: 13px; color: var(--text-subtle); margin-bottom: 28px; }
@media (max-width: 620px) { .post-title { font-size: 28px; } }

.post-hero {
  width: 100%; height: 420px; max-height: 620px;
  border-radius: var(--r-hero); overflow: hidden; margin: 0 0 32px;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 620px) { .post-hero { height: 260px; } }
/* 切り取り済みの記事は選んだ比率で表示（inline styleが height:auto を渡す） */

.post-body { font-size: 16.5px; line-height: 1.9; color: var(--text-body); }
.post-body > p, .post-body > ul, .post-body > ol { margin: 0 0 20px; }
.post-body h2 { font-size: 24px; font-weight: 800; margin: 44px 0 16px; }
.post-body h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; }
.post-body blockquote {
  margin: 0 0 20px; padding: 12px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.post-foot { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line-chip); border-radius: var(--r-pill);
  background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: all .15s;
}
.action:hover { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.action[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.action-danger { margin-left: auto; color: var(--danger); }
.action-danger:hover { background: transparent; border-color: var(--danger); color: var(--danger); }

/* ===== Related ===== */
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-weight: 700; font-size: 20px; margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

.related-card { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-card); background: var(--surface); cursor: pointer; }
.related-card a { display: block; color: var(--text); }
.related-card .thumb { display: block; height: 120px; overflow: hidden; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .body { display: block; padding: 12px 14px; }
.related-card h4 { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.5; }

/* ===== Editor (new post) ===== */
.editor { display: grid; gap: 24px; }

.field { display: grid; gap: 8px; }
.field > label { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.req { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); }

.field-row { display: grid; grid-template-columns: 1fr 200px; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field input[type="text"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-chip); border-radius: var(--r-md);
  padding: 13px 16px;
}
.field textarea { line-height: 1.9; resize: vertical; min-height: 240px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

.hint { margin: 0; font-size: 12px; color: var(--text-faint); }

.uploader { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.uploader input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.uploader-btn {
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-chip); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.uploader-btn:hover { border-color: var(--text-muted); color: var(--text); }
.uploader input[type="file"]:focus-visible + .uploader-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.uploader-name { font-size: 12.5px; color: var(--text-faint); }
.uploader-clear { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--danger); }

.uploader-preview {
  margin: 0; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-card);
  max-width: 340px; width: 100%;
}
.uploader-preview img { width: 100%; height: 100%; object-fit: cover; }

.form-error {
  margin: 0; padding: 12px 16px;
  border-radius: var(--r-md);
  background: oklch(95% 0.04 25); color: var(--danger);
  font-size: 13.5px; font-weight: 600;
}

.form-notice {
  margin: 0; padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13.5px; line-height: 1.7; font-weight: 600;
}

.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.form-actions-center { justify-content: center; }

.form-sub { margin: 0; text-align: center; font-size: 13px; }

/* アカウント設定 */
.account { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.account h2 { font-weight: 700; font-size: 20px; margin: 0 0 24px; }
.account-form { gap: 18px; }
/* 設定画面の保存ボタンは中央に置く */
.account-form .form-actions { justify-content: center; }

.account-block {
  padding: 24px;
  border: 1px solid var(--line-card); border-radius: var(--r-card);
  background: var(--surface);
}
.account-block + .account-block { margin-top: 16px; }
.account-block h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.account-block .hint { margin: 0 0 20px; line-height: 1.7; }

.danger-zone { border-color: oklch(85% 0.06 25); background: oklch(99% 0.008 25); }
.danger-zone h3 { color: var(--danger); }
.danger-zone .form-actions { border-top-color: oklch(88% 0.05 25); }

.field input[type="password"] {
  width: 100%;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-chip); border-radius: var(--r-md);
  padding: 13px 16px;
}
.field input[type="password"]:focus { outline: none; border-color: var(--accent); }

/* ===== アカウント設定（サイドバー付き） ===== */
.settings    { max-width: 960px; margin: 0 auto; padding: 40px var(--pad-x) 120px; }
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-top: 32px; }

.settings-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 96px; align-self: start;
}
.settings-nav a {
  padding: 10px 14px; border-radius: var(--r-md);
  color: var(--text-muted); font-size: 14px; font-weight: 600;
}
.settings-nav a:hover { color: var(--text); background: var(--line); }
.settings-nav a.is-active { color: var(--accent-ink); background: var(--accent-soft); }

.settings-content { min-width: 0; display: grid; gap: 32px; }
.settings-section { display: grid; gap: 32px; }

.static-value {
  margin: 0; font-size: 15px; color: var(--text);
  padding: 13px 16px;
  border: 1px solid var(--line-chip); border-radius: var(--r-md);
  background: var(--line);
}

@media (max-width: 620px) {
  .settings-layout { grid-template-columns: 1fr; gap: 24px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; gap: 8px; }
  .settings-nav a { flex: none; }
}

/* ===== My page ===== */
.me-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.me-head .page-title { margin-bottom: 10px; }
.me-head .lead { margin: 0; }

.me-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }

.me-item {
  display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 16px;
  padding: 12px; border: 1px solid var(--line-card); border-radius: var(--r-md);
  background: var(--surface);
}
@media (max-width: 560px) {
  .me-item { grid-template-columns: 64px 1fr; }
  .me-item .btn-danger { grid-column: 2; justify-self: start; }
}

.me-thumb { display: block; height: 64px; border-radius: 8px; overflow: hidden; }
.me-thumb img { width: 100%; height: 100%; object-fit: cover; }

.me-body { min-width: 0; }
.me-title {
  display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-title:hover { color: var(--accent); }
.me-meta { margin: 6px 0 0; font-size: 12.5px; color: var(--text-faint); }

/* 保存した記事 */
.me-saved { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.me-saved h2 { font-weight: 700; font-size: 20px; margin: 0 0 10px; }
.me-saved .lead { margin: 0; }
.me-saved .me-list { margin-top: 20px; }

/* ===== お問い合わせ管理 ===== */
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }

.contact-item {
  padding: 20px; border: 1px solid var(--line-card); border-radius: var(--r-card);
  background: var(--surface);
}
.contact-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.contact-item-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); }
.contact-item-date { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.contact-item-email { display: block; margin-top: 4px; font-size: 13px; }
.contact-item-message { margin: 14px 0 0; line-height: 1.8; color: var(--text-body); white-space: pre-wrap; }

/* ===== Cropper ===== */
body.is-locked { overflow: hidden; }

.cropper {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: oklch(20% 0.01 80 / 0.55);
  backdrop-filter: blur(4px);
  padding: 20px;
}

.cropper-panel {
  width: min(100%, 620px);
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 24px 60px oklch(20% 0.01 80 / 0.28);
}

.cropper-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.cropper-heading { font-family: var(--font-display); font-size: 14px; font-weight: 700; }

.cropper-text-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text-muted); padding: 6px 4px;
}
.cropper-text-btn:hover { color: var(--text); }
.cropper-text-btn.is-primary { color: var(--accent); }
.cropper-text-btn.is-primary:hover { color: var(--accent-hover); }

.cropper-stage {
  display: grid; place-items: center;
  padding: 20px 16px;
  background: oklch(24% 0.012 80);
}

.cropper-frame {
  position: relative; overflow: hidden;
  border-radius: 6px;
  cursor: grab;
  touch-action: none;              /* ドラッグとピンチを自前で処理する */
  background: oklch(18% 0.01 80);
}
.cropper-frame:active { cursor: grabbing; }

.cropper-frame img {
  position: absolute; left: 50%; top: 50%;
  max-width: none;                 /* 画像を実寸で扱う */
  user-select: none; -webkit-user-drag: none;
  will-change: transform;
}

/* 3分割グリッド */
.cropper-grid { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.cropper-grid::before, .cropper-grid::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: no-repeat;
}
.cropper-grid::before {
  background-image:
    linear-gradient(to right, oklch(100% 0 0 / .5) 1px, transparent 1px),
    linear-gradient(to right, oklch(100% 0 0 / .5) 1px, transparent 1px);
  background-position: 33.33% 0, 66.66% 0;
  background-size: 1px 100%, 1px 100%;
}
.cropper-grid::after {
  background-image:
    linear-gradient(to bottom, oklch(100% 0 0 / .5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(100% 0 0 / .5) 1px, transparent 1px);
  background-position: 0 33.33%, 0 66.66%;
  background-size: 100% 1px, 100% 1px;
}

.cropper-tools { padding: 16px; display: grid; gap: 14px; }

.cropper-ratios { display: flex; gap: 8px; }
.cropper-ratios button {
  flex: 1;
  padding: 9px 0; border-radius: var(--r-pill);
  border: 1px solid var(--line-chip); background: transparent;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; transition: all .15s;
}
.cropper-ratios button:hover { border-color: var(--text-muted); color: var(--text); }
.cropper-ratios button.is-active { background: var(--chip-on-bg); border-color: transparent; color: var(--chip-on-fg); }

.cropper-zoom { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.cropper-zoom input { flex: 1; accent-color: var(--accent); }

.cropper-hint { margin: 0; font-size: 12px; color: var(--text-faint); }

/* ===== 記事の通報 ===== */
.report-box {
  margin-top: 40px; padding: 24px;
  border: 1px solid oklch(85% 0.06 25); border-radius: var(--r-card);
  background: oklch(99% 0.008 25);
}
.report-box h2 { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--danger); }
.report-box .hint { margin: 0 0 20px; line-height: 1.7; }
.report-box .form-actions { border-top-color: oklch(88% 0.05 25); }

.report-target { margin: 12px 0 0; font-size: 14px; line-height: 1.7; }
.report-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--text-faint); }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.contact-item.is-resolved { opacity: .58; }

.admin-section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
#view-admin-contacts h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }

/* ===== 規約・プライバシーポリシー ===== */
.legal .page-title { margin-bottom: 8px; }
.legal .lead { margin: 0 0 40px; }

.legal-body { font-size: 15px; line-height: 1.9; color: var(--text-body); }
.legal-body h2 {
  font-size: 19px; font-weight: 800;
  margin: 44px 0 14px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 { font-size: 15.5px; font-weight: 700; margin: 28px 0 10px; }
.legal-body p  { margin: 0 0 16px; }

.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 1.6em; }
.legal-body li { margin-bottom: 8px; }
.legal-body li > ul { margin: 8px 0 0; }

.legal-body strong { font-weight: 700; color: var(--text); }
.legal-body code {
  font-size: 13px; padding: 2px 6px; border-radius: 5px;
  background: var(--line); color: var(--accent-ink);
}
.legal-body hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* 表は横に長くなるので、狭い画面ではスクロールさせる */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.legal-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-body th, .legal-body td {
  border: 1px solid var(--line-card);
  padding: 10px 14px; text-align: left; vertical-align: top;
}
.legal-body th { background: var(--line); font-weight: 700; color: var(--text); white-space: nowrap; }

/* 登録時の同意チェック */
.consent-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; font-weight: 500; line-height: 1.7; color: var(--text-muted);
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  width: 17px; height: 17px; margin: 2px 0 0;
  accent-color: var(--accent); flex-shrink: 0; cursor: pointer;
}

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--chip-on-bg); color: var(--chip-on-fg);
  font-size: 13.5px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--r-pill);
  box-shadow: 0 8px 24px oklch(20% 0.01 80 / 0.18);
  z-index: 50;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 32px; text-align: center; font-size: 12.5px; color: var(--text-faint); }
.site-footer nav ul { display: flex; justify-content: center; gap: 20px; list-style: none; margin: 14px 0; padding: 0; }
.site-footer a { color: var(--text-muted); }
.tagline { font-family: var(--font-logo); font-weight: 700; font-size: 15px; letter-spacing: 0.5px; color: var(--text); margin: 0; }
.copyright { margin: 0; }
