/*
Theme Name: Shinsika
Theme URI: https://sinsika.com/
Author: sinsika
Description: Simple classic WordPress starter theme for a clinic/dental site.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: shinsika
*/

:root {
    --site-max-width: 1200px;
    --header-bg: #ffffff;
    --header-accent: #1f6fd5;
    --header-text: #1b1b1b;
    --nav-bg: #f4f7fb;
    --nav-text: #1b1b1b;
    --nav-hover: #1f6fd5;
    --button-bg: #1f6fd5;
    --button-text: #ffffff;
    --body-text: #222;
    --body-bg: #fff;
    --border: #e5e7eb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--body-text);
    background: var(--body-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
        "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 32px), var(--site-max-width));
    margin-inline: auto;
}r-main

/* ------------------------------
   Header: 3 rows
-------------------------------- */

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}

/* Row 1 */
.header-top {
    min-height: 38px;
    display: flex;
    align-items: center;
    background: #f7f9fc;
    color: #555;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* =================================
   ヘッダー2行目
================================= */

.header-main {
    min-height: 88px;
    background: var(--header-bg);
}


/* コンテナ全体 */
.header-main .container {
    max-width: 1100px;
    min-height: 88px;

    margin: 0 auto;
    padding: 0 20px;

    display: grid;

    /* ロゴ | 電話・休診日 | WEB予約 */
    grid-template-columns:
        200px
        1fr
        130px;

    align-items: center;

    column-gap: 20px;

    box-sizing: border-box;
}

/* =================================
   ロゴ
================================= */

.site-branding {
    width: 200px;
    min-width: 0;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 400px;
    max-height: 70px;
    height: auto;
}


/* =================================
   医院名
================================= */
/* 
.header-clinic-name {
    min-width: 0;
}

.site-title {
    margin: 0;

    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 700;
}

.site-title a {
    text-decoration: none;
} */


/* =================================
   電話・休診日
================================= */
.header-phone {
    text-align: center;
    white-space: nowrap;
    margin: 0;
}


/* 電話番号 */
.header-phone-number {
    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

/* 電話アイコン */
.phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin-right: 8px;
}

.phone-icon svg {
    width: 32px;
    height: 32px;

    fill: currentColor;
}
/* Tel. */
.header-phone-label {
    margin-right: 8px;
    font-size: 22px;
}


/* 電話リンク */
.header-phone-number a {
    color: inherit;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
}

/* 休診日 */
.header-holiday {
    margin-top: 5px;
    line-height: 1.3;

    color: #555;

    white-space: nowrap;

    font-size: 18px;
    font-weight: bold;
}

/* =================================
   WEB予約
================================= */

.header-reservation {
    width: 130px;
}

.reservation-button {
    display: flex;

    width: 130px;
    min-height: 46px;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 0 10px;

    border-radius: 4px;

    background: var(--button-bg);
    color: var(--button-text);

    text-decoration: none;
    font-weight: 700;

    white-space: nowrap;
}

.reservation-button:hover,
.reservation-button:focus {
    opacity: .88;
}
/* Row 3 */
/* =================================
   3行目：メインメニュー
================================= */

.mobile-info-row {
    display: none;
}

.header-nav {
    display: block;
    width: 100%;
    background: var(--header-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.header-nav .container {
    width: 100%;
}

.main-navigation {
    width: 100%;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
}


/* =================================
   スマートフォン
================================= */

@media (max-width: 767px) {

    /* 3行目のメニューは最初は非表示 */
    .header-nav {
        display: none;
    }

    /* ハンバーガーを押したら表示 */
    .header-nav.is-open {
        display: block;
    }

    /* スマホでは縦並び */
    .main-navigation ul {
        display: block;
    }

    .main-navigation a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--border);
    }
}

/* ------------------------------
   Main content
-------------------------------- */

.site-main {
    padding: 48px 0 72px;
}

.page-title,
.entry-title {
    margin-top: 0;
    line-height: 1.3;
}

.entry-content {
    max-width: 100%;
}

.entry-content > * {
    max-width: 100%;
}

.entry-content a {
    color: #155db5;
}

.entry-content .wp-block-image img {
    height: auto;
}

/* Keep two-column image layouts side-by-side on mobile when
   the editor uses a 2-column Columns block. */
@media (max-width: 767px) {
    .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: nowrap !important;
        gap: 10px;
    }

    .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 0 !important;
        flex-grow: 1 !important;
        min-width: 0;
    }
}


