/* Modern Mix Style: Base */
:root {
    --bg-color: #fdfbf7;
    /* 温かみのあるクリーム色 */
    --text-primary: #4a4a4a;
    /* 真っ黒ではなく少し柔らかいグレー */
    --text-secondary: #777;

    /* カードごとのテーマカラー（パステル調・彩度高めで元気な感じに） */
    --color-clinic: #dbf2e3;
    --color-hours: #d1eaed;
    --color-equip: #ececf9;
    --color-check: #f0f2f5;
    --color-reserve: #ffe4e4;
    --color-reserve-hover: #ffcccc;
    --color-link: #fff7d6;
    --color-map: #fff3cd;
    --color-contact: #ffe8d6;
    --color-director: #e3efff;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    /* 丸ゴシックに変更 */
    background-color: var(--bg-color);
    background-image: radial-gradient(#e8e0d5 1px, transparent 1px);
    background-size: 20px 20px;
    /* ドットパターンで紙っぽさを演出 */
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    /* 背景アニメーションのはみ出し防止 */
}

/* Organic Floating Blobs (背景のゆらゆら) */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    /* ふんわりぼかす */
    opacity: 0.6;
    animation: floating 20s infinite alternate;
}

body::before {
    top: -100px;
    left: -100px;
    background: linear-gradient(120deg, #e0f7fa, #e1bee7);
}

body::after {
    bottom: -100px;
    right: -100px;
    background: linear-gradient(120deg, #fff9c4, #ffccbc);
    animation-delay: -10s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.site-header {
    background: rgba(220, 235, 255, 0.9);
    backdrop-filter: blur(5px);
    padding-top: 15px;
    padding-bottom: 0px;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.header-logo {
    /* Flexboxで横並びにする */
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img.director-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 8px;
    object-fit: contain;
}

.header-logo h1 {
    margin: 0;
    font-size: 42px;
    /* 少しサイズを調整 */
    color: #444;
    letter-spacing: 2px;
    /* 影付きデザインは維持 */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.header-logo p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #004d90;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.header-info {
    text-align: right;
    font-size: 14px;
}

.header-info .address {
    margin: 0 0 2px;
    color: #333;
    font-size: 12px;
}

.header-info .contact {
    margin: 0;
}

.header-info .tel {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    font-family: 'Zen Maru Gothic', sans-serif;
    letter-spacing: 1px;
    line-height: 1.2;
}

.header-info .fax {
    display: block;
    font-size: 12px;
    color: #666;
}

.subjects-bar {
    background-color: #6fb1e6;
    color: white;
    padding: 8px 0;
    /* 高さを少し抑える */
    margin-top: 5px;
    font-size: 15px;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subjects-bar .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    /* .header-inner や .main-layout と同じパディングにする */
    display: flex;
    align-items: center;
}

.subjects-bar .label {
    font-weight: bold;
    margin-right: 15px;
    background: #fff;
    color: #6fb1e6;
    padding: 3px 12px;
    border-radius: 12px;
}

/* Main Layout */
.main-layout {
    max-width: 1100px;
    margin: 20px auto;
    /* 上部の隙間を詰める */
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    /* 左:固定幅, 右:可変 */
    gap: 40px;
}

/* Left Column: News */
.info-card {
    background: white;
    border-radius: 24px;
    /* より丸く */
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
    /* ポップな影 */
    border: 2px solid #f0f0f0;
}

.card-header {
    display: flex;
    align-items: center;
    border-bottom: 2px dashed #ddd;
    /* 点線で親しみやすく */
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h2 {
    margin: 0;
    font-size: 20px;
    color: #5d8bb3;
    flex-grow: 1;
}

.card-header .icon {
    font-size: 28px;
}

.scroll-box {
    height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.scroll-box::-webkit-scrollbar {
    width: 8px;
}

.scroll-box::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.scroll-box::-webkit-scrollbar-track {
    background: transparent;
}

.news-item {
    margin-bottom: 20px;
    background: #fafafa;
    padding: 15px;
    border-radius: 12px;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item time {
    display: inline-block;
    background: #888;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.news-item h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #444;
}

.news-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Hero Illustration Area */
.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff8e1;
    /* 暖かい黄色 */
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 4px 4px 0px #ffe0b2;
    position: relative;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    z-index: 1;
}

.hero-text p {
    margin: 0;
    color: #e67e22;
    font-weight: bold;
    font-size: 16px;
}

.hero-text h2 {
    margin: 10px 0 0;
    font-size: 28px;
    color: #5d4037;
    line-height: 1.3;
}

.hero-slideshow {
    width: 320px;
    height: 180px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 5s ease-in-out;
    /* 更にゆっくりとしたフェード */
}

.hero-slide.active {
    opacity: 1;
}

.catch-copy-area {
    text-align: center;
}

.catch-copy-area h2 {
    color: #2c723a;
    /* 緑 */
    font-size: 20px;
    margin-bottom: 15px;
}

.catch-copy-area img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Right Column: Bento Grid Menu */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 160px);
    gap: 20px;
}

.grid-item {
    background: white;
    border-radius: 24px;
    display: block;
    /* Flexbox解除 */
    position: relative;
    overflow: hidden;
    padding: 0;
    /* パディングなしで画面いっぱい使う */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.grid-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.grid-item .emoji {
    position: absolute;
    top: -15px;
    left: -5px;
    font-size: 90px;
    /* 特大サイズ */
    margin: 0;
    z-index: 0;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.grid-item:hover .emoji {
    transform: scale(1.1) rotate(-5deg);
}

.grid-item .emoji-img {
    position: absolute;
    top: 5px;
    left: 10px;
    /* 中央配置をやめて左上に */
    width: 110px;
    height: auto;
    z-index: 0;
    filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.grid-item:hover .emoji-img {
    transform: scale(1.15) rotate(-5deg);
}

/* スマホ対応 */
@media (max-width: 900px) {
    .grid-item .emoji-img {
        width: 100px;
        /* スマホでも大きく */
    }
}


.text-area {
    position: absolute;
    bottom: 15px;
    right: 15px;
    text-align: right;
    z-index: 1;
}

.grid-item .label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    display: block;
    margin-bottom: 2px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
    /* 文字が見やすいように */
}

.grid-item .sub {
    font-size: 12px;
    color: #003366;
    letter-spacing: 0.5px;
    display: block;
    font-family: sans-serif;
    /* 英語はサンセリフでシャープに */
}

/* Live Badge (稼働状況) */
.live-badge {
    margin-top: 5px;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge-red {
    background: #fee2e2;
    color: #ef4444;
    animation: pulse 2s infinite;
}

/* 各パネルのグラデーション背景 (リッチ感アップ) */
.item-clinic {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
}

.item-hours {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: #004d40;
}

.item-equip {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #4a148c;
}

.item-checkup {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #424242;
}

.item-reserve {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #b71c1c;
    border: 2px solid #ffcdd2;
}

.item-reserve:hover {
    border-color: #ef5350;
}

.item-link {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57f17;
}

.item-map {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
}

.item-contact {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.item-director {
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
    color: #37474f;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 20px auto;
    }

    /* スマホではメニュー（右カラム）を一番上に！ */
    .right-column {
        order: 1;
        margin-top: 0;
    }

    .hero-illustration {
        padding: 15px;
        margin-bottom: 15px;
    }

    .hero-text h2 {
        font-size: 20px;
    }

    .hero-img {
        width: 100px;
    }

    /* お知らせ（左カラム）はその後 */
    .left-column {
        order: 2;
    }

    /* Bento Grid: 隙間を限界まで詰める */
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 115px);
        /* 高さを少し増やして隙間を埋める */
        gap: 3px;
        /* 隙間を極小に */
    }

    .grid-item {
        padding: 0;
        min-height: 100px;
        display: block;
        /* PC同様ブロック要素に戻す */
        position: relative;
        overflow: hidden;
    }

    /* アイコンをど真ん中に、カードからはみ出す勢いで配置！ */
    .grid-item .emoji {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 85px;
        /* カードを埋め尽くすサイズ */
        margin: 0;
        z-index: 0;
    }

    .grid-item:hover .emoji {
        transform: translate(-50%, -50%) scale(1.1);
    }

    /* テキストは右下に配置し、背景をつけて読みやすく */
    .text-area {
        position: absolute;
        bottom: 5px;
        right: 5px;
        text-align: right;
        z-index: 1;
        width: 100%;
        pointer-events: none;
    }

    .grid-item .label {
        font-size: 15px;
        font-weight: bold;
        line-height: 1.1;
        display: inline-block;
        /* グラスモーフィズム（すりガラス）エフェクト */
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        padding: 6px 10px;
        /* 余白を少しリッチに */
        border-radius: 12px;
        /* より丸くモダンに */
        color: #1e293b;
        /* 真っ黒ではなく深い色味 */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        /* ふんわり浮いた影 */
        text-align: right;
        /* min-width削除: 文字数に合わせて伸縮させる */
        max-width: 100%;
        /* はみ出し防止 */
    }

    .live-badge {
        display: none;
        /* スマホではごちゃつくので非表示 */
    }

    .grid-item .sub {
        display: block !important;
        font-size: 10px;
        color: #003366;
        /* 濃い青に変更 */
        background: rgba(255, 255, 255, 0.9);
        padding: 2px 8px;
        border-radius: 10px;
        margin-top: 4px;
        width: fit-content;
        margin-left: auto;
        backdrop-filter: blur(4px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        font-weight: bold;
    }

    /* ヘッダー周りの調整（タブレット以下） */
    .site-header {
        padding-top: 10px;
        padding-bottom: 5px;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        text-align: left;
        padding-bottom: 5px;
        flex-wrap: nowrap;
    }

    .header-logo h1 {
        font-size: 28px;
        /* タブレットでは少し大きめに */
    }

    .header-logo p {
        font-size: 11px;
        /* 小さくして表示 */
        line-height: 1.3;
    }

    .header-info {
        text-align: right;
        font-size: 12px;
    }

    .header-info .address {
        font-size: 10px;
    }

    .header-info .tel {
        font-size: 20px;
    }

    .header-info .fax {
        font-size: 10px;
    }

    .subjects-bar .subjects {
        font-size: 12px;
    }
}

/* スマホ（600px以下）: 情報を絞り込む */
@media (max-width: 600px) {
    .header-logo h1 {
        font-size: 20px;
    }

    .header-logo p {
        display: none;
        /* 法人名・院長名は非表示 */
    }

    .header-info .address,
    .header-info .fax {
        display: none;
        /* 住所とFAXは非表示 */
    }

    .header-info .tel {
        font-size: 18px;
    }

    .subjects-bar .subjects {
        font-size: 10px;
    }
}



/* --- Inner Page Styles (Added 2026-01-18) --- */
.page-layout {
    display: block;
    /* グリッドではなくシングルカラム */
    max-width: 800px;
}

.content-area {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 20px;
}

.page-title h1 {
    font-size: 28px;
    color: #444;
    margin: 10px 0 0;
}

.page-title .emoji {
    font-size: 48px;
    display: block;
}

.page-title .sub {
    font-size: 14px;
    color: #888;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-block {
    margin-bottom: 50px;
}

.section-block h2 {
    font-size: 22px;
    color: #2c723a;
    /* 緑系 */
    border-left: 5px solid #a5d6a7;
    padding-left: 15px;
    margin-bottom: 20px;
}

.intro-section {
    display: flex;
    gap: 30px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-img img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.gallery-item span {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

.btn-link {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4);
}

@media (max-width: 768px) {
    .content-area {
        padding: 20px;
    }

    .intro-section {
        flex-direction: column;
    }

    .page-title h1 {
        font-size: 24px;
    }
}

/* --- Consultation Hours Page Styles (Moved from html) --- */
.hours-table,
.doctor-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 14px;
}

.hours-table th,
.hours-table td,
.doctor-table th,
.doctor-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
}

.hours-table th,
.doctor-table th {
    background-color: #fce4ec;
    /* 薄いピンク */
    color: #d81b60;
}

.hours-table td:first-child,
.doctor-table td:first-child {
    background-color: #fafafa;
    font-weight: bold;
}

.circle {
    color: #4caf50;
    font-size: 18px;
    font-weight: bold;
}

.cross {
    color: #e0e0e0;
}

.note {
    font-size: 13px;
    color: #666;
    margin-top: -20px;
    margin-bottom: 40px;
}

/* --- Modal Styles (Added 2026-01-22) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fdfbf7;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e8ed;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    color: #1565c0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #ef5350;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    /* スクロールバーのデザイン */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #edf2f7;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 4px;
}

/* Equipment Card Styling (Refined 2026-01-22) */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.equip-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    /* 枠線をなくして柔らかく */
    box-shadow: 0 4px 15px rgba(220, 230, 240, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    /* アイコン配置用 */
}

.equip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(200, 210, 220, 0.4);
}

/* Image Area with Overlay Icon */
.equip-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.equip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equip-card:hover .equip-img {
    transform: scale(1.05);
}

.equip-icon-overlay {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Content Area */
.equip-info {
    padding: 25px 25px 20px;
    /* アイコン分の余白を考慮 */
}

.equip-name {
    margin: 0 0 12px;
    font-size: 18px;
    color: #444;
    font-weight: bold;
    border-bottom: none;
    /* 下線削除 */
    display: block;
}

.equip-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Chips / Tags */
.equip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    background: #eee;
    color: #555;
}

.tag-speed {
    background: #e3f2fd;
    color: #1565c0;
}

/* Speed: Blue */
.tag-merit {
    background: #fff3e0;
    color: #ef6c00;
}

/* Merit: Orange */
.tag-target {
    background: #fce4ec;
    color: #ad1457;
}

/* Target: Pink */

/* Color Variations (Pastel Backgrounds) */
.bg-blue {
    background: #f0f7ff;
}

.bg-green {
    background: #f1f8e9;
}

.bg-pink {
    background: #fff5f8;
}

.bg-yellow {
    background: #fffde7;
}

.equip-card.bg-blue .equip-info {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #f0f7ff);
}

.equip-card.bg-green .equip-info {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #f1f8e9);
}

.equip-card.bg-pink .equip-info {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #fff5f8);
}

.equip-card.bg-yellow .equip-info {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #fffde7);
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes for CMS (Added 2026-01-28) */
.text-red {
    color: #d32f2f;
    font-weight: bold;
}

.text-blue {
    color: #1976d2;
    font-weight: bold;
}

/* Global Navigation in Subjects Bar (Fixed & Compact) */

/* ヘッダー青帯のレイアウト調整 */
.subjects-bar {
    padding: 5px 0;
}

.subjects-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* 左側の診療科目ラップ用 */
.subjects-left {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: auto;
}

/* ナビゲーション本体 */
nav.global-nav {
    display: block;
}

nav.global-nav .container {
    display: block;
    padding: 0;
    margin: 0;
}

/* リストスタイル */
nav.global-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.global-nav li {
    margin: 0;
    padding: 0;
}

nav.global-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    /* 下線の太さを少し増やす */
    font-size: 14px;
    font-weight: 500;
    padding: 5px 8px;
    transition: all 0.2s ease;
}

/* ホバー時 & 現在地（アクティブ）時 */
nav.global-nav a:hover,
nav.global-nav a.current {
    color: #ffeb3b !important;
    /* 黄色 */
    border-bottom-color: #ffeb3b;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    opacity: 1;
}

/* スマホ対応 */
@media (max-width: 900px) {
    .subjects-bar .container {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .subjects-left {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 5px;
    }

    /* スマホではラベル非表示で短縮 */
    .subjects-left .label,
    .subjects-left .arrow {
        display: none;
    }

    .subjects-left .subjects {
        font-size: 11px;
    }

    nav.global-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    nav.global-nav ul {
        justify-content: space-between;
        /* 均等配置 */
        width: 100%;
        min-width: 320px;
        flex-wrap: nowrap;
        /* 折り返しなしで横スクロール */
        gap: 5px;
    }

    nav.global-nav a {
        font-size: 11px;
        padding: 6px 8px;
        border-bottom: none;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        white-space: nowrap;
    }

    nav.global-nav a.current {
        background: rgba(255, 255, 255, 0.3);
        color: #ffeb3b !important;
        font-weight: bold;
    }
}

/* 
 * 強制ホバースタイル & 現在地スタイル追加 (2026-02-16)
 * ユーザーの環境で反映されない問題を解決するため、詳細度を最大にして上書き
 */
html body .subjects-bar nav.global-nav a:hover,
html body nav.global-nav a:hover,
html body .subjects-bar nav.global-nav a.current,
html body nav.global-nav a.current,
#global-nav-main a:hover,
#global-nav-main a.current {
    color: #ffeb3b !important;
    /* 黄色 */
    border-bottom-color: #ffeb3b !important;
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    text-decoration: none !important;
    border-radius: 4px;
    /* 角丸も強制 */
}