/* フォントファイル読み込みのための記述 */
/* @font-face {
  font-family: "main-font";
  src: url("./fonts/file-name.woff") format("woff");
} */

:root{
  --header-height : 104px;
  --color-primary : #3EA584;
  --color-primary-light : #5FB99C;
  --color-accent : #F3A72A;
  --color-accent-light : #FFC656;
  --color-text : #413523;
  --color-background : #F2EFE7;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Quicksand', 'M PLUS Rounded 1c';
  font-weight: 700;
  color: var(--color-text);

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

.header{
  position : fixed;
  z-index: 1;

  width: 100%;
  height: var(--header-height);
  background: rgba(242,239,231,0.7);

  padding: 2vh 2.5vw;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .header{
    position : fixed;
    z-index: 1;

    width: 100%;
    height: 60px;
    background: rgba(242,239,231,0.7);

    padding: 2vh 2.5vw;

    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.header_logo{
  height: 8vh;
}
@media screen and (max-width: 768px) {
  .header_logo{
    height: 40px;
  }
}

.menu{
  display: flex;
  align-items: center;
  gap: 6.5vw;
}

@media screen and (max-width: 768px) {
  .menu{
    display: none;
  }
}

#menu-btn-check{
  display: none;
}

.hbg-menu, .hbg-message, .hbg_download{
  display: none;
}

@media screen and (max-width: 768px) {
  .menu-btn {
    position: fixed;
    right: 10px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: rgba(0, 0, 0, 0);
  }
  .menu-btn span,
  .menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #333;
    position: absolute;
  }
  .menu-btn span:before {
    bottom: 8px;
  }
  .menu-btn span:after {
    top: 8px;
  }

  #menu-btn-check:checked ~ .menu-btn span {
    transform: translateY(4px);
  }
  #menu-btn-check:checked ~ .menu-btn span::after {
    transform: translateY(-8px);
  }

  .hbg-contents{
    width: 100%;
    height: 50%;
    min-height: 288px;
    border-radius: 0 0 12% 12%;
    position: fixed;
    top: -100%;
    left: 0;
    z-index: 80;
    background-color: #D6CEC4;
    transition: all 0.5s;
  }
  #menu-btn-check:checked ~ .hbg-contents {
    top: 0;/*メニューを画面内へ*/
  }

  /* .hbg_menu_list::before{
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    z-index: 100;
  } */

  .hbg-menu{
    position: relative;
    display: block;
    margin-top: 12%;
    margin-left: 25%;
    margin-bottom: 8%;
  }

  .hbg_menu_list{
    font-size: 24px;
    padding: 5%;
    position: relative;
    z-index: 120;
  }

  .hbg-message{
    display: flex;
    font-size: 16px;
    margin-left: 27%;
    margin-bottom: 4%;
  }
  .hbg_download{
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.main{
  flex: 1;
}

.section{
  scroll-margin-top: var(--header-height);
}

#top{
  padding-top: var(--header-height);
  height: 100vh;
  background-color: var(--color-background);

  display: flex;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  #top{
    padding-top: 60px;
    height: 100vh;
    background-color: var(--color-background);

    display: flex;
    justify-content: center;
  }
}

.top_animation{
  margin: -50px 30%;
  width: 70%;
}

.smart_accent{
  display: none;
}

@media screen and (max-width: 768px) and (min-height: 750px){
  .top_animation{
    width: 50%;
    height: 250px;
    margin-top: 200px;
  }
  .smart_accent{
    display: block;
    width: 130px;
    height: 99.31px;
    position: absolute;
    top: 15%;
    right: 12%;
  }
}

@media screen and (max-height: 750px){
  .top_animation{
    width: 50%;
    height: auto;
    margin-top: -10%;
  }
}

@media screen and (max-width: 480px){
  .top_animation{
    width: 50%;
    height: auto;
    margin-top: -75%;
  }
}

.top_accent1{
  position: absolute;
  left: 4%;
  bottom: 10%;
}

.top_accent2{
  position: absolute;
  left: calc(4% + 150px);
  bottom: 8%;
}

@media screen and (max-width: 768px) {
  .top_accent1{
    position: absolute;
    left: 14%;
    bottom: 5%;
    width: 135px;
  }
  .top_accent2{
    position: absolute;
    left: 32%;
    bottom: 2%;
    width: 68.4px;
  }
}

.top_title1{
  position: absolute;
  width: 288px;
  height: 142px;
  left: 11%;
  bottom: 13%;
  font-weight: 700;
  font-size: 3rem;
}
.top_title2{
  position: absolute;
  width: 288px;
  height: 142px;
  left: 11%;
  bottom: 5%;
  font-weight: 700;
  font-size: 3rem;
}

