/* Pai Fim 法的ページ 共通スタイル
   2026-10-11: トップページの新デザイン（夜の配色・明朝の見出し・細い英字ラベル・ネオンの差し色）にそろえた。
   文書は長文なので、本文は読みやすいゴシック・行間広め・1行の幅を約40字に抑える。 */
:root {
  --night: #121820;     /* 地の色 */
  --night-2: #18212b;   /* 一段明るい面（表の見出し・注記） */
  --line: #2a3542;      /* 罫線 */
  --mist: #e8ecf0;      /* 本文 */
  --mute: #93a0ad;      /* 補足 */
  --lamp: #d9c7a3;      /* 差し色（暖色） */
  --neon: #7fe7ff;      /* 差し色（ネオン） */
  --f-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-latin: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--mist);
  background: var(--night);
  line-height: 2;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  padding-inline: clamp(16px, 4vw, 56px);
}
a { color: inherit; }
a:focus-visible { outline: 1px solid var(--lamp); outline-offset: 4px; }

/* 上部バー：ロゴと3文書の切り替え */
.legal-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  min-height: 72px;
  margin-inline: calc(-1 * clamp(16px, 4vw, 56px)); padding-inline: clamp(16px, 4vw, 56px);
  background: color-mix(in srgb, var(--night) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.legal-bar .mark { display: flex; align-items: center; text-decoration: none; padding-block: 6px; }
/* 白地・黒文字のロゴを暗い地に載せる：反転して白地を黒にし、screen で黒を透かす */
.legal-bar .mark img { height: 60px; width: auto; display: block; filter: invert(1) grayscale(1) brightness(1.5); mix-blend-mode: screen; }
.legal-bar nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.legal-bar nav a {
  font-family: var(--f-body); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--mute);
  text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.legal-bar nav a:hover { color: var(--mist); }
.legal-bar nav a[aria-current="page"] { color: var(--mist); border-bottom-color: var(--neon); box-shadow: 0 6px 10px -8px var(--neon); }

/* 文書の見出し */
header.legal { max-width: 760px; margin: 0 auto; padding-block: clamp(3rem, 9vw, 6rem) 2rem; border-bottom: 1px solid var(--line); }
header.legal .eyebrow { font-family: var(--f-latin); font-weight: 300; font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mute); margin: 0 0 1rem; }
header.legal h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.5; letter-spacing: 0.06em; text-wrap: balance; }
header.legal .subtitle { margin-top: 0.6rem; font-size: 0.85rem; color: var(--mute); letter-spacing: 0.1em; }
header.legal nav { display: none; } /* 文書の切り替えは上部バーに移した */

main.legal { max-width: 760px; margin: 0 auto; padding-block: 2.5rem 6rem; }
main.legal > p { font-size: 0.95rem; color: var(--mist); }
main.legal p.note { background: var(--night-2); border-left: 1px solid var(--lamp); padding: 0.9rem 1.1rem; font-size: 0.88rem; color: var(--mist); }

h2 {
  margin: 3.2rem 0 1rem;
  font-family: var(--f-display); font-weight: 500;
  font-size: 1.15rem; letter-spacing: 0.05em; line-height: 1.6;
  color: var(--mist);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}
h3 { font-family: var(--f-display); font-weight: 500; font-size: 1rem; margin: 1.8rem 0 0.6rem; }
ol, ul { padding-left: 1.4rem; }
li { margin: 0.45rem 0; font-size: 0.92rem; color: var(--mist); }
li::marker { color: var(--mute); }
ul ul, ol ul, ol ol { margin-top: 0.35rem; }
strong { color: #fff; font-weight: 500; }
small { color: var(--mute); }

/* 表（特商法の表記・委託先一覧など） */
table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 1rem 1rem; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
th { width: 30%; background: var(--night-2); font-weight: 500; color: var(--mute); white-space: nowrap; letter-spacing: 0.04em; }
td small { color: var(--mute); font-size: 0.8rem; line-height: 1.9; }

/* 記入待ちのプレースホルダ（本番公開前に必ず実値へ差し替える） */
.ph {
  background: rgba(217, 199, 163, 0.14);
  color: var(--lamp);
  padding: 0 0.35em;
  border-bottom: 1px dashed var(--lamp);
  font-style: normal;
}

.legal-meta { margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--mute); font-variant-numeric: tabular-nums; }

.legal-foot { max-width: 760px; margin: 0 auto; padding-block: 2rem 4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--mute); }
.legal-foot a { text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 560px) {
  .legal-bar { min-height: 64px; }
  .legal-bar .mark img { height: 48px; }
  .legal-bar nav { gap: 0.3rem 1rem; padding-bottom: 0.6rem; }
  th, td { display: block; width: 100%; }
  th { border-bottom: none; padding-bottom: 0.3rem; }
}
