/* ========================
   Steppe Labs — shared styles
======================== */
:root {
  /* ロゴ由来のカラー */
  --forest:      #22382a;
  --forest-2:    #2d4a33;
  --grass:       #5e8a4e;
  --grass-2:     #7fa36a;
  --meadow:      #a9c08c;
  --sun:         #f3e7b5;
  --sun-deep:    #e7d27f;

  --paper:       #f8f5ec;
  --paper-2:     #f0ebdc;
  --white:       #fffdf7;

  --ink:         #1d2a20;
  --ink-2:       #4a5a4c;
  --ink-3:       #7b877b;
  --line:        #dcd6c3;

  --on-dark:     #f3eedd;
  --on-dark-2:   #b9c4ae;

  --ja:      'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --ja-head: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --en:      'Source Serif 4', Georgia, serif;

  --max-w: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-v: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--paper);
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { display: inline-block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ========================
   Header
======================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name {
  font-family: var(--en); font-weight: 600; font-size: 1.3rem;
  letter-spacing: 0.01em; color: var(--forest); line-height: 1;
}

.nav ul { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--en); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.08em; text-decoration: none; color: var(--ink-2);
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .nav-cta {
  display: inline-block; padding: 0.55rem 1.2rem; border-radius: 999px;
  background: var(--forest); color: var(--on-dark); letter-spacing: 0.06em;
}
.nav .nav-cta:hover { background: var(--grass); color: var(--white); }
.nav .nav-cta[aria-current="page"] { text-decoration: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--forest);
  transition: transform .3s, opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a { display: block; padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav .nav-cta { display: block; margin-top: 1.25rem; text-align: center; padding: 0.9rem; }
}

/* ========================
   Typography helpers
======================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--en); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grass);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-title {
  font-family: var(--ja-head); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.5; letter-spacing: 0.04em; margin-top: 1rem;
  text-wrap: balance;
}
.section-lead { margin-top: 1.5rem; max-width: 40em; color: var(--ink-2); }

.section { padding: var(--section-v) 0; }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* ========================
   Buttons
======================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--ja); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--forest); color: var(--on-dark); }
.btn-primary:hover { background: var(--grass); color: var(--white); }
.btn-sun { background: var(--sun); color: var(--forest); }
.btn-sun:hover { background: var(--white); }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: var(--on-dark); }

/* ========================
   Hero (top)
======================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f6eed0 0%, var(--paper) 62%);
  min-height: min(860px, calc(100svh - 72px));
  display: flex; flex-direction: column;
}
.hero-body {
  position: relative; z-index: 2;
  padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(170px, 22vw, 280px);
}
.hero-kicker {
  font-family: var(--en); font-size: clamp(0.85rem, 1.6vw, 1rem); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--grass);
}
.hero-title {
  margin-top: 1.25rem;
  font-family: var(--ja-head); font-weight: 800;
  font-size: clamp(1.9rem, 8.6vw, 5.4rem);
  line-height: 1.32; letter-spacing: 0.02em; color: var(--forest);
}
.hero-title .q { color: var(--grass); }
.hero-lead {
  margin-top: 1.75rem; max-width: 34em;
  font-size: clamp(1rem, 1.9vw, 1.15rem); line-height: 2; color: var(--ink-2);
}
.hero-lead strong { color: var(--ink); font-weight: 700; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-land { position: absolute; z-index: 1; inset: auto 0 0 0; height: clamp(180px, 26vw, 320px); }
.hero-land svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-sun {
  position: absolute; z-index: 0; border-radius: 50%;
  width: clamp(260px, 40vw, 540px); aspect-ratio: 1;
  right: clamp(-90px, 4vw, 90px); bottom: clamp(30px, 6vw, 90px);
  background: radial-gradient(circle at 50% 45%, #fbf2cc 0%, var(--sun) 55%, #efdc96 100%);
  opacity: 0.9;
}

/* ========================
   Stats strip
======================== */
.stats { background: var(--forest); color: var(--on-dark); }
.stats ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats li { padding: 2.25rem 1.25rem; border-left: 1px solid rgba(243, 238, 221, 0.14); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats .num {
  font-family: var(--en); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; color: var(--sun);
}
.stats .num small { font-size: 0.5em; margin-left: 0.15em; font-family: var(--ja); font-weight: 700; }
.stats .label { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.7; color: var(--on-dark-2); }
@media (max-width: 820px) {
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li { padding: 1.75rem 1rem; border-left: 0; border-top: 1px solid rgba(243, 238, 221, 0.14); }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .stats li:nth-child(odd) { padding-left: 0; }
}

/* ========================
   Intro (problem → answer)
======================== */
.intro-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.intro-q {
  font-family: var(--ja-head); font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.75;
}
.intro-q .muted { color: var(--ink-3); }
.intro-q .mark {
  background: linear-gradient(transparent 62%, var(--sun) 62%);
  padding: 0 0.1em;
}
.intro-body p + p { margin-top: 1.4em; }
.intro-body .voice {
  margin: 1.75rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--grass);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--ja-head); font-weight: 600; font-size: 1.05rem; line-height: 2;
}
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } }

