:root {
  color-scheme: light dark;
  --bg: #f4f6f2;
  --surface: #e8eee8;
  --surface-strong: #d7e4dc;
  --text: #14201c;
  --muted: #53615b;
  --line: #c7d0ca;
  --accent: #0f6b57;
  --accent-strong: #095243;
  --on-accent: #f7fbf8;
  --header: rgba(244, 246, 242, 0.94);
  --shadow: 0 26px 70px rgba(32, 64, 50, 0.16);
  --radius: 16px;
  --shell: min(1180px, calc(100% - 48px));
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111815;
    --surface: #18221e;
    --surface-strong: #203029;
    --text: #edf4ef;
    --muted: #b5c2bb;
    --line: #35443d;
    --accent: #58b99c;
    --accent-strong: #79cfb5;
    --on-accent: #071b14;
    --header: rgba(17, 24, 21, 0.94);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact-ribbon {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.78rem;
}

.ribbon-inner {
  min-height: 34px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.ribbon-inner a {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-sub { color: var(--muted); font-size: 0.72rem; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.88rem;
  font-weight: 700;
}

.primary-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:not(.nav-contact) { padding-block: 8px; }

.primary-nav a:not(.nav-contact):hover { color: var(--accent); }

.nav-contact {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}

.nav-contact:active, .button:active { transform: translateY(1px); }

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.hero {
  min-height: calc(100dvh - 106px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 6vw, 78px) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.eyebrow,
.purpose-label,
.contact-inner > p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 4.25vw, 3.85rem);
  line-height: 1.15;
  letter-spacing: -0.065em;
}

h1 span { display: block; white-space: nowrap; }

h2 {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.25;
  letter-spacing: -0.055em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 31rem;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-strong); }

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -10% -8% 12%;
  border-radius: var(--radius);
  background: var(--surface-strong);
  transform: rotate(4deg);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.since-card {
  position: absolute;
  z-index: 2;
  left: -28px;
  bottom: 32px;
  min-width: 132px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow);
}

.since-card strong,
.since-card span { display: block; }
.since-card strong { font-size: 2rem; line-height: 1.1; }
.since-card span { margin-top: 5px; font-size: 0.72rem; font-weight: 700; }

.email-banner {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.email-banner-inner {
  min-height: 118px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 40px;
}

.email-banner-inner p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.email-banner-inner a {
  color: var(--accent);
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-underline-offset: 6px;
}

.section { padding: clamp(88px, 11vw, 150px) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(52px, 9vw, 130px);
}

.section-heading h2 { margin-bottom: 0; }

.about-body {
  max-width: 660px;
  padding-top: 8px;
  color: var(--muted);
}

.large-copy {
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 750;
  line-height: 1.75;
}

.representative {
  margin-top: 38px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.activities { background: var(--surface); }

.stacked-heading {
  max-width: 700px;
  margin-bottom: clamp(48px, 7vw, 82px);
}

.stacked-heading h2 { margin-bottom: 20px; }
.stacked-heading p { color: var(--muted); }

.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 5vw, 64px);
}

.activity-feature {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
}

.activity-image img { height: 380px; object-fit: cover; }

.activity-copy { padding: 34px; }

.activity-mark {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.activity-copy h3, .activity-item h3 { margin-bottom: 12px; }
.activity-copy p, .activity-item p { margin-bottom: 0; color: var(--muted); }

.activity-list { display: grid; align-content: stretch; }

.activity-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50%;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.activity-item:last-child { border-bottom: 1px solid var(--line); }

.purpose { text-align: center; }

.purpose-inner { max-width: 920px; }
.purpose-inner h2 { margin-bottom: 28px; }
.purpose-inner > p:last-child { max-width: 620px; margin-inline: auto; color: var(--muted); }

.profile { padding-top: 40px; }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(52px, 9vw, 126px);
}

.profile-intro { position: sticky; top: 150px; align-self: start; }
.profile-intro h2 { margin-bottom: 20px; }
.profile-intro p { color: var(--muted); }

.profile-list { margin: 0; }

.profile-list > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list > div:first-child { border-top: 1px solid var(--line); }
.profile-list dt { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.profile-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

.contact-section {
  padding: clamp(92px, 12vw, 160px) 0;
  background: var(--accent);
  color: var(--on-accent);
}

.contact-inner { text-align: center; }
.contact-inner > p { color: currentColor; opacity: 0.75; }
.contact-inner h2 { margin-bottom: 34px; }

.contact-email {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(1.25rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-underline-offset: 9px;
}

.contact-note {
  display: block;
  margin-top: 28px;
  font-size: 0.82rem;
  opacity: 0.82;
}

.site-footer { padding: 52px 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 40px;
}

.footer-grid strong { font-size: 1.4rem; letter-spacing: -0.04em; }
.footer-grid p { margin: 6px 0 0; color: var(--muted); font-size: 0.75rem; }

.footer-contact span,
.footer-contact a { display: block; }
.footer-contact span { margin-bottom: 4px; color: var(--muted); font-size: 0.72rem; }
.footer-contact a { color: var(--accent); font-weight: 800; overflow-wrap: anywhere; }
.copyright { white-space: nowrap; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .menu-label { font-size: 0.78rem; font-weight: 800; }

  .menu-lines,
  .menu-lines::before,
  .menu-lines::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 0.2s ease;
  }

  .menu-lines { position: relative; }
  .menu-lines::before { position: absolute; top: -6px; }
  .menu-lines::after { position: absolute; top: 6px; }

  .menu-button[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

  .primary-nav {
    position: absolute;
    inset: 106px 0 auto;
    display: none;
    padding: 22px 16px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 8px; }
  .nav-contact { text-align: center; }

  .hero { min-height: auto; padding-top: 54px; }

  .hero-grid,
  .about-grid,
  .activity-layout,
  .profile-grid { grid-template-columns: 1fr; }

  .hero-grid { gap: 54px; }
  .hero-copy { max-width: 650px; }
  .hero-visual { min-height: 470px; }
  .hero-visual img { height: 470px; }

  .email-banner-inner { grid-template-columns: 1fr; gap: 8px; padding-block: 26px; }
  .activity-layout { gap: 42px; }
  .activity-list { grid-template-columns: 1fr 1fr; gap: 34px; }
  .activity-item { min-height: auto; border-bottom: 1px solid var(--line); }
  .profile-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  html { scroll-padding-top: 98px; }
  .ribbon-inner { justify-content: center; gap: 9px; }
  .ribbon-inner span { display: none; }
  .nav-wrap { min-height: 64px; }
  .brand-sub { display: none; }
  .primary-nav { inset-block-start: 98px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  h1 span { white-space: normal; }
  .hero-visual, .hero-visual img { min-height: 390px; height: 390px; }
  .since-card { left: 14px; bottom: 18px; }
  .section { padding-block: 82px; }
  .activity-image img { height: 280px; }
  .activity-copy { padding: 26px 22px; }
  .activity-list { grid-template-columns: 1fr; gap: 0; }
  .profile-list > div { grid-template-columns: 1fr; gap: 7px; padding-block: 20px; }
  .profile-list dt { color: var(--accent); }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .copyright { grid-column: auto; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