@media screen and (max-width: 768px) {
  .top_title1{
    position: absolute;
    width: 40px;
    height: 220px;
    left: 50vw;
    bottom: 10%;
    font-weight: 700;
    font-size: 20px;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    letter-spacing: 12px;
    line-height: 40px;
  }
  .top_title2{
    position: absolute;
    width: 40px;
    height: 160px;
    left: calc(50vw - 40px);
    bottom: 6%;
    font-weight: 700;
    font-size: 20px;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    letter-spacing: 12px;
    line-height: 40px;
  }
}

.download_image{
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 10px;
  right: 0px;
}

@media screen and (max-width: 768px) {
  .download_image{
    display: none;
  }
}

.download_apple{
  width: 13vw;
  min-width: 98px;
}

.download_google{
  width: 17vw;
  min-width: 120px;
}

#about{
  background-image: url("./images/about_photo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about_inner {
  position: relative;
  padding-top: 40px;
  padding-left: 60px;

}

.about_accent{
  position: absolute;
  top: 0;
  left: 0;
  /* left: 31%; */
  /* padding-top: 22vh; */
}

.about_title{
  color: #77726A;
  font-size: 4.2rem;
  position: relative;
  /* left: 35.5%; */
  /* padding-top: calc(22vh + 30px); */
  text-shadow: 6px 4px #DDDAD3;
}

.about_sub{
  font-size: 2.3rem;
  position: relative;
  padding-top: 36px;
  line-height: 52px;
  /* left: 35.5%; */
  /* top: 25px; */
}

.about_text{
  font-size: 1.6rem;
  position: relative;
  padding-top: 48px;
  line-height: 48px;
  /* left: 35.5%; */
  /* top: 60px; */
}

@media screen and (max-width: 768px) {
  .about_inner {
    position: relative;
    padding-top: 15px;
    padding-left: 22px;
  }

  .about_accent{
    width: 20%;
    position: absolute;
    top: 0;
    left: 0;
    /* left: 31%; */
    /* padding-top: 22vh; */
  }

  .about_title{
    color: #77726A;
    font-size: 32px;
    position: relative;
    /* left: 35.5%; */
    /* padding-top: calc(22vh + 30px); */
    text-shadow: 6px 4px #DDDAD3;
  }

  .about_sub{
    font-size: 18px;
    position: relative;
    padding-top: 24px;
    line-height: 32px;
    /* left: 35.5%; */
    /* top: 25px; */
  }

  .about_text{
    font-size: 12px;
    position: relative;
    padding-top: 28px;
    line-height: 28px;
    /* left: 35.5%; */
    /* top: 60px; */
  }
}

.fadeInTrigger{
  opacity: 0;
}

.fadeIn{
  animation-name: fadeInAnime;
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes fadeInAnime{
  from{
    opacity: 0;
    transform: translateY(100px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

#how_to_use{
  margin-top: -20px;
  height: 530vh;
  background-color: var(--color-background);
  color: var(--color-background);
}

.green_border_radius{
  width: 96%;
  height: 530vh;
  background-color: var(--color-primary);
  border-radius: 0px 80px 80px 0px;
  padding: 0 160px;
}

@media screen and (max-width: 768px){
  #how_to_use{
    margin-top: -20px;
    height: 220vh;
    background-color: var(--color-background);
    color: var(--color-background);
  }

  .green_border_radius{
    width: 96%;
    height: 220vh;
    background-color: var(--color-primary);
    border-radius: 0px 80px 80px 0px;
    padding: 0 60px 0 81.5px;
  }
}

@media screen and (max-width: 980px) and (min-width: 768px){
  #how_to_use{
    margin-top: -20px;
    height: 260vh;
    background-color: var(--color-background);
    color: var(--color-background);
  }

  .green_border_radius{
    width: 96%;
    height: 280vh;
    background-color: var(--color-primary);
    border-radius: 0px 80px 80px 0px;
    padding: 0 60px 0 81.5px;
  }
}

.htu_title_space{
  padding: 120px 0px;
}

.htu_title{
  position: relative;
  text-align: center;
  font-size: 5rem;
  text-shadow: 6px 4px rgba(119,114,106,0.47);
}

@media screen and (max-width: 768px) {
  .htu_title_space{
    padding: 60px 0px;
  }

  .htu_title{
    position: relative;
    text-align: center;
    font-size: 32px;
    text-shadow: 6px 4px rgba(119,114,106,0.47);
  }
}

.htu_sub{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.htu_logo{
  height: 24px;
  margin-right: 12px;
}

@media screen and (max-width: 768px) {
  .htu_logo{
    height: 16px;
    margin-right: 12px;
  }
}

.htu_step{
  display: flex;
  justify-content: space-between;
  margin: 200px 0px 630px 0px;
}

@media screen and (max-width: 820px) {
  .htu_step{
    display: block;
    justify-content: center;
    margin: 60px 0px 120px 0px;
  }
}

#step1_animation{
  width: 40%;
  padding: 0 30px;
}

#step2_animation{
  width: 55%;
  padding-right: 160px;
}

