:root {
  --moegi: #86a936;
  --moegi-dark: #36551d;
  --forest: #173d31;
  --ink: #17231f;
  --muted: #617069;
  --paper: #fbfcf8;
  --mist: #eef3ea;
  --line: #dce4d8;
  --calint: #008f84;
  --calint-dark: #00665f;
  --sand: #ece8d9;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(23, 61, 49, .1);
  --width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.85;
  letter-spacing: .02em;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; padding: 10px 16px; background: var(--forest); color: white; }
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 48px), var(--width)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), 850px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(220,228,216,.8); background: rgba(251,252,248,.94); backdrop-filter: blur(15px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; flex: 0 0 auto; line-height: 1; margin-right: auto; }
.moegi-logo { width: 178px; height: auto; }
.site-header .brand { justify-content: center; min-height: 56px; }
.site-header .moegi-logo { transition: opacity .2s ease; }
.site-header .brand:hover .moegi-logo { opacity: .74; }
.brand-tag { margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.global-nav > ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.global-nav a, .nav-toggle-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.global-nav a:hover, .global-nav a[aria-current="page"], .nav-toggle-link:hover { color: var(--moegi-dark); }
.nav-parent { position: relative; }
.nav-toggle-link { gap: 6px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-toggle-link::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); }
.submenu { position: absolute; left: -22px; top: calc(100% + 8px); width: 250px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; list-style: none; }
.nav-parent:hover .submenu, .nav-parent:focus-within .submenu, .nav-parent.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 8px 10px; min-height: auto; border-radius: 8px; }
.submenu a:hover { background: var(--mist); }
.header-contact { padding: 10px 16px; border-radius: 999px; background: var(--forest); color: white !important; }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.menu-button span { display: block; width: 19px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: .2s; }

.hero { position: relative; min-height: 680px; display: grid; align-items: center; overflow: hidden; background: var(--forest); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,43,33,.92) 0%, rgba(10,43,33,.74) 44%, rgba(10,43,33,.15) 78%), url("../images/hero-original.jpg") center/cover; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -130px; bottom: -200px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.03); }
.hero-content { position: relative; z-index: 1; padding: 110px 0 100px; }
.eyebrow { margin: 0 0 14px; color: var(--moegi); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero .eyebrow { color: #c6dd7b; }
.hero h1 { margin: 0; max-width: 850px; font-size: clamp(42px, 6vw, 78px); line-height: 1.28; letter-spacing: -.03em; }
.hero-lead { max-width: 690px; margin: 28px 0 0; font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.88); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 11px 22px; border: 1px solid var(--forest); border-radius: 999px; background: var(--forest); color: white; font-weight: 700; transition: .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(23,61,49,.18); }
.button.light { border-color: white; background: white; color: var(--forest); }
.button.ghost { border-color: rgba(255,255,255,.55); background: transparent; color: white; }
.button.outline { background: transparent; color: var(--forest); }
.button.calint { border-color: var(--calint); background: var(--calint); }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--moegi-dark); font-weight: 800; }
.text-link::after { content: "→"; }
.external::after { content: "↗"; margin-left: .35em; font-size: .85em; }

