@charset "utf-8";

/* PC View */
@media print, screen and (min-width:650px) {
  #sp_top_menu{
    display: none;
  }
  .sp_navitop{
    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;
  }
  
  .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: #13325E;
    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: #13325E;
    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(19, 50, 94, 0);
  }
  #drawer-check:checked ~ .drawer-open span:before,
  #drawer-check:checked ~ .drawer-open span:after{
    background: rgba(19, 50, 94, 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: #fff0f2;
    /*transition: 0.5s;*/
    overflow: hidden;
    right: 0;
    opacity: 0;
    pointer-events: none;
  }
  .accordion_contents {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 380px;
  }
  .accordion_contents img{
    padding-bottom: 5px;
    vertical-align: middle;
  }
  /* アイコンがクリックされたらメニューを表示 */
  #drawer-check:checked ~ .accordion {
    right: 0;/* メニューを画面に入れる */
    transition: 0.5s;
    opacity: 1.0;
    pointer-events: auto;
  }

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

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

  .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: #333333;
    padding-left: 15px;
  }
  /* Black部分 */
  .accordion-open,
  .accordion-none{
    display: block;
    padding: 8px 0px 2px 0;
    background: #FFFFFF;
    color: #FFFFFF;
    cursor: pointer;
    margin-right: 5%;
    margin-left: 5%;
    font-weight: 400;
    position: relative;/* 変更部分 */
    margin-top: 8px;
  }
  .accordion-none a{
    display: block;
    width: 100%;
  }

  /* 入れ子 --------*/
  /* 開閉状態を示すアイコン+の作成 */
  .accordion-open::before,
  .accordion-open::after {
    content: '';
    width: 15px;
    height: 2px;
    background: #13325E;
    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;
    position:relative;
    margin-left: 5%;
    margin-right: 5%;
    width: 45%;
    height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    /*transition: all 0.5s;/* 表示速度の設定 */
  }
  .accordion-close a{
    width: 100%;
    display: block;
    padding: 10px;
    border-top: solid 2px #E6E6E6;
    border-right: solid 2px #E6E6E6;
    padding-left: 10px;
  }
  .accordion-hidden:checked + .accordion-open + .accordion-close {
    height: auto;
    opacity: 1;
    padding: 0px;
    background: #E6E6E6;
    font-weight: 400;
  }
  .accordion-close {
    width:90%;
    display: flex; /* 横並びにする */
    flex-wrap: wrap; /* 要素が複数行に折り返されるようにする */
  }
  .accordion-close a {
    display: block;
    text-decoration: none; /* 下線を削除 */
    background-color: #fff; /* 背景色 */
    box-sizing: border-box;
    color: #333333;
  }
  .accordion-close a.detail{
    padding: 12px 0 10px 9px;
    flex: 0 0 calc(50%); /* 2列に並べる */
    position: relative;
    background-image: url("../image/medium_go.png");
    background-repeat: no-repeat;
    background-position: center right 5px;
    padding-right: 18px;
  }
  .accordion-close a.column{
    padding: 12px 10px 10px 25px;
    background-image: url("../image/medium_go.png");
    background-repeat: no-repeat;
    background-position: center right 18px;
    padding-right: 28px;
  }

  .accordion-close a:hover {
    background-color: #E6E6E6; /* ホバー時の背景色 */
  }

  .sp_navitop{
    width: 90%;
    display: block;
    margin-right: 5%;
    margin-left: 5%;
    padding-top: 12px;
    padding-bottom: 7px;
  }
  .sp_navitop::after {
    content: "";
    display: block;
    clear: both;
  }
  .sp_navitop_button{
    width: 33%;
    padding: 0 2%;
    float: left;
  }
  #area_map a{
    width: 90%;
    display: block;
    margin-right: 5%;
    margin-left: 5%;
    padding-top: 20px;
    padding-bottom: 5px;
  }
  #area_map img{
    width: 90%;
    display: block;
    margin-right: 5%;
    margin-left: 5%;
  }
}