/* =================================
   スマホ用ヘッダー
================================= */

.mobile-menu-toggle {
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 8px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

.phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.phone-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.header-phone-number {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-phone-number a {
    color: inherit;
    text-decoration: none;
}

.phone-number-text {
    display: inline-flex;
    align-items: center;
}

.header-phone-label {
    margin-right: 5px;
    font-size: 16px;
}

.header-holiday {
    margin-top: 3px;
    font-size: 13px;
    color: #555;
}


/* =================================
   スマートフォン
================================= */

@media (max-width: 767px) {

    /* PC用上段を隠す */
    .header-top {
        display: none;
    }
    /* 休診日はスマホでは非表示 */
    .header-holiday {
        display: none;
    }

    /* メイン行 */
    

    .header-main {
        min-height: 70px;
    }

    /* ヘッダー1段目 */
    .header-main .container {
        display: grid !important;

        grid-template-columns: 105px minmax(0, 1fr) 40px 80px !important;

        align-items: center !important;

        width: 100% !important;
        min-height: 70px !important;

        padding: 0 10px !important;
        margin: 0 !important;

        box-sizing: border-box;
    }


    /* ロゴ */
    .site-branding {
        grid-column: 1;
        grid-row: 1;

        width: 105px;
    }


    /* しん歯科 */
    .header-clinic-name {
        display: block !important;

        grid-column: 2;
        grid-row: 1;

        min-width: 0;
        width: 100%;
    }


    .header-clinic-name .site-title {
        margin: 0;

        font-size: 20px;
        line-height: 1.2;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* 電話アイコン */
    .header-phone {
        grid-column: 3;
        grid-row: 1;

        width: 40px !important;

        margin: 0 !important;

        display: flex !important;

        align-items: center;
        justify-content: center;
    }


    /* 電話番号の文字は隠す */
    .phone-number-text {
        display: none !important;
    }


    .header-phone-number {
        display: flex !important;

        align-items: center;
        justify-content: center;

        width: 40px;
    }


    .phone-icon {
        display: flex !important;

        width: 30px;
        height: 30px;

        margin: 0;
    }


    .phone-icon svg {
        width: 30px;
        height: 30px;
    }


    /* WEB予約 */
    .header-reservation {
        grid-column: 4 !important;
        grid-row: 1 !important;

        width: 80px !important;

        margin: 0 !important;

        display: block !important;

        justify-self: end !important;
    }


    .reservation-button {
        display: flex !important;

        width: 80px !important;
        min-height: 40px;

        margin: 0 !important;
        padding: 0 !important;

        align-items: center;
        justify-content: center;

        box-sizing: border-box;

        font-size: 12px;

        white-space: nowrap;
    }


    /* 休診日はスマホでは非表示 */
    .header-holiday {
        display: none !important;
    }

     /* =============================
       スマホ2段目
    ============================= */

    .mobile-info-row {
        display: block;
        background: #f7f9fc;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .mobile-info-row .container {
        min-height: 58px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 8px;
    }

    .mobile-info-text {
        min-width: 0;
        font-size: 10px;
        line-height: 1.5;
    }

    .mobile-info-text > div {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* =============================
       ハンバーガーボタン
    ============================= */

    .mobile-menu-toggle {
        flex-shrink: 0;
    }


    
  
    /* WEB予約 */
    .reservation-button {
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }
 


    /* WEB予約を右端 */
    .header-reservation {
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
        white-space: nowrap;
    }

    .reservation-button {
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }

    
    /* フロントページを家アイコンにする */
    .main-navigation .home-menu > a {
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 家のアイコン */
    .main-navigation .home-menu > a::before {
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    background: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 3 10v10h6v-6h6v6h6V10l-9-7z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 3 10v10h6v-6h6v6h6V10l-9-7z'/%3E%3C/svg%3E") center / contain no-repeat;
    }


}

    

/* ------------------------------
   Footer
-------------------------------- */

/* =========================================================
   FOOTER 全体
========================================================= */

.site-footer {
    width: 100%;
}


/* =========================================================
   フッター上段
   診療時間 ＋ WEB予約・電話
========================================================= */

.footer-medical {
    width: 100%;
    background-color: #1976a8;
    padding: 30px 20px;
    box-sizing: border-box;
}

.footer-medical > .container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr auto;

    align-items: center;
    gap: 40px;
}


/* =========================================================
   診療時間テーブル
========================================================= */

.footer-medical-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.medicaltime {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;

    background-color: #fff;
    color: #1976a8;

    border-radius: 10px;
    overflow: hidden;
}

.medicaltime th,
.medicaltime td {
    padding: 9px 8px;

    text-align: center;

    border-right: 1px solid #b8d7e8;
    border-bottom: 1px solid #b8d7e8;

    box-sizing: border-box;
}

.medicaltime tr:last-child th,
.medicaltime tr:last-child td {
    border-bottom: none;
}

.medicaltime th:last-child,
.medicaltime td:last-child {
    border-right: none;
}

.medicaltime th {
    font-weight: 700;
}

.medicaltime .small {
    font-size: 10px;
}


/* =========================================================
   上段：WEB予約・電話
========================================================= */

.footer-contact {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 15px;

    min-width: 190px;
}


/* 上段のWEB予約ボタン */

.footer-medical .footer-reservation {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 180px;
    min-height: 48px;

    padding: 0 25px;

    box-sizing: border-box;

    border-radius: 6px;

    background-color: #fff;
    color: #1976a8;

    text-decoration: none;

    font-weight: 700;
}


/* 上段の電話 */
.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.footer-phone-icon {
    width: 25px;
    height: 25px;
    display: inline-block;
    color: #fff;
    flex-shrink: 0;
}

.footer-phone-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

/* =========================================================
   フッター下段
========================================================= */

.footer-bottom {
    width: 100%;

    background-color: #fff;

    padding: 35px 20px;

    box-sizing: border-box;
}


/* =========================================================
   下段全体
========================================================= */

.footer-bottom > .container {
    max-width: 1100px;
    margin: 0 auto;

    display: block;
}


/* =========================================================
   カレンダー
   PCでは2個を横並び
========================================================= */

.footer-calendar-area {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    width: 100%;

    margin-bottom: 40px;
}


/* カレンダー1個 */

.cal_wrapper {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   カレンダー下
   左右2列
========================================================= */

.footer-content-area {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    width: 100%;
}


/* =========================================================
   左側
   ロゴ・医院情報・WEB予約
========================================================= */

.footer-left {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    width: 100%;
}


/* =========================================================
   フッターロゴ
========================================================= */

.footer-logo {
    width: 100%;

    text-align: center;
}

.footer-logo img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: inline-block;
}


/* =========================================================
   医院情報
========================================================= */

.footer-clinic-info {
    width: 100%;

    min-width: 0;

    text-align: center;

    font-size: 13px;

    line-height: 1.6;
}

.footer-clinic-info p {
    margin: 0 0 8px;
}

.footer-clinic-info p:last-child {
    margin-bottom: 0;
}

.footer-clinic-catch {
    font-size: 15px;
}


/* 医院情報内のリンク */

.footer-clinic-info a {
    color: inherit;

    text-decoration: underline;
}


/* =========================================================
   下段のWEB予約
========================================================= */

.footer-left .footer-reservation {
    width: 100%;

    text-align: center;
}


/* 下段WEB予約ボタン */

.footer-bottom-reservation {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 180px;
    min-height: 44px;

    padding: 0 25px;

    box-sizing: border-box;

    border-radius: 6px;

    background-color: #1976a8;
    color: #fff;

    text-decoration: none;

    font-weight: 700;
}


/* =========================================================
   右側：フッターメニュー
========================================================= */

.footer-right {
    width: 100%;
}

.footer-navigation {
    display: block;

    width: 100%;
}

.footer-navigation ul {
    display: grid;

    grid-template-columns: 1fr 1fr;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-navigation li {
    margin: 0;
    padding: 0;
}

.footer-navigation a {
    display: block;

    padding: 9px 10px;

    color: inherit;

    text-decoration: none;

    border-bottom: 1px solid #ddd;

    box-sizing: border-box;
}


/* =========================================================
   スマホ
   767px以下
========================================================= */

@media (max-width: 767px) {


    /* =====================================================
       上段
    ===================================================== */

    .footer-medical {
        padding: 20px 10px;
    }

    .footer-medical > .container {
        display: flex;

        flex-direction: column;

        gap: 20px;
    }


    /* =====================================================
       診療時間テーブル
    ===================================================== */

    .footer-medical-table {
        width: 100%;

        max-width: none;

        overflow-x: auto;
    }

    .medicaltime {
        width: 100%;

        font-size: 11px;
    }

    .medicaltime th,
    .medicaltime td {
        padding: 7px 3px;
    }


    /* =====================================================
       上段：予約・電話
    ===================================================== */

    .footer-contact {
        width: 100%;

        min-width: 0;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 15px;
    }

    .footer-medical .footer-reservation {
        width: 100%;

        max-width: 300px;
    }

    .footer-phone {
        font-size: 19px;
    }


    /* =====================================================
       下段
    ===================================================== */

    .footer-bottom {
        padding: 25px 15px;
    }


    /* カレンダーは縦並び */

    .footer-calendar-area {
        display: flex;

        flex-direction: column;

        gap: 25px;

        margin-bottom: 30px;
    }


    /* =====================================================
       カレンダー下も縦並び
    ===================================================== */

    .footer-content-area {
        display: flex;

        flex-direction: column;

        gap: 25px;
    }


    /* =====================================================
       左側
    ===================================================== */

    .footer-left {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 15px;

        width: 100%;
    }


    /* =====================================================
       ロゴ
    ===================================================== */

    .footer-logo {
        width: 100%;

        text-align: center;
    }

    .footer-logo img {
        width: min(512px, 100%);

        height: auto;
    }


    /* =====================================================
       医院情報
    ===================================================== */

    .footer-clinic-info {
        width: 100%;

        font-size: 13px;

        text-align: center;
    }


    /* =====================================================
       WEB予約
    ===================================================== */

    .footer-left .footer-reservation {
        width: 100%;

        text-align: center;
    }

    .footer-bottom-reservation {
        min-width: 180px;

        min-height: 44px;
    }


    /* =====================================================
       メニュー
    ===================================================== */

    .footer-navigation ul {
        display: block;
    }

    .footer-navigation li {
        width: 100%;
    }

    .footer-navigation a {
        width: 100%;
    }

}


/* ------------------------------
   WordPress accessibility
-------------------------------- */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #fff;
    clip: auto !important;
    clip-path: none;
    color: #000;
    display: block;
    font-size: 14px;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ------------------------------
   Mobile header
-------------------------------- */

@media (max-width: 767px) {
    .container {
        width: min(calc(100% - 20px), var(--site-max-width));
    }

    .header-top {
        min-height: 32px;
        font-size: 11px;
    }

    .header-top .container {
        gap: 8px;
        white-space: nowrap;
        overflow-x: auto;
    }

    .header-main {
        min-height: 76px;
    }

    .header-main .container {
        min-height: 76px;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }

    .custom-logo {
        max-height: 52px;
        max-width: 90px;
    }

    .site-title {
        font-size: 22px;
    }

    .site-description {
        display: none;
    }

    .header-phone-label {
        display: none;
    }

    .header-phone-number {
        font-size: 15px;
    }

    .reservation-button {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .header-nav .container {
        width: 100%;
        margin: 0;
    }

    .main-navigation ul {
        justify-content: flex-start;
    }

    .main-navigation a {
        padding: 11px 14px;
        font-size: 14px;
    }

    .site-main {
        padding: 30px 0 50px;
    }
}



/* =================================
   診療案内 見出し
================================= */

.medical-heading {
    text-align: center;
    margin: 50px auto 30px;
}

.medical-heading h2 {
    margin: 0;
    color: #1976a8;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* デザイン付きhr */

.medical-heading-line {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 15px auto 0;

    width: 180px;
}

.medical-heading-line::before,
.medical-heading-line::after {
    content: "";
    height: 1px;
    background-color: #1976a8;
    flex: 1;
}

.medical-heading-line span {
    width: 7px;
    height: 7px;
    margin: 0 8px;

    background-color: #1976a8;
    border-radius: 50%;
}


@media (max-width: 767px) {

    .medical-heading {
        margin: 35px auto 20px;
    }

    .medical-heading h2 {
        font-size: 23px;
    }

    .medical-heading-line {
        width: 140px;
    }

}


/* =================================
   診療案内カード
================================= */

.medical-card-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}


/* カード */

.medical-card {
    display: flex;
    flex-direction: column;

    min-height: 220px;

    background: #fff;

    /* 外周を太くする */
    border: 3px solid #1976a8;
    border-radius: 10px;

    color: #1976a8;
    text-decoration: none;

    overflow: hidden;

    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .2s ease;
}


/* =================================
   上半分：画像
================================= */

.medical-card-icon {
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;
    box-sizing: border-box;

    background-color: #fff;
}

.medical-card-icon img {
    display: block;

    max-width: 100%;
    max-height: 120px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =================================
   下半分：文字
================================= */

.medical-card-bottom {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 40px;

    position: relative;

    /* 青背景 */
    background-color: #1976a8;

    /* 白文字 */
    color: #fff;
}


/* タイトル */

.medical-card-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #fff;
}


/* 矢印 */

.medical-card-arrow {
    position: absolute;
    right: 20px;

    font-size: 30px;
    line-height: 1;

    color: #fff;
}


/* =================================
   マウスオーバー
================================= */

.medical-card:hover {
    border-color: #12587c;
    transform: translateY(-3px);
}


/* 下半分を少し濃くする */

.medical-card:hover .medical-card-bottom {
    background-color: #12587c;
}


/* =================================
   スマホ
================================= */

@media (max-width: 767px) {

    /* .medical-card-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 30px 10px;
    } */
	
	.medical-card-title {
    font-size: 13px;
    
	}


    .medical-card {
        min-height: 180px;
        border-width: 3px;
    }

    .medical-card-icon {
        height: 110px;
        padding: 10px;
    }

    .medical-card-icon img {
        max-height: 90px;
        max-width: 90%;
    }

    .medical-card-bottom {
        padding: 10px 30px 10px 10px;
    }

    .medical-card-title {
        font-size: 13px;
    }

    .medical-card-arrow {
        right: 10px;
        font-size: 24px;
    }

}


/* =========================================================
フッター下段
PC：左＝医院情報　右＝カレンダー
========================================================= */

.footer-bottom {
width: 100%;
}

.footer-bottom .container {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 40px;
}

/* =========================================================
左側：医院情報
========================================================= */

.footer-left {
flex: 1 1 auto;
min-width: 0;
}

/* ロゴ */

.footer-logo {
margin-bottom: 15px;
}

.footer-logo img {
width: auto;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 医院情報 */

.footer-clinic-info {
line-height: 1.7;
}

.footer-clinic-info p {
margin: 0 0 10px;
}

.footer-clinic-info a {
text-decoration: none;
}

/* WEB予約 */

.footer-reservation {
margin-top: 20px;
}

/* =========================================================
右側：カレンダー
========================================================= */

.footer-right {
flex: 0 0 360px;
width: 360px;
}

.footer-calendar {
width: 100%;
}

/* =========================================================
カレンダー本体
========================================================= */

div.cal_wrapper {
width: 100%;
padding: 0;
box-sizing: border-box;
}

/* カレンダー */

div.cal_wrapper table.cal {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
table-layout: fixed;
}

/* 年月 */

div.cal_wrapper table.cal tr th p {
padding: 5px;
margin: 0;
color: #666;
font-size: 20px;
font-weight: bold;
}

/* 前月・当月・次月ボタン */

div.cal_wrapper table.cal tr th div.cal_ui {
margin-bottom: 3px;
}

div.cal_wrapper table.cal tr th div.cal_ui input {
border: solid 1px #CCC;
background-color: #FFF;
font-size: 12px;
margin: 0 1px;
padding: 3px 7px;
border-radius: 3px;
cursor: pointer;
}

div.cal_wrapper table.cal tr th div.cal_ui input:hover {
background-color: #EEE;
}

/* 曜日・日付 */

div.cal_wrapper table.cal tr td {
border-top: solid 1px #EEE;
font-size: 16px;
text-align: center;
padding: 3px;
}

/* 曜日 */

div.cal_wrapper table.cal tr.headline {
background-color: #EEE;
}

div.cal_wrapper table.cal tr.headline td {
padding: 5px 0;
color: #666;
font-size: 14px;
}

/* 日付 */

div.cal_wrapper table.cal tr td div {
position: relative;
padding: 3px 2px;
min-height: 25px;
font-size: 15px;
text-align: center;
background-color: #FFF;
border-radius: 3px;
box-sizing: border-box;
}

/* 日付にマウスを乗せた時の説明 */

div.cal_wrapper table.cal tr td div span {
display: none;
position: absolute;
top: 25px;
left: 50%;
transform: translateX(-50%);
width: 130px;
border: solid 1px #EEE;
background-color: #FFF;
text-align: left;
padding: 5px;
z-index: 10;
color: #000;
font-weight: normal;
line-height: 1.5em;
box-shadow: 1px 1px 3px #666;
}

/* =========================================================
カレンダーのクラス
========================================================= */

/* 土曜日 */

div.cal_wrapper table.cal tr td div.Sat {
color: #00F;
}

/* 日曜日 */

div.cal_wrapper table.cal tr td div.Sun {
color: #F00;
}

/* 今日 */

div.cal_wrapper table.cal tr td div.Today {
font-weight: bold;
text-decoration: underline;
}

/* 休日 */

div.cal_wrapper table.cal tr td div.Holyday {
font-weight: bold;
color: #FFF;
background-color: rgb(5, 194, 246);
}

/* 誕生日 */

div.cal_wrapper table.cal tr td div.Birthday {
font-weight: bold;
background-color: #EEF;
color: #090;
border-radius: 3px;
}

/* 過去の日 */

div.cal_wrapper table.cal tr td div.backward {
color: #CCC;
font-weight: normal;
background-color: #FFF;
border-radius: 3px;
}

/* クリック可能 */

div.cal_wrapper table.cal tr td div.pointer {
cursor: pointer;
}

div.cal_wrapper table.cal tr td div.pointer:hover {
background-color: #EEE;
}

/* =========================================================
スケジュール欄
========================================================= */

div.schedule_wrapper {
clear: both;
padding: 10px 0;
width: 100%;
border: solid 1px #000;
border-radius: 5px;
box-shadow: 1px 1px 3px #666;
box-sizing: border-box;
}

div.schedule_wrapper h3 {
padding: 0 10px;
clear: both;
font-weight: normal;
margin: 3px;
font-size: 12px;
color: #000;
}

div.schedule_wrapper div.schedule_list {
padding: 0 10px;
margin: 0;
}

div.schedule_wrapper div.schedule_list ol {
padding: 0;
margin: 5px auto;
border-top: solid 1px #CCC;
}

div.schedule_wrapper div.schedule_list ol li {
padding: 5px 10px 0 0;
margin: 0 0 0 30px;
font-size: 16px;
line-height: 1.5em;
}

div.schedule_wrapper div.schedule_list ol li:hover {
text-decoration: underline;
}

/* =========================================================
スマホ
========================================================= */

@media (max-width: 767px) {


/* 左右ではなく上下 */
.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* 医院情報 */
.footer-left {
    width: 100%;
}


/* カレンダー */
.footer-right {
    width: 100%;
    flex: none;
}

.footer-calendar {
    width: 100%;
}


/* カレンダー */
div.cal_wrapper {
    width: 100%;
}

div.cal_wrapper table.cal {
    width: 100%;
}


/* 年月 */
div.cal_wrapper table.cal tr th p {
    font-size: 18px;
}


/* 日付 */
div.cal_wrapper table.cal tr td {
    font-size: 15px;
    padding: 3px;
}

div.cal_wrapper table.cal tr td div {
    font-size: 14px;
    min-height: 24px;
    padding: 3px 1px;
}


}



/* =================================
   お知らせ
================================= */

.news-section {
    background-color: #f4f4f4;
    border-radius: 10px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    margin: 50px auto;
    padding: 30px;

    box-sizing: border-box;
    max-width: 1100px;
}


/* 左側 */

.news-heading {
     width: 200px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.news-heading h2 {
     margin: 0 0 20px;

    font-size: 28px;
    font-weight: 700;
}


/* お知らせ一覧ボタン */

.news-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: 1px solid #ccc;
    border-radius: 5px;

    background-color: #fff;
    color: inherit;

    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    transition: background-color .2s ease;
}

.news-more-button span {
    margin-left: 10px;
    font-size: 18px;
}

.news-more-button:hover {
    background-color: #ddd;
}


/* =================================
   投稿3件
================================= */

.news-posts {
     flex: 1;
    min-width: 0;
    margin-left: 20px;
}


/* 投稿1件 */

.news-item {
    display: flex;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    padding: 13px 12px;

    border-bottom: 1px solid #ddd;

    color: inherit;
    text-decoration: none;

    transition: background-color .2s ease;
}


/* マウスオーバー */

.news-item:hover {
    background-color: #ddd;
}


/* 日付 */

.news-item time {
    flex: 0 0 100px;

    color: #666;

    font-size: 15px;
}


/* タイトル */

.news-title {
    flex: 1;
    min-width: 0;

    font-size: 16px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* 右端の矢印 */

.news-arrow {
    flex: 0 0 25px;

    text-align: right;

    font-size: 20px;
    color: #555;
}


/* =================================
   スマホ
================================= */

@media (max-width: 767px) {

    .news-section {
        display: block;

        margin: 35px 15px;
        padding: 25px 20px;
    }


    .news-heading {
        width: 100%;
    }


    .news-heading h2 {
        margin-bottom: 15px;
        font-size: 24px;
    }


    .news-more-button {
        margin-bottom: 20px;
    }


    .news-posts {
        margin-left: 0;
    }


    .news-item {
        padding: 12px 8px;
    }


    .news-item time {
        flex: 0 0 80px;
        font-size: 13px;
    }


    .news-title {
        font-size: 14px;
    }


    .news-arrow {
        flex: 0 0 20px;
    }

}

/* =========================================================
   フッター：PCでカレンダーと下段を完全に分離
========================================================= */

@media (min-width: 768px) {

    /* footer-bottomの直下は必ず縦方向 */
    .footer-bottom > .container {
        display: block !important;
        width: 100%;
    }

    /* 1段目：カレンダー */
    .footer-calendar-area {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100%;
        margin-bottom: 40px;
    }

    /* 2段目：ロゴ・医院情報 ＋ メニュー */
    .footer-content-area {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100%;
    }

    /* カレンダー自体 */
    .footer-calendar-area .cal_wrapper {
        width: 100%;
        min-width: 0;
    }

}

/* お知らせページのcss */
.news-page {
    padding: 40px 20px 60px;
    box-sizing: border-box;
}

.news-page h1 {
    text-align: center;
    margin: 0 0 30px;
}

.news-list {
    max-width: 900px;
    margin: 40px auto;
}

.news-item {
    display: flex;
    align-items: center;

    padding: 18px 10px;

    border-bottom: 1px solid #ddd;

    color: #333;
    text-decoration: none;
}

.news-item:hover {
    background-color: #f5f5f5;
}

.news-item time {
    width: 110px;

    color: #1976a8;
    font-size: 14px;
}

.news-title {
    flex: 1;

    font-size: 16px;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}
.news-pagination {
    margin-top: 30px;
    text-align: center;
}
@media (max-width: 767px) {

    .news-list {
        margin: 25px 10px;
    }

    .news-item {
        padding: 14px 5px;
    }

    .news-item time {
        width: 85px;
        font-size: 12px;
    }

    .news-title {
        font-size: 14px;
    }

}

/* 固定ページ・投稿の本文エリア */
.page .entry-content,
.single .entry-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;

    box-sizing: border-box;

    /* 本文は左揃え */
    text-align: left;

    /* 読みやすい行間 */
    line-height: 1.9;
}

/* タイトルは中央 */
.page .entry-title,
.single .entry-title {
    text-align: center;
    margin: 30px 0 40px;
}

/* 見出しは中央にしたい場合 */
.page .entry-content h2,
.page .entry-content h3,
.single .entry-content h2,
.single .entry-content h3 {
    text-align: center;
}

/* 画像は中央 */
.page .entry-content img,
.single .entry-content img {
    display: block;
    max-width: 100%;
    height: auto;

    margin-left: auto;
    margin-right: auto;
}

/* figureも中央 */
.page .entry-content figure,
.single .entry-content figure {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* スマホも中央 */
@media (max-width: 767px) {

    .page .entry-content,
    .single .entry-content {
        padding-left: 16px;
        padding-right: 16px;

        font-size: 13px;
        line-height: 1.85;
    }
	
.medical-card-title .small-text {
    font-size: 9px;
	
/*     font-weight: 400; */
}

}

