#item_header_div2 {
  margin: 30vh 10vw 4vh 10vw;
}

#item_title {
  font-size: 6vw;
  font-family: Cormorant;
  line-height: 3vh;
}

.item_T {
  color: #b90000;
}

#item_title_ja {
  font-size: 3vw;
  font-weight: bold;
}

.red_letter {
  color: #b90000;
  font-weight: bold;
  font-size: 1.1vw;
}


#pankuzu {
  font-size: 1vw;
  font-weight: bold;
  margin: 0 0 10vh 0;
}

#pankuzu ol {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: right;
}

#pankuzu li {
  padding: 1vh 1vw 1vh 0.5vw;
  position: relative;
}

#pankuzu li:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

#pankuzu a {
  text-decoration: none;
  color: #000000;
}

/* アコーディオンメニューここから */

.aco_menu {
  margin: 0 10vw 6vh 10vw;
  font-size: 1.1vw;
  display: flex;
  justify-content: space-between;
}

.submenu h3 {
  cursor: pointer;
  padding: 10px 20px;
  text-decoration: none;
  border: solid 1px;
  border-color: #808080;
  color: #000000;
  width: 25vw;
  height: auto;
  text-align: center;
}

.submenu h3 img {
  float: right;
  width: 1vw;
}

.submenu ul {
  list-style-type: none;
  padding: 0;
}

.submenu li {
  padding: 10px 20px;
  text-decoration: none;
  border: solid 1px;
  border-color: #808080;
  color: #000000;
  width: 25vw;
  height: auto;
  text-align: center;
}

.hidden {
  display: none;
}

/* アコーディオンメニューここまで */

#item_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  gap: 1.5vw;
  margin: 0 10vw 2vh 10vw;
  font-size: 1.1vw;
  font-weight: bold;
}

#item_grid div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

#item_grid p {
  line-height: 6vh;
}

#item_grid img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
}

#item_num {
  display: flex;
  justify-content: center;
  color: #b90000;
}

#item_num a {
  text-decoration: none;
  border: solid 1px;
  border-color: #b90000;
  padding: 0.5vh 0.8vw 0.5vh 0.8vw;
  font-size: 1.1vw;
  font-weight: bold;
}

#item_num ul {
  list-style-type: none; /* リストマーカーを非表示に */
  padding: 0; /* パディングをリセット */
  display: flex; /* フレックスボックスで横並びに */
  justify-content: center;
  width: 10vw;
}

#item_num li {
  padding: 10px 20px; /* 各アイテムの内側にパディング */
  position: relative; /* 擬似要素のために相対位置に */
}

#red_num {
  background-color: #b90000;
  color: #ffffff;
}

#item_num li:not(:last-child)::after {
  content: ""; /* 擬似要素の内容 */
  position: absolute; /* 絶対位置 */
  right: 0; /* アイテムの右端に配置 */
  top: 50%; /* 垂直中央に配置 */
  transform: translateY(-50%); /* 垂直中央揃え */
}

@media screen and (max-width: 1271px) {
  #item_title {
    font-size: 9vw;
  }

  #item_title_ja {
    font-size: 4.5vw;
  }

  #pankuzu {
    font-size: 1.5vw;
  }

  #pankuzu li {
    padding: 1vh 1.5vw 1vh 0.5vw;
  }

  .aco_menu {
    font-size: 1.6vw;
  }

  .submenu h3 img {
    width: 2vw;
  }

  #item_grid {
    font-size: 1.6vw;
  }

  #item_num a {
    font-size: 1.6vw;
  }
}

@media screen and (max-width: 767px) {
  #item_header_div2 {
    height: 7vh;
    margin: 8vh 5vw 0vh 5vw;
  }

  #item_title {
    font-size: 10vw;
    line-height: 5vh;
    
    
  }

  .red_letter {
    font-size: 3vw;
  }

  #pankuzu {
    font-size: 3vw;
  }

  #pankuzu a {
    margin: 0 2vw 0 2vw;
  }

  #pankuzu li {
    padding: 1vh 1.5vw 1vh 1.5vw;
  }

  /* アコーディオンメニューここから */

  .aco_menu {
    margin: 0;
    margin: 17vh 5vw 4vh 5vw;
    font-size: 4vw;
    flex-flow: column;
  }

  .submenu h3 {
    cursor: pointer;
    padding: 2vh 2vw;
    margin: 2vh 0 0 0;
    text-decoration: none;
    border: solid 1px;
    border-color: #808080;
    color: #000000;
    width: 100%;
    height: auto;
    text-align: center;
    font-weight: bold;
  }

  .submenu h3 img {
    float: right;
    width: 4vw;
  }

  .submenu li {
    padding: 2vh 2vw;
    text-decoration: none;
    border: solid 1px;
    border-color: #808080;
    color: #000000;
    text-align: center;
    width: 100%;
  }

  .hidden {
    display: none;
  }

  /* アコーディオンメニューここまで */

  #item_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    justify-content: center;
    align-items: center;
    gap: 5vw;
    margin: 0 5vw 2vh 5vw;
    font-size: 3.5vw;
  }

  #item_grid div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
  }

  #item_grid p {
    line-height: 6vh;
  }

  #item_grid img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
  }

  #item_num ul {
    display: flex;
    justify-content: center;
    width: 40vw;
    margin: 3vh 0 0 0;
  }

  #item_num a {
    padding: 0.1vh 3vw 0.1vh 3vw;
    font-size: 5vw;
    font-weight: bold;
  }

 
}
