:root {
  --paper: #fff;
  --ink: #111;
  --muted: #747474;
  /* 変数名は旧配色時代のまま。値は確定ロゴのブランドカラーに更新済み（--gold=石の青 #0756A6 / --soft-gold=湯気の橙 #F05A24） */
  --gold: #0756a6;
  --soft-gold: #f05a24;
  --line: #eaeaea;
  --column: min(720px, calc(100% - 40px));
  --wide: min(1120px, calc(100% - 48px));
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Lenis稼働時に必要な上書き。CSSのsmoothスクロールと二重に効くと動きが競合する */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Masthead and repeated navigation */
.masthead {
  height: 292px;
  display: grid;
  place-items: center;
  background: #fff;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
}
.brand img {
  height: 212px;
  width: auto;
  margin-bottom: 6px;
}
.brand-en {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #666;
}
.site-nav {
  position: relative;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  width: max-content;
  min-width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  padding: 14px 20px;
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  line-height: 1.15;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: left .25s, right .25s;
}
.site-nav a:hover::after { left: 0; right: 0; }
.repeat-nav { border-top: 1px solid var(--line); }
.section-nav { margin-top: 10px; border-bottom: 0; }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: min(720px, 58vw);
  min-height: 520px;
  overflow: hidden;
  background: #efefec;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
/* 全面ベールをやめ、文字が乗る下部だけを起こす。パースの緑と木の色を残すため */
.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.14) 0%,
    rgba(255,255,255,.20) 34%,
    rgba(255,255,255,.72) 68%,
    rgba(255,255,255,.94) 100%
  );
}
.hero-copy {
  position: absolute;
  inset: auto 20px 30px;
  text-align: center;
  color: #111;
}
/* 巨大ワードマーク × 写真のレイヤリング。単語ごとにマスクからせり上がる */
.hero-wordmark {
  margin: 0 auto 10px;
  font-size: clamp(26px, 7.4vw, 104px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.hero-wordmark .wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .06em;
}
.hero-wordmark .wm i {
  display: inline-block;
  font-style: normal;
}
.hero h1 {
  font-size: clamp(17px, 2.05vw, 27px);
  line-height: 1.6;
  letter-spacing: .07em;
  font-weight: 700;
}
.hero-lead {
  margin-top: 12px;
  color: #3f3f3f;
  font-size: 12px;
  line-height: 1.8;
}
.br-sp { display: none; }

/* Shared section system */
.section { padding: 118px 0; }
.section-inner { margin: 0 auto; }
.section-inner-narrow { width: var(--column); }
.section-inner-wide { width: var(--wide); }
.section-heading {
  position: relative;
  margin-bottom: 56px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.section-heading::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 64px;
  height: 2px;
  background: var(--soft-gold);
  transform: translateX(-50%);
}
/* JS有効時のみ、橙のアクセント線を中央から伸ばす。JS不達なら通常表示のまま */
.js-motion .section-heading::before {
  transform: translateX(-50%) scaleX(0);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js-motion .section-heading.is-drawn::before { transform: translateX(-50%) scaleX(1); }
/* 見出しに階層をつける。旧: h2=13px / sub=11px でほぼ同寸=声の大きさが一定だった */
.section-heading h2 {
  font-size: clamp(21px, 2.5vw, 32px);
  line-height: 1.25;
  letter-spacing: .04em;
  font-weight: 800;
}
.section-heading p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
}
.outline-button {
  width: 230px;
  min-height: 48px;
  margin: 44px auto 0;
  display: grid;
  place-items: center;
  border: 1px solid #cfcfcf;
  color: #777;
  font-size: 10px;
  letter-spacing: .06em;
  transition: color .2s, border-color .2s, background .2s;
}
.outline-button:hover { color: #fff; border-color: #111; background: #111; }
/* 主導線用の塗りボタン。outline-buttonより一段強い */
.solid-button {
  min-width: 230px;
  min-height: 52px;
  margin: 30px auto 0;
  padding: 0 28px;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: opacity .2s, transform .2s;
}
.solid-button:hover { opacity: .85; transform: translateY(-2px); }
.section-students .section-inner { text-align: center; }
.students-note {
  margin-top: 40px;
  color: #666;
  font-size: 12px;
  line-height: 2;
}

/* Project news */
.section-news { padding-top: 100px; }
.news-list { border-top: 1px solid var(--line); }
.news-list li {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
}
.news-list time {
  color: #999;
  font-size: 10px;
  letter-spacing: .04em;
}
.news-list p { font-size: 12px; line-height: 1.8; }

/* About */
.section-about { padding-top: 94px; }
.section-about .section-inner { text-align: center; }
.about-mark {
  height: 280px;
  width: auto;
  margin: 0 auto 32px;
  object-fit: contain;
}
/* 本文段落のみ。グリッドのセルへ幅制限が効くと罫線が途切れるため除外する */
.section-about > .section-inner > p,
.section-companies > .section-inner > p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: #4d4d4d;
  font-size: 13px;
  line-height: 2.2;
}
/* ロゴの意味。すぐ上のマークを見ながら読める位置に、囲みの欄として置く */
.logo-note {
  max-width: 650px;
  margin: 44px auto 0;
  padding: 28px 30px 26px;
  border: 1px solid #e6e6e6;
  text-align: center;
}
.logo-note h3 {
  margin-bottom: 16px;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
/* 本文段落と同じ体裁を、囲みの中でも保つ */
.section-about .logo-note p {
  max-width: none;
  color: #4d4d4d;
  font-size: 13px;
  line-height: 2.2;
}
.logo-note b { color: #111; font-weight: 700; }
.section-about .logo-note .logo-colors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  font-size: 12px;
  line-height: 2;
}
.logo-colors span { display: inline-flex; align-items: center; }
.sw {
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.sw-blue { background: var(--gold); }
.sw-orange { background: var(--soft-gold); }

/* 企業向けセクション。本文の体裁はALLIANCEセクションと共通にする */
.section-companies { padding-top: 96px; }
.section-companies .section-inner-narrow { text-align: center; }
.section-about .about-lead,
.section-companies .about-lead {
  margin-bottom: 16px;
  color: #111;
  font-weight: 700;
}
.section-about .about-signature {
  margin-top: 25px;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Place */
.section-place { padding-top: 96px; }
.feature-figure {
  width: min(920px, 100%);
  margin: 0 auto;
}
.feature-figure img {
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}
.feature-figure figcaption {
  margin-top: 10px;
  color: #999;
  font-size: 10px;
  text-align: center;
}
.feature-name {
  margin: 30px 0 34px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.facility-grid {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.facility-grid p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  min-height: 64px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.facility-grid p:nth-child(odd) { border-right: 1px solid var(--line); }
.facility-grid b { font-size: 13px; white-space: nowrap; }
.facility-grid span { color: var(--muted); font-size: 11px; text-align: right; }
/* 3項目など奇数件で右下が空くレイアウト用。1列で並べ、縦罫線は引かない */
.facility-grid-stack { grid-template-columns: 1fr; }
.facility-grid-stack p:nth-child(odd) { border-right: 0; }

.section-domains { padding-top: 96px; }
.domains-note {
  margin: 32px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

/* Students */
.section-students { padding-top: 100px; }
.student-figure { width: min(820px, 100%); }
.student-figure img { aspect-ratio: 1.42 / 1; object-position: center; }
.statement {
  margin-top: 48px;
  text-align: center;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.65;
  letter-spacing: .03em;
}
.center-copy {
  max-width: 720px;
  margin: 25px auto 0;
  text-align: center;
  color: #555;
  line-height: 2.2;
}
.team-list {
  width: min(760px, 100%);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.team-list li {
  min-height: 62px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.team-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.team-list b { font-size: 12px; }
.team-list span { color: var(--muted); font-size: 10px; text-align: right; }

/* People and city */
.section-people { padding-top: 102px; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-grid article { min-width: 0; }
.story-grid img {
  width: 100%;
  aspect-ratio: 1.36 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}
.story-grid .portrait-card {
  object-position: center top;
  background: #f7f7f7;
}
.card-label {
  margin-top: 16px;
  color: #999;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}
.story-grid h3 { margin-top: 2px; font-size: 15px; }
.story-grid article > p:last-child {
  margin-top: 8px;
  color: #666;
  font-size: 11px;
  line-height: 1.9;
}
.human-quote {
  max-width: 780px;
  margin: 96px auto 0;
  padding: 36px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: clamp(21px, 2.7vw, 34px);
  font-weight: 700;
  line-height: 1.85;
}
/* 一文ずつを行にする。狭い幅で語中（笑わ/れた）から割れるのを防ぐ */
.human-quote span { display: block; }
.quote-by { margin-top: 15px; color: #777; font-size: 11px; text-align: center; }

/* Plan */
.section-plan { padding-top: 100px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan-grid figure { border: 1px solid var(--line); }
.plan-grid img { width: 100%; aspect-ratio: 1.41 / 1; object-fit: contain; }
.plan-grid figcaption { padding: 12px 14px; border-top: 1px solid var(--line); color: #777; font-size: 10px; }
.timeline {
  width: min(840px, 100%);
  margin: 66px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.timeline li { position: relative; padding: 22px 20px 0; text-align: center; }
.timeline li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--soft-gold);
  border-radius: 50%;
  transform: translateX(-50%);
}
.timeline time { display: block; font-size: 14px; font-weight: 700; }
.timeline span { display: block; margin-top: 6px; color: #777; font-size: 11px; line-height: 1.7; }

/* Crowdfunding */
.support {
  padding: 124px 20px;
  background: #111;
  color: #fff;
  text-align: center;
}
.support-inner { width: min(720px, 100%); margin: 0 auto; }
.support-kicker { color: var(--soft-gold); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.support h2 { margin-top: 18px; font-size: clamp(40px, 6vw, 72px); line-height: 1.3; letter-spacing: .08em; }
.support-inner > p:nth-of-type(2) { margin-top: 26px; color: #d6d6d6; line-height: 2.2; }
.countdown { margin-top: 38px; display: flex; justify-content: center; align-items: baseline; gap: 10px; }
.countdown span { font-size: 12px; }
.countdown b { color: var(--soft-gold); font-size: 52px; line-height: 1; }
/* a要素なので、中央寄せと文字の縦横中央を明示する */
.support-button {
  width: min(300px, 100%);
  min-height: 56px;
  margin: 36px auto 0;
  display: grid;
  place-items: center;
  border: 1px solid #666;
  background: transparent;
  color: #ddd;
  font-size: 12px;
  letter-spacing: .08em;
  transition: color .2s, border-color .2s, background .2s;
}
.support-button:hover { color: #111; border-color: #fff; background: #fff; }
.support small { display: block; margin-top: 10px; color: #777; font-size: 10px; }

/* Contact and footer */
.section-contact { padding-bottom: 110px; }
.section-contact .section-inner { text-align: center; }
.section-contact .section-inner > p { color: #555; font-size: 12px; }
/* 窓口が整うまでの暫定導線に添える注記 */
.section-contact .contact-note {
  margin-top: 14px;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.9;
}
.contact-note .sep { display: inline; }
.contact-info { margin-top: 25px; line-height: 2; }
.contact-info a { border-bottom: 1px solid var(--gold); }
/* プライバシーポリシー等の文書ページ */
.section-doc { padding-top: 84px; }
.doc-body { color: #4d4d4d; font-size: 13px; line-height: 2.2; }
.doc-body h3 {
  margin: 40px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.doc-body h3:first-of-type { margin-top: 34px; }
.doc-body p + p,
.doc-list + p { margin-top: 14px; }
.doc-body a { border-bottom: 1px solid var(--gold); }
.doc-list { margin: 12px 0 0 1.1em; }
.doc-list li { list-style: disc; padding-left: .2em; }
.doc-date { margin-top: 40px; color: #8a8a8a; font-size: 11px; }

.footer {
  padding: 62px 20px 45px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer img {
  height: 112px;
  width: auto;
  margin: 0 auto 14px;
}
.footer p { font-size: 10px; line-height: 1.7; }
.footer-links { margin-top: 14px; font-size: 10px; }
.footer-links a { color: #8a8a8a; border-bottom: 1px solid #ddd; }
.footer .copyright { margin-top: 35px; color: #999; font-size: 8px; }

/* Motion */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  :root { --wide: min(1120px, calc(100% - 32px)); --column: min(720px, calc(100% - 36px)); }
  body { font-size: 13px; }
  .masthead { height: 196px; }
  .brand img { height: 142px; }
  .brand-en { font-size: 7px; }
  .site-nav { overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav-inner { justify-content: flex-start; gap: 22px; padding: 10px 18px; }
  .site-nav a { font-size: 9px; }
  .hero { height: 76svh; min-height: 560px; max-height: 680px; }
  .hero-image { object-position: center; }
  .hero-copy { bottom: 24px; }
  /* 狭い画面では1行に収まらないため、ロゴと同じ NEXT / SETTSU / ALLIANCE の3行組みにする */
  .hero-wordmark { font-size: clamp(30px, 11.6vw, 50px); line-height: .98; margin-bottom: 12px; }
  .hero-wordmark .wm { display: block; }
  .hero h1 { font-size: clamp(15px, 4.3vw, 20px); line-height: 1.7; }
  .hero-lead { margin-top: 10px; font-size: 10px; line-height: 1.85; text-align: left; }
  .br-sp { display: inline; }
  .contact-note .sep { display: none; }
  .section { padding: 82px 0; }
  .section-news, .section-about, .section-place, .section-students, .section-people, .section-plan { padding-top: 76px; }
  .section-heading { margin-bottom: 40px; }
  .news-list li { grid-template-columns: 88px 1fr; gap: 12px; padding: 14px 2px; }
  .news-list p { font-size: 11px; }
  .about-mark { height: 200px; }
  .section-about p { text-align: left; }
  .section-about .about-lead, .section-about .about-signature { text-align: center; }
  .feature-figure img { aspect-ratio: 1.25 / 1; }
  .facility-grid, .team-list { grid-template-columns: 1fr; }
  .facility-grid p:nth-child(odd), .team-list li:nth-child(odd) { border-right: 0; }
  .facility-grid p, .team-list li { padding-left: 5px; padding-right: 5px; }
  .statement { margin-top: 38px; font-size: clamp(23px, 7vw, 30px); }
  .center-copy { text-align: left; }
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-grid article { width: min(100%, 520px); margin: 0 auto; }
  .story-grid img { aspect-ratio: 1.5 / 1; }
  .human-quote { margin-top: 72px; padding: 30px 5px; font-size: clamp(20px, 6vw, 27px); }
  .plan-grid { grid-template-columns: 1fr; gap: 20px; }
  .timeline { margin-top: 50px; }
  .timeline li { padding: 20px 5px 0; }
  .timeline time { font-size: 12px; }
  .timeline span { font-size: 9px; }
  .support { padding: 86px 20px; }
  .support-inner > p:nth-of-type(2) { text-align: left; }
  .support-inner > p:nth-of-type(2) br:not(.br-sp) { display: none; }
}

@media (max-width: 420px) {
  .site-nav-inner { gap: 19px; }
  .site-nav a { font-size: 8px; }
  .hero { min-height: 540px; }
  .hero-wordmark { font-size: clamp(28px, 11.2vw, 44px); letter-spacing: 0; }
  .hero h1 { letter-spacing: .02em; }
  .facility-grid p, .team-list li { align-items: flex-start; }
  .facility-grid b, .team-list b { white-space: nowrap; }
  .timeline { grid-template-columns: 1fr; border-top: 0; }
  .timeline li { padding: 14px 0 14px 22px; border-top: 1px solid var(--line); text-align: left; }
  .timeline li::before { top: 20px; left: 5px; transform: none; }
  .countdown b { font-size: 46px; }
}
