/* 共通の配色・余白・スマートフォン表示 */
:root {
  color-scheme: dark;
  --bg: #09111e;
  --surface: #0d1827;
  --ink: #d8e1ed;
  --muted: #98acc3;
  --link: #a2c7e7;
  --rule: #33465e;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 36px 24px;
  color: var(--ink);
  background: var(--bg) radial-gradient(#233246 .55px, transparent .55px);
  background-size: 5px 5px;
  font: 1rem/1.9 "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
a:hover { color: #eaf5ff; }
a:focus-visible { outline: 2px solid #bcd9f4; outline-offset: 5px; }
p { margin: 0; }
.base-shell { max-width: 860px; margin: 0 auto; padding: 22px 26px 15px; background: var(--surface); border: 1px solid var(--rule); }
.base-overline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; color: var(--muted); font: .75rem/1.6 "Courier New", monospace; letter-spacing: .11em; }
.site-header { padding-bottom: 19px; border-bottom: 3px double var(--rule); }
h1 { margin: 0 0 5px; color: #e3edf7; font: 500 clamp(1.3125rem, 3.2vw, 1.8125rem)/1.55 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; letter-spacing: .055em; }
.base-site-link { display: inline-flex; flex-wrap: wrap; max-width: 100%; color: inherit; text-decoration: none; }
.base-site-link span { display: inline-block; }
.base-subtitle { color: var(--muted); font-size: .875rem; letter-spacing: .08em; }
.base-columns { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 30px; padding: 24px 0 30px; }
.base-columns.is-detail { grid-template-columns: minmax(0, 1fr); gap: 0; }
aside { padding-right: 20px; border-right: 1px solid var(--rule); }
.base-menu-label { margin: 0 0 13px; color: var(--muted); font: .75rem/1.7 "Courier New", monospace; letter-spacing: .14em; }
nav { display: grid; gap: 8px; }
nav a { width: fit-content; font-size: .875rem; }
nav a[aria-current="page"] { color: #edf5ff; }
nav a::before { content: "> "; display: inline-block; padding-right: 4px; color: var(--muted); text-decoration: none; }
main { min-width: 0; }
h2 { margin: 0 0 12px; padding: 5px 9px; border: 1px solid var(--rule); border-left: 3px solid #809bb9; background: #132238; font-size: 1rem; font-weight: 500; line-height: 1.6; }
h2::before { content: "◇ "; padding-right: 3px; color: #b0c6dc; }
.base-top-return { margin-bottom: 18px; }
.base-back { font-size: .875rem; }
.base-content-list { list-style: none; margin: 0; padding: 0; }
.base-content-item { padding: 11px 0; border-bottom: 1px dotted var(--rule); }
.base-content-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.base-content-item p { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.base-status { color: var(--muted); font-size: .75rem; }
.base-profile-name { margin: 16px 0 12px; font-size: 1.3125rem; font-weight: 500; letter-spacing: .1em; }
.base-profile-copy p + p { margin-top: 13px; }
.base-profile-details { margin: 25px 0; border-top: 1px dotted var(--rule); }
.base-profile-details div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.base-profile-details dt { color: var(--muted); font-size: .875rem; }
.base-profile-details dd { margin: 0; font-size: .875rem; }
.base-policy-meta { margin: 2px 0 18px; color: var(--muted); font-size: .75rem; }
.base-policy-intro { margin-bottom: 20px; }
.base-policy-section { margin-top: 24px; }
.base-policy-section h3 { margin: 0 0 9px; padding-bottom: 6px; border-bottom: 1px dotted var(--rule); font-size: 1rem; font-weight: 500; line-height: 1.8; }
.base-policy-section p + p { margin-top: 10px; }
.base-policy-section .base-policy-note { margin-top: 12px; padding: 10px 12px; border-left: 2px solid #809bb9; background: #132238; color: #c2d1e2; font-size: .875rem; }
.base-policy-back { margin-top: 28px; }
.site-footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; border-top: 3px double var(--rule); color: var(--muted); font-size: .75rem; }
.skip-link { position: absolute; left: 1rem; top: 0; z-index: 1; padding: 8px 12px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 600px) {
  body { padding: 18px 14px; }
  .base-shell { padding: 18px 17px 13px; }
  .base-columns { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 16px; }
  aside { padding: 0 0 13px; border-right: 0; border-bottom: 1px dotted var(--rule); }
  .base-menu-label { display: none; }
  nav { display: flex; flex-wrap: wrap; gap: 4px 17px; }
  h1 { letter-spacing: .025em; }
  .base-profile-details div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  nav a, .base-back, .base-content-title a, .base-profile-details a, .site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (pointer: coarse) {
  nav a, .base-back, .base-content-title a, .base-profile-details a, .site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
}
