/* Shared styles for Zurari's sub pages (privacy / terms / contact / tokushoho / delete-account).
   Same chrome and palette as /zurari/index.html: plum hacicace header/footer framing Zurari's slate + gold. */
:root {
  --plum: #151217;
  --plum-ink: #ece8ec;
  --plum-dim: rgba(214, 204, 216, .64);
  --plum-line: rgba(236, 232, 236, .16);
  --paper: #F4F5F8;
  --surface: #FFFFFF;
  --slate: #3F4C63;
  --slate-2: #56647D;
  --slate-3: #8695AD;
  --gold: #C99A2E;
  --gold-soft: #F3E7C8;
  --ink: #1E2430;
  --dim: #5E6778;
  --line: #E1E4EB;
  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 2px;
}
.shell { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- hacicace header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--plum) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--plum-line);
  color: var(--plum-ink);
}
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 36px; display: block; }
.site-head nav { display: flex; gap: clamp(14px, 3vw, 32px); font-family: var(--f-display); font-size: 14px; letter-spacing: .04em; }
.site-head nav a { text-decoration: none; color: var(--plum-dim); transition: color .2s; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--plum-ink); }
@media (max-width: 560px) { .site-head nav a.opt { display: none; } }

/* ---------- page head ---------- */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .shell { display: grid; gap: 14px; padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.crumb { font-family: var(--f-display); font-size: 13px; letter-spacing: .14em; color: var(--dim); display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.page-title { display: flex; align-items: center; gap: 16px; }
.page-title img { width: 48px; height: 48px; border-radius: 22.37%; border: 1px solid var(--line); background: var(--paper); flex: none; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.35; letter-spacing: .06em; font-weight: 700; text-wrap: balance; }
.page-head .lead { margin: 0; color: var(--dim); max-width: 40em; }
.dates { margin: 0; font-size: 13px; color: var(--dim); letter-spacing: .08em; }

/* ---------- document layout (TOC + body) ---------- */
.doc { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: clamp(28px, 5vw, 64px); padding-block: clamp(40px, 6vw, 80px); }
/* 目次のないページは本文を 1 列で表示する */
.doc:not(:has(> .toc)) { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 10px; font-family: var(--f-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 8px 0; text-decoration: none; color: var(--dim); line-height: 1.5; }
.toc a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 520px) { .toc ol { grid-template-columns: minmax(0, 1fr); } }

.prose { min-width: 0; max-width: 46em; }
.prose section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { margin: 0 0 14px; font-size: 19px; letter-spacing: .06em; line-height: 1.5; }
.prose h3 { margin: 20px 0 8px; font-size: 16px; letter-spacing: .06em; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose ol, .prose ul { margin: 0 0 12px; padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--slate-3); }
.prose .note { font-size: 14px; color: var(--dim); }
.prose .closing { margin-top: 36px; text-align: right; color: var(--dim); font-size: 14px; }

/* tables (外部送信・特商法) */
.table-wrap { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-size: 12px; letter-spacing: .1em; color: var(--dim); font-weight: 700; background: var(--paper); white-space: nowrap; }
tbody th { font-weight: 700; white-space: nowrap; }
.kv th { width: 13em; color: var(--dim); font-weight: 500; white-space: normal; }
@media (max-width: 560px) {
  .kv, .kv tbody, .kv tr, .kv th, .kv td { display: block; width: auto; }
  .kv th { border-bottom: 0; padding-bottom: 0; }
  .kv td { padding-top: 4px; }
}
.tbd { color: var(--dim); }

/* cards / callouts */
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 28px); margin: 0 0 16px; }
.callout h3 { margin-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; margin: 0; }
.steps li::before { content: counter(step); width: 24px; height: 24px; border-radius: 7px; background: var(--slate); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; transform: translateY(2px); }

/* forms (contact) */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 700; letter-spacing: .06em; padding: 0; }
.field .hint { font-size: 13px; color: var(--dim); margin: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid #C7CBD6; border-radius: 10px;
  padding: 10px 12px; letter-spacing: .02em;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #C7CBD6; border-radius: 10px; background: var(--surface); font-weight: 500; font-size: 14px; cursor: pointer; }
.radios input { accent-color: var(--slate); margin: 0; }
.radios label:has(input:checked) { border-color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; letter-spacing: .06em; text-decoration: none; cursor: pointer; border: 1px solid var(--slate); }
.btn.primary { background: var(--slate); color: #fff; }
.btn.primary:hover { background: #2F3A4E; }
.btn.ghost { background: transparent; color: var(--slate); }
.btn.ghost:hover { background: var(--surface); }
.status-msg { font-size: 14px; color: var(--dim); min-height: 1.5em; margin: 0; }

/* related links */
.related { border-top: 1px solid var(--line); }
.related .shell { padding-block: clamp(40px, 6vw, 64px); display: grid; gap: 16px; }
.related h2 { margin: 0; font-family: var(--f-display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 15px; }
.related a:hover { border-color: var(--slate-3); }
.related a::after { content: "→"; color: var(--slate-3); font-family: var(--f-display); }
.related a[aria-current="page"] { border-color: var(--slate); pointer-events: none; }

/* ---------- hacicace footer ---------- */
.site-foot { background: var(--plum); color: var(--plum-dim); }
.site-foot .shell { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
.site-foot .brand { color: var(--plum-ink); font-size: 16px; }
.site-foot .brand svg { width: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { color: var(--plum-ink); text-decoration: underline; }
