@charset "UTF-8";
/* ==========================================================================
   PCヘッダーのCTA（電話テキスト＋お問い合わせフォームボタン）
   旧 assets-lpb/img/pc-header-tel.png をテキスト＋SVGに置き換えたもの
   ========================================================================== */

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    /* 親の align-items-start を打ち消し、ロゴの高さに対して縦中央に置く */
    align-self: center;
}

/* --------------------------------------------------------------------------
   FVの上にヘッダーを透過で重ねる
   直後に .kyoto-fv-section が来るページ（トップ・エリア詳細）だけが対象。
   :has() が効かないブラウザでは両方のルールが不発になり、
   従来どおり「ヘッダーの下にFV」というレイアウトに素直に戻る
   -------------------------------------------------------------------------- */
.site-header:has(+ .kyoto-fv-section) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

/* 重なったヘッダーの高さぶんFV側で余白を確保する
   （ヘッダー高 ≒ ロゴ高 clamp(64px,8vw,116px) + ナビ約38px） */
.site-header:has(+ .kyoto-fv-section) + .kyoto-fv-section {
    padding-top: calc(clamp(64px, 8vw, 116px) + 3.5rem + 16px);
}

/* 576-767px は SPロゴバーとPCヘッダーが両方表示されるぶん高くなる */
@media (min-width: 576px) and (max-width: 767.98px) {
    .site-header:has(+ .kyoto-fv-section) + .kyoto-fv-section {
        padding-top: 266px;
    }
}

@media (max-width: 575.98px) {
    .site-header:has(+ .kyoto-fv-section) + .kyoto-fv-section {
        padding-top: 90px;
    }
}

/* ヘッダー内のナビ：白いカプセルの中に区切り線つきで並べる */
/* HTML側の justify-content-end（Bootstrapの!important）を上書きして中央寄せ */
.site-header #header-list-nav {
    justify-content: center !important;
    margin-top: 8px;
    margin-bottom: 16px;
}

.site-header #header-list-nav .nav {
    gap: 0;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #bfcffc;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.12);
}

.site-header #header-list-nav ul li {
    position: relative;
    background-image: none;
}

.site-header #header-list-nav ul li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 14px;
    background: #bfcffc;
    transform: translateY(-50%);
}

.site-header #header-list-nav .nav-link {
    margin: 0;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1565c0;
    border-radius: 999px;
    transition: background-color 0.2s, color 0.2s;
}

.site-header #header-list-nav .nav-link:hover,
.site-header #header-list-nav .nav-link:focus-visible {
    color: #fff;
    background: #1565c0;
}

/* --------------------------------------------------------------------------
   電話（背景なしのテキスト表示）
   -------------------------------------------------------------------------- */
.header-tel-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.1;
    text-decoration: none;
    transition: opacity .2s ease;
}

.header-tel-btn:hover,
.header-tel-btn:focus {
    text-decoration: none;
    opacity: .75;
}

.header-tel-btn:focus-visible {
    outline: 3px solid #286aaf;
    outline-offset: 3px;
    border-radius: 4px;
}

.header-tel-btn__lead {
    color: #333;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.header-tel-btn__num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #286aaf;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

/* フリーダイヤルマーク */
.header-tel-btn__mark {
    flex: none;
    width: 24px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   お問い合わせフォームボタン
   -------------------------------------------------------------------------- */
.header-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border-bottom: 4px solid #b34a00;
    background: #eb6100;
    color: #fff;
    line-height: 1.15;
    text-decoration: none;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.header-form-btn:hover,
.header-form-btn:focus {
    background: #f56500;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}

.header-form-btn:focus-visible {
    outline: 3px solid #286aaf;
    outline-offset: 2px;
}

.header-form-btn:active {
    margin-top: 2px;
    border-bottom-width: 2px;
}

.header-form-btn__icon {
    flex: none;
    width: 24px;
    height: 18px;
}

.header-form-btn__text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.header-form-btn__lead {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    opacity: .95;
}

.header-form-btn__main {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   タブレット
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .header-cta {
        gap: 10px;
    }

    .header-tel-btn__lead {
        font-size: 11px;
    }

    .header-tel-btn__num {
        font-size: 26px;
    }

    .header-tel-btn__mark {
        width: 20px;
        height: 13px;
    }

    .header-form-btn {
        padding: 6px 12px;
        gap: 6px;
    }

    .header-form-btn__icon {
        width: 20px;
        height: 15px;
    }

    .header-form-btn__lead {
        font-size: 10px;
    }

    .header-form-btn__main {
        font-size: 15px;
    }
}

/* --------------------------------------------------------------------------
   ヘッダーロゴ（kyoto-logo.png）
   元画像は 1774x887 で上下左右に透明の余白を含むため、高さで制御する
   -------------------------------------------------------------------------- */
.site-header .header-logo {
    width: auto;
    height: clamp(64px, 8vw, 116px);
}

/* 既存の #sp-header-logo { max-height: 50px } を上書き */
.site-header #sp-header-logo {
    max-height: none;
    height: 64px;
}
