@charset "utf-8";
* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  color: #454545;
  line-height: 2;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template:
    "header main" auto
    "header footer" 60px
    / 300px auto;
}

body::before {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index:-999;
    width: 100vw;
    height: 100vh;
    background: url("../images/bgimg.png") no-repeat;
    -webkit-background-size: contain;
    background-size: contain;
    background-position: right bottom;
    opacity: 0.3;
    content: "";
}

/* ナビゲーション */
header {
  grid-area: header;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  padding: 40px 0;
  background-color: #ffffff;
}
h1 {
  margin: 40px 0 60px 0;
  padding: 0;
  text-align: center;
}
h1 img {
  width: 160px;
}
.menu-content ul {
  padding-left: 0;
  list-style: none;
}
.menu-content ul li {
  margin-bottom: 40px;
  text-align: center;
}
a:link {
  text-decoration: none;
  color: #333333;
}
a:hover {
  text-decoration: none;
  color: #333333;
}
a:active {
  text-decoration: none;
  color: #333333;
}
a:visited {
  text-decoration: none;
  color: #333333;
}
#menu-btn-check {
  display: none;
}

/* コンテンツ */
main {
  grid-area: main;
}

#contents {
  width: 60%;
  margin: 0 auto;
  padding: 0;
  
}

#contents h3 {
  position: relative;
  margin: 0 auto 40px;
  padding: 12px;
  font-size: 1.6rem;
  font-weight: normal;
  text-align: center;
}

.borderLine:before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  border-bottom: solid 2px #999;
  transform: translateX(-50%);
  animation: border_anim 1s linear forwards;
}

@keyframes border_anim {
  0%{
    width: 0%;
  }
  100%{
    width: 100%;
  }
}

#contents h4 {
  margin-bottom: 30px;
  font-size: 1.25rem;
  font-weight: normal;
  text-align: center;
}

#contents p {
  padding: 0 20px;
  font-size: 0.9rem;
  margin-bottom: 40px;
  text-align: justify;
}

#contents ul {
  margin-bottom: 40px;
  padding: 0 20px;
}

#contents ul li {
  list-style-type: none;
  font-size: 0.9rem;
}


/* フッター */
footer {
  grid-area: footer;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0);
}

footer p {
  text-align: center;
  font-size: 0.8rem;
}

/* モバイル */
@media (max-width: 767px) {

  body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template:
      "header" 110px
      "main" 1fr
      "footer" 60px;
  }

  /* ナビゲーション */
  header {
    grid-area: header;
    width: 100%;
    height: 80px;
    padding: 30px 0 0 0;
    position: fixed;
    top: 0;
    left: 0; /*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .menu-content {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 100px;
    left: 100%; /*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color: rgba(31, 31, 31, 0.9);
    transition: all 0.2s; /*アニメーション設定*/
  }
  .menu-content ul {
    padding: 20px 10px 0;
  }
  .menu-content ul li {
    border-bottom: solid 1px #ffffff;
    list-style: none;
    margin-bottom: 10px;
    padding: 4px 40px 16px;
  }
  .menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 15px 0 0;
    position: relative;
  }
  .menu-content ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
  }
  #menu-btn-check:checked ~ .menu-content {
    left: 0%; /*メニューを画面内へ*/
  }
h1 {
  position: absolute;
  top:-10px;
  left: 40px;
}
  h1 img {
    width: 160px;
  }

  /* ハンバーガー */
  .menu-btn {
    position: fixed;
    top: 25px;
    right: 10px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: rgba(255, 255, 255, 0);
  }
  .menu-btn span,
  .menu-btn span:before,
  .menu-btn span:after {
    content: "";
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #1f1f1f;
    position: absolute;
  }
  .menu-btn span:before {
    bottom: 8px;
  }
  .menu-btn span:after {
    top: 8px;
  }
  #menu-btn-check:checked ~ .menu-btn span {
    background-color: #1f1f1f00; /*メニューオープン時は真ん中の線を透明にする*/
  }
  #menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
  }
  #menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* コンテンツ */
  main {
    grid-area: main;
    height: 100%;
  }
  #contents {
    width: 90%;
    margin: 0 20px;
  }

  #contents h2 {
    font-size: 1.5rem;
  }
  #contents h3 {
    font-size: 1.25rem;
  }
  #contents p {
    padding: 0;
    font-size: 0.9rem;
    margin-bottom: 40px;
  }

  /* フッター */
  footer {
    grid-area: footer;
    padding: 8px;
  }
}
