/**
 * けいクリニック スタイルシート - 完成版
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    background-color: #f5f5f5;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

/* ========================================
   セクション見出し
======================================== */
.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: left;
    margin-bottom: 80px;
    padding-top: 60px;
    position: relative;
    padding-left: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 7px;
    height: 85px;
    background: linear-gradient(180deg, #a0c4c7 0%, #6b8e8f 100%);
    transform: rotate(-25deg);
    transform-origin: top left;
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 160px;
    height: 3px;
    background: #6b8e8f;
}

.main-services-subtitle,
.sub-services-subtitle {
    display: none;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
        padding-left: 50px;
        padding-top: 50px;
        margin-bottom: 60px;
    }
    .section-title::before {
        left: 15px;
        top: 42px;
        width: 5px;
        height: 70px;
    }
    .section-title::after {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
        padding-left: 45px;
        margin-bottom: 50px;
    }
    .section-title::before {
        left: 10px;
        top: 40px;
        width: 4px;
        height: 60px;
    }
    .section-title::after {
        width: 100px;
    }
}

/* ========================================
   ヘッダー
======================================== */
.header {
    padding: 18px 0;
    position: relative;
    top: 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-bottom {
    padding-top: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    font-size: 30px;
    font-weight: 600;
    color: #333;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-phone a {
    font-size: 18px;
    font-weight: 600;
    color: #6b8e8f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-phone a:hover {
    color: #5a7a7b;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 18px;
}

.header-nav a:hover {
    color: #6b8e8f;
}

.header-cta-button {
    padding: 11px 26px;
    background: linear-gradient(135deg, #cfe9ea 0%, #6F9D94 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(107, 142, 143, 0.3);
    display: inline-block;
    white-space: nowrap;
}

.header-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 142, 143, 0.4);
    color: white;
}

/* 固定時のスタイル */
.header-fixed {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 95%;
    max-width: 1360px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 14px 0;
    border-radius: 50px;
}

.header-fixed .header-container {
    padding: 0 80px;
}

.header-fixed .header-top {
    padding-bottom: 10px;
}

.header-fixed .header-bottom {
    padding-top: 10px;
}

.header-fixed .logo-icon {
    width: 32px;
    height: 32px;
}

.header-fixed .logo-text {
    font-size: 18px;
}

.header-fixed .header-phone a {
    font-size: 16px;
}

.header-fixed .header-nav {
    gap: 20px;
}

.header-fixed .header-nav a {
    font-size: 14px;
}

.header-fixed .header-cta-button {
    padding: 9px 22px;
    font-size: 14px;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 720px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    margin-top: 20px;
}

.kv__main--img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.kv__main--img > span {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transition: opacity 1.5s ease-in-out;
}

.kv__main--img > span.active {
    opacity: 1;
    z-index: 2;
}

/* ========================================
   診療状況カード
======================================== */
.clinic-status {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: #f5f5f5;
    padding: 35px 40px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    max-width: 420px;
}

.clinic-status::before {
    content: "";
    position: absolute;
    top: 0;
    right: -30px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpath d="M 0 100 L 0 0 Q 0 100 100 100 Z" fill="%23f5f5f5"/%3E%3C/svg%3E');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: rotate(90deg);
}

.clinic-status::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpath d="M 0 0 L 100 0 Q 0 0 0 100 Z" fill="%23f5f5f5"/%3E%3C/svg%3E');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.status-date-large {
    text-align: left;
}

.date-number {
    font-size: 72px;
    font-weight: 900;
    color: #333;
    line-height: 1;
    letter-spacing: -2px;
    display: block;
}

.date-day {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-top: 5px;
    letter-spacing: 1px;
}

