:root {
    --color-bk: #202124;
    --color-gy: #90949B;
    --color-wh: #ffffff;

    --color-bg: #FFF2F2;

    --color-hl: #D91F27;
    
    --title-1: 48px;
    --title-2: 40px;
    --title-3: 32px; 

    --font-xl: 28px;
    --font-l: 24px;
    --font-m: 20px;
    --font-s: 18px;
    --font-xs: 16px;

    --size-xl: 120px;
    --size-l: 80px;
    --size-m: 60px;
    --size-s: 40px;
    --size-xs: 20px;
}

/* ---------------- COMMON ---------------- */

.mo-br{
    display: none !important;
}

/* 팝업 배경 */
.popup-overlay{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.6);

    display:none;
    justify-content:center;
    align-items:center;

    z-index:9999;
}

/* 팝업 박스 */
.popup-box{
    position:relative;
    width:90%;
    max-width:600px;

    background:#fff;
    border-radius:var(--size-xs);

    padding:var(--size-s) calc(0.75 * var(--size-s));
    box-sizing:border-box;
}

/* 닫기 버튼 */
.popup-close{
    position:absolute;
    top:calc(0.8 * var(--size-xs));
    right:var(--size-xs);

    border:none;
    background:none;

    font-size:var(--font-xl);
    cursor:pointer;
}

/* 내용 */
.popup-box h2{
    margin-bottom:calc(1.2 * var(--size-xs));
    font-size:var(--font-l);
    font-weight: 600;
}

.popup-content{
    max-height:400px;
    overflow-y:auto;
}

.popup-content table{
    width:100%;
    border-collapse:collapse;
    margin:var(--size-xs) 0;
}

.popup-content th,
.popup-content td{
    border:1px solid #ddd;
    padding:12px;
    text-align:left;
    font-size:var(--font-s);
}

.popup-content th{
    width:120px;
    background:#f7f7f7;
}

.popup-note{
    font-size:var(--font-xs);
    color:#666;
    line-height:1.6;
}

/* 확인 버튼 */
.popup-confirm{
    width:100%;
    height:50px;

    border:none;
    border-radius:10px;

    background:#111;
    color:#fff;

    font-size:var(--font-m);
    cursor:pointer;

    margin-top:25px;
}

::selection {
    background-color: var(--color-bg);
    color: var(--color-hl);
}

* {
    font-family: 'Pretendard Variable', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    word-break: keep-all;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 360px;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--color-wh);
}

section{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--size-xl);
    padding-bottom: var(--size-xl);
    overflow-x: hidden;
}

.section-wrapper{
    max-width: 1320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-left: var(--size-s);
    padding-right: var(--size-s);
}

.section-title{
    font-size: var(--title-1);
    font-weight: 700;
    color: var(--color-bk);
    word-break: keep-all;
    line-height: 135%;
    text-align: center;
}

.section-desc{
    font-size: var(--font-l);
    font-weight: 400;
    color: var(--color-gy);
    word-break: keep-all;
    line-height: 150%;
    text-align: center;
}

/* ---------------- HEADER ---------------- */

header{
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.header-wrapper{
    max-width: 1600px;
    width: 100%;
    padding: 0 var(--size-s);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-wrapper > div{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--size-xs);
    padding: calc(0.8 * var(--size-s));
    background-color: var(--color-hl);
    border-bottom-left-radius: var(--size-xs);
    border-bottom-right-radius: var(--size-xs);
}

.header-wrapper > div > a{
    color: var(--color-wh);
    font-size: var(--font-s);
    font-weight: 500;
    padding: 8px var(--size-xs);
    border: 1px solid var(--color-wh);
    border-radius: 40px;
    transition: 0.2s ease;
}

.header-wrapper > div > a:hover{
    background-color: var(--color-wh);
    color: var(--color-hl);
}

/* 드롭다운 */
.lang-dropdown{
    position:relative;
}

/* 지구본 버튼 */
.lang-dropdown > img{
    width:32px;
    object-fit: contain;
    cursor:pointer;
    display:block;
}

/* 메뉴 */
.lang-menu{
    position:absolute;
    top:calc(1.2 * var(--size-s));
    right:0;

    width:120px;

    padding:8px;
    display:flex;
    flex-direction:column;
    gap:4px;
    background:rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius:16px;
    border:1px solid #ffffff40;
    box-shadow:0 12px 32px rgba(0,0,0,0.12);
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:0.25s ease;
    z-index:101;
}

/* 메뉴 버튼 */
.lang-menu a{
    height:40px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:10px;

    font-size:var(--font-xs);
    font-weight:600;

    color:var(--color-bk);

    transition:0.2s ease;
}

.lang-menu a:hover{
    background:var(--color-bg);
    color:var(--color-hl);
}

/* hover 시 열림 */
.lang-dropdown:hover .lang-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* ---------------- MAIN ---------------- */

#main{
    padding: 0;
}

