/*========================
  ピクセルフォント読み込み
========================*/
@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;
}

/*ここからハンバーガーメニュー*/
.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;
}
/**ここまでハンバーガーメニュー*/


/* ヘッダー */
.site-header{
  position:fixed;
  top:12px;
  right:12px;
  z-index:30;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* コンテナ（ページ余白） */
.container{
  padding: 88px 20px 120px; /* ヘッダ分と下部余白 */
  max-width:640px;
  margin:0 auto;
}

/* 秘密部屋タイトル */
.sousaku-wrap {
  text-align: center;
  margin: 90px auto 40px auto; /* 上下余白調整 */
}

.sousaku {
  font-size: 36px;  /* 今は24pxなので36pxに拡大 */
  font-weight: bold;
  color: #402b24;
  margin: 0;
  white-space: nowrap;
}

/*下線(点線)*/
.dotted-line {
  width: 300px;
  border-bottom: 4px dotted #402b24;
  margin: 20px auto 0;
}


/* category-row（タグ＋大きめアイコン） */
.category-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}
.icon-grid-item{ width:72px; height:72px; flex:0 0 72px; }
.thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
  display:block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border:4px solid rgba(255,255,255,0.6);
}

/* 生き残りの恐竜たち見出し */
.works{ margin-top:18px; margin-bottom:26px; }
.works-heading{
  background:#ff7f43;
  color:#fff;
  display:inline-block;
  padding:10px 14px;
  border-radius:9999px;
  font-size:15px;
  margin-bottom:12px;
}

/* 両性の生殖器見出し */
.works{ margin-top:18px; margin-bottom:26px; }
.works-heading1{
  background:#ff7f43;
  color:#fff;
  display:inline-block;
  padding:10px 14px;
  border-radius:9999px;
  font-size:15px;
  margin-bottom:12px;
}

/* RPG見出し */
.works{ margin-top:18px; margin-bottom:26px; }
.works-heading2{
  background:#ed6565;
  color:#fff;
  display:inline-block;
  padding:10px 14px;
  border-radius:9999px;
  font-size:15px;
  margin-bottom:12px;
}

/* 白やぎさん見出し */
.works{ margin-top:18px; margin-bottom:26px; }
.works-heading3{
  background:#238399;
  color:#fff;
  display:inline-block;
  padding:10px 14px;
  border-radius:9999px;
  font-size:15px;
  margin-bottom:12px;
}

/* 博物館見出し */
.works{ margin-top:18px; margin-bottom:26px; }
.works-heading4{
  background:#726c6a;
  color:#fff;
  display:inline-block;
  padding:10px 14px;
  border-radius:9999px;
  font-size:15px;
  margin-bottom:12px;
}

/*見出しの位置調整*/
.works-heading       { background: #ff7f43; position: relative; left: 10px; }
.works-heading1      { background: #ff7f43; position: relative; left: 10px; }
.works-heading2      { background: #ed6565; position: relative; left: 10px; }
.works-heading3      { background: #238399; position: relative; left: 10px; }
.works-heading4      { background: #726c6a; position: relative; left: 10px; }


/*========================
  サムネグリッド・サムネカード
========================*/

/* === サムネグリッド（常に3列） === */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← 3列固定 */
  gap: 6px;
  margin-top: 12px;
  justify-items: center;
  align-items: start;
  width: 100%;
  max-width: none; /* ← 制限を解除して横幅を全体に合わせる */
  box-sizing: border-box;
  padding: 0 6px;
}

/* === サムネカード === */
.thumb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  text-decoration: none;
  color: inherit;
  position: relative;

  /* ✅ 全機種で角丸を安定させる */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  -webkit-border-radius: 14px;
  transform: translateZ(0);
}

/* === サムネ画像 === */
.thumb-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0px;
  -webkit-border-radius: 0px;
  clip-path: inset(0 round 14px);
  display: block;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: none;
  border: none;
}

/* === 話数ラベル === */
.ep-label {
  font-size: 11px;
  margin-top: 4px;
  text-align: center;
  color: #402b24;
}
