@charset "UTF-8";
/* ===========================================================================
   一般社団法人 医療生成AI推進協会（magi.or.jp）
   ---------------------------------------------------------------------------
   試作5「黎明」をもとにしたサイト全体のスタイル。トップは夜明けの空から始まり、
   下層ページは同じ空の静止画の帯から始まる。本文は朝の紙の色に、明朝の見出しを中央揃えで置く。

   色は紺と生成りと銅色の3系統にしぼり、差し色は試験サイトへのボタンのシアンだけ。
   動きは1〜2秒かけてゆっくり現れるものだけにし、動きを減らす設定では止める。
   =========================================================================== */

/* ── 色と文字 ─────────────────────────────────────────────── */
:root {
  --night: #050816;
  --indigo: #0b1430;
  --violet: #2a2350;
  --amber: #d9a46a;
  --paper: #f4f1ea;
  --paper-deep: #ede8de;
  --ivory: #f3efe6;
  --ivory-2: rgba(243, 239, 230, .84);
  --ivory-3: rgba(243, 239, 230, .7);
  --ink: #1b2030;
  --ink-2: #414657;
  --ink-3: #585c6d;
  --bronze: #845a32;
  --line: rgba(27, 32, 48, .13);
  --line-2: rgba(27, 32, 48, .26);
  --cyan: #5fd9ec;
  --serif: "Shippori Mincho B1", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --latin: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 56px);
  --head-h: 76px;
  --hzr: .74;                                   /* トップの地平線の高さ（上からの割合）。夜明けの演出でだけ使う */
  --emb: clamp(84px, 15svh, 148px);             /* トップで昇るマークの大きさ */
  --ease: cubic-bezier(.25, .6, .3, 1);
}
@media (max-width: 600px) {
  :root { --head-h: 64px; --hzr: .74; --emb: clamp(72px, 11.5svh, 104px); }
}
/* 背の低い画面では地平線を下げて、昇りきったマークの輪が地平線にかからないようにする */
@media (max-height: 860px) { :root { --hzr: .77; } }
@media (max-height: 760px) { :root { --hzr: .8; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/2 var(--sans); letter-spacing: .04em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  line-break: strict; overflow-wrap: break-word;
}
body.lock { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 1px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* 句の途中で改行しない文用。<wbr> の位置でだけ折り返す */
.kp { word-break: keep-all; overflow-wrap: anywhere; }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 18px;
  background: var(--ivory); color: var(--ink); font-size: 14px; text-decoration: none;
  transform: translateY(-180%); transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* ── ヘッダー ─────────────────────────────────────────────────
   暗い帯（トップの空、下層ページの帯）の上では透明で、本文に入ると紙の色になる */
.head { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ivory); background: rgba(5, 8, 22, .94); }
.js .head { background: transparent; transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease); }
.js .head::before {
  content: ""; position: absolute; inset: 0 0 -36px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(5, 8, 22, .62), rgba(5, 8, 22, 0));
  transition: opacity .6s var(--ease);
}
.js .head.is-light {
  background: rgba(244, 241, 234, .9); color: var(--ink); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.js .head.is-light::before { opacity: 0; }
.js .head.menu-open { background: transparent; color: var(--ivory); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.js .head.menu-open::before { opacity: 0; }

.head-in {
  display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px);
  height: var(--head-h); max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand-mark {
  flex: none; width: 34px; height: 34px; background: currentColor;
  -webkit-mask: url(/assets/logo-white.png) center / contain no-repeat;
  mask: url(/assets/logo-white.png) center / contain no-repeat;
}
.brand-name { display: grid; line-height: 1.3; }
.brand-kind { font-size: 10.5px; letter-spacing: .4em; opacity: .84; white-space: nowrap; }
.brand-main { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .14em; white-space: nowrap; }

.gnav ul { display: flex; gap: clamp(16px, 1.8vw, 30px); }
.gnav a {
  position: relative; display: flex; align-items: center; min-height: 44px;
  font-size: 14px; letter-spacing: .12em; text-decoration: none; white-space: nowrap;
}
.gnav ul a::after {
  content: ""; position: absolute; left: 0; right: .12em; bottom: 9px; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform .6s var(--ease);
}
.gnav ul a:hover::after, .gnav ul a[aria-current]::after { transform: scaleX(1); }
.gnav .exam { display: none; }

.exam {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 15px;
  border: 1px solid rgba(243, 239, 230, .5); border-color: color-mix(in srgb, currentColor 48%, transparent);
  font-size: 13px; letter-spacing: .08em; text-decoration: none; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.exam::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(95, 217, 236, .18);
}
.exam .arr { font-family: var(--latin); font-size: 16px; line-height: 1; }
.exam:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.is-light .exam::before { background: #1d8ea3; box-shadow: 0 0 0 3px rgba(29, 142, 163, .14); }
.is-light .exam:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.menu-btn { display: none; }

@media (max-width: 1199px) {
  .js .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-width: 44px; min-height: 44px; margin-right: -10px; padding: 0 10px;
    background: none; border: 0; color: inherit; cursor: pointer;
    font: 600 12px/1 var(--latin); letter-spacing: .3em;
  }
  .menu-icon { position: relative; width: 22px; height: 9px; }
  .menu-icon::before, .menu-icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
    transition: transform .5s var(--ease);
  }
  .menu-icon::before { top: 0; }
  .menu-icon::after { bottom: 0; }
  .menu-open .menu-icon::before { transform: translateY(4px) rotate(35deg) scaleX(.82); }
  .menu-open .menu-icon::after { transform: translateY(-4px) rotate(-35deg) scaleX(.82); }

  .js .gnav {
    position: fixed; inset: 0; z-index: -1; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
    padding: calc(var(--head-h) + 16px) var(--gutter) 48px;
    background:
      radial-gradient(ellipse 80% 34% at 50% 100%, rgba(217, 164, 106, .24), rgba(217, 164, 106, 0) 72%),
      linear-gradient(#050816 0%, #0b1430 62%, #241f49 100%);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s;
  }
  .js .menu-open .gnav { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
  .js .gnav ul { flex-direction: column; align-items: center; gap: 2px; }
  .js .gnav ul a { min-height: 54px; font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .2em; padding-left: .2em; }
  .js .gnav ul a::after { bottom: 12px; left: .2em; right: .2em; }

  /* JS が無いときは、メニューを2段目に並べ、ヘッダーは固定しない */
  html:not(.js) .head { position: absolute; }
  html:not(.js) .head-in { flex-wrap: wrap; height: auto; padding-top: 6px; padding-bottom: 8px; }
  html:not(.js) .gnav { order: 9; width: 100%; }
  html:not(.js) .gnav ul { flex-wrap: wrap; column-gap: 20px; }
  html:not(.js) { --head-h: 124px; }
}
@media (max-width: 900px) {
  .menu-label { display: none; }
  .head-in > .exam { padding: 0 12px; gap: 8px; font-size: 12.5px; letter-spacing: .04em; }
}
@media (max-width: 600px) {
  html:not(.js) { --head-h: 214px; }
  html:not(.js) .gnav .exam { margin: 6px 0 4px; }
  .head-in { gap: 10px; }
  .head-in > .exam { display: none; }
  .gnav .exam { display: inline-flex; }
  .brand { gap: 10px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-kind { font-size: 9.5px; letter-spacing: .36em; }
  .brand-main { font-size: 15px; letter-spacing: .1em; }
}
@media (max-width: 374px) {
  .brand-mark { width: 26px; height: 26px; }
  .brand { gap: 8px; }
  .brand-main { font-size: 14px; letter-spacing: .06em; }
  .brand-kind { letter-spacing: .28em; }
}

/* ── トップのヒーロー（夜明け） ───────────────────────────────
   既定は静止画の構図（JS なし、動きを減らす設定、WebGL なし）。
   <head> の判定で scrolly が付いたときだけ、高さ 250svh のスクロール演出にして
   js/dawn.js が空と海とマークを描く。 */
.hero { position: relative; background: var(--night); color: var(--ivory); }
.stage { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.scrolly .hero { height: 250vh; height: 250svh; }
.scrolly .stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }

.dawn { display: none; }
.scrolly .dawn {
  display: block; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.gl-on .dawn { opacity: 1; }

.sky {
  position: relative; z-index: 1; flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--head-h) + 2svh) var(--gutter) 0; text-align: center;
}
.sea { position: relative; z-index: 1; flex: none; height: clamp(160px, 30svh, 320px); }
.scrolly .sky { flex: 1 1 auto; min-height: 0; }
.scrolly .sea { height: calc((1 - var(--hzr)) * 100svh); }

/* 静止画の空と海（WebGL が描きはじめたら消える） */
.sky::before, .sea::before { content: ""; position: absolute; inset: 0; z-index: -2; transition: opacity 1.6s var(--ease); }
.sky::before {
  background:
    radial-gradient(ellipse 46% 34% at 50% 100%, rgba(238, 196, 142, .5), rgba(238, 196, 142, 0) 72%),
    linear-gradient(to top, #c99674 0%, #946a70 6%, #5c4567 17%, #332a58 32%, #1a1e44 52%, #0d1533 72%, #060a1d 100%);
}
.sea::before {
  background:
    radial-gradient(ellipse 12% 64% at 50% 0%, rgba(238, 196, 142, .32), rgba(238, 196, 142, 0) 72%),
    linear-gradient(#41334f 0, #1c1a37 5%, #0e1127 28%, #080b1c 64%, #050816 100%);
}
.scrolly .sky::before {
  background:
    radial-gradient(ellipse 50% 22% at 50% 100%, rgba(80, 68, 120, .45), rgba(80, 68, 120, 0) 72%),
    linear-gradient(to top, #211f42 0%, #151937 12%, #0d1331 34%, #090f27 62%, #050816 100%);
}
.scrolly .sea::before { background: linear-gradient(#0c0d22 0, #05070f 40%, #03050d 100%); }
.stars {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: url(/assets/stars.svg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 30%, rgba(0, 0, 0, .25) 82%, transparent 100%);
  mask-image: linear-gradient(#000 30%, rgba(0, 0, 0, .25) 82%, transparent 100%);
  transition: opacity 1.6s var(--ease);
}
.horizon {
  position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 236, 210, 0), rgba(255, 232, 200, .5) 22%, #fff3de 50%, rgba(255, 232, 200, .5) 78%, rgba(255, 236, 210, 0));
  box-shadow: 0 0 14px rgba(255, 214, 160, .45);
  transition: opacity 1.6s var(--ease);
}
.scrolly .horizon { background: linear-gradient(90deg, transparent, rgba(160, 172, 210, .45) 30%, rgba(190, 198, 228, .6) 50%, rgba(160, 172, 210, .45) 70%, transparent); box-shadow: none; }
.reflect {
  position: absolute; left: 50%; top: calc(var(--emb) * .14); width: var(--emb); height: var(--emb);
  transform: translateX(-50%) scaleY(-1); opacity: .2; filter: blur(1.4px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
}
.gl-on .sky::before, .gl-on .sea::before, .gl-on .stars, .gl-on .horizon { opacity: 0; }
.scrolly .reflect, .scrolly .emblem { opacity: 0; }

.hero-text { position: relative; margin: auto 0; max-width: 62em; will-change: transform; }
/* 夜明けの演出では、見出しを上に寄せ、空いた高さをマークと地平線の間に回す。
   夜が明けきったとき、マークが輪ごと地平線の上まで昇るように。
   夜のうちは js/site.js が見出しを下げて、地平線より上の空の中央に置く */
.scrolly .hero-text { margin: clamp(0px, 1.4svh, 24px) 0 0; }
.scrolly .emblem-slot { margin-bottom: auto; }
.motion .hero-text { animation: dawn-in 1.8s var(--ease) .15s both; }
@keyframes dawn-in { from { opacity: 0; } }
.hero-org {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: 13px; letter-spacing: .34em; color: var(--ivory-2); padding-left: .34em;
}
.hero-org::before, .hero-org::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .5; }
.hero-title {
  margin-top: clamp(12px, 2.2svh, 24px);
  font-family: var(--serif); font-weight: 600; line-height: 1.58; letter-spacing: .08em;
  font-size: max(22px, min(50px, calc(1.9vw + 21px), 5.6svh, calc((100vw - 2 * var(--gutter)) / 14.2)));
  font-feature-settings: "palt"; word-break: keep-all;
  text-shadow: 0 0 34px rgba(5, 8, 22, .45);
}
.hero-lead {
  margin: clamp(12px, 2.2svh, 24px) auto 0; max-width: 44em;
  font-size: clamp(16px, .25vw + 13px, 17px); line-height: 2; letter-spacing: .06em; color: var(--ivory);
  text-shadow: 0 1px 16px rgba(5, 8, 22, .55), 0 0 2px rgba(5, 8, 22, .25);
}
.scrolly .hero-lead { opacity: 0; }
.emblem-slot {
  position: relative; flex: none; width: var(--emb); height: var(--emb);
  margin: max(calc(var(--emb) * .38 + 14px), clamp(22px, 4.6svh, 52px)) 0 calc(var(--emb) * .1);
}
.emblem { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(255, 226, 188, .5)); transition: opacity 1.6s var(--ease); }

.cue { display: none; }
.scrolly .cue {
  position: absolute; left: 50%; bottom: clamp(16px, 3.6svh, 36px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 600 11px/1 var(--latin); letter-spacing: .46em; padding-left: .46em; color: rgba(243, 239, 230, .74);
}
.scrolly .cue::after {
  content: ""; width: 1px; height: 44px; transform-origin: top;
  background: linear-gradient(rgba(243, 239, 230, .75), rgba(243, 239, 230, 0));
  animation: cue 3.6s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ── 下層ページの帯（夜明けの空の静止画） ───────────────────── */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--ivory); }
.page-sky {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: clamp(360px, 50svh, 560px); padding: calc(var(--head-h) + 48px) var(--gutter) clamp(48px, 7svh, 84px);
  text-align: center;
}
.page-sky::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 52% 30% at 50% 100%, rgba(238, 196, 142, .42), rgba(238, 196, 142, 0) 72%),
    linear-gradient(to top, #b98a72 0%, #8a6170 7%, #563f63 20%, #302856 36%, #191d43 56%, #0c1432 76%, #060a1d 100%);
}
.page-sky .stars { opacity: .78; }
.page-sea { position: relative; height: clamp(72px, 11svh, 120px); }
.page-sea::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 14% 80% at 50% 0%, rgba(238, 196, 142, .28), rgba(238, 196, 142, 0) 72%),
    linear-gradient(#3b2f4a 0, #1b1934 14%, #2f2c45 46%, #a7a2a8 82%, var(--paper) 100%);
}
.page-sea .horizon { top: 0; }
.crumb { position: absolute; left: 0; right: 0; top: calc(var(--head-h) + 14px); padding: 0 var(--gutter); font-size: 12.5px; letter-spacing: .1em; color: var(--ivory-3); }
.crumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; }
.crumb li + li::before { content: "／"; margin-right: 10px; opacity: .6; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.page-label {
  display: inline-flex; align-items: center; gap: 18px; color: var(--ivory-2);
  font: 600 13px/1 var(--latin); letter-spacing: .44em; padding-left: .44em;
}
.page-label::before, .page-label::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.page-title {
  margin-top: 22px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 2.2vw + 18px, 48px); line-height: 1.5; letter-spacing: .16em; padding-left: .16em;
  font-feature-settings: "palt"; text-shadow: 0 0 30px rgba(5, 8, 22, .4);
}
.page-lead { max-width: 40em; margin-top: 20px; text-wrap: balance; font-size: clamp(15px, .2vw + 13.5px, 16.5px); line-height: 2; color: var(--ivory-2); }
.motion .page-sky > :not(.crumb):not(.stars) { animation: dawn-in 1.6s var(--ease) both; }

/* ── 本文の共通 ───────────────────────────────────────────── */
.sec { position: relative; padding: clamp(88px, 10vw, 150px) 0; scroll-margin-top: calc(var(--head-h) - 40px); }
.sec--tight { padding: clamp(64px, 7vw, 104px) 0; }
.sec--deep { background: var(--paper-deep); }
.sec + .sec:not(.sec--deep):not(.band) { border-top: 1px solid var(--line); }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.wrap--mid { width: min(900px, 100% - 2 * var(--gutter)); }
.wrap--narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.sec-head { margin-bottom: clamp(44px, 5.5vw, 72px); text-align: center; }
.sec-label {
  display: inline-flex; align-items: center; gap: 18px; color: var(--bronze);
  font: 600 13px/1 var(--latin); letter-spacing: .44em; padding-left: .44em;
}
.sec-label::before, .sec-label::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.sec-head h2, .sec-title {
  margin-top: 22px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(27px, 1.6vw + 18px, 40px); line-height: 1.5; letter-spacing: .14em; padding-left: .14em;
  font-feature-settings: "palt";
}
.sec-note { margin-top: 18px; font-size: 14px; letter-spacing: .14em; color: var(--ink-3); }
.sec-more { margin-top: clamp(40px, 5vw, 64px); text-align: center; }

/* 本文の小見出し（下層ページの各節の中） */
.h3 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(21px, .7vw + 16px, 26px);
  line-height: 1.6; letter-spacing: .1em; font-feature-settings: "palt";
}
.lede { font-size: clamp(16px, .2vw + 13.5px, 17px); line-height: 2.1; }
.lede + .lede, .lede + p { margin-top: 1.4em; }
.muted { color: var(--ink-3); }

/* 少しずつ現れる（動きを減らす設定では最初から見える） */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }

/* ── リンクとボタン ───────────────────────────────────────── */
.more {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 15px; letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid var(--line-2);
  transition: border-color .4s var(--ease), gap .4s var(--ease);
}
.more .arr, .btn .arr, .text-link .arr { font-family: var(--latin); font-size: 17px; line-height: 1; }
.more:hover { border-color: var(--ink); gap: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 22px;
  background: var(--ink); color: var(--ivory); border: 1px solid var(--ink);
  font-size: 15px; letter-spacing: .1em; text-decoration: none; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--light:hover { background: transparent; color: var(--ivory); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btns--center { justify-content: center; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  text-decoration-color: var(--line-2); letter-spacing: .08em;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ── 写真 ─────────────────────────────────────────────────────
   色味を少し抑え、細い線で縁取る。キャプションは小さく添える */
.photo { position: relative; margin: 0; }
.photo-frame { position: relative; overflow: hidden; background: var(--paper-deep); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(.98); }
.photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(27, 32, 48, .08); }
.photo figcaption { margin-top: 12px; font-size: 13px; line-height: 1.7; letter-spacing: .08em; color: var(--ink-3); }
.ar-wide { aspect-ratio: 21 / 9; }
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-3x2 { aspect-ratio: 3 / 2; }
.ar-4x3 { aspect-ratio: 4 / 3; }
.ar-4x5 { aspect-ratio: 4 / 5; }
.motion .reveal .photo-frame img, .motion .photo.reveal .photo-frame img { transform: scale(1.04); transition: transform 2.4s var(--ease); }
.motion .reveal.is-in .photo-frame img, .motion .photo.reveal.is-in .photo-frame img { transform: none; }
.photo-note { margin-top: 18px; text-align: right; font-size: 12.5px; letter-spacing: .08em; color: var(--ink-3); }

/* 写真と文章を左右に並べる */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 84px); align-items: center; }
.split--wide-media { grid-template-columns: 1.15fr 1fr; }
.split--rev > .photo, .split--rev > .split-media { order: 2; }
.split-body .sec-label { margin-bottom: 4px; }
.split-body .h3 + p, .split-body .h3 + .lede { margin-top: 20px; }

/* 代表理事の写真（協会についての「設立の趣旨」）。人物の写真なので色味は抑えない */
.portrait { width: min(440px, 100%); justify-self: center; }
.portrait .photo-frame { background: #e4e2de; }
.portrait .photo-frame img { filter: none; }
.portrait figcaption { display: flex; align-items: baseline; justify-content: center; gap: 18px; margin-top: 20px; }
.portrait-role { font-size: 13px; letter-spacing: .32em; color: var(--ink-3); }
.portrait-name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .22em; color: var(--ink); }
@media (max-width: 860px) { .portrait { width: min(300px, 82%); } }

/* 左寄せの見出し（写真と並べる節）。中央揃え用の字間の補正を外す */
.split-body .sec-title, .split-body .book-title { padding-left: 0; }
.split-body .sec-title + .lede, .split-body .book-title + .lede { margin-top: 24px; }
.split-body .lede + .facts, .split-body .lede + .lede + .facts { margin-top: 28px; }
.split--top { align-items: start; }
.gallery--spaced, .cols-2--spaced { margin-top: clamp(56px, 6vw, 80px); }
.btns--spaced { margin-top: 56px; }
.callout--center { text-align: center; }
.contact-sub.contact-sub--wide { max-width: 56em; }

/* ページ内の目次（事業のページ） */
.jump-wrap { padding: clamp(40px, 5vw, 64px) 0 0; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(20px, 3vw, 44px); }
.jump a {
  display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; padding-top: 10px;
  font-size: 15px; letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid var(--line-2);
  transition: border-color .4s var(--ease);
}
.jump a:hover { border-color: var(--ink); }
.jump .dn { padding: 0; font-size: 14px; }
.jump .arr { font-family: var(--latin); font-size: 16px; }

/* 公式テキストの表紙（白い背景に、影をつけて立てる） */
.book-shot .photo-frame { display: grid; place-items: center; padding: clamp(24px, 4vw, 52px); background: #eef1f4; }
.book-shot .photo-frame img.book-cover {
  width: auto; height: 100%; max-width: 100%; object-fit: contain; filter: none;
  box-shadow: 0 30px 50px -30px rgba(27, 32, 48, .55), 0 0 0 1px rgba(27, 32, 48, .06);
}

/* ── 協会について ─────────────────────────────────────────── */
.about-body { max-width: 35em; margin: 0 auto; font-size: clamp(16px, .2vw + 13.5px, 17px); line-height: 2.1; }
.about-body p + p { margin-top: 1.5em; }
.about-photo { margin-top: clamp(56px, 7vw, 96px); }
.mission { max-width: 920px; margin: clamp(80px, 9vw, 120px) auto 0; text-align: center; }
.mission--solo { margin-top: 0; }
.mission-rule { display: flex; align-items: flex-end; color: var(--bronze); }
.mission-rule::before, .mission-rule::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.mission-rule svg { width: 58px; height: 30px; margin-bottom: -.5px; overflow: visible; }
.mission-rule path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mission figcaption { margin-top: 30px; font: 600 12px/1 var(--latin); letter-spacing: .5em; padding-left: .5em; color: var(--bronze); }
.mission blockquote { margin: 26px 0 0; }
.mission blockquote p {
  font-family: var(--serif); font-weight: 500; line-height: 1.9; letter-spacing: .1em;
  font-size: clamp(21px, 1.5vw + 12px, 33px); font-feature-settings: "palt";
}

/* ── 基準となる5つの領域（星座） ──────────────────────────── */
.chart { position: relative; --band: 172px; }
.chart-lines { position: absolute; left: 0; top: 0; width: 100%; height: var(--band); overflow: visible; }
.chart-lines polyline { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 1; vector-effect: non-scaling-stroke; }
.domains { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.domains li { position: relative; padding: var(--band) clamp(8px, 1.2vw, 18px) 0; text-align: center; }
.star {
  position: absolute; left: 50%; top: calc(var(--band) * var(--y)); width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 1px solid rgba(27, 32, 48, .55); border-radius: 50%; background: var(--paper-deep);
}
.sec:not(.sec--deep) .star { background: var(--paper); }
.star::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: var(--ink);
}
.star::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(27, 32, 48, .12); }
.domains li::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--band) * var(--y) + 32px); bottom: calc(100% - var(--band) + 20px);
  width: 1px; background: linear-gradient(rgba(27, 32, 48, .16), rgba(27, 32, 48, 0));
}
.dn { font: 600 15px/1 var(--latin); letter-spacing: .24em; padding-left: .24em; color: var(--bronze); font-variant-numeric: lining-nums; }
.domains h3 {
  margin-top: 16px; font-family: var(--serif); font-weight: 600; font-size: 19px;
  line-height: 1.6; letter-spacing: .08em; font-feature-settings: "palt";
}
.domains h3 + p { margin-top: 12px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.motion .chart .chart-lines { clip-path: inset(0 100% 0 0); transition: clip-path 2.6s var(--ease) .5s; }
.motion .chart.is-in .chart-lines { clip-path: inset(0 0 0 0); }
.motion .chart .star { opacity: 0; transform: scale(.7); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i) * .28s + .2s); }
.motion .chart.is-in .star { opacity: 1; transform: none; }
.chart-note { max-width: 40em; margin: clamp(48px, 6vw, 72px) auto 0; text-align: center; font-size: 15px; color: var(--ink-2); }

