/* 京石株式会社 法令ページ共通スタイル */
:root {
  color-scheme: light;
  --bg: #FAF6EC;
  --surface: #FDFAF2;
  --surface-2: #F2EBDA;
  --ink: #141210;
  --ink-2: #4A463C;
  --ink-3: #8A8470;
  --rule: #D6CFBB;
  --rule-soft: #E5DEC9;
  --accent: #8B2E2E;
  --accent-deep: #6A1F1F;
  --gold-ink: #C9A64F;
  --font-min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15130F;
    --surface: #1E1B16;
    --surface-2: #26231D;
    --ink: #ECE8DC;
    --ink-2: #B7B0A0;
    --ink-3: #807868;
    --rule: #3A362D;
    --rule-soft: #2B2822;
    --accent: #D77A6C;
    --accent-deep: #B55B4D;
    --gold-ink: #E4C572;
  }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
  font-feature-settings: "palt" 1;
}
.wrap { max-width: 820px; margin: 0 auto; padding-inline: 24px; }

nav.top {
  position: sticky;
  top: env(safe-area-inset-top, 0);
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
nav.top .brand {
  font-family: var(--font-min);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
nav.top .brand .seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-min);
  font-weight: 700;
  font-size: 16px;
  border-radius: 2px;
}
nav.top .back {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.06em;
}
nav.top .back:hover { color: var(--accent); }

header.page-head {
  padding-block: 72px 48px;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1 {
  font-family: var(--font-min);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  line-height: 1.3;
  color: var(--ink);
}
.updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
main {
  padding-block: 56px 96px;
}
main h2 {
  font-family: var(--font-min);
  font-weight: 700;
  font-size: 22px;
  margin: 48px 0 16px;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
}
main h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
main h3 {
  font-family: var(--font-min);
  font-weight: 600;
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
main p { color: var(--ink); margin: 12px 0; }
main ul, main ol { color: var(--ink); padding-left: 24px; }
main ul li, main ol li { margin: 6px 0; }
main table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 14px;
}
main table th, main table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
main table tr:last-child th, main table tr:last-child td { border-bottom: none; }
main table th {
  width: 180px;
  font-family: var(--font-min);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  main table th { width: 110px; padding: 12px 14px; }
  main table td { padding: 12px 14px; }
}
main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
main a:hover { color: var(--accent-deep); }

footer.foot {
  background: #141210;
  color: var(--bg);
  padding-block: 36px 28px;
  font-size: 12px;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
footer.foot a {
  color: var(--rule);
  text-decoration: none;
  margin-inline: 10px;
}
footer.foot a:hover { color: var(--gold-ink); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
