/* ==========================================================================
   映蔵庫 eizoko — サイト共通スタイル（Bootstrap 5.3 の上に重ねる）
   色はすべて背景 --bg / --bg-2 に対して WCAG AA（テキスト4.5:1、UI部品3:1）を満たす
   ========================================================================== */
:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --surface: #1c1c1f;
  --line: #2f2f34;          /* 装飾の区切り線 */
  --line-ui: #74747c;       /* ボタン枠など UI 部品（3:1 以上） */
  --text: #f4f4f5;          /* 18.1:1 */
  --muted: #a6a6ae;         /* 8.3:1 */
  --accent: #e4b363;        /* 10.4:1 */

  --ff-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --ff-mincho: "Shuei Mincho L", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-section: clamp(80px, 12vw, 160px);

  --header-h: 72px;

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--ff-body);
  --bs-link-color-rgb: 244, 244, 245;
  --bs-link-hover-color-rgb: 228, 179, 99;
}

html { scroll-padding-top: calc(var(--header-h) + var(--sp-2)); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) {
  body { font-size: 1rem; }
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 var(--sp-2); }
a { color: var(--text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.skip-link {
  position: absolute; left: var(--sp-2); top: -100px; z-index: 2000;
  background: var(--text); color: var(--bg); padding: var(--sp-1) var(--sp-2);
}
.skip-link:focus { top: var(--sp-2); color: var(--bg); }

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-overlay {
  position: fixed; left: 0; right: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header.is-overlay.is-solid {
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.site-header .navbar-brand { padding: var(--sp-1) 0; display: inline-flex; }
.site-header .nav-link {
  color: var(--text);
  font-family: var(--ff-mincho);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  min-height: 44px;
  display: flex; align-items: center;
  padding: var(--sp-1) var(--sp-2) !important;
  position: relative;
}
.site-header .nav-link:hover { color: var(--accent); }
.site-header .nav-link.active { color: var(--text); }
.site-header .nav-link.active::after {
  content: ""; position: absolute; left: var(--sp-2); right: var(--sp-2); bottom: 6px;
  height: 2px; background: var(--accent);
}
.navbar-toggler {
  border: 1px solid var(--line-ui); border-radius: 8px;
  width: 48px; height: 44px; padding: 0;
}
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 767.98px) {
  .site-header .navbar-collapse { padding-bottom: var(--sp-2); }
  .site-header .nav-link { font-size: 1.375rem; border-top: 1px solid var(--line); }
  .site-header .nav-link.active::after { left: 0; right: auto; top: 50%; bottom: auto; width: 4px; height: 24px; transform: translate(-12px, -50%); }
  .site-header.is-overlay.is-open { background: rgba(11, 11, 12, 0.97); }
}

/* --------------------------------------------------------------------------
   ヒーロー（トップ）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #000 center / cover no-repeat;
  display: flex; align-items: flex-end;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(11,11,12,0.85) 85%, var(--bg) 100%),
    rgba(0, 0, 0, 0.25);
}
.hero-inner { position: relative; padding-bottom: calc(var(--sp-5) + 72px); }
.hero-title { margin: 0; font-family: var(--ff-mincho); font-weight: 400; line-height: 1; }
.hero-ja {
  display: block;
  font-size: clamp(2.25rem, 8.5vw, 6.5rem);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero-en {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: var(--sp-2);
  letter-spacing: 0.02em;
}
.hero-toggle {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3); z-index: 2;
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: 44px; padding: 0 var(--sp-2);
  background: rgba(11, 11, 12, 0.7); color: var(--text);
  border: 1px solid var(--line-ui); border-radius: 999px;
  font-size: 0.875rem; line-height: 1;
}
.hero-toggle:hover { border-color: var(--text); }
.hero-toggle-icon { width: 12px; height: 12px; display: inline-block; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero-toggle[aria-pressed="true"] .hero-toggle-icon { border: 0; border-left: 12px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; width: 0; height: 0; }
.hero-news {
  position: absolute; left: 0; bottom: var(--sp-3); z-index: 2;
  max-width: calc(100% - 200px);
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-1) var(--sp-3) var(--sp-1) max(var(--sp-3), calc((100vw - 1320px) / 2 + 12px));
  background: var(--text); color: var(--bg);
  text-decoration: none; line-height: 1.5;
}
.hero-news:hover { background: var(--accent); color: var(--bg); }
.hero-news-label { font-family: var(--ff-mincho); font-weight: 700; flex: none; }
.hero-news-text { font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) {
  .hero-inner { padding-bottom: 160px; }
  .hero-news { max-width: 100%; right: 0; bottom: 72px; padding-left: var(--sp-2); }
  .hero-news-text { white-space: normal; }
  .hero-toggle { right: var(--sp-2); bottom: var(--sp-2); }
}

/* --------------------------------------------------------------------------
   セクション共通
   -------------------------------------------------------------------------- */
.section { padding: var(--sp-section) 0; }
.section-alt { background: var(--bg-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.section-title {
  margin: 0;
  font-family: var(--ff-mincho); font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 1.1; letter-spacing: 0;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: 44px;
  color: var(--text);
}
.link-arrow::after { content: "→"; text-decoration: none; display: inline-block; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.is-back::after { content: none; }
.link-arrow.is-back::before { content: "←"; }
.ext::after { content: "↗"; margin-left: 0.25em; font-size: 0.9em; }

.embed { background: #000; }
.embed iframe { border: 0; }

/* --------------------------------------------------------------------------
   Pick Up
   -------------------------------------------------------------------------- */
.feature { max-width: 800px; margin: 0 auto var(--sp-5); }
.feature-link { display: block; text-decoration: none; color: var(--text); }
.feature-text { margin-bottom: var(--sp-3); }
.feature-date { color: var(--accent); font-family: var(--ff-mincho); font-size: 1.25rem; margin-bottom: var(--sp-1); }
.feature-title {
  font-family: var(--ff-mincho); font-weight: 700;
  font-size: clamp(1.375rem, 3.4vw, 2.25rem);
  line-height: 1.5; letter-spacing: 0;
  margin: 0 0 var(--sp-2);
}
.feature-more { margin: 0; text-decoration: underline; text-underline-offset: 0.2em; }
.feature-img { display: block; width: 100%; transition: opacity 0.3s; }
.feature-link:hover .feature-more { color: var(--accent); }
.feature-link:hover .feature-img { opacity: 0.85; }

.card-dark {
  display: block; height: 100%;
  background: var(--surface);
  padding: var(--sp-2);
  text-decoration: none; color: var(--text);
}
.card-dark img { display: block; width: 100%; }
.card-caption { margin: var(--sp-2) 0 0; text-decoration: underline; text-underline-offset: 0.2em; }
.card-link:hover .card-caption { color: var(--accent); }

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { border-bottom: 1px solid var(--line); margin: 0; }
.news-item a {
  display: grid; gap: var(--sp-1) var(--sp-4);
  grid-template-columns: 1fr;
  padding: var(--sp-3) 0;
  text-decoration: none; color: var(--text);
}
.news-meta { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); color: var(--muted); font-size: 0.9375rem; }
.news-date { color: var(--accent); font-family: var(--ff-mincho); font-size: 1.0625rem; }
.news-text { margin: 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color 0.2s; }
.news-item a:hover .news-text { text-decoration-color: currentColor; color: var(--text); }
.news-img { width: 100%; max-width: 360px; }
@media (min-width: 768px) {
  .news-item a { grid-template-columns: 200px 1fr; align-items: start; padding: var(--sp-4) 0; }
  .news-meta { flex-direction: column; }
  .news-item.has-img a { grid-template-columns: 200px 1fr 240px; }
}
.sns { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); }
.sns-label { font-family: var(--ff-mincho); color: var(--muted); font-size: 1.125rem; }
.sns-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: 0; }
.sns-list li { margin: 0; }
.btn-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3);
  border: 1px solid var(--line-ui); border-radius: 999px;
  color: var(--text); text-decoration: none; line-height: 1;
}
.btn-pill:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Works（共通）
   -------------------------------------------------------------------------- */
.work-meta { display: block; color: var(--accent); font-size: 0.9375rem; margin: 0 0 var(--sp-1); letter-spacing: 0.02em; }
.work-title {
  font-family: var(--ff-mincho); font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.4; letter-spacing: 0;
  margin: 0 0 var(--sp-3);
}
.work-text { line-height: 1.85; }
.work-text.is-en, .profile-text.is-en { color: var(--muted); line-height: 1.75; }
.laurels {
  list-style: none; margin: var(--sp-3) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.laurels li { margin: 0; flex: 0 0 calc(33.333% - 11px); max-width: 160px; }
.laurels img { display: block; width: 100%; height: auto; }

.work-feature .embed { margin-bottom: var(--sp-4); }
.work-grid {
  list-style: none; margin: var(--sp-5) 0 0; padding: 0;
  display: grid; gap: var(--sp-4) var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 576px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
.work-grid li { margin: 0; }
.work-card { display: block; text-decoration: none; color: var(--text); }
.work-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); margin-bottom: var(--sp-2); }
.work-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.3s; }
.work-card:hover .work-card-img img { transform: scale(1.04); opacity: 0.85; }
.work-card-title { display: block; font-family: var(--ff-mincho); font-weight: 700; font-size: 1.125rem; line-height: 1.5; }
.work-card:hover .work-card-title { text-decoration: underline; text-underline-offset: 0.2em; }

/* --------------------------------------------------------------------------
   下層ページ共通
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(64px, 12vw, 160px) 0 var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.page-hero.has-bg { background: var(--page-bg) center / cover no-repeat; }
.page-hero.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,0.85), rgba(11,11,12,0.35)); }
.page-hero .container-xl { position: relative; }
.page-eyebrow { color: var(--accent); font-family: var(--ff-mincho); font-size: 1.125rem; margin-bottom: var(--sp-1); }
.page-title {
  margin: 0;
  font-family: var(--ff-mincho); font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 1; letter-spacing: 0;
}
.page-title.is-ja { font-size: clamp(1.75rem, 5vw, 3.5rem); line-height: 1.4; font-weight: 700; }
.page-sub { margin: var(--sp-3) 0 0; font-family: var(--ff-mincho); font-size: clamp(1.125rem, 2.4vw, 1.5rem); line-height: 1.6; }

/* works ページ */
.work-index { margin-bottom: var(--sp-section); }
.work-index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-index li { margin: 0; border-bottom: 1px solid var(--line); }
.work-index a {
  display: grid; grid-template-columns: 48px 1fr; gap: 0 var(--sp-2); align-items: baseline;
  padding: var(--sp-2) 0; text-decoration: none; color: var(--text); min-height: 44px;
}
.work-index-num { color: var(--muted); font-family: var(--ff-mincho); }
.work-index-title { font-family: var(--ff-mincho); font-weight: 700; font-size: 1.125rem; line-height: 1.5; }
.work-index-meta { grid-column: 2; color: var(--muted); font-size: 0.9375rem; }
.work-index a:hover .work-index-title { color: var(--accent); }
@media (min-width: 768px) {
  .work-index a { grid-template-columns: 64px 1fr auto; }
  .work-index-meta { grid-column: auto; text-align: right; }
}

.work { padding-bottom: var(--sp-section); }
.work + .work { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.work-head { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-4); }
.work-head .work-title { margin: 0; font-size: clamp(1.75rem, 4.5vw, 3rem); }
.work-num {
  font-family: var(--ff-mincho); line-height: 1;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: transparent; -webkit-text-stroke: 1px var(--muted);
  flex: none;
}
.work .embed { margin-bottom: var(--sp-4); }
.work-image { display: block; width: 100%; }
.credits {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9375rem; line-height: 1.75;
}
.credits p { margin-bottom: var(--sp-1); }
.credits-spec { color: var(--text); }
.credits dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--sp-3); margin: var(--sp-2) 0; }
.credits dt { font-weight: 400; color: var(--muted); }
.credits dd { margin: 0; color: var(--text); }
.credits-award { color: var(--accent); margin-top: var(--sp-2); }

