@charset "UTF-8";

.main_wrap {
  max-width: 1100px;
  padding: 0 0px;
  margin: 0 auto;
  overflow: hidden;
}

.refa_main {
  margin: 0 auto clamp(4rem, -7.566rem + 24.1vw, 9rem) auto;
}

.refa_catch {
  color: #ED7A9B;
  font-size: clamp(3.2rem, 1.349rem + 3.86vw, 4rem);
  text-align: center;
  font-family: "游明朝 Medium", "Yu Mincho Medium", "YuMincho Medium", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
  margin: 0 auto clamp(0rem, -6.94rem + 14.46vw, 3rem) auto;
  line-height: 1.6;
  font-weight: 600;
}

.refa_about_container {
  max-width: 1100px;
  padding: 0 2rem;
  margin: clamp(4rem, -7.566rem + 24.1vw, 9rem) auto 12rem auto;
}

.refa_midashi {
  font-weight: 700;
  font-size: clamp(2.2rem, 1.275rem + 1.93vw, 2.6rem);
  padding: 0 0 clamp(2rem, -0.313rem + 4.82vw, 3rem) 0;
  text-align: center;
}

.refa_midashi2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 1.275rem + 1.93vw, 2.6rem);
  padding: clamp(6rem, -4.667rem + 22.22vw, 12rem) 0 clamp(2rem, -0.313rem + 4.82vw, 3rem) 0;
  text-align: center;
}

.refa_mainimg {
  width: 100%;
  text-align: center;
}

.refa_about {
  text-align: center;
  line-height: 2;
  font-weight: 500;
}

.refa_pre{
  text-align: center;
  line-height: 2;
}

@media screen and (max-width: 768px) {
  .refa_mainimg {
    width: 210%;
    margin: 0 auto 0 -60%;
  }

  .refa_about {
    text-align: justify;
  }
}

.refa_saiyo_wrap {
  display: flex;
  gap: clamp(3rem, 0.687rem + 4.82vw, 4rem);
  justify-content: center;
  align-items: center;
  margin: clamp(5rem, 2.687rem + 4.82vw, 6rem) auto 0 auto;
}

.refa_btn {
  --arrow-color: #fff;
  display: inline-block;
  text-align: center;
  padding: clamp(1.5rem, -0.813rem + 4.82vw, 2.5rem) 50px clamp(1.5rem, -0.813rem + 4.82vw, 2.5rem) clamp(1.5rem, -0.813rem + 4.82vw, 2.5rem);
  color: var(--arrow-color);
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  width: calc((100% - 40px) / 2);
  max-width: 480px;
  font-size: clamp(1.8rem, 1.337rem + 0.96vw, 2rem);
  font-weight: 600;
}

.refa_btn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) skewX(45deg);
  width: 30px;
  height: 5px;
  border-bottom: 1px solid var(--arrow-color);
  border-right: 1px solid var(--arrow-color);
  transition: right 0.3s ease, border-color 0.3s ease;
}

.refa_btn:hover {
  opacity: .8;
  color: #fff;
}

.refa_blue {
  background: #3B5CC9;
}

.refa_pink {
  background: #ED7A9B;
}

@media screen and (max-width: 768px) {
  .refa_saiyo_wrap {
    flex-direction: column;
  }

  .refa_btn {
    width: 100%;
  }

  .refa_btn {
    line-height: 1.4;
  }
}

.refa_movie_wrap {
  background: #F6F4ED;
  position: relative;
  padding: clamp(12rem, 5.06rem + 14.46vw, 15rem) 0 clamp(8rem, -8.193rem + 33.73vw, 15rem) 0;
}

.custom-shape-divider-top-1766032083 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider-top-1766032083 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
  transform: rotateY(180deg);
}

.custom-shape-divider-top-1766032083 .shape-fill {
  fill: #FFFFFF;
}

.custom-shape-divider-bottom-1766046663 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-1766046663 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
  transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1766046663 .shape-fill {
  fill: #FFFFFF;
}

.refa_movie_container {
  position: relative;
  max-width: 1100px;
  padding: 2rem;
  margin: 0 auto;
}

.refa_ill02 {
  position: absolute;
  right: 0;
  top: -220px;
  width: 240px;
  height: auto;
  z-index: 2;
}

.refa_ill02 img {
  width: 100%;
  height: auto;
}

.refa_ill03 {
  position: absolute;
  left: 0;
  top: -280px;
  width: 100px;
  height: 300px;
  z-index: 2;
}

.refa_ill04 {
  position: absolute;
  right: 0;
  bottom: 2rem;
  width: 180px;
  height: 300px;
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .refa_movie_container {
    position: relative;
    max-width: 1100px;
    padding: 8rem 2rem;
    margin: 0 auto;
  }

  .refa_ill02 {
    right: 50%;
    transform: translateX(50%);
  }

  .refa_ill03 {
    left: 50%;
    transform: translateX(-50%);
    top: -300px;
    width: 90px;
    height: auto;
  }

  .refa_ill04 {
    right: 50%;
    transform: translateX(50%);
  }
}

.refa_form_wrap {
  background: #EAEEFF;
  padding: clamp(6rem, -7.88rem + 28.92vw, 12rem) 0;
}

