/* みーはん サイト共通（色・ヘッダー・フッター・ボタン） */
:root {
  --bg: #f6f4ff;
  --bg-2: #ece8ff;
  --card: #ffffff;
  --text: #1f1d3a;
  --muted: #4d4a72;
  --line: #dcd6f7;
  --accent: #7c66ff;
  --accent-soft: #ece8ff;
  --pink: #e85a9b;
  --ok: #1f9d6b;
  --ng: #a09cbf;
  --shadow: 0 10px 30px rgba(60, 40, 140, .10);
  --header-bg: rgba(246, 244, 255, .82);
  /* ヒーロー（夜空）はテーマに関係なく固定 */
  --night-1: #16182f;
  --night-2: #2e1e4a;
  --night-text: #f2f0ff;
  --night-muted: #c4bee6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16182f;
    --bg-2: #241a40;
    --card: #1f2140;
    --text: #f2f0ff;
    --muted: #c4bee6;
    --line: #36375e;
    --accent: #9a88ff;
    --accent-soft: #2c2a55;
    --pink: #ff7eb6;
    --ok: #4fd3a0;
    --ng: #6e6a92;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --header-bg: rgba(22, 24, 47, .82);
  }
}
:root[data-theme="dark"] {
  --bg: #16182f;
  --bg-2: #241a40;
  --card: #1f2140;
  --text: #f2f0ff;
  --muted: #c4bee6;
  --line: #36375e;
  --accent: #9a88ff;
  --accent-soft: #2c2a55;
  --pink: #ff7eb6;
  --ok: #4fd3a0;
  --ng: #6e6a92;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --header-bg: rgba(22, 24, 47, .82);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--text);
  /* 本文は OS の文字を使う（丸文字の Web フォントは Windows だと小さい字がにじむため） */
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 見出し・ボタン・ロゴなど大きい文字だけ丸文字 */
h1, h2, h3, .home, .btn, .badge, .tag, .kicker, .price, .round {
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.home {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .02em;
}
.home:hover { background: var(--accent-soft); }
.home .dot { color: var(--accent); }
.home .home-icon { display: none; font-size: 22px; line-height: 1; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a.btn { color: #fff; margin-left: 4px; }
.site-nav a.btn:hover { background: var(--accent); filter: brightness(1.08); }

/* 半画面・スマホでは 🏠 だけにする（config.js が html に home-compact / home-full を付ける） */
.home-compact .home .home-text { display: none; }
.home-compact .home .home-icon { display: inline; }
.home-compact .home { width: 44px; padding: 0; }
/* JS が動かないときは幅だけで判断 */
@media (max-width: 900px) {
  html:not(.home-full) .home .home-text { display: none; }
  html:not(.home-full) .home .home-icon { display: inline; }
  html:not(.home-full) .home { width: 44px; padding: 0; }
}
@media (max-width: 560px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 800; border: none;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; filter: none; }

h2.section-title { font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin: 0 0 8px; text-align: center; }
p.section-lead { color: var(--muted); text-align: center; margin: 0 0 28px; }

/* ---------- フッター ---------- */
.site-footer { margin-top: 72px; padding: 40px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--card); }
.footer-top { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 32px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "M PLUS Rounded 1c", system-ui, sans-serif; font-weight: 800; font-size: 20px; }
.footer-logo img { width: 40px; height: 40px; }
.footer-logo .dot { color: var(--accent); }
.footer-brand p { margin: 10px 0 0; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.footer-col { border-left: 2px solid var(--line); padding-left: 16px; }
.footer-col h4 { margin: 0 0 12px; font-family: "M PLUS Rounded 1c", system-ui, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 13px; font-weight: 700;
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.footer-line { border: none; border-top: 1px solid var(--line); margin: 28px 0 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.copyright { margin: 0; text-align: center; font-size: 12px; line-height: 1.6; }
.dmca-slot:empty { display: none; }
.dmca-slot img { height: 30px; width: auto; display: block; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- 表（特定商取引法・組織概要） ---------- */
.doc table.kv th { width: 30%; white-space: normal; }
.doc table.kv td { background: var(--card); }
.doc ul.plain { margin: 0; padding-left: 1.2em; }
.tbd { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--muted); font-size: 13px; font-weight: 700; }
.small-note { color: var(--muted); font-size: 13px; }

/* ---------- スタッフ一覧 ---------- */
.doc.wide { max-width: 980px; }
.doc .staff-grid, .staff-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.staff {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: var(--shadow);
}
.staff-av { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); }
.staff-av.placeholder {
  display: grid; place-items: center; font-family: "M PLUS Rounded 1c", system-ui, sans-serif; font-size: 40px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #b9a9ff, #ff9fca);
}
.staff-name { font-family: "M PLUS Rounded 1c", system-ui, sans-serif; font-size: 18px; font-weight: 800; }
.role { padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; background: var(--accent-soft); color: var(--accent); }
.staff.owner .staff-av { border-color: var(--accent); }
.staff.owner .role { background: var(--accent); color: #fff; }
.staff.sub .role { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.staff.illust .role { background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--pink); }
.staff.helper .role { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
@media (max-width: 560px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .staff { padding: 18px 10px; }
  .staff-av { width: 84px; height: 84px; }
  .staff-av.placeholder { font-size: 30px; }
  .staff-name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 規約・ポリシーなどの文章ページ ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 0 0; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; margin: 0 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.doc .intro { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.doc .toc { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; margin: 24px 0 8px; }
.doc .toc b { display: block; margin-bottom: 6px; }
.doc .toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 24px; }
.doc .toc a { color: var(--text); text-decoration: none; }
.doc .toc a:hover { color: var(--accent); text-decoration: underline; }
.doc h2 { font-size: 20px; font-weight: 800; margin: 40px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); scroll-margin-top: 76px; }
.doc h3 { font-size: 16px; font-weight: 800; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc code { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.doc a { color: var(--accent); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--accent-soft); font-weight: 700; }
.doc .table-scroll { overflow-x: auto; }
.doc .point { border-left: 4px solid var(--accent); background: var(--card); padding: 10px 14px; border-radius: 0 12px 12px 0; }