/* about */
.profile { padding-bottom: var(--sp-section); }
.profile-img { display: block; width: 100%; }
.profile-link { margin-top: var(--sp-2); }
.profile-position { color: var(--accent); font-family: var(--ff-mincho); font-size: 1.125rem; margin-bottom: var(--sp-1); }
.profile-name {
  font-family: var(--ff-mincho); font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.2; letter-spacing: 0;
  margin: 0 0 var(--sp-4);
}
.profile-name span { display: block; font-size: 0.4em; font-weight: 400; color: var(--muted); margin-top: var(--sp-1); }
.profile-text { line-height: 1.9; }

/* contact */
.contact { padding: var(--sp-5) 0 var(--sp-section); }
.contact-label { color: var(--accent); font-family: var(--ff-mincho); font-size: 1.125rem; margin-bottom: var(--sp-1); }
.contact-mail { font-family: var(--ff-mincho); font-size: clamp(1.75rem, 7vw, 4.5rem); line-height: 1.3; margin: 0; word-break: break-all; }

/* イベントページ（2025 / 20230428） */
.event { max-width: 842px; margin: 0 auto; padding-bottom: var(--sp-section); }
.event-thanks { font-family: var(--ff-mincho); font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.6; margin-bottom: var(--sp-4); }
.event-figure { margin: 0 0 var(--sp-5); }
.event-figure img, .event-block img { display: block; width: 100%; }
.event-figure figcaption { margin-top: var(--sp-2); }
.event-block { margin-bottom: var(--sp-5); }
.event-block .embed { margin-top: var(--sp-3); }
.event-back { text-align: center; }
.event-key { margin: 0 0 var(--sp-section); }
.event-key img { display: block; width: 100%; }

