:root {
  --accent: #3f8f5b;
  --bg: #fbfcf7;
  --text: #33413a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.85;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
.zen { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; }

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  flex: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 247, 0.82);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(63, 143, 91, 0.13);
  color: var(--accent);
  font-size: 15px;
}
.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #5c6b60;
  font-weight: 500;
}
.nav-links a { padding: 2px 0; }
.nav-links a:hover { color: var(--accent); }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(63, 143, 91, 0.1);
  font-size: 12.5px;
  font-weight: 700;
}
.lang-btn {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  background: transparent;
  color: #8a978c;
}
.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
}
.cta-button {
  background: var(--accent);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(63, 143, 91, 0.28);
}
.cta-button:hover { filter: brightness(1.05); }

/* ---------- Header / Hero ---------- */
header {
  position: relative;
  overflow: hidden;
}
.hero-blob-1 {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 760px;
  height: 720px;
  background: radial-gradient(circle at 42% 42%, #e4f0d6, #eef5e6 55%, rgba(238, 245, 230, 0) 72%);
  border-radius: 47% 53% 44% 56% / 55% 46% 54% 45%;
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute;
  bottom: -40px;
  left: -120px;
  width: 420px;
  height: 360px;
  background: #f0ece1;
  border-radius: 50%;
  opacity: .5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 24px clamp(56px, 8vw, 104px);
}
.hero-content { max-width: 820px; }
.badge {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--accent);
  font-weight: 700;
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(63, 143, 91, 0.12);
}
.badge-dot { opacity: .4; }
.hero-title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.4;
  font-weight: 700;
  color: #2c7a49;
  margin: 24px 0 0;
  letter-spacing: .01em;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 2.1vw, 22px);
  color: #3d4a42;
  margin: 24px 0 0;
  font-weight: 500;
  line-height: 1.7;
}
.hero-desc {
  font-size: 15.5px;
  color: #5c6b60;
  margin: 16px 0 0;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  align-items: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 12px 28px rgba(63, 143, 91, 0.3);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  color: var(--accent);
  padding: 16px 10px;
  font-size: 15px;
  font-weight: 600;
}
.btn-secondary:hover { opacity: .7; }
.hero-note {
  font-size: 13px;
  color: #8a978c;
  margin: 28px 0 0;
}

/* ---------- Sections (shared) ---------- */
.section { scroll-margin-top: 88px; position: relative; }
.section-alt { background: #f3f7ec; overflow: hidden; }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 92px) 24px;
}
.section-inner-relative { position: relative; }
.eyebrow {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 700;
}
.section-heading {
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 700;
  color: #2c3a31;
  margin: 12px 0 0;
  line-height: 1.5;
}
.nowrap { white-space: nowrap; }
.section-intro {
  font-size: 15.5px;
  color: #5c6b60;
  margin: 14px 0 0;
  max-width: 60ch;
}
.section-blob {
  position: absolute;
  top: -80px;
  left: -100px;
  width: 360px;
  height: 340px;
  background: #e6f0d6;
  border-radius: 50%;
  opacity: .6;
  pointer-events: none;
}
.section-blob-2 {
  top: auto;
  left: auto;
  bottom: -90px;
  right: -90px;
  width: 380px;
  height: 360px;
}

