/* =========================================================
   すくぶん.らぼ / SUKUBUN.LAB
   TODO: カラーは案B「RYUKYU SUN」で仮進行。最終HEX確定後に下の変数のみ差し替え
   ========================================================= */
:root {
  --color-yellow: #EBC43B; /* 紅型黄：明るさ・祝祭 */
  --color-sumi:   #252521; /* 墨色：専門性・信頼 */
  --color-red:    #AC382C; /* 琉球朱：創造・生命力（点で使う） */
  --color-cream:  #F6EFDC; /* 生成り：背景の基本色 */
  --color-green:  #2D4B3A; /* 福木緑：共生・持続性 */

  --color-cream-deep: #EDE3C8;
  --color-text: var(--color-sumi);
  --color-muted: #5A574C;

  --font-en: "Jost", "Futura", "Gill Sans", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-quote: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 12vw, 152px);
  --max: 1160px;
  --header-h: 64px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .03em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-red); }
:focus-visible { outline: 3px solid var(--color-red); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--color-sumi); color: var(--color-cream);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Logo (仮) ---------- */
.logo {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-en); font-weight: 500;
  letter-spacing: .09em; line-height: 1; white-space: nowrap;
}
.logo__u {
  width: .62em; height: .72em;
  margin: 0 .09em 0 .02em;
  align-self: baseline;
  transform: translateY(.02em);
}
.logo__lab { letter-spacing: .06em; font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-cream) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(37,37,33,.12); }
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--color-sumi); }
.brand:hover { color: var(--color-sumi); }
.brand .logo { font-size: 21px; }
.brand__ja { font-size: 12px; letter-spacing: .12em; color: var(--color-muted); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; background: var(--color-sumi); border-radius: 2px; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--color-cream);
  border-bottom: 1px solid rgba(37,37,33,.12);
  padding: 8px var(--gutter) 24px;
  display: none;
}
.site-nav.is-open { display: block; }
.js .site-nav:not(.is-open) { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; text-decoration: none;
  font-family: var(--font-en); font-weight: 500; font-size: 18px; letter-spacing: .08em;
  border-bottom: 1px solid rgba(37,37,33,.08);
}
.site-nav a::before {
  content: ""; width: 7px; height: 12px; border-radius: 50%;
  background: var(--color-red); transform: rotate(38deg); opacity: 0; transition: opacity .2s;
}
.site-nav a:hover::before, .site-nav a:focus-visible::before { opacity: 1; }

