:root {
    --background-header: #ffffff;
    --background-headermenu: #000000;
}

.header-container {
    display: flex;
    position: relative;
    justify-content: space-between;
    background-color: var(--background-header);
}

.logo {
    padding: 10px;
}

.logo>a>img {
    height: 25px;
    padding-top: 5px;
}

.header-right {
    display: flex;
    padding-right: 20px;
}

.selectLanguage-container {
    margin: auto;
}

.selectLanguage-container {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.selectLanguage-container::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

.selectLanguage-container select {
    appearance: none;
    min-width: 120px;
    height: 2.4em;
    padding: .4em calc(.8em + 30px) .4em .8em;
    border: none;
    border: 1px solid #535353;
    background-color: #fff;
    color: #333333;
    font-size: 13px;
    cursor: pointer;
}

.selectLanguage-container select:focus {
    outline: none;
}

/* PC版ではハンバーガーメニューを非表示 */
@media screen and (min-width: 1301px) {
    .header-menu-btn-box {
        display: none !important; /* PCではハンバーガーメニューを非表示 */
    }
}

/* スマホ版ではハンバーガーメニューを表示し、通常メニューを非表示 */
@media screen and (max-width: 1300px) {

    .header-menu-btn-box {
       margin-top: 5px;
       left: 20px;
    }
    .header-menu {
        position: absolute;
        margin: 0;
        padding: 0;
        background-color: var(--background-headermenu);
        z-index: 1000;
        right: 0;
        width: 100%;
    }

    .header-menu>li {
        border-bottom: 1px solid rgb(75, 75, 75);
        padding: 15px 0;
        margin: 0 54px;
        list-style: none
    }
    .header-menu > li:last-child{
        border-bottom:0px;
   }

    .header-menu>li>a {
        text-decoration: none;
        color: #fff;
        cursor: pointer;
    }


    .header-menu-btn-box {
        position: relative;
        width: 70px;
        height: 50px;
    }

    .inn {
        margin: auto;
        position: absolute;
        width: 20px; /* サイズ小さく */
        height: 20px; /* サイズ小さく */
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* 均等配置 */
    }

    .inn .line {
        background-color: #535353;
        height: 2px; /* 線を細く */
        width: 100%;
        transition: 0.3s;
    }


    .inn .line:nth-of-type(1) {
        top: 0;
    }

    .inn .line:nth-of-type(2) {
        top: 50%; /* 調整 */
    }

    .inn .line:nth-of-type(3) {
        bottom: 0;
    }

    /* 開いた時のデザインも調整 */
        .header-menu-btn.is-open .inn .line:nth-of-type(1) {
        transform: translateY(9px) rotate(45deg); /* 均等な配置を維持 */
    }

    .header-menu-btn.is-open .inn .line:nth-of-type(2) {
        opacity: 0;
    }

    .header-menu-btn.is-open .inn .line:nth-of-type(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

}



/* ユーザー情報エリア */
.user-info-container {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

/* ユーザー情報 */
.user-info {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* ユーザープロフィール（アイコン＋名前） */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ユーザーアイコン */
.user-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ユーザー名 */
.user-info-text {
    display: flex;
    flex-direction: column; /* これで縦配置になる */
    align-items: flex-start; /* 左揃えにする（必要に応じて調整） */
}

.user-name {
    font-size: 16px;
    font-weight: bold;  /* 文字を太くする */
    color: #222; /* より濃い色に変更 */
}

/* アカウント名（小さく＆薄い色） */
.user-account {
    font-size: 12px;
    color: #888;
    margin-top: 2px; /* ユーザー名との間に少し余白を追加 */
}

/* ユーザーポイント */
/* ユーザーポイントのカード風デザイン */
.user-points {
    display: flex;
    align-items: center;
}

.points-box {
    display: flex;
    align-items: center;
    background-color: #3898ff;;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: bold;
    color: white;
    font-size: 18px;
    min-width: 100px;
    justify-content: center;
    gap: 8px;
}

/* コインアイコン */
.coin-icon {
    width: 20px;
    height: 20px;
}

/* ポイント数 */
.points-value {
    font-size: 15px;
    font-weight: bold;
}


@media screen and (max-width: 768px) {
    .user-info-container {
        padding: 6px 12px;
    }

    .user-icon{
        padding-top: 5px;
    }

    .user-name {
        font-size: 14px;
    }

    .user-account {
        font-size: 10px;
        margin-top: 1px;
    }

    .points-box {
        padding: 8px 30px;
        font-size: 14px;
        min-width: auto;
    }

    .coin-icon {
        width: 16px;
        height: 16px;
    }

    .points-value {
        font-size: 13px;
    }
}