#main > img{
    width: 100%;
    object-fit: contain;
}

/* ---------------- BRAMD ---------------- */

#brand {
    position: relative;
    padding-bottom: 0;
}

#brand .intro-desc{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--size-xs);
    margin: var(--size-s) 0;
}

#brand .character-row{
    max-width: 1600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--size-s);
    z-index: 2;
}

#brand .character-row > img{
    width: 320px;
    object-fit: contain;
}

#brand > img{
    position: absolute;
    bottom: 0;
    width: 100%;
    object-fit: contain;
    z-index: 1;
}

/* ---------------- TOY ---------------- */

#toy{
    background-color: var(--color-bg);
    padding-top: var(--size-m);
}

#toy > .section-wrapper{
    max-width: 1400px;
}

.toy-text{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(0.8 * var(--size-s));
    padding: 0 var(--size-s);
}

.toy-text > img{
    width: 200px;
    object-fit: contain;
}

.toy-text > span{
    color: var(--color-hl);
    font-size: var(--font-l);
    font-weight: 400;
}

.toy-img{
    border-radius: calc(0.8 * var(--size-s));
    border: 1px solid var(--color-hl);
    background-color: var(--color-wh);
    padding: var(--size-l) var(--size-xl);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--size-xs);
}

.toy-img > img{
    width: 100%;
    object-fit: contain;
}

.toy-img > img:nth-of-type(3){
    width: 85%;
    margin: var(--size-s) 0;
}

/* ---------------- SERVICE ---------------- */


#service{
    background-color: var(--color-hl);
}

#service .section-title{
    color: var(--color-wh);
    font-weight: 600;
}

#service .section-desc{
    font-weight: 300;
    color: #FFE6E6;
    margin-top: calc(0.8 * var(--size-s));
    margin-bottom: var(--size-m);
}


.service-wrapper{
    width: 100%;
    max-width: 1200px;
    display:flex;
    flex-direction:column;
    justify-content: flex-start;
    align-items: center;
    gap:var(--size-m);
}

.service-item{
    position:relative;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:var(--size-l);
}


.service-item::before{
    content:'';
    position:absolute;
    left:16px;
    top:var(--size-m);
    width:1px;
    height:calc(100% + var(--size-m));
    background-image: repeating-linear-gradient(to bottom, rgba(255,255,255) 0 6px,transparent 6px 12px);
}

.service-item:last-child::before{
    display:none;
}


.service-dot{
    position:absolute;
    left:0;
    top:var(--size-m);
    width:32px;
    height:32px;
    border-radius:50%;
    background:#fff;
    border:8px solid #FF5C60;
    z-index:2;
}

.service-text{
    position:relative;
    padding-left: var(--size-l);
    padding-top: calc(var(--size-m) - 3px);
}

.service-text .number{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 64px;
    padding: 4px 18px;
    text-align: center;
    border-radius: 40px;
    color: var(--color-wh);
    font-size:var(--font-l);
    font-weight:400;
    border: 1px solid var(--color-wh);
}

.service-text h3{
    font-size: var(--title-2);
    font-weight: 600;
    color: var(--color-wh);
    margin-top: var(--size-xs);
    margin-bottom: calc(0.8 * var(--size-s));
    line-height: 135%;
}

.service-text p{
    font-size: var(--font-l);
    color: #FFE6E6;
    font-weight: 300;
    line-height: 150%;
}

.service-card{
    background:linear-gradient(180deg, #FF4850, #D91F27);
    border: 1px solid #FF5C60;
    border-radius:28px;
    width: 640px;
    height:417px;
    padding:32px 32px 0 32px;
    display:flex;
    flex-direction: column;
    justify-content:flex-end;
    align-items: center;
    line-height: 0;
    overflow: hidden;
}

.service-card > img{
    display: block;
    width: 100%;
    object-fit: contain;
    border-top-left-radius: var(--size-xs);
    border-top-right-radius: var(--size-xs);
}

#contact{
    background: linear-gradient(180deg, #FFF0F0, #FFFFFF 25%);
}

#contact .section-desc{
    margin-top: calc(0.6 * var(--size-s));
    margin-bottom: var(--size-m);
}

