@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500&display=swap');
/*
共通要素やパーツ部分のCSS
*/

:root{
  --main-color: #191970;
  --sub-color: #ededed;
  --accent-color-red: #ff0033;
  --break-point: 980px;
  --fixed-head-height: 92px;
  --fixed-head-height-mobile: 64px;
  --link-hover-color: #dddd00;
  --main-back-color: #ffffff;
}



body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--fixed-head-height);
  background-color: var(--main-back-color);
  font-family: 'Montserrat','Noto Sans JP', sans-serif;
  font-size: 1rem;
}

body > section{
  width: 100%;
  padding: 0;
}

/* ヒーローイメージ */
header .main-img{
  background-image: url(../images/main-back2.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;

}

/*
背景色をサブカラーにする。
下記「.content」クラスの要素より親にする。
*/
.back-color{
  background-color: var(--sub-color);
  width: 100%;
  padding: 20px 0;
  margin: 40px 0;
}
/*
980px(style.cssで変更可能)中央寄せにする。
基本的には、この要素に内容を入れる。
つまり、基本は「<section>」→「<div class="content">」となる。
*/
.content{
  max-width: var(--break-point);
  margin: 0 auto;
  padding: 0;
}
header{
  margin-bottom: 60px;
}
header .fixed-head-area{
  width: 100%;
  height: var(--fixed-head-height);
  background-color:rgba(255, 255, 255, 0.95);
  z-index: 9999;
  position: fixed;
  top: 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05); /*影*/
}
header .fixed-head-navarea{
  --nav-height: 100%;
  height: var(--nav-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.header.transform {
  background-color: rgba(204,255,255,.9); 
}

header .head-logo img{
  display: block;
  width: 170px;
  margin: 0 auto;
}

header nav{
  display: block;
  max-width: var(--break-point);
  margin: 0 auto;
}
header nav .nav-list{
  height: var(--nav-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
header nav .nav-list li{
  height: var(--nav-height);
  display: block;
  margin-left: 1em;
}
header nav .nav-list a{
  height: var(--nav-height);
  display: block;
  padding: 0.5em;
  color: #6f6f6f;
  font-weight: bold;
}
header nav .nav-list a:hover{
  background-color: rgba(255,255,255,0.8);
  color: var(--main-color);
}
header .main-img{
  display: block;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
header .main-img h1,
header .main-img p{
  text-align: center;
  color: #ffffff;
  max-width: var(--break-point);
}
header .main-img h1{
  font-weight: bold;
  font-size: 3rem;
  margin-bottom: 1em;
}

.hamburger{
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  position: relative;
}
.hamburger:hover{
  cursor: pointer;
}
.hamburger span{
  display: block;
  width: 70%;
  height: 2px;
  background-color: midnightblue;
  position: absolute;
  left: 15%;
  transform: translate(-1px -1px);
  transition-duration: 0.3s;
}
.hamburger span:nth-child(1){
  top: 25%;
}
.hamburger span:nth-child(2){
  top: 50%;
}
.hamburger span:nth-child(3){
  top: 75%;
}

h2{
  color:#191970;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin: 1em auto;
  padding: 0.3em;
  background-color: transparent;
}

.sub-heading{
  font-size: 1.7rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1em;
  color:midnightblue;
}

.link-button{
  display: block;
  margin: 20px auto;
  color: #ffffff;
  font-weight: bold;
  font-size: 2rem;
  padding: 0.5em 3em 0.5em 1em;
  background-color: var(--accent-color-red);
  border: none;
  border-radius: 10000px;
  cursor: pointer;
  position: relative;
}
.link-button:after{
  content: "▲";
  transform: rotate(90deg);
  font-size: 0.5em!important;
  width: 2em;
  height: 2em;
  text-align: center;
  padding-top: 0.3em;
  color: var(--accent-color-red);
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1em;
  margin: auto;
}
.link-button:hover{
  transition-duration: 0.5s;
  filter: saturate(150%) contrast(50%) brightness(150%);
}

footer{
  width: 100%;
  height: 200px;
  margin-top: 100px;
  background-color: var(--main-color);
}
footer .footer-inner{
  max-width: var(--break-point);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-around;
}
footer .footer-nav{
  width: 100%;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
footer .footer-nav li{
  padding: 0;
  list-style-type: none;
}
footer .footer-nav a{
  display: block;
  color: #ffffff;
}
footer .footer-nav a:hover{
  background: rgba(255,255,255,0.5);
}
.copyright{
  color: #ffffff;
  text-align: center;
  font-size: 0.8rem;
  margin: 0.8rem;
}

.topButton{
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--main-color);
  border-radius: 10000px;
  opacity: 0.5;
  text-align: center;
}
.topButton:before{
  display: block;
  content: "▲";
  color: #ffffff;
  margin: 0.5em 0 0.2em;
}
.topButton:after{
  display: block;
  content: "TOP";
  color: #ffffff;
}
@media screen and (max-width: 980px){
  body{
    padding-top: var(--fixed-head-height-mobile);
  }
  header .fixed-head-area{
    height: var(--fixed-head-height-mobile);
  }

  .hamburger{
    display: block;
    z-index: 2;
    margin-right: 1em;
  }
  .hamburger.opened span:nth-child(1){
    top: 50%;
    transform: rotate(45deg);
  }
  .hamburger.opened span:nth-child(2){
    width: 0px;
    height: 0px;
    left: 50%;
  }
  .hamburger.opened span:nth-child(3){
    top: 50%;
    transform: rotate(-45deg);
  }
  .overlay{
    display: block!important;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
  }
  
  
  header nav{
    display: none;
    width: 80vw!important;
    height: 80vh;
    overflow-y: scroll;
    position: fixed;
    top: var(--fixed-head-height-mobile);
    right: 0;
  }
  header nav .nav-list{
    background-color: var(--main-color);
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }
  header nav .nav-list li{
    display: block;
    width: 100%;
  }
  header nav .nav-list a{
    font-size: 2rem;
    padding: 0.7em;
    width: 100%;
    color: #fff;
    border-bottom: dotted 1px #ffffff;
  }
  header .main-img h1,
  header .main-img p{
    max-width: 90vw;
  }
  
  footer{
    height: auto;
  }
  footer .footer-nav{
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
  footer .footer-nav li{
    width: 100%;
  }
  footer .footer-nav a{
    padding: 0.5em;
    width: 100%;
  }
  
  .content{
    max-width: 90vw;
}
@media screen and (max-width: 420px){
  :root{
    font-size: 3vw;
  }
}