@charset "utf-8";

/* PC View */
@media print, screen and (min-width:650px) {
  #sp_top_menu{
    display: none;
  }
}

/* Smart Phone View */
@media only screen and (max-width: 649px) {

  #sp_top_menu{
    width: 100%;
    height: 64px;
    display: block;
    position: fixed;
    z-index: 1500;
    top: 0;
    background-color: #FFFFFF;
    overflow: hidden;
    
    border-bottom: solid 1px #aaa;
  }
  
  .sp_top_menu_title{
    margin-left: 5%;
    padding-top: 6px;
  }
}

  
  /* ------------------------------
  /* ハンバーガーメニュー */
  /* ------------------------------*/
/* PC View */
@media print, screen and (min-width:650px) {
  .drawer-open {
      display: none;
  }
  .sp_top_menu_btn{
      display: none;
  }
}

/* Smart Phone View */
@media only screen and (max-width: 649px) {
  /* チェックボックスは非表示に */
  .drawer-hidden {
      display: none;
  }

  /* ハンバーガーアイコンの設置スペース */
  .drawer-open {
    display: flex;
    height: 1px;
    width: 60px;
    justify-content: center;
    align-items: center;
    position: relative;
    position: fixed;
    top: 25px;
    right: 0;
    margin-right: 2%;
    z-index: 1510;
    cursor: pointer;
  }
  .hb_menu p{
    color: #000000;
    display: block;
    position: fixed;
    top: 36px;
    right: 22px;
    font-size: 1rem;   
    z-index: 1520;
  }
  /* ハンバーガーメニューのアイコン */
  .drawer-open span,
  .drawer-open span:before,
  .drawer-open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #333;
    transition: 0.5s;
    position: absolute;
  }

  /* 三本線のうち一番上の棒の位置調整 */
  .drawer-open span:before {
    bottom: 8px;
  }

  /* 三本線のうち一番下の棒の位置調整 */
  .drawer-open span:after {
    top: 8px;
  }

  /* アイコンがクリックされたら真ん中の線を透明にする */
  #drawer-check:checked ~ .drawer-open span {
    background: rgba(51, 51, 51, 0);
  }
  #drawer-check:checked ~ .drawer-open span:before,
  #drawer-check:checked ~ .drawer-open span:after{
    background: rgba(51, 51, 51, 1);
  }

  /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
  #drawer-check:checked ~ .drawer-open span::before {
    bottom: 0;
    transform: rotate(45deg);
  }

  #drawer-check:checked ~ .drawer-open span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* メニューのデザイン*/
  .accordion {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 64px;
    right: 100%;/* メニューを画面の外に飛ばす */
    z-index: 1000;
    overflow-y: auto;
    background: rgba(45,45,45,0.40);
    /*transition: 0.5s;*/
    overflow: hidden;
    right: 0;
    opacity: 0;
    pointer-events: none;
  }
  .accordion_contents {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 120px;
  }
  /* アイコンがクリックされたらメニューを表示 */
  #drawer-check:checked ~ .accordion {
    right: 0;/* メニューを画面に入れる */
    transition: 0.5s;
    opacity: 1.0;
    pointer-events: auto;
  }

  #drawer-check:checked ~ .sp_top_menu_title {
    background-color: #000000;
  }

  /* ------------------------------
  /* アコーディオン */
  /* ------------------------------*/
  /* チェックボックスは非表示 */

  .accordion-hidden{
    display: none;
  }
  .accordion-open a,
  .accordion-open a:visited,
  .accordion-close a,
  .accordion-close a:visited,
  .accordion-none a,
  .accordion-none a:visited{
    color: #ffffff;
    padding-left: 30px;
  }
  .accordion-open a:before,
  .accordion-none a:before{
    content:"";
    position:absolute;
    margin-left: 10px;
    width:calc(30px/3.5);
    height:calc(30px/3.5);
    background:rgba(200,200,200,0);
    border:calc(30px/8) solid #FFFFFF;
    border-right:none;
    border-top:none;
    top:16px;
    bottom:0;
    left:0;
    right:calc(30px/8);
    transform:rotate(-135deg);
    box-sizing:content-box;
  }

  /* Black部分 */
  .accordion-open,
  .accordion-none{
    display: block;
    padding: 10px;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    position: relative;/* 変更部分 */
    border-bottom: solid 1px #ffffff;
  }
  .accordion-none a{
    display: block;
    width: 100%;
  }

  /* 入れ子 --------*/
  /* 開閉状態を示すアイコン+の作成 */
  .accordion-open::before,
  .accordion-open::after {
    content: '';
    width: 15px;
    height: 2px;
    background: #ffffff;
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
  }

  /* 一本は縦にして+を作る */
  .accordion-open::after {
    transform: translateY(-50%) rotate(90deg);
    transition: .5s;
  }

  /* アコーディオンが開いたら縦棒を横棒にして-にする */
  .accordion-hidden:checked + .accordion-open:after {
    transform: translateY(-50%) rotate(0);
  }

  /* 入れ子表示 */
  .accordion-close {
    display: block;
    height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    /*transition: all 0.5s;/* 表示速度の設定 */
  }
  .accordion-close a{
    width: 100%;
    display: block;
    padding: 10px;
    border-bottom: solid 1px #ffffff;
    padding-left: 40px;
  }

  /* チェックボックスにチェックが入ったら入れ子部分を表示する */
  .accordion-hidden:checked + .accordion-open + .accordion-close {
    height: auto;
    opacity: 1;
    padding: 0px;
    background: #403D3C;
    font-weight: 400;
  }

}
