/*
Theme Name: 城山国際医院HPテーマ
Theme URI: https://joyamakokusai.com/
Description: 城山国際医院用カスタマイズ（多言語対応版）
Author: Joyama International Clinic
Template: oltana-005
Version: 2.0.0
*/

/* ========================================
   言語切り替えバー
======================================== */
.ol-language-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 36px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e4df;
    position: relative;
    z-index: 1000;
}

.ol-language-bar .ol-language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1001;
}

/* ----------------------------------------
   ボタン共通スタイル
---------------------------------------- */
body .ol-language-bar .ol-language-switcher .lang-btn,
body .ol-language-bar .ol-language-switcher a.lang-btn,
body .ol-language-bar .ol-language-switcher span.lang-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 10px !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    white-space: nowrap !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    color: #b0a89e !important;
}

/* ----------------------------------------
   セパレーター
---------------------------------------- */
body .ol-language-bar .ol-language-switcher .lang-separator {
    color: #ddd8d3 !important;
    font-size: 11px !important;
    padding: 0 2px !important;
    border: none !important;
    background: none !important;
}

/* ----------------------------------------
   有効なリンク ホバー
---------------------------------------- */
body .ol-language-bar .ol-language-switcher a.lang-btn:hover {
    color: #6b5c4e !important;
}

/* ----------------------------------------
   アクティブ（現在の言語）
   テキスト濃色＋下線で強調
---------------------------------------- */
body .ol-language-bar .ol-language-switcher a.lang-btn.active {
    color: #5a5a5a !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-color: #c9b99a !important;
    pointer-events: none !important;
    background: transparent !important;
    border: none !important;
}

/* ----------------------------------------
   無効なリンク（準備中）
---------------------------------------- */
body .ol-language-bar .ol-language-switcher span.lang-btn.disabled {
    color: #cccccc !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* ----------------------------------------
   レスポンシブ
---------------------------------------- */
@media (max-width: 1079px) {
    .ol-language-bar {
        justify-content: center;
        padding: 6px 24px;
    }
}

@media (max-width: 640px) {
    .ol-language-bar {
        padding: 5px 12px;
    }

    body .ol-language-bar .ol-language-switcher .lang-btn,
    body .ol-language-bar .ol-language-switcher a.lang-btn,
    body .ol-language-bar .ol-language-switcher span.lang-btn {
        padding: 2px 8px !important;
        font-size: 10px !important;
    }

    body .ol-language-bar .ol-language-switcher .lang-separator {
        font-size: 10px !important;
    }
}

/* ========================================
   多言語フォント対応
======================================== */
html[lang="zh-TW"] body {
    font-family: "PingFang TC", "Microsoft JhengHei", "Hiragino Sans CNS", "Noto Sans TC", sans-serif;
}

html[lang="en"] body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
}

/* ============================================
   ヒーロースライダー 画像トリミング調整
============================================ */
#splideFirstview .splide__slide picture img,
#splideFirstview .splide__slide img {
    object-fit: cover !important;
    object-position: center 30% !important;
    width: 100% !important;
    height: 100% !important;
}

.ol-firstview__image-inner {
    overflow: hidden !important;
}

.ol-firstview__image-inner picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.ol-firstview__image-inner picture img {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

/* ============================================
   セクション英字ラベル スモールキャップ調整
============================================ */
.ol-heading-sub,
.ol-service__heading-sub,
.ol-news__heading-sub,
.ol-concept__heading-sub,
.ol-story__heading-sub,
.ol-banner__heading-sub,
.ol-faq__heading-sub,
.ol-access__heading-sub,
.ol-contact__heading-sub,
.ol-voice__heading-sub,
.ol-media__heading-sub,
.ol-product__heading-sub {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
}

/* ========================================
   診療時間テーブル 英語対応
======================================== */
.ol-hours__body {
    overflow-x: auto !important;
    width: 100% !important;
}

.ol-hours__row {
    display: grid !important;
    grid-template-columns: 80px repeat(7, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
}

.ol-hours__col-title {
    min-width: 0 !important;
    font-size: 10px !important;
}

.ol-hours__col-day-title,
.ol-hours__col-day {
    text-align: center !important;
    min-width: 0 !important;
    font-size: 10px !important;
    padding: 0 !important;
}