/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* General styling */
.header {
    padding: 16px clamp(3rem,5vw,60px) 16px clamp(2rem,5vw,90px);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    width: 100%;
  justify-content: space-between;
}

.header__title {
    margin: 0;
    font-size: 24px;
    max-width: 111px;
    align-self: baseline;
}
.header__navs{
    align-items: center;
}
.header__nav {
    display: flex;
}

.header__menu {
    display: flex;
    gap: clamp(1.5rem,2.5vw,35px);
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right:clamp(30px,4vw,40px)
    
}

.header__menu li a {
    text-decoration: none;
    font-size: clamp(1rem,1.5vw,18px);
    color: #333;
}
  
.header__menu li a:hover {
    background: linear-gradient(45deg, #DAAF08, #debf50, #B67B03);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
.mobile__title{
    width: 111px;
    height: 77px; /* タイトルの高さを指定（必要に応じて調整） */
    position: sticky; /* タイトルがスクロールしても上部に固定される */
    top: 0;
    background-color: #fff; /* 背景色を設定して、デザインを維持 */
    z-index: 10;
}
/* Mobile menu hidden by default */
.mobile-menu {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100%;
    width: 100vw;
    background-color: #333;
    transition: right 0.3s ease-in-out;
    z-index: 10;
    padding: 18px;
    max-height: 100vh; /* メニューがビューポートの高さを超えないようにする */
    overflow: hidden;  
}

.mobile-menu__items {
    list-style: none;
    margin-top: 50px;
    text-align: center;
    max-height: calc(100vh - 150px); /* タイトル部分の高さを考慮して、残りの高さを計算 */
    overflow-y: auto;  
}


.mobile-menu__items li {
    margin-bottom: 15px;
}

.mobile-menu__items li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}
.mobile-menu__items li a:hover{
    background: linear-gradient(45deg, #DAAF08, #debf50, #B67B03);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header__navs{
    display: flex;
    gap: clamp(1.5rem,7vw,60px);
}
/* Hamburger icon */
.header__hamburger {
    /* display: none; */
    cursor: pointer;
    z-index: 99;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 33px;
    height: 50px;
}
.hamburger-icon.menu-active span{
    color: #fff;
}
.hamburger-icon span:nth-child(4){
    font-size: 10px;
}
.hamburger-icon .bar {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #333;
    transition: 0.3s;
}

/* X mark transformation */
.hamburger-icon.menu-active .bar:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 10px;
    background-color: #fff;
    width: 35px;
}

.hamburger-icon.menu-active .bar:nth-child(2) {
    opacity: 0;
    width: 35px;
}

.hamburger-icon.menu-active .bar:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 10px;
    width: 35px;
    background-color: #fff;
}
.header__menu{
   opacity: 0;
   visibility: hidden;
}
.header__title img{
    object-fit: contain;
    margin-top: -5px;
}
@media (min-width: 768px) {
    .header__title img{
        margin-top: 0;
    }
    .hamburger-icon{
        display:none;
    }
    .header__title{
        max-width: 170px;
    }
    .header__menu{
        opacity: 1;
        visibility: visible;
    }
    .hamburger-icon.menu-active .bar:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
        top: 10px;
        background-color: #fff;
        width: 35px;
        right: 0px;
    }
    .hamburger-icon.menu-active .bar:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        top: 10px;
        background-color: #fff;
        width: 35px;
        right: 0px;
    }
}
.mobile-menu.menu-active {
    right: 0;
}
.header__hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top:25px;
}
/* Responsive Design */
@media (max-width: 768px) {
   
    .header__inner {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
}

