@charset "UTF-8";

/* ==========================================
   Theme Name: Hospital Sample Theme
   Version: 1.0.8
   Description: 完全版（User Agent Style完全上書き・Heroズーム・Full Width）
   ========================================== */

/* --- 1. ブラウザ標準スタイルのリセット (Reset) --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* 箇条書きの黒丸を根こそぎ削除 */
ul, li {
    list-style: none !important;
    list-style-type: none !important;
}

/* --- 2. 共通レイアウト (Base) --- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; /* 横揺れ防止 */
}

/* --- 共通設定：すべてのリンクの下線を消す --- */
a {
    text-decoration: none; /* すべての下線を一括で消去 */
    color: inherit;        /* 基本は親要素の文字色を引き継ぐ */
    transition: 0.3s;      /* ホバー時の変化を滑らかに */
}

/* ホバー時の共通ルール（任意で色を設定） */
a:hover {
    text-decoration: none; /* ホバー時も下線は出さない */
    color: #007bff;        /* ホバーした時にテーマカラーの青にする */
}

/* 記事本文の中のリンクだけは、分かりやすく色を変える */
.entry-content a,
.entry-excerpt a {
    color: #007bff;
}

/* メニュー展開時の背景固定 */
body.menu-open {
    overflow: hidden !important;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 表示切り替え */
.sp-only { display: none; }
.pc-only { display: block; }

@media screen and (max-width: 768px) {
    .sp-only { display: block; }
    .pc-only { display: none; }
}

/* --- 3. ヘッダー：PC (Header PC) --- */
.site-header { background: #fff; }

.header-top {
    padding: 30px 0;
    text-align: center;
}

.header-logo a {
    text-decoration: none;
    color: #007bff;
    font-size: 32px;
    font-weight: bold;
    display: block;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

/* --- 4. ナビゲーション：PC --- */
.main-navigation {
    width: 100%;
    z-index: 999;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.nav-list li {
    list-style: none !important;
}

.nav-list li a {
    display: block;
    padding: 15px 25px;
    color: #444;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-list li a:hover {
    color: #007bff;
}

/* --- 5. スマホ：ヘッダー・ナビゲーション (Mobile) --- */
@media screen and (max-width: 768px) {
    .header-mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        padding: 0 10px 0 20px;
        background: #fff;
        border-bottom: 1px solid #eee;
        position: relative;
        z-index: 1001; 
    }

    .mobile-logo a {
        font-weight: bold;
        color: #007bff;
        text-decoration: none;
        font-size: 20px;
        line-height: 1;
    }

    .menu-toggle {
        background: none;
        border: none;
        outline: none;
        width: 48px;
        height: 48px;
        position: relative;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: #007bff;
        position: absolute;
        transition: transform 0.3s ease, opacity 0.3s ease;
        left: 11px;
    }

    .menu-toggle span:nth-child(1) { transform: translateY(-8px); }
    .menu-toggle span:nth-child(2) { opacity: 1; }
    .menu-toggle span:nth-child(3) { transform: translateY(8px); }

    .menu-toggle.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

    .main-navigation {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border: none;
        box-shadow: none;
        overflow-y: auto;
    }

    .main-navigation.active {
        transform: translateX(-100%);
    }

    .nav-header {
        display: flex;
        align-items: center;
        height: 60px;
        padding: 0 20px;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-list {
        flex-direction: column;
        list-style: none !important;
        padding: 0;
        margin: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
        list-style: none !important;
    }

    .nav-list li a {
        padding: 25px 20px;
        text-align: center;
        font-size: 18px;
        color: #333;
        display: block;
        text-decoration: none;
    }
}

/* --- 6. 背景オーバーレイ --- */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.menu-overlay.active { display: block; }

/* --- 7. Hero Section (Full Width & Zoom) --- */
.hero {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #fff;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* 初期状態は非表示 */
    animation: sliderAnime 15s infinite; /* 15秒で1ループ */
}

/* 3枚の画像の表示タイミングをずらす */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }

@keyframes sliderAnime {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; transform: scale(1.1); } /* ズームしながらフェードアウト */
    100% { opacity: 0; }
}

/* テキストが画像の上にくるように調整 */
.hero-content {
    position: relative;
    z-index: 10;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.hero-text-wrap {
    max-width: 650px;
    padding: 40px;
    border-radius: 20px;
}

.hero-subline {
    display: inline-block;
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    letter-spacing: 0.15em;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    color: #333;
    line-height: 1.25;
    margin-bottom: 25px;
    border: none !important;
    padding: 0 !important;
}

.hero-description {
    font-size: 18px;
    color: #444;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.btn-primary { background: #007bff; color: #fff !important; }
.btn-secondary { background: #fff; color: #007bff !important; border: 2px solid #007bff; }

@media screen and (max-width: 768px) {
    .hero { height: 550px; }
    .hero-content { padding: 0 20px; }
    .hero-text-wrap { padding: 30px; text-align: center; }
    .hero-title { font-size: 36px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .btn { width: 100%; box-sizing: border-box; }
}

/* --- 8. コンテンツ / フッター --- */
.site-footer {
    background: #f0f8ff; /* 薄いブルー（アリスブルー） */
    color: #333;        /* 文字色は読みやすく濃いグレーに */
    padding: 60px 0 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
}

/* 左側：情報エリア */
.footer-info {
    flex: 1;
}

.footer-logo a {
    font-size: 26px;
    font-weight: bold;
    color: #007bff; /* ロゴは病院のテーマカラーの青 */
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-contact {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-address {
    margin-bottom: 10px;
}

.footer-tel {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.footer-sub-links ul {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.footer-sub-links a {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
}

/* 右側：マップエリア */
.footer-map {
    flex: 1;
    max-width: 500px;
    width: 100%;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    line-height: 0;
}

.copyright {
    background: rgba(0, 0, 0, 0.03); /* コピーライト部分はさらに薄く色分け */
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #888;
}

/* フッター内の診察時間テーブル */
.footer-schedule {
    margin-top: 15px;
    max-width: 400px; /* 広がりすぎないよう制限 */
}

.footer-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* 少し小さめでスッキリさせる */
    background: #fff; /* テーブル内は白 */
    border: 1px solid #d0e8ff;
}

.footer-schedule-table th,
.footer-schedule-table td {
    padding: 8px 4px;
    border: 1px solid #d0e8ff;
    text-align: center;
}

.footer-schedule-table th {
    background: #e6f2ff; /* 曜日の背景を少し濃いめのブルーに */
    font-weight: bold;
    color: #007bff;
}

.schedule-caption {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: left;
}

/* スマホでは中央寄せにする（footer-innerのレスポンシブに合わせる場合） */
@media screen and (max-width: 768px) {
    .footer-schedule {
        margin-left: auto;
        margin-right: auto;
    }
    .schedule-caption {
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-sub-links ul {
        justify-content: center;
    }

    .footer-map {
        max-width: 100%;
    }
}

/* 管理バー補正 */
.admin-bar .main-navigation { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .main-navigation { top: 46px; }
}

/* お知らせ・ブログ左右並びセクション */
.info-columns {
    padding: 60px 20px;
}

.news-blog-flex {
    display: flex;
    gap: 50px; /* 左右の間隔 */
    justify-content: space-between;
}

.info-column {
    flex: 1; /* 左右均等に広がる */
}

/* ヘッダー部分 */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff; /* 病院のテーマカラー */
    padding-bottom: 10px;
}

.column-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.btn-more {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #007bff;
    padding: 2px 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-more:hover {
    background: #007bff;
    color: #fff;
}

/* 各アイテムのスタイル */
.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
    font-size: 15px;
}

.info-item time {
    color: #888;
    font-family: monospace;
    min-width: 90px;
}

.info-item a {
    color: #333;
    text-decoration: none;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; /* 長いタイトルを「...」にする */
}

.info-item a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* スマホ対応：縦に並べる */
@media screen and (max-width: 768px) {
    .news-blog-flex {
        flex-direction: column;
        gap: 40px;
    }
}

/* --- 一覧共通：見出しエリア --- */
.page-header {
    background: #f0f8ff; /* フッターと同じ薄いブルー */
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    color: #007bff;
    font-size: 28px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #007bff;
}

/* --- お知らせ一覧：シンプルなリスト --- */
.archive-item {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.archive-date {
    color: #888;
    font-weight: bold;
    min-width: 120px;
}

.archive-title a {
    color: #333;
    font-size: 18px;
    font-weight: normal;
}

/* --- ブログ一覧：カード形式 --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.blog-body {
    padding: 20px;
}

.blog-body time {
    font-size: 13px;
    color: #999;
}

.blog-body h2 {
    font-size: 18px;
    margin: 10px 0;
}

.blog-body .excerpt {
    font-size: 14px;
    color: #666;
}

/* ページネーション */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a, .pagination .current {
    padding: 10px 15px;
    border: 1px solid #007bff;
    color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: #fff;
}

/* --- 浮き出しアニメーションの準備 --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px); /* 30px下に下げておく */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* 画面内に入った時に付与するクラス */
.fade-in-up.is-active {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
}

/* 浮き出しアニメーションのベース設定 */
.js-fade {
    opacity: 0;
    transform: translateY(40px); /* 40px下に下げておく */
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

/* 画面内に入った時に付与されるクラス */
.js-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- トップページ：アクセスセクション --- */
.front-access-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* 診療所らしい清潔感のある薄い青 */
}

.access-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.access-info {
    flex: 1.2;
}

.access-map {
    flex: 1;
}

.access-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    border-left: 5px solid #007bff;
    padding-left: 15px;
}

/* 住所・電話 */
.access-contact {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.access-tel {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
}

/* テーブル */
.access-schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.access-schedule-table th,
.access-schedule-table td {
    border: 1px solid #d0e8ff;
    padding: 12px 5px;
    text-align: center;
}

.access-schedule-table th {
    background: #e6f2ff;
}

.time-slot {
    background: #f9f9f9;
    font-weight: bold;
}

.access-schedule-table .sun,
.access-schedule-table .hol {
    color: #e63946;
    background: #fff5f5;
}

/* 地図の角を丸く */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 0;
}

/* レスポンシブ */
@media screen and (max-width: 992px) {
    .access-inner {
        flex-direction: column;
    }
    .access-info, .access-map {
        width: 100%;
    }
    .access-schedule {
        overflow-x: auto;
    }
}

/* --- 洗練された特徴セクション（再現） --- */
.sophisticated-features {
    padding: 100px 20px;
    background: #fff;
    position: relative;
    overflow: hidden; /* 背景アイコンのはみ出し対策 */
}

.feature-layout {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左側：画像エリア */
.feature-image-column {
    flex: 1.1;
    position: relative;
}

.image-stack {
    position: relative;
}

/* メイン画像（大きな角丸） */
.main-image {
    width: 100%;
    height: auto;
    border-radius: 20px; /* 画像の角を大きく丸く */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2; /* 装飾より前に出す */
}

/* 画像の背後の装飾（緑のグラデーション） */
.image-decoration {
    position: absolute;
    bottom: -30px; /* 画像から少しはみ出す */
    left: 260px;
    width: 260px; /* 装飾のサイズ */
    height: 260px;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    border-radius: 20px;
    z-index: 1; /* 画像の後ろに配置 */
}
.decoration-left {
    position: absolute;
    bottom: -30px; /* 画像から少しはみ出す */
    left: -30px;
    width: 260px; /* 装飾のサイズ */
    height: 260px;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    border-radius: 20px;
    z-index: 1; /* 画像の後ろに配置 */
}
/* 右側：テキストエリア */
.feature-text-column {
    flex: 1;
    position: relative;
    z-index: 3; /* 背景アイコンより前に出す */
}

/* Feature01 のライン */
.feature-lead {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feature-number {
    font-size: 14px;
    color: #888;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.feature-line {
    flex: 1;
    height: 1px;
    background-color: #d0e8ff;
    max-width: 100px;
}

/* メインタイトル */
.feature-main-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* タグ（胃カメラ・大腸カメラ） */
.feature-tag-wrap {
    margin-bottom: 25px;
}

.feature-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 4px;
    font-size: 14px;
}

/* 本文テキスト */
.feature-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

/* リンクエリア（矢印付き） */
.feature-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 共通：下線なし、ホバーで色と動き */
.arrow-link {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 右寄せ */
    font-size: 15px;
    color: #555;
    text-decoration: none !important; /* 下線なし（共通） */
    transition: 0.3s;
}

.arrow-link:hover {
    color: #007bff;
}

/* 矢印アイコン */
.arrow-link .icon {
    margin-left: 8px;
    font-size: 12px;
    color: #007bff;
    transition: transform 0.3s;
}

.arrow-link:hover .icon {
    transform: translateX(5px); /* ホバー時に矢印が少し右に動く */
}

/* 背景の十字アイコン（SVG等を使うのが理想だが、CSSで再現） */
.bg-cross-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.03; /* 極めて薄く */
    background: 
        linear-gradient(#007bff, #007bff) no-gradient-mask-center / 100% 2px,
        linear-gradient(#007bff, #007bff) no-gradient-mask-center / 2px 100%;
    z-index: 1;
}

/* スマホ対応 */
@media screen and (max-width: 992px) {
    .feature-layout {
        flex-direction: column-reverse; /* スマホではテキストを上、画像を下に */
        gap: 40px;
    }
    .feature-main-title {
        font-size: 22px;
    }
    .image-decoration {
        display: none; /* スマホでは装飾を消すか小さく */
    }
}

/* --- 診療案内パーツスタイル --- */
.front-medical-info {
    padding: 80px 0;
}

.medical-header {
    text-align: center;
    margin-bottom: 60px;
}

.medical-sub-title {
    font-size: 14px;
    color: #64dd17; /* アクセントの黄緑 */
    font-weight: 700;
    letter-spacing: 0.1em;
    display: inline-block;
    border-bottom: 1px solid #64dd17;
    margin-bottom: 10px;
}

.medical-main-title {
    font-size: 32px;
    color: #333;
    font-weight: 700;
}

/* グリッドレイアウト */
.medical-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* 円形アイテム */
.medical-item {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.1);
}

/* 鮮やかな青のグラデーション */
.medical-item::before {
    content: '';
    position: absolute;
    inset: 0;
    /* 白文字が見えやすいよう、下部の青色（#007bff）を少し深めに設定 */
    background: linear-gradient(135deg, #81d4fa 0%, #007bff 100%);
    z-index: 1;
}

/* 白文字をさらにくっきりさせるための微かなシャドウレイヤー */
.medical-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05); /* 全体に5%だけ暗さを足して白を飛ばさない */
    z-index: 2;
}

.medical-item:hover {
    transform: translateY(-8px);
}

.medical-item-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.medical-icon {
    width: 30%; /* 円のサイズに合わせて可変 */
    margin-bottom: 15px;
}

.medical-icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1); /* 黒アイコンでも白に強制変換 */
}

.medical-item-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 文字の輪郭をはっきりさせる */
}

.medical-item-sub {
    font-size: 12px;
    font-weight: 500;
    color: #fff !important;
    opacity: 0.9;
}

/* スマホ対応 */
@media screen and (max-width: 992px) {
    .medical-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media screen and (max-width: 480px) {
    .medical-item-name {
        font-size: 17px;
    }
}