@charset "utf-8";

/*==========================
common
==========================*/
:root {
    --primary-white: #ffffff;
    --primary-black: #5f5f5f;
    --primary-blue: #899FC9;

    --primary-orange: #FF764A;
    --primary-yellow: #FFB84F;
    --primary-green: #47B171;
  }

html {
    font-size: 62.5%;
}

body {
    font-family: 
    "Zen Kaku Gothic New",
    Arial,
    sans-serif;
    font-style: normal;
    font-weight: 400;
    color: var(--primary-black);
    background-color: var(--primary-white);
    line-height: 2.2;
    font-size: 1.6rem
}
    
img {
    max-width: 100%;
    height: auto;
}

@media screen and (min-width: 769px) {
body {
  font-size: 1.8rem;
  line-height: 2.5;
}    
} 

/*==========================
header
==========================*/
.header,
.nav__header {
  height: 90px;
  padding: 20px 4% 20px;
}

.header__topic1,
.nav__topic1 {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1.2px;
  width: fit-content;
}

.header__topic2,
.nav__topic2 {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.6px;
}

.nav__list {
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.6px;
  margin: 60px auto;
}

.nav__list img {
  width: 22px;
}

/* nav初期表示 */
.nav {
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  transition: transform 0.4s;
}

/* .nav.active表示 */
.nav.active {
  transform: translateY(0);
  z-index: 100;
}

.nav__btn {
  position: absolute;
  top: 30px;
  right: 4%;
  z-index: 200;
}

.nav__item {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  margin-top: 50px;
  text-align: center;
}

.header__btn {
  display: block;
}

.header__btn {
  position: absolute;
  top: 30px;
  right: 4%;
	background: none;
	border: none;
	appearance: none;
	cursor: pointer;
	width: 34px;
	height: 21px;
  z-index: 300;
	transition: all 1s;
}

.header__btn span {
	display: inline-block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: #222;
	transition: all .4s;
}

.header__btn span:nth-of-type(1) {
	top: 0;
}
.header__btn span:nth-of-type(2) {
	top: 10px;
}
.header__btn span:nth-of-type(3) {
	bottom: 0;
}

.header__btn.active span:nth-of-type(1) {
	transform: translateY(10px) rotate(45deg);
}

.header__btn.active span:nth-of-type(2) {
	opacity: 0;
}

.header__btn.active span:nth-of-type(3) {
	transform: translateY(-9px) rotate(-45deg);	
}

/* .header pc */
@media screen and (min-width: 891px) {
  .header {
    margin: 0 auto;
    padding: 40px 4% 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* position: sticky;
    top: 0;
    z-index: 1; */
    /* background-color: var(--primary-white); */
  }

  .nav {
      background: transparent;
      width: auto;
      height: auto;
      padding: 0;
      position: static;
      transform: translate(0);
  }

  .nav__list {
      display: flex;
      margin: 0 auto;
  }

  .nav__item {
      margin-top: 0;
      margin-left: 30px;
      font-size: 2rem;
  }

  .nav__header {
      display: none;
  }

  .header__btn {
      display: none;
  }

}/* pc 891px */


/*==========================
h2
==========================*/
.h2__before {
  width: 160px;
  margin: 0 auto;
}

h2 {
  font-size: 4.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 20px;
}

.h2 {
  margin-bottom: 50px;
}


.h2 span {
  font-size: 7.5rem;
}

.h2__after {
  text-align: center;
  line-height: 1.5;
}

.h2__aftertopic {
  height: 30px;
}

.section__topic {
  text-align: center;
}

@media screen and (min-width: 769px) {
  .h2__before {
    width: 180px;
  }
  .h2 {
    margin-bottom: 60px;
  }
}

.inview {
      /* 30px下げる */
      transform: translateY(10px);
      /* 要素を透明にする */
      opacity: 0;
      /* 2秒かけて、変化させる */
      transition: transform 1s, opacity 1s;
}

.inview.show {
  transform: translateY(0);
  opacity: 1;
}


/*==========================
section
==========================*/
section {
  margin: 0 auto;
  padding: 80px 13.3% 80px;
}

@media screen and (min-width: 769px) {
  section {
    padding: 120px 9.7% 120px;
  }
}


/*==========================
btn
==========================*/
.btn {
  width: 150px;  
  margin: 50px auto 0;
  transition: 0.4s;
  cursor: pointer;
}


.btn:hover {
  transform: scale(1.05,1.05)
}


@media screen and (min-width: 769px) {
  .btn {
    width: 190px;
    margin: 80px auto 0;
  }
}

/*==========================
footer
==========================*/
.footer {
  background: #D9EBF7;
  padding: 30px 0 30px;
}

.footer__flex {
  max-width: 1440px;
}

.footer__topic1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.footer__topic2 {
  font-size: 1.2rem;
  line-height: 2;
  letter-spacing: 0.96px;
  text-align: center;
}

.footer__navlist {
  padding: 30px 0 30px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 300px;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.6px;
}

.footer__navlist img {
  width: 20px;
}

.footer__navunder {
  display: inline-block;
  display: flex;
  padding: 0 5.9%;
  justify-content: space-between;
}

.footer__animationarea {
  width: 100%;
  height: 350px;
  position: relative;
  background-image: url(../images/onsenfooterbackgraundall.png);
  background-size: auto 100%;
  animation: loop-slide3 20s infinite linear;
}

@keyframes loop-slide3 {
  from {
    background-position: -1530px 0;
  }
  to {
    background-position: 0 0;
  }
}

.footer__onsen {
  overflow: hidden;
  margin: 0 auto;
}

.onsengif {
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media screen and (min-width: 769px) {
  .footer {
    padding-top: 100px;
  }

  .footer__flex {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 4.2% 0;
  }

  .footer__animationarea {
    width: 70%;
  }

  .footer__navlist {
    flex-direction: column;
    gap: 20px;
  }

  .footer__navitem {
    font-size: 2rem;
  }
 
  .onsengif {
    width: 350px;
    padding-top: 0px;
  }

  .footer__navunder {
    padding-right: 4.2%;
    justify-content: right;
    gap: 30px; 
  }
}

.topbtn {
   position: fixed;
   bottom: 20px;
   right: 20px;
   display: none;
   background: #c1dff3;   
   border-radius: 50%;
   text-align: center; 
   font-weight: bold;
   padding: 10px;
   opacity: 0.9;
   box-shadow: 2px 2px 4px 2px rgba(29,101,101,0.2);
}

.topbtn a {
   color: white;
   text-decoration: none;
}
