:root {
    --bg-color: #ffffff;           
    --text-color: #1a1a1a;        
    --font-family: 'Pretendard Variable', sans-serif; 
}

/* 초기 로고 숨김 상태 */
.about header .logo,
.contact header .logo {
    display: none;
}

/* 로고 표시 상태 */
.about header.show-logo .logo,
.contact header.show-logo .logo {
    display: block;
}

/* 페이지별 메뉴 버튼 초기 상태 */
.about header .btn-menu {
    color: white;
}

.contact header .btn-menu {
    color: var(--black);
}

/* contents 페이지 초기 상태 */
body[class*="contents-"] header .logo,
body[class*="contents-"] header .btn-menu {
    color: white;
}

body[class*="contents-"] header .logo svg,
body[class*="contents-"] header .btn-menu svg {
    fill: currentColor;
}

/* contents 페이지 스크롤 상태 */
body[class*="contents-"] header.bg {
    background-color: var(--bg-color);
}

body[class*="contents-"] header.bg .logo,
body[class*="contents-"] header.bg .btn-menu {
    color: var(--text-color);
}

/* 스크롤 시 메뉴 버튼 색상 */
.about header.bg .btn-menu {
    color: var(--text-color);
}

header{
    width: 100%;
    height: 64px;
    padding: 0 20px;
    position: fixed;
    top:0; 
    left: 0;
    z-index: 10;
}
.header-container{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    overflow: hidden;
}
.header-container *{
    flex-shrink: 0;
}
.header-container .logo {
    width: auto;
    height: 20px;
    color: var(--black);   
    grid-column: 1;
}
.header-container .logo.white {
    color: white;
}
.header-container .logo svg {
    height: 20px;
    width: auto;
}
.header-container .logo svg path {
    fill: currentColor;
}
header.hideLogo .logo {
    display: none;
}
header.bg{
    background-color: white;
}
.header-container .btn-menu {
    width: 32px;
    height: 32px;
    color: var(--black);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    grid-column: 3;
    justify-self: end;
}
.header-container .btn-menu.white {
    color: white
}
.header-container .btn-menu svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}
.header-container .btn-menu svg path {
    fill: currentColor;
}
nav{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(80px);
    z-index: 5;
    padding: 0px 20px 64px;
    display: none;
}
nav.open {
    display: flex;
}
nav svg {
    color: white;
}
li.menu a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}
nav p.menu-title{
    color: white;
    font-size: 40px;
    font-weight: 300;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.02em;
}
nav li.divider{
    width: 100%;
    height: 2px;
    background-color: white;
}
nav li{
    margin-bottom: 16px;
}
nav ul{
    align-self: flex-end;
    width: 100%;
}
.menu-item {
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.menu-item svg {
    width: auto;
    height: 32px;
    flex-shrink: 0;
}
.contents-num{
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
}
.contents-num *{
    height: 32px;
}
.contents-num p{
    color: white;
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    font-family: 'DM Sans', sans-serif;
}
#gacha-icon {
    height: 32px;
    transition: transform 0.6s ease-in-out;
}
  
#gacha-icon.spin {
    transform: rotate(270deg);
}