/* ---------- Problem cards ---------- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.card {
  background: #fff;
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 14px 40px rgba(74, 90, 72, 0.07);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eef5e4;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3a31;
  margin: 20px 0 10px;
}
.card-body {
  font-size: 14.5px;
  color: #5c6b60;
  line-height: 1.85;
}

/* ---------- Stages ---------- */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  gap: 20px;
  margin-top: 44px;
  align-items: stretch;
}
.stage-card {
  border-radius: 24px;
  padding: 28px 26px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(74, 90, 72, 0.07);
  display: flex;
  flex-direction: column;
}
.stage-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 700;
  background: #eef5e4;
  padding: 6px 13px;
  border-radius: 999px;
}
.stage-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3a31;
  margin: 16px 0 2px;
}
.stage-jp { font-size: 13px; color: #8a978c; }
.stage-body {
  font-size: 14px;
  color: #5c6b60;
  line-height: 1.85;
  margin-top: 12px;
}

/* ---------- Mechanisms ---------- */
.mech-wrap { margin-top: 64px; }
.mech-eyebrow {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: #7d8b7f;
  font-weight: 700;
}
.mech-heading {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  color: #2c3a31;
  margin: 8px 0 0;
}
.mech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.mech-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(74, 90, 72, 0.07);
}
.mech-header {
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.mech-rows { padding: 6px 0; }
.mech-row {
  display: flex;
  gap: 14px;
  padding: 13px 24px;
  align-items: baseline;
}
.mech-row-k {
  flex: 0 0 38%;
  font-size: 13.5px;
  font-weight: 700;
  color: #2c3a31;
}
.mech-row-v {
  flex: 1;
  font-size: 13.5px;
  color: #5c6b60;
}

/* ---------- Who / stakeholders ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.who-card {
  background: #fff;
  border-radius: 24px;
  padding: 26px 26px 24px;
  box-shadow: 0 14px 40px rgba(74, 90, 72, 0.07);
}
.who-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.who-role { font-size: 17px; font-weight: 700; color: #2c3a31; }
.who-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  background: #eef5e4;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.who-block { margin-top: 18px; }
.who-block + .who-block { margin-top: 16px; }
.who-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #8a978c;
}
.who-concern {
  font-size: 14px;
  color: #415047;
  line-height: 1.75;
  margin-top: 6px;
}
.who-rhet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.who-rhet-tag {
  font-size: 12.5px;
  color: var(--accent);
  background: #eef5e4;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
}

/* ---------- Prototype ---------- */
.proto-window {
  margin-top: 40px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(74, 90, 72, 0.12);
}
.proto-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  border-bottom: 1px solid #eef1e9;
}
.proto-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2e7db;
}
.proto-url {
  margin-left: 12px;
  font-size: 12px;
  color: #9aa79c;
}
.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.proto-col { padding: 24px; }
.proto-col-border { border-right: 1px solid #f0f3ec; }
.proto-col-label {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 700;
}
.proto-roles-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}
.proto-role-item {
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 600;
  color: #5c6b60;
  background: #f6f9f1;
}
.proto-role-item.selected {
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}
.proto-sections-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}
.proto-section-item {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
  color: #415047;
  background: #f6f9f1;
  border-radius: 12px;
  padding: 11px 13px;
}
.proto-section-n {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}
.proto-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proto-live {
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.proto-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.preview-skeleton {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.skel-bar {
  height: 9px;
  width: 100%;
  background: #f0f3ec;
  border-radius: 6px;
}
.skel-title {
  height: 15px;
  width: 70%;
  background: #e5ecdb;
}
.skel-highlight {
  height: 12px;
  width: 45%;
  background: #d7e8c6;
  margin-top: 8px;
}
.proto-caption {
  font-size: 12.5px;
  color: #9aa79c;
  margin-top: 14px;
}

/* ---------- Footer ---------- */
footer {
  background: #25402f;
  color: #c3d3c5;
  position: relative;
  overflow: hidden;
}
.footer-blob {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 360px;
  height: 340px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(52px, 6vw, 76px) 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}
.footer-tagline {
  font-size: 13.5px;
  line-height: 1.85;
  margin-top: 18px;
  max-width: 34ch;
  color: #aebfb0;
}
.footer-col-label {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: #7f9583;
  font-weight: 700;
}
.footer-paper-title {
  font-size: 14px;
  color: #dbe6dc;
  line-height: 1.8;
  margin-top: 12px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.footer-link {
  font-size: 14px;
  color: #dbe6dc;
  font-weight: 600;
}
.footer-link:hover { color: #fff; }
.footer-repo-link { margin-top: 6px; }
.footer-url {
  font-size: 12px;
  color: #7f9583;
  word-break: break-all;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 44px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.footer-ack { font-size: 12.5px; color: #8ba18e; }
.footer-copyright { font-size: 12px; color: #6f8574; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards-grid-3 { grid-template-columns: 1fr; }
}
