:root {
  --bg: #f5f7f5;
  --card: #ffffff;
  --text: #1f2937;
  --sub: #4b5563;
  --line: #d5ded8;
  --accent: #57b37b;
  --accent-strong: #3a8f62;
  --accent-soft: #edf8f1;
  --accent-deep: #24573d;
  --warn: #8a5a00;
  --warn-bg: #fff5df;
  --danger: #c0392b;
  --danger-soft: #fff1ef;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --container: 920px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  opacity: 0.88;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 24px, var(--container));
  margin: 0 auto;
}

.wrap {
  width: min(100%, var(--container));
}

.stack-xs > * + * { margin-top: 8px; }
.stack-sm > * + * { margin-top: 10px; }
.stack-md > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 24px; }
.stack-xl > * + * { margin-top: 34px; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1200;
}
.skip-link:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(213, 222, 216, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand__logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand__name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.menu-button {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-button__bars,
.menu-button__bars::before,
.menu-button__bars::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-button__bars::before { transform: translateY(-7px); }
.menu-button__bars::after { transform: translateY(5px); }
body.menu-open .menu-button__bars { transform: rotate(45deg); }
body.menu-open .menu-button__bars::before { transform: rotate(90deg); }
body.menu-open .menu-button__bars::after { opacity: 0; }

.site-main {
  padding: 18px 0 56px;
}

.site-footer {
  padding: 34px 0 48px;
  color: var(--sub);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.hero-card,
.panel,
.result-card,
.faq-item,
.notice-box,
.help-box,
.success-box,
.info-card,
.cta-box,
.article-card,
.article-section,
.related-card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px 18px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-title,
.page-title {
  margin: 0 0 12px;
  font-size: 1.65rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.lead {
  margin: 0;
  color: var(--sub);
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  color: var(--sub);
  font-size: 0.95rem;
}
.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: #94a3b8;
}

h1, h2, h3, h4 { font-weight: 800; }

h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  line-height: 1.45;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.16rem;
  line-height: 1.5;
}

p, li {
  font-size: 1rem;
}

p { margin: 0 0 12px; }

.small-text {
  font-size: 0.95rem;
  color: var(--sub);
}

.text-accent { color: var(--accent-deep); font-weight: 700; }
.text-danger { color: var(--danger); font-weight: 700; }
.text-strong { font-weight: 800; }
.marker {
  background: linear-gradient(transparent 60%, #fff0b8 60%);
  font-weight: 700;
}

.footer-nav,
.inline-links,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-copy { color: var(--sub); }

@media (min-width: 768px) {
  .site-header__inner { min-height: 76px; }
  .site-main { padding-top: 24px; padding-bottom: 70px; }
  .hero-card { padding: 30px 26px; }
  .site-title, .page-title { font-size: 2.15rem; }
  h2 { font-size: 1.55rem; }
  .brand__name { font-size: 1.06rem; }
}