#step3_animation{
  width: 45%;
  padding-left: 20px;
}

#step4_animation{
  padding-left: 20px;
  padding-right: 45px;
  width: 45%;
}

.step_animation{
  width: 100%;
}

@media screen and (max-width: 768px) {
  #step1_animation{
    width: 45%;
    padding: 0;
    transform: scale(1.8, 1.8);
    margin-bottom: 25px;
    margin-left: 45px;
  }

  #step2_animation{
    width: 55%;
    padding-right: 0;
    transform: scale(1.6, 1.6);
    margin-bottom: 20px;
  }

  #step3_animation{
    width: 45%;
    padding-left: 0;
    transform: scale(1.8, 1.8);
    margin-bottom: 20px;
    margin-left: 50px;
  }

  #step4_animation{
    padding-left: 0;
    padding-right: 0;
    width: 45%;
    transform: scale(1.8, 1.8);
    margin-bottom: 20px;
    margin-left: 45px;
  }
}

.step_circle{
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background-color: var(--color-accent);
  position: absolute;
  left: -42px;
  top: -3px;
}

.step_title{
  font-size: 2.5rem;
  display: inline-block;
  text-align: center;
  padding: 40px 0px 20px 0px;
  position: relative;
}

.step_step {
  z-index: 1;
  position: relative;
}

.step_summary{
  font-size: 40px;
  padding: 20px 0px;
}

.step_text{
  font-size: 1.5rem;
  width: 33vw;
  padding-top: 30px;
}

@media screen and (max-width: 768px) {
  .step_circle{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    position: absolute;
    left: -24px;
    top: 10px;
  }

  .step_title{
    font-size: 18px;
    display: inline-block;
    text-align: center;
    padding: 20px 0px 20px 0px;
    position: relative;
  }

  .step_step, .step_number {
    z-index: 1;
    position: relative;
  }

  .step_summary{
    font-size: 18px;
    padding: 5px 0px;
  }

  .step_text{
    font-size: 12px;
    width: 84%;
    padding-top: 5px;
  }
}

.footer{
  height: 80vh;
  background-color: var(--color-background);
  position: relative;
}

.footer_accent{
  display: fixed;
  justify-items: center;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.footer_animation{
  position: absolute;
  top: 12%;
  left: 15%;
}

.footer_logo{
  height: 72px;
  position: absolute;
  left: 3%;
  bottom: 5%;
}

.footer_message{
  font-size: 34px;
  position: absolute;
  right: 8%;
  bottom: 40%;
}

.footer_download{
  display: flex;
  align-items: center;
  position: absolute;
  right: 10%;
  bottom: 22%;
}

.footer_download_apple{
  width: 13vw;
  min-width: 98px;
}

.footer_download_google{
  width: 17vw;
  min-width: 120px;
}

@media screen and (max-width: 768px) {
  .footer{
    height: 40vh;
    background-color: var(--color-background);
    position: relative;
  }

  .footer_logo{
    height: 28px;
    position: absolute;
    left: 5%;
    bottom: 5%;
  }

  .footer_message{
    font-size: 12px;
    position: absolute;
    right: 4%;
    bottom: 28%;
  }
}

@media screen and (max-width: 768px) and (min-height: 750px){
  .footer_animation{
    transform: scale(0.4, 0.4);
    position: absolute;
    top:-70px;
    left: -90px;
  }

  .footer_download{
    display: flex;
    align-items: center;
    position: absolute;
    right: 2%;
    bottom: 12%;
  }

  .footer_download_apple{
    height: 4%;
  }

  .footer_download_google{
    height: 4%;
  }
}

@media screen and (max-height: 750px){
  .footer_animation{
    transform: scale(0.4, 0.4);
    position: absolute;
    top:-100px;
    left: -100px;
  }

  .footer_download{
    display: flex;
    align-items: center;
    position: absolute;
    right: 2%;
    bottom: 10%;
  }

  .footer_download_apple{
    height: 4%;
  }

  .footer_download_google{
    height: 4%;
  }
}


/* .step_animation {
  opacity: 0;
}
.step_animation.active {
  animation: fadein 1s forwards;
}
.step_animation.inactive {
  animation: fadein 1s forwards reverse;
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
} */

