/* =========================================================
   NOJI — 共通テーマファイル  noji-base.css
   各 HTML ファイルの </style> タグの直後に読み込む。
   インラインスタイルより後に来るため、変数を正しく上書きする。
   ========================================================= */

/* ── Premium Japanese font: Shippori Mincho B1 ── */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@400;500;600&display=swap');

/* ─────────────────────────────────────────────────────────
   カラー変数の更新（視認性を大幅に改善）
   ───────────────────────────────────────────────────────── */
:root {
  /* 本文テキスト: 0.40 → 0.72（コントラスト向上） */
  --t2: rgba(224, 221, 217, 0.72);
  /* ラベル・補足: 0.18 → 0.40（判読性確保） */
  --t3: rgba(224, 221, 217, 0.40);
  /* 極細ライン: 0.08 → 0.13 */
  --t4: rgba(224, 221, 217, 0.13);
  /* BeArise アクセント: 0.44 → 0.68 */
  --ba-t: rgba(200, 220, 204, 0.68);
  /* おいのりさま アクセント: 0.40 → 0.68 */
  --oi-t: rgba(218, 202, 155, 0.68);
  /* 明朝体フォント変数 */
  --fs: 'Shippori Mincho B1', 'Noto Serif JP', Georgia, serif;
}

/* ─────────────────────────────────────────────────────────
   本文・説明文 → 高品質明朝体に変更
   UI要素（ロゴ・ナビ・ラベル）はそのまま Zen Kaku Gothic New
   ───────────────────────────────────────────────────────── */

/* TOP ページ: Artist Statement 本文 */
.statement-body {
  font-family: var(--fs);
  font-weight: 400;
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0.06em;
  line-height: 2.1;
}

/* BeArise / おいのりさま: ストーリー本文 */
.story {
  font-family: var(--fs);
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 16px);
  letter-spacing: 0.06em;
  line-height: 2.2;
  white-space: pre-line;
}

.story-jp {
  font-family: var(--fs);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 2.2;
}

.story-en {
  font-family: var(--fs);
  font-weight: 400;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.04em;
  line-height: 2.0;
}

/* About: ステートメント・プロフィール本文 */
.statement-text {
  font-family: var(--fs);
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 16px);
  letter-spacing: 0.05em;
  line-height: 2.2;
}

.bio-text {
  font-family: var(--fs);
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.05em;
  line-height: 2.3;
}

/* Education: 理念文・情報テキスト */
.philosophy {
  font-family: var(--fs);
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.05em;
  line-height: 2.2;
}

.info-content {
  font-family: var(--fs);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 2.0;
}

/* 展示歴: タイトル */
.history-title {
  font-family: var(--fs);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

/* CTA テキスト（フォームへのリード） */
.cta-text {
  font-family: var(--fs);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

/* Contact: リードコピー */
.ci-lead {
  font-family: var(--fs);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.9;
}

/* ─────────────────────────────────────────────────────────
   デスクトップ常時表示ナビ（幅900px以上のみ）
   ───────────────────────────────────────────────────────── */
.desk-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.desk-nav a {
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 3px;
  color: var(--t2);
  text-decoration: none;
  transition: color .2s, letter-spacing .25s;
}
.desk-nav a:hover,
.desk-nav a.active {
  color: var(--t1);
}
@media (max-width: 899px) {
  .desk-nav { display: none; }
}

/* ─────────────────────────────────────────────────────────
   ハンバーガーメニュー グループラベル
   ───────────────────────────────────────────────────────── */
.hb-group-label {
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 4px;
  color: var(--t3);
  text-transform: uppercase;
  margin-top: 28px;
  padding: 0;
  line-height: 1;
}
.hb-group-label:first-child {
  margin-top: 0;
}
/* グループ先頭アイテムに border-top */
.hb-group-label + .hb-item {
  border-top: 0.5px solid var(--line);
}

/* ─────────────────────────────────────────────────────────
   ライトボックス（BeArise・おいのりさま共通）
   ───────────────────────────────────────────────────────── */
.noji-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 22, 0.97);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.noji-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.noji-lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}
.noji-lb-close {
  position: fixed;
  top: 28px;
  right: 36px;
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 3px;
  color: var(--t2);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--f);
  transition: color 0.2s;
}
.noji-lb-close:hover { color: var(--t1); }
.noji-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--t2);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--f);
  transition: color 0.2s;
  padding: 20px;
}
.noji-lb-nav:hover { color: var(--t1); }
.noji-lb-prev { left: 16px; }
.noji-lb-next { right: 16px; }

/* ライトボックス内「この作品を問い合わせる」CTA（全ギャラリー共通） */
.noji-lb-inquire, .lb-inquire {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 520;
  font-family: var(--f);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 2px;
  color: var(--t1);
  border: 0.5px solid var(--ba-t);
  padding: 12px 26px;
  background: rgba(18, 19, 22, 0.55);
  backdrop-filter: blur(6px);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.noji-lb-inquire:hover, .lb-inquire:hover {
  background: var(--ba-t);
  color: #18191c;
  border-color: var(--ba-t);
}

/* ライトボックス内 作品情報キャプション（works-meta.js が制御） */
.lb-caption {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 519;
  text-align: center;
  max-width: 92vw;
  display: none;
  font-family: var(--f);
  pointer-events: none;
  background: rgba(5, 5, 7, 0.78);
  padding: 12px 22px 10px;
}
.lb-caption .lbc-title {
  display: block;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--t1);
  margin-bottom: 6px;
}
.lb-caption .lbc-sub {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--t2);
  margin: -2px 0 6px;
}
.lb-caption .lbc-sub-en, .lb-caption .lbc-meta-en {
  font-style: italic;
  letter-spacing: 0.5px;
  opacity: 0.85;
}
.lb-caption .lbc-meta {
  display: block;
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 1px;
  color: var(--t2);
  margin-bottom: 5px;
}
.lb-caption .lbc-status {
  display: block;
  font-size: 9px;
  font-weight: 200;
  letter-spacing: 2px;
}
.lb-caption .lbc-en {
  font-style: italic;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--t2);
  margin-left: 10px;
}
.lb-caption .lbc-credit {
  display: block;
  font-size: 9px;
  font-weight: 200;
  letter-spacing: 1px;
  color: var(--t2);
  margin-top: 5px;
}