/* ── 事業（トップの3列） ───────────────────────────────────── */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.prog { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 40px clamp(22px, 2.8vw, 44px) 0; }
.prog + .prog { border-left: 1px solid var(--line); }
.prog .photo { margin-bottom: 30px; }
.prog-no { font: 500 46px/1 var(--latin); letter-spacing: .02em; color: var(--bronze); font-variant-numeric: lining-nums; }
.prog h3 { margin-top: 22px; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.6; letter-spacing: .1em; font-feature-settings: "palt"; }
.prog-sub { margin-top: 6px; font-size: 14px; line-height: 1.8; letter-spacing: .06em; color: var(--ink-3); }
.prog-text { margin-top: 20px; font-size: 16px; line-height: 2; color: var(--ink-2); }
.prog .more { justify-self: start; align-self: end; margin-top: 22px; }

/* ── 公式テキスト（トップの紹介） ─────────────────────────── */
.book-feature .photo-frame { background: #eef1f4; }
.book-feature .photo-frame img { filter: none; }
.book-title {
  margin-top: 22px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 1.2vw + 17px, 34px); line-height: 1.6; letter-spacing: .1em; font-feature-settings: "palt";
}
.book-title small { display: block; margin-bottom: 6px; font-size: 15px; letter-spacing: .14em; color: var(--ink-3); }

