/* ============================================================
   XenoX 規約・ポリシーのページ専用スタイル
   （/privacypolicy・/sitepolicy/・/identification/・/agreement の4ページで共通）
   - 共通の土台 xm.css の後に読み込む。これまでの privacypolicy.css などの代わり
   - 本文は本番のHTMLのまま。クラス名（chapter・article など）に見た目だけを当てる
   ============================================================ */

/* このファイルで使う色（モックの値そのまま） */
.xm {
  --ink-20: rgba(21, 23, 28, .2);
  --navy-35: rgba(28, 47, 115, .35);
  --white: #fff;
  --text-1: #2c2f36;
  --text-2: #3a3d45;
  --rule: #dcdbd4;
}


.xm-lg { padding: 56px 0 96px; }
@media (max-width: 960px) { .xm-lg { padding: 36px 0 64px; } }

/* ---------- 見出し ---------- */
.xm-lg__head { text-align: center; margin-bottom: 36px; }
.xm-lg__head h1 { margin: 16px 0 0; font-size: clamp(26px, 3.8vw, 44px); font-weight: 900; line-height: 1.35; word-break: auto-phrase; }

/* ---------- 目次＋本文 ---------- */
.xm-lg__grid { max-width: 860px; margin: 0 auto; }
.xm-lg__grid.has-toc { max-width: 1080px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 1040px) { .xm-lg__grid.has-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 860px; } }
.xm-lg__side { position: sticky; top: 84px; }
@media (max-width: 1040px) { .xm-lg__side { position: static; } }
.xm-lg__toc { background: var(--white); border: var(--bd); border-radius: 16px; box-shadow: var(--sh-sm); }
.xm-lg__toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 900; font-size: 15px; }
.xm-lg__toc summary::-webkit-details-marker { display: none; }
.xm-lg__toc summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .25s; }
.xm-lg__toc[open] summary::after { transform: rotate(45deg); }
.xm-lg__toc ol { list-style: none; margin: 0; padding: 0 10px 12px; max-height: calc(100vh - 200px); overflow-y: auto; }
@media (max-width: 1040px) { .xm-lg__toc ol { max-height: none; } }
.xm-lg__toc a { display: block; padding: 6px 10px; border-radius: 10px; text-decoration: none; font-size: 13.5px; font-weight: 700; line-height: 1.55; color: var(--text-2); transition: background .2s; }
.xm-lg__toc a:hover { background: var(--paper); color: var(--ink); }
.xm-lg__toc a.is-cur { background: var(--yellow-2); color: var(--ink); }

/* 本文の紙 */
.xm-lg__body { min-width: 0; background: var(--white); border: var(--bd); border-radius: 20px; box-shadow: var(--sh); padding: 36px 40px 40px; font-size: 15px; line-height: 1.95; color: var(--text-1); }
@media (max-width: 720px) { .xm-lg__body { padding: 22px 18px 26px; font-size: 14.5px; } }
.xm-lg__body p { margin: 0 0 1em; }
.xm-lg__body p:last-child { margin-bottom: 0; }
.xm-lg__body a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--navy-35); }
.xm-lg__body a:hover { background: var(--yellow-2); text-decoration-color: var(--navy); }

/* 章 */
.xm-lg__body .chapter + .chapter { margin-top: 40px; padding-top: 36px; border-top: 2.5px dashed var(--ink-20); }
.xm-lg__body .chapter-title { margin: 0 0 16px; padding: 0 0 0 14px; border-left: 6px solid var(--yellow); font-size: clamp(18px, 2.1vw, 22px); font-weight: 900; line-height: 1.5; color: var(--ink); scroll-margin-top: 80px; }

/* 箇条書き（番号付きの ol は、これまでどおり 1. 2. 3. と番号を出す） */
.xm-lg__body ul { list-style: none; margin: 0 0 1em; padding: 0; }
.xm-lg__body ul li { position: relative; padding-left: 1.3em; margin-bottom: .4em; line-height: 1.85; }
.xm-lg__body ul li::before { content: ""; position: absolute; left: .1em; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.xm-lg__body ol { margin: 0 0 1em; padding-left: 1.8em; list-style: decimal; }
.xm-lg__body ol li { margin-bottom: .4em; line-height: 1.85; padding-left: .2em; }
.xm-lg__body ol li::marker { font-family: var(--en); font-weight: 700; color: var(--navy); }

/* 利用規約の条（「第1条」と「（本規約について）」を1行に並べ、その下に本文） */
.xm-lg__body .article { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.xm-lg__body .article + .article { margin-top: 24px; }
.xm-lg__body .article > * { grid-column: 1 / -1; }
.xm-lg__body .article > .article-no { grid-column: 1; grid-row: 1; margin: 0 0 6px; display: inline-block; padding: 0 10px; background: var(--ink); color: var(--white); border-radius: 6px; font-weight: 900; font-size: 13.5px; line-height: 1.8; }
.xm-lg__body .article > .article-label { grid-column: 2; grid-row: 1; margin: 0 0 6px; font-weight: 900; font-size: 15.5px; color: var(--ink); }
.xm-lg__body .addendum { margin-top: 36px; padding-top: 20px; border-top: 2.5px dashed var(--ink-20); font-weight: 700; }

/* 特定商取引法の表 */
.xm-lg__body .table-wrapper { overflow-x: auto; }
.xm-lg__body table { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; font-size: 14.5px; }
.xm-lg__body th, .xm-lg__body td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--rule); line-height: 1.8; }
.xm-lg__body tr:last-child th, .xm-lg__body tr:last-child td { border-bottom: 0; }
.xm-lg__body th { width: 17em; background: var(--paper); font-weight: 900; border-right: 1.5px solid var(--rule); word-break: auto-phrase; }
.xm-lg__body td { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .xm-lg__body table, .xm-lg__body tbody, .xm-lg__body tr, .xm-lg__body th, .xm-lg__body td { display: block; width: auto; }
  .xm-lg__body th { border-right: 0; border-bottom: 0; padding: 10px 14px 4px; font-size: 13px; }
  .xm-lg__body td { padding: 2px 14px 12px; }
}
/* 特定商取引法のページは本文が表だけなので、紙の余白を詰める */
.xm-lg__body:has(> .table-wrapper) { padding: 24px; }
@media (max-width: 720px) { .xm-lg__body:has(> .table-wrapper) { padding: 14px; } }

/* ---------- 4ページの行き来 ---------- */
.xm-lg__docs { max-width: 1080px; margin: 56px auto 0; text-align: center; }
.xm-lg__docs > p { margin: 0 0 14px; font-weight: 900; font-size: 15px; }
.xm-lg__docs > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .xm-lg__docs > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .xm-lg__docs > div { grid-template-columns: minmax(0, 1fr); } }
.xm-lg__docs a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; text-decoration: none; text-align: left; font-weight: 900; font-size: 14px; line-height: 1.5; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--sh-sm); transition: transform .15s, box-shadow .15s; word-break: auto-phrase; }
.xm-lg__docs a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.xm-lg__docs a[aria-current="page"] { background: var(--yellow); pointer-events: none; }
.xm-lg__docs .xm-arw { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 11px; }
.xm-lg__docs a[aria-current="page"] .xm-arw { visibility: hidden; }
