@charset "utf-8";

:root {
    --main-red: #ef171d;
    --ink: #171717;
    --max-width: 768px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    background: #ededed;
    color: var(--ink);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        Arial,
        sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

.app-container {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 28px rgba(0, 0, 0, .08);
}

.site-header {
    position: relative;
    z-index: 150;
    display: flex;
    width: 100%;
    height: 137px;
    min-height: 137px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #fff;
}

.brand-logo {
    display: inline-flex;
    width: 295px;
    height: 137px;
    max-width: calc(100% - 126px);
    flex: 0 1 295px;
    align-items: center;
    color: #171717;
    text-decoration: none;
}

.brand-logo-image {
    display: block;
    width: 295px;
    height: 137px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
}

.icon-button:hover,
.icon-button:focus {
    border-radius: 50%;
    background: #f4f4f4;
    outline: none;
}

.icon-button svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sub-page-main {
    display: block;
    width: 100%;
    min-height: calc(100vh - 137px);
    background: #fff;
}

@media (max-width: 560px) {
    .site-header {
        height: 120px;
        min-height: 120px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .brand-logo {
        width: 295px;
        height: 120px;
        max-width: calc(100% - 102px);
        flex-basis: 295px;
    }

    .brand-logo-image {
        width: 295px;
        height: auto;
        max-height: 120px;
    }

    .header-actions {
        gap: 0;
    }

    .icon-button {
        width: 32px;
        height: 32px;
    }

    .icon-button svg {
        width: 19px;
        height: 19px;
    }

    .sub-page-main {
        min-height: calc(100vh - 120px);
    }

    .app-container {
        box-shadow: none;
    }
}

@media (max-width: 390px) {
    .site-header {
        height: 108px;
        min-height: 108px;
    }

    .brand-logo {
        height: 108px;
        max-width: calc(100% - 90px);
    }

    .brand-logo-image {
        max-height: 108px;
    }

    .icon-button {
        width: 29px;
        height: 29px;
    }

    .sub-page-main {
        min-height: calc(100vh - 108px);
    }
}
