
:root {
    --bg-01: #F7F4F6;
    --bg-02: #FFFFFF;

    --text-01: #2F2F2F; 
    --text-02: #1f2f44;
    --text-03: #697789;
    --text-04: #496b98;

    --link: #66758a;
    --link-hover: #4f6f98;

    --color-01: #E4E4E7;
    --color-02: #E5E7EB;
    --color-03: #D4D4D8;
    --color-04: #60A5FA;
    --color-05: #3B82F6;
    --color-06: #EC4899;
    --color-07: #F472B6;

    --primary: #6f8caf;
    --primary-hover: #5f7fa7;
    --primary-shadow: 0 6px 16px rgba(111,140,175,.25);
    --placeholder: #9aa7b7;

    --input-border: 1px solid #d3dbe5;
    --main-width: 1440px;
    --section-padding: 30px;
}

body {
    background: var(--bg-01);  
    min-height: 100svh;
    color: var(--text-01);
    line-height: 1.5em;
    font-size: 11pt;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 400;
    color: var(--text-01);
    line-height: 1.5em;
}

a.link, a:visited {
    color: var(--link);
    text-decoration: none;
    transition: color .2s ease;
}
a.link:hover {
    color: var(--link-hover);
}

/* 상단 */
header {
    display: block;
    position: sticky;
    top: 0;
    width: 100%;
    height: 72px;
    z-index: 2;
}
header > .header-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: var(--main-width);
    margin: 0 auto;
    height: 100%;
    gap: 15px;
    background: #6F87A3; 
    border-bottom: 1px solid rgba(255,255,255,.35);
    box-shadow:
        0 1px 0 rgba(255,255,255,.15) inset,
        0 3px 10px rgba(0,0,0,.10);
}
header > .header-container > .site-title {
    display: flex;
    width: auto;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
    padding-left: 30px;
}
header > .header-container > .site-title > .site-name {
    display: block;
    width: auto;
    font-size: 1.75rem;
    line-height: 1em;
    font-weight: 600;
    color: #fff;
}
header > .header-container > .site-title > .site-short {
    display: block;
    width: auto;
    font-size: 0.875rem;
    line-height: 1em;
    font-weight: 300;
    color: rgba(255,255,255,.8);
}

/* 검색 */
header > .header-container > .main-search {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: 100%;
}
header > .header-container > .main-search .place-search-box {
    width: 100%;
    max-width: 470px;
    height: 48px;
    font-size: 1.5rem;
}
header > .header-container .place-search-box{
    display:flex;
    align-items:center;

    background:#fff;
    border-radius:10px;
    padding: 0 .5rem;

    box-shadow:
        0 2px 8px rgba(0,0,0,.08),
        0 8px 24px rgba(0,0,0,.05);

    transition:.2s;
}

header > .header-container .place-search-box:hover{
    transform:translateY(-1px);
}

header > .header-container .place-search-box:focus-within{
    box-shadow:
        0 0 0 3px rgba(255,255,255,.25),
        0 0 0 5px rgba(66,133,244,.25),
        0 8px 24px rgba(0,0,0,.08);
}

header > .header-container .place-search-box button{
    width:48px;
    border:none;
    background:none;
    cursor:pointer;

    color:#8A8F98;
    font-size:1.1rem;
}

header > .header-container .place-search-box input[type="text"]{
    flex:1;
    border:none;
    outline:none;
    font-size:1rem;
    color:#2D3748;
    background:transparent;
}

header > .header-container .place-search-box input[type="text"]::placeholder{
    color:#A0AEC0;
}

header > .header-container .place-search-box select {
    width: 7em;
    font-size: 1em;
}

header > .header-container .place-search-box select + .ts-wrapper {
    width: 7em;
    font-size: 1rem;
    color: #54595e;
    background-color: #f4f4f4;
    border: 1px solid #f7f7f7;
    border-radius: 5px;
}
header > .header-container .place-search-box select + .ts-wrapper.focus {
    box-shadow: 0 0 2px 1px rgba(155, 180, 232, 0.85);
}
header > .header-container .place-search-box select + .ts-wrapper > i {
    position: absolute;
    top: 50%;
    font-size: 1.2em;
    color: #A0AEC0;
    transform: translateY(-50%);
    right: 0;
    pointer-events: none;
    z-index: 1;
}
header > .header-container .place-search-box select + .ts-wrapper.dropdown-active > i {
    transform: translateY(-57%) rotate(180deg);
}


