/* 基本スタイル */
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: #000;
  color: #fff;
  position: relative;
}
* {
  caret-color: transparent; /* 点滅カーソルを非表示にする */
}
.site-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  min-width: 1200px;
  margin: 0 auto;
}

.section {
  width: auto;
  overflow: hidden;
  position: relative;
}

.section-about {
  background-color: #111;
  padding: 4em 1em;
}

.section-characters {
  background-color: #220011;
  padding: 0 1em 4em;
}

.section-feature {
  background-color: #1a0022;
  padding: 0 1em 4em;
}

.section-main {
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h2 {
  width: 562px;
  height: 115px;
  margin: 0em auto 1em;
  background: url('images/section_title_01.png') no-repeat center center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
}

h2.section-title-01 {
  background-image: url('images/section_title_01.png');
}
h2.section-title-02 {
  background-image: url('images/section_title_02.png');
}
h2.section-title-03 {
  background-image: url('images/section_title_03.png');
}
h2.section-title-04 {
  background-image: url('images/section_title_04.png');
}


p {
  max-width: 1000px;
  margin: 0 auto 2em;
  padding: 0 1em;
  font-size: 1.2em;
  line-height: 1.8;
}

.section p {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.8;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  text-align: center;
}

/* メインビジュアル */
.main-visual {
  position: relative;
  height: 100vh;
  max-height: 829px;
  width: 100%;
  background-color: #000;
  overflow: hidden;
}

.main-visual .bg-slide,
.main-visual .logo-center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.main-visual .bg-slide {
  background: url('images/mainvisual_BG.png') no-repeat center center;
  background-size: auto 100%;
  z-index: 1;

  /* 常にアニメーションさせる */
  animation: slide-horizontal 5s ease-in-out infinite alternate;
}
@keyframes slide-horizontal {
  0%   { background-position: 60% center; }
  100% { background-position: 40% center; }
}

.main-visual .catch-left,
.main-visual .catch-right {
  position: absolute;
  top: 50px;
  height: 80%;
  z-index: 10200;
  transition: transform 1s ease-out, opacity 1s;
  width: auto;
  max-height: 100%;
}

.main-visual .catch-left {
  left: 0;
  transform: translateX(-100%);
  opacity: 0;
}

.main-visual .catch-right {
  right: 0;
  transform: translateX(100%);
  opacity: 0;
}

.catch-left.visible {
  transform: translateX(0);
  opacity: 1;
}

.catch-right.visible {
  transform: translateX(0);
  opacity: 1;
}

.main-visual .logo-center {
  background: url('images/mainvisual_logo.png') no-repeat center center;
  background-size: contain;
  z-index: 3;
  opacity: 1;
}

.switch-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: auto;
  z-index: 10100;
  display: none;
}
.switch-logo img {
  width: 100%;
  height: auto;
}

/* ギャラリー */
.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 2em;
}

.gallery img {
  width: 300px;
  border: 2px solid #fff;
  border-radius: 8px;
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.03);
}

/* Swiper */
.character-swiper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

