/* kurasofu.com の共通のスタイル（外部のフォントは使わない） */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b6370;
  --line: #e3e0d8;
  --accent: #2f6b4f;
  --accent-soft: #e6f0ea;
  --radius: 12px;
  --max: 760px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1d2126;
    --text: #e8e6e1;
    --muted: #a3a9b2;
    --line: #2f343b;
    --accent: #7cc4a0;
    --accent-soft: #1f3129;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

/* 本文の「li + li」の余白をナビでは使わない（横に並べるため） */
.site-nav li,
.site-footer li {
  margin-top: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* 本文 */
main {
  padding: 32px 0 48px;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
}

p,
ul,
ol,
dl {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 4px;
}

.lead {
  color: var(--muted);
  margin-bottom: 24px;
}

.lang-label {
  display: inline-block;
  margin: 0 0 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-block + .lang-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--line);
}

.lang-switch {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
}

.card h2,
.card h3 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
}

dl.facts dt {
  color: var(--muted);
}

dl.facts dd {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq dt {
  font-weight: 700;
  margin-top: 20px;
}

.faq dd {
  margin: 4px 0 0;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  dl.facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  dl.facts dd {
    margin-bottom: 8px;
  }
}
