@charset "utf-8";

/* reset.css */
:root {
  --primary-color: #ea5471;
  --main-text: #222222;
  --sub-text: #535353;
  --gray-b6: #b6b6b6;
  --gray-de: #dedede;
}

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

ul,
ol {
  list-style: none;
}

a,
a:hover {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

body {
  font-family: "pretendard", "sans-serif";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.8px;
  color: var(--main-text);
}

body.noscroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#wrap {
  max-width: 640px;
  margin: 0 auto;

  position: relative;
}

.inner {
  width: 90%;
  margin: 0 auto;
  /* background: #faffad; */
  position: relative;
}

/* s: header */
header {
  width: 100%;
  position: absolute;
  top: 20px;
  left: 0;
}

.logo {
  width: 14%;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* e: header */

/* s: visual */
.visual {
  width: 100%;
}

.visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* e: visual */

/* s: title_wrap */
.title_wrap {
  margin-top: 40px;
}

.title {
  font-size: 28px;
  color: var(--primary-color);
  line-height: 140%;
}

.sub_title {
  color: var(--sub-text);
  margin-top: 10px;
}
/* e: title_wrap */

/* s: card_list */
.card_list {
  margin-top: 40px;
}

.card {
  border: 0px;
  border-radius: 20px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  background: #fff;
  cursor: pointer;
}

.card + .card {
  margin-top: 20px;
}

.card b {
  display: block;
  font-family: "pretendard";
  font-size: 15px;
  line-height: 120%;
  letter-spacing: -0.8px;
  color: var(--primary-color);
  text-align: left;
}

.card strong {
  display: block;
  font-size: 22px;
  line-height: 140%;
  letter-spacing: -0.8px;
  text-align: left;
  margin-top: 10px;
}

.card_img {
  margin-top: 10px;
}

.card_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* e: card_list */

/* s: more */
.more {
  margin-top: 40px;
}

h3 {
  font-size: 28px;
}

.more_list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.more_list li {
  cursor: pointer;
}

.more_list li a {
  display: flex;
  align-items: center;
  gap: 16px;
}

.thumbnail {
  width: 34%;
  border-radius: 14px;
  overflow: hidden;
}

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

.more_title {
  width: 100%;
  min-width: 0;
}

.more_title h4 {
  font-weight: 600;
}

.more_title p {
  font-size: 14px;
  color: var(--sub-text);

  display: block; /* 블록 요소여야 ellipsis 적용됨 */
  width: 100%; /* 또는 원하는 고정 너비(px, %) */
  white-space: nowrap; /* 줄바꿈 없이 한 줄 유지 */
  overflow: hidden; /* 넘치는 텍스트 숨김 */
  text-overflow: ellipsis; /* 말줄임표(...) 처리 */
}
/* e: more */

/* s: footer */
#footer_2024 {
  width: 100%;
  margin-top: 40px;
  line-height: normal;
  font-family: "pretendard";
}

.infor_summary {
  background-color: #4b4b4b;
  padding: 40px 0;
}

.infor_summary p {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.6px;
}

.infor_summary p + p {
  margin-top: 8px;
}

.footer_conts {
  padding: 40px 0 106px;
  letter-spacing: -0.6px;
}

.footer_popup ul {
  display: flex;
  gap: 12px;
}

.footer_popup li {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.footer_popup a {
  color: #222;
}

li {
  list-style: none;
}

.footer01 {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.footer01 li,
.footer02 li {
  font-size: 13px;
  color: #666666;
}

.footer01 li:nth-child(odd)::after {
  display: inline-block;
  content: "";
  width: 1px;
  height: 10px;
  background-color: #e1e1e1;
  margin-left: 8px;
}

.footer02 {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer02 li:nth-child(odd)::after {
  display: inline-block;
  content: "";
  width: 1px;
  height: 10px;
  background-color: #e1e1e1;
  margin-left: 8px;
}

.copyright {
  font-size: 12px;
  font-weight: 500;
  color: #666666;
  margin-top: 24px;
}
/* e: footer */

/* s: btn */
.btn {
  width: 100%;
  max-width: 640px;
  min-width: 320px;
  background: var(--primary-color);
  font-size: 22px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.8px;
  color: #fff;
  padding: 16px 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  cursor: pointer;
  text-align: center;

  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
/* e: btn */

/* s: popup_wrap */
.popup_wrap {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

.popup_db {
  background: #fff;
  padding: 50px 30px;
  border-radius: 20px;
  min-width: 375px;
  max-width: 375px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  max-height: 80vh;
}

.popup_title {
  font-size: 22px;
  line-height: 150%;
}

.db_wrap {
  margin-top: 20px;
}

.name_gen .form_wrap {
  margin-top: 0;
}

.form_wrap {
  margin-top: 14px;
}

.form_wrap label {
  font-size: 12px;
  line-height: 16px;
  color: #515151;
}

.form {
  width: 100%;
  height: 48px;
  -webkit-appearance: none;
  -webkit-border-radius: 0;
  border: 1px solid #dedede;
  border-radius: 10px;
  padding-left: 16px;
  font-size: 14px;
  line-height: 20px;
  margin-top: 6px;
}

.form::placeholder {
  color: #b6b6b6;
}

.name_gen {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.name_gen .form_wrap {
  width: 58%;
}

.name_gen .form_wrap + .form_wrap {
  width: 40%;
}

#gen {
  width: 100%;
  display: flex;
  gap: 5%;
}

#gen input[type="radio"] {
  display: none;
}

#gen input[type="radio"]:checked + span {
  width: 100%;
  height: 48px;
  line-height: 48px;
  display: inline-block;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
}

#gen label {
  width: 100%;
  height: 48px;
  line-height: 48px;
  border: 1px solid #dedede;
  outline: 0;
  text-align: center;
  border-radius: 10px;
  font-size: 14px;
  color: var(--sub-text);
  cursor: pointer;
}

.smsWrap {
  margin-top: 14px;
}

#mobile_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

#mobile_wrap .form {
  width: 75%;
  margin-top: 0;
}

#btnSendAuthCode {
  width: 23%;
  border: 0;
  border-radius: 10px;
  background-color: #3a3a3a;
  height: 48px;
  line-height: 48px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  -webkit-appearance: none;
  cursor: pointer;
}