/* ── 試験サイトへの帯（試験サイトの星雲の絵を敷く） ─────────── */
.band { position: relative; isolation: isolate; overflow: hidden; background: #020812; color: var(--ivory); }
.band-art { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 64%; height: 100%; }
.band-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.band-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #020812 0%, rgba(2, 8, 18, .55) 40%, rgba(2, 8, 18, 0) 75%); }
.band-in { padding: clamp(84px, 10vw, 140px) 0; max-width: 34em; }
.band .sec-label { color: #8fdbe8; }
.band h2 {
  margin-top: 22px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 1.6vw + 17px, 40px); line-height: 1.5; letter-spacing: .1em; font-feature-settings: "palt";
}
.band p { margin-top: 22px; color: var(--ivory-2); }
.band-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font-size: 14px; letter-spacing: .1em; color: var(--ivory); }
.band-facts li { display: flex; align-items: baseline; gap: 10px; }
.band-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); transform: translateY(-2px); }

/* ── 事実の表（dl） ───────────────────────────────────────── */
.facts { border-top: 1px solid var(--line-2); }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 24px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom-color: var(--line-2); }
.facts dt { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.9; letter-spacing: .12em; color: var(--ink-2); }
.facts dd { font-size: 16px; line-height: 1.9; }
.facts dd small { display: block; font-size: 13.5px; color: var(--ink-3); }
.facts--compact > div { grid-template-columns: 8em 1fr; padding: 12px 0; }
.facts--compact dd { font-size: 15px; }

