/* 메인·서브페이지 공통 헤더 */
@font-face { font-family: "Pretendard27"; font-weight: 400; src: url("../fonts/Pretendard-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Pretendard27"; font-weight: 600; src: url("../fonts/Pretendard-SemiBold.ttf") format("truetype"); font-display: swap; }

header.m27-hd, header.m27-hd ~ .top_sec { --m27-header-height: 88px; }
header.m27-hd ~ .top_sec { padding-top: var(--m27-header-height); }
.m27-hd {
    --orange: #f06e01;
    --navy: #1a2452;
    --ink: #1b1f2e;
    --line: #e3e6ee;
    font-family: "Pretendard27", "Pretendard", sans-serif;
    letter-spacing: 0;
    color: var(--ink);
}
.m27-hd a { text-decoration: none; }
.m27-hd .en { font-family: "Montserrat", sans-serif; }
header.m27-hd { position: fixed; top: 0; left: 0; width: 100%; height: var(--m27-header-height); padding: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 99999; font-weight: 400; }
.m27-hd .hd-inner { width: 1200px; height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.m27-hd .hd-logo { display: block; flex-shrink: 0; }
.m27-hd .hd-logo img { display: block; width: 160px; height: 48px; object-fit: contain; }
.m27-hd .hd-right { display: flex; align-items: center; gap: 56px; }
.m27-hd .hd-menu { display: flex; align-items: center; gap: 48px; }
.m27-hd .hd-menu a { font-size: 17px; font-weight: 600; color: var(--ink); transition: color .2s; }
.m27-hd .hd-menu a:hover { color: var(--orange); }
.m27-hd .hd-btns { display: flex; gap: 10px; }
.m27-hd .hd-btns a { display: inline-flex; align-items: center; height: 45px; padding: 0 22px; border-radius: 100px; font-size: 15px; font-weight: 600; border: 1.5px solid var(--navy); color: var(--navy); transition: background .2s, color .2s; }
.m27-hd .hd-btns a.fill { background: var(--navy); color: #fff; padding: 0 24px; }
.m27-hd .hd-btns a:hover { background: var(--navy); color: #fff; }
.m27-hd .hd-btns a.fill:hover { background: var(--orange); border-color: var(--orange); }
.m27-hd .mo_menu { display: none; width: 30px; height: 22px; position: relative; top: 0; right: 0; bottom: auto; left: auto; margin: 0; flex-shrink: 0; align-self: center; cursor: pointer; }
.m27-hd .mo_menu span { position: absolute; left: 0; width: 100%; height: 2px; margin: 0; background: var(--ink); transition: .3s; }
.m27-hd .mo_menu span:nth-child(1) { top: 0; }
.m27-hd .mo_menu span:nth-child(2) { top: 10px; }
.m27-hd .mo_menu span:nth-child(3) { top: 20px; }
header.m27-hd.on .mo_menu span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
header.m27-hd.on .mo_menu span:nth-child(2) { opacity: 0; }
header.m27-hd.on .mo_menu span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media screen and (max-width: 1250px) {
    .m27-hd .hd-inner { width: auto; padding: 0 24px; }
    .m27-hd .hd-right { gap: 28px; }
    .m27-hd .hd-menu { gap: 24px; }
}
@media screen and (max-width: 960px) {
    header.m27-hd, header.m27-hd ~ .top_sec { --m27-header-height: 70px; }
    .m27-hd .hd-logo img { width: 128px; height: 40px; }
    .m27-hd .mo_menu { display: block; }
    .m27-hd .hd-right { position: fixed; top: var(--m27-header-height); left: 0; width: 100%; height: calc(100vh - var(--m27-header-height)); height: calc(100dvh - var(--m27-header-height)); overflow-y: auto; -webkit-overflow-scrolling: touch; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 10px 24px calc(24px + env(safe-area-inset-bottom, 0px)); display: none; }
    header.m27-hd.on .hd-right { display: flex; }
    html:has(header.m27-hd.on), body:has(header.m27-hd.on) { overflow: hidden; }
    .m27-hd .hd-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .m27-hd .hd-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
    .m27-hd .hd-btns { margin-top: 20px; }
    .m27-hd .hd-btns a { flex: 1; justify-content: center; }
}
@media screen and (max-width: 650px) {
    .m27-hd .hd-inner { padding-left: 20px; padding-right: 20px; }
}
