button {
    cursor: pointer;
}

header {
    position: fixed;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 11;
    width: 100%;
    height: 120px;
}

/* 햄버거 버튼 */
.drawer-trigger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #fff;
}

.drawer-trigger-bar {
    display: block;
    width: 22px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
}

/* 드로어 기본 레이아웃 */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(500px, 88vw);
    height: 100dvh;
    background: #5f5f5f; /* 이미지처럼 회색 패널 */
    color: #fff;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 28px rgba(0, 0, 0, .25);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    flex-direction: row-reverse;
}

.drawer-logo {
    width: 180px;
    height: 46px;
    background: url('/images/layout/logo.svg') no-repeat center / contain;
    cursor: pointer;
}

.drawer-close {
    border: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.5;
    background: url("/images/icon/ic_close.png") no-repeat center / contain;
}

.drawer-close:hover {
    opacity: 1;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 80px;
    gap: 14px;
}

.drawer-nav a, .drawer-menu {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 10px 0;
    opacity: 0.5;
}

.sub-opacity {
    opacity: 0.5;
}

.sub-opacity:hover {
    opacity: 1;
}

.drawer-nav a:hover, .drawer-menu:hover {
    opacity: 1;
    font-weight: bold;
}

/*.submenu-trigger:hover {*/
/*    opacity: 1;*/
/*    font-weight: bold;*/
/*}*/

.submenu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font: inherit;
    background: none;
    border: 0;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

/* caret 아이콘 (▶) */
.submenu-trigger .caret {
    display: inline-block;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    padding: 4px;
    transform: rotate(45deg); /* 기본: 오른쪽 화살표 */
    transition: transform .2s ease;
}

/* 하위메뉴 컨테이너 */
.submenu {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    overflow: hidden;
    max-height: 0; /* 애니메이션용 기본값 */
    transition: max-height .25s ease;
}

/* 열림 상태 */
.submenu[hidden] {
    display: block;
}

/* hidden 속성 유지하면서 애니메이션 적용 트릭 */
.submenu.open {
    max-height: 600px;
}

/* 충분히 큰 값 */
.submenu-trigger[aria-expanded="true"] .caret {
    transform: rotate(-135deg);
}

/* 아래 화살표 */
.submenu li a {
    display: block;
    padding: 15px 12px;
    font-size: 15px;
}

.submenu li:first-child {
    margin-top: 8px;
}

.submenu li:last-child {
    margin-bottom: 8px;
}

/* 오버레이 */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1000;
    backdrop-filter: blur(1px);
}

/* 기존 우측 메뉴 숨김 (드로어만 사용 시) */
.header_right_cont {
    display: none;
}

/* 배경 이미지가 헤더 아래에서 시작하도록 여백이 필요하면 section에 padding-top 추가 */
:root {
    --header-height: 80px;
}

/* 필요 시 조절 */
.header_cont {
    height: 100%;
}

.header_top_cont {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 1280px;
    height: 100%;
}

