@charset "utf-8";

/*
 * File    : rwd-layout.css
 * Author  : STUDIO-JT (JSH)
 *
 * SUMMARY :
 * 1900px
 * 1480px
 * 1200px
 * 860px
 * 540px
 */



/* **************************************** *
 * 1900px
 * **************************************** */
@media (max-width: 1900px){

    html,
    html.safari.desktop { font-size: 0.0526vw; }

}



/* **************************************** *
 * 1480px
 * **************************************** */
@media (max-width: 1480px){

    html,
    html.safari.desktop { font-size: 0.06756756756756757vw; }

    /* VAR */
    :root {

        --font-size-primary-01: 64rem;
        --font-size-primary-02: 54rem;
        --font-size-primary-03: 42rem;
        --font-size-primary-04: 32rem;
        --font-size-primary-05: 28rem;

    }

    /* HEADER */
    .header__inner { max-width: inherit; margin: 0 50rem; gap: 50rem; justify-content: space-between; }

    #logo { width: 280rem; transition: opacity .2s, visibility .2s; }

    /* FOOTER */
    .footer__inner { max-width: inherit; margin: 0 50rem; }

    /* CONTAINER */
    .main-container { max-width: inherit; margin: 0 50rem; }
    .main-container__inner { max-width: 76.38%; }

}



/* **************************************** *
 * 1200px
 * **************************************** */
@media (max-width: 1200px){

    html,
    html.safari.desktop { font-size: 0.0833333333333333vw; }

    body { --header-height: 72rem; }

    /* VAR */
    :root {

        --font-size-primary-01: 56rem;
        --font-size-primary-02: 48rem;
        --font-size-primary-03: 38rem;
        --font-size-primary-04: 30rem;
        --font-size-primary-05: 26rem;
        --font-size-primary-06: 22rem;
    }

    /* GLOBAL */
    .wrap { max-width: inherit; margin: 0 40rem; }

    /* HEADER */
    .header__inner { margin: 0 40rem; gap: 40rem; }

    #logo { width: 260rem; }

    .header__news { display: none; }

    .header__facility { align-items: center; margin-right: -12rem; }
    .header__facility-btn { width: 52rem; }

    .search-controller { transition: opacity .2s, visibility .2s, background-color .3s; }
    .lang-controller { display: none; }
    .profile-controller { position: absolute; left: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }

    .small-menu-controller { position: relative; display: flex; }
    .small-menu-controller:after, .small-menu-controller:before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 28rem; height: 28rem; background: no-repeat center center / cover; transition: opacity .3s; }
    .small-menu-controller:after { background-image: url(../images/icon/menu.svg); }
    .small-menu-controller:before { background-image: url(../images/icon/close.svg); opacity: 0; }

    .small-menu-container { position: fixed; top: calc(var(--header-height) - 1px); bottom: 0; left: 0; right: 0; background: var(--color-white); }
    .small-menu-container__inner { height: 100%; }

    .small-menu-nav { position: relative; margin: 20rem 40rem 0; padding: 28rem 0; height: calc(100% - 20rem); overflow-y: auto; }
    .small-menu-nav:before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1rem; background: var(--color-black); }

    #small-menu a { position: relative; display: block; color: inherit; padding: 10rem 0; transition: color .3s; }
    #small-menu ul { display: none; }
    #small-menu > li > a { font-size: var(--font-size-primary-08); line-height: var(--font-lineheight-primary-08); font-weight: 700; letter-spacing: var(--letter-spacing-01); }
    #small-menu > li > ul { padding: 8rem 0; border-top: 1px solid var(--color-gray-200); }
    #small-menu > li > ul > li > a { padding-left: 16rem; font-size: var(--font-size-primary-09); line-height: var(--font-lineheight-primary-09); font-weight: 700; letter-spacing: var(--letter-spacing-01); }
    #small-menu > li > ul > li > ul > li > a { padding-left: 36rem; font-size: var(--font-size-primary-09); line-height: var(--font-lineheight-primary-09); font-weight: 500; letter-spacing: var(--letter-spacing-01); }

    #small-menu li.menu-item-has-children > a { padding-right: 40rem; }
    #small-menu li.menu-item-has-children > a > .menu-dropdown { content: ''; position: absolute; top: 50%; right: 0; height: 100%; aspect-ratio: 1 / 1; background: url(../images/icon/chevron-down.svg) no-repeat center center / 18rem; transform: translate(calc((100% - 18rem) / 2), -50%); border: 0; padding: 0; cursor: pointer; transition: background .3s, transform .3s; }
    #small-menu li.menu-item-has-children.menu-item--open > a > .menu-dropdown { transform: translate(calc((100% - 18rem) / 2), -50%) rotate(-180deg); }

    #small-menu li.current-menu-item:not(:has(.current-menu-parent, .current-menu-item)) > a { color: var(--color-primary); }
    #small-menu li.current-menu-parent:not(:has(.current-menu-parent, .current-menu-item)) > a { color: var(--color-primary); }
    #small-menu li.menu-item-has-children.current-menu-ancestor > a > .menu-dropdown { background-image: url(../images/icon/chevron-down.svg); }
    #small-menu li.menu-item-has-children.current-menu-item:not(:has(.current-menu-parent, .current-menu-item)) > a > .menu-dropdown { background-image: url(../images/icon/chevron-down-active.svg); }

    .small-menu-utils { display: flex; align-items: center; gap: 20rem; position: absolute; top: 0; left: 40rem; height: var(--header-height); transform: translate(0, -100%); }
    .small-menu-utils a { display: flex; align-items: center; justify-content: center; color: var(--color-gray-500); transition: color .3s; }
    .small-menu-utils__globe { width: 28rem; height: 28rem; }
    .small-menu-utils__globe .jt-accent-icon { width: 100%; }
    .small-menu-utils__language { display: flex; gap: 16rem; }
    .small-menu-utils__language--current { color: var(--color-primary) !important; }

    body.open-menu--motion #logo { opacity: 0; visibility: hidden; }
    body.open-menu--motion .search-controller { opacity: 0; visibility: hidden; }
    body.open-menu--motion .profile-controller { opacity: 1; visibility: visible; }
    body.open-menu--motion .small-menu-controller:after { opacity: 0; }
    body.open-menu--motion .small-menu-controller:before { opacity: 1; }

    /* SIDEBAR */
    #sidebar { display: none; }

    /* FOOTER */
    .footer__inner { margin: 0 40rem; }

    #footer-menu { gap: 24rem; }

    /* CONTAINER */
    .main-container { margin: 0; }
    .main-container__inner { max-width: inherit; }

    /* PAGE */
    .article__desc { gap: 60rem; }
    .article__section-head { gap: 60rem; }

    /* HOVER */
    @media (hover: hover) and (pointer: fine) {

        /* HEADER */
        .header__facility-btn:hover { background: transparent; }

        .small-menu-utils a:hover { color: var(--color-black); }

        #small-menu a:hover { color: var(--color-primary); }
        #small-menu li.menu-item-has-children > a:hover:after { background-image: url(../images/icon/chevron-down-active.svg); }

    }

}