/* オーディション（tokyo_ad）— 旧ページの構造をそのまま受ける */
.audition { padding-bottom: var(--sp-section); }
.audition-hero img { display: block; width: 100%; }
.audition-video { margin: var(--sp-5) 0; }
.audition > .row > [class*="col-10"] { flex: 0 0 auto; }
@media (max-width: 767.98px) {
  .audition > .row > .col-1 { display: none; }
  .audition > .row > .col-10 { width: 100%; }
}
.audition p, .audition li { line-height: 1.85; }
.audition .section-heading {
  font-family: var(--ff-mincho); font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.4;
  margin: var(--sp-5) 0 var(--sp-3);
  padding-left: var(--sp-2);
  border-left: 4px solid var(--accent);
}
.audition h4 { font-family: var(--ff-mincho); font-weight: 700; font-size: 1.5rem; margin: 0 0 var(--sp-1); }
.audition h5 { font-weight: 700; font-size: 1.0625rem; margin: var(--sp-3) 0 var(--sp-1); }
.audition .info-block dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 var(--sp-3); border-top: 1px solid var(--line); }
.audition .info-block dt { font-weight: 700; color: var(--muted); padding-top: var(--sp-2); }
.audition .info-block dd { margin: 0; padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .audition .info-block dl { grid-template-columns: 200px 1fr; }
  .audition .info-block dt { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
  .audition .info-block dd { padding: var(--sp-2) 0; }
}
.audition .role-card { background: var(--surface); padding: var(--sp-3); margin-bottom: var(--sp-2); border-left: 4px solid var(--line-ui); }
.audition .role-tag {
  display: inline-block; margin-right: var(--sp-2); vertical-align: 0.3em;
  padding: 2px var(--sp-1); border: 1px solid var(--accent); color: var(--accent);
  font-size: 0.875rem; line-height: 1.5;
}
.audition .role-summary { color: var(--accent); margin-bottom: var(--sp-1); }
.audition .role-conditions { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.audition .role-conditions strong { display: block; }
.audition .checklist { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.audition .checklist li { position: relative; padding-left: var(--sp-3); margin-bottom: var(--sp-1); }
.audition .checklist li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 2px; background: var(--accent); }
.audition .apply-box { background: var(--surface); border: 1px solid var(--line-ui); padding: var(--sp-4) var(--sp-3); margin: var(--sp-4) 0; text-align: center; }
.audition .apply-box p { color: var(--muted); }
.audition .deadline { color: var(--muted); }
.audition .deadline-date { display: block; font-family: var(--ff-mincho); font-weight: 700; font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--accent); line-height: 1.3; }
.audition .email { font-family: var(--ff-mincho); font-size: clamp(1.25rem, 4vw, 1.75rem); word-break: break-all; }
.audition .policy-box { background: var(--surface); padding: var(--sp-4) var(--sp-3); }
.audition .policy-box h5:first-of-type { margin-top: var(--sp-2); }

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--sp-5) 0 var(--sp-4); background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--sp-1); margin: 0; padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-2); font-family: var(--ff-mincho); font-size: 1.125rem; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { margin: var(--sp-4) 0 0; color: var(--muted); font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   動きを減らす設定
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