.character-swiper .swiper-slide {
  width: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-swiper .swiper-slide img {
  width: 260px;
  height: auto;
  display: block;
}




/* フッター */
.footer {
  text-align: center;
  font-size: 0.9em;
  color: #aaa;
  padding: 2em 1em;
  background: #111;
}

/* レスポンシブ */
@media screen and (max-width: 480px) {
  .main-visual {
    max-height: 500px;
    min-width: 0;
  }
  .main-visual .bg-slide {
    background-image: url('images/mainvisual_BG_sp.png');
    background-size: contain;
    animation: none;
  }
  .main-visual .logo-center {
    background-image: url('images/mainvisual_logo_sp.png');
  }
  .main-visual .catch-left,
  .main-visual .catch-right {
    display: none;
  }
  .switch-logo {
        width: 80px;
        top: 0;
        right: 0;
  }
}

/* セクションキャッチ */
.section-chatch {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  z-index: 9999;
  max-height: 90%;
  /* max-width: 300px; */
  height: auto;
}
.section-chatch-right {
  right: 0%;
}
.section-chatch-left {
  left: 0%;
}

/* グラデーション（画面左右固定） */
.gradient-left,
.gradient-right {
  position: fixed;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}
.gradient-left {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}
.gradient-right {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}
.section-feature img {
  display: block;
  margin: 2em auto 0;
  max-width: 100%;
}
.site-wrapper {
  position: relative;
  max-width: 1500px;
  min-width: 1200px;
  margin: 0 auto;
}

.gradient-left,
.gradient-right {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.gradient-left {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}

.gradient-right {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}
.scroller {
  display: flex;
  gap: 12px;
  animation: scroll-loop 60s linear infinite;
  width: fit-content;
}

@keyframes scroll-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 画像が2セット並んでる前提 */
}
.swiper-wrapper {
  transition-timing-function: linear !important;
}
.swiper-slide img {
  width: auto;
  max-width: 100%;
  display: block;
  margin: auto;
}

.character-swiper {
  padding: 2em 0;
}
/* Slickスライダーの基本スタイル */
.character-slider {
  width: 80%;
  margin: 0 auto;
}

.character-slider img {
  width: 84%;
  height: auto;
  margin: 0 auto;
}

/* 矢印スタイル */
.slick-prev:before,
.slick-next:before {
  color: #000;
  font-size: 30px;
}

.slick-prev {
  left: -40px;
}

.slick-next {
  right: -40px;
}

/* ドットスタイル */
.slick-dots li button:before {
  font-size: 12px;
}

/* 矢印ボタンの基本スタイル */
.slick-prev,
.slick-next {
  width: 50px !important;
  height: 50px !important;
}

/* 矢印アイコンのスタイル */
.slick-prev:before,
.slick-next:before {
  font-size: 50px !important;
  color: #000; /* 矢印の色 */
}

/* 左矢印の位置調整 */
.slick-prev {
  left: -60px !important; /* スライダーからの距離 */
}

/* 右矢印の位置調整 */
.slick-next {
  right: -60px !important; /* スライダーからの距離 */
}

/* ギャラリースライダーのスタイル */
.gallery-slider {
  max-width: 1200px;
  margin: 30px auto;
}

.gallery-slider .slide-item {
  padding: 0 10px;
}

.gallery-slider img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border: 2px solid #333;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.gallery-slider img:hover {
  transform: scale(1.02);
}

/* 矢印ボタンのスタイル */
.gallery-slider .slick-prev,
.gallery-slider .slick-next {
  width: 50px;
  height: 50px;
  z-index: 1;
}

.gallery-slider .slick-prev:before,
.gallery-slider .slick-next:before {
  font-size: 50px;
  color: #8b4513; /* 茶色の矢印 */
}

.gallery-slider .slick-prev {
  left: -55px;
  display: none;!important
}

.gallery-slider .slick-next {
  right: -55px;
}

/* ドットナビゲーション */
.gallery-slider .slick-dots li button:before {
  font-size: 12px;
  color: #8b4513;
}

.gallery-slider .slick-dots li.slick-active button:before {
  color: #8b4513;
}

/* Lightbox 全体の制限は解除 */
.lightbox {
  max-width: none !important;
  max-height: none !important;
}

/* Lightbox内の画像だけ70%に制限 */
.lb-image {
  max-width: 70vw !important;  /* 画面幅の70%まで */
  max-height: 70vh !important; /* 画面高の70%まで */
  width: auto !important;
  height: auto !important;
  display: block;
  margin: auto;
  box-shadow: 0 0 10px #000;
  border: 2px solid #fff;
  border-radius: 6px;
}
/* スライダー矢印の z-index を調整してキャッチ画像より前面に */
.character-slider .slick-prev,
.character-slider .slick-next,
.gallery-slider .slick-prev,
.gallery-slider .slick-next {
  z-index: 10001 !important;
}
/* キャラクター用スライダーの矢印カラー統一 */
.character-slider .slick-prev:before,
.character-slider .slick-next:before {
  font-size: 50px !important;
  color: #fff !important;  /* ギャラリーと同じ茶色 */
}

