/* ============================================================
   QOLMS 静的ページ共通デザイン（KAGAMINO LP 準拠）
   利用規約・プライバシーポリシー等の文書ページ用テンプレート。
   旧 WordPress サイトから移植する静的ページはこのファイルを基礎にする。
   ※ ページ固有のスタイルは各 index.html 側に書かず、
      共通で使うものはここに集約する（クラス名は1ファイル定義の原則）。
   ============================================================ */

:root {
  --brand-from: #b5d7ff;
  --brand-to: #439bff;
  --brand: #2f86f0;
  --brand-dark: #1f5fb0;
  --ink: #2b3440;
  --ink-soft: #5a6675;
  --bg-soft: #f4f8ff;
  --card: #ffffff;
  --line: #e6eefb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(47, 134, 240, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
img { max-width: 100%; display: block; }

.wrap { width: min(880px, 92vw); margin: 0 auto; }

/* ───────── Header（LP と同じ sticky blur） ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #eef3fb;
}
.site-header .wrap {
  width: min(1080px, 92vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-lockup img { width: 36px; height: 36px; border-radius: 9px; }
.brand-lockup b { font-size: 18px; letter-spacing: .04em; color: var(--ink); }
.brand-lockup b span { color: var(--ink-soft); font-weight: 600; font-size: 13px; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(47, 134, 240, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47, 134, 240, .4); }
@media (max-width: 600px) { .header-cta { display: none; } }

/* ───────── タイトル帯（hero） ───────── */
.doc-hero {
  background: linear-gradient(135deg, var(--brand-from) 0%, var(--brand-to) 100%);
  color: #fff;
  padding: 52px 0 56px;
  position: relative;
  overflow: hidden;
}
.doc-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 320px; height: 320px;
  background: rgba(255, 255, 255, .14);
  border-radius: 50%;
}
.doc-hero .wrap { position: relative; z-index: 1; }
.doc-hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.doc-hero h1 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.3; margin: 0; }
.doc-hero .lead { margin: 14px 0 0; opacity: .95; font-size: 15px; }

/* ───────── 文書本文（カード） ───────── */
.doc-main { padding: 0 0 64px; }
.doc {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 52px);
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.doc > :first-child { margin-top: 0; }

/* 見出し：旧 WP の h5 / 新規の h2 どちらも節見出しとして同じ意匠 */
.doc h5, .doc h2 {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 800;
  color: var(--brand-dark);
  margin: 38px 0 12px;
  padding-left: 14px;
  border-left: 5px solid var(--brand);
  line-height: 1.45;
}
.doc h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 22px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc ol, .doc ul { margin: 0 0 16px; padding-left: 1.6em; }
.doc li { margin: 6px 0; }
.doc ol ol, .doc ul ul, .doc ol ul, .doc ul ol { margin: 8px 0; }
.doc .right { text-align: right; color: var(--ink-soft); }
.doc a { word-break: break-all; }

/* 表（プライバシーの利用目的・問合せ窓口など） */
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; width: 38%; }
@media (max-width: 600px) { .doc th { white-space: normal; width: 42%; } }

/* ───────── Footer（LP と同じ） ───────── */
.site-footer { background: #0f2238; color: #cdd7e4; padding: 44px 0 28px; font-size: 14px; }
.site-footer .wrap {
  width: min(1080px, 92vw);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .f-brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-footer .f-brand b { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #cdd7e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .copy {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 22px;
  padding-top: 18px;
  color: #8fa1b6;
  font-size: 13px;
}

/* ───────── FAQ（アコーディオン / details+summary・JS不要） ───────── */
.faq { margin: 4px 0 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item > summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 16px 46px 16px 16px;
  position: relative;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
  content: "Q";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  background: var(--brand);
  color: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}
.faq-item > summary::after {
  content: "＋";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.faq-item[open] > summary { color: var(--brand-dark); }
.faq-item[open] > summary::after { content: "－"; }
.faq-a {
  padding: 0 16px 16px 50px;
  color: var(--ink-soft);
}
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .faq-a { padding-left: 16px; } }
