@charset "UTF-8";

/* ======================================================
 * 1. 基本レイアウト（PC・モバイル共通）
 * ====================================================== */

html body .therapist-grid-container,
html body .entry-content ul.staff_block {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin: 40px auto !important;
    padding: 0 !important;
    list-style: none !important;
    max-width: 1200px;
}

/* カード本体 */
html body .therapist-list-card,
html body .entry-content ul.staff_block li {
    display: flex !important;
    align-items: flex-start !important; /* 子要素を上揃えにする基本設定 */
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin: 0 auto 15px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    box-sizing: border-box !important;
    width: 650px !important;
    max-width: 100% !important;
    position: relative !important;
    text-align: left !important;
}

/* * 画像調整の最終兵器 
 * ここで height: auto をねじ伏せます
 */

/* 1. 枠（Container）の設定 */
html body .card-left-thumb,
html body .entry-content ul.staff_block li .thumb {
    width: 100px !important;
    height: 100px !important;
    flex: 0 0 100px !important; /* サイズ固定 */
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 0 20px 0 0 !important;
    align-self: flex-start !important; /* 上に固定 */
    position: relative !important;
    background: #eee !important; /* 画像読み込み前の背景 */
}

/* 2. 中間のタグ（aタグ, pictureタグ）も100%に広げる */
html body .card-left-thumb a,
html body .card-left-thumb picture,
html body .entry-content ul.staff_block li .thumb a,
html body .entry-content ul.staff_block li .thumb picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. 画像（img）本体の設定：ここが最重要 */
html body .card-left-thumb img,
html body .entry-content ul.staff_block li .thumb img,
html body img.attachment-therapist-square { 
    width: 100% !important;
    height: 100% !important; /* auto を 100% に強制変更 */
    object-fit: cover !important; /* 枠に合わせてトリミング */
    object-position: top center !important; /* 顔（上部）を中心に表示 */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important; /* テーマの干渉を防ぐ */
    max-height: none !important;
}

/* 情報エリア */
html body .card-right-info,
html body .entry-content ul.staff_block li .post-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    overflow: hidden !important;
    margin-top: 0 !important;
}

/* テキスト装飾：18pxに固定 */
html body .entry-content ul.staff_block li .name,
html body .therapist-list-card .staff-name,
html body .staff-name, 
html body .name a {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-decoration: none !important;
    pointer-events: none !important;
    display: inline-block !important;
    margin: 0 0 5px 0 !important;
    line-height: 1.4 !important;
}

html body .staff-catch {
    display: block !important;
    font-size: 11px !important;
    color: #b8860b !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
}

html body .attendance {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #b8860b !important;
    margin: 0 !important;
}

/* --- 2. 資格・歴のデザイン --- */

html body .qualification-scroll-container {
    width: 100% !important;
    margin-top: 5px !important;
    display: block !important;
    clear: both !important;
}

html body .qualification-scroll-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

html body .experience-row {
    display: block !important;
    width: 100% !important;
}

html body .meta-tag-item {
    font-size: 10px !important;
    padding: 1px 8px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    display: inline-block !important;
}
html body .meta-tag-item.qualification {
    background: #fff4e0 !important;
    color: #b8860b !important;
    border: 1px solid #f0e6cc !important;
}
html body .meta-tag-item.experience {
    background: #f9f9f9 !important;
    color: #666 !important;
    border: 1px solid #eee !important;
}