/* キャラクター用スライダーのドットの色統一 */
.character-slider .slick-dots li button:before {
  font-size: 12px;
  color: #8b4513;
}
.character-slider .slick-dots li.slick-active button:before {
  color: #8b4513;
}
.section-characters {
  background: 
    linear-gradient(rgba(180, 0, 40, 0.9), rgba(180, 0, 40, 0.7)), 
    url('images/sectionBG.png') no-repeat center center;
  background-size: cover;
  padding: 0 1em 4em;
}

.section-feature {
  background: 
    linear-gradient(rgba(80, 0, 120, 0.9), rgba(80, 0, 120, 0.6)), 
    url('images/sectionBG.png') no-repeat center center;
  background-size: cover;
  padding: 0 1em 0em 0;
}
.section-feature img {
  width: 60%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto 0;
}
.sns-links {
  margin: 1em auto;
  text-align: center;
}

.sns-links {
  margin: 1em auto;
  text-align: center;
}

.sns-links .sns-icon {
  width: 80px;
  height: auto;
  display: inline-block;
}
@media screen and (max-width: 480px) {
  .main-visual-sp {
    position: relative;
    height: 820px;
    width: 100%;
    overflow: hidden;
  }

/* PC用アニメーション */
@keyframes pingpong-slide-pc {
  0%   { transform: translateX(0%); }         /* 左端スタート */
  100% { transform: translateX(-100%); }      /* 右端まで移動 */
}

/* スマホ用 */
@media screen and (max-width: 480px) {
  .bg-slide-sp {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('images/mainvisual_BG.png') no-repeat left center;
    background-size: auto 100%;
    animation: pingpong-slide-sp 20s ease-in-out infinite alternate;
    z-index: 0;
  }

  @keyframes pingpong-slide-sp {
    0%   { transform: translateX(-50%); }     /* 画像の中央ちょい左 */
    100% { transform: translateX(-5%); }      /* 画像の中央ちょい右 */
  }
}



  .main-logo-sp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;        /* ← ビューポートの幅に固定 */
    height: auto;
    z-index: 1;
    pointer-events: none;
  }

}