/* no-JS fallback: show nav inline */
html:not(.js) .site-nav { position: static; display: block; padding: 0; border: 0; background: none; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header__inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 10px; }
html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
html:not(.js) .site-nav a { padding: 4px 0; font-size: 13px; border: 0; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav:not(.is-open) {
    position: static; display: block; padding: 0; border: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 26px; }
  .site-nav a { padding: 6px 0; font-size: 14px; border: 0; gap: 0; position: relative; }
  .site-nav a::before { position: absolute; left: 50%; bottom: -8px; width: 5px; height: 9px; margin-left: -2.5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-yellow);
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hero__inner {
  position: relative; flex: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 14vh, 160px) var(--gutter) 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__ja {
  font-size: clamp(22px, 5.4vw, 44px); font-weight: 700; letter-spacing: .14em;
  margin: 0 0 .5em;
}
.hero__title { margin: 0; font-weight: 500; line-height: 1; }
.logo--hero { font-size: clamp(46px, 12.4vw, 148px); letter-spacing: .06em; }
.logo--hero .logo__lab { font-size: .62em; margin-left: .04em; }
.hero__sub {
  margin: 1.6em 0 0;
  font-family: var(--font-en); font-weight: 500;
  font-size: clamp(13px, 2.4vw, 18px); letter-spacing: .32em;
}
.hero__sun {
  position: absolute;
  right: var(--gutter); top: 28px;
  width: clamp(72px, 20vw, 110px); aspect-ratio: 1; border-radius: 50%;
  background: var(--color-sumi);
}
.hero__inner > *:not(.hero__sun) { position: relative; z-index: 1; }
.hero__places {
  margin: 0; padding: 18px var(--gutter);
  background: var(--color-sumi); color: var(--color-cream);
  font-family: var(--font-en); font-weight: 500;
  font-size: clamp(11px, 2.6vw, 15px); letter-spacing: .28em; text-align: center;
}
@media (min-width: 720px) {
  .hero__sun { right: var(--gutter); top: clamp(40px, 8vh, 96px); width: clamp(120px, 15vw, 210px); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--cream { background: var(--color-cream); }
.section--green { background: var(--color-green); color: var(--color-cream); }
.section--green a:hover { color: var(--color-yellow); }
.section--yellow { background: var(--color-yellow); }
.section--rule { padding-top: 0; }
.section--rule .split { border-top: 1px solid rgba(37,37,33,.18); padding-top: var(--section-y); }

.heading { margin: 0 0 40px; font-weight: 500; line-height: 1.2; }
.heading__en {
  display: block;
  font-family: var(--font-en); font-weight: 500;
  font-size: clamp(34px, 7vw, 60px); letter-spacing: .02em;
}
.heading__ja {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 14px; font-size: 15px; font-weight: 500; letter-spacing: .16em;
}
.heading__ja::before {
  content: ""; width: 8px; height: 14px; border-radius: 50%;
  background: var(--color-red); transform: rotate(38deg); flex: none;
}
.section--green .heading__ja::before,
.heading--light .heading__ja::before { background: var(--color-yellow); }
.heading--center { text-align: center; }

.split { display: grid; gap: 8px; }
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(260px, 4fr) 7fr; gap: 64px; align-items: start; }
  .split > .heading { position: sticky; top: calc(var(--header-h) + 32px); }
}

.prose { max-width: 40em; }
.prose p { text-align: justify; text-justify: inter-character; }
.lead { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.85; font-weight: 500; }
.prose--sm { font-size: 15px; line-height: 1.9; }

/* ---------- Our Name ---------- */
.name-word {
  margin: 0 0 .7em;
  font-size: clamp(40px, 9vw, 84px); font-weight: 700; line-height: 1.25; letter-spacing: .08em;
  color: var(--color-yellow);
}

/* ---------- Practice ---------- */
.practice { display: grid; gap: 48px; align-items: center; justify-items: center; }
.cycle { margin: 0; width: min(100%, 420px); }
.cycle svg { width: 100%; height: auto; overflow: visible; }
.cycle__node text {
  font-family: var(--font-ja); font-weight: 700; font-size: 24px; letter-spacing: .1em;
  text-anchor: middle; dominant-baseline: central;
}
.cycle__keywords {
  margin-top: 20px; text-align: center;
  font-size: clamp(18px, 3.4vw, 24px); font-weight: 700; letter-spacing: .2em;
}
.pull {
  font-size: clamp(18px, 2.6vw, 22px); font-weight: 500; line-height: 1.8;
  padding-left: 20px; border-left: 3px solid var(--color-red);
}
@media (min-width: 880px) {
  .practice { grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 24px; }
  .practice .prose { justify-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .cycle.is-in svg > g[marker-end] { animation: cycle-spin 1.4s cubic-bezier(.2,.7,.2,1) both; transform-origin: 200px 200px; }
}
@keyframes cycle-spin { from { transform: rotate(-60deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Red Goya ---------- */
.goya { display: grid; gap: 40px; }
@media (min-width: 880px) {
  .goya { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
}
.goya__photo { margin: 0; }
.goya__photo figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .08em; }

.ph {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
}
.ph--red    { background: var(--color-sumi); --mark-body: var(--color-yellow); }
.ph--green  { background: var(--color-green); color: var(--color-yellow); }
.ph--yellow { background: var(--color-yellow); color: var(--color-red); }
.ph__icon { width: 30%; height: 30%; }
.ph--green .ph__icon, .ph--yellow .ph__icon { width: 26%; height: 26%; }
.ph__note {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(246,239,220,.6);
}

/* 引用ブロック：本人の言葉として明確に区別する */
.quote {
  margin: clamp(56px, 9vw, 96px) 0 0;
  background: var(--color-cream); border-radius: var(--radius);
  padding: clamp(28px, 6vw, 64px);
  position: relative;
}
.quote__label {
  display: inline-block; margin: 0 0 28px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em;
  padding: 4px 12px; border: 1px solid var(--color-sumi); border-radius: 999px;
}
.quote__body {
  margin: 0; padding: 0 0 0 clamp(18px, 3vw, 32px);
  border-left: 2px solid var(--color-red);
  font-family: var(--font-quote); font-size: clamp(15px, 1.9vw, 17px); line-height: 2.1; letter-spacing: .06em;
  max-width: 42em;
}
.quote__body p { margin-bottom: 1.3em; }
.quote__cite {
  margin-top: 28px; padding-left: clamp(18px, 3vw, 32px);
  font-family: var(--font-quote); font-size: 15px; letter-spacing: .1em;
  display: flex; flex-wrap: wrap; gap: .3em 1em; align-items: baseline;
}
.quote__date { color: var(--color-muted); }
.quote__cite cite { font-style: normal; font-weight: 500; font-size: 17px; }

/* ---------- Founders ---------- */
.founders { display: grid; gap: 40px; margin-top: 16px; }
@media (min-width: 880px) { .founders { grid-template-columns: 1fr 1fr; gap: 40px; } }
.founder {
  background: #FBF7EC; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(37,37,33,.1);
  display: flex; flex-direction: column;
}
.founder__photo { aspect-ratio: 3 / 2; border-radius: 0; }
.founder__body { padding: clamp(24px, 4.5vw, 40px); display: flex; flex-direction: column; flex: 1; }
.founder__name { margin: 0 0 14px; font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; letter-spacing: .1em; line-height: 1.4; }
.founder__en { display: block; font-family: var(--font-en); font-weight: 500; font-size: .66em; letter-spacing: .06em; margin-top: 4px; }
.founder__role { margin: 0 0 6px; font-family: var(--font-en); font-weight: 500; font-size: 14px; line-height: 1.6; letter-spacing: .04em; }
.founder__role-ja { font-family: var(--font-ja); font-weight: 500; }
.founder__base {
  display: inline-block; align-self: flex-start; margin: 8px 0 24px;
  font-size: 13px; padding: 2px 12px; border-radius: 999px;
  background: var(--color-cream-deep);
}
.founder__links { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(37,37,33,.14); display: grid; gap: 6px; font-size: 14px; margin-top: auto; }
.founder .prose { margin-bottom: 28px; }
.founder__links div { display: flex; gap: 12px; }
.founder__links dt { width: 72px; font-family: var(--font-en); font-weight: 500; letter-spacing: .06em; }
.founder__links dt::after { content: "："; }
.founder__links dd { margin: 0; }
.founder__links a { color: var(--color-red); }
.founder__links a:hover { color: var(--color-sumi); }

/* ---------- Profile ---------- */
.profile { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.75; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 18px 0; border-bottom: 1px solid rgba(37,37,33,.16); }
.profile tr:first-child th, .profile tr:first-child td { border-top: 2px solid var(--color-sumi); }
.profile th { width: 9.5em; padding-right: 20px; font-weight: 700; letter-spacing: .08em; }
.profile a { color: var(--color-red); }
.profile a:hover { color: var(--color-sumi); }
@media (max-width: 520px) {
  .profile th, .profile td { display: block; width: auto; }
  .profile th { padding: 16px 0 2px; border-bottom: 0; font-size: 13px; color: var(--color-muted); }
  .profile td { padding: 0 0 16px; }
  .profile tr:first-child td { border-top: 0; }
}

/* ---------- Footer / Contact ---------- */
.site-footer {
  background: var(--color-sumi); color: var(--color-cream);
  padding: var(--section-y) 0 32px;
  --mark-body: var(--color-cream);
}
.site-footer a { color: var(--color-cream); }
.site-footer a:hover { color: var(--color-yellow); }
.contact { list-style: none; margin: 0 0 clamp(64px, 10vw, 120px); padding: 0; display: grid; gap: 4px; }
.contact li { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid rgba(246,239,220,.18); }
.contact__label { font-family: var(--font-en); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.contact__link {
  font-family: var(--font-en); font-weight: 500;
  font-size: clamp(22px, 5vw, 40px); letter-spacing: .02em; text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__link:hover { text-decoration: underline; }
@media (min-width: 880px) {
  .contact { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .contact__link { font-size: clamp(20px, 2.2vw, 28px); }
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px;
  padding-top: 24px; border-top: 1px solid rgba(246,239,220,.18);
}
.logo--footer { font-size: 28px; }
.site-footer__places, .copyright { margin: 0; font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; opacity: .75; }
.copyright small { font-size: inherit; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .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; }
}

/* ---------- Advisor ---------- */
.subheading { margin: clamp(64px, 9vw, 112px) 0 32px; text-align: center; font-weight: 500; line-height: 1.2; }
.subheading__en { display: block; font-family: var(--font-en); font-weight: 500; font-size: clamp(26px, 4.6vw, 38px); letter-spacing: .02em; }
.ph--sumi { background: var(--color-sumi); color: var(--color-yellow); }
.ph--sumi .ph__icon { width: 26%; height: 26%; }
.founder--wide .founder__role { margin-bottom: 24px; }
.founder__prose { margin-bottom: 0 !important; }
@media (min-width: 880px) {
  .founder--wide { flex-direction: row; }
  .founder--wide .founder__photo { flex: 0 0 36%; aspect-ratio: auto; min-height: 100%; }
  .founder--wide .founder__body { flex: 1; }
}
.subheading--first { margin-top: clamp(24px, 4vw, 48px); }
