/* Hidemori Lab のサイト共通の土台。端末のダークモードに関係なく常に白地。黒と赤はロゴ（logo-hidemorilab-512.png）から取った */
:root {
  --bg: #ffffff;
  --panel: #f6f6f4;     /* 表の見出し・注記の地 */
  --ink: #12120f;       /* ロゴの黒 */
  --sub: #55554f;
  --muted: #6e6e68;
  --line: #e4e4e0;
  --red: #d50f13;       /* ロゴの赤。印や罫線など小さい面積だけに使う */
  --red-text: #c20e12;  /* 文字に使うときの赤（地色との比 6:1） */
  --logo: url("logo-hidemorilab-96.png");
  --sans: "Yu Gothic UI", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.85;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration-color: var(--red); text-underline-offset: .2em; }
a:hover { color: var(--red-text); }

/* ヘッダー: ロゴ＋屋号。ロゴは CSS で付けるので、生成される HTML（privacy）も同じ見た目になる */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
header.site a.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
}
header.site a.brand::before {
  content: ""; width: 34px; height: 34px; flex: none;
  background: var(--logo) center / contain no-repeat;
}
header.site .brand-ja { color: var(--sub); font-size: .85rem; font-weight: normal; letter-spacing: .1em; margin-left: 2px; }
header.site nav a { color: var(--sub); text-decoration: none; font-size: .9rem; margin-left: 18px; }
header.site nav a:hover { color: var(--red-text); }

main { padding: 44px 0 64px; }
h1, h2, h3 { font-weight: 700; letter-spacing: .02em; }
h1 { font-size: 1.7rem; line-height: 1.5; margin: 0 0 14px; }
h2 {
  position: relative;
  font-size: 1.2rem; line-height: 1.5;
  margin: 48px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
/* 見出しの下線の頭だけ赤くする */
h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 2.5em; height: 2px; background: var(--red);
}
p { margin: 0 0 14px; }
ul { padding-left: 1.3em; margin: 0 0 14px; }
li { margin: 4px 0; }
.lead { color: var(--sub); font-size: 1.05rem; }
.meta { color: var(--muted); font-size: .9rem; }

table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid var(--line); }
th { background: var(--panel); font-weight: 600; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 44px; color: var(--muted); font-size: .86rem; }
footer.site a { color: var(--sub); }

@media (max-width: 560px) {
  body { font-size: 15px; }
  h1 { font-size: 1.4rem; }
  header.site a.brand { font-size: 1.05rem; }
  header.site a.brand::before { width: 30px; height: 30px; }
  header.site .brand-ja { display: none; }
  header.site nav a { margin-left: 12px; font-size: .85rem; }
}