@media screen and (max-width: 480px) {
  .section-main {
    display: none;
  }

  .main-visual {
    display: none;
  }
}
@media screen and (max-width: 480px) {
  .gradient-left,
  .gradient-right {
    display: none;
  }
}
@media screen and (max-width: 480px) {
  .site-wrapper {
    min-width: auto;
    max-width: 100vw;
    width: 100%;
    padding: 0;
    overflow-x: hidden;
  }

  .section {
    width: 100%;
    padding: 2em 1em;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .section-about,
  .section-characters,
  .section-feature {
    padding: 2em 0em;
  }

  .gallery-slider,
  .character-slider {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .gallery-slider img,
  .character-slider img {
    width: 98%;
    height: auto;
    margin: auto;
  }

  .slide-item {
    padding: 0 4px;
    box-sizing: border-box;
  }

  h2 {
    width: 100%;
    height: auto;
    background-size: contain;
    margin: 0em auto;
  }

  .section p {
    font-size: 1em;
    padding: 0 0.5em;
  }

  .section-chatch {
    display: none; /* スマホでは左右装飾を非表示にする */
  }
}
@media screen and (max-width: 480px) {
  h2.section-title-01 {
    background-image: url('images/section_title_01_SP.png');
  }

  h2.section-title-02 {
    background-image: url('images/section_title_02_SP.png');
  }

  h2.section-title-03 {
    background-image: url('images/section_title_03_SP.png');
  }

h2.section-title-04 {
    background-image: url('images/section_title_04_SP.png');
  }

  h2 {
    width: 100%;
    height: auto;
    aspect-ratio: 562 / 115; /* 元画像の比率を維持（必要に応じて調整） */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}
@media screen and (max-width: 480px) {
  .character-slider img {
    width: 100% !important;  /* ← 約7割に */
    margin: 0 auto;
    display: block;
    padding: 0;
  }
  .section-feature img{
    width: 100%;
  }
}
/* スマホでのみ表示（PCでは非表示） */
.main-visual-sp {
  display: none;
}

@media screen and (max-width: 480px) {
  .main-visual {
    display: none !important;
  }

  .section-main {
    display: none !important; /* メインビジュアルの空白対策（PC用の親） */
  }

  .main-visual-sp {
    display: block !important;
  }
}
@media screen and (max-width: 480px) {
  .gallery-slider,
  .character-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .gallery-slider .slide-item,
  .character-slider .slick-slide {
    box-sizing: border-box;
    padding: 0 4px; /* 必要に応じて調整 */
  }
}
.character-slider img {
  width: 70%;
}
.character-slider .slick-dots {
  display: flex !important;
  justify-content: center;
  padding-top: 1em;
  gap: 4px;
}

.character-slider .slick-dots li button:before {
  font-size: 12px;
  color: #8b4513;
  opacity: 1;
}

.character-slider .slick-dots li.slick-active button:before {
  color: #8b4513;
}
/* 共通：キャラクタースライダーのドットを白く丸く表示 */
.character-slider .slick-dots {
  display: flex !important;
  justify-content: center;
  padding-top: 1em;
  gap: 6px;
}

.character-slider .slick-dots li button:before {
  font-size: 14px;
  color: #fff !important;
  opacity: 0.5;         /* 非アクティブは半透明白 */
  content: "●";
}

.character-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff !important; /* アクティブは真っ白で強調 */
}
@media screen and (max-width: 480px) {
  .character-slider {
    padding-bottom: 40px; /* ドット表示の余白を確保 */
  }
}
@media screen and (max-width: 480px) {
  .gallery-slider,
  .character-slider {
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
    overflow: hidden !important;  /* 安全にオーバーフロー防止 */
  }

  .gallery-slider::-webkit-scrollbar,
  .character-slider::-webkit-scrollbar {
    display: none;                /* Chrome/Safari */
  }
}
.character-slider,
.gallery-slider {
  overflow-x: hidden;   /* 横スクロールバーを消す */
  overflow-y: visible;  /* 縦方向のドットなどは隠さない！ */
}
.slick-dots {
  position: relative;
  z-index: 1000;
  padding-bottom: 1em;
}
@media screen and (max-width: 480px) {
  .character-slider,
  .gallery-slider {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .character-slider .slick-dots {
    position: relative;
    padding-bottom: 1.5em;
  }
}
.gallery-slider {
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 2em; /* ← 追加でドットのための余白 */
}
@media screen and (max-width: 480px) {
  .gallery-slider {
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 2em;
  }

  .gallery-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1000;
  }

  .gallery-slider .slick-dots li button:before {
    font-size: 14px;
    color: #fff;
    opacity: 0.5;
    content: \"●\";
  }

  .gallery-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #fff;
  }
}
/* PC用（デフォルト） */
.feature-image {
  content: url('images/feature.png');
  width: 60%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
}

/* SP用（480px以下） */
@media screen and (max-width: 480px) {
  .feature-image {
    content: url('images/feature_SP.png');
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .section-feature {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .section-feature .feature-image {
    margin-bottom: 0 !important;
    display: block;
  }
}
.kaeru-icon {
  text-align: center;
  margin-top: 3em;
  margin-bottom: -0.5em; /* タイトルと距離を調整（必要に応じて） */
}

.kaeru-icon img {
  width: 48px;
  height: auto;
  image-rendering: pixelated; /* ドットをにじませず表示 */
  margin: auto;
}
.navinosuke-icon {
  text-align: center;
  margin-top: 3em;
  margin-bottom: -0.5em; /* タイトルと距離を調整（必要に応じて） */
}

.navinosuke-icon img {
  width: 150px;
  height: auto;
  image-rendering: pixelated; /* ドットをにじませず表示 */
  margin: auto;
}
@media screen and (max-width: 480px) {
  .kaeru-icon {
     margin-top: 0em;   
  }
  .kaeru-icon img {
    width: 36px;
    margin: 0 auto;
  }
  .navinosuke-icon {
     margin-top: 0em;   
  }
  .navinosuke-icon img {
    width: 120px;
    margin: 0 auto;
  }
}
.character-slider,
.gallery-slider {
  overflow-x: hidden;
  overflow-y: visible;
  margin-bottom: 0;
  padding-bottom: 0;
}

.slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 6px;
  margin-top: 1em;
  position: relative;
  z-index: 100;
}

.slick-dots li button:before {
  font-size: 14px;
  color: #fff;
  opacity: 0.5;
  content: "●";
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff;
}
.gallery-slider {
  position: relative;
  padding-bottom: 2.5em; /* ドットの分だけ余白を確保 */
  overflow-y: visible;
}
.gallery-slider .slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 6px;
  position: absolute;
  bottom: 0.5em;  /* ← スライダー内で下に固定表示 */
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none; /* ドットが隠れてるときでもクリックブロックを防ぐ */
}
.gallery-slider .slick-dots li button:before {
  font-size: 14px;
  color: #fff;
  opacity: 0.5;
  content: "●";
}
.gallery-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff;
}
@media screen and (max-width: 480px) {
  .gallery-slider {
    padding-bottom: 3em;
  }

  .gallery-slider .slick-dots {
    position: absolute;
    bottom: 0.3em;
    left: 0;
    right: 0;
    justify-content: center;
    pointer-events: none;
  }
}
.character-slider {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  padding-bottom: 3em; /* ドット分の余白 */
}