/* =========================================================
   ハンバーガーメニュー再設計（2026 リニューアル）
   ・中央寄せ→上揃え＋スクロール可能にして「見切れ・文字被り」を解消
   ・全ページ共通（このCSSはインライン<style>より後に読まれるので上書きされる）
   ========================================================= */
.hb-overlay {
  justify-content: flex-start;          /* 縦中央→上揃え */
  align-items: stretch;
  padding: 92px 7vw 44px;               /* ヘッダー下から開始 */
  overflow-y: auto;                     /* はみ出したらメニュー内でスクロール（被り解消の要） */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;         /* スクロールが背景へ伝播しないように */
}
/* メニューを開いている間は背景ページのスクロールを固定（:has対応ブラウザ） */
html:has(.hb-overlay.open),
body:has(.hb-overlay.open) {
  overflow: hidden !important;
}
.hb-nav {
  flex: 0 0 auto;                       /* 引き伸ばさない */
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  max-width: 520px;
  margin: 0;                            /* 中央→左揃え（洗練・エディトリアル） */
}
.hb-item {
  font-size: clamp(19px, 2.4vw, 27px);  /* 少し抑えて収まりやすく */
  letter-spacing: 4px;
  padding: 12px 0;
  line-height: 1.2;
}
.hb-item:hover,
.hb-item.active { letter-spacing: 7px; }
.hb-group-label { margin-top: 24px; }
.hb-group-label:first-child { margin-top: 0; }
.sb-foot-links{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:8px;}
.sb-foot-links a{font-size:9px;font-weight:200;letter-spacing:2px;color:var(--t3);transition:color .2s;}
.sb-foot-links a:hover{color:var(--t1);}
.hb-footer {
  width: 100%;
  max-width: 520px;
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 0.5px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 768px) {
  .hb-overlay { padding: 84px 24px 40px; }
  .hb-item { font-size: clamp(18px, 6vw, 24px); padding: 11px 0; }
}
@media (max-height: 720px) {
  /* 背の低い画面（ノートPC等）では一段とコンパクトに */
  .hb-item { font-size: clamp(16px, 2vw, 21px); padding: 8px 0; }
  .hb-group-label { margin-top: 16px; }
  .hb-footer { margin-top: 28px; }
}

/* =========================================================
   デスクトップ上部ナビを廃止 → ハンバーガーに一本化（シンプル化）
   ========================================================= */
.desk-nav { display: none !important; }

/* =========================================================
   2026 ナビ統一（全ページ）：Eliasson式 右ドロワー
   ＋セリフ・ワードマーク ＋「Menu」テキスト
   インライン<style>より後に読まれるので全ページに適用される。
   ========================================================= */

/* スクロール時のカクつき対策：固定ヘッダーの blur を撤去（背景は少し濃いめの単色に） */
.noji-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* セリフ・ワードマーク（NOJI を残す＝常時左上） */
.noji-header .sb-logo {
  font-family: var(--fs) !important;
  font-weight: 500 !important;
  letter-spacing: 6px !important;
  font-size: 18px !important;
}

/* ハンバーガー3本線 → 「Menu」テキスト（CSSのみで全ページ変換） */
.hb-btn span { display: none !important; }
.hb-btn { flex-direction: row !important; align-items: center !important; gap: 0 !important; }
.hb-btn::before {
  content: "Menu";
  font-family: var(--f);
  font-size: 11px; font-weight: 200; letter-spacing: 4px;
  color: var(--t2); text-transform: uppercase;
  transition: color .25s, letter-spacing .25s;
}
.hb-btn:hover::before { color: var(--t1); letter-spacing: 6px; }
.hb-btn.open::before { content: "Close"; }

/* 右からスライドするドロワー（全画面オーバーレイを上書き） */
#hb-overlay {
  position: fixed !important;
  top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
  width: min(392px, 88vw) !important;
  background: rgba(20,21,24,0.98) !important;
  backdrop-filter: blur(16px);
  border-left: 0.5px solid var(--line);
  z-index: 150;
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: stretch;
  padding: 104px 38px 40px !important;
  overflow-y: auto;
  transform: translateX(101%);
  opacity: 1 !important;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
#hb-overlay.open {
  transform: translateX(0);
  pointer-events: all;
  box-shadow: 0 0 0 100vmax rgba(10,11,13,0.5);
}
/* ドロワー内ナビは左揃え・等間隔（既存 .hb-nav/.hb-item を活用） */
#hb-overlay .hb-nav { max-width: none; }
@media (max-width: 768px) {
  #hb-overlay { padding: 92px 26px 36px !important; }
}

a:focus-visible,button:focus-visible{outline:1px solid rgba(224,221,217,0.6);outline-offset:3px;}

.lb-caption .lbc-page{display:inline-block;margin-top:10px;font-size:10px;letter-spacing:2px;color:rgba(224,221,217,0.85);border-bottom:0.5px solid rgba(224,221,217,0.3);padding-bottom:2px;pointer-events:auto;}