/* Wide screen 해더 메뉴 */
header > .header-container > .main-nav {
    display: flex;
    width: auto;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

header > .header-container > .main-nav > ul {
    display: flex;
    width: auto;
    height: auto;
    gap: .25rem;
    list-style: none;
    justify-content: flex-start;
    align-items: center;
}
header > .header-container > .main-nav > ul > li {
    display: block;
    width: auto;
    height: auto;
}
header > .header-container > .main-nav > ul > li > a {
    display: block;
    position: relative;
    width: auto;
    height: auto;
    font-size: 1rem;
    line-height: 1em;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
}
header > .header-container > .main-nav > ul > li.on > a {
    font-weight: 600;
}
header > .header-container > .main-nav > ul > li.on > a::after {
    content: '';
    position: absolute;
    width: calc(100% - 25px);
    left: 50%;
    transform: translateX(-50%);
    bottom: 5px;
    height: 2px;
    background: #FFE082;

}
header > .header-container > .main-nav > ul > li > a > .menu-desc {
    display: none;
    transition: all 0.3s ease;
    visibility: hidden;
    box-shadow: 
        0 1px 0 rgba(255,255,255,.15) inset,
        0 3px 10px rgba(0,0,0,.10);
}
header > .header-container > .main-nav > ul > li.off > a:hover > .menu-desc {
    display: block;
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    position: absolute;
    left: 50%;
    top: 85%;
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1em;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 1;
}

header > .header-container > .main-nav > ul .delimiter {
    display: block;
    width: 2px;
    height: 1em;
    background-color: rgba(255,255,255,.4);
}

main {
    display: block;
    width: 100%;
    height: auto;
}

/* 페이지 헤더 */
main > section.page_header {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 3;
    background-size: cover;
    height: auto;
    max-width: var(--main-width);
    margin: 0 auto;
    height: auto;
    justify-content: center;
    align-items: center;
}



 /* 하단 */
footer > section {
    display: block;
    width: 100%;
    max-width: var(--main-width);
    margin: 0 auto;
    padding: 0 15px;
    height: auto;
}

#footer_body {
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: auto max(20%, 145px) max(20%, 180px) max(10%, 120px);
    padding: 2em 0;
    gap: 5px;
    line-height: 1.75em;
}

#footer_body > * {
    display: block;
    width: 100%;
    height: auto;
}

#footer_body .about_us img {
    display: block;
    width: 256px;
    height: auto;
    margin-bottom: 1em ;
}

#footer_body .sns img {
    width: 1.5em;
    margin-right: .1em;
    height: auto;
}

#footer_body h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 1em;
}

#footer_body .contact_us a, #footer_body .service a  {
    display: block;
    line-height: 1.5em;
}

#footer_body .contact_us a:hover, #footer_body .service a:hover  {
    text-decoration: underline;
}


/* 사이트 미니 푸터 */
.site-footer {
    position: absolute;
    width: 100%;
    height: auto;
    bottom: 20px;
    text-align: center;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.site-footer .copyright {
    margin: 0;
    color: #98a4b3;
    font-size: 0.9rem;
}


/* Primary button styles */
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 3.3em;
    border: 0;
    border-radius: 7px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    line-height: 1em;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
}

.primary-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 20px rgba(95,127,167,.25);
}


/* Secondary button styles */
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 3.3em;
    line-height: 1em;
    border: var(--input-border);
    border-radius: 7px;
    background: #fff;
    color: var(--text-02);
    font-weight: 700;
    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
}

.secondary-btn:hover {
    border-color: var(--primary-hover);
    box-shadow: var(--primary-shadow);
}

.primary-btn:active, .secondary-btn:active {
    transform: translateY(1px);
}

.primary-btn svg,.secondary-btn svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1.3em;
    height: 1.3em;
}

/* 키보드 포커스 */
.primary-btn:focus-visible, .secondary-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(111,140,175,.20),
        0 0 0 2px var(--primary);
}

/* 클릭 중 */
.primary-btn:active, .secondary-btn:active {
    transform: translateY(1px);
}

/* 입력 필드 스타일 */
.primary-input {
    width: 100%;
    height: auto;
    padding: 1em;
    border: var(--input-border) ;
    border-radius: .7em;
    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}
.primary-input::placeholder {
  color: var(--placeholder);
}
.primary-input:focus, .primary-input:focus-visible, .primary-input:active, 
input[type="checkbox"]:focus-visible, input[type="checkbox"]:active,
input[type="radio"]:focus-visible, input[type="radio"]:active {
    outline: none;
    border-color: var(--primary);
    background: #fcfdff;
    box-shadow:
        0 0 0 4px rgba(111,140,175,.12),
        0 4px 12px rgba(111,140,175,.08);
}
input[type="checkbox"], input[type="radio"] {
    accent-color: var(--primary);
}



/* 가로 구분선 */
.divider {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 38px 0 28px;
  color: var(--text-03);
  text-align: center;
}

.divider span {
  flex: 1;
  height: 1px;
  background: var(--color-03);
}



@media (max-height: 1100px) {
    .site-footer {
        position: initial;
        bottom: unset;
        margin-top: 40px;
    }

}


@media (max-width : 1000px) {
    #footer_body {
        grid-template-columns: auto max(22%, 145px) max(22%, 180px);
        row-gap: 2em;
    }
}

@media (max-width : 800px) {
    #footer_body {
        grid-template-columns: auto max(30%, 145px);
        row-gap: 2em;
        column-gap: 1em;
    }
}

@media (max-width : 640px) {
    :root {
        --main-padding: 0;
        --navi-padding: 0 min(10px, max(5px, 1.56vw));
    }
    #footer_body {
        display: block;
    }
    #footer_body .about_us, #footer_body .contact_us, #footer_body .service, #footer_body .sns {
        padding: min(20px, max(10px, 3.125vw)) 0 min(40px, max(20px, 6.25vw));
    }
    #footer_body .contact_us, #footer_body .service, #footer_body .sns {
        border-top: 1px solid var(--color-03);
    }

}