/* ========================
   Services
======================== */
.services { background: var(--paper-2); }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); padding: 2.25rem 2rem 2rem;
  border: 1px solid var(--line);
}
.service-no { font-family: var(--en); font-size: 0.9rem; letter-spacing: 0.15em; color: var(--ink-3); }
.service-icon {
  width: 56px; height: 56px; margin: 1.25rem 0 1.5rem; padding: 12px;
  border-radius: 50%; background: var(--sun); color: var(--forest);
}
.service h3 { font-family: var(--ja-head); font-weight: 700; font-size: 1.3rem; line-height: 1.6; }
.service p { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-2); }
.tags { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-size: 0.78rem; line-height: 1; padding: 0.5rem 0.8rem; border-radius: 999px;
  background: var(--paper); color: var(--forest-2); border: 1px solid var(--line);
}
@media (max-width: 960px) { .service-list { grid-template-columns: 1fr; } }

/* ========================
   Why us (dark)
======================== */
.why { background: var(--forest); color: var(--on-dark); position: relative; overflow: hidden; }
.why .eyebrow { color: var(--sun-deep); }
.why .section-lead { color: var(--on-dark-2); }
.reasons { display: grid; gap: 0; border-top: 1px solid rgba(243, 238, 221, 0.16); }
.reason {
  display: grid; grid-template-columns: 120px 5fr 7fr; gap: 2rem;
  padding: 2.75rem 0; border-bottom: 1px solid rgba(243, 238, 221, 0.16);
}
.reason-no { font-family: var(--en); font-size: 3rem; font-weight: 400; line-height: 1; color: var(--grass-2); }
.reason h3 { font-family: var(--ja-head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.6; }
.reason h3 small {
  display: block; margin-bottom: 0.5rem; font-family: var(--en); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-deep);
}
.reason p { color: var(--on-dark-2); }
.reason p + p { margin-top: 1em; }
@media (max-width: 820px) {
  .reason { grid-template-columns: 1fr; gap: 1rem; padding: 2.25rem 0; }
  .reason-no { font-size: 2.2rem; }
}

/* ========================
   Flow
======================== */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: flow; }
.flow li {
  position: relative; padding: 1.75rem 1.25rem 1.5rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.flow li::before {
  counter-increment: flow; content: "0" counter(flow);
  display: block; font-family: var(--en); font-size: 0.9rem; letter-spacing: 0.15em; color: var(--grass);
}
.flow h3 { margin-top: 0.5rem; font-size: 1.05rem; font-weight: 700; line-height: 1.6; }
.flow p { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.8; color: var(--ink-2); }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ========================
   Members
======================== */
.member-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.member-list.is-teaser { grid-template-columns: repeat(3, 1fr); }
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.member-photo {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 15%;
  background: var(--sun); display: grid; place-items: center; color: var(--forest);
  font-family: var(--en); font-size: 3rem; font-weight: 600;
}
.member-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.member-role {
  align-self: flex-start; font-family: var(--en); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  line-height: 1; padding: 0.45rem 0.75rem; border-radius: 999px; background: var(--paper-2); color: var(--forest-2);
}
.member-role.is-lead { background: var(--forest); color: var(--sun); }
.member-name { margin-top: 0.9rem; font-family: var(--en); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: 0.01em; }
.member-kana { margin-top: 0.15rem; font-size: 0.85rem; color: var(--ink-3); }
.member-school {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: 0.86rem; line-height: 1.75; color: var(--ink-2);
}
.member-school dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--grass); }
.member-school dd + dd { margin-top: 0.1rem; }
.section-more { margin-top: 2.5rem; text-align: center; }
@media (max-width: 1040px) { .member-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .member-list, .member-list.is-teaser { grid-template-columns: 1fr 1fr; gap: 1rem; } .member-body { padding: 1rem 1rem 1.2rem; } .member-name { font-size: 1.05rem; } }

