:root {
  --sidebar: min(280px, 22vw); /* 最大280px */
  --container: 980px;
  --bg: #000;
  --panel: rgba(10, 14, 20, 0.9);
  --text: #fff;
  --edge: rgba(255, 255, 255, 0.12);
}


html {
  scroll-behavior: smooth;
}
/* ======================================
   Base
====================================== */
* {
  box-sizing: border-box;
}

img {
  width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
}

@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 1024px) {
  .main,
  .hero,
  .container {
    overflow-x: clip;
  }
}
/* ======================================
   Main fixed background
====================================== */

/* fixed背景レイヤー */
.main::before {
  content: "";
  position: fixed;
  top: 0;
  left: var(--sidebar);
  right: 0;
  bottom: 0;
  background: url("../img/bg2.png") center center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* main内の中身を背景レイヤーより上に出す */
.hero,
.container,
.site_footer {
  position: relative;
  z-index: 1;
}

/* スマホ時はsidebar幅変数ではなく全幅なので背景も全幅にする */
@media (max-width: 1024px) {
  .main::before {
    left: 0;
  }
}

/* 汎用スクロールアニメーション */

.anim-fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   Layout
====================================== */
.layout {
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  position: relative;
  z-index: 1;
  background: transparent;
}

.u-pc-only {
  display: inline;
}

.u-sp-only {
  display: none;
}

@media (max-width: 768px) {

  .u-pc-only {
    display: none;
  }

  .u-sp-only {
    display: inline;
  }

}

/* ======================================
   年齢確認
====================================== */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.agegate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.agegate_inner {
  width: 100%;
  max-width: 620px;
  padding: 40px 24px;
  background: #111;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);

  opacity: 0;
  transform: translateY(24px);
  animation: agegateFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.agegate_icon{
  width: 80px;
  margin-bottom: 20px;
}
.agegate_title {
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.agegate_text {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.agegate_buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.agegate_btn {
  min-width: 180px;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.agegate_btn--enter {
  background: #fff;
  color: #000;
}

.agegate_btn--exit {
  background: #333;
  color: #fff;
}

.agegate_btn:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}


.agegate_btn--exit:hover {
  background: #444;
}

body.agegate-active {
  overflow: hidden;
  height: 100vh;
}

/* サイト本体を隠す */
.site-is-hidden {
  opacity: 0;
  visibility: hidden;
}

body.agegate-active #siteWrap,
body.opening-active #siteWrap {
  opacity: 0;
  visibility: hidden;
}

/* オープニング */
.opening {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opening.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening_video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opening_video--sp {
  display: none;
}

@keyframes agegateFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .agegate_buttons {
    flex-direction: column;
  }

  .agegate_btn {
    width: 100%;
    min-width: auto;
  }

  .opening_video--pc {
    display: none;
  }

  .opening_video--sp {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* ======================================
   Sidebar
====================================== */
.sidebar {
  background: #000;
  z-index: 20;
  position: sticky;
  top: 0;
  width: var(--sidebar);
  max-width: 280px;
  height: 100vh;
  padding: 0 48px 0 24px;
}

.logo img {
  padding: 60px 0 60px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.sidebar .nav ul {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.sidebar_nav_img {
  height: 60px;
}

/* ラインエリア */
.sidebar_lineArea {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 20px;
  height: 100%;
  pointer-events: none;
}

/* ライン本体 */
.sidebar_line {
  position: relative;
  width: 6px;
  height: 100%;
  overflow: hidden;
  background-repeat: repeat-y;
}

/* 赤ライン */
.sidebar_line--red {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 10px,
    #ff1e1e 10px 62px,
    transparent 62px 80px,
    #ff1e1e 80px 140px
  );
  background-size: 100% 140px;
  background-position: 0 0;
  animation: redFlowBg 4s linear infinite;
}

/* 青ライン */
.sidebar_line--blue {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 6px,
    #2ea7ff 6px 70px,
    transparent 70px 88px,
    #2ea7ff 88px 140px
  );
  background-size: 100% 140px;
  background-position: 0 0;
  animation: blueFlowBg 4s linear infinite;
}

@keyframes redFlowBg {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -140px;
  }
}

@keyframes blueFlowBg {
  from {
    background-position: 0 -140px;
  }
  to {
    background-position: 0 0;
  }
}

/* ======================================
   Hero
====================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--edge);
  aspect-ratio: 1 / 1;
}

.heroMain {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SP用は非表示にしておく */
.heroMain--sp{
  display:none;
}

@media screen and (max-width:768px){
  .heroMain--pc{
    display:none;
  }

  .heroMain--sp{
    display:block;
  }
}
/* ======================================
   Common Container / Section
====================================== */


.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 0 60px;
}

.section_heading img {
  height: 120px;
  margin: 60px 0;
}

/* セクション間スペース */
.intro_section {
  margin-bottom: 80px;
}

.character_section,
.movie_section,
.staff_section {
  margin-bottom: 120px;
}

@media (max-width: 768px) {
    .container {
      padding: 20px 20px 60px;
  }
}

/* ======================================
   Intro
====================================== */
.intro_section {
  text-align: center;
}

.intro-heading {
  margin-bottom: 40px;
  font-size: 52px;
  font-weight: bold;
  text-shadow: #5f5f5f 0px 0 4px, #5f5f5f 1px 0 4px, #5f5f5f 1px 0 4px, #5f5f5f 1px 0 4px;
}

.intro-heading_size__l {
  font-size: 64px;
}

.intro-heading__blue {
  color: #0061ff;
  text-shadow: #0a2247 0px 0 10px,
  #0a2247 1px 0 10px,
  #0a2247 1px 0 10px,
  #0a2247 1px 0 10px;
}

.intro-heading__red {
  color: #c40001;
  text-shadow: #460a0a 0px 0 10px,
  #460a0a 1px 0 10px,
  #460a0a 1px 0 10px,
  #460a0a 1px 0 10px;
}

.intro-text_container p {
  margin-bottom: 40px;
  line-height: 2.4;
  text-shadow: #5f5f5f 0px 0 4px, #5f5f5f 1px 0 4px, #5f5f5f 1px 0 4px, #5f5f5f 1px 0 4px;
}

/* ======================================
   Character List
====================================== */
.character_selectIcons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 96%;
  max-width: 1300px;
  margin: 0 auto;
}

.character_selectIcons li {
  list-style: none;
  overflow: hidden;
  cursor: pointer;
}

.character_selectIcons h3,
.character_card h3 {
  text-align: center;
  font-weight: bold;
}

.character_selectIcons img,
.character_card img {
  width: 180px;
  margin-bottom: 12px;
}

.character_card {
  cursor: pointer;
}

.character_card img {
  display: block;
}

.character_card:hover img {
  opacity: 0.85;
  transform: translateY(-4px);
  transition: 0.3s;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* 画像 */
.character_selectIcons li img {
  display: block;
  width: 180px;
  margin-bottom: 12px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* ホバー（中だけズーム） */
.character_selectIcons li:hover img {
  transform: scale(1.05);
}
/* ======================================
   Character Modal
====================================== */
.character_modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.character_modal.is-active {
  display: block;
}

.character_modal_bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.character_modal_box {
  position: absolute;
  top: 50%;
  left: 61%;
  width: 90%;
  height: 92vh;
  max-width: 1000px;
  padding: 40px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 30px;
  transform: translate(-50%, -50%);
}

.character_modal_close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.character_modal_inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: #000;
  height: auto;
}

.character_modal_img {
  width: 50%;
}

.character_modal_img img {
  width: 100%;
  height: 70vh;
  object-fit: contain;
}

.character_modal_text {
  width: 65%;
}

.character_modal_text h3 {
  margin: 10px 0;
  font-size: 4rem;
  font-weight: bold;
}

.character_modal_profile {
  font-weight: 600;
  width: 60%;
  line-height:1.6;
  margin-top: 40px;
}

.character_modal_name {
  font-size: 60px;
  font-weight: bold;
}

.character_modal_meta {
  padding: 20px 0;
}

.character_modal_status,
.character_modal_extra {
  flex-direction: row;
  gap: 20px;
}

.character_modal_description {
  font-size: 18px;
  line-height: 1.8;
}

/* ステータス横並び */
.character_modal_status{
  display:inline-block;
  margin-right: 16px;
}

/* 下段横並び */
.character_modal_extra{
  display:inline-block;
  margin-right:18px;
  margin-top: 6px;
}

/* 通常テキスト */
.character_modal_info_item{
  display: block;
  margin-bottom: 6px;
  line-height: 1.6;
}
.character_modal_info{
  margin-bottom: 12PX;
}

/* 名前 */
.character_modal_name_big {
  font-size: 40px;
  font-weight: 700;
  margin: 12px 0 16px;
  letter-spacing: 0.05em;
}

/* サムネイル */
.character_modal_thumbs {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
}

.character_modal_thumbs li {
  list-style: none;
}

.thumb_btn {
  display: block;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border: 2px solid transparent;
  background: none;
  transition: all 0.3s ease;
}

.thumb_btn img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  display: block;
}

.thumb_btn.is-active img {
  border-color: #000;
}

/* hover（弱め） */
.thumb_btn:hover {
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #ff2a2a, #2ea7ff) border-box;

  box-shadow:
    -4px 0 8px rgba(255, 50, 50, 0.4),
     4px 0 8px rgba(46, 167, 255, 0.4);
}

/* active（強め） */
.thumb_btn.is-active {
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #ff2a2a, #2ea7ff) border-box;

  box-shadow:
    -6px 0 12px rgba(255, 50, 50, 0.6),
     6px 0 12px rgba(46, 167, 255, 0.6);
}

/* ======================================
   Movie List / Modal
====================================== */
.movie_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 28px;
  width: 96%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.movie_item {
  list-style: none;
}

.movie_card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.movie_thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
  border: 2px solid #fff;
}

.movie_thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.movie_card:hover .movie_thumb img {
  transform: scale(1.04);
  opacity: 1;
}

.movie_playIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.movie_playIcon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fff;
}