.section { padding: 100px 0; }
.section.compact { padding: 64px 0; }
.section.tint { background: var(--mist); }
.section.dark { background: var(--forest); color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.section-head h2, .page-title h1 { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.35; letter-spacing: -.02em; }
.section-head p { max-width: 620px; margin: 0; color: var(--muted); }
.dark .section-head p { color: rgba(255,255,255,.7); }
.lead { font-size: clamp(18px, 2.2vw, 25px); line-height: 1.75; }
.lede-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.origin-card { padding: 42px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.origin-card blockquote { margin: 0 0 18px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 32px; line-height: 1.4; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-number { margin-bottom: 34px; color: var(--moegi); font: italic 600 15px/1 "Cormorant Garamond", Georgia, serif; }
.card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.45; }
.card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.card .text-link { margin-top: auto; }
.card-media { aspect-ratio: 16/10; margin: -28px -28px 24px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.pill-list li { padding: 7px 12px; border-radius: 999px; background: var(--mist); font-size: 12px; font-weight: 700; }
.status { display: inline-flex; align-items: center; align-self: flex-start; margin-bottom: 14px; padding: 5px 9px; border-radius: 999px; background: #edf6de; color: #36551d; font-size: 11px; font-weight: 800; }
.status.dev { background: #fff1d8; color: #805800; }
.status.alpha { background: #e5f4f3; color: var(--calint-dark); }

.featured { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 460px; overflow: hidden; border-radius: 24px; background: var(--forest); color: white; }
.featured-copy { padding: clamp(36px, 6vw, 72px); }
.featured-copy h3 { margin: 8px 0 18px; font-size: clamp(32px, 4vw, 52px); line-height: 1.25; }
.featured-copy p { color: rgba(255,255,255,.75); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.news-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.news-list li { display: grid; grid-template-columns: 120px 140px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-weight: 700; }
.news-tag { color: var(--moegi-dark); font-size: 12px; font-weight: 800; }
.news-list a:hover { color: var(--moegi-dark); }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 54px; border-radius: 24px; background: var(--moegi); color: #13230d; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(27px, 4vw, 42px); }
.cta-band p { margin: 0; }

.page-title { padding: 95px 0 62px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f4f7ef 0%, #fbfcf8 55%); }
.page-title .eyebrow { margin-bottom: 10px; }
.page-title p { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.breadcrumb { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #a3ada7; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose h2 { margin: 2.2em 0 .7em; font-size: 28px; line-height: 1.5; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 .6em; }
.prose p { color: #46564f; }
.check-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 11px; height: 6px; border-left: 2px solid var(--moegi); border-bottom: 2px solid var(--moegi); transform: rotate(-45deg); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { width: 180px; color: var(--muted); font-size: 13px; }
.notice { padding: 20px 22px; border-left: 4px solid var(--moegi); background: var(--mist); }

.members-section { position: relative; overflow: hidden; background: var(--forest); color: white; }
.members-section::before { content: ""; position: absolute; inset: 0; opacity: .12; background: radial-gradient(circle at 15% 20%, rgba(184,211,104,.45), transparent 30%), radial-gradient(circle at 85% 75%, rgba(255,255,255,.2), transparent 24%); pointer-events: none; }
.members-section .container { position: relative; }
.members-section .section-head p { color: rgba(255,255,255,.68); }
.members-section .eyebrow { color: #c6dd7b; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 24px; }
.member-card { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.055); }
.member-photo { aspect-ratio: 3 / 2; overflow: hidden; background: #274c3f; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #567a34, #173d31); }
.member-placeholder span { display: grid; place-items: center; width: 104px; height: 104px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; font: 600 42px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .04em; }
.member-copy { padding: 26px; }
.member-copy h3 { margin: 0 0 4px; font: 600 26px/1.35 "Cormorant Garamond", Georgia, serif; }
.member-role { margin: 0 0 18px; color: #c6dd7b; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.member-bio { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }

.calint-page { --moegi: var(--calint); --moegi-dark: var(--calint-dark); --mist: #eaf6f5; }
.calint-hero { min-height: 600px; position: relative; overflow: hidden; background: #dff1ef; }
.calint-hero .container { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; min-height: 600px; }
.calint-hero h1 { margin: 14px 0 22px; font-size: clamp(38px, 5vw, 66px); line-height: 1.2; letter-spacing: -.04em; }
.calint-hero p { max-width: 560px; color: #3d5a55; font-size: 18px; }
.calint-hero-image { align-self: end; }
.calint-logo { width: min(280px, 70%); }
.site-header .calint-logo { width: 230px; filter: brightness(0) saturate(100%) invert(39%) sepia(84%) saturate(880%) hue-rotate(135deg) brightness(84%) contrast(101%); }
.product-card { overflow: hidden; padding: 0; }
.product-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.product-card .card-media { margin: 0; border-radius: 0; }
.product-card .card-media.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #dff1ef, #f8fbfa); color: var(--calint); }
.map-glyph { width: 90px; height: 90px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.map-glyph::before { content: ""; position: absolute; width: 17px; height: 17px; left: 34px; top: 27px; border: 6px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.research-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stage { padding: 30px; border-radius: var(--radius); background: white; border: 1px solid var(--line); }
.stage.dev-stage { border-top: 5px solid #d79a1e; }
.stage.service-stage { border-top: 5px solid var(--moegi); }
.contact-box { padding: 36px; border-radius: var(--radius); background: white; border: 1px solid var(--line); }

.site-footer { padding: 72px 0 26px; background: #102b23; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 60px; }
.footer-brand .brand { margin-bottom: 12px; padding: 9px 13px; border-radius: 10px; background: white; }
.footer-brand .moegi-logo { width: 190px; }
.footer-brand p { max-width: 380px; color: rgba(255,255,255,.65); font-size: 13px; }
.footer-title { margin: 0 0 16px; color: #b8d368; font-size: 12px; letter-spacing: .12em; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 4px 0; color: rgba(255,255,255,.8); font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .menu-button { display: block; }
  .global-nav { position: fixed; inset: 82px 0 0; padding: 28px 24px 50px; background: var(--paper); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .global-nav.is-open { transform: none; }
  .global-nav > ul { display: block; }
  .global-nav a, .nav-toggle-link { width: 100%; min-height: 54px; border-bottom: 1px solid var(--line); justify-content: space-between; font-size: 15px; }
  .submenu { position: static; display: none; width: auto; padding: 4px 0 12px 18px; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-parent.is-open .submenu { display: block; }
  .submenu a { min-height: 44px; }
  .header-contact { margin-top: 16px; justify-content: center !important; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(calc(100% - 32px), var(--width)); }
  .header-inner { min-height: 70px; }
  .global-nav { inset: 70px 0 0; }
  .site-header .brand { min-height: 48px; }
  .site-header .moegi-logo { width: 148px; }
  .brand-tag { display: none; }
  .hero { min-height: 650px; }
  .hero::before { background: linear-gradient(180deg, rgba(10,43,33,.7), rgba(10,43,33,.96)), url("../images/hero-original.jpg") 62% center/cover; }
  .hero-content { padding: 80px 0; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .section { padding: 72px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .lede-grid, .split, .featured, .calint-hero .container, .footer-grid, .research-stage { grid-template-columns: 1fr; }
  .lede-grid { gap: 30px; }
  .origin-card { padding: 28px; }
  .card-grid, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; gap: 18px; }
  .member-copy { padding: 24px; }
  .featured-media { min-height: 300px; order: -1; }
  .news-list li { grid-template-columns: 92px 1fr; gap: 8px 12px; }
  .news-list li > a { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; padding: 34px 26px; }
  .page-title { padding: 68px 0 46px; }
  .calint-hero, .calint-hero .container { min-height: auto; }
  .calint-hero .container { padding-top: 70px; }
  .calint-hero-image { margin-top: 30px; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table th { width: auto; padding-bottom: 4px; border-bottom: 0; }
  .data-table td { padding-top: 0; }
  .footer-grid { gap: 36px; }
  .footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
