/* 基本スタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    margin: 0;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダー */
.header {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #009966;
}

/* ▼ テキストタイトル用のスタイルを追加 ▼ */
.site-title {
    font-family: 'Kosugi Maru', sans-serif;
    font-size: 40px;
    color: #006699;
    margin: 0;
    font-weight: 400;
    /* Kosugi Maruは基本的に標準の太さのみ */
}

/* ▲ ここまで追加 ▲ */

/* .title-image の指定は不要になったため削除 */

/* メインコンテンツ */
.main {
    padding: 20px 0;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
    background-color: #006699;
    color: #fff;
    padding: 12px 20px;
    margin: 0;
    font-size: 1.2em;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    padding: 20px;
}

/* 休日当番医セクション */
.doctors-area-title {
    text-align: center;
    font-size: 1.1em;
    color: #006699;
    margin-top: 0;
}

.month-navigator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #eaf4ff;
    border-radius: 4px;
}

.month-btn {
    text-decoration: none;
    color: #006699;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #006699;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.month-btn:hover {
    background-color: #006699;
    color: #fff;
}

.current-month {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* 2カラムレイアウト */
.doctors-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: #ddd;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.date-group {
    display: flex;
    background-color: #fff;
}

.date-column {
    flex: 0 0 140px;
    padding: 15px;
    text-align: center;
    background-color: #f7f7f7;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-column.is-holiday {
    color: #d9534f;
}

.date-month-day {
    font-size: 1.4em;
    font-weight: bold;
}

.date-weekday {
    font-size: 1.1em;
}

.holiday-name {
    font-size: 0.9em;
    margin-top: 5px;
}

.doctors-list-column {
    flex: 1;
}

.doctor-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.doctors-list-column .doctor-entry:last-child {
    border-bottom: none;
}

.doctor-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.doctor-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
}

.doctor-city {
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.doctor-city.city-minamishimabara {
    background-color: #006699;
}

.doctor-city.city-unzen {
    background-color: #009966;
}

.doctor-town {
    font-size: 0.95em;
}

.doctor-name {
    font-size: 1.1em;
    font-weight: bold;
}

.doctor-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 10px;
}

.icon-btn {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: opacity 0.3s;
}

.icon-btn:hover {
    opacity: 0.8;
}

.map-btn {
    background-color: #d9534f;
}

.home-btn {
    background-color: #337ab7;
}

/* フッター */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    background-color: #333;
    color: #fff;
    font-size: 0.9em;
}

/* レスポンシブ対応 */
@media (max-width: 680px) {

    /* ▼ タイトルのフォントサイズを調整 ▼ */
    .site-title {
        font-size: 32px;
    }

    .date-group {
        flex-direction: column;
    }

    .date-column {
        border-right: none;
        border-bottom: 1px solid #ddd;
        flex-basis: auto;
    }

    .doctor-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .doctor-links {
        padding-top: 5px;
    }
}

/* === カレンダー用のスタイル === */
.calendar-wrapper {
    margin-bottom: 20px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* セルの幅を均等に */
}

.calendar th {
    background-color: #f7f7f7;
    font-weight: normal;
    padding: 8px 0;
    font-size: 0.9em;
}

.calendar td {
    border: 1px solid #e9e9e9;
    text-align: center;
    padding: 12px 0;
    vertical-align: middle;
}

.calendar th:first-child {
    /* 日曜日 */
    color: #d9534f;
}

.calendar th:last-child {
    /* 土曜日 */
    color: #337ab7;
}

.calendar td.has-duty {
    background-color: #eaf4ff;
    font-weight: bold;
    /*color: #006699;*/
    color: #d9534f;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar td.has-duty:hover {
    background-color: #d0e8ff;
}

/* === スクロール時のハイライト効果 === */
.date-group.highlight {
    transition: background-color 0.5s ease-out;
    background-color: #fff8e1;
    /* 薄い黄色 */
}

/* === 電話番号アイコンのスタイル === */
.tel-btn {
    background-color: #28a745;
    /* 緑色 */
}

/* === 感染症情報セクションのスタイル === */
.infection-info {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    /* スマホで縦並びにする */
}

.infection-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.infection-image:hover {
    transform: scale(1.03);
}

/* === 画像拡大モーダル (ライトボックス) のスタイル === */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 20px;
    box-sizing: border-box;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/*手作業で追加 フッターの調整*/
.footer_info_box{
    display:flex;
    justify-content: space-around;
    max-width:1000px;
    margin:0 auto;
}

/* レスポンシブ対応 */
@media (max-width: 680px) {
    .footer_info_box{
        display:block;
        max-width:90%;

}
}
.footer_icon_list{
    list-style: none;
    display: block;
}
.footer_icon_list a{
    color: white;
    font-size: 1.5em;
    text-decoration: none;
}
.footer_icon_list li{
    padding: 10px;
    margin: 10px auto;
    border:solid 1px white;
    border-radius: 10px;
    text-align: left;
    background-color: #333333;
}
.footer_icon_list li:hover{
filter: invert(100%);
    /*background-color: white;*/
}
.footer_icon_list li img{
    width: 1em;
    margin-right: .5em;
}

