/* ==================================== */
/* 09. ヘッダー (Header) */
/* ==================================== */

:root {
    --main-color: #d1f4ff;
    --accent-color: #b5eeff;
    --base-color: #FFFFFF;
    --text-color: #333;
    --light-gray: #f2f2f2;
}

/* ------------------------------------ */
/* 全体ヘッダーエリア */
/* ------------------------------------ */

.site-header {
    background-color: #e3f1f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2rem 0;
    min-height: 60px;
}

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
}

/* ------------------------------------ */
/* ロゴ部分 */
/* ------------------------------------ */

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 5rem;
    max-height: 50px;
}

/* ------------------------------------ */
/* PCナビ右側カラム */
/* ------------------------------------ */

.header-right-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    margin-right: 0;
}

.header-contact-top-row {
    text-align: right;
    padding-bottom: 0;
}

.header-contact-top-row .contact-button {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.header-contact-top-row .contact-button:hover {
    background-color: var(--text-color);
    color: var(--base-color);
}

/* ------------------------------------ */
/* PC用メインナビ */
/* ------------------------------------ */

.main-navigation {
    width: 100%;
    text-align: right;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: nowrap;
}

.main-navigation li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.3s ease;
    padding: 5px 7px;
}

.main-navigation li a:hover {
    color: var(--accent-color);
}

/* ------------------------------------ */
/* ハンバーガーメニュー */
/* ------------------------------------ */

/* PCでは非表示 */
.hamburger-overlay {
    display: none;
}


@media screen and (max-width: 1024px) {
    .hamburger-overlay {
        display: block;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        width: 40px;
        height: 40px;
        position: relative;
        border-radius: 4px;
        background-color: transparent;
    }

    .header-right-column {
        display: none;
    }
}

.hamburger-overlay__line {
    display: block;
    height: 2px;
    width: 24px;
    background: #333;
    margin: 5px auto;
    transition: all 0.3s ease;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-overlay.active .hamburger-overlay__line:nth-child(2) {
    opacity: 0;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ------------------------------------ */
/* オーバーレイメニュー全体 */
/* ------------------------------------ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}


.nav-overlay__content {
    padding: 2rem 1.5rem;
}

.nav-overlay__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-overlay__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.nav-overlay__close::before,
.nav-overlay__close::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 5px;
    width: 2px;
    height: 20px;
    background-color: var(--text-color);
}

.nav-overlay__close::before {
    transform: rotate(45deg);
}

.nav-overlay__close::after {
    transform: rotate(-45deg);
}

.nav-overlay__item {
    border-bottom: 1px solid #ffffff;
}

.nav-overlay__link {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.nav-overlay__link:hover {
    background: var(--accent-color);
    color: #fff;
}

/* オーバーレイ内のお問い合わせボタン風リンク */
.nav-overlay__item:last-child .nav-overlay__link {
    background: #FFF;
    color: #333;
    border-radius: 4px;
    text-align: left;
}

.nav-overlay__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.nav-overlay__close::before,
.nav-overlay__close::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 5px;
    width: 2px;
    height: 20px;
    background-color: var(--text-color);
}

.nav-overlay__close::before {
    transform: rotate(45deg);
}

.nav-overlay__close::after {
    transform: rotate(-45deg);
}

@media screen and (max-width: 1024px) {
    .header-container {
        min-height: 60px;
        align-items: center;
    }
}