.type {
  position: relative;
  width: 100%;
  height: calc(var(--vh) * 100); /* カスタムプロパティを使用して高さを設定 */
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
  }
}

#thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(var(--vh) * 100); /* カスタムプロパティを使用して高さを設定 */

  p {
    &:nth-child(1) {
      margin-bottom: 60px;
      color: #333;
      font: normal 300 64px/1 'Josefin Sans', sans-serif;
    }

    &:nth-child(2) {
      color: #333;
      font: normal 400 20px/1 'Josefin Sans', sans-serif;
    }
  }

  a {
    color: #333;
    text-decoration: none;
    transition: 0.3s;

    &:hover {
      color: #888;
    }
  }
}

.type a {
  display: inline-block;
  position: absolute;
  right: 20px;
  bottom: 0;
  z-index: 2;
  padding: 0px 0px 110px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
  transition: 0.2s;
  overflow: hidden;

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 100px;
    background: #fff;
  }

  &:hover {
    opacity: 0.5;
  }
}

#type01 a::after {
  animation: sdl01 1.5s cubic-bezier(1, 0, 0, 1) infinite;
}


@keyframes sdl01 {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

@media (max-width: 767px) {
  .type a {
    right: 15px;
  }
}


.type-02 {
  position: relative;
  width: 100%;
  height: calc(var(--vh) * 100 - 78.72px); 
  background-position: center center; /* 背景画像を中央に配置 */
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #f0f0f0; /* 背景色を追加（必要に応じて） */
  
  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 220, 0, 0.3); /* 背景に#ffdc00の30%透明のオーバーレイ */
  }
}

#thanks-02 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(var(--vh) * 100); /* カスタムプロパティを使用して高さを設定 */

  p {
    &:nth-child(1) {
      margin-bottom: 40px;
      color: #444;
      font: normal 300 48px/1 'Josefin Sans', sans-serif; /* フォントサイズを調整 */
    }

    &:nth-child(2) {
      color: #444;
      font: normal 400 18px/1 'Josefin Sans', sans-serif; /* フォントサイズを調整 */
    }
  }

  a {
    color: #444;
    text-decoration: none;
    transition: 0.3s;

    &:hover {
      color: #555;
    }
  }
}

.type-02 a {
  display: inline-block;
  position: absolute;
  right: 20px; /* 調整：ボタンの位置を変更 */
  bottom: 0;
  z-index: 2;
  padding: 0px 0px 100px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
  transition: 0.2s;
  overflow: hidden;

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 90px; /* 調整：ラインの高さを変更 */
    background: #fff;
  }

  &:hover {
    opacity: 0.7; /* hover効果の調整 */
  }
}

#type02 a::after {
  animation: sdl02 1.8s cubic-bezier(1, 0, 0, 1) infinite; /* アニメーションを変更 */
}

@keyframes sdl02 {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

@media (max-width: 767px) {
  .type-02 a {
    right: 10px; /* スマホ表示用にさらに位置を調整 */
  }
}


.scroll-image img {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-image.show img {
  opacity: 1;
  transform: translateY(0);
}

.scroll-image ul {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-image.show ul {
  opacity: 1;
  transform: translateY(0);
}