@charset "utf-8";
/**
 * Rousai Child Theme - Header Styles
 *
 * コーポレート向け清潔感重視デザイン。
 * 親テーマのヘッダー（#header）とハンバーガー（.menu-trigger）は
 * functions.php または header.php の上書きで実質非表示になる。
 */

/* =============================================================
   親テーマのヘッダー要素を非表示
   （子テーマの header.php で別の構造を出すため）
   ============================================================= */
#header {
    display: none !important;
}
.menu-trigger {
    display: none !important;
}


/* =============================================================
   サイトヘッダー
   ============================================================= */
.site-header {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    box-sizing: border-box;
    gap: 24px;
}

/* ロゴ */
.site-header__logo {
    flex-shrink: 0;
}
.site-header__logo a {
    display: inline-block;
    line-height: 0;
}
.site-header__logo img {
    width: auto;
    height: 36px;
    max-height: 36px;
    display: block;
}
.site-header__logo a:hover img {
    opacity: 0.85;
}


/* =============================================================
   メインナビ（PC）
   ============================================================= */
.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.site-header__menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu-item a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.5;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}

.site-header__menu-item a:hover {
    color: #0aa086;
    background: #f3faf8;
}


/* =============================================================
   お問い合わせCTA（PC）
   ============================================================= */
.site-header__cta {
    flex-shrink: 0;
}

.site-header__contact-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #0aa086;
    border: 2px solid #0aa086;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.5;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.site-header__contact-btn:hover {
    background: #088e76;
    border-color: #088e76;
    color: #ffffff;
}


/* =============================================================
   ハンバーガーボタン（モバイルでのみ表示）
   ============================================================= */
.site-header__hamburger {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.site-header__hamburger-bar {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    background: #1f2937;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
    transform: translateX(-50%);
}

.site-header__hamburger-bar:nth-child(1) { top: 14px; }
.site-header__hamburger-bar:nth-child(2) { top: 21px; }
.site-header__hamburger-bar:nth-child(3) { top: 28px; }

.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-bar:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}
.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-bar:nth-child(2) {
    opacity: 0;
}
.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-bar:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}


/* =============================================================
   モバイル用ドロワー
   ============================================================= */
.site-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.site-drawer[aria-hidden="false"] {
    pointer-events: auto;
}

.site-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.site-drawer[aria-hidden="false"] .site-drawer__overlay {
    opacity: 1;
}

.site-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85%);
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 60px 20px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.site-drawer[aria-hidden="false"] .site-drawer__panel {
    transform: translateX(0);
}

.site-drawer__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #4b5563;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.site-drawer__close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.site-drawer__menu {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex-grow: 1;
}

.site-drawer__menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f3f4f6;
}

.site-drawer__menu-item a {
    display: block;
    padding: 16px 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s ease;
}

.site-drawer__menu-item a:hover {
    color: #0aa086;
}

.site-drawer__cta {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #0aa086;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
    transition: background-color 0.15s ease;
}

.site-drawer__cta:hover {
    background: #088e76;
    color: #ffffff;
}

/* ドロワー開いている間は body のスクロール禁止 */
body.is-drawer-open {
    overflow: hidden;
}


/* =============================================================
   レスポンシブ：900px 以下でモバイル表示
   ============================================================= */
@media screen and (max-width: 899px) {
    .site-header__inner {
        padding: 12px 16px;
        gap: 12px;
    }

    /* PCナビとCTAボタンを隠す */
    .site-header__nav,
    .site-header__cta {
        display: none;
    }

    /* ハンバーガーを表示 */
    .site-header__hamburger {
        display: block;
    }

    .site-header__logo img {
        height: 32px;
        max-height: 32px;
    }
}

/* 中間サイズ（タブレット〜小型ノート）でメニュー文字を少し縮める */
@media screen and (min-width: 900px) and (max-width: 1100px) {
    .site-header__menu-item a {
        padding: 10px 8px;
        font-size: 13px;
    }
    .site-header__contact-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
