/* html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
} */

.wrapper {
  background-color: rgb(245, 241, 235);
}

.context-text {
  font-family: "Zilla Slab", serif;
}

.context-inner {
  text-align: center;
  padding-top: 30px;
}

@media screen and (max-width: 1024px) {
  .context-wrapper {
    background-color: #678b71; /* 背景色 */
  }

  .context-inner {
    position: relative;
    background-color: rgb(245, 241, 235);
    padding-bottom: 30px;
  }

  .context-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #678b71; /* 背景色 */
    clip-path: polygon(0 100%, 100% 70%, 100% 110%, 0 110%);
    z-index: 0;
  }

  .context-text {
    font-size: 90px;
    position: relative;
    z-index: 0;
  }

  .icon-wrapper {
    margin-top: 40px;
    position: relative;
    z-index: 0;
  }

  .icon-img {
    width: 80%;
    margin: auto;
  }

  .img-frame {
    display: none;
  }

  .phone-contents {
    padding: 10px;
  }

  .phone-contents-image-wrapper {
    display: flex;
    justify-content: center;
  }

  .phone-contents-td {
    vertical-align: middle;
  }

  .sns-wrapper {
    display: none;
  }

  .sns-button-phone {
    /*ボタンの下地*/
    color: #fff; /*文字・アイコン色*/
    border-radius: 14px; /*角丸に*/
    position: relative;
    display: block;
    width: 50%; /*幅*/
    text-align: center; /*中身を中央寄せ*/
    padding: 30px 0; /*上側との余白*/
    box-sizing: border-box;
    font-size: 32px; /*文字のサイズ*/
    background: -webkit-linear-gradient(135deg, #427eff 0%, #f13f79 70%)
      no-repeat;
    background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat; /*グラデーション①*/
    overflow: hidden; /*はみ出た部分を隠す*/
    text-decoration: none; /*下線は消す*/
    font-family: "Lato", sans-serif;
  }

  .sns-button-phone:before {
    /*グラデーション②*/
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /*全体を覆う*/
    height: 100%; /*全体を覆う*/
    background: -webkit-linear-gradient(
        15deg,
        #ffdb2c,
        rgb(249, 118, 76) 25%,
        rgba(255, 77, 64, 0) 50%
      )
      no-repeat;
    background: linear-gradient(
        15deg,
        #ffdb2c,
        rgb(249, 118, 76) 25%,
        rgba(255, 77, 64, 0) 50%
      )
      no-repeat;
  }

  .sns-button-phone div {
    position: relative;
  }

  .sns-button-phone .fa-instagram {
    font-size: 70px; /*アイコンサイズ*/
    position: relative;
    display: inline-block;
    position: relative;
    transition: 0.5s;
  }

  .phone-contents-table {
    width: 100%;
    table-layout: fixed;
  }

  .phone-contents-image-wrapper {
    padding: 20px;
    text-align: center;
  }

  .phone-contents-image {
    object-fit: contain;
    width: 80%;
  }

  .copy-wrapper-phone {
    padding: 10px 0;
    background-color: #678b71;
    font-size: 16px;
    color: #fff;
    text-align: center;
    font-family: "Lato", sans-serif;
  }

  .copy-wrapper-web {
    display: none;
  }
}
/* @media screen and (min-width: 768px) and (max-width: 1024px) {
} */
@media screen and (min-width: 1024px) {
  body {
    height: 100%;
  }
  .wrapper {
    display: flex;
    height: 100%;
  }

  .context-wrapper {
    width: 64%;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .context-text {
    font-size: 80px;
  }

  .icon-wrapper {
    width: 24%;
    margin: 20px auto 0;
  }

  .icon-img {
    width: 100%;
  }

  .img-frame {
    background-color: #678b71;
    width: 36%;
    height: 100%;
    position: relative;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  }

  .img-01,
  .img-02,
  .img-03,
  .img-04 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 10;
    opacity: 0;
    animation-name: bounce-fade;
    animation-duration: 20s;
    animation-iteration-count: infinite;
  }

  .img-01 {
    background-size: contain;
  }

  .img-02 {
    background-size: contain;
  }

  .img-03 {
    background-size: cover;
  }

  .img-04 {
    background-size: contain;
  }

  .sns-wrapper {
    margin-top: 20px;
  }

  .sns-link {
    text-decoration: none;
    color: fff;
    display: inline-flex;
    padding: 10px 30px;
    align-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
  }

  .sns-link-qr {
    width: 60px;
  }

  .sns-link-text {
    margin-left: 10px;
    font-size: 20px;
    display: inline-block;
    transition: 0.5s;
    font-family: "Lato", sans-serif;
  }

  .sns-link:hover span {
    /*ホバーで一周回転*/
    -webkit-transform: rotateX(360deg);
    -ms-transform: rotateX(360deg);
    transform: rotateX(360deg);
  }

  .img-01,
  .img-02,
  .img-03,
  .img-04 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 10;
    opacity: 0;
    animation-name: bounce-fade;
    animation-duration: 20s;
    animation-iteration-count: infinite;
  }

  .img-01 {
    background-image: url("img/slide_1.jpg");
  }

  .img-02 {
    background-image: url("img/slide_2.jpg");
    animation-delay: 5s;
  }

  .img-03 {
    background-image: url("img/slide_3.jpg");
    animation-delay: 10s; /* 秒数を変更 */
  }

  .img-04 {
    background-image: url("img/slide_4.png");
    animation-delay: 15s;
  }

  .phone-contents-table {
    display: none;
  }

  .copy-wrapper-web {
    position: absolute;
    bottom: 0;
    color: #678b71;
    left: 50%;
    padding: 10px 0;
    font-size: 16px;
    text-align: center;
    font-family: "Lato", sans-serif;
  }

  .copy-wrapper-phone {
    display: none;
  }
}

@keyframes bounce-fade {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
    z-index: 3;
  }
  25% {
    opacity: 1;
  }
  /**
   * 画像が3枚のため1枚当たり33%
   * 1枚目->2枚目(33%・不透明から50%・透明)にフェードして切り替える
   * 50%到達(全体アニメーション時間の半分)で前の画像が見えなくなる
   */
  40% {
    opacity: 0;
    z-index: 1;
  }
  100% {
    opacity: 0;
  }
}
