body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

.container img {
    width: 100%;
    height: auto;
    display: block;
}

.container .head {
  position: relative;
  width: 100%;
  background: url(../img/01_back.png) no-repeat top;
  background-size: cover;
  /* padding-bottom: 50%; */
}

.container .head img.text01 {
  padding: 20px 0 0;
}

.container .head img.text02 {
  padding: 0;
}

/* 初期状態（画像が大きいサイズから始まり、少し下に移動した状態） */
.text03 {
  transform: scale(1.5) translateY(20px); /* 初期サイズを大きく設定し、Y軸で20px下げる */
  transition: transform 1s ease, opacity 1s ease; /* スムーズな変化 */
  opacity: 0; /* スクロール前は非表示 */
}

/* スクロールして表示された時の最終状態 */
.text03.active {
  transform: scale(1) translateY(20px); /* 元のサイズに戻し、元の位置に戻す */
  opacity: 1; /* 表示される */
}

.container .section.wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  background:  url(../img/02_back.png);
  background-size: cover;
  /* padding-bottom: 34.58%; */
}

.container .section.bg-yellow {
  position: relative;
  overflow: hidden;
  width: 100%;
  background:  url(../img/03_back.png);
  background-size: cover;
  padding-bottom: 30px;
}

/* 共通のスタイル */
.section.bg-green {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: url(../img/04_back.png) no-repeat;
  background-size: contain;
  padding: 0;
  box-sizing: border-box;
}

.section.bg-green img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.section.bg-green img.step01 {
  display: block;
  margin: 0 auto;
  max-width: 96%;
  height: auto;
  z-index: 1;
}

/* Step画像を縦に並べる */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 80%;
  margin: 0 10%;
}

.step-bg {
  background: url(../img/05_back.png);
  background-size: cover;
  box-sizing: border-box;
}

.section.last-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: url(../img/06_text01.png) no-repeat;
  background-size: contain;
  padding: 0;
  box-sizing: border-box;
  padding-bottom: 155%;
}

@media screen and (max-width:400px) {
  .step-bg {
    padding-bottom: 14%;
}

}
/* スクロールアニメーション用のスタイル */
.step-item {
  opacity: 0;
  position: relative;
  transform: translateY(-50px); /* 初期位置を少し上に設定 */
  transition: all 0.8s ease-out;
}

.step-item.active {
  opacity: 1;
  transform: translateY(0); /* 規定位置に静止 */
}



