@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Paperlogy', 'Noto Sans KR', sans-serif;
  background-color: #edeffd;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
}

#fixedBtn {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  transform: translateX(-50%);
  animation: fixedBtnGlow 1.8s ease-in-out infinite;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  display: none;
}

#fixedBtn img {
  width: min(360px, calc(100vw - 32px));
  height: auto;
}

#fixedBtn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes fixedBtnGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35),
      0 0 10px rgba(255, 255, 255, 0.18),
      0 0 20px rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.95),
      0 0 18px rgba(255, 255, 255, 0.65),
      0 0 34px rgba(255, 255, 255, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  #fixedBtn {
    animation: none;
  }
}

.container {
  width: 1200px;
  margin: 50px auto;
  background-color: #fff;
  border-radius: 20px;
  padding: 50px;
  box-sizing: content-box;
}

.mainStart {
  display: flex;
  width: 100%;
}

.mainStart a {
  display: contents;
}

.mainStart > img {
  width: 33%;
}

.sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 50px;
  padding: 50px 20px;
  background-color: #edeffd;
}

.sub br {
  display: none;
}

.sub h4 {
  font-size: 50px;
  font-weight: bold;
}

.sub h4 span {
  color: #1535cd;
}

.sub_img1 {
  display: flex;
  gap: 50px;
}

.sub_img2 {
  display: flex;
  gap: 20px;
}

.privacy_box {
  display: flex;
  align-items: center;
  margin: 10px 0;
  justify-content: center;
  gap: 10px;
  font-size: clamp(14px, 4vw, 20px);
}

.scroll_section {
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.scroll_section .title {
  width: 45%;
  margin: 0 auto;
}

.scroll_section .listSlide {
  width: 700px;
  display: inline-block;
  height: 330px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 20px;
  font-size: 25px;
}

footer {
  background-color: #000;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
}

.form_section {
  padding: 5% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-family: 'Noto Sans KR', sans-serif;
}

.form_section .title {
  width: 60%;
}

.inputForm-wrapper {
  width: 100%;
  padding: 3% 0 0;
}

.inputForm-flex-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: clamp(14px, 4vw, 30px);
}

.inputForm-flex-wrap > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.inputForm-flex-wrap > div > label {
  word-break: keep-all;
}

.inputForm-wrapper div input {
  background: #f2f2f2;
  border: none;
  padding: 3%;
  display: block;
  width: 100%;
  font-size: clamp(14px, 4vw, 30px);
}

.name-label {
  margin-left: 28px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 10px 30px;
  border: 1px solid #888;
  width: 40%;
  border: none;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#marketingAgreeView {
  font-size: 20px;
  background: transparent;
  border: none;
}

@media (max-width: 768px) {
  #fixedBtn {
    bottom: 16px;
  }

  #fixedBtn img {
    width: min(320px, calc(100vw - 24px));
  }

  .mainStart > img {
    width: 100%;
  }

  .sub br {
    display: block;
  }
  .scroll_section .title {
    width: 80%;
  }
  .scroll_section .listSlide {
    height: 230px;
    width: 85%;
    font-size: 16px;
  }
  .container {
    width: 100%;
    margin: 0;
    padding: 0px;
  }
  .form_section .title {
    width: 100%;
  }
  .mainStart {
    flex-direction: column;
    width: 100%;
    overflow: hidden;
  }
  .sub {
    text-align: center;
  }
  .sub h4 {
    font-size: 30px;
  }
  .sub_img1 {
    flex-wrap: wrap;
    gap: 20px;
  }

  .sub_img2 {
    flex-direction: column;
    gap: 30px;
  }

  .sub_img1 img {
    width: 45%;
  }

  .modal-content {
    width: 80%;
  }

  .privacy_box {
    word-break: keep-all;
    font-size: 12px;
  }

  .form_section {
    padding: 10% 5%;
  }

  /* 모바일에서 고정된 상태의 inputForm-wrapper */
  .inputForm-wrapper.fixed {
    max-width: none;
    padding: 4% 6%;
    border-radius: 20px 20px 0 0;
  }

  /* 모바일에서 부모 요소에 도달했을 때의 inputForm-wrapper */
  .inputForm-wrapper.static {
    width: 100%;
    padding: 6%;
  }

  .name-label {
    margin-left: 4vw;
  }

  .inputForm-wrapper.fixed .inputForm-flex-wrap > div {
    gap: 5px;
  }

  .inputForm-wrapper.fixed .name-label {
    margin-left: 0;
  }

  .inputForm-wrapper.fixed #counsel_name {
    width: 70px;
  }

  .inputForm-flex-wrap,
  .num-input-wrap {
    gap: 10px;
  }

  #privacy_agreement {
    width: 15px;
    height: 15px;
  }

  .privacy_modal_content {
    padding: 5%;
    height: 50%;
  }

  .form_section {
    gap: 5px;
  }

  #marketingAgreeView {
    font-size: 12px;
  }
}