.movie_title {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.movie_modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.movie_modal.is-active {
  display: block;
}

.movie_modal_bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.movie_modal_box {
  position: absolute;
  top: 50%;
  left: calc(280px + ((100vw - 280px) / 2));
  width: min(92%, 1000px);
  transform: translate(-50%, -50%);
}

.movie_modal_close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

.movie_modal_inner {
  background: #000;
}

.movie_modal_inner video {
  display: block;
  width: 100%;
}

/* ======================================
   Staff
====================================== */
.staff_section {
  text-align: center;
}

.staff_box {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 0 0;
  color: #fff;
}

.staff_main {
  position: relative;
  margin-bottom: 60px;
  padding: 36px 80px;
}

/* 上左 */
.staff_main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 70px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}

/* 上右 */
.staff_main::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 70px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

/* 下の角 */
.staff_main .staff_corner_bottom_left,
.staff_main .staff_corner_bottom_right {
  position: absolute;
  bottom: 0;
  width: 72px;
  height: 70px;
  pointer-events: none;
}

.staff_main .staff_corner_bottom_left {
  left: 0;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
}

.staff_main .staff_corner_bottom_right {
  right: 0;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
}

.staff_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 26px;
  row-gap: 18px;
  margin: 0 0 28px;
  padding: 0;
}