/* ========================
   CTA
======================== */
.cta { padding: var(--section-v) 0; }
.cta-box {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.5);
  background: var(--forest-2); color: var(--on-dark);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-box::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: var(--sun); opacity: 0.1; pointer-events: none;
}
.cta-box h2 { font-family: var(--ja-head); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.6; }
.cta-box p { margin-top: 1rem; color: var(--on-dark-2); }
.cta-box .btn { position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-box { grid-template-columns: 1fr; } }

/* ========================
   Sub page hero
======================== */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, #f6eed0 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin-top: 1rem; font-family: var(--ja-head); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.4; color: var(--forest);
}
.page-hero p { margin-top: 1.25rem; max-width: 40em; color: var(--ink-2); }
.page-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -180px;
  width: clamp(240px, 36vw, 440px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); opacity: 0.65; z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* ========================
   Company: values / table
======================== */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.value {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem 2rem;
}
.value-en { font-family: var(--en); font-weight: 600; font-size: 1.35rem; color: var(--grass); line-height: 1.4; }
.value h3 { margin-top: 0.4rem; font-family: var(--ja-head); font-weight: 700; font-size: 1.25rem; line-height: 1.6; }
.value p { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.info-table th, .info-table td {
  text-align: left; vertical-align: top; padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.info-table th { width: 11em; font-weight: 700; color: var(--ink-2); padding-right: 1.5rem; }
@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: auto; }
  .info-table th { padding-bottom: 0.25rem; border-bottom: 0; font-size: 0.88rem; }
  .info-table td { padding-top: 0; }
}

.note-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
}
.note-box .badge {
  font-size: 0.8rem; font-weight: 700; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
@media (max-width: 600px) { .note-box { grid-template-columns: 1fr; gap: 0.75rem; } }

/* ========================
   Contact
======================== */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.mail-card {
  background: var(--forest); color: var(--on-dark); border-radius: calc(var(--radius) * 1.3);
  padding: clamp(2rem, 5vw, 3rem);
}
.mail-card .label { font-family: var(--en); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun-deep); }
.mail-address {
  margin-top: 0.75rem; font-family: var(--en); font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.3; word-break: break-all; color: var(--white);
}
.mail-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-copy { background: transparent; color: var(--on-dark); border-color: rgba(243, 238, 221, 0.4); }
.btn-copy:hover { border-color: var(--on-dark); }
.mail-note { margin-top: 1.75rem; font-size: 0.88rem; color: var(--on-dark-2); }

.checklist h2 { font-family: var(--ja-head); font-weight: 700; font-size: 1.25rem; line-height: 1.6; }
.checklist > p { margin-top: 0.75rem; font-size: 0.93rem; color: var(--ink-2); }
.checklist ul { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.checklist li {
  display: grid; grid-template-columns: 22px 1fr; gap: 0.75rem; align-items: start;
  padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; line-height: 1.7;
}
.checklist li svg { width: 22px; height: 22px; color: var(--grass); margin-top: 0.1rem; }
.checklist li small { display: block; color: var(--ink-3); font-size: 0.82rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ========================
   Prose (privacy)
======================== */
.prose { max-width: 760px; }
.prose h2 {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
  font-family: var(--ja-head); font-weight: 700; font-size: 1.25rem; line-height: 1.6;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose ul { margin-top: 1rem; color: var(--ink-2); }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: 0.4rem; }
.prose .date { margin-top: 3rem; color: var(--ink-3); font-size: 0.9rem; }

/* ========================
   Footer
======================== */
.site-footer { background: var(--forest); color: var(--on-dark-2); padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer .brand-name { color: var(--on-dark); }
.footer-tagline { margin-top: 1rem; font-size: 0.88rem; line-height: 1.9; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer-nav a { font-family: var(--en); letter-spacing: 0.08em; text-decoration: none; color: var(--on-dark); }
.footer-nav a:hover { color: var(--sun); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 238, 221, 0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8rem;
}
.footer-bottom a { color: var(--on-dark-2); }

/* ========================
   Reveal on scroll
======================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
