* {
    margin: 0;
    padding: 0;
  }
  *, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
  }

    /* z-index */
    #overlay {
      z-index: 200;
    }
    #sidebar {
      /* z-index: 300; */
    }
    #nav-toggle {
      z-index: 400;
    }

html{
    width: 30%;
}
header{
    padding-top: 5px;
    position: fixed;
    justify-content: space-between;
    display: flex;
    width: 100%;
    background-color: #fff;
    z-index: 300;
}
.container{
  z-index: 200;
}
  html,body {
    height: 100%;
  }

  .header-spacing{
      padding-top: 65px;
  }

  body {
    font-size: 14px;
    font-family: 'Lato', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    /* background: #eee; */
    -webkit-text-size-adjust: 100%;
  }
  
  /* #main {
    background: #eee;
  } */
  #main-in {
    padding-left: 260px;
  }
  #main p {
    margin-bottom: 1em;
    line-height: 1.9;
  }
  #main .inner {
    padding: 60px;
  }
  
  /* main-visual */
  #main-visual {
    background: #64CE80;
    background: -webkit-linear-gradient(-45deg, #64CE80, #C68BC4);
    background: -moz-linear-gradient(-45deg, #64CE80, #C68BC4);
    background: -ms-linear-gradient(-45deg, #64CE80, #C68BC4);
    background: -o-linear-gradient(-45deg, #64CE80, #C68BC4);
    background: linear-gradient(-45deg, #64CE80, #C68BC4);
    height: 400px;
    display: flex;
  
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
  #main-visual h2 {
    font-size: 180%;
    color: #fff;
  }

  h3 {
    font-size: 131%;
    margin-bottom: .7em;
  }
  h4 {
    font-size: 20px;
  }
  #copyright a {
    color: #666;
    text-decoration: none;
  }
  #copyright a:hover {
    text-decoration: underline;
  }
  
  img{
    z-index: 50;
  }

  /* ここから */
  #global-head {
    position: fixed;
    color: #033560;
    width: 260px;
    text-align: center;
    padding-top: 60px;
    z-index: 100;
  }
  
  #sidebar {
    font-size: 15px;
    /* padding-top: 120px; */
    width: 260px;
    height: 100%;
    position: fixed;
    color: #033560;
    background: #fff;
    text-align: center;
  }
  
  #global-nav ul {
    list-style: none;
    margin-left: 0;
  }
  #global-nav > ul > li {
    position: relative;
    text-align: left;
  }
  
  #global-nav a {
    color: #033560;
    text-decoration: none;
    display: block;
    padding: 15px 0;
    -moz-transition: background-color .3s linear;
    -webkit-transition: background-color .3s linear;
    transition: background-color .3s linear;
  }
  #global-nav .sub-menu.is-active > a,
  #global-nav a:hover {
    color: #fff;
    background: #033560;
  }
  
  #global-nav .sub-menu-nav a,
  #global-nav .sub-menu:hover .sub-menu-nav {
    width: 230px;
  }
  
  /* sub-menu icon */
  #global-nav .sub-menu-head {
    position: relative;
  }
  #global-nav .sub-menu-head:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 18px;
    margin: auto;
    vertical-align: middle;
    width: 8px;
    height: 8px;
    border-top: 1px solid #033560;
    border-right: 1px solid #033560;
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  
  
  /* sub-menu */
  #global-nav .sub-menu-nav {
    position: fixed;
    background: #033560;
    color: #fff;
    top: 0;
    padding-top: 90px;
    left: 260px;
    width: 0;
    height: 100%;
    overflow: hidden;
  
    -moz-transition: width .2s ease-out;
    -webkit-transition: width .2s ease-out;
    transition: width .2s ease-out;
  }
  #global-nav .sub-menu.is-active > a:after,
  #global-nav .sub-menu-head:hover:after {
    border-color: #fff;
  }
  #global-nav .sub-menu-nav a {
    color: #fff;
  }
  #global-nav .sub-menu-nav a:hover {
    color: #033560;
    background: #fff;
  }
  
  
  /* nav-toggle */
  #nav-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    height: 32px;
  }
  #nav-toggle > div {
    position: relative;
    width: 32px;
  }
  #nav-toggle span {
    width: 100%;
    height: 2px;
    left: 0;
    display: block;
    background: #033560;
    position: absolute;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
  }
  
  #nav-toggle span:nth-child(1) {
    top: 0;
  }
  #nav-toggle span:nth-child(2) {
    top: 11px;
  }
  #nav-toggle span:nth-child(3) {
    top: 22px;
  }
  
  
  #overlay {
    display: none;
    position: fixed;
    background: rgba(0,0,0,.6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  
  
  @media screen and (max-width: 900px) {
      html{
        width: 100%;
    }
    #main-in {
      padding-left: 0;
    }
  
    img{
        max-width: 80%;
        
    }

    #global-head {
      width: 100%;
      padding: 10px;
      background: rgba(255,255,255,.8);
      display: -webkit-flex;
      display: flex;
    }
  
    #sidebar {
      /*display: none;*/
      position: fixed;
      right: -300px;
      top: 0;
      height: 100%;
      width: 300px;
      color: #333;
      background: #fff;
      -webkit-transition: .35s ease-in-out;
      transition: .35s ease-in-out;
    }
  
    /* サブメニューは開けない */
    #global-nav .sub-menu-head:after,
    #global-nav .sub-menu-nav {
      display: none;
    }
    #nav-toggle {
      display: block;
    }
  
    /* nav open */
    .open {
      overflow: hidden;
    }
    .open #overlay {
      display: block;
    }
    .open #sidebar  {
      -webkit-transform: translate3d(-300px,0,0);
      transform: translate3d(-300px,0,0);
    }
  
    /* #nav-toggle close */
    .open #nav-toggle span:nth-child(1) {
      top: 11px;
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      transform: rotate(45deg);
    }
    .open #nav-toggle span:nth-child(2) {
      width: 0;
      left: 50%;
    }
    .open #nav-toggle span:nth-child(3) {
      top: 11px;
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      transform: rotate(-45deg);
    }
  
  
  
  }
  
  @media screen and (max-width: 400px) {
    html {
        width: 100%;
    }
    img{
        max-width: 80%;
    }
    #sidebar {
      right: -200px;
      width: 200px;
      padding-top: 60px;
    }
    .open #sidebar  {
      -webkit-transform: translate3d(-200px,0,0);
      transform: translate3d(-200px,0,0);
    }
  }