.staff_item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  list-style: none;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.staff_role,
.staff_name {
  opacity: 0.95;
}

.staff_credit {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.staff_production_label {
  margin-bottom: 14px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.staff_production_name {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.staff_production_first-item{
  margin-bottom: 60px;
}

/* ======================================
   Links
====================================== */
.link_section {
  text-align: center;
}

.link_box {
  display: flex;
  justify-content: center;
  gap: 56px;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 0 0;
}

.link_group {
  flex: 1;
  max-width: 360px;
}

.link_name {
  margin-bottom: 36px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.link_list {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.link_item {
  list-style: none;
}

.link_card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.link_card img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.link_card:hover {
  transform: translateY(-4px);
}

.link_divider {
  flex-shrink: 0;
  width: 2px;
  height: 160px;
  background: #fff;
}

/* 上書き */
.link_card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 0 24px;
  background: #000;
  color: #fff;
  text-decoration: none;
  overflow: visible;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* 外枠 */
.link_card::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    0 100%
  );
  pointer-events: none;
}

/* 内側の黒面 */
.link_card::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    0 100%
  );
  z-index: 0;
}

/* 中身 */
.link_card > * {
  position: relative;
  z-index: 1;
}

/* テキストで使う時 */
.link_card_text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

/* 画像ロゴで使う時 */
.link_card img {
  display: block;
  max-width: 180px;
  max-height: 40px;
  width: auto;
  height: auto;
}

/* hover */
.link_card:hover {
  transform: translateY(-2px);
}

.link_card--red::before{
  border: 3px solid #ff1e1e;
}
.link_card--blue::before{
  border: 3px solid #2ea7ff;
}
/* ======================================
   Shop Banner
====================================== */
.shop_banner_area {
  max-width: 980px;
  margin: 60px auto 0;
}

.shop_banner_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
}