.header_left_cont, .header_bottom_inner_cont {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header_bottom_cont {
    border-bottom: 1px solid #d4d4d4;
    border-top: 1px solid #d4d4d4;
}

.header_bottom_inner_cont {
    margin: 0 auto;
    max-width: 1240px;
}

.logo {
    cursor: pointer;
    width: 244px;
    height: 62px;
    background-image: url('/images/layout/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header_bottom_inner_cont div {
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 60px;
    font-size: var(--menu-font-size);
}

.header_bottom_inner_cont div:hover {
    color: var(--hover-main-font-color);
}

.header_bottom_inner_cont div.on {
    position: relative;
    color: var(--main-color);
}

.header_bottom_inner_cont div.on:hover {
    color: var(--hover-main-color);
}

/*.header_right_cont {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 20px;*/
/*}*/

.header_right_cont a {
    cursor: pointer;
    font-size: var(--menu-font-size);
    color: white;
    width: 220px;
    height: 27px;
    text-align: center;
    border-right: 1px solid white;
}

.header_right_cont a:hover {
    font-weight: bold;
}

.header_right_cont div:last-child {
    border-right: none;
}

.header_right_cont button {
    border-radius: 4px;
    padding: 10px 20px;
    font-size: var(--button-font-size);
}

.write_btn img, .login_btn img {
    width: auto;
    height: 42px;
    object-fit: contain;
    cursor: pointer;
}

section {
    width: 100%;
}

.section_inner_cont {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    object-fit: cover;
}

.manager-swiper {
    position: relative;
    overflow: hidden;
}

.swiper-button-prev, .swiper-button-next, .manager-swiper-button-prev, .manager-swiper-button-next {
    color: #222 !important;
}

.manager-swiper-button-prev, .manager-swiper-button-next {
    position: absolute;
    width: 40px;
    height: 40px;
    top: calc(50% - 20px);
    z-index: 9;
}

.manager-swiper-button-prev {
    left: 0;
    transform: scaleX(-1);
    background: url('/image/icon/pagination_next.png') no-repeat center;
    background-size: contain;
}

.manager-swiper-button-next {
    right: 0;
    background: url('/image/icon/pagination_next.png') no-repeat center;
    background-size: contain;
}

.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 30px !important;
}

.bg_cont {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.bg_cont .bg {
    position: absolute;
    inset: 0;
    background: url("/images/layout/bg.png") no-repeat center;
    background-size: cover;
    transition: transform 0.6s ease;
    transform-origin: center center;
    will-change: transform;
}

.bg_cont:hover .bg {
    transform: scale(1.1);
}

footer {
    width: 100%;
    background-color: #717171;
}

.footer_wrapper {
    margin: 0 auto;
    height: 285px;
    max-width: var(--container-max);
    padding-top: 82px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    font-size: var(--footer-font-size);
    gap: 50px;
}

.footer_inner_cont {
    margin: 0 auto;
    max-width: 1280px;
    padding: 7px 20px;
}

.footer_inner_cont div {
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer_inner_cont p {
    flex-shrink: 0;
    width: 100%;
    text-align: left;
    color: white;
    font-weight: 400;
    font-size: 16px;
}

.footer_inner_cont span {
    color: #767678;
}

.footer_add_info {
    margin: 0 auto;
    max-width: 1280px;
    padding: 20px 20px;
    color: white;
}

.footer_add_info ul {
    margin: 10px 0 20px;
    list-style-type: disc;
}

.footer_add_info_in_list {
    list-style-type: circle !important;
    padding-inline-start: 20px;
    margin: 0 !important;
}

.footer_copyright {
    text-align: left;
    color: white;
    font-weight: 400;
}

/* CSS for ProgressView rotating circle */
.progress-circle {
    width: 60px;
    height: 60px;
    border: 8px solid rgba(255, 255, 255, 0.3); /* Light border for background */
    border-top: 8px solid #4caf50; /* Colored border for the rotating segment */
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.kakao-login-btn {
    width: 180px;
    height: 50px;
    background: url("/image/button/kakao_login_pc.png") no-repeat center;
    background-size: contain;
}

.post_password_wrapper {
    padding: 50px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.post_password_wrapper form {
    margin-top: 20px;
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.post_password_wrapper h1 {
    font-size: var(--menu-font-size);
}

.post_password_wrapper input {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.post_password_wrapper button {
    flex-shrink: 0;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: var(--mo-button-font-size);
    background-color: var(--main-color);
    color: #fff;
}

.footer_right_cont {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer_logo {
    text-align: right;
}

.footer_logo img {
    width: 197px;
    object-fit: contain;
}

.footer_social {
    display: flex;
    gap: 25px;
    height: 25px;
}

.youtube_cont img {
    height: 25px;
    object-fit: contain;
}

.insta_cont {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.insta_cont img {
    height: 25px;
    object-fit: contain;
}

/* Keyframes for rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}