:root {
  color-scheme: light;
  --ink: #18201c;
  --sub: #5f6f68;
  --paper: #ffffff;
  --surface: #f4f7f2;
  --line: #dce4dc;
  --green: #176b4d;
  --green-dark: #103d30;
  --gold: #b9892f;
  --blue: #2d6f98;
  --shadow: 0 18px 52px rgba(20, 31, 26, 0.12);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.8;
}

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  background: #eef4f0;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(217, 226, 220, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: 0;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--sub);
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 84px clamp(20px, 6vw, 80px);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 48, 36, 0.9), rgba(28, 100, 76, 0.62)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-inner {
  position: relative;
  width: min(850px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.button.primary {
  background: #fff;
  color: var(--green-dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #fff;
}

.button.dark {
  background: var(--green-dark);
  color: #fff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metrics div {
  min-height: 112px;
  padding: 22px;
  background: var(--paper);
}

.metrics span {
  display: block;
  color: var(--sub);
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.2;
}

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

.section.compact {
  padding-top: 34px;
  padding-bottom: 34px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  color: var(--sub);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.featured-grid {
  grid-template-columns: repeat(3, 1fr);
}

.update-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 16px 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 31, 26, 0.08);
}

.update-note strong {
  color: var(--green-dark);
}

.update-note span {
  color: var(--sub);
}

.article-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
}

.article-card h3 {
  margin: 12px 0 10px;
  line-height: 1.38;
}

.article-card p {
  margin: 0;
  color: var(--sub);
}

.article-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-meta span {
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef4f0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 20px;
  color: var(--green);
  font-weight: 900;
}

.watch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.watch-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--paper);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.consultation-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.ad-slot.placeholder {
  color: var(--sub);
  text-align: center;
}

.ad-slot span,
.ad-slot small {
  display: block;
}

.ad-slot strong {
  display: block;
  margin: 4px 0;
  color: var(--green-dark);
  font-size: 22px;
}

.plain-page {
  min-height: 100vh;
  padding-top: 32px;
}

.doc {
  max-width: 820px;
}

.doc h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: 0;
}

.doc h2 {
  margin: 36px 0 10px;
}

.doc p {
  color: var(--sub);
}

.article-stats {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.article-stats div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.article-stats dt {
  color: var(--sub);
  font-size: 12px;
}

.article-stats dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.service-list {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.service-list section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper);
}

.service-list h2 {
  margin-top: 0;
}

.consultation-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.consultation-form label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.consultation-form textarea {
  resize: vertical;
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
  outline: 3px solid rgba(23, 107, 77, 0.16);
  border-color: var(--green);
}

.consultation-form .button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-note {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fffaf0;
}

.article-page {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.post {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(20, 31, 26, 0.08);
}

.post h1 {
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

.post-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 24px;
  color: var(--sub);
  font-size: 13px;
}

.post-dates div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-dates dt {
  font-weight: 800;
}

.post-dates dd {
  margin: 0;
}

.post-lead {
  margin: 0 0 34px;
  color: var(--sub);
  font-size: 18px;
}

.post-figure {
  width: min(100%, 560px);
  max-width: 100%;
  margin: 0 auto 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8faf8;
}

.post-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.post-figure figcaption {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--sub);
  font-size: 13px;
}

.post section {
  margin-top: 42px;
}

.post h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.35;
}

.post p {
  margin: 0;
  color: #33413b;
}

.post-related {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.post-related ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.post-related a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics,
  .article-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }

  .post-figure {
    max-width: none;
  }
}
