@charset "utf-8";

/*font*/
@font-face {
  font-family: 'japfont';
  src: url(../font/NotoSansJP-compressed.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'engfont';
  src: url(../font/Marcellus-Regular.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'japfontbold';
  src: url(../font/NotoSansJP-MedCom.ttf) format('truetype');
  font-weight: 500;
  font-display: swap;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

body, h1, h2, h3, h3, h4, h5, h6, p, ol, ul, figure, dl, dt, dd,
picture {
  margin: 0;
  padding: 0;
  list-style-type: none;
  font-weight: 400;
}

img {
  vertical-align: bottom;
  width: 100%;
}

:root {
  --main-color: #FBE8DE;
  --text-color01: #417651;
  --text-color02: #FBFAF5;
  --point-color: #417651;
  --point-color02: #509163;
}

body {
  font-family: 'engfont', 'japfont', 'japfontbold', "游ゴシック体", YuGothic, sans-serif;
  color: var(--text-color01);
  background-color: var(--main-color);
  font-weight: 400;
  letter-spacing: .1em;
  font-size: 1.3rem;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: var(--text-color01);
}

.fadeIn {
  opacity: 0;
  transition: 2s;
}

.fadeIn.is-show {
  opacity: 1;
}

.sp-header {
  position: fixed;
  top: -1px;
  right: 0;
  z-index: 10;
  width: 100%;
  height: 50px;
  align-items: center;
  display: flex;
  -webkit-display: flex;
  background-color: var(--main-color);
  padding-left: 15px;
  box-sizing: border-box;
  border-bottom: 1px solid #509163;
}

.sp-name {
  letter-spacing: .05em;
  font-size: 1.6rem;
}

#g-nav {
  position: fixed;
  z-index: 999;
  top: 0;
  right: -120%;
  width: 100%;
  height: 100vh;
  background: var(--point-color02);
  transition: all 0.6s;
  color: var(--text-color02);
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
  right: 0;
}

.nav-name {
  position: absolute;
  top: 0;
  letter-spacing: .05em;
  border-bottom: 1px solid #509163;
  width: 100%;
  padding-left: 15px;
  font-size: 1.6rem;
  height: 50px;
  line-height: 50px;
}

.nav-name a {
  color: var(--text-color02);
}

/*ナビゲーション*/
.nav_list {
  padding: 8em 4em 2em 0;
  text-align: right;
}

.nav_list li {
  font-size: 1.9rem;
  margin-bottom: 1em;
}

.nav_list li span {
  display: block;
  font-size: 1.2rem;
  margin-top: -5px;
}

.nav_list li span::before {
  content: "|";
  padding-right: 3px;
  vertical-align: 1px;
}

.nav_list li a {
  color: var(--text-color02);
}

.sp-top-btn {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 5px;
  cursor: pointer;
  width: 50px;
  height: 50px;
}

.sp-top-btn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  right: 15px;
  height: 1px;
  background-color: var(--point-color);
  width: 17px;
}

.sp-top-btn span:nth-of-type(1) {
  top: 21px;
}

.sp-top-btn span:nth-of-type(2) {
  top: 27px;
}

.sp-top-btn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 40%;
  background-color: var(--text-color02);
}

.sp-top-btn.active span:nth-of-type(2) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 40%;
  background-color: var(--text-color02);
}

.sp-text {
  position: absolute;
  bottom: 17%;
  width: 100%;
}

.sp-logo {
  width: 35%;
  margin: auto 20%;
}

.sp-logo img {
  width: 100%;
}

.sp-icon .flex {
  display: flex;
  -webkit-display: flex;
  position: absolute;
  bottom: 25px;
  right: 70px;
}

.sp-icon .sns li {
  font-size: 2rem;
  padding-left: 15px;
}

.sp-icon .sns li a {
  color: var(--text-color02);
}

.sp-text .copyright {
  position: absolute;
  bottom: 0px;
  right: 70px;
}

.side-bar {
  display: none;
}

.btn{
  margin-top: 3em;
}

.btn li {
  position: relative;
  padding: 10px 0 10px 2px;
  transition: ease .2s;
  width: 14em;
  box-sizing: border-box;
  font-size: 1.3rem;
  border-bottom: 1px solid #509163;
}

.btn li span {
  padding-left: 7px;
}

.btn li span::before {
  content: '|';
  vertical-align: 1px;
  padding-right: 5px;
}

.btn li a::after {
  content: '';
  position: absolute;
  top: 43%;
  right: 10px;
  width: 5px;
  height: 5px;
  border-top: 1px solid #509163;
  border-right: 1px solid #509163;
  transform: rotate(45deg);
  transition: all .3s;
}

.btn li a {
  transition: .3s;
}

h3{
  padding: 1.7em 0;
  font-size: 2.5rem;
  text-align: center;
  letter-spacing: .1em;
}

h3 span {
  display: block;
  font-size: 1.3rem;
  letter-spacing: .07em;
  margin-top: -5px;
}

h3 span::before {
  content: '|';
  vertical-align: 1.2px;
  padding-right: 5px;
}

