/* TABLE VOICE 利用規約・プライバシーポリシー共通スタイル（LPのトークン・書体に合わせる） */
:root {
  color-scheme: light;
  --orange: #F15A3C;
  --orange-ink: #C13D22;
  --peach: #FFB27D;
  --blush: #FFF3EA;
  --blush-2: #FFE6D5;
  --ink: #1F2329;
  --mute: #5E646E;
  --line: #ECE5DF;
  --white: #FFFFFF;
  --paper: #FFFCFA;
  --disp: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 15.5px; line-height: 1.9; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
code { font-size: .88em; background: var(--blush); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.inner { max-width: 920px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.skip { position: absolute; left: 16px; top: -100px; padding: 8px 16px; background: var(--ink); color: var(--white); z-index: 10; border-radius: 6px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--white); }
.site-head .inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-head .brand img { display: block; width: 180px; height: auto; }
.site-head .back { font-family: var(--disp); font-weight: 700; font-size: 14px; color: var(--mute); text-decoration: none; white-space: nowrap; }
.site-head .back:hover { color: var(--orange-ink); }

/* hero */
.hero { background: var(--blush); border-bottom: 1px solid var(--line); padding-block: 56px 46px; }
.eyebrow { margin: 0 0 10px; font-family: var(--disp); font-weight: 700; color: var(--orange-ink); font-size: 15px; letter-spacing: .06em; }
h1, h2, h3 { font-family: var(--disp); line-height: 1.45; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(28px, 4.6vw, 40px); font-weight: 700; letter-spacing: .02em; }
.lead { max-width: 40em; margin: 14px 0 0; color: var(--mute); }
.dates { margin: 18px 0 0; color: var(--mute); font-size: 13px; }

/* content */
.content { padding-block: 40px 88px; }
nav.toc { padding: 22px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
nav.toc h2 { margin: 0 0 8px; font-size: 16px; }
nav.toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; margin: 0; padding-left: 1.6em; font-size: 14px; }
.article { border-bottom: 1px solid var(--line); padding-block: 32px 34px; scroll-margin-top: 24px; }
.article h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.article h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 700; }
.article p { margin: 0 0 12px; }
.article ol, .article ul { margin: 0 0 12px; padding-left: 1.6em; }
.article li { margin-bottom: 6px; }
.article > :last-child, .article li > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--blush); font-family: var(--disp); font-weight: 700; white-space: nowrap; }
tbody th { width: 9em; font-weight: 700; background: var(--paper); }
.callout { margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--orange); background: var(--blush); border-radius: 0 12px 12px 0; font-size: 14.5px; }
.callout strong { font-family: var(--disp); }
.contact { margin-top: 32px; padding: 24px 26px; background: var(--blush); border-radius: 16px; }
.contact h2 { margin: 0 0 6px; font-size: 18px; }
.contact p { margin: 0; }
.en { font-size: 14px; color: var(--mute); }

/* footer (LPのフッターと同じ構成) */
footer.site { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--mute); }
footer.site .inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: start; }
footer.site .logo img { height: 30px; width: auto; display: block; }
footer.site .meta { display: grid; gap: 6px; }
footer.site .meta p { margin: 0; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer.site a { color: var(--mute); }
footer.site a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-head .inner { min-height: 64px; }
  .site-head .brand img { width: 148px; }
  .site-head .back { font-size: 13px; }
  .hero { padding-block: 40px 32px; }
  .content { padding-block: 26px 60px; }
  nav.toc { padding: 18px 18px; }
  nav.toc ol { grid-template-columns: 1fr; }
  .article { padding-block: 26px 28px; }
  .article h2 { font-size: 18px; }
  tbody th { width: auto; }
  .stack tr, .stack th, .stack td { display: block; width: 100%; }
  .stack tbody th { border-bottom: 0; padding-bottom: 2px; }
  .stack thead { display: none; }
  footer.site .inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
