* {
  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;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-content {
  position: relative;
  background: #fff;
  padding: 20px;
  max-width: 50vw;
  max-height: 100vh;
  border-radius: 8px;
}
.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}
.modal-nav {
  margin-top: 15px;
  text-align: center;
}
.modal-nav span {
  color: #333;
  font-size: 16px;
  font-weight: bold;
}
.modal-nav button {
  margin: 0 5px;
  padding: 5px 10px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-button:hover {
  background-color: #f0f0f0;
  color: #333;
}


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

@media (max-width: 768px) {
  .main-content img {
    height: auto;  /* 縦横比を保持 */
    max-width: 100%;  /* レスポンシブ対応 */
    display: block;  /* ブロック要素として表示 */
    margin: 0 auto;  /* 中央揃え */
    margin-top: 5%;
  }
  .sidebar-sp{
    display: block; 
  }
  .nav_menu_li_pc{
    display: none; 
  }
  .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;
    }

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

    /* .modal-content {
      position: relative;
      background: #fff;
      padding: 20px;
      max-width: 100vw;
      max-height: 100vh;
      border-radius: 8px;
    }
    
    .modal-content img {
      max-width: 100%;
      max-height: 90vh;
      display: block;
      margin: 0 auto;
      cursor: pointer;
    } */

  }