.status-info-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-badge-large {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clinic-status.open .status-badge-large {
    color: #4caf50;
}

.clinic-status.open .pulse-dot {
    background: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

.clinic-status.closed .status-badge-large {
    color: #ff6b6b;
}

.clinic-status.waiting .status-badge-large {
    color: #999;
}

.clinic-status.waiting .pulse-dot {
    background: #999;
    box-shadow: 0 0 15px rgba(153, 153, 153, 0.6);
    animation: none;
    opacity: 0.8;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.status-time-large {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-label-large {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.time-remaining-large {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

.clinic-status.closed .pulse-dot {
    display: none;
}

/* ========================================
   ヒーローコンテンツ
======================================== */
.hero-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 10;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    text-shadow: 5px 4px 0px rgb(111 157 148 / 80%);
}

.hero-subtitle {
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.8;
    border-radius: 8px;
    display: inline-block;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #cfe9ea 0%, #6F9D94 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(107, 142, 143, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 143, 0.4);
}

.img__scroll--circle {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    list-style: none;
}

.img__scroll--circle li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.img__scroll--circle li.active {
    background-color: #6b8e8f;
    transform: scale(1.3);
}

.img__scroll--circle li:hover {
    background-color: rgba(107, 142, 143, 0.7);
}

/* ========================================
   診療時間カード
======================================== */
.schedule-card {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 20;
    background: #f5f5f5;
    padding: 30px 35px 35px 40px;
    border-top-left-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.schedule-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -30px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpath d="M 0 100 L 0 0 Q 0 100 100 100 Z" fill="%23f5f5f5"/%3E%3C/svg%3E');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: rotate(-90deg);
}

.schedule-card::after {
    content: "";
    position: absolute;
    top: -30px;
    right: 0;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpath d="M 0 0 L 100 0 Q 0 0 0 100 Z" fill="%23f5f5f5"/%3E%3C/svg%3E');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

.schedule-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.schedule-table {
    display: grid;
    gap: 10px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 100px repeat(6, 30px);
    align-items: center;
    gap: 25px;
    font-size: 16px;
}

.schedule-row.header {
    font-weight: 600;
    color: #666;
}

.schedule-time {
    color: #333;
}

.schedule-dot {
    width: 10px;
    height: 10px;
    background-color: #5eb1bf;
    border-radius: 50%;
    margin: 0 auto;
}

.schedule-day {
    text-align: center;
    color: #666;
}

.schedule-slash {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    position: relative;
}

.schedule-slash::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d64545;
    transform: translateY(-50%) rotate(-45deg);
}

.schedule-dot.active {
    background-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.2);
    }
}

.schedule-note {
    font-size: 11px;
    color: #999;
    margin-top: 12px;
    line-height: 1.5;
}

/* ========================================
   発熱バナー
======================================== */
.alert-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 6px solid #d64545;
    box-shadow: 0 4px 15px rgba(214, 69, 69, 0.15);
    max-width: 1400px;
    margin: 30px auto 0;
    border-radius: 12px;
}

.alert-banner-content {
    padding: 25px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.alert-banner-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.alert-banner-text {
    flex: 1;
}

.alert-banner-title {
    font-size: 20px;
    font-weight: 600;
    color: #d64545;
    margin-bottom: 8px;
}

.alert-banner-description {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   メインコンテンツ
======================================== */
.main-content {
    background: #f5f5f5;
    margin-top: 50px;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

.cta-button-secondary {
    display: inline-block;
    background-color: #fff;
    color: #6F9D94;
    padding: 12px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #6F9D94;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: #6F9D94;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 142, 143, 0.3);
}

/* ========================================
   お知らせセクション
======================================== */
.news-section {
    background: white;
    padding-bottom: 60px;
}

.news-area-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-area-full .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.news-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #6b8e8f;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.news-date {
    font-size: 14px;
    color: #999;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f4f5;
    color: #6b8e8f;
}

.news-tag.important {
    background: #ffe8e8;
    color: #d64545;
}

.news-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.news-body {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ========================================
   診療科目セクション（簡易版）
======================================== */

/* メイン診療科目グリッド */
.services-simple-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-simple-card {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
}

.service-simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(107, 142, 143, 0.2);
    border-color: #6b8e8f;
}

.service-simple-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.service-simple-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.service-simple-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.service-simple-link {
    font-size: 14px;
    font-weight: 600;
    color: #6b8e8f;
    transition: color 0.3s ease;
}

.service-simple-card:hover .service-simple-link {
    color: #5a7a7b;
}

/* 予防接種・健診グリッド */
.services-sub-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.service-sub-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 2px solid transparent;
}

.service-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(107, 142, 143, 0.15);
    border-color: #6b8e8f;
    background: white;
}

.service-sub-icon {
    font-size: 50px;
    flex-shrink: 0;
}

.service-sub-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.service-sub-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.service-sub-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.service-sub-link {
    font-size: 13px;
    font-weight: 600;
    color: #6b8e8f;
    transition: color 0.3s ease;
}

.service-sub-card:hover .service-sub-link {
    color: #5a7a7b;
}

/* ========================================
   院長紹介セクション（簡易版）
======================================== */
.doctor-section-simple {
    background: #f5f5f5;
    padding-bottom: 60px;
}

.doctor-profile-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: center;
}

.doctor-image-simple {
    width: 100%;
}

.doctor-image-simple img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.doctor-name-simple {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.doctor-title-simple {
    font-size: 16px;
    color: #6b8e8f;
    font-weight: 600;
    margin: 0;
}

.doctor-message-simple {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.doctor-more-link {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #6b8e8f;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.doctor-more-link:hover {
    color: #5a7a7b;
    transform: translateX(5px);
}


/* ========================================
   アクセス＆カレンダーセクション
======================================== */
.access-calendar-section {
    background: white;
    padding: 80px 0 60px;
}

.access-calendar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.access-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.map-area {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.map-placeholder {
    width: 100%;
    height: 370px;
    background: linear-gradient(135deg, #e3f2f7 0%, #c8dfe6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.map-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.map-note {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

.info-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #6b8e8f;
}

.info-box-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.info-phone {
    font-size: 24px;
    font-weight: 600;
    color: #6b8e8f;
    margin-bottom: 5px;
}

.info-phone a {
    color: #6b8e8f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-phone a:hover {
    color: #5a7a7b;
}

.info-note {
    font-size: 12px;
    color: #999;
}

.info-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* カレンダーエリア */
.calendar-area {
    position: sticky;
    top: 120px;
}

.calendar-area-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #6b8e8f;
}

.calendar-container {
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-month {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.calendar-nav button:hover {
    background: #6b8e8f;
    color: white;
    border-color: #6b8e8f;
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    padding: 8px 0;
}

.calendar-weekday.sunday {
    color: #d64545;
}

.calendar-weekday.saturday {
    color: #5eb1bf;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.calendar-day-cell {
    aspect-ratio: 1;
    padding: 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.3s;
    position: relative;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 40px;
}

.calendar-day-cell:nth-child(7n) {
    border-right: none;
}

.calendar-day-cell.other-month {
    background: #f5f5f5;
}

/* 午前のみ診療（木曜・土曜） */
.calendar-day-cell.partial {
    background: #fff9e6;
}

.calendar-day-cell.partial .day-number {
    color: #e8a870;
    font-weight: 600;
}

.calendar-day-cell.partial::after {
    content: '午前';
    font-size: 8px;
    color: #e8a870;
    font-weight: 600;
}

/* 休診日（日曜） */
.calendar-day-cell.closed {
    background: #fff5f5;
}

.calendar-day-cell.closed .day-number {
    color: #d64545;
    font-weight: 700;
}

.calendar-day-cell.closed::after {
    content: '休';
    font-size: 9px;
    color: #d64545;
    font-weight: 600;
}

/* 本日 */
.calendar-day-cell.today {
    background: #6b8e8f;
    box-shadow: none;
}

.calendar-day-cell.today .day-number {
    color: white;
    font-weight: 700;
}

/* 本日が午前のみの場合 */
.calendar-day-cell.today.partial::after {
    color: white;
}

/* 本日が休診の場合 */
.calendar-day-cell.today.closed::after {
    color: white;
}

.day-number {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.calendar-day-cell.sunday .day-number {
    color: #d64545;
}

.calendar-day-cell.saturday .day-number {
    color: #5eb1bf;
}

.calendar-day-cell.other-month .day-number {
    color: #ccc;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.legend-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.legend-box.today {
    background: #6b8e8f;
}

.legend-box.partial {
    background: #fff9e6;
}

.legend-box.closed {
    background: #fff5f5;
}

/* ========================================
   フッター - 超ミニマルデザイン（改良版）
======================================== */
.footer {
    background: #fafbfc;  /* 柔らかいグレー背景 */
    border-top: 1px solid #e8eaed;
    padding: 50px 0 30px;
}

.footer-content {
    max-width: 1200px;  /* サイト全体と統一 */
    margin: 0 auto;
    padding: 0 40px;
}

/* メイン情報エリア */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.1fr;  /* 右側を少し広めに */
    gap: 60px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e8eaed;
}

/* 左側：クリニック情報 */
.footer-clinic-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.footer-address {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.footer-phone {
    margin-top: 5px;
}

.footer-phone a {
    font-size: 24px;
    font-weight: 600;
    color: #6b8e8f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-phone a:hover {
    color: #5a7a7b;
}

.footer-phone-note {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* 右側：診療時間 */
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-hours-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.footer-hours-table {
    background: #ffffff;  /* 白背景で少しコントラスト */
    padding: 22px 28px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);  /* 軽い影 */
}

.footer-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-hours-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 40px;
}

.footer-hours-time {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.footer-hours-note {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    line-height: 1.6;
}

/* ボトムエリア */
.footer-bottom {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #6b8e8f;
}

.footer-separator {
    color: #ddd;
}

.footer-copyright {
    font-size: 12px;
    color: #999;
}

/* ========================================
   アニメーション
======================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   レスポンシブ調整
======================================== */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-nav {
        gap: 20px;
    }
    
    .header-nav a {
        font-size: 14px;
    }

    .news-area-full .news-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .access-calendar-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .calendar-area {
        position: static;
    }

    .info-area {
        grid-template-columns: 1fr;
    }

    .services-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-sub-grid {
        grid-template-columns: 1fr;
    }

    .doctor-profile-simple {
        grid-template-columns: 200px 1fr;
        gap: 30px;
        padding: 30px;
    }

    .footer-main {
        gap: 50px;
    }

}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .header-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-phone a {
        font-size: 16px;
    }

    .header-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 15px;
        font-size: 13px;
    }

    .header-cta-button {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .header-fixed {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 8px 0;
    }

    .header-fixed .header-container {
        padding: 0 20px;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-bottom {
        display: none; /* ハンバーガーメニューで対応 */
    }

    .hero {
        height: 550px;
        margin-top: 15px;
    }

    .clinic-status {
        padding: 20px 30px 20px 25px;
        border-bottom-right-radius: 25px;
        min-width: 220px;
    }

    .clinic-status::before,
    .clinic-status::after {
        width: 25px;
        height: 25px;
    }

    .clinic-status::before {
        right: -25px;
    }

    .clinic-status::after {
        bottom: -25px;
    }

    .date-number {
        font-size: 60px;
    }

    .status-badge-large {
        font-size: 24px;
    }

    .time-remaining-large {
        font-size: 18px;
    }

    .hero-content {
        bottom: 40px;
        left: 30px;
        right: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .schedule-card {
        display:none;
    }

    .schedule-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .schedule-row {
        grid-template-columns: 80px repeat(6, 24px);
        gap: 8px;
        font-size: 12px;
    }

    .schedule-dot {
        width: 8px;
        height: 8px;
    }

    .schedule-slash {
        width: 16px;
        height: 16px;
    }

    .schedule-slash::before {
        height: 1.5px;
    }

    .schedule-note {
        font-size: 10px;
    }

    .alert-banner {
        margin: 20px 20px 0;
    }

    .alert-banner-content {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .alert-banner-icon {
        font-size: 40px;
    }

    .alert-banner-title {
        font-size: 18px;
    }

    .alert-banner-description {
        font-size: 14px;
    }

    .news-area-full .news-list {
        grid-template-columns: 1fr;
    }

    .services-simple-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-simple-card {
        padding: 30px 20px;
    }

    .service-simple-icon {
        font-size: 50px;
    }

    .service-simple-title {
        font-size: 20px;
    }

    .service-sub-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }

    .service-sub-content {
        align-items: center;
    }

    .service-sub-icon {
        font-size: 45px;
    }

    .doctor-profile-simple {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px;
    }

    .doctor-image-simple {
        max-width: 250px;
        margin: 0 auto;
    }

    .doctor-name-simple {
        font-size: 24px;
    }

    .doctor-title-simple {
        font-size: 15px;
    }

    .doctor-message-simple {
        font-size: 14px;
    }

    .access-calendar-wrapper {
        gap: 30px;
    }

    .map-placeholder {
        height: 280px;
    }

    .info-phone {
        font-size: 20px;
    }

    .calendar-container {
        padding: 15px 10px;
    }

    .calendar-month {
        font-size: 16px;
    }

    .calendar-weekday {
        font-size: 11px;
        padding: 6px 0;
    }

    .calendar-days {
        border: 1px solid #e0e0e0;
    }

    .calendar-day-cell {
        min-height: 36px;
        padding: 4px;
    }

    .day-number {
        font-size: 12px;
    }

    .calendar-legend {
        gap: 10px;
    }

    .legend-item {
        font-size: 11px;
    }

    .legend-box {
        width: 20px;
        height: 20px;
    }

    .footer {
        padding: 40px 0 25px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 30px;
    }
    
    .footer-phone a {
        font-size: 22px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .service-simple-card {
        padding: 25px 15px;
    }

    .service-simple-icon {
        font-size: 45px;
    }

    .service-simple-title {
        font-size: 18px;
    }

    .service-simple-desc {
        font-size: 13px;
    }

    .service-sub-card {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-sub-content {
        align-items: center;
    }

    .service-sub-title {
        font-size: 18px;
    }

    .service-sub-desc {
        font-size: 13px;
    }

    .doctor-image-simple {
        max-width: 200px;
    }

    .doctor-name-simple {
        font-size: 22px;
    }

    .doctor-message-simple {
        font-size: 13px;
    }

    .panel-section-title {
        font-size: 15px;
    }

    .panel-section-text,
    .symptom-check-list li {
        font-size: 13px;
    }

    .cta-button-primary {
        width: 100%;
        padding: 12px 20px;
    }

    .doctor-image {
        max-width: 250px;
    }

    .career-summary li,
    .career-detail li {
        font-size: 13px;
        padding: 6px 0 6px 18px;
    }

    .career-summary li::before,
    .career-detail li::before {
        font-size: 10px;
    }

    .calendar-day-cell {
        min-height: 32px;
    }

    .day-number {
        font-size: 11px;
    }

    .footer-logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .footer-logo-text {
        font-size: 20px;
    }
    
    .footer-phone a {
        font-size: 20px;
    }
    
    .footer-hours-table {
        padding: 18px 22px;
    }

}