form{
    max-width: 960px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--size-s);
    border: 1px solid var(--color-hl);
    border-radius: calc(0.8 * var(--size-s));
    background-color: var(--color-wh);
    box-shadow: 0px 8px 32px #F62B201A;
    padding: var(--size-m);
}

.form-group{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
}

form h3{
    font-size: var(--font-m);
    font-weight: 600;
    color: #707074;
    line-height: 1.4;
}

form h3 span{
    color: var(--color-hl);
}

.form-row{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--size-s);
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form textarea{
    width: 100%;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    background-color: #F8F9FA;
    padding: 20px 24px;
    font-size: var(--font-s);
    color: var(--color-bk);
    transition: all 0.2s ease;
    outline: none;
}

form textarea{
    min-height: 160px;
    resize: none;
    line-height: 150%;
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form input[type="email"]:focus,
form textarea:focus{
    border-color: var(--color-hl);
    background-color: var(--color-wh);
    box-shadow: 0 0 0 4px rgba(217,31,39,0.08);
}

.radio-wrap{
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-wrap input{
    display: none;
}

.radio-custom{
    width: 18px;
    height: 18px;
    flex-shrink: 0;

    background-image: url('../img/radio-off.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.radio-wrap input:checked + .radio-custom{
    background-image: url('../img/radio-on.png');
}

.radio-wrap p{
    font-size: var(--font-s);
    color: var(--color-bk);
    line-height: 150%;
    word-break: keep-all;
}

.checkbox-wrapper{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.checkbox-wrapper input{
    width: 16px;
    height: 16px;
    accent-color: var(--color-hl);
}

.checkbox-wrapper label{
    font-size: var(--font-xs);
    color: var(--color-bk);
    font-weight: 400;
    cursor: pointer;
}

.checkbox-wrapper span{
    font-size: var(--font-xs);
    color: var(--color-gy);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* 버튼 */
#form-submit{
    width: 100%;
    border: none;
    border-radius: 12px;
    background-color: var(--color-hl);
    color: var(--color-wh);
    padding: var(--size-xs);
    font-size: var(--font-m);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#form-submit:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(217,31,39,0.24);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"]{
    -moz-appearance: textfield;
}


footer{
    width: 100%;
    background-color: var(--color-hl);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--size-m) 0;
    
}

.footer-wrapper{
    max-width: 1320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 var(--size-s);
}

.footer-wrapper > p{
    font-size: var(--font-xs);
    font-weight: 300;
    color: #FFCCCC;
    line-height: 150%;
}

.footer-wrapper p a{
    color: #FFCCCC;
}


@media screen and (max-width: 1600px) {
    #brand .character-row > img{
        width: 240px;
    }
}

@media screen and (max-width: 1400px) {
    #brand .character-row > img{
        width: 240px;
    }

    .toy-img{
        padding: 5.7vw 6.4vw;
    }
}


@media screen and (max-width: 1320px) {
    :root {

    --title-1: 45px;
    --title-2: 36px;
    --title-3: 28px;

    --font-xl: 24px;
    --font-l: 20px;
    --font-m: 18px;
    --font-s: 17px;
    --font-xs: 16px;

    --size-xl: 96px;
    --size-l: 72px;
    --size-m: 54px;
    --size-s: 36px;
    --size-xs: 18px;
    }

    #brand .character-row > img{
        width: 200px;
    }

    .toy-text > img{
        width: 160px;
    }

    .service-card{
        width: 520px;
        height: 338px;
        padding: 28px 28px 0 28px;
        border-radius: 24px;
    }

    .service-item{
        gap: var(--size-m);
    }

    .service-text{
        padding-top: calc(var(--size-m) - 1px);
    }
}

@media screen and (max-width: 1024px) {
    #brand .character-row > img:first-of-type, #brand .character-row > img:last-of-type{
        display: none;
    }

    .toy-text > img{
        width: 120px;
    }

    .service-item::before{
        content:none;
    }

    .service-item{
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 28px;
    }

    .service-dot{
        display: none;
    }

    .service-text{
        padding-left: 0;
        padding-top: 0;
    }

    .service-text .number{
        min-width: 48px;
        padding: 3px 15px;
        font-size: var(--font-m);
    }

    .service-text h3{
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .lang-dropdown > img{
        width: 28px;
    }

}