/* 矢印 */
.character-slider .slick-prev,
.character-slider .slick-next {
  width: 50px;
  height: 50px;
  z-index: 1001;
}

.character-slider .slick-prev:before,
.character-slider .slick-next:before {
  font-size: 50px;
  color: #fff;
  content: "←";
}

.character-slider .slick-next:before {
  content: "→";
}

.character-slider .slick-prev {
  left: -60px !important;
}

.character-slider .slick-next {
  right: -60px !important;
}

/* ドット */
.character-slider .slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 6px;
  position: absolute;
  bottom: 0.5em;
  left: 0;
  right: 0;
  z-index: 1000;
}

.character-slider .slick-dots li button:before {
  font-size: 14px;
  color: #fff;
  opacity: 0.5;
  content: "●";
}

.character-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff;
}

/*妖怪紹介*/
/* 妖怪紹介セクション */
.yokai-section {
  background: url('images/yokai_section_bg.png') no-repeat center center;
  background-size: cover;
  padding: 4em 1em;
  text-align: center;
  color: #fff;
}

.yokai-title {
  font-size: 2em;
  margin-bottom: 0.2em;
  font-weight: bold;
}

.yokai-subtitle {
  margin-bottom: 2em;
  font-size: 1em;
  color: #ffc;
  text-shadow: 1px 1px 2px #000;
}

/* グリッド：PCは2カラム、SPは1カラム */
.yokai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* ← これで常に2列に固定 */
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2em 1em;
  box-sizing: border-box;
}




.yokai-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;   /* ← 高さ確保 */
  margin: 0 auto;
  overflow: hidden;
  /* max-width: 400px; ← これを消すかコメントアウト */
}