/* btn anime */
.container .btn {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

.animated-btn img {
    width: 100%;
    animation: pulse 1s infinite;
}

.animated-btn.last {
  position: absolute;
  top: 80%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* /btn anime */

.section.middle {
    width: 80%;
    margin: 0 10%;
    padding: 10px 0 0;
}

.footer {
    background-color: #fddedf;
    color: #333;
    padding: 20px 10px;
    text-align: center;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

@media (min-width: 600px) {
    .footer {
        padding: 30px 20px;
    }

    .footer-links {
        display: flex;
        justify-content: space-around;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 1.2rem;
    }
}

/* anime */
/* 共通の設定 */
.anime {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-size: cover;
  background-position: center center;
}

/* 背景のアスペクト比を固定 */
.anime.section2-2 {
  padding-bottom: 67.05%; /* 1290x865 aspect ratio */
}

.anime.section2-3 {
  padding-bottom: 63.3%; /* 1290x816 aspect ratio */
}

.anime.section2-4 {
  padding-bottom: 62.25%; /* 1290x803 aspect ratio */
}

.anime.section2-5 {
  padding-bottom: 63.3%; /* 1290x816 aspect ratio */
}

/* スライドインの共通設定 */
.slide-in {
  position: absolute;
  bottom: 20px;
  opacity: 0;
  transition: all 1.8s cubic-bezier(0.25, 1.5, 0.5, 1);
  width: 50vw;
  height: auto;
  transform: translateY(0); /* 初期位置は変化なし */
}

.slide-in.left {
  left: -100%; /* 左側からスタート */
}

.slide-in.right {
  right: -100%; /* 右側からスタート */
}

/* アクティブ時のスライドイン位置 */
.slide-in.active.left {
  left: 0;
  opacity: 1;
  transform: translateY(20px); /* 上に10pxスライド */
}

.slide-in.active.right {
  right: 0;
  opacity: 1;
  transform: translateY(20px); /* 上に10pxスライド */
}

/* /anime */

/* green area */



/* 初期状態 */
.section3 img {
  opacity: 0.5; /* 少し透過した状態 */
  transform: scale(1.5); /* 大きいサイズから開始 */
  transition: transform 1.5s ease-out, opacity 1s ease-out; /* アニメーションのトランジション */
}

/* アクティブ状態 */
.section3 img.active {
  opacity: 1; /* 元の透明度に戻る */
  transform: scale(1); /* 現状のサイズに縮小 */
}

/* /anime */

.section.menseki {
    background-color: #fddedf;
    padding: 20px 10px;
    font-size: 14px;
}

.section.menseki ol {
    padding: 0 10px;
    width: 80%;
    margin: 0 10%;
    font-size: 12px;
    line-height: 22px;
}

/* voice */
.voice {
    background-color: #a7dddf;
    padding: 1rem 0 0;
    color: #000;
  }
  
  .voice__kv.voice-example {
    padding: 0;
  }
  
  .voice__kv.voice-example {
    height: 5vw;
  }
  
  .voice__kv {
    position: relative;
    width: 100%;
    height: 40vw;
    max-height: 400px;
    overflow: hidden;
  }
  
  .voice__kv p {
    position: absolute;
    left: 50%;
    top: 0;
    height: auto;
    max-width: none;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 3px solid;
  }
  
  .voice__inner.service {
    padding: 0;
  }
  
  .voice__list {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    overflow-x: scroll;
  }
  
  .voice .voiceBox__inner {
    font-weight: bold;
  }
  
  .voiceBox p {
    font-size: 12px;
    text-align: center;
    padding: 25px 0 0;
    font-weight:700px;
  }
  
  .voice .voiceBox__inner::after {
    display: block;
    position: absolute;
    left: 50%;
    top: 100%;
    width: 22px;
    height: 20px;
    background-image: url(../img/arrow_voice3.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    content: "";
  }
  
  .voice .voiceBox.voiceBox01::after {
    background-image: url(../img/voice_01.png);
  }
  
  .voice .voiceBox.voiceBox02::after {
    background-image: url(../img/voice_02.png);
  }
  
  .voice .voiceBox.voiceBox03::after {
    background-image: url(../img/voice_03.png);
  }
  
  .voice .voiceBox.voiceBox04::after {
    background-image: url(../img/voice_04.png);
  }
  
  .voice .voiceBox.voiceBox05::after {
    background-image: url(../img/voice_05.png);
  }

  *::before, *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  .voice .voiceBox::after {
    display: block;
    width: 24vw;
    height: 36vw;
    margin: 15px auto 0;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
  }
  
  @media screen and (max-width: 769px) {
    .voice .voiceBox {
      flex: 0 0 80px;
      min-width: 90%;
      width: 90%;
      margin: 0 5%;
    }
  
      .voice .voiceBox + .voiceBox {
        margin-top: 0;
    }
  
    .voice .voiceBox__inner {
      position: relative;
      padding: 2%;
      border: 5px solid #222;
      margin: 10px 30px 0;
      background-color: #fff;
      line-height: 2rem;
    }
  
    .voice__kv.voice-example {
      height: 10vw !important;
    }
  }
/* /voice */

/* tokushou */


.header-sp {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 24.8%;
  background: url(../img/header-sp.png) no-repeat center center;
  background-size: cover;
}

.tokushou {
  padding: 15px;
  background-color: #ffffff;
  margin-bottom: 20px;
}

.tokushou h2 {
  text-align: center;
  color: #333333;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.tokushou table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tokushou th, .tokushou td {
  padding: 10px;
  text-align: left;
  display: block;
}

.tokushou th {
  background-color: #f4f4f4;
  color: #333333;
  font-weight: bold;
  margin-bottom: 5px;
}

.tokushou td {
  background-color: #ffffff;
  color: #555555;
  margin-bottom: 15px;
}

@media (min-width: 600px) {
  .tokushou table {
      display: table;
  }

  .tokushou th, .tokushou td {
      display: table-cell;
      padding: 12px;
  }

  .tokushou th {
      width: 30%;
      margin-bottom: 0;
  }

  .tokushou td {
      margin-bottom: 0;
  }
}

/* pp */
.privacy-policy {
  padding: 15px;
  background-color: #ffffff;
  margin-bottom: 20px;
}

.privacy-policy h2 {
  text-align: center;
  color: #333333;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.privacy-policy h3 {
  color: #00695c;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.privacy-policy p {
  color: #555555;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: justify;
}

@media (min-width: 600px) {
  .privacy-policy {
      padding: 20px;
      font-size: 16px;
  }

  .privacy-policy h2 {
      font-size: 1.4em;
  }

  .privacy-policy h3 {
      font-size: 1.2em;
  }

  .privacy-policy p {
      font-size: 15px;
  }
}

/* kiyaku */
.terms-of-service {
  padding: 15px;
  background-color: #ffffff;
  margin-bottom: 20px;
  text-align: justify;
  position: relative;
}

.terms-of-service h2 {
  text-align: center;
  padding: 10px;
  font-size: 1.2em;
}

.terms-of-service p {
  color: #555555;
  font-size: 14px;
  margin-bottom: 15px;
}

.terms-of-service ul {
  padding-left: 20px;
}

.terms-of-service ul li {
  list-style-type: disc;
  color: #555555;
  font-size: 14px;
  margin-bottom: 10px;
}

@media (min-width: 600px) {
  .terms-of-service {
      padding: 20px;
      font-size: 16px;
  }

  .terms-of-service h2 {
      font-size: 1.4em;
  }

  .terms-of-service p {
      font-size: 15px;
  }

  .terms-of-service ul li {
      font-size: 15px;
  }
}

/* step anime */
.step-bg img {
  display: block;
  margin: 20px auto; /* 画像を中央に配置 */
  opacity: 0;
  transform: translateY(-50px); /* 初期状態で少し上に配置 */
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.step-bg img.visible {
  opacity: 1;
  transform: translateY(0); /* 定位置に移動 */
}