#global-head {
    position: fixed;
    color: #033560;
    width: 260px;
    text-align: center;
    padding-top: 60px;
    z-index: 100;
}
 
#sidebar {
    font-size: 15px;
    /* padding-top: 120px; */
    width: 260px;
    height: 100%;
    position: fixed;
    color: #033560;
    background: #fff;
    text-align: center;
}
 
#global-nav ul {
    list-style: none;
    margin-left: 0;
}
#global-nav > ul > li {
    position: relative;
}
 
#global-nav a {
    color: #033560;
    text-decoration: none;
    display: block;
    padding: 15px 0;
    transition: background-color .3s linear;
}
 
/* sub-menu */
#global-nav .sub-menu-nav {
    position: fixed;
    background: #033560;
    color: #fff;
    top: 0;
    padding-top: 90px;
    left: 260px;
    width: 0;
    height: 100%;
    overflow: hidden;
    transition: width .2s ease-out;
}
#global-nav .sub-menu-nav a,
#global-nav .sub-menu:hover .sub-menu-nav {
    width: 230px;
}
 
/* nav-toggle */
#nav-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    height: 32px;
}
 
#overlay {
    display: none;
    position: fixed;
    background: rgba(0,0,0,.6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
h1 {
    background: #198754;/*背景色*/
    padding: 0.5em;/*文字まわり（上下左右）の余白*/
    font-size:  1.5rem;
    width: 90%;
    border-radius:30px;
  }
  h2 {
    font-size:  1.5rem;
    padding: 0.5em;/*文字まわり（上下左右）の余白*/
  }
  h3 {
    background: #6bcfa0;/*背景色*/
    border-radius:30px;
    font-size:  1.5rem;
    padding: 5px 0;
  }
  
 
@media screen and (max-width: 900px) {
    html{
        width: 100%;
    }
    img{
        max-width: 80%;
    }
    #main-in {
        padding-left: 0;
    }
 
    #global-head {
        width: 100%;
        padding: 10px;
        background: rgba(255,255,255,.8);
        display: flex;
    }
 
    #sidebar {
        position: fixed;
        right: -300px;
        top: 0;
        height: 100%;
        width: 300px;
        color: #333;
        background: #fff;
        transition: .35s ease-in-out;
    }
 
    /* サブメニューは開けない */
    #global-nav .sub-menu-head:after,
    #global-nav .sub-menu-nav {
        display: none;
    }
    #nav-toggle {
        display: block;
    }
 
    /* nav open */
    .open {
        overflow: hidden;
    }
    .open #overlay {
        display: block;
    }
    .open #sidebar  {
        transform: translate3d(-300px,0,0);
    }
 
    /* #nav-toggle close */
    .open #nav-toggle span:nth-child(1) {
        top: 11px;
        transform: rotate(45deg);
    }
    .open #nav-toggle span:nth-child(2) {
        width: 0;
        left: 50%;
    }
    .open #nav-toggle span:nth-child(3) {
        top: 11px;
        transform: rotate(-45deg);
    }
 
    /* z-index */
    #overlay {
        z-index: 200;
    }
    #nav-toggle {
        z-index: 400;
    }
    #sidebar {
        /* z-index: 300; */
    }
}