:root {
  --navy: #1a3a4a;
  --orange: #e8853b;
  --green: #2c6e49;
  --ivory: #f9f6f0;
  --text: #333333;
  --white: #ffffff;
  --border: #ddd5c8;
  --muted: #6c6c6c;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--ivory);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a { color: var(--green); }

a:hover, a:focus { color: var(--orange); }

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.site-header {
  color: var(--white);
  background: var(--navy);
}

.header-inner,
.main-nav,
.container,
.site-footer-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  padding: 22px 0 16px;
}

.site-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.3;
}

.site-tagline {
  margin: 6px 0 0;
  color: #e7edf0;
  font-size: .95rem;
}

.main-nav {
  display: flex;
  gap: 8px;
  padding: 0 0 16px;
  overflow-x: auto;
}

.main-nav a {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
}

.hero {
  padding: 56px 0;
  background:
    linear-gradient(rgba(26,58,74,.82), rgba(26,58,74,.82)),
    linear-gradient(135deg, #486f7f, #d99866);
  color: var(--white);
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.2;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--orange);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
}

main section {
  padding: 52px 0;
}

main section:nth-child(even) {
  background: rgba(255,255,255,.7);
}

.section-title {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  line-height: 1.35;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 28px;
}

.fact-grid,
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.fact,
.card,
.notice {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(26,58,74,.06);
}

.fact {
  padding: 20px;
}

.fact strong {
  display: block;
  color: var(--green);
}

.card {
  overflow: hidden;
}

.card-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  color: var(--muted);
  background: #ece6dc;
  text-align: center;
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1.45;
}

.card p {
  margin: 0 0 14px;
}

.card a {
  font-weight: 700;
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: var(--navy);
  background: #f3ddc8;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}

.notice {
  padding: 22px;
  border-left: 6px solid var(--orange);
}

.site-footer {
  padding: 36px 0;
  color: #e7edf0;
  background: var(--navy);
}

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

@media (min-width: 700px) {
  .fact-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
}
