/* =========================
   PC
========================= */
@media screen and (min-width: 720px){
  body{
    margin: 0;
    padding: 130px 30px 100px 340px;
    background: repeating-linear-gradient(
      45deg,
      #111,
      #111 2px,
      #222 2px,
      #222 4px
    );
    background-attachment: fixed;
    font-size: 135%;
    letter-spacing: 0.05em;
  }

  .bg-overlay-grid{
    width: 100%;
    height: 100%;
    background: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
  }
}

/* =========================
   SP
========================= */
@media screen and (max-width: 720px){
  body{
    font-family: 'PixelMplus', sans-serif;
    margin: 0;
    padding: 170px 0 100px 0; /* ← タイトル画像が上に寄らないように調整 */
    background: repeating-linear-gradient(
      45deg,
      #111,
      #111 2px,
      #222 2px,
      #222 4px
    );
    background-attachment: scroll;
    font-size: 125%;
  }

  .bg-overlay-grid{
    width: 100%;
    height: 100%;
    background: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
  }
}

/* =========================
   スクロールバー
========================= */
::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: #000; }
::-webkit-scrollbar-thumb{ background: #fff; }

/* =========================
   PC/SP 切り替え
========================= */
.pc { display: block !important; }
.sp { display: none !important; }
@media (max-width: 720px){
  .pc { display: none !important; }
  .sp { display: block !important; }
}

/* =========================
   左固定メニュー
========================= */
.side-menu{
  z-index: 5;
  position: fixed;
  top: 150px;
  left: 0;
  width: 300px;
  display: flex;
  flex-direction: column; /* ← wrap ではなく column に変更 */
  margin-left: 15px;

  background: #d8c7a0; /* ← ファミコンのベージュ系 */
  border: 3px solid #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 0 #000;
}

/* =========================
   ヘッダー（最前面）
========================= */
.site-header{
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← タイトル画像の縦位置を安定させる */
  background: rgba(156,46,14,0.9);
}

/* タイトル画像を中央寄せ安定 */
.logo-title img{
  display: block;
  margin: 0 auto;
}

.btn-back{
  color: #fff;
  font-weight: bold;
  background: #962e0e;
  width: 100px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 120%;
  margin: 10px 50px 10px 0;
}

/* =========================
   右側カード型セクション
========================= */
.section-box{
  background: rgba(80,80,80,0.95);
  border: 3px solid #fff;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 1% 20px 5%;
  box-shadow: 0 4px 0 #000;
  position: relative;
  z-index: 1;
}

/* h2（バトル） */
.section-box h2{
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 140%;
}

/* h3（通常バトル / ボスバトル） */
.menu-item-title{
  font-size: 120%;
  font-weight: bold;
  color: #fff;
  margin-right: 10px;
}

/* =========================
   メニューリスト
========================= */
.menu-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item{
  background: rgba(0,0,0,0.4);
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.menu-item-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.menu-item-buttons a{
  margin: 3px;
}

.menu-item-desc{
  color: #fff;
  margin-top: 10px;
  line-height: 1.4;
}

/* =========================
   ボタン
========================= */
.btn,
.btn-small{
  margin: 0.25em;
  display: inline-block;
  padding: 0.25em 0.5em;
  color: #fff;
  background: #dc143c;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid #dc143c;
  text-decoration: none;
}

.btn:hover,
.btn-small:hover{
  background: #ff7f50;
}

.btn-small{
  font-size: 80%;
}

/* =========================
   その他
========================= */
.anchor-offset{
  display: block;
  margin-top:-120px;
  padding-top: 120px;
}

footer{ margin: 15px 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   左メニュー専用ファミコン風
========================= */

.side-menu .btn-small{
  display: inline-block;
  text-align: center;

  padding: 0.3em 0.55em;   /* ← ほんの少しだけ大きく */
  margin: 0.25em;
  font-size: 88%;          /* ← 80% → 88%（控えめ） */

  color: #fff;
  background: #c62828;
  border: 3px solid #ffffff; /* ← 元のまま（太くしない） */
  border-radius: 2px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-decoration: none;

  box-shadow: 0 4px 0 #000;  /* ← 元のまま（影も変えない） */
  transition: transform 0.05s ease-out, box-shadow 0.05s ease-out;
}

.side-menu .btn-small:hover{
  background: #ff5252;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000;
}

.side-menu .btn-small:active{
  transform: translateY(4px);
  box-shadow: 0 0 0 #000;
}


/* =========================
   フッターの位置
========================= */
.footer-area{
  text-align: center;   /* 中央寄せ */
  margin: 20px 0 40px;  /* 上下の余白 */
}

.footer-license{
  display: inline-block;        /* 背景を文字幅に合わせる */
  padding: 8px 20px;            /* 余白 */
  background: rgba(32,32,32,0.9);
  color: #fff;
  border-radius: 6px;           /* お好みで */
  border: 3px solid #fff;       /* レトロ枠（任意） */
  box-shadow: 0 4px 0 #000;     /* レトロ影（任意） */
}