/* 重ね画像構造（巻物／妖怪／属性） */
.yokai-scroll,
.yokai-illust,
.yokai-attr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  display: block;
}

.yokai-illust {
  z-index: 2;
  image-rendering: pixelated;
}

.yokai-attr {
  width: 80px;
  height: 80px;
  top: 10px;
  left: 10px;
  z-index: 3;
}

/* 黒帯＋文字情報 */
.yokai-info {
  position: absolute;
  bottom: 50px;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7em;
  padding: 0.8em;
  z-index: 4;
  box-sizing: border-box;
}

.yokai-name {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.3em;
}

/* スマホ時1カラムに */
@media screen and (max-width: 640px) {
  .yokai-grid {
    grid-template-columns: 1fr;
  }
  .yokai-info{
    bottom: 0px;
  }
  .yokai-attr{
    width: 60px;
    height: 60px;
  }
}

.yokai-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #ffd200;
  color: #fff;
  font-size: 1em;
  margin-top: 0;
  border-top: 2px solid #300;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  gap: 6px; /* ← ここで上下左右均等に指定 */
  padding: 6px;
}

.skill-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.3em 0.2em;
  border: 1px solid #8b4513;
  background-color: rgb(0 141 252);
  font-family: 'Noto Sans JP', sans-serif;
}

.skill-name {
  font-weight: bold;
  color: #ffc;
}

.skill-status {
  font-size: 1em;
  margin-top: 0.2em;
}
.yokai-desc{margin-bottom: 12px;}
.language-tab {
  position: fixed;
  top: 40%;
  right: 0;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: 'Noto Sans JP', sans-serif;
  transition: transform 0.5s ease;
}

.language-tab.hide {
  transform: translateX(100%);
}

.lang-btn {
  writing-mode: vertical-rl;
  text-align: center;
  padding: 0.6em 0.3em;
  background-color: #222;
  color: #fff;
  text-decoration: none;
  border: 1px solid #555;
  border-right: none;
  transition: background 0.3s, color 0.3s;
  font-size: 1.5em;
  cursor: pointer;
}

.lang-btn:hover {
  background-color: #fff;
  color: #000;
}

.lang-btn.jp {
  border-bottom: none;
}
.yokai-meaning {
  font-size: 0.75em;
  color: #ffc;
  margin-left: 0.5em;
}

/* レスポンシブ */
@media screen and (max-width: 480px) {
  .language-tab {
    position: fixed;
    top: 80%;
  }
}

/* デフォルトは非表示（PC用） */
.sp-only {
  display: none;
}

/* スマホサイズで表示 */
@media screen and (max-width: 480px) {
  .sp-only {
    display: inline;
  }
}

.yokai-deco-left,
.yokai-deco-right {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 150px;
}

.yokai-deco-left {
    left: 8%;
    animation: floatY 4s ease-in-out infinite;
    top: 25%;
    z-index: 1500;
}

.yokai-deco-right {
    right: 4%;
    top: 10%;
    animation: floatY 4s ease-in-out infinite reverse;
    z-index: 15000;
}

@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

/* 妖怪紹介セクションに relative を追加 */
.section-characters {
  position: relative;
}

.yokai-gif{
  width: 80%;
  position: relative;
  margin: 60px auto 0;
}

.keizo{
  width: 68%;
  margin-top: 88px;
}

.okuri {
    width: 55%;
    margin-top: 126px;
}

.neko {
    width: 60%;
    margin-top: 114px;
}

.section-trailer{
  margin-top: 40px;
}
.youtube-box {
  position: relative;
  width: 100%;
  max-width: 640px;       /* ← BFJページと同じ横幅に制限 */
  aspect-ratio: 16 / 9;   /* ← 比率は16:9に固定 */
  margin: 0 auto;         /* ← 中央寄せ */
  background-color: #000; /* ← 読み込み前も黒背景で整う */
}

.youtube-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
