/*========================
  ピクセルフォント読み込み
========================*/
@font-face {
  font-family: 'PixelMplus';
  src: url('fonts/PixelMplus10-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* 全体に適用 */
* {
  font-family: 'PixelMplus', monospace !important;
}

/* --- ベース設定 --- */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-image: url(images/bg.PNG);
  background-size:150%; /*背景画像のサイズ指定*/
  line-height: 1.5;
}

/* === タイトルセクション === */
.title-section {
  text-align: left;
  margin: 0;
  padding: 0;
}

/* === タイトルの帯 === */
.story-title {
  display: inline-block;
  background: #f76c3c; /* オレンジ */
  color: #fff;
  font-size: 14px;     /* 小さめ */
  font-weight: normal; /*文字の太字調整*/
  padding: 6px 18px 6px 16px;
  margin: 0;

  /* 右だけを斜めに切る */
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);

  /* 文字を少し見やすく */
  position: relative;
}

/* 中の文字はそのまま平行に表示 */
.story-title span {
  font-size: 14px; /* 基本の文字サイズを小さく */
  transform: skewX(0deg);
}

.story-title .highlight-number {
  font-size: 25px; /* 1話の1だけ大きく */
  font-weight: normal; /* 太字にならないように調整 */
  position: relative;      /* 上下移動を可能にする */
  top: -3px;               /* 上に3pxずらす（値は好みで調整） */
  vertical-align: middle; /* 中央揃え */
}
/*ここからハンバーガーメニュー*/
.header-container_01 {
  position: relative;
  margin: 0 !important;
  height: auto; /*固定の高さをやめる*/
  font-family:serif; /*フォントを変えるとこ*/
}

.header__navi_01 {
  position: fixed;      /* 画面に固定 */
  top: 0;
  left: 0;              /* 左からスライドイン */
  width: 70%;
  height: 100vh;        /* 画面全体の高さ */
  background: #f76c3c;
  transform: translateX(-130%); /* 最初は画面外 */
  transition: transform 0.4s;  /*出てくる早さ*/
  z-index: 1500;
  overflow-y: auto;     /* コンテンツが長い場合スクロール可能に */
}

.header__navi_01.active {
  transform: translateX(0%);
}

.header__navi_01 ul {
  position: fixed;      /* 文字を画面内で固定 */
  top: 50%;             /* 画面中央に配置 */
  left: 0;
  width: 100%;
  transform: translateY(-50%); /* 正確に中央に */
  padding-left: 20px;
  text-align: left;
}

.header__navi_01 li {
  list-style: none;
  margin-bottom: 42px; /*テキストの間の間隔*/
}

.header__navi_01 li a {
  color: #fff;
  text-decoration: none;
   border-bottom: 3px dotted #fff; /* ← 点線の下線 */
  padding-bottom: 4px;            /* 下線と文字の間隔調整 */
  display: block;       /* ブロックにすることで幅いっぱいに伸びる */
  width: 100%;          /* 幅100% */
  transition: all 0.2s; /* 色変化をスムーズに */
  transition: border-color 0.3s;
}

/* ホバー時 */
.header__navi_01 li a:hover {
  color: #ffeaa7;       /* マウスオーバーで色を変える */
  border-bottom-color: #ffeaa7;
}

/* 押したとき */
.header__navi_01 li a:active {
  color: #35dbf1;       /* 押した瞬間の色 */
  background-color: rgba(255,255,255,0.1); /* 背景を少し変える */
  transform: translateY(1px); /* 軽く沈み込むように */
}

/* メニューボタン */
.sp-menu-btn_01 {
  background: #f76c3c;
  border: none;
  position: fixed; /*スクロールしても位置固定*/
  right: -5px; /*ボタンの左右の位置調整*/
  top: 5px;  /*ボタンの上下位置*/
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 2000;
  border-radius: 50%; /*ボタンの角丸調整*/
  transform: scale(0.5);/*ボタンのサイズ調整*/
}

.sp-menu-btn_01 .line {
  display: block;
  position: absolute;
  width: 30px;
  height: 4px;
  right: 15px;
  background: #fff;
  transition: 0.3s ease-in-out;
}

.sp-menu-btn_01 span:nth-child(1) {
  top: 20px;
}

.sp-menu-btn_01 span:nth-child(2) {
  top: 28px;
}

.sp-menu-btn_01 span:nth-child(3) {
  top: 36px;
}

/* メニューが開いているときのボタン */
.sp-menu-btn_01.active span:nth-child(1) {
  top: 28px;
  transform: rotate(-45deg);
}

.sp-menu-btn_01.active span:nth-child(2) {
  opacity: 0;
}

.sp-menu-btn_01.active span:nth-child(3) {
  top: 28px;
  transform: rotate(45deg);
}

.header-container_01 h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-weight: normal;
}
/**ここまでハンバーガーメニュー*/

/* タイトルと漫画の間を少し広げる */
.comic-section {
  margin-top: 20px; /* ここを広げる */
  text-align: center;
}

/* 漫画ページ */
.comic-page {
  margin: 10px 0;
}

.comic-page img {
  max-width: 85%; /* 背景が見えるように調整 */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

/* ライトボックス全体 */
.lightbox {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 2500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; /*上下の位置調整*/
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  text-align: center;
  padding-top: 0; /*画像の配置の位置調整上下*/

  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  flex-direction: column;  /* 画像の下に説明文 */
}


/* 拡大画像 */
.lightbox-img {
  max-width: 95%; /*拡大率*/
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* 説明文 */
.lightbox .caption {
  position: relative;   /* 画面全体に固定 */
  margin-top: 12px;   /* 画像の下に配置 */
  color: #fff;
  font-size: 16px;
  max-width: 60%;    /* 横幅制限 */
  word-break: break-word;
}

/* --- ページ下部のナビ（常時固定ではない） --- */
.footer-nav {
  display: flex;
  justify-content: center; /* 中央寄せ */
  gap: 10px; /* ボタン間のスペース */
  padding: 40px 0 60px; /* 下に余白を追加して窮屈さを解消 */
  background: transparent; /* 背景完全透明 */
  box-shadow: none; /* 下の影も削除 */
  max-width: 600px;
  margin: 0 auto;
}


/* --- 角丸＆浮き上がるボタン --- */
.footer-btn {
  display: inline-block;
  background: #f76c3c; /* オレンジ */
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 18px;       /* 内側余白を小さめにして幅を狭く */
  border-radius: 24px;     /* 丸みを保つ */
  box-shadow: 0 3px 8px rgba(167, 73, 73, 0.2);
  transition: all 0.2s ease;
  min-width: 80px;          /* 最小幅を80pxに */
  text-align: center;
  box-shadow: 0 4px 10px rgba(158, 44, 44, 0.2); /* 浮かせ効果 */
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.footer-btn:hover { /*ボタンを押したときの反応*/
  background: #e85c2a;
  transform: translateY(-2px); /* ふわっと浮く */
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* --- 右下固定の↓スクロールボタン --- */
.scroll-down {
  position: fixed;
  bottom: 20px;
  right: 10px; /*左右位置*/
  background: #f76c3c;
  color: white;
  text-decoration: none;
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s;
  z-index: 100;
}

.scroll-down:hover {
  background: #f76c3c;
  transform: translateY(-2px); /* ふわっと浮く */
}

/* --- スマホ向け調整 --- */
@media (max-width: 600px) {
  .footer-btn {
    font-size: 14px;
    padding: 10px 14px;
    margin: 0 5px;
  }
}