/* ── 3つの特長 ─────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.feature { padding: 34px clamp(18px, 2.4vw, 36px) 8px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature-no { font: 500 32px/1 var(--latin); color: var(--bronze); font-variant-numeric: lining-nums; }
.feature h4 { margin-top: 16px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.6; letter-spacing: .08em; font-feature-settings: "palt"; }
.feature p { margin-top: 12px; font-size: 15.5px; line-height: 1.95; color: var(--ink-2); }

/* ── 事業の節（下層ページ） ───────────────────────────────── */
.prog-sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.prog-sec-head .prog-no { font-size: 56px; }
.prog-sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 1.4vw + 18px, 38px); line-height: 1.5; letter-spacing: .12em; font-feature-settings: "palt"; }
.prog-sec-head p { margin-top: 4px; font-size: 14.5px; letter-spacing: .08em; color: var(--ink-3); }
.subhead { margin: clamp(64px, 7vw, 96px) 0 28px; text-align: center; }
.subhead h3 { margin-top: 16px; font-family: var(--serif); font-weight: 600; font-size: clamp(21px, .8vw + 16px, 27px); line-height: 1.5; letter-spacing: .12em; padding-left: .12em; font-feature-settings: "palt"; }
.subhead .sec-label { font-size: 12px; }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: end; }
.gallery--three { grid-template-columns: repeat(3, 1fr); align-items: start; }