/* **************************************** *
 * 860px
 * **************************************** */
@media (max-width: 860px){

    html,
    html.safari.desktop { font-size: 0.13020833333333335vw; }

    body { --header-height: 60rem; --footer-height: 150rem; }

    /* VAR */
    :root {

        --font-size-primary-01: 48rem;
        --font-size-primary-02: 40rem;
        --font-size-primary-03: 32rem;
        --font-size-primary-04: 28rem;
        --font-size-primary-05: 24rem;
        --font-size-primary-06: 20rem;

    }

    /* GLOBAL */
    .wrap { margin: 0 24rem; }
    .wrap-narrow { max-width: inherit; margin: 0 24rem; }

    br.mdbr { display: block !important; }

    /* HEADER */
    .header__inner { margin: 0 24rem; }

    #logo { width: 240rem; }

    .header__facility { margin-right: -10rem; }
    .header__facility-btn { width: 48rem; }

    .small-menu-utils { left: 24rem; }
    .small-menu-nav { margin: 20rem 24rem 0; padding: 24rem 0; }

    /* FOOTER */
    #footer { padding-top: 32rem; }
    .footer__inner { margin: 0 24rem; flex-direction: column; gap: 30rem; align-items: normal; }
    .footer__copyright { order: 2; }
    #footer-menu { gap: 20rem; order: 1; }

    /* PAGE */
    .article__header { padding-bottom: 36rem; margin-bottom: 36rem; }
    .article__desc { gap: 40rem; }
    .article__section-head { gap: 40rem; }

}



/* **************************************** *
 * 540px
 * **************************************** */
@media (max-width: 540px){

    html,
    html.safari.desktop { font-size: 0.2564102564102564vw; }
    
    body { --header-height: 50rem; --footer-height: 139rem; }

    /* VAR */
    :root {

        --font-size-primary-01: 34rem;
        --font-size-primary-02: 30rem;
        --font-size-primary-03: 24rem;
        --font-size-primary-04: 22rem;
        --font-size-primary-05: 20rem;
        --font-size-primary-06: 18rem;
        --font-size-primary-07: 16rem;
        --font-size-primary-08: 15rem;
        --font-size-primary-09: 13rem;
        --font-size-primary-10: 12rem;

        --font-lineheight-primary-01: 1.2;
        --font-lineheight-primary-03: 1.3;
        --font-lineheight-primary-04: 1.3;

    }

    /* GLOBAL */
    .wrap { margin: 0 14rem; }
    .wrap-narrow { max-width: inherit; margin: 0 14rem; }

    br.mdbr { display: none !important; }
    br.smbr { display: block !important; }

    /* HEADER */
    .header__inner { margin: 0 14rem; }

    #logo { width: 200rem; }

    .header__facility-btn { width: 44rem; }

    .small-menu-utils { left: 14rem; }
    .small-menu-nav { margin: 20rem 14rem 0; padding: 16rem 0; }

    /* FOOTER */
    #footer { padding-top: 24rem; }
    .footer__inner { margin: 0 14rem; }
    #footer-menu { gap: 16rem; }

    /* CONTAINER */
    .main-container__inner { margin-top: 24rem; margin-bottom: 80rem; }

    /* PAGE */
    .article__header { padding-bottom: 30rem; margin-bottom: 30rem; }
    .article__desc { gap: 24rem; }
    .article__section-head { gap: 24rem; margin-bottom: 30rem; }
    
    .article__header:has(.jt-choices__wrap) { flex-direction: column; align-items: normal; gap: 30rem; padding-bottom: 40rem; }

    /* 404 */
    .error-404__inner { width: 294rem; }

}