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 {
  width: 100%;
  background: url(../img/01_back.png) no-repeat center center;
  background-size: cover;
  text-align: center; /* 中央寄せ */
}

/* text01: 画面幅いっぱいに表示 */
.text01 {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* 中央に配置 */
}

/* text02: 幅80%で中央に配置 */
.text02 {
  width: 80%;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 10px auto; /* text01とbtnの間に余白を追加 */
}

/* ボタン部分のスタイル */
.btn {
  margin-top: 20px; /* text02との間隔 */
}

.animated-btn {
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
}

.container .section.bg02 {
  width: 100%;
  background: url(../img/02_back.png) no-repeat center center;
  background-size: cover;
  text-align: center; /* 中央寄せ */
}

.container .section.bg03 {
  width: 100%;
  background: url(../img/03_back.png) no-repeat;
  background-size: cover;
  text-align: center; /* 中央寄せ */
}

.container .section.bg04 {
  width: 100%;
  background: url(../img/04_back.png) no-repeat;
  background-size: cover;
  text-align: center; /* 中央寄せ */
}

.container .section.bg05 {
  width: 100%;
  background: url(../img/05_back.png) no-repeat;
  background-size: cover;
  text-align: center; /* 中央寄せ */
}

/* scale-downアニメーションを適用する画像に特別なスタイル */
.scale-down {
  width: auto; 
  display: inline-block;
  transform: scale(1.5); 
  transition: transform 2s ease-in-out, opacity 2s ease-in-out;
  opacity: 0;
}

.scale-down.scroll-visible {
  transform: scale(1);
  opacity: 1;
}

/* 左から出現するアニメーション */
.scale-left {
  opacity: 0;
  transform: translateX(-100px); 
  transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

.scale-left.scroll-visible-left {
  transform: translateX(0);
  opacity: 1;
}

/* 右から出現するアニメーション */
.img-left.scroll-visible-left {
  transform: translateX(0);
  opacity: 1;
}

.img-right.scroll-visible-right {
  transform: translateX(0);
  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 img.step-title {
  padding: 10px 0 0;
  width: 80%;
  margin: 0 10%;
}

.container img.step01 {
  width: 90%;
  margin: 0 5%;
  padding-top: 23%;
}

.section.bg04 {
  display: flex;
  flex-direction: column;
  align-items: center; /* 画像を中央揃えに */
  gap: 20px; /* 画像の間に適度な余白を設定 */
}

.container img.step02 {
  width: 90%;
  margin: 0 5%;
  padding-top: 13%;
}

.container img.step03 {
  width: 90%;
  margin: 0 5%;
  padding-top: 22%;
}

.container img.step04 {
  width: 90%;
  margin: 0 5%;
  padding-top: 18%;
}

.container img.step05 {
  width: 90%;
  margin: 0 5%;
  padding-top: 15%;
}

@media screen and (min-width: 500px) {
  .container img.step05 {
    width: 90%;
    margin: 0 5%;
    padding-top: 19%;
  }  
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 80%;
  margin: 0 10%;
}

.step01 {
  padding-top: 5%;
}

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

/* 初期状態: 画像を少し上にオフセットし、透明に */
.step02, .step03, .step04, .step05 {
  transform: translateY(0); /* 画像を少し上にオフセット */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* アニメーションの設定 */
}

/* スクロールで表示されたときのアクティブな状態 */
.active {
  opacity: 1;
  transform: translateY(0); /* 定位置に戻る */
}

/* 02_text02用のアニメーションを追加 */
.scale-left {
  opacity: 0;
  transform: translateX(-100px); /* 左から100pxオフセット */
  transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

.scale-left.scroll-visible-left {
  transform: translateX(0); /* 元の位置に移動 */
  opacity: 1; /* 表示される */
}


.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%;
}

}


/* 初期状態: 05_text01は左から、05_text02は右からオフセット */
.img-left {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.img-right {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* スクロールで表示されたときのクラス名 */
.scroll-visible {
  opacity: 1;
  transform: translateX(0); /* 定位置に移動 */
}


/* btn anime */
.container .btn {
    width: 80%;
    margin: 0 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: #F7BA2E;
    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: #F7BA2E;
    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: #F7BA2E;
    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: #000;
  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); /* 定位置に移動 */
}
