@import url('../css/pretendard-gov.css');

/* Gmarket Sans Local Font Import */
@font-face {
    font-family: 'GmarketSans';
    src: url('../fonts/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'GmarketSans';
    src: url('../fonts/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* ----------------------------------
   Reset & Base Styles
---------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: calc(6px + 0.2vw); 
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', Roboto, sans-serif;
    background-color: #f7f7f7;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

/* ----------------------------------
   기본 레이아웃 및 데스크톱 (PC: 1025px ~)
---------------------------------- */
.intro_bg {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../images/bg_intro.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.intro_wrap {
    width: 100%;
    max-width: 1180px; 
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.logo_area {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.logo_area img {
    height: 45px;
    width: auto;
}

.intro_wrap h1 {
    font-family: 'GmarketSans', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', Roboto, sans-serif;
    color: #111;
    line-height: 1.5;
    word-break: keep-all;
}

.intro_wrap h1 .sub_title {
    display: block;
    font-size: 4.0rem;
    font-weight: 400;
    margin-bottom: 1px;
}

.intro_wrap h1 .main_title {
    display: block;
    font-size: 4.6rem;
    font-weight: 400;
}

.intro_wrap h1 .main_title .point {
    font-weight: 700;
    color: #726250;
}

.intro_wrap .text_area {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', Roboto, sans-serif;
    font-size: 2.6rem;
    color: #222;
    line-height: 1.5;
    margin-top: 44px;
    word-break: keep-all;
}
.intro_wrap .text_area .text_top, .intro_wrap .text_area .text_bottom {
    display: block;
    font-size: inherit;
    line-height: 1.5;
}
.intro_wrap .text_area .text_bottom {
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.btn_area {
    margin-top: 60px;
}

.btn_area a {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', Roboto, sans-serif;
    display: inline-block;
    background-color: #726250;
    color: #ffffff;
    text-decoration: none;
    font-size: 2.4rem;
    font-weight: 700;
    padding: 18px 75px 18px 45px; 
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(114, 98, 80, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.btn_area a::after {
    content: "";
    display: block;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 24px;
    background-image: url('../images/btn_arrow.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: right 0.2s ease;
}

.btn_area a:hover {
    background-color: #5c4f40;
    box-shadow: 0 6px 16px rgba(114, 98, 80, 0.35);
}

/* ----------------------------------
   태블릿 해상도 (Tablet: 768px ~ 1024px)
---------------------------------- */
@media screen and (max-width: 1024px) {
    html { font-size: calc(6px + 0.25vw); } /* 태블릿 기준 실시간 비례 크기 */
    .intro_bg { background-size: cover; }
    .intro_wrap { max-width: 100%; padding: 40px 30px; }
    .logo_area { bottom: 8%; }
    .logo_area img { height: 40px; }
    .intro_wrap h1 .sub_title { font-size: 3.6rem; }
    .intro_wrap h1 .main_title { font-size: 3.6rem; }
    .intro_wrap .text_area { font-size: 2.4rem; margin-top: 30px; }
    .btn_area { margin-top: 40px; }
    .btn_area a { font-size: 2.4rem; padding: 16px 55px 16px 30px; }
    .btn_area a::after { right: 25px; width: 10px; height: 18px; }
    .btn_area a:hover::after { right: 20px; }
}

/* ----------------------------------
   모바일 해상도 (Mobile: ~ 767px)
---------------------------------- */
@media screen and (max-width: 767px) {
    html { font-size: calc(8px + 0.3vw); }
    .intro_bg {
        background-image: url("../images/bg_intro_mb.jpg");
        background-color: #f7f7f7;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    .intro_wrap { padding: 45px 30px; }
    .logo_area { bottom: 19%; }
    .logo_area img { height: 35px; }
    .intro_wrap h1 .sub_title { font-size: 2.2rem; margin-bottom: 5px; }
    .intro_wrap h1 .main_title { font-size: 3.6rem; }
    .intro_wrap h1 .main_title .point { display:block; }
    .intro_wrap .text_area { font-size: 1.8rem; margin-top: 25px; }
    .intro_wrap .text_area .text_bottom > span {display: block;}
    .btn_area { margin-top: 30px; width: auto; min-width: 50%; }
    .btn_area a { display: block; width: auto; font-size: 1.6rem; line-height:150%; padding: 10px 45px 10px 28px; }
    .btn_area a > span {display: block;}
    .btn_area a::after { right: 20px; width: 8px; height: 14px; }
}

@media screen and (max-width: 375px) {
    .intro_wrap { padding: 10px 20px; }
    .intro_wrap h1 .sub_title {font-size: 2rem;}
    .intro_wrap h1 .main_title {font-size: 2.8rem;}
    .intro_wrap .text_area {font-size: 1.4rem;}
    .btn_area a {font-size: 1.4rem;}
    .logo_area { bottom: 20%; }
}