/* 반응형 웹 디자인을 위한 수정된 CSS */
@font-face {
    font-family: 'Jalnan';
    src: url('./font/JalnanOTF.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: 'yoon320';
    src: url('./font/yoon320.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: 'yoon360';
    src: url('./font/yoon360.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'DXBangtan';
    src: url('./font/DXBang.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }


body {
    background: #fbfaf9;
    margin: 0;
    font-family: 'Jalnan', "Malgun Gothic", "돋움", Arial, sans-serif;
    color: #4f4335;
}

.main-wrap {
    max-width: 1920px;
    margin: 0 auto;
    min-height: 100vh;
}

.header {
    position: absolute; /* 초기 상태: 메인 배너 위에 위치 */
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 1); /* 초기 상태: 완전 불투명 */
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, position 0.3s ease;
}

.header.scrolled {
    position: fixed; /* 스크롤 시 상단 고정 */
    background: rgba(255, 255, 255, 0.6); /* 스크롤 시: 불투명도 60% */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 스크롤 시 그림자 추가 */
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    flex-wrap: wrap;
}

.logo{
    font-family: 'Jalnan', sans-serif;
    font-size: 47px;
    font-weight: bold;
    color: #6f6293;
}

.logo-sub {
    font-size: 1rem;
    color: rgb(102, 102, 102);
    /* margin-left: 12px; */
    font-family: 'yoon320', sans-serif;
}

.header-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-call {
    color: #fff;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 1rem;
    text-decoration: none;
    font-family: 'yoon320', sans-serif;
}

.kakao_btn {
    background: #6f6293;
}
.cal_btn {
    background: #e5c6df;
}
.main-banner {
    background-image: url("./uploads/main.jpg");
    width: 100%;
    min-height: 550px;
    /* background-image: url('./uploads/.jpg'); */
    margin-top: 120px; /* 헤더 높이만큼 여백 추가 */
}

.main-banner img {
    width: 100%;
    height: auto;
    display: block;
}


.main-banner2 { 
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 550px;
    width: 100%;
    background-image: url(./uploads/간편한_대출_절차_소개.png);
    margin-top: 120px;
}

.main-banner2 img {
    width: 100%;
    height: auto;
    display: block;
}

.main-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.main_tx1, .main_tx2 {
    font-family: 'DXBangtan', sans-serif;
    font-weight: bold;
    margin: 0 auto;

}
.main_tx2 {
    padding-top: 0.2rem;
    color: #d8adcc;
    font-size: 2rem;
}
.main_tx1 {
    padding-top: 1em;
    color: #482f67;
    font-size: 2rem;
}
.custom-table {
    font-family: 'DXBangtan', sans-serif;
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    text-align: center;
}

.custom-table td {
    width: 33.33%;
    border: 1px solid #4a2963;
    padding: 10px 0  0 0px; 
}

.square-content {
    height: 200px;
    padding-top: 20px;
}

.square-image {
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.purple-text {
    font-size: 24px;
    color: #4a2963;
    /* font-size: 1.5rem; */
    font-weight: bold;
    margin: 10px 0;
}

.pink-box {
    font-size: 17px;
    background-color: #e099cf;
    color: #fff;
    font-weight: bold;
}

.pink-box p {
    margin: 0;
    padding: 10px;
}

.main-form-wrap {
    background: #fff;
    margin: 40px auto;
    width: 80%;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(192, 169, 137, 0.26);
    padding: 32px 30px;
    font-family: 'yoon320', sans-serif;
}

.main-form-wrap h2 {
    color: #482f67;
    font-size: 1.8rem;
    margin-bottom: 14px;
    text-align: center;
}

.form-comment {
    width: 100%;
    min-height: 10px;
    color: #8e7ea6;
    margin-bottom: 24px;
    font-size: 1rem;
    text-align: center;
    font-family: 'yoon320', sans-serif;
}

#joyForm {
    display: flex;
    flex-wrap: wrap;
    /* gap: 10px; */
    align-items: center;
    justify-content: center;
}

#category {display: none;}
#joyForm input[type="text"],
#joyForm input[type="email"],
#joyForm select  {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'yoon320', sans-serif;
    box-sizing: border-box;
    margin-bottom: 5px;
}

#joyForm select {
    /* width: 60%; */
    margin: 0 5px 0px 0;
    min-width: 120px;
    background-color: #fff;
}


#joyForm button {
  background: #d8adcc;
  color: #fff;
  border: none;
  padding: 14px;
  font-family: 'Jalnan', sans-serif !important;
  border-radius: 10px;
  font-size: 1.2rem;
}

#joyForm h2
{
    width: 100%;
    font-size: 1.5rem;
    color: #8e7ea6;
    margin-bottom: 20px;
    
  font-family: 'Jalnan', sans-serif !important;
}

#joyForm button:hover {
    background: #c59abf;
}

.service-info {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
}
.service-info h2 {
    font-size: 1.5rem;
    color: #8e7ea6;
    margin-bottom: 20px;
}
.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3ecfc;
    border: 2px solid #c3a989;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.06rem;
}

.step-num {
    font-size: 1.3rem;
    color: #a36851;
    margin-bottom: 6px;
}

.icon-product-list {
    width: 90%;
    max-width: 1100px;
    margin: 48px auto;
    text-align: center;
}

.icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.icon-item {
    width: 150px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 6px #c3a9891a;
    padding: 16px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.1rem;
}

.icon-item img {
    max-width: 80px;
    margin-bottom: 8px;
}

.icon-item span {
    display: block;
    color: #6c94bc;
    margin-top: 2px;
}

.footer {
    background: #d8adcc;
    color: #fff;
    padding: 22px;
    text-align: left;
    font-size: 0.65rem;
    font-family: 'yoon320', sans-serif;
    line-height: normal;
}
.footer b {
    
    font-family: 'yoon360', sans-serif;
}
.footer-inner {
    width: 100%;
    /* max-width: 900px; */
    margin: 0 auto;
}


#success-message {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: green;
    font-weight: bold;
}

/* 반응형 대응 */
@media (max-width: 768px) {
    .header {
        padding: 8px 0;
        position: fixed; /* 상단 고정 */
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 1); /* 기본 상태: 불투명 */
        border-bottom: 1px solid #ddd;
        z-index: 1000;
        transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    .header.scrolled {
        background: rgba(255, 255, 255, 0.9); /* 스크롤 시: 약간 투명 */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 스크롤 시 그림자 추가 */
    }

    .header-inner {
        flex-direction: row; /* PC와 동일한 정렬 */
        justify-content: space-between;
        align-items: center;
    }

    .main-banner{
        min-height: 240px;
        background-position: center;
        margin-top: 120px;
        background-size: 165%;
        background-repeat: no-repeat;
    }

    .btn-call {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    .custom-table td {
        display: block;
        width: 100%;
    }
    .icon-item {
        width: 100%;
        max-width: 300px;
    }
    #joyForm input[type="text"],
    #joyForm select {
        width: 100%;
        margin-bottom: 5px;
    }
    .step {
        width: 100px;
        height: 100px;
    }
    .logo {
        font-size: 1.5rem;
    }

    .main-banner img {
        width: 100%;
        height: auto;
        display: block;
        transform: scale(1.6);
    }
    .main-banner2{ 
    background-size: 150%;
    min-height: 300px;
    }
}


