:root {
  --ink: #202124;
  --muted: #5f6368;
  --line: #dde3ea;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --mint: #dff3ea;
  --green: #167a58;
  --green-dark: #0f5841;
  --coral: #e96c55;
  --gold: #c4932f;
  --blue: #2e6f9f;
  --shadow: 0 16px 40px rgba(32, 33, 36, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 227, 234, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(22, 122, 88, 0.25);
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
}

.brand svg,
.icon svg,
.mini-icon svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  isolation: isolate;
  overflow: hidden;
  background: #f7faf8;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 37%, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0.1) 100%), url("assets/piggy-bank-hero.png");
  background-position: center, center;
  background-size: cover, cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 24%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  content: "";
}

.hero-inner {
  display: grid;
  min-height: calc(100vh - 68px);
  align-items: center;
  padding: 54px 0 92px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #3c4043;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.button.secondary {
  border-color: rgba(32, 33, 36, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.trust-item {
  min-height: 96px;
  padding: 22px;
  background: var(--paper);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.trust-item span {
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 78px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-title p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card,
.article-card,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.category-card {
  min-height: 210px;
  padding: 22px;
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 22px;
}

.icon.green {
  background: var(--mint);
  color: var(--green);
}

.icon.coral {
  background: #fde9e4;
  color: var(--coral);
}

.icon.blue {
  background: #e3f0f8;
  color: var(--blue);
}

.icon.gold {
  background: #fbf1d9;
  color: var(--gold);
}

.category-card h3,
.article-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.category-card p,
.article-card p,
.note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.featured {
  background: var(--soft);
}

.article-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
}

.article-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.article-card.primary {
  background: linear-gradient(135deg, #ffffff 0%, #eff8f3 100%);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 18px;
  padding: 5px 10px;
  background: rgba(22, 122, 88, 0.1);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.read-more {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--green-dark);
  font-weight: 800;
}

.policy-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffaf6;
}

.policy-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.55fr;
  gap: 42px;
  align-items: start;
}

.policy-list {
  display: grid;
  gap: 14px;
}

.policy-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.mini-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(196, 147, 47, 0.25);
  border-radius: 8px;
  background: #fbf1d9;
  color: var(--gold);
}

.policy-item strong {
  display: block;
  margin-bottom: 2px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--green-dark);
  font-weight: 800;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #26322e;
  color: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.subpage-hero {
  padding: 72px 0 50px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fbf9 0%, #fff7f2 100%);
}

.subpage-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: 0;
}

.subpage-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
}

.content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 84px;
}

.content h2 {
  margin: 42px 0 12px;
  font-size: 24px;
  letter-spacing: 0;
}

.content h2:first-child {
  margin-top: 0;
}

.content p,
.content li {
  color: #3c4043;
}

.content ul {
  padding-left: 1.3em;
}

.notice {
  border-left: 4px solid var(--green);
  margin: 28px 0;
  padding: 18px 20px;
  background: #f0f8f4;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero::before {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(255, 255, 255, 0.58) 100%), url("assets/piggy-bank-hero.png");
    background-position: center, 63% center;
  }

  .hero-inner {
    padding: 52px 0 110px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .trust-row,
  .category-grid,
  .article-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-inner,
  .content {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  section {
    padding: 58px 0;
  }

  .section-title h2,
  .subpage-hero h1 {
    font-size: 28px;
  }
}
