/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #050b16;
}

a { color: #16213a; text-decoration: none; }
a:hover { color: #333; }

img { display: block; max-width: 100%; }

ul { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.invert { filter: invert(1); }

/* ===== Page background (star field) ===== */
#page-top {
  width: 100%;
  margin: 0 auto;
  background-color: #050b16;
  background-image:
    radial-gradient(circle 1.5px at 40px 60px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 3px at 180px 120px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 1px at 320px 40px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 4px at 500px 180px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 1.5px at 80px 260px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 2px at 260px 300px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 1px at 420px 260px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 3.5px at 560px 340px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 1.5px at 140px 400px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 2px at 300px 460px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 5px at 460px 420px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 1px at 600px 480px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 1.5px at 60px 540px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 2.5px at 220px 580px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 1px at 380px 560px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 3px at 540px 600px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 1px at 20px 340px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(circle 2px at 620px 60px, rgba(255,235,190,0.9) 0%, rgba(255,90,40,0.85) 35%, rgba(200,20,10,0.4) 60%, transparent 80%),
    radial-gradient(ellipse 1400px 1000px at 50% 0%, rgba(20,55,95,0.55) 0%, rgba(6,14,28,0.15) 50%, transparent 75%);
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
  background-size: 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 100% 900px;
  background-position: top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top left, top center;
}

/* ===== Header / navigation ===== */
.site-header {
  background: #f7f7f9;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  min-height: 64px;
  gap: 16px;
}

.site-logo { flex: none; }
.site-logo img { height: 40px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  flex: none;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: contents; }

.global-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  flex: none;
}

.global-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a.is-active {
  color: #1e3a6e;
  border-bottom-color: #1e3a6e;
}
/* メニュー項目の区切り線（どこで区切れているかを分かりやすく） */
.global-nav a:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -11px;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(0,0,0,0.15);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex: none;
}

.sponsors { display: flex; align-items: center; gap: 10px; }
.sponsors__label { font-size: 15px; font-weight: 700; color: #555; white-space: nowrap; }

.sponsor-logo {
  height: 40px;
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.sponsor-logo img { height: 100%; width: auto; object-fit: contain; }

.sns-links { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.sns-links--lg { gap: 24px; justify-content: center; flex-wrap: wrap; }

.sns-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sns-links--lg .sns-icon { width: 52px; height: 52px; }

/* SNSアイコン：見た目のバランスに合わせてサイズを微調整（X・noteはやや小さく、YouTubeはやや大きく） */
.header-side .sns-icon--small { width: 26px; height: 26px; }
.header-side .sns-icon--large { width: 34px; height: 34px; }
.site-footer .sns-icon.sns-icon--small { width: 30px; height: 30px; }
.site-footer .sns-icon.sns-icon--large { width: 38px; height: 38px; }
.sns-links--lg .sns-icon--small { width: 45px; height: 45px; }
.sns-links--lg .sns-icon--large { width: 59px; height: 59px; }
.sns-icon img { width: 100%; height: 100%; object-fit: contain; }
.sns-icon--rounded img { border-radius: 8px; }
.sns-links--lg .sns-icon--rounded img { border-radius: 13px; }

/* ===== Shared layout helpers ===== */
.content-narrow { max-width: 900px; margin: 0 auto 40px; padding: 0 40px; }
.content-medium { max-width: 800px; margin: 0 auto; padding: 0 40px; }

.section {
  padding: 56px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.section--top { padding: 0 0 48px; text-align: center; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  font-size: 29px;
  font-weight: 700;
  color: #e8c874;
  background: linear-gradient(135deg, #f9e6a8 0%, #d4af6a 55%, #b8894a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  text-shadow: 0 1px 12px rgba(202,161,77,0.3);
}
.section-title img { width: 56px; height: 56px; }
.section-title__icon--lg { width: 76px; height: 76px; }
.section-title--plain { display: block; text-align: center; }
.section-title--tight { margin-bottom: 12px; }

.section-lead {
  font-size: 16px;
  color: #cfd8e8;
  text-align: center;
  margin-bottom: 32px;
}

.sub-heading {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #d9be7c;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid #8f6d34;
  text-shadow: none;
}

.back-to-top { text-align: center; margin-top: 28px; }
.back-to-top a { font-size: 15px; color: #b9c4d9; text-decoration: underline; }

.note-text { text-align: center; margin-top: 16px; font-size: 15px; color: #b9c4d9; }

/* ===== Buttons / links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}
.btn--dark { background: #333; color: #fff; padding: 8px 20px; font-size: 13px; }
.btn--muted { background: #aaa; color: #fff; }
.btn--sm { padding: 6px 20px; font-size: 13px; }
.btn__icon { width: 14px; height: 14px; filter: invert(1); }

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: #1e3a6e;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.link-button:hover { background: #16294f; }
.link-button img { filter: invert(1); }

/* ===== Hero / video ===== */
.hero { width: 100%; overflow: hidden; margin-bottom: 40px; }
.hero img { width: 100%; height: auto; display: block; }

.hero-sponsors {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  margin: -20px 0 32px;
  padding: 0 16px;
  white-space: nowrap;
  overflow-x: auto;
}

.video-embed { width: 100%; aspect-ratio: 16/9; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-embed__placeholder {
  width: 100%;
  height: 100%;
  background: #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 17px;
  text-align: center;
}
.video-embed--muted .video-embed__placeholder { background: #aaa; }

.play-triangle {
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* ===== Panels (white content cards) ===== */
.panel {
  background: #f7f7f9;
  border: 1px solid #e2e2e2;
  padding: 20px 24px;
  margin: 32px auto;
  max-width: 900px;
  text-align: left;
}
.panel--bordered { border: 1px solid #e2e2e2; }
.panel--center { text-align: center; padding: 32px; }
.panel--link {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 16px 24px;
  margin: 24px auto;
}
.panel__link-cta {
  display: inline-flex;
  flex-direction: column;
  background: #1e3a6e;
  padding: 10px 22px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.panel--link:hover .panel__link-cta { background: #16294f; }
.panel--link .panel__title { color: #fff; }
.panel--link .panel__subtitle { color: #c7d3ec; }
.panel--sns-follow { text-align: center; padding: 24px; }
.panel--sns-follow p { font-size: 16px; color: #1c2b4a; line-height: 1.8; margin-bottom: 16px; }

.panel__heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel__icon { width: 36px; height: 36px; }
.panel__icon--lg { width: 52px; height: 52px; }
.panel__title { display: block; font-size: 16px; font-weight: 700; color: #333; }
.panel__subtitle { display: block; font-size: 15px; color: #999; margin-top: 4px; }
.panel__title-lg { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 12px; }
.panel__emphasis { font-size: 16px; color: #16213a; line-height: 1.8; }

.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  color: #16213a;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.news-list li:last-child { border-bottom: none; padding-bottom: 0; }
.news-list__date { color: #999; }

/* ===== Text panels (long-form copy) ===== */
.text-panel { background: #f7f7f9; padding: 20px; font-size: 16px; color: #1c2b4a; line-height: 2; }
.text-panel--bordered { padding: 24px; border: 1px solid #e2e2e2; }
.text-panel p { margin-bottom: 1.2em; }
.text-panel p:last-of-type { margin-bottom: 0; }
.text-panel__sub-heading {
  display: inline-block;
  font-weight: 700;
  font-size: 18px;
  margin: 8px 0;
  color: #1e3a6e;
  padding-bottom: 3px;
  border-bottom: 2px solid #a8bde0;
}
.text-panel__link { margin-top: 16px; }
.text-panel__link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: #1e3a6e;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.text-panel__link a:hover { background: #16294f; }
.text-panel__link img { width: 16px; height: 16px; filter: invert(1); }

.text-panel--with-photo { display: flow-root; }
.text-panel__photo {
  width: 160px;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #ccc;
  float: left;
  margin: 0 20px 12px 0;
}

.lead {
  font-size: 25px;
  font-weight: 700;
  color: #e8c874;
  margin-bottom: 20px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(184,137,74,0.3);
}

/* ===== Cast grid ===== */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.cast-credit {
  margin-top: 20px;
  margin-bottom: 32px;
  background: #16213a;
  padding: 14px 20px;
}
.cast-credit__trigger {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.cast-credit__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #9fb0cc;
  margin-bottom: 4px;
}
.cast-credit__line { font-size: 16px; font-weight: 700; color: #e3cd94; }
.cast-card__trigger {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}
.cast-card__photo {
  width: 220px;
  min-width: 220px;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #ddd;
}
.cast-card__text { display: block; }
.cast-card__role { display: block; font-size: 15px; color: #b9c4d9; }
.cast-card__name { display: block; font-size: 21px; font-weight: 700; color: #e3cd94; margin-top: 4px; }

.staff-heading {
  display: inline-block;
  font-size: 21px;
  font-weight: 700;
  color: #d9be7c;
  margin-bottom: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid #8f6d34;
}

.staff-block { display: flow-root; margin-top: 32px; }
.staff-block:first-of-type { margin-top: 0; }
.staff-block__photo {
  width: 140px;
  height: 180px;
  object-fit: cover;
  background: #ccc;
  float: left;
  margin: 0 24px 12px 0;
}
.staff-block__name { font-size: 20px; font-weight: 700; color: #e3cd94; }
.staff-block__bio { font-size: 15px; color: #cfd8e8; line-height: 1.8; margin-top: 8px; }
.staff-block__bio p { margin-bottom: 1em; }
.staff-block__bio p:last-child { margin-bottom: 0; }
.staff-block__bio a { color: #cfd8e8; text-decoration: underline; }
.staff-block__bio-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #86a3d1; margin-top: 16px !important; margin-bottom: 4px !important; }

/* ===== Supporters ===== */
.supporters-scroll {
  overflow-x: auto;
  display: flex;
  gap: 24px;
  padding: 0 8px 16px;
}
.supporter-card { width: 180px; min-width: 180px; text-align: center; }
.supporter-card__photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #ccc;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.supporter-card__name { font-size: 16px; font-weight: 700; color: #333; }
.supporter-card__role { font-size: 13px; color: #999; margin: 4px 0 8px; }
.supporter-card__comment { font-size: 13px; color: #1c2b4a; line-height: 1.6; }

/* ===== Movie ===== */
.movie-block { margin-bottom: 32px; }
.movie-block__heading { font-size: 16px; font-weight: 700; color: #cfd8e8; margin-bottom: 12px; }

.making-scroll { overflow-x: auto; display: flex; gap: 12px; padding-bottom: 8px; }
.making-card {
  width: 300px;
  min-width: 300px;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.making-card iframe { width: 100%; height: 100%; border: 0; display: block; }

.youtube-cta {
  max-width: 480px;
  margin: 0 auto;
  background: #f7f7f9;
  border: 1px solid #e2e2e2;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.youtube-cta__title { font-size: 16px; font-weight: 700; color: #333; }

/* ===== Production note ===== */
.note-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.note-card { width: 220px; background: #f7f7f9; border: 1px solid #e2e2e2; transition: box-shadow 0.2s ease; }
.note-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.note-card__link { display: block; color: inherit; text-decoration: none; }
.note-card__thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #d5d5d5; }
.note-card__body { padding: 12px; }
.note-card__title { font-size: 15px; font-weight: 700; color: #444; margin-bottom: 4px; }
.note-card__date { font-size: 13px; color: #999; }

.note-grid--single .note-card {
  width: 100%;
  max-width: 480px;
}
.note-grid--single .note-card__link {
  display: flex;
  align-items: stretch;
}
.note-grid--single .note-card__thumb { width: 200px; min-width: 200px; height: auto; }
.note-grid--single .note-card__body { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.note-grid--single .note-card__title { font-size: 17px; }

.note-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Join ===== */
.join-intro { text-align: center; }
.join-intro__lead { font-size: 15px; color: #cfd8e8; margin-bottom: 12px; }
.join-intro__note { font-size: 13px; color: #9fb0cc; line-height: 1.8; }

.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.position-card { background: #f7f7f9; border: 1px solid #e2e2e2; padding: 20px; text-align: left; }
.position-card__link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.position-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.position-card__head img { width: 60px; height: 60px; min-width: 60px; }
.position-card__head img.circle-icon { border-radius: 50%; }
.position-card__head p { font-size: 14px; font-weight: 700; color: #333; }
.position-card__desc { font-size: 13px; color: #555; line-height: 1.6; }

/* ===== Comment ===== */
.comment-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f7f7f9;
  border: 1px solid #e2e2e2;
  padding: 24px;
}
.comment-card + .comment-card { margin-top: 24px; }
.comment-card__photo {
  width: 140px;
  height: 140px;
  min-width: 140px;
  object-fit: cover;
  background: #ccc;
  border-radius: 50%;
}
.comment-card__name { font-size: 18px; font-weight: 700; color: #333; }
.comment-card__role { font-size: 13px; color: #999; margin: 4px 0 8px; }
.comment-card__text { font-size: 15px; color: #1c2b4a; line-height: 1.8; }
.comment-card__profile-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #4a6fa5; margin-top: 16px; margin-bottom: 4px; }
.comment-card__profile { font-size: 13px; color: #666; line-height: 1.8; }

/* ===== Media ===== */
.media-list {
  background: #f7f7f9;
  border: 1px solid #e2e2e2;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.media-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  color: #16213a;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.media-list li:last-child { border-bottom: none; padding-bottom: 0; }
.media-list__date { color: #999; }
.media-list__item--more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ===== Footer ===== */
.site-footer { background: #333; padding: 40px; text-align: center; }
.site-footer__brand { font-size: 16px; color: #999; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer .sns-links { justify-content: center; margin-bottom: 16px; }
.site-footer .sns-icon { width: 34px; height: 34px; }
.footer-nav { display: flex; gap: 18px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: #ccc; }
.site-footer__copyright { font-size: 12px; color: #999; }

.disclaimer {
  font-size: 13px;
  color: #fff;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 40px;
  text-align: center;
}

/* ===== Modals ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal:not([hidden]) { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.modal__box {
  position: relative;
  background: #f7f7f9;
  max-width: 480px;
  width: 100%;
  padding: 32px;
}
.modal__box--scroll { max-width: 680px; max-height: 80vh; overflow-y: auto; text-align: left; }
.modal__box--cast { max-width: 640px; max-height: 80vh; overflow-y: auto; text-align: left; }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  color: #999;
}
.modal__cast-body { display: flow-root; }
.modal__cast-photo { width: 220px; aspect-ratio: 3/4; object-fit: cover; background: #ddd; float: left; margin: 0 20px 12px 0; }
.modal__cast-photo[hidden] { display: none; }
.modal__cast-name { font-size: 22px; font-weight: 700; color: #1e3a6e; }
.modal__cast-role { font-size: 15px; color: #999; margin-top: 4px; margin-bottom: 16px; }
.modal__cast-bio { font-size: 15px; color: #1c2b4a; line-height: 1.8; }
.modal__cast-bio p { margin-bottom: 1em; }
.modal__cast-bio p:last-child { margin-bottom: 0; }
.modal__cast-bio-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #4a6fa5; margin-top: 20px; margin-bottom: 4px !important; }
.modal__title { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 16px; }
.modal__title--icon { display: flex; align-items: center; gap: 12px; }
.modal__title-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; }
.modal__history-text { font-size: 15px; color: #1c2b4a; line-height: 1.9; white-space: pre-wrap; }

.modal__sponsor-text { font-size: 15px; color: #1c2b4a; line-height: 1.8; }
.modal__sponsor-text p { margin-bottom: 1em; }
.modal__sponsor-text p:last-child { margin-bottom: 0; }
.modal__sponsor-contact { font-size: 14px; color: #555; }
.modal__sponsor-contact a { color: #1e3a6e; text-decoration: underline; }

/* ===== Media page ===== */
.media-hero { text-align: center; padding: 56px 0 0; }
.media-hero__title { font-size: 44px; margin-bottom: 24px; }
.media-hero .section-lead { margin-bottom: 0; }
#media-web { padding-top: 24px; }

.media-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.media-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 26px;
  border: 1px solid #8f6d34;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d9be7c;
  text-decoration: none;
  background: rgba(202,161,77,0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
a.media-category-badge:hover {
  background: rgba(202,161,77,0.2);
  box-shadow: 0 0 16px rgba(202,161,77,0.35);
  transform: translateY(-2px);
}
.media-category-badge--soon {
  color: #777;
  border-color: #3a3a3a;
  background: rgba(255,255,255,0.03);
  cursor: default;
}

.media-section-title { margin-bottom: 32px; }

.media-block__title { font-size: 16px; color: #cfd8e8; line-height: 1.6; margin-bottom: 16px; }

.media-press-list { display: flex; flex-direction: column; }
.media-press-list li a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #cfd8e8;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.media-press-list li a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.media-press-list li:last-child a { border-bottom: none; }
.media-press-list__tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 4px 14px;
  border: 1px solid #8f6d34;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d9be7c;
  background: rgba(202,161,77,0.08);
}
.media-press-list__date { font-size: 16px; color: #8093b3; flex: none; white-space: nowrap; }
.media-press-list__title { font-size: 16px; line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .content-narrow, .content-medium { padding: 0 20px; }
  .section { padding: 44px 20px; }
  .cast-grid { grid-template-columns: 1fr; }
  .position-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hamburger navigation */
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e2e2;
  }
  .site-nav.is-open { display: flex; }
  .global-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav a { padding: 12px 4px; border-bottom: 1px solid #eee; transition: background 0.15s ease, color 0.15s ease; }
  .global-nav a::after { display: none; }
  .global-nav a:hover,
  .global-nav a:active,
  .global-nav a.is-active { background: rgba(30,58,110,0.06); color: #1e3a6e; }
  .header-side {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    gap: 14px;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .section { padding: 36px 16px; }
  .section-title { font-size: 23px; gap: 12px; }
  .section-title img { width: 44px; height: 44px; }
  .lead { font-size: 21px; }

  .media-hero__title { font-size: 30px; }
  .media-category-badge { padding: 8px 16px; font-size: 13px; }
  .media-press-list li a { flex-direction: column; gap: 4px; padding: 14px 4px; }

  /* メインビジュアル：横長すぎて文字が小さく見えるので、左右をトリミングして文字を大きく見せる */
  .hero { aspect-ratio: 16/9; }
  .hero img { width: 100%; height: 100%; object-fit: cover; }

  /* 後援表記：1行で収まるようフォントを詰める */
  .hero-sponsors { font-size: 1.78vw; }

  /* SNSアイコンが4つ1列に収まるよう、モバイルではサイズと間隔を詰める */
  .sns-links--lg { gap: 14px; }
  .sns-links--lg .sns-icon { width: 44px; height: 44px; }
  .sns-links--lg .sns-icon--small { width: 38px; height: 38px; }
  .sns-links--lg .sns-icon--large { width: 50px; height: 50px; }

  .cast-card__photo { width: 140px; min-width: 140px; }
  .position-grid { grid-template-columns: 1fr; }
  .text-panel--with-photo .text-panel__photo { float: none; width: 100%; max-width: 220px; margin: 0 0 16px; }
  .staff-block__photo { float: none; width: 140px; margin: 0 0 16px; }

  /* 長文パネルは枠を外して、その分テキストの横幅を稼ぐ（短い引用系の --bordered は枠を維持） */
  .text-panel:not(.text-panel--bordered) {
    background: none;
    padding: 0;
    color: #cfd8e8;
  }
  .text-panel:not(.text-panel--bordered) .text-panel__sub-heading {
    color: #d9be7c;
    border-bottom-color: #8f6d34;
  }
  .text-panel:not(.text-panel--bordered) a { color: #93b4f5; }
  .text-panel:not(.text-panel--bordered) .text-panel__link a { color: #fff; }

  .comment-card { flex-direction: column; align-items: center; }
  .comment-card__body { width: 100%; text-align: left; }

  .note-grid--single .note-card__link { flex-direction: column; }
  .note-grid--single .note-card__thumb { width: 100%; min-width: 0; }

  .modal { padding: 16px; }
  .modal__box { padding: 24px; }
  .modal__cast-photo { float: none; width: 100%; max-width: 200px; margin: 0 auto 16px; }
}