/* 認定証とデジタルバッジ */
.cert { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(36px, 4vw, 56px); background: var(--paper-deep); }
.cert-vis { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.cert-paper {
  width: min(360px, 82%); aspect-ratio: 1.414; padding: 8px; background: #fffdf8;
  box-shadow: 0 26px 40px -26px rgba(27, 32, 48, .45), 0 0 0 1px rgba(27, 32, 48, .08); transform: rotate(-2.5deg);
}
.cert-paper > div { display: flex; flex-direction: column; height: 100%; padding: 22px 24px; border: 1px solid rgba(132, 90, 50, .6); outline: 1px solid rgba(132, 90, 50, .25); outline-offset: -6px; }
.cert-paper small { font: 600 10px/1 var(--latin); letter-spacing: .4em; color: var(--bronze); }
.cert-paper b { margin-top: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.5; letter-spacing: .1em; }
.cert-paper span { margin-top: auto; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }
.cert-badge { position: absolute; right: 2%; bottom: -4%; width: 34%; border-radius: 50%; overflow: hidden; box-shadow: 0 14px 28px -16px rgba(27, 32, 48, .5); }
.cert-badge img { width: 100%; transform: scale(1.32); }
.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.8; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze); transform: rotate(-45deg); }

/* 目次（5領域を章立てとして並べる） */
.toc { border-top: 1px solid var(--line-2); counter-reset: toc; }
.toc li { display: grid; grid-template-columns: 4.5em 1fr; gap: 0 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.toc .dn { font-size: 14px; }
.toc b { font-family: var(--serif); font-weight: 600; font-size: 17.5px; letter-spacing: .08em; }
.toc span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }

/* 案内の枠 */
.callout { padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .35); }
.callout .h3 { font-size: clamp(19px, .5vw + 16px, 22px); }
.callout p { margin-top: 14px; color: var(--ink-2); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }

/* ── 事業へのリンク（協会についてのページ） ────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card .photo-frame { aspect-ratio: 3 / 2; }
.card-no { margin-top: 22px; font: 500 28px/1 var(--latin); color: var(--bronze); }
.card h3 { margin-top: 12px; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.6; letter-spacing: .1em; }
.card p { margin-top: 10px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.card .arr { margin-top: 14px; font-family: var(--latin); font-size: 18px; transition: transform .5s var(--ease); }
.card:hover .arr { transform: translateX(6px); }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ── 理事会 ───────────────────────────────────────────────── */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.roster > div { padding: 34px 12px 36px; text-align: center; }
.roster dt { font-size: 13px; letter-spacing: .36em; padding-left: .36em; color: var(--ink-3); }
.roster dd { margin-top: 10px; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.6; letter-spacing: .16em; padding-left: .16em; }
.roster .chair { grid-column: 1 / -1; padding: 50px 12px 48px; border-bottom: 1px solid var(--line); }
.roster .chair dd { margin-top: 14px; font-size: clamp(26px, 1vw + 18px, 32px); letter-spacing: .28em; padding-left: .28em; }
.roster .audit { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.roster .dir + .dir { border-left: 1px solid var(--line); }
.roster .tbd { font-family: var(--sans); font-weight: 400; font-size: 16px; letter-spacing: .2em; color: var(--ink-3); }
.roster-note { margin-top: 28px; text-align: center; font-size: 14px; letter-spacing: .08em; color: var(--ink-3); }

/* ── 法人概要 ─────────────────────────────────────────────── */
.profile { width: 100%; max-width: 880px; margin: 0 auto; border-collapse: collapse; }
.profile th, .profile td { padding: 22px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 32px; }
.profile tr:first-child th, .profile tr:first-child td { border-top-color: var(--line-2); }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 1px solid var(--line-2); }
.profile th { width: 12em; padding-right: 24px; font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .16em; color: var(--ink-2); white-space: nowrap; }
.profile td { font-size: 16px; }
.profile .tbd { color: var(--ink-3); letter-spacing: .14em; }
.profile a { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.profile td ul li { position: relative; padding-left: 1.1em; }
.profile td ul li::before { content: "・"; position: absolute; left: 0; color: var(--ink-3); }

/* ── お知らせ・公告 ───────────────────────────────────────── */
.news { max-width: 940px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.news li { display: grid; grid-template-columns: 8em 6em 1fr; align-items: baseline; gap: 0 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news time, .nodate { font: 500 17px/1.6 var(--latin); letter-spacing: .1em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-2); }
.nodate::before { content: ""; display: inline-block; width: 1.8em; height: 1px; vertical-align: .3em; background: currentColor; opacity: .55; }
.tag {
  justify-self: start; padding: 1px 10px 2px; border: 1px solid var(--line-2);
  font-size: 12.5px; line-height: 1.8; letter-spacing: .16em; color: var(--ink-2); white-space: nowrap;
}
.tag--notice { color: var(--bronze); border-color: rgba(132, 90, 50, .45); }
.news p { font-size: 16px; line-height: 1.9; text-wrap: pretty; }
.news p a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.news-sub { max-width: 940px; margin: clamp(56px, 6vw, 80px) auto 0; }
.news-sub .h3 { margin-bottom: 20px; }

/* ── お問い合わせ ─────────────────────────────────────────── */
.contact { text-align: center; }
.contact-lead { font-size: clamp(16px, .25vw + 13px, 17px); line-height: 2.1; }
.mail {
  display: inline-block; margin-top: 30px; padding: 0 2px 8px;
  font: 500 clamp(34px, 2.6vw + 18px, 56px)/1.25 var(--latin); letter-spacing: .03em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 50% 100% / 100% 1px no-repeat;
  transition: background-size .8s var(--ease);
}
.mail:hover { background-size: 30% 1px; }
.contact-sub { max-width: 42em; margin: 64px auto 0; padding-top: 44px; border-top: 1px solid var(--line); color: var(--ink-2); }
.contact-sub p { font-size: 16px; }
.contact-sub .text-link { margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; border-top: 1px solid var(--line-2); text-align: left; }
.steps li { padding: 28px clamp(16px, 2vw, 28px) 4px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps b { display: block; margin-top: 12px; font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .08em; }
.steps p { margin-top: 8px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }

/* ── 文章のページ（プライバシーポリシー） ─────────────────── */
.prose { font-size: 16px; line-height: 2.05; }
.prose h2 { margin-top: clamp(48px, 5vw, 64px); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); font-family: var(--serif); font-weight: 600; font-size: clamp(19px, .5vw + 16px, 22px); line-height: 1.6; letter-spacing: .1em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 18px; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.3em; }
.prose ul li::before { content: "・"; position: absolute; left: 0; color: var(--ink-3); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: "(" counter(n) ")"; position: absolute; left: -.2em; font-size: 14px; color: var(--ink-3); }
.prose ol li { padding-left: 2.2em; }
.draft {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: clamp(40px, 5vw, 56px); padding: 18px 22px;
  border: 1px solid rgba(132, 90, 50, .4); background: rgba(132, 90, 50, .05); font-size: 14.5px; line-height: 1.9; color: var(--ink-2);
}
.draft b { flex: none; color: var(--bronze); font-weight: 700; letter-spacing: .1em; }
.prose-foot { margin-top: clamp(48px, 5vw, 64px); text-align: right; font-size: 14px; color: var(--ink-3); }

/* 法人概要の定款・公告 */
.docs-lead { text-align: center; }
.docs-list { width: max-content; max-width: 100%; margin: 24px auto 0; }

/* ── 見つからないページ ────────────────────────────────────── */
.lost { text-align: center; }
.lost p { color: var(--ink-2); }
.lost .btns { justify-content: center; }

/* ── フッター（夜に戻る） ─────────────────────────────────── */
.foot { position: relative; isolation: isolate; overflow: hidden; padding: clamp(84px, 9vw, 124px) 0 36px; background: var(--night); color: var(--ivory); text-align: center; }
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(160, 172, 210, 0), rgba(176, 184, 220, .4) 24%, rgba(255, 236, 212, .9) 50%, rgba(176, 184, 220, .4) 76%, rgba(160, 172, 210, 0));
  box-shadow: 0 0 10px rgba(255, 226, 190, .25);
}
.foot::after {
  content: ""; position: absolute; left: 50%; top: 0; z-index: -1; width: min(1200px, 100%); height: 150px; transform: translateX(-50%);
  background: radial-gradient(ellipse 46% 100% at 50% 0%, rgba(120, 104, 160, .22), rgba(120, 104, 160, 0) 70%);
}
.foot .stars { z-index: -2; opacity: .5; -webkit-mask-image: none; mask-image: none; }
.foot-mark {
  display: block; width: 44px; height: 44px; margin: 0 auto; background: var(--ivory);
  -webkit-mask: url(/assets/logo-white.png) center / contain no-repeat;
  mask: url(/assets/logo-white.png) center / contain no-repeat;
}
.foot-name { margin-top: 22px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.6; letter-spacing: .16em; padding-left: .16em; }
.foot-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px; max-width: 940px; margin: 44px auto 0; }
.foot-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; font-size: 14px; letter-spacing: .1em; text-decoration: none; color: rgba(243, 239, 230, .86); }
.foot-nav a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.foot-nav .arr { font-family: var(--latin); font-size: 16px; line-height: 1; }
.foot-copy { margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(243, 239, 230, .12); font-size: 12.5px; letter-spacing: .1em; color: rgba(243, 239, 230, .64); }