#auth_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 6px;
}

#auth_wrap .form {
  width: 75%;
  margin-top: 0;
}

#btnCheckAuthCode {
  width: 23%;
  border: 0;
  border-radius: 10px;
  border: 1px solid var(--tertiary-color);
  background-color: #3a3a3a;
  height: 48px;
  line-height: 48px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  -webkit-appearance: none;
  cursor: pointer;
}

.sms_okay {
  height: 48px;
  background: #fff3f5;
  border: 1px solid var(--primary-color);
  padding-left: 16px;
  border-radius: 10px;
  margin-top: 6px;
}

.sms_okay p {
  font-size: 14px;
  color: var(--primary-color);
  line-height: 47px;
}

/* s: personal_box */
.personal_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 14px;
  color: #7b7b7b;
  margin-top: 20px;
}

.personal_box input,
.personal_box label {
  cursor: pointer;
}

.personal_box a {
  text-decoration: underline;
  color: #7b7b7b;
}

.all_box {
  width: 50%;
  text-align: left;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.look {
  width: 50%;
  text-align: right;
}

.agree_box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.receive_box {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* e: personal_box */

/* popup_btn */
.popup_btn {
  display: block;
  width: 100%;
  margin: 0 auto;
  font-size: 22px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.8px;
  color: #fff;
  text-align: center;
  background: var(--primary-color);
  border: 0;
  border-radius: 10px;
  padding: 14px 0;
  margin-top: 30px;
  cursor: pointer;
}
/* e: popup_wrap */

/* s: chapter */
.dim {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);

  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

.chapter {
  background: #fff;
  border-radius: 20px;
  padding: 50px 0;
  width: 80%;
  min-width: 360px;
  max-width: 500px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;

  max-height: 80vh;
  overflow-y: auto;
}

/* 크롬/엣지/사파리 */
.chapter::-webkit-scrollbar {
  width: 6px; /* 얇은 스크롤바 */
}

.chapter::-webkit-scrollbar-track {
  background: transparent; /* 투명 */
}

.chapter::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

/* 파이어폭스 */
.chapter {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.step {
  width: 106px;
  height: 22px;
  margin: 0 auto;
}

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

h2 {
  font-size: 22px;
  color: var(--primary-color);
  text-align: center;
  margin-top: 40px;
  line-height: 150%;
}

h2::after {
  content: "";
  display: block;
  width: 2px;
  height: 40px;
  background: var(--primary-color);
  margin: 30px auto 0;
}

.chapter_img {
  margin-top: 40px;
}

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

.chapter_text_wrap {
  margin-top: 40px;
  padding: 0 20px;
}

.chapter_text {
  font-size: 16px;
  line-height: 210%;
  color: var(--sub-text);
}

.chapter_text + .chapter_text {
  margin-top: 40px;
}

.chapter_text span {
  font-weight: 600;
}

.chapter_text strong {
  font-weight: 600;
  color: var(--primary-color);
}

/* close */
.close {
  background: transparent;
  border: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;

  position: absolute;
  top: 20px;
  right: 20px;
}

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

/* prev_next_wrap */
.prev_next_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* prev */
.prev {
  display: block;
  background: transparent;
  border: 0;
  width: 85px;
  height: 50px;
  cursor: pointer;
  margin-top: 40px;
}

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

/* next */
.next {
  display: block;
  background: transparent;
  border: 0;
  width: 85px;
  height: 50px;
  cursor: pointer;
  margin-top: 40px;
  margin-left: auto;
}

.next img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* e: chapter */

#chapter02 {
  background-color: #ffebef;
}

@media screen and (min-width: 640px) {
  body {
    font-size: 22px;
    line-height: 150%;
  }

  .title {
    font-size: 34px;
  }

  .card b {
    font-size: 21px;
  }

  .card strong {
    font-size: 28px;
  }

  h3 {
    font-size: 34px;
  }

  .more_title p {
    font-size: 20px;
  }

  h2 {
    font-size: 28px;
  }

  .chapter_text {
    font-size: 22px;
  }

  .btn {
    font-size: 26px;
  }
}
