/* 공통 스타일 */
.header_outter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    z-index: 1000;
    padding: 0 1rem;
    box-sizing: border-box;
    border-bottom: 1px solid grey;
}

.name_line {
    font-size: 2rem;
    font-weight: bold;
    color: black;
    flex-grow: 1;
    text-align: center;
}

.name_line a {
    text-decoration: none; /* 🔥 밑줄 제거 */
    color: inherit;        /* 부모 컬러 그대로 */
    cursor: pointer;

    /* 텍스트 드래그 방지 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    display: inline-block;
}

#mobileMenu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 1100;
    overflow: hidden;
}

#mobileMenu a {
    display: block;
    padding: 12px 20px;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s, color 0.2s;
}

#mobileMenu a:hover {
    background: black;
    color: #fff;
}

/* PC & 태블릿 (1024px 이상) */
@media all and (min-width:1024px) {
    .header_outter {
        justify-content: center;
    }
    .menu_line {
        position: absolute;
        right: 1rem;
    }
}

/* 테블릿 가로 (768px ~ 1023px) */
@media all and (min-width:768px) and (max-width:1023px) {
    .header_outter {
        justify-content: center;
    }
    .menu_line {
        position: absolute;
        right: 1rem;
    }
}

/* 모바일 가로 & 테블릿 세로 (480px ~ 767px) */
@media all and (min-width:480px) and (max-width:767px) {
    .header_outter {
        justify-content: space-between;
    }
}

/* 모바일 세로 (~479px) */
@media all and (max-width: 479px) {
    .header_outter {
        justify-content: space-between;
    }
    .name_line {
        text-align: left;
    }
}
