/* 메인 섹션 공통 */
.main_section {
  position: relative;
  padding: 150px 0;
  color: #121212;
}

.main_section .section_label {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.main_section h2 {
  font-size: 3.125rem;
  font-weight: 300;
  line-height: 1.2em;
  margin: 40px 0;
}

.main_section h2 b {
  font-weight: 700;
}

.main_section h2 b.color_orange {
  color: var(--color-primary);
}

.main_section p {
  font-size: 1.25rem;
  line-height: 1.8em;
}

.main_section .view_more {
  display: inline-flex;
  margin: 80px auto 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #121212;
  gap: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  transition: 0.3s all;
}

.main_section .view_more:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media screen and (max-width: 1420px) {
  .main_section h2 {
    font-size: 2.75rem;
    margin: 30px 0;
  }
}

@media screen and (max-width: 1024px) {
  .main_section {
    padding: 100px 0;
  }
}

@media screen and (max-width: 512px) {
  .main_section {
    padding: 80px 0;
  }

  .main_section .view_more {
    margin-top: 50px;
  }
}

/* 비주얼 */
.main_visual {
  position: relative;
}

.main_visual .mainSwiper {
  width: 100%;
  height: 100vh;
}

.main_visual .swiper-slide {
  width: 100%;
  height: 100%;
}

.main_visual .slide_01 {
  background: url("/img/main/mainvisual_bg_01.jpg") no-repeat center/cover;
}

.main_visual .slide_02 {
  background: url("/img/main/mainvisual_bg_02.jpg") no-repeat center/cover;
}

.main_visual .slide_03 {
  background: url("/img/main/mainvisual_bg_03.jpg") no-repeat center/cover;
}

.main_visual .slide_txt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

.main_visual .slide_txt strong,
.main_visual .slide_txt h2,
.main_visual .slide_txt p {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.main_visual .slide_txt strong {
  display: inline-block;
  padding: 10px 26px;
  background: #fff;
  color: #121212;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.main_visual .slide_txt h2 {
  font-size: 4.25rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.main_visual .slide_txt p {
  font-size: 1.25rem;
  line-height: 1.8em;
}

.swiper-slide-active .slide_txt strong {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.swiper-slide-active .slide_txt h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.swiper-slide-active .slide_txt p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.main_visual .swiper-button-prev,
.main_visual .swiper-button-next {
  width: 60px;
  height: 60px;
  padding: 15px;
  border-radius: 50%;
  border: 1px solid #fff;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.main_visual .swiper-button-prev {
  left: 20px;
  background-image: url("/img/icon/mainvisual_prev.png");
}

.main_visual .swiper-button-next {
  right: 20px;
  background-image: url("/img/icon/mainvisual_next.png");
}

.main_visual .swiper-button-prev::after,
.main_visual .swiper-button-next::after {
  display: none;
}

.main_visual .swiper-pagination-bullets {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  bottom: 100px;
}

.main_visual .swiper-pagination-bullet {
  position: relative;
  width: 120px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  border-radius: 0px;
}

.main_visual .swiper-pagination-bullet .bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 10s linear;
}

.main_visual .swiper-pagination-bullet.animating .bar-fill {
  transform: scaleX(1);
}

@media screen and (max-width: 1600px) {
  .main_visual .slide_txt {
    padding-left: 100px;
  }

  .main_visual .slide_txt strong {
    padding: 8px 14px;
    font-size: 1.5rem;
  }

  .main_visual .slide_txt h2 {
    font-size: 3.75rem;
  }

  .main_visual .swiper-button-prev,
  .main_visual .swiper-button-next {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 1024px) {
  .main_visual .slide_txt strong,
  .main_visual .slide_txt h2 {
    margin-bottom: 20px;
  }

  .main_visual .slide_txt h2 {
    font-size: 3.25rem;
  }
}

@media screen and (max-width: 760px) {
  .main_visual .slide_txt {
    padding: 0 80px;
  }
}

@media screen and (max-width: 512px) {
  .main_visual .slide_txt {
    padding: 0 20px;
    top: calc(50% - 30px);
  }

  .main_visual .swiper-button-prev,
  .main_visual .swiper-button-next {
    display: none;
  }
}

/* 회사소개 */
.main_company {
  text-align: center;
  background: url("/img/main/main_company_bg_left.jpg") center left no-repeat,
    url("/img/main/main_company_bg_right.jpg") center right no-repeat;
}

.main_company .view_more {
  margin-top: 100px;
}

@media screen and (max-width: 1420px) {
  .main_company {
    text-align: left;
    background: url("/img/main/main_company_bg_right.jpg") center right
      no-repeat;
  }
}

@media screen and (max-width: 1024px) {
  .main_company {
    background-blend-mode: screen;
    background-color: rgba(255, 255, 255, 0.8);
  }
}

@media screen and (max-width: 512px) {
  .main_company {
    text-align: center;
    background-position: center;
  }

  .main_company .view_more {
    margin-top: 80px;
  }
}

/* 회사소개 및 부가 설명 부분 */
.main_introduce::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 0;
  border-radius: 0 300px 300px 0;
  width: 77%;
  height: 480px;
  z-index: -1;
  background: #fff8f4;
}

.main_introduce .description span {
  font-size: 1.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.main_introduce .description_txt {
  display: flex;
  gap: 80px;
  margin: 30px 0 50px;
}

.main_introduce h2 {
  margin: 0;
}

.main_introduce .gallery ul {
  display: grid;
  grid-template-columns: repeat(3, 380px);
  padding-left: 15rem;
  gap: 20px;
}

.main_introduce .gallery li {
  position: relative;
}

.main_introduce .gallery li img {
  width: 100%;
}

.main_introduce .gallery li span {
  position: absolute;
  text-align: center;
  color: #fff;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  white-space: pre;
}

@media screen and (max-width: 1420px) {
  .main_introduce .gallery ul {
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1240px) {
  .main_introduce .description_txt {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    row-gap: 20px;
  }
}

@media screen and (max-width: 512px) {
  .main_introduce .description_txt {
    margin-top: 20px;
    flex-direction: column;
  }
  .main_introduce .gallery ul {
    grid-template-columns: repeat(1, 1fr);
  }

  .main_introduce .description span img {
    width: 20px;
  }
}

/* 장례절차 */
.main_process {
  text-align: center;
  color: #fff;
  background: url("/img/main/main_process_bg.jpg") no-repeat center/cover;
}

.main_process .section_label {
  color: #fff;
}

.main_process .process_step {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  transition: backdrop-filter 0.3s ease;
}

.main_process .process_step.blur_on {
  backdrop-filter: blur(10px);
}

.main_process .process_step li {
  width: 224px;
  height: 224px;
  border: 1px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-left: -20px;
}

.main_process .process_step li:first-child {
  margin-left: 0;
}

.main_process .view_more {
  color: #fff;
  border-color: #fff;
}

@media screen and (min-width: 1241px) {
  .main_process .process_step li.break {
    display: none;
  }
}

@media screen and (max-width: 1240px) {
  .main_process .process_step {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main_process .process_step li {
    flex: 0 0 auto;
  }

  .main_process .process_step li.break {
    width: 100%;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
  }

  .main_process .process_step li:nth-child(5) {
    margin-left: 0;
  }

  .main_process .process_step li:not(.break):nth-child(n + 5) {
    margin-top: -20px;
  }
}

@media screen and (max-width: 760px) {
  .main_process .process_step li {
    width: 180px;
    height: 180px;
  }
}

@media screen and (max-width: 512px) {
  .main_process .process_step li {
    width: 150px;
    height: 150px;
    font-size: 1.75rem;
  }

  .main_process .process_step li:nth-child(3),
  .main_process .process_step li:nth-child(6) {
    margin-left: 0;
  }

  .main_process .process_step li:nth-child(5) {
    margin-left: -20px;
  }

  .main_process .process_step li.break {
    display: none;
  }

  .main_process .process_step li:not(.break):nth-child(n + 3) {
    margin-top: -20px;
  }
}

/* 장례비용 */
.main_amount {
  text-align: center;
}

.main_amount .amount_list {
  margin: 80px auto 0;
  max-width: 1200px;
  width: 100%;
}

.main_amount .amount_item {
  display: flex;
  border: 1px solid #eaeaea;
  margin-bottom: 30px;
}

.main_amount .amount_item:last-child {
  margin-bottom: 0;
}

.main_amount .amount_item .txt_box {
  padding: 0 40px;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main_amount .amount_item .txt_box h3 {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #121212;
  width: 100%;
  font-size: 2rem;
  font-weight: 600;
}

.main_amount .amount_item .price_list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: #666;
}

.main_amount .amount_item .price_list .label {
  font-weight: 700;
}

.main_amount .amount_item .price_list li:last-child {
  margin-bottom: 0;
}

.main_amount .amount_item .price_summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.main_amount .amount_item .price_summary .note {
  color: #666;
  font-size: 1.125rem;
}

.main_amount .amount_item .price_summary .total {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1em;
}

@media screen and (max-width: 1240px) {
  .main_amount .amount_item .price_summary .total {
    font-size: 2rem;
  }
}

@media screen and (max-width: 1024px) {
  .main_amount .amount_item {
    flex-direction: column;
    border: none;
    margin-bottom: 40px;
  }

  .main_amount .amount_item:last-child {
    margin-bottom: 0;
  }

  .main_amount .amount_item img {
    width: 100%;
  }

  .main_amount .amount_item .txt_box {
    border: 1px solid #eaeaea;
    margin-top: 20px;
    padding: 20px;
  }

  .main_amount .amount_item .price_summary .total {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 760px) {
  .main_amount .amount_list {
    margin-top: 80px;
  }
}

@media screen and (max-width: 512px) {
  .main_amount .amount_list {
    margin-top: 50px;
  }
}

/* 리뷰 */
.main_review {
  background: #f7f7f7;
}

.main_review .view_more {
  margin: 80px 0 0;
}

.main_review .review_utils {
  display: flex;
  gap: 120px;
  align-items: flex-end;
}

.main_review .review_nav .review-slide-btn {
  outline: 0;
  border: 0;
  width: 46px;
  height: 46px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s all;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

.main_review .review_nav .review-slide-btn:hover {
  background: var(--color-primary);
}

.review-button-prev {
  margin-right: 15px;
}

.review_slide_wrap {
  max-width: 55vw;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.review_slide_wrap .swiper-slide {
  background: #fff;
}

.review_slide_wrap .swiper-slide img {
  width: 100%;
}

.review_slide_wrap .swiper-slide .slide_txt {
  padding: 30px;
}

.review_slide_wrap .swiper-slide .date {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.review_slide_wrap .swiper-slide h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

@media screen and (max-width: 1024px) {
  .main_review .review_utils {
    gap: 0;
    justify-content: space-between;
  }

  .main_review .view_more {
    margin-top: 50px;
  }

  .review_slide_wrap {
    margin-top: 30px;
    max-width: unset;
    padding: 0 20px;
    position: static;
    right: unset;
    top: unset;
    transform: unset;
  }
}

@media screen and (max-width: 512px) {
  .main_review .view_more {
    margin-top: 30px;
  }

  .review_slide_wrap .swiper-slide .slide_txt {
    padding: 20px;
  }
}