@media screen and (max-width: 768px) {
    
    :root {
    --title-1: 32px;
    --title-2: 28px;
    --title-3: 24px;

    --font-xl: 21px;
    --font-l: 19px;
    --font-m: 17px;
    --font-s: 16px;
    --font-xs: 14px;

    --size-xl: 56px;
    --size-l: 56px;
    --size-m: 42px;
    --size-s: 28px;
    --size-xs: 16px;
    }

    .section-title{
        font-size: var(--title-2);
    }

    .section-desc{
        font-size: var(--font-m);
    }

    #brand .character-row {
        gap: 12px;
    }

    #brand .character-row > img{
        width: 30vw;
    }

    .toy-text{
        padding: 0 var(--size-xs);
        margin-bottom: 12px;
    }

    .toy-text > img{
        width: 80px;
    }

    .toy-text > span{
        font-size: var(--font-s);
    }

    .toy-img{
        border-radius: 12px;
    }

    .toy-img{
        padding: 4vw 4.8vw;
    }

    .toy-img > img:nth-of-type(3){
        margin: 12px 0;
    }

    .service-text .number{
        min-width: 45px;
        padding: 3px 12px;
        font-size: var(--font-s);
    }

    .service-text h3{
        font-size: var(--title-3);
    }

    .service-text p{
        font-size: var(--font-m);
    }

    .service-card{
        max-width: 520px;
        max-height: 338px;
        width: calc(90vw - 40px);
        height: calc(0.651 * (90vw - 40px));
        border-radius: 16px;
        padding: 20px 20px 0 20px;
    }

    .service-card > img{
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    #contact .section-desc{
        margin-bottom: var(--size-s);
    }

    form{
        border-radius: var(--size-xs);
        padding: calc(1.2 * var(--size-s));
        gap: 20px;
    }

    .form-row{
        gap: 20px;
        grid-template-columns: 1fr;
    }

    form input[type="text"], form input[type="number"], form input[type="email"], form textarea{
        padding: 18px 20px;
        border-radius: 8px;
    }

    .radio-custom{
        width: var(--font-s);
        height: var(--font-s);
    }

    .checkbox-wrapper input{
        width: var(--font-xs);
        height: var(--font-xs);
    }

    #form-submit{
        border-radius: 12px;
    }

    .form-group{
        gap: 8px;
    }

    .header-wrapper, .section-wrapper, .footer-wrapper{
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-wrapper > p{
        font-size: var(--font-xs);
    }

    .lang-dropdown > img{
        width: 24px;
    }

    .header-wrapper > div{
        padding: 18px;
        gap: 8px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .header-wrapper > div > a{
        font-size: var(--font-xs);
        padding: 6px 12px;
    }

        .lang-menu{
    width:100px;
    padding: 6px;
}

/* 메뉴 버튼 */
.lang-menu a{
    height:32px;
}
}

@media screen and (max-width: 576px) {
    
    :root {
    --title-1: 28px;
    --title-2: 26px;
    --title-3: 22px;

    --font-xl: 20px;
    --font-l: 18px;
    --font-m: 16px;
    --font-s: 15px;
    --font-xs: 12px;

    --size-xl: 56px;
    --size-l: 56px;
    --size-m: 42px;
    --size-s: 28px;
    --size-xs: 16px;
    }

    .toy-text > span{
        font-size: 13px;
    }
    .section-desc > br{
        display: none;
    }

    .service-text h3{
        margin-bottom: 10px;
    }

    .service-item{
        gap: 20px;
    }

    .service-wrapper{
        gap: 40px;
    }

    #toy{
        padding-top: var(--size-s);
    }

        .service-card{
        width: calc(100vw - 40px);
        height: calc(0.651 * (100vw - 40px));
        padding: 16px 16px 0 16px;
    }

    form{
        padding: 32px 20px;
    }

    form input[type="text"], form input[type="number"], form input[type="email"], form textarea{
        padding: 14px 16px;
        border-radius: 8px;
    }

    .header-wrapper > div{
        padding: 16px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    footer{
        padding: 32px 0;
    }

    .header-wrapper{
        padding: 0 8px;
    }

            .lang-menu{
    width:80px;
    padding: 4px;
}

    .mo-br{
        display: block !important;
    }
}

@media screen and (max-width: 360px) {

        #brand .character-row > img{
        width: 108px;
    }

        .toy-img{
        padding: 14px 17px;
    }
        
        .service-card{
        width: 320px;
        height: 208px;
    }
}