.headerURL1 p{
  margin-top: 5px;
  color: #333;
}

@media screen and (min-width:1024px) {

  .af_header2023 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    list-style: none;
  }


  /* ----ヘッダー全体---- */
  .af_header2023 {
    background-color: white;
    width: 100%;
    position: fixed;
    z-index: 999999999;
  }
  #js-scroll{
    height:10.5rem;
    transition: all 0.2s;
  }
  .afHeaderBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 90%;
    margin: 0 auto;
  }
  /* 左ロゴ */
  .headerLogoImg {
    width: 90px;
  }

  /* 右ナビゲーション１ */
  .headerNavBox1 {
    display: flex;
    width: auto;
    align-items: center;
    border: 2px solid #F2F2F2;
    padding: 1.5rem 1rem;
    font-size: 1.5rem;
  }
  .headerItem1 {
    height: 3rem;
    padding: 0 1rem;
  }
  .headerURL1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  .headerNavImg1 {
    height: 100%;
  }
  .headerURL1:hover {
    opacity: 0.7;
    color: inherit;
  }
  .headerNavUl {
    display: flex;
    align-items: center;
  }
  .headerNavUl p {
    font-size: 1.2rem;
  }
  /* 右ナビゲーション２ */
  .headerNavBox2 {
    display: flex;
    align-items: center;

    font-size: 1.5rem;
  }
  .headerItem2 {
    height: 3rem;
    padding: 0 2rem;
  }
  .headerURL2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .headerURL2 > p{
    color: #000;
    margin-top: 3px;
  }
  .headerURL2:hover {
    opacity: 0.7;
    color: inherit;
  }
  .headerNavImg2 {
    height: 100%;
  }
  .headerBtn {
    display: none;
  }
  .ham_container {
    display: none;
  }
  #js-scroll.jsActive{
    height: 7.5rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  }
}

{#-----------------------------------------------1024px以下-----------------------------------------------------#}
@media screen and (max-width: 1024px) {

  .af_header2023 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    list-style: none;
  }


  /* ----ヘッダー全体---- */
  .af_header2023 {
    background-color: white;
    width: 100%;
    height:5rem;
    box-shadow: 0 6px 4px 0 #F2F2F2; 
    position: fixed;
    z-index: 999999999;
  }
  .afHeaderBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 90%;
    margin: 0 auto;
    position: relative;
  }
  /* 左ロゴ */
  .headerLogoImg {
    width: 70px;
  }
  .headerNavUl {
    display: none;
  }

  {#---------------toggleボタンで開閉のCSS---------------------#}

  {#トグルボタン#}
  .headerBtn {
    display: flex;
    height: 25px;
    width: 20px;
    cursor: pointer;
    align-items: center;
  }
  {#解除時のハンバーガーボタン#}
  .headerBtn span {
    display: block;
    background-color: #00A5D9;
    height: 3px;
    width: 20px;
    border-radius: 4px;
    position: absolute;
    transition: all .5s;
  }
  .headerBtn span:nth-child(1) {
    top: 4px;
  }
  .headerBtn span:nth-child(3) {
    bottom: 4px;
  }
  {#アクティブ時のハンバーガーボタン#}
  .active span {
    display: block;
    background-color: #00A5D9;
    height: 3px;
    width: 20px;
    border-radius: 4px;
    position: absolute;
  }
  .active span:nth-child(1) {
    transform: translateY(13px) rotate(-315deg);
    top: 0px;
  }
  .active span:nth-child(2) {
    opacity: 0;
    transition: all .3s;
  }
  .active span:nth-child(3) {
    transform: translateY(-9px) rotate(315deg);
    bottom: 0px;
  }
  {#ハンバーガー押したら表示されるコンテンツ#}
  .ham_container {
    background-color: white;
    position: fixed;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
    width: 100%;
  }    
  .open {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    overflow: scroll;
    height: 100%;
  }
  .ham_item {
    height: 9.4rem;
    border-bottom: 2px solid #D9D9D9;
    position: relative;
  }
  .ham_item a::after {
    display: inline-block;
    content: "";
    position: absolute;
    border-top: 3px solid #B2B2B2;
    border-right: 3px solid #B2B2B2;
    transform: rotate(45deg);
    width: 2rem;
    height: 2rem;
    right: 4rem;
  }
  .ham_link {
    display: flex;
    height: 100%;
    font-size: 2.3rem;
    font-weight: 500;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding-left: 4rem;
    color: black;
  }
  #mask {
    display: none;
    transition: all .5s;
  }
  .maskOpen {
    display: block;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.7;
    position: fixed;
    left: 0;
    transition: all .4s;
    cursor: pointer;
  }
  .hamMenuContainer {
    max-width: 560px;
    text-align: center;
    margin: 0 auto;
    padding: 0 32px 50px;
  }
  .hamMenuImg1 {
    width: 80%;
    padding: 40px 0;
  }
  .hamMenuLink {
    display: inline-block;
    padding-bottom: 40px;
  }
  .hamMenuUl1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .hamMenuItems1 {
    display: flex;
    width: 270px;
    height: 120px;
    border: 1px solid #D9D9D9;
    align-items: center;
    justify-content: center;
  }
  .hamMenuItems1_link {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
  }
  .hamMenuItems1_text {
    font-size: 2.4rem;
    display: block;
    color: black !important;
  }
  .hamMenuImg2 {
    width: 80%;
    padding-top: 50px;
  }
  .afNetText {
    font-size: 2.4rem;
    padding-top: 40px;
    position: relative;
    display: inline-block;
  }
  .afNetText::before {
    display: inline-block;
    content: "";
    border-left: 5px solid #F4D23A;
    height: 6rem;
    position: absolute;
    left: -15px;
    top: 45px;
    transform: rotate(-17deg);
    border-radius: 5px;
  }
  .afNetText::after {
    display: inline-block;
    content: "";
    border-left: 5px solid #F4D23A;
    height: 6rem;
    position: absolute;
    right: -15px;
    top: 45px;
    transform: rotate(17deg);
    border-radius: 5px;
  }
  .afNetButton {
    padding: 20px 0;
    display: inline-block;
  }
  .hamMenuImg3 {
    width: 90%;
    padding: 50px 0;
  }
  .hamMenuUl2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11rem;
    gap: 20px;
  }

  .hamMenuItems2 {
    display: flex;
    width: 270px;
    height: 120px;
    border: 1px solid #D9D9D9;
    align-items: center;
    justify-content: center;
  }
  .hamMenuItems2_link {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    font-size: 2.4rem;
  }
  .hamMenuItems2_img {
    width: 50px;
  }
  .hamMenuItems2_text {
    font-size: 2.4rem;
    display: block;
  }
}
@media screen and (max-width: 550px) {
  .hamMenuItems1_text {
    font-size: 1.8rem;
    display: block;
  }
  .hamMenuItems2_text {
    font-size: 1.8rem;
    display: block;
  }
  .hamMenuItems1_img {
    width: 3rem;
  }
  .hamMenuItems2_img {
    width: 3rem;
  }
}