.shop_banner_item {
  list-style: none;
}

.shop_banner_link {
  display: block;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.shop_banner_link img {
  display: block;
  width: 100%;
  height: auto;
}

.shop_banner_link:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

/* ======================================
   横並びバナー（FANZA / DLsite）
====================================== */
.promo_banner_row {
  max-width: 980px;
  margin: 80px auto 20px;
  display: flex;
  gap: 24px;
}

.promo_banner_row_item {
  flex: 1;
  display: block;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.promo_banner_row_item img {
  width: 100%;
  height: auto;
  display: block;
}

.promo_banner_row_item:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}
@media (max-width: 768px) {
  .promo_banner_row {
    flex-direction: column;
    gap: 16px;
    margin: 60px auto 20px;
  }
}
/* ======================================
   単体バナー（中央）
====================================== */
.promo_banner {
  max-width: 980px;
  margin: 80px auto 0;
  text-align: center;
}

.promo_banner a {
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.promo_banner img {
  width: 100%;
  height: auto;
}

/* hover */
.promo_banner a:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

/* ======================================
   Footer
====================================== */
.site_footer {
  position: relative;
  margin-top: 120px;
  padding: 36px 20px;
  text-align: center;
}

.site_footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(980px, 90%);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: translateX(-50%);
}

.footer_inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer_copyright {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

/* ======================================
   Hamburger
====================================== */
.hamburger {
  display: none;
}

/* ======================================
   Responsive
====================================== */
@media (max-width: 1024px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    height: 100px;
    padding: 0 16px;
    background: #000;
    z-index: 9999;
  }

  .logo {
    display: block;
    text-align: center;
    line-height: 100px;
  }

  .logo img {
    display: inline-block;
    height: 68px;
    width: auto;
    padding: 0;
    vertical-align: middle;
  }

  .hamburger {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    z-index: 20;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .sidebar.is-open .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .sidebar.is-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .sidebar.is-open .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    width: auto;
    margin-top: 0;
    padding: 40px 0 0;
    background: #000;

    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;

    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0.35s ease;
  }

  .sidebar.is-open .nav {
    display: block;
    height: 100vh;
  }

  .sidebar .nav ul {
    gap: 24px;
  }

  .sidebar_nav_img {
    height: 80px;
  }

  .sidebar_lineArea {
    display: none;
  }

  .main {
    padding: 72px 0 0;
  }

  .hero {
    margin-left: 0;
    margin-right: 0;
    aspect-ratio: auto;
    min-height: auto;
  }

  .heroMain {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .character_modal_box {
    width: 92%;
    padding: 8px 40px 0;
  }

  .character_modal_inner {
    flex-direction: column;
  }

  .character_modal_img,
  .character_modal_text {
    width: 100%;
  }

  .character_modal_text h3 {
    font-size: 2.8rem;
  }

  .movie_list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .movie_playIcon {
    width: 68px;
    height: 68px;
    border-width: 3px;
  }

  .movie_playIcon::before {
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 22px;
  }
  .movie_modal_box {
    left: 50%;
  }
  .movie_title {
    font-size: 1.4rem;
  }

  .link_box {
    flex-direction: column;
    gap: 36px;
    padding-top: 24px;
  }

  .link_group {
    width: 100%;
    max-width: none;
  }

  .link_name {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .link_list {
    gap: 18px;
  }

/*   .link_card {
    width: 60px;
    height: 60px;
  } */

  .link_card img {
    height: 80px;
    max-height: 80px;
    max-width: 280px;
  }

  .link_divider {
    width: 120px;
    height: 2px;
    margin: auto;
  }

  .shop_banner_list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

}


/* ======================================
   Opening
====================================== */
.opening {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.opening.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening_video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@media (max-width:768px) {
  .opening_video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
  }
}

.opening_video--sp {
  display: none;
}

@media screen and (max-width: 768px) {
  .opening_video--pc {
    display: none;
  }

  .opening_video--sp {
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* ←これがズームの正体 */

  }
}

/* ======================================
   SP
====================================== */
@media (max-width: 768px) {

  body {
    font-size: 16px;
  }
  .logo {
    line-height: 72px;
  }
  .logo img {
    height: 52px;
  }
  .character_section, .movie_section, .staff_section {
    margin-bottom: 40px;
  }
  .intro_section {
      margin-bottom: 40px;
  }
  .section_heading img {
    height: 100px;
  }

  .intro-heading span {
    font-size: 40px;
  }
  
  .intro-heading {
    font-size: 32px;
  }

  .intro-text_container p {
    line-height: 1.6;
  }

  .character_selectIcons li img, .character_card img {
    width: 140px;
  }


  
  .staff_box {
    padding: 0;
  }

/*   キャラクターモーダル */
  .character_modal_profile {
    width: 100%;
  }
  .character_modal_description,
  .character_modal_profile{
    font-size: 14px;
    letter-spacing: -0.6px;
    line-height: 1.5;
    margin: 12px 0 12px;
  }
  .character_modal_img img {
    height: 42vh;
}

.character_modal_name {
    font-size: 32px;
}

.character_modal_meta {
    padding: 4px 0;
}
.character_modal_inner {
    gap: 8px;
}
.character_modal_name{
  line-height: 1.4;
}
.character_modal_thumbs {
  margin-top: 12px;
  justify-content: center;
}
.character_modal_thumbs img{
  width: 60px;
  height: 60px;
}
.character_modal_close{
  width: 32px;
  height: 32px;
  font-size: 24px;
}

.site_footer {
  margin-top: 0;
}
}

@media (max-width: 1024px) {
  .sidebar.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .character_selectIcons {
    justify-content: center;
    gap: 20px;
  }
  .sidebar .nav ul li {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease;
  }

  .sidebar.is-open .nav ul li {
    opacity: 1;
    transform: translateY(0);
  }

  .sidebar.is-open .nav ul li:nth-child(1) { transition-delay: 0.05s; }
  .sidebar.is-open .nav ul li:nth-child(2) { transition-delay: 0.10s; }
  .sidebar.is-open .nav ul li:nth-child(3) { transition-delay: 0.15s; }
  .sidebar.is-open .nav ul li:nth-child(4) { transition-delay: 0.20s; }
  .sidebar.is-open .nav ul li:nth-child(5) { transition-delay: 0.25s; }
  .sidebar.is-open .nav ul li:nth-child(6) { transition-delay: 0.30s; }

}

.staff_item {
  font-size: 16px;
}
.staff_main {
  padding: 36px 20px;
}

.staff_credit,
.staff_production_name {
  font-size: 24px;
}

.staff_production_label {
  font-size: 20px;
}

.staff_list {
  row-gap: 4px;
  column-gap: 20px;
}

/* タブレット横・小さめPC */
@media screen and (max-width: 1024px) {
.main::before {
  background: url("../img/bg_tablet.png") center center / cover no-repeat;
}

/*   登場人物 */
.character_selectIcons {
  gap: 12px;
}

.sidebar .nav ul {
  gap: 40px;
}
.section_heading img {
  margin: 20px 0;
}
.container {
  padding: 120px 20px 60px;
}
.character_selectIcons {
  width: 100%;
}
.sidebar {
  padding: 0 12px 0;
}
.character_modal_box {
  left: 50%;
}
.character_modal_profile {
  width: 100%;
  margin-bottom: 40px;
}
/* モーダル本体 */
.character_modal_box {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: hidden; /* ← 全体はスクロールさせない */
  display: flex;
  flex-direction: column;
}

/* 中身だけスクロール */
.character_modal_inner {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 閉じるボタン固定 */
.character_modal_close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

  /* モーダル中はハンバーガーごと消す */
  body.character-modal-open .sidebar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* モーダル中は sidebar を通常フローに戻す */
  body.character-modal-open .sidebar {
    position: static !important;
  }

  .sidebar {
  position: fixed;
}

}



/* タブレット縦〜スマホ共通 */
@media screen and (max-width: 768px) {
.main::before {
  background: url("../img/bg_sp.png") center center / cover no-repeat;
}

.sidebar {
  height: 80px;
}

.nav {
  top: 72px;
}

.sidebar .nav ul {
gap: 28px;
}

.sidebar_nav_img {
  height: 52px;
}

/* キャラ名 */
  .character_modal_name_big {
    font-size: 28px;
    margin: 0 0 8px;
}

  .link_card {
      height: 60px;
  }
  .link_card img {
      max-width: 100px;
  }

}


/* スマホ */
@media screen and (max-width: 480px) {}

@media (max-width: 768px) {
  .character_modal_box {
    padding-top: 72px;
    padding: 8px 20px 0;
  }
  .character_modal_profile {
    margin-bottom: 20px;
  }
}