.refa_form_container {
  padding: 0 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.refa_movie_area {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
  margin: 4rem auto 0 auto;
}

.card {
  width: calc((100% - 50px) / 2);
  max-width: 500px;
}

.ytshorts {
  width: min(280px, 100%);
  /* PCで横に伸びすぎない上限（お好みで） */
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  /* これが一番ラク（対応ブラウザはほぼOK） */
  background: #000;
  border-radius: 12px;
  /* 任意 */
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  z-index: 1;
  object-fit: cover;
}

.ytshorts__thumb {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: block;
  position: relative;
}

.ytshorts__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ytshorts iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.epi_txt {
  margin: 10px -20px 0 auto;
  color: rgba(255, 255, 255, .2);
  font-family: "Tauri", sans-serif;
  font-size: 3rem;
  text-align: right;
  font-weight: bold;
  letter-spacing: 2px;
}

.card-media img {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
}

.card-text {
  padding: 4rem 2rem 0rem 2rem;
  position: relative;
  top: -2rem;
}

.card-text h3 {
  font-size: clamp(1.8rem, 0.875rem + 1.93vw, 2.2rem);
  margin-bottom: 1rem;
  font-weight: bold;
  text-align: center;
  padding: 0 0 1rem 0;
  width: 100%;
  border-bottom: 1px solid #fff;
  line-height: 1.6;
}

.card-text p {
  line-height: 1.6;
  text-align: justify;
  padding: 1rem 0 0 0;
}

.card-text.pink {
  background: #ED7A9B;
  color: #fff;
}

.card-text.yellow {
  background: #F6B532;
  color: #fff;
}

/* Responsive Settings */
@media screen and (max-width: 768px) {
  .refa_movie_area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 4rem auto;
  }

  .card {
    width: 100%;
    max-width: 500px;
  }
}

.flow_wrap {
  padding: 120px 0 0 0;
  background-image: url(../images/referral/REFERRAL.png);
  background-repeat: no-repeat;
  background-position: top left;
  background-size: auto 100%;
  position: relative;
}

.refa_flow_container {
  position: relative;
  max-width: 1100px;
  padding: 0 2rem 32rem 2rem;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .flow_wrap {
    background-image: none;
  }
}

.flow {
  margin: 20px auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-between;
  -ms-flex-pack: space-between;
  justify-content: space-between;
  gap: 30px;
}

.flow>li {
  -ms-flex-preferred-size: calc((100% - 90px) / 4);
  flex-basis: calc((100% - 90px) / 4);
  display: flex;
}

.flow>li .step {
  font-family: "Tauri", sans-serif;
  font-size: 30px;
  text-align: left;
  color: #3B5CC9;
  margin: 0 auto 20px;
  letter-spacing: 2px;
}

.flow>li dl {
  padding: 20px;
  margin: 0;
  border: 2px solid #3B5CC9;
  position: relative;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  text-align: center;
  flex-direction: column;
  background: #fff;
}

.flow>li:not(:last-child) dl::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  border-style: solid;
  border-width: 15px 0 15px 20px;
  border-color: transparent transparent transparent #3b5cc9;
  translate: 100% -50%;
}

.flow>li dl dt img {
  width: 60%;
  margin: 0 auto;
}

.flow>li dl dd {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow>li dl dd h5 {
  color: #3B5CC9;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.flow>li dl dd p {
  line-height: 1.5;
  text-align: justify;
}

@media screen and (max-width: 768px) {
  .flow {
    gap: 30px;
    flex-direction: column;
    align-items: stretch;
    padding: 0 2rem;
  }

  .flow>li {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100% !important;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100% !important;
    display: flex;
    flex-direction: column;
  }

  .flow>li:not(:last-child) dl::after {
    content: "";
    position: absolute;
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    border-style: solid;
    border-width: 15px 10px 0 10px;
    border-color: #3b5cc9 transparent transparent;
    translate: -50% 100%;
  }
}

.list_note {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 2rem 0;
  flex-direction: column;
  align-items: flex-start;
}

.list_note li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  line-height: 1.6;
  text-align: justify;
}

.list_note li::before {
  content: '●';
  color: #3B5CC9;
  padding: 0 0.5em 0 0;
}

.list_note li a {
  color: #ED7A9B;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.refa_form_btn {
  --arrow-color: #333;
  display: inline-block;
  text-align: center;
  padding: clamp(1.5rem, -0.813rem + 4.82vw, 2.5rem) 50px clamp(1.5rem, -0.813rem + 4.82vw, 2.5rem) clamp(1.5rem, -0.813rem + 4.82vw, 2.5rem);
  color: var(--arrow-color);
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  width: calc((100% - 40px) / 2);
  max-width: 350px;
  font-size: clamp(1.8rem, 1.337rem + 0.96vw, 2rem);
  font-weight: 600;
  background: #fff;
  border: 1px solid #333;
}

.refa_form_btn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) skewX(45deg);
  width: 30px;
  height: 5px;
  border-bottom: 1px solid var(--arrow-color);
  border-right: 1px solid var(--arrow-color);
  transition: right 0.3s ease, border-color 0.3s ease;
}

.refa_form_btn:hover {
  opacity: .8;
  color: #333;
}

@media screen and (max-width: 768px) {
  .refa_form_btn {
    width: 100%;
  }
}
