@charset "utf-8";

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    word-break: keep-all;
    font-family: 'GMarketSans', 'Noto Sans KR', '맑은 고딕', 'malgun gothic', 'Apple SD Gothic Neo', 'Apple SD 산돌고딕 Neo', Helvetica, 'Microsoft NeoGothic', 'Nanum Gothic', '나눔고딕', sans-serif;
}

*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    font-family: 'GMarketSans', sans-serif;
    font-weight: 500;
    letter-spacing: -0.5px;
}

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 10px;
}

body {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    background: url('../images/main_image.png') no-repeat center center /cover;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

body::after {
    display: block;
    content: '';
    clear: both;
}

.wrap {
    width: fit-content;
    height: 100%;
    padding: 4rem;
}

h1 {
    font-size: 4.8rem;
    line-height: 110%;
    text-align: center;
    color: black;
    font-weight: 700;
    margin-bottom: 7.5rem;
}

.cl-pr {
    color: #39A6F4;
}

ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 2.4rem 6.4rem;
}

li {
    width: 48rem;
    height: 32rem;
    list-style: none;
}

a {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 5rem 4.8rem 3.2rem;
    border-radius: 4.8rem;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

p {
    height: 3rem;
    font-size: 2rem;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 100%;
    margin-top: 1.25rem;
}

img {
    position: absolute;
    right: 4.8rem;
    bottom: 3.2rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: bottom center;
}

.item-new {
    border: 8px solid #39A6F4;
    background: #FFFFFF;
    box-shadow: 0 4px 32px 0 rgba(57, 166, 244, 0.4);
}

.item-new p {
    position: relative;
    color: #6B7280;
    padding-left: 6.25rem;
}

.item-new .flag {
    position: absolute;
    left: 0;
    top: -3px;
    height: 2.6rem;
    padding: 6px 10px 0px;
    background: #0095FF;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    border-radius: 60px;
}

.item-new h2 {
    color: #0095FF;
}

.item-old {
    border: 8px solid #354F81;
    background: #354F81;
    box-shadow: 0 4px 32px 0 rgba(22, 46, 93, 0.30);
}

.item-old p,
.item-old h2 {
    color: #FFFFFF;
}

.item-new:hover,
.item-old:hover {
    transform: translateY(-8px);
}

.item-new:hover {
    box-shadow: 0 4px 48px rgba(57, 166, 244, 0.45);
}

.item-old:hover {
    box-shadow: 0 4px 48px rgba(22, 46, 93, 0.45);
}

.item-new:hover img,
.item-old:hover img {
    transform: rotate(5deg) translateX(6px);
}


/* ============================ [ Media Query ] ============================ */
@media (max-width: 560px) {
    h1 {
        font-size: 2.6rem;
        margin-bottom: 6rem;
    }

    li {
        width: 100%;
        height: 27rem;
    }

    a {
        padding: 3.6rem 3rem 3rem;
        border-radius: 3.2rem;
    }
    
    p {
        height: 2.4rem;
        font-size: 1.6rem;
    }
    
    .item-new p {
        padding-left: 5.7rem;
    }
    
    h2 {
        font-size: 2.2rem;
        margin-top: 0.5rem;
    }
    
    img {
        right: 3.2rem;
        bottom: 2.75rem;
    }
    
    .item-new .flag {
        top: -2px;
        height: 2rem;
        font-size: 1.2rem;
        padding: 3px 8px 0px;
    }

    .item-new:hover img,
    .item-old:hover img {
        transform: none;
    }
}