header {

    /* 背景色を透明に */

    color: var(--color-primary);
    box-sizing: border-box;
    position: relative;
    /* 重ね順のため */
    z-index: 10;
    height: auto;

}
.header-container {
    width: 100%;

    height: 100%;
    margin: 0 auto;

    align-items: center;
    display: flex;
    justify-content: space-between;

}

.header-container h1 {
    width: 250px;
    font-size: var(--font-size-large);
    color: var(--color-primary);
}
.logo-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 166px;

    /* 必要に応じて調整 */
    height: auto;
    display: block;
    /* インライン要素からブロック要素へ変更 */
    z-index: 10;
}
.wrap-header {
    position: fixed;
    top: 0;
    left: 0;
    /* 左端に固定 */
    width: 100%;
    /* 幅を100%に変更 */
    z-index: 100;
    height: 150px;

    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(2px);
    display: flex;
    /* フレックスボックスレイアウトを使用 */
    justify-content: space-around;
    /* 要素を均等に配置 */
    align-items: center;
    /* 要素を垂直方向に中央揃え */
}

.header-nav {
    width: 100%;
    text-align: center;
    margin-left: -40px;
    transition: margin 0.3s ease;
}


.header-nav ul {

    display: flex;
    flex-direction: row;
    justify-content: right;

}


.header-nav li {
    margin: 0px 20px;

    color: #333;
    /* 推測値 */
    text-decoration: none;
    font-size: 18px;
}

.header-nav li a {
    color: #000000;
    position: relative;
    transition: color 0.2s ease;
}

.header-nav li a:hover {
    color: #555555;
}

.header-nav.scrolled li a {
    color: #000000;
    position: relative;
}

.header-nav.scrolled li a:hover {
    color: #555555;
}

.phone {
    width: 300px;
    padding-left: 0 5%;
    padding-right: 20px;
    font-size: var(--font-size-large);
}

.phone p {
    text-align: right;
    font-size: var(--font-size-large);
}

.contact-phone__container_header {
    height: 100%;
    width: 400px;
}

.contact-phone__info_header {
    position: relative;
}

.contact-phone__container_header .contact-phone__info {
    margin-top: 30px;
}

.contact-phone__container_header .contact-phone__time-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-phone__container_header .contact-phone__image {
    position: static;
    width: 24px;
    height: 24px;
    transform: none;
    left: auto;
    top: auto;
}

.contact-phone__container_header .contact-phone__info-time {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-phone__info-tel,
.contact-phone__info-fax {
    font-size: 30px;
    font-weight: bold;
    color: var(--color-primary);
    font-family: "Noto Serif JP", serif;
    margin: 0;
}

.menu-button {
    display: none;
}

/* 768px以下の場合のヘッダーのスタイル */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .header-nav {
        display: none;
        transition: opacity 0.3s ease-in-out;
    }

    .header-nav.active {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
    }

    .logo-image {
        position: absolute;
        left: 0;
        top: 0;
        width: 150px;
        height: auto;
        display: block;
        z-index: 10;
    }

    .logo-image.active {
        display: none;
    }

    .header-nav li {
        text-align: left;
        margin: 0px 10px;
        color: #333;
        text-decoration: none;
        font-size: 18px;
    }
    .header-nav ul{
        justify-content: left;
        padding-left: 30px;
    }

    .menu-button {
        display: block;
        margin-left: auto;
        width: 50px;
        height: auto;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
    }

    .contact-phone__container_header {
        display: none;
    }
}

