/* -------------------------------------------------- 参考： https://webmoyou.com/web/1182/ */

#header{
    max-width: 100%;
    width: 100%;
    border-bottom: 1px solid #888;
}
#header a{
    text-decoration: none;
    color: #000;
}

#logo{
    font-size: 160%;
    font-weight: 700;
    max-width: 530px;
}

#header .header_wrap{
    padding: 10px 20px 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
}

#header ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-weight: 600;
}

#nav li a {
    display: block;
    position: relative;
    padding: 10px 15px 15px;
}





/* ---------------------------------------------------------------------- 文字サイズ変更ボタン */
/* 参考：https://toshikilog.net/fontsize-change/ */
.bl_sizeBtn_wrap {
    position: absolute;
    top: 5px;
    right: 15px;
    align-items: flex-end;
    display: inline-flex;
    font-weight: 600;
}
    
.bl_sizeBtn_wrap > span {
    font-size: 14px;
    letter-spacing: 0.05em;
}
    
.bl_sizeBtn_wrap > * + * {
    margin-left: 10px;
}
    
.bl_sizeBtn {
    background-color: #ddd;
    border-radius: 4px;
    color: #666;
    padding: 3px 5px;
    transition: opacity 0.4s;
}
    
.bl_sizeBtn:first-of-type {
    font-size: 13px;
}
    
.bl_sizeBtn:nth-of-type(2) {
    font-size: 16px;
}
    
.bl_sizeBtn:nth-of-type(3) {
    font-size: 19px;
}
    
/* 選択したボタンのスタイル */
.bl_sizeBtn.active {
    background-color: #26499d;
    color: #fff;
}





/* ---------------------------------------------------------------------- design */
header #nav .nav_sub{
    font-size: 80%;
    display: flex;
    justify-content: flex-end;
}

header #nav .nav_sub li a{
    display: block;
    margin: 0.5rem;
    padding: 0.3rem 1rem;
    border: 2px solid #000;
    border-radius: 1.7rem;
}
header #nav .nav_sub li a:hover{
    border: 2px solid #26499d;
    background-color: #26499d;
    color: #fff;
}

header dl{
    margin: 0;
    border-left: none;
    text-align: center;
}






/* -------------------------------------------------- ドロップダウンメニュー */
.gnavi__wrap {
    max-width: 100%;
    width: 100%;
}
.gnavi__lists {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.gnavi__list {
    position: relative;
}

.gnavi__list a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: all .3s;
}
.gnavi__list a:has(+ ul)::before, .gnavi__list a:has(+ ul)::after{
  display: block;
  content: "";
  position: absolute;
  top: 0; 
  right: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 10px;
  height: 1.5px;
  background: #26499d;
}
.gnavi__list a:has(+ ul)::after {
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
}


.sub-menu {
    display: none;/*デフォルトでは非表示の状態にしておく*/
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
}
.gnavi__list:hover .sub-menu {
    display: block;/*Gナビメニューにホバーしたら表示*/
}
.dropdown__list {
    background-color: #fff;
    min-width: 19em;
    transition: all .3s;
    position: relative;
    z-index: 100;
}


.dropdown__list a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    position: relative;
}
.dropdown__list a:hover{
    background-color: #f6f6f6;
}
.dropdown__list a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #26499d;
    border-left: 2px solid #26499d;
    transform: rotate(135deg);
    position: absolute;
    right: 15px;
    top: calc(50% - 5px);
}
.dropdown__list a:hover::before {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
}





/* -------------------------------------------------- 上メニューボタン */
#nav .topmenu{
    position: absolute;
    top: 15px;
    right: 0;
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
    padding: 0;
    margin: 0.3rem 1em 0 0;
}
#nav .topmenu li a{
    padding: 0.5em 1em;
    border: 2px solid #FFC107;
    background-color: #FFC107;
    display: block;
    border-radius: 0.4rem;
    font-weight: bold;
    transition: .5s;
    text-decoration: none;
}
#nav .topmenu li a:hover{
    background-color: #fff;
    color: #000;
}





