* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  min-height: 100vh;
}

li{
  list-style: none;
}

.nav_menu_li_pc{
  width: 100px;  /* 固定幅 */
  height: auto;  /* 縦横比を保持 */
  margin-top: 5px;
}

.new{
  width: 150px;  /* 固定幅 */
  height: auto;  /* 縦横比を保持 */
  margin-top: 5px;
  margin-bottom: 10px;
}

.main-content img {
  height: auto;  /* 縦横比を保持 */
  max-width: 100%;  /* レスポンシブ対応 */
  display: block;  /* ブロック要素として表示 */
  margin: 0 auto;  /* 中央揃え */
  margin-top: 5%;
}

.sidebar{
  background-color: gray;
  min-height: 100vh;
  padding: 15px;
  border-right: 2px solid #000;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.main-content{
  min-height: 100vh;
  padding: 15px;
}

.sitelogo{
  margin-top: 100px;
}

.nav_toggle{
  display: none;
}

.sidebar-sp{
  display: none;
}

.top_SP {
  display: none;
}

/* スマホサイズで見た場合のスタイル */

@media screen and (max-width: 480px) {

  .pc{
    display: none;
  }

  .sidebar-sp{
    display: block; 
  }
  .nav_menu_li{
    width: 100px;  /* 固定幅 */
    height: auto;  /* 縦横比を保持 */
    margin-top: 5px;
  }
  /* ハンバーガーのマーク */
    .nav_toggle {
      display: block;
      position: fixed; /* スクロールに追従 */
      width: 1.75rem;
      height: 1.5rem;
      margin-right: 10px;
      top: 10px; /* 上から10pxの位置 */
      right: 10px; /* 右から10pxの位置 */
      z-index: 1000; /* 他の要素より前面に表示 */
    }
    .nav_toggle i {
      display: block;
      width: 100%;
      height: 2px;
      background-color: #333;
      position: absolute;
      transition: transform 0.5s, opacity 0.5s;
    }
    .nav_toggle i:nth-child(1) {
      top: 0;
    }
    .nav_toggle i:nth-child(2) {
      top: 0;
      bottom: 0;
      margin: auto;
    }
    .nav_toggle i:nth-child(3) {
      bottom: 0;
    }
  
    /* クリックされた後のハンバーガーのマーク */
    .nav_toggle.show i:nth-child(1) {
      transform: translateY(10px) rotate(-45deg);
    }
    .nav_toggle.show i:nth-child(2) {
      opacity: 0;
    }
    .nav_toggle.show i:nth-child(3) {
      transform: translateY(-12px) rotate(45deg);
    }
    .nav_menu_ul li {
      position: absolute;
      top: 50px; /* トップから0pxの位置に設定 */
      width: 100%; /* 幅を100%に設定して全幅を使用 */
      text-align: center; /* テキストを中央揃えに */
    }
    .nav_menu_li img {
      margin-top: 0;  /* 既存のマージンをリセット */
      margin-bottom: 0px;
  }
    /* クリックで表示されるメニュー：クリックされる前 */
    .nav {
      display: flex;
      position: fixed;
      align-items: center;
      justify-content: center;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.5s, visibility 0.5s;
      background-color: #fff;
      z-index: 1;
    }
    .nav_menu_li {
      margin-bottom: 30px;
    }
    .nav_menu_li a {
      color: #000000;
      text-decoration: none;
    }

    .main-content img {
      display: none;
    }
  
    /* クリックで表示されるメニュー：クリックされた後 */
    .nav.show {
      opacity: 1;
      visibility: visible;
    }

    /* スマホ版トップ画像位置 */
    .top_SP {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      padding: 20px;
  }
    .top_SP_img {
      margin-top: 100; 
      display: block;
      width: 25%;  /* 親要素の80%のサイズに設定 */
      max-width: 300px;  /* 最大幅を300pxに制限 */
      height: auto;  /* 縦横比を維持 */
      margin: 30px auto 0;
    }

    .comic_toplink {
      width: 30%;  /* 3列で表示する場合 */
      max-width: 150px;
      height: auto;
      margin: 0;  /* 既存のmarginを削除 */
      margin: 30px auto 0;
    }

  }