.totop{
  display: none;
}

footer {
  background-color: var(--point-color02);
  color: var(--text-color02);
  padding: 40px 0;
}

.pc-footer-nav{
  display: none;
}

.footer-wrap{
  border-top: 1px solid #FBFAF5;
  border-bottom: 1px solid #FBFAF5;
  padding: 4em 6em 2em;
}

.footer-contents {
  display: flex;
  justify-content: space-between;
}

.footer-logo{
  width: 64%;
}

.footer-icon{
  display: flex;
  align-items: flex-end;
}

.footer-icon a{
  color: #fff;
  padding-left: 15px;
}

.footer-icon i{
  font-size: 2rem;
}

.copyright{
  text-align: right;
}

@media (min-width: 960px) {

  html {
    scroll-padding-top: 0;
  }

  body{
    font-size: 1.4rem;
  }

  .flex{
    display: flex;
    justify-content: space-between;
  }

  .sp-header{
    display: none;
  }
  
  .btn li a {
    transition: .3s;
  }
  
  .btn li a:hover {
    opacity: 0.5;
  }
  
  .btn li a:hover::after {
    right: 5px;
  }

  /*side-bar*/
  .side-bar{
    display: block;
  }

  .side-bar {
    width: 240px;
    position: relative;
    border-right: 1px solid #509163;
  }

  .side-contents {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    -webkit-display: flex;
    flex-flow: column;
    -webkit-flex-flow: column;
    justify-content: space-between;
  }

  .side-contents h2 {
    width: 100%;
    margin: auto;
    padding-top: 1em;
    transition: .3s;
  }

  .side-contents h2:hover {
    opacity: 0.6;
  }

  .side-bar nav ul {
    margin: auto;
    padding-left: 50px;
  }

  .side-bar nav li {
    padding: 5px 0;
    transition: 0.3s;
    font-size: 1.75rem;
    width: auto;
  }

  .side-bar nav li:hover {
    opacity: 0.5;
  }

  .side-bar .side-logo img {
    width: 110px;
    padding: 40px 54px 30px;
  }

  .side-text {
    padding-left: 48px;
    margin-bottom: 3.5vw;
    font-size: 1.3rem;
  }

  .side-text p span {
    display: block;
    margin-top: 10px;
  }

  .side-text .phone {
    padding-top: 1em;
  }

  .side-text .btn {
    padding-top: 1em;
  }

  .side-text .btn li {
    width: 130px;
    padding: 8px 0 8px 2px;
  }

  .main-contents {
    width: calc(100% - 240px)
  }

  h3{
    padding: 2.5em 0;
    font-size: 3rem;
  }

  /*to-top*/
  .totop {
    display: block;
    padding: 6.5em 0 5em;
    border-top: 1px solid #509163;
    text-align: center;
  }

  .totop>div {
    transition: ease .2s;
    position: relative;
    font-size: 1.7rem;
  }

  .totop>div a::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    width: 8px;
    height: 8px;
    border-top: 1px solid #509163;
    border-right: 1px solid #509163;
    transition: all .3s;
  }

  .totop>div a {
    transition: .2s;
  }

  .totop>div a:hover {
    opacity: 0.5;
  }

  /*hoverした際の移動*/
  .totop>div a:hover::before {
    top: -25px;
  }

  .pc-footer-nav{
    display: block;
  }

  .pc-footer-nav a{
    color: #fff;
  }

  .pc-footer-nav .flex {
    display: flex;
    -webkit-display: flex;
    justify-content: center;
    padding-bottom: 70px;
  }
  
  .pc-footer-nav li {
    padding: 0 15px;
  }
  
  .pc-footer-nav li a,
  footer .sns li a {
    color: var(--text-color02);
    transition: .2s;
  }
  
  .pc-footer-nav li a:hover,
  footer .sns li a:hover {
    opacity: 0.5;
  }

  .footer-contents{
    width: 25%;
    margin: auto;
  }

  .footer-logo {
    width: 50%;
  }

  .copyright{
    width: 25%;
    margin: auto;
  }
}

@media (min-width: 600px) and (max-width: 959px){

  .nav_list {
    padding: 10em 6em 2em 0;
  }

  .sp-text{
    width: 75%;
    bottom: 30%;
    left: 30%;
    transform: translateX(-30%);
  }

  .sp-logo {
    margin: auto;
  }

  .footer-width{
    width: 55%;
    margin: auto;
    max-width: 300px;
  }

  .footer-logo{
    width: 50%;
  }
}

@media (min-width: 960px) and (max-width: 961px){

  body{
    line-height: 1.5;
  }

  .side-bar {
    width: 220px;
  }

  .side-contents h2{
    padding-top: 0;
  }

  .side-bar .side-logo img {
    width: 100px;
    padding: 30px 60px;
  }

  .side-bar nav li {
    padding: 4px 0;
    font-size: 1.6rem;
  }

  .side-text {
    padding-left: 35px;
    margin-bottom: 4vw;
  }

  .btn {
    margin-top: 2em;
  }

  .main-contents {
    width: calc(100% - 220px);
  }
}








