:root {
  /* color */
  --paper: #ffffff;
  --paper-tint: #f5f7fa;
  --ink: #141b2b;
  --ink-sub: #4f5a6e;
  --ink-faint: #5b6577;
  --rule: #dfe4ec;
  --rule-strong: #141b2b;
  --accent: #1a47c8;
  --accent-ink: #13389f;
  --accent-soft: #e8eefc;
  --green: #17693b;
  --green-soft: #e7f4ec;

  /* type */
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-meta: 0.8125rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-hero: clamp(2rem, 0.9rem + 6.4vw, 4rem);

  /* space */
  --gutter: 24px;
  --section-y: clamp(80px, 6rem + 3vw, 144px);
  --header-h: 72px;
  --radius: 6px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.9;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection { background: var(--accent); color: #fff; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }

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

h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 16px; background: var(--ink); color: #fff; border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 4px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-en { font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
.brand-ja { font-size: 11px; color: var(--ink-sub); letter-spacing: 0.06em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--ink); font-size: var(--fs-small); font-weight: 500; text-decoration: none;
}
.site-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.site-nav .nav-cta { margin-left: 12px; background: var(--ink); color: #fff; }
.site-nav .nav-cta:hover { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; padding: 10px; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-text { padding: 0 8px; color: var(--ink); }
.btn-text:hover { color: var(--accent); }
.btn-text span { transition: transform .25s var(--ease-out); }
.btn-text:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(88px, 12vw, 168px) 0 clamp(80px, 10vw, 136px);
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: end;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 1.28;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line:last-child { color: var(--accent); }
.hero-body { padding-bottom: 0.6em; border-top: 2px solid var(--rule-strong); padding-top: 28px; }
.lead { color: var(--ink-sub); font-size: 1.0625rem; line-height: 2; max-width: 34em; }
.nowrap { white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }

/* The one authored moment: the headline settles in from a soft blur */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line {
    animation: settle 1.1s var(--ease-out) both;
  }
  .hero-title .line:last-child { animation-delay: .14s; }
  .hero-body { animation: fade 1s var(--ease-out) .3s both; }
}
@keyframes settle {
  from { opacity: 0; filter: blur(8px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--paper-tint); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 40px 64px;
  align-items: start;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.4;
  letter-spacing: 0.04em;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.split > div:first-child .section-title { position: static; }
.split > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.section-desc { margin-top: 20px; color: var(--ink-sub); font-size: 0.9375rem; max-width: 22em; }
.split-body { display: grid; gap: 56px; }

/* About */
.prose { display: grid; gap: 1.1em; max-width: 38em; font-size: 1.0625rem; }

.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.rule-list li {
  display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 8px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.rule-list h3 { font-size: var(--fs-h3); line-height: 1.6; }
.rule-list p { color: var(--ink-sub); }

/* Activities */
.activity-list {
  margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--rule-strong);
}
.activity-list > div { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.activity-list dt { font-weight: 700; font-size: var(--fs-h3); line-height: 1.6; margin-bottom: 8px; }
.activity-list dd { margin: 0; color: var(--ink-sub); }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.news-list li {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline; gap: 8px 20px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.news-list time { color: var(--ink-faint); font-size: var(--fs-small); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.tag {
  justify-self: start; padding: 1px 10px; border-radius: 3px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12px; font-weight: 500; line-height: 1.9;
}
.tag-green { background: var(--green-soft); color: var(--green); }

/* Membership */
.plan-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}
.plan { padding: 28px 28px 32px; border-bottom: 1px solid var(--rule); }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan:first-child { padding-left: 0; }
.plan h3 { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.5; letter-spacing: 0.04em; }
.plan-target { margin: 2px 0 20px; color: var(--ink-faint); font-size: var(--fs-small); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 20px; font-size: 0.9375rem; line-height: 1.7; }
.plan li::before {
  content: ""; position: absolute; left: 1px; top: 0.55em;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.note { margin-top: -24px; color: var(--ink-sub); font-size: var(--fs-small); }

/* Overview */
.overview { margin: 0; border-top: 1px solid var(--rule-strong); }
.overview > div {
  display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 4px 32px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.overview dt { font-weight: 700; font-size: 0.9375rem; }
.overview dd { margin: 0; color: var(--ink-sub); max-width: 38em; }
.pending { color: var(--ink-faint); }

/* Contact */
.section-contact { background: var(--paper-tint); border-top: 1px solid var(--rule); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 64px; align-items: end; }
.contact-title {
  font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.3; letter-spacing: 0.04em; grid-row: span 2;
}
.contact-inner p { color: var(--ink-sub); line-height: 2; }
.contact-mail { font-weight: 700; color: var(--ink) !important; padding-top: 16px; border-top: 1px solid var(--rule-strong); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: var(--ink-sub); font-size: var(--fs-small); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.copyright {
  width: 100%; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule);
  color: var(--ink-faint); font-size: 12px; letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-body { max-width: 36em; }
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .section-title, .split > div:first-child { position: static; }
  .contact-inner { grid-template-columns: 1fr; align-items: start; }
  .contact-title { grid-row: auto; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; --gutter: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .3s var(--ease-out), visibility 0s .3s;
  }
  .site-nav.is-open {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .2s, transform .3s var(--ease-out), visibility 0s;
  }
  .site-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
  .site-nav a:hover { background: none; }
  .site-nav .nav-cta { margin: 16px 0 0; text-align: center; border-radius: var(--radius); border-bottom: 0; }

  .rule-list li, .overview > div { grid-template-columns: 1fr; }
  .activity-list { grid-template-columns: 1fr; }
  .activity-list > div { padding: 22px 0 24px; }
  .plan-cols { grid-template-columns: 1fr; }
  .plan, .plan:first-child { padding: 24px 0 28px; }
  .plan + .plan { border-left: 0; }
  .news-list li { grid-template-columns: auto minmax(0, 1fr); }
  .news-list p { grid-column: 1 / -1; }
  .note { margin-top: -32px; }
}