/* ── 幅に合わせた調整 ─────────────────────────────────────── */
@media (max-width: 960px) {
  .programs { grid-template-columns: 1fr; border-top: 0; }
  .prog { grid-row: auto; grid-template-rows: none; padding: 40px 0 44px; border-top: 1px solid var(--line-2); }
  .prog + .prog { border-left: 0; border-top: 1px solid var(--line); }
  .prog .photo { max-width: 560px; }
  .prog-text { max-width: 40em; }
  .band-art { width: 100%; opacity: .55; }
  .band-art::after { background: linear-gradient(90deg, rgba(2, 8, 18, .9), rgba(2, 8, 18, .55)); }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 28px 0 24px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cert { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .split, .split--wide-media { grid-template-columns: 1fr; }
  .split--rev > .photo, .split--rev > .split-media { order: 0; }
  .gallery, .gallery--three { grid-template-columns: 1fr; }
  .cols-2, .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .chart-lines { display: none; }
  .domains { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .domains li { display: grid; grid-template-columns: 46px 1fr; column-gap: 22px; padding: 0 0 40px; text-align: left; }
  .domains li:last-child { padding-bottom: 0; }
  .star { position: relative; left: auto; top: auto; grid-row: 1 / span 3; margin: 0; }
  .domains li::before { left: 22.5px; top: 46px; bottom: 0; background: rgba(27, 32, 48, .22); }
  .domains li:last-child::before { display: none; }
  .dn { padding: 15px 0 0; }
  .domains h3 { margin-top: 10px; }
}
@media (max-width: 600px) {
  .hero-org { font-size: 12px; letter-spacing: .22em; padding-left: .22em; gap: 12px; }
  .hero-org::before, .hero-org::after { width: 18px; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .roster .dir:nth-child(odd) { border-left: 1px solid var(--line); }
  .roster .dir:nth-child(even) { border-left: 0; }
  .roster .dir:nth-child(n+4) { border-top: 1px solid var(--line); }
  .profile, .profile tbody, .profile tr, .profile th, .profile td { display: block; width: auto; }
  .profile th { padding: 20px 0 2px; border-top: 1px solid var(--line); }
  .profile td { padding: 0 0 20px; border-top: 0; }
  .profile tr:first-child td { border-top: 0; }
  .profile tr:last-child th { border-bottom: 0; }
  .news li { grid-template-columns: auto 1fr; gap: 6px 16px; padding: 22px 0; }
  .news p { grid-column: 1 / -1; }
  .facts > div, .facts--compact > div { grid-template-columns: 1fr; gap: 2px; }
  .prog-sec-head { flex-direction: column; gap: 8px; }
  .prog-sec-head .prog-no { font-size: 44px; }
  .toc li { grid-template-columns: 3.4em 1fr; }
  .btn { width: 100%; }
  .foot-nav ul { gap: 0 22px; }
  .page-title { letter-spacing: .1em; padding-left: .1em; }
}
/* 背の低い縦長画面では、ヒーローの余白を詰める */
@media (max-width: 600px) and (max-height: 720px) {
  .sky { padding-top: calc(var(--head-h) + 8px); }
  .hero-title { margin-top: 10px; }
  .hero-lead { margin-top: 12px; line-height: 1.8; }
  .emblem-slot { margin-top: calc(var(--emb) * .3 + 10px); }
}
@media (max-height: 640px) and (orientation: landscape) {
  :root { --emb: clamp(54px, 13svh, 84px); }
  .hero-lead { font-size: 16px; line-height: 1.85; }
}
@media (prefers-reduced-motion: reduce) {
  html.motion { scroll-behavior: auto; }
}