/* --- 3. モバイル専用設定（767px以下） --- */
@media screen and (max-width: 767px) {
    /* リスト要素 */
    html body ul.staff_block li,
    html body .therapist-list-card {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        align-items: flex-start !important;
    }

    /* 透明リンク（クリック範囲） */
    html body .card-overlay-link {
        display: block !important;
        cursor: pointer !important;
        background: transparent !important;
    }

    /* 情報エリア：クリック透過 */
    html body .card-right-info,
    html body .entry-content ul.staff_block li .post-info,
    html body .staff-meta-daily {
        display: block !important;
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        position: relative !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    /* カード本体の切り抜きを解除してバッジを見えるようにする */
    html body .therapist-list-card,
    html body ul.staff_block li {
        overflow: visible !important; /* hidden から visible に変更 */
    }

    /* サムネイル画像は角丸に沿って切り抜く必要があるため、
       ここだけに hidden を個別に設定します */
    html body .card-left-thumb,
    html body .entry-content ul.staff_block li .thumb {
        overflow: hidden !important;
    }

    /* 🏆資格スクロールコンテナ（窓）：スクロール操作有効 */
    html body .qualification-scroll-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        margin: 8px 0 0 !important;
        padding: 0 !important;
        -webkit-overflow-scrolling: touch;
        
        position: relative !important;
        z-index: 3 !important;
        pointer-events: auto !important;
        cursor: auto !important;
    }

    /* 中身（横長） */
    html body .qualification-scroll-inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        gap: 6px !important;
    }

    /* バッジ */
    html body .meta-tag-item.qualification {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* スクロールバー */
    html body .qualification-scroll-container::-webkit-scrollbar {
        height: 5px !important;
        display: block !important;
    }
    html body .qualification-scroll-container::-webkit-scrollbar-thumb {
        background: #d4af37 !important;
        border-radius: 10px !important;
    }
}

/* --- 4. その他のコンポーネント --- */

html body .new-badge {
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    background: linear-gradient(45deg, #b8860b, #d4af37) !important;
    color: #fff !important;
    padding: 2px 8px !important;
    font-size: 10px !important;
    border-radius: 20px !important;
    z-index: 10 !important;
}

/* 週表示ナビゲーション */
html body .attmgr_guide_weekly {
    display: block !important;
    width: 100% !important;
    margin: 0 auto 30px auto !important;
    border: none !important;
    overflow: visible !important;
}

html body .attmgr_guide_weekly tbody,
html body .attmgr_guide_weekly tr {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 767px) {
    html body .attmgr_guide_weekly tbody,
    html body .attmgr_guide_weekly tr {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

html body .attmgr_guide_weekly td {
    display: block !important;
    flex: 0 0 65px !important;
    padding: 0 !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: all 0.3s ease;
}

html body .attmgr_guide_weekly td a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 0 !important;
    text-decoration: none !important;
    color: #333 !important;
    line-height: 1.2 !important;
}

html body .attmgr_guide_weekly span.date {
    font-size: 14px !important;
    font-weight: bold !important;
    display: block !important;
}
html body .attmgr_guide_weekly span.dow {
    font-size: 10px !important;
    display: block !important;
    margin-top: 3px !important;
}

html body .attmgr_guide_weekly td.current {
    background: #b8860b !important;
    border-color: #b8860b !important;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
}
html body .attmgr_guide_weekly td.current a,
html body .attmgr_guide_weekly td.current span {
    color: #fff !important;
}

html body .attmgr_guide_weekly td.saturday span.dow { color: #007aff !important; }
html body .attmgr_guide_weekly td.sunday span.dow { color: #ff3b30 !important; }
html body .attmgr_guide_weekly td.current span.dow { color: #fff !important; }

html body .attmgr_guide_weekly tr::-webkit-scrollbar {
    display: none !important;
}

/* ======================================================
 * ホバーアクション
 * ====================================================== */
@media screen and (min-width: 768px) {
    /* カード本体にホバーした時の挙動 */
    html body .therapist-list-card:hover,
    html body .entry-content ul.staff_block li:hover {
        /* 1. 枠線をゴールドに変更 */
        border-color: #d4af37 !important;
        
        /* 2. 少しだけ浮き上がらせる */
        transform: translateY(-3px) !important;
        
        /* 3. 影を濃くして立体感を出す */
        box-shadow: 0 10px 25px rgba(184, 134, 11, 0.15) !important;
        
        /* 4. マウスカーソルを指マークに（念のため） */
        cursor: pointer !important;
    }

    /* ホバー時に中の画像も少し明るくする（演出） */
    html body .therapist-list-card:hover img,
    html body .entry-content ul.staff_block li:hover img {
        opacity: 0.9 !important;
        transition: opacity 0.3s ease !important;
    }
}