@media only screen and ( max-width : 767px ) {
  #main {
    transition: all .5s;
    min-height: 100vh;
  }
  #main.open {
    position: fixed;
    width: 100%;
  }
    .bl_sizeBtn_wrap {
        top: 10px;
        right: 45px;
    }
    
    
    
    
    /* -------------------------------------------------- ドロップダウンメニュー */
    #nav .gnavi__lists {
        display: block;
        font-size: 140%;
        margin-top: 1rem;
    }
    .gnavi__list {
        max-width: 100%;
        width: 100%;
        height: auto;
        background-color: transparent;
    }
    .gnavi__list a{
        display: block;
        padding: 0.5rem 0;
    }
    
    #nav ul.sub-menu{
        display: block;
        position: static;
        margin-top: 0;
    }
    
    #nav .dropdown__list{
        background-color: transparent;
        padding: 0 0 0 1rem;
    }





  /* -------------------------------------------------- メニューボタン */
  #menu_btn {
    top: 0;
    right: 0;
    transition: .3s;
    cursor: pointer;
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-trigger {
    width: 30px;
    height: 25px;
    position: relative;
  }
  .menu-trigger span {
    display: inline-block;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #000;
    transition: all .5s;
  }
  .menu-trigger span:nth-of-type(1) {
    top: 0;
  }
  .menu-trigger span:nth-of-type(2) {
    top: 12px;
  }
  .menu-trigger span:nth-of-type(3) {
    bottom: 0;
  }
  #menu_btn.active .menu-trigger span:nth-of-type(1) {
    transform: translateY(11px) rotate(-45deg);
      background-color: #fff;
  }
  #menu_btn.active .menu-trigger span:nth-of-type(2) {
    opacity: 0;
  }
  #menu_btn.active .menu-trigger span:nth-of-type(3) {
    transform: translateY(-13px) rotate(45deg);
      background-color: #fff;
  }





  /* -------------------------------------------------- メニュー部分 */
  #nav {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 60px 0;
    background: #315fcc;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 12;
    transform: translate(100%);
    transition: all .5s;
  }

  #nav.open {
    transform: translateZ(0);
  }

  #nav ul{
      margin-top: 3em;
  }

  #nav li a {
      position: relative;
      color: #fff;
  }
    
    #nav li a dl{
        display: flex;
    }
    
    #nav li a dl dt{
        color: #fff;
    }
    
    .dropdown__list a{
        font-weight: 400;
        font-size:85%;
    }
    .dropdown__list a:hover{
        background-color: transparent;
    }
    
    #nav ul.nav{
        background-color: transparent;
        font-size: 150%;
    }


  /* -------------------------------------------------- 上メニューボタン */
    #nav .topmenu{/* メニュー */
        position: static;
        display: block;
        margin: 3rem auto 0;
        text-align: center;
    }
    
    #nav .topmenu li a{
        min-width: 12em;
        max-width: 80%;
        font-size: 150%;
        margin-left: auto;
        margin-right: auto;
        padding: 0.6rem;
    }
}





/* ------------------------------------------------------ 1075px */
@media screen and (max-width: 1075px){
    #nav .topmenu li a{
        padding: 0.3em 0.6em;
    }
}





/* ------------------------------------------------------ 767px */
@media screen and (max-width: 767px){    
    #logo{
        font-size: 130%;
        padding-right: 30px;
    }
    .bl_sizeBtn_wrap {
        top: 10px;
        right: 45px;
    }
    
    header #nav .nav_sub{
        justify-content: center;
    }

    header #nav .nav_sub li a{
        border: 2px solid #fff;
    }
    
    #nav ul.nav li{
        margin: 0.5rem 2rem;
        padding: 0.5rem 0;
        border-bottom: 2px dotted #fff;
    }
    
    .dropdown__list{
        min-width: auto;
    }

    .gnavi__list:not(:first-child)::before, 
    .dropdown__list:not(:first-child)::before{
        background-color: transparent;
    }

    .gnavi__list a:has(+ ul)::before, .gnavi__list a:has(+ ul)::after, .dropdown__list a::before{
      display: none;
    }
}





/* ------------------------------------------------------ 540px */
@media screen and (max-width: 540px){
    
}





/* ------------------------------------------------------ 360px */
@media screen and (max-width: 360px){
    
}