/*========================
  ピクセルフォント読み込み
========================*/
@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/bgblue.PNG);
  background-size:150%; /*背景画像のサイズ指定*/
  line-height: 1.5;
}

/*ここからハンバーガーメニュー*/
.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;
}
/**ここまでハンバーガーメニュー*/

/* --- スマホ向け調整 --- */
@media (max-width: 600px) {
  .footer-btn {
    font-size: 14px;
    padding: 10px 14px;
    margin: 0 5px;
  }
}

/* 秘密部屋タイトル */
.sousaku-wrap {
  text-align: center;
  margin: 90px auto 40px auto; /* 上下余白調整 */
}

.sousaku {
  font-size: 36px;  /* 今は24pxなので36pxに拡大 */
  font-weight: bold;
  color: #fff7f5;
  margin: 0;
  white-space: nowrap;
}

/*下線(点線)*/
.dotted-line {
  width: 300px;
  border-bottom: 4px dotted #fff7f5;
  margin: 20px auto 0;
}

/* 説明文 */
.setumei {
  text-align: center;
  font-size: 14px;
  color: #fff7f5;
  margin: -15px auto;
}

/* ギャラリー全体の外側余白 */
.comic-section {
  padding: 10px;
  margin-top: 5px; /* ← ここで下に下げる量を調整 */
}


/* 番外編・ギャラリー見出し 共通デザイン */
.works-heading {
  background:#107a6d;
  color:#fff;
  display:inline-block;
  padding:10px 14px;
  border-radius:9999px;
  font-size:15px;
  margin-bottom:12px;
  position: relative;
  left: 10px;
}

/* ==========================
   メインギャラリー（3列タイル）
========================== */
.comic-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
}

.comic-page img {
  width: 90%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}


/* ライトボックス用（元画像の比率を維持） */
.lightbox-img {
  width: auto;            /* 元画像の幅を維持 */
  height: auto;           /* 元画像の高さを維持 */
  max-width: 90%;         /* 画面サイズに収まる */
  max-height: 80vh;       /* 高さも画面に収まる */
  object-fit: contain;    /* 元の縦横比を維持 */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}


.comic-page img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* 📱 スマホでも3列を維持 */
@media (max-width: 600px) {
  .comic-page {
    grid-template-columns: repeat(3, 1fr); /* 変えない */
    gap: 6px;
  }

  .comic-page img {
    border-radius: 4px;
  }
}

/* ライトボックス全体 */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;   /* 画面高さを最低保証 */
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  flex-direction: column;
  padding: 0;              /* 上下余白を消す */
}

/* ライトボックス内画像（正方形制約を解除） */
.lightbox-img {
  width: auto !important;        /* タイル用 width を打ち消す */
  height: auto !important;       /* タイル用 height を打ち消す */
  aspect-ratio: unset !important;/* aspect-ratio を解除 */
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;           /* 元画像比率を維持 */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}


/* 説明文 */
.lightbox .caption {
  position: relative;   /* 画面全体に固定 */
  margin-top: 12px;   /* 画像の下に配置 */
  color: #fff;
  font-size: 12px;
  max-width: 60%;    /* 横幅制限 */
  word-break: break-word;
}

/* 漫画メイキング用サムネイル */
.thumb-grid {
  display: flex;
  flex-wrap: wrap;      /* グリッド表示の場合も対応 */
  gap: 10px;
  justify-content: center;
}

.thumb {
  position: relative;   /* 文字を重ねるために必要 */
  display: inline-block;
}

.thumb img {
  display: block;
  width: 200px;         /* サムネイルのサイズ調整 */
  height: auto;
  border-radius: 6px;
  transition: transform 0.3s, filter 0.3s;
  filter: brightness(70%); /* 少し暗く */
}

.thumb:hover img {
  transform: scale(1.05);
  filter: brightness(85%); /* ホバーで少し明るく */
}

.thumb-text {
  position: absolute;
  bottom: 8px;          /* 下から少し上げる */
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 5px rgba(0,0,0,0.7); /* 文字が読みやすくなる */
  pointer-events: none;  /* 文字がクリックを邪魔しない */
}
