@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: calc(750px / 32);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media screen and (max-width: 750px) {
    html {
        font-size: calc(100vw / 32);
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
  }

body {
    text-align: center;
}

a {
    display: inline-block;;
}

div {
    margin: 0;
    padding: 0;
}

img {
  pointer-events: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  vertical-align: bottom;
}

@keyframes infinity-scroll-left {
    from {
      transform: translateX(0);
    }
  
    to {
      transform: translateX(-100%);
    }
  }

  .pc{
    max-width: 750px;
    margin: 0 auto;
}

.flex {
    display: flex;
    flex-wrap: wrap;
  }

.section-top {
    background-color: #fff;
}

.bg-gradation-pink{
    background: linear-gradient(to bottom,#fff,#fae2f9 15%,#fae2f9 85%,#fff);
    z-index: -1;
}

.bg-gradation-beige{
    background: linear-gradient(to bottom,#fff,#ffebd6 20%,#ffebd6 80%,#fff);
    z-index: -1;
}

.section-story{
    padding: 4rem 0;
}

.section-service{
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.section-howto{
    background-image: url("../images/bg-howto.png");
    background-size: 100% auto;
    padding: 3rem 0;
}

.section-later{
    background-color: #fff;
}

.section-footer{
    background-color: #fff;
    padding: 2rem 0;
}

.radius{
    border: 1px solid;
    border-radius: 10px;
    padding: 1rem;
    margin: 0 1rem 1rem 1rem;
    background-color: #fff;
}

.downloads {
    text-align: center;
    padding: 4rem 2rem;
}

.downloads .buttons {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.card{
  position: absolute; /* .cardの左上（top:0、left:0）に配置するためにabsoluteを指定 */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0 auto;
  transition: .7s;
  backface-visibility: hidden;
}

.ura{
  transform: rotateY(-180deg);
}

.flip-btn{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 7rem 0 0 15rem;
  width: 5rem;
  z-index: 2;
}

.crossfade-img{
  width: 100%;
  height: 5rem;
  position:relative;
}

.crossfade-img img{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0.5rem auto;
  width: 5rem;
}


/*アニメーション*/
.btn-anim{
    animation: dokundokun 1s ease-in-out infinite;
}

@keyframes dokundokun {
    0%  { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shiny {
    0% { left: -20%; }
    10% { left: 120%; }
    100% { left: 120%; }
}

.shiny-btn {
    position: relative;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}

.shiny-btn::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -20%;
    width: 40px;
    height: 100%;
    transform: scale(2) rotate(20deg);
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, .5) 100%, rgba(255, 255, 255, 0) 0%);
    animation-name: shiny;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.loop {
    overflow: hidden;
}
.loop__box {
    display: flex;
}
.loop__box img {
    max-width: initial;
    max-height: initial;
}
.loop__box img:first-child {
    animation: loop 50s -25s linear infinite;
}
.loop__box img:last-child {
    animation: loop2 50s linear infinite;
}

/* 桜を表示するコンテナのスタイル */
.cherry-blossom-container {
    position: relative;
    width: 100%; /* コンテナの横幅 */
    overflow: hidden; /* コンテナからはみ出した要素を隠す */
    z-index: 0;
  }
  
  /* 桜の花びらのスタイル */
  .petal {
    position: absolute;
    background-color: #ffc0cb; /* 花びらの色 */
    border-radius: 150% 0 150% 0;
    animation: animate-petal 15s linear;
    z-index: -1;
  }
  
  .petal::after {
    content: "";
    position: absolute;
    top: -14%;
    left: -10%;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ffc0cb;
    border-radius: 150% 0 150% 0;
    transform: rotate(15deg);
  }
  
  /* 花びらが降るアニメーション */
  @keyframes animate-petal {
    0% {
      top: 0;
      opacity: 0;
      transform: rotate(0deg);
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      top: 50rem;
      transform: rotate(3000deg);
    }
  }
  
  .hover-btn {
    background: #fff;
    border: 0.2rem solid #6D5E4D;
    box-shadow: 0 5px 0 #6D5E4D;
    border-radius: 0.6rem;
    display: inline-block;
    transition: .3s;
  }
  .hover-btn:hover {
    transform: translateY(5px);
    box-shadow: 0 0 0 #6D5E4D;
  }