:root {
  --bg: #F6F8FB;
  --panel: #FFFFFF;
  --accent: #2563EB;
  --accent-strong: #2563EB;
  --text: #1A1F2B;
  --muted: #4B5565;
  --line: #E6EAF0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Bahnschrift", "Segoe UI Variable", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.page a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 750;
}
.page a:hover { text-decoration: underline; }
.page a:visited { color: var(--accent-strong); }
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 18px 64px;
}
.page .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.page .brand {
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--text);
  text-decoration: none;
}
.page .nav {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.8;
}
.page .nav a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 750;
}
.page .nav a:hover { text-decoration: underline; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}
h1 { margin: 0 0 10px; font-size: 22px; letter-spacing: 0.4px; }
h2 { margin: 18px 0 8px; font-size: 16px; letter-spacing: 0.2px; }
h3 { margin: 14px 0 6px; font-size: 14px; }
p, li { color: var(--text); line-height: 1.85; }
ul { padding-left: 18px; }
code {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.20);
  padding: 1px 6px;
  border-radius: 8px;
}
blockquote {
  margin: 12px 0;
  padding: 12px 14px;
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid rgba(37, 99, 235, 0.45);
  border-radius: 10px;
  color: var(--text);
}
.legal h1 {
  position: relative;
  padding-left: 14px;
  margin-bottom: 14px;
}
.legal h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
}
.legal {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.panel.legal {
  padding: 26px 30px;
}
.legal h2 {
  padding: 2px 10px 6px;
  margin: 18px 0 4px;
}
.legal h2::after {
  content: none;
}
.legal h3 {
  margin: 12px 10px 4px 24px;
  padding: 0;
  font-size: 13.5px;
  font-weight: 900;
}
.legal p { margin: 6px 0; }
.legal li { margin: 3px 0; }
.legal > p {
  padding-left: 24px;
  padding-right: 10px;
}
.legal > ul,
.legal > ol {
  margin-left: 24px;
  margin-right: 10px;
  padding-left: 18px;
  margin-top: 6px;
  margin-bottom: 10px;
}
.legal > p.legal-updated {
  padding-left: 0;
  padding-right: 10px;
}
.legal > blockquote {
  margin-left: 24px;
  margin-right: 10px;
}
.legal-updated {
  margin-top: 18px;
  text-align: right;
  font-size: 12px;
  padding-right: 10px;
}
.legal p,
.legal li,
.legal blockquote {
  font-size: 13.5px;
  line-height: 1.85;
}
.legal p.muted { font-size: 12.5px; }
.legal-note {
  margin-top: 14px;
  padding: 10px 12px 10px 38px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.05);
  border-radius: 14px;
  position: relative;
}
.legal-note::before {
  content: "i";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: rgba(37, 99, 235, 0.92);
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.contact-tags {
  list-style: none;
  padding: 0;
  margin: 8px 16px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
}
.contact-tags li {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}
.about h1 {
  position: relative;
  padding-left: 14px;
  margin-bottom: 14px;
}
.about h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
}
.about-sec { margin-top: 18px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 10px;
}
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 18px; }
}
.about-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.about-grid .about-sec { margin-top: 0; }
.about-sec-title {
  margin: 0;
  color: var(--text);
  letter-spacing: 0.2px;
  font-size: 16px;
  font-weight: 900;
  display: block;
  padding: 2px 10px 10px;
}
.about-sec-title::after {
  content: none;
}
.about-sec-body {
  padding-left: 14px;
  margin-top: 10px;
}
.about-card .about-sec-body { padding: 0 16px; }
.about-card .about-sec-body { font-size: 13.5px; }
.about-card .about-sec-body p,
.about-card .about-sec-body li { line-height: 1.8; }
.about-card ul { padding-left: 18px; }
.about-sec-body > p:first-child,
.about-sec-body > ul:first-child {
  margin-top: 0;
}
.about-updated { margin-top: 18px; text-align: right; }
.about-updated {
  font-size: 12px;
  padding-right: 10px;
}

.about-linkbtn,
.about-linkbtn:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 800;
  font-size: 12.5px;
  text-decoration: none;
}
.about-linkbtn::after {
  content: "→";
  color: var(--accent-strong);
  font-weight: 900;
}
.about-linkbtn:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
  text-decoration: none;
}

.about-callout {
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.05);
  border-radius: 16px;
}
.about-callout .about-sec-body { padding-left: 0; }
.about-callout .about-sec-title { padding-bottom: 8px; }
.about-callout .about-sec-body { margin-top: 8px; }
.muted { color: var(--muted); }
.page .footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
  line-height: 1.8;
}
.page .footer a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 750;
}
.page .footer a:hover { text-decoration: underline; }

/* 共通ヘッダ/フッタを使うページでは、旧ヘッダ/フッタを非表示にする */
.with-topbar .page > .header { display: none; }
.with-topbar .page > .footer { display: none; }
