/* 統合カレンダー：表示用スタイル（3.1.0 でページ埋め込みからファイルへ） */
    /* マルチカレンダー基本スタイル - 修正版 */
    .multi-calendar-wrapper {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow: hidden;
        position: relative;
        margin: 20px 0;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box;
        clear: both;
    }

    /* 重要: テーマの制約を完全に無効化 */
    .multi-calendar-wrapper,
    .multi-calendar-wrapper *,
    .post-calendar-wrapper,
    .post-calendar-wrapper * {
        box-sizing: border-box !important;
        max-width: none !important;
    }

    /* Cocoon等のテーマ対策 - より強力に */
    .entry-content .multi-calendar-wrapper,
    .article .multi-calendar-wrapper,
    .main .multi-calendar-wrapper,
    .content .multi-calendar-wrapper,
    .post-content .multi-calendar-wrapper,
    body .multi-calendar-wrapper,
    .widget .multi-calendar-wrapper {
        max-width: none !important;
        width: 100% !important;
        overflow: visible !important;
        margin: 20px 0 !important;
        box-sizing: border-box !important;
    }

    .calendar-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-controls, .view-controls {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    .btn {
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        line-height: 1.4;
        white-space: nowrap;
        font-weight: 500;
    }

    .btn-nav {
        background: rgba(255,255,255,0.9);
        color: #495057;
        font-size: 18px;
        font-weight: 700;
        padding: 10px 15px;
        min-width: 45px;
        text-align: center;
        border: 2px solid rgba(255,255,255,0.3);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .btn-nav:hover {
        background: white;
        color: #333;
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        border-color: rgba(255,255,255,0.5);
    }

    .btn-today {
        background: rgba(255,255,255,0.95);
        color: #333;
        font-weight: 600;
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .btn-today:hover {
        background: white;
        color: #495057;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .view-btn {
        background: rgba(255,255,255,0.15);
        color: #2c3e50;
        border: 1px solid rgba(255,255,255,0.3);
        min-width: 50px;
        text-align: center;
        font-weight: 500;
        background-color: rgba(255,255,255,0.9);
    }

    .view-btn.active {
        background: white;
        color: #667eea;
        font-weight: 600;
        border-color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .view-btn:hover {
        background: rgba(255,255,255,0.95);
        color: #495057;
        border-color: rgba(255,255,255,0.5);
    }

    .calendar-title {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
        text-align: center;
        flex: 1;
        min-width: 200px;
    }

    .calendar-content {
        padding: 0;
        background: white;
        width: 100%;
        overflow: hidden;
        max-width: none !important;
    }

    /* 月表示カレンダー専用スタイル - 修正版 */
    .month-calendar-container {
        width: 100%;
        padding: 0;
        margin: 0;
        position: relative;
    }

    /* テーブルラッパーでスクロール対応 */
    .calendar-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        margin: 0;
    }

    .calendar-grid {
        width: 100%;
        min-width: 840px; /* 7列 × 120px = 840px */
        border-collapse: collapse;
        background: white;
        table-layout: fixed;
        margin: 0;
    }

    .calendar-header-day {
        background: #f8f9fa;
        padding: 15px 8px;
        text-align: center;
        font-weight: 600;
        color: #495057;
        border-bottom: 2px solid #e9ecef;
        font-size: 14px;
        width: 14.285714%; /* 100% / 7 */
        min-width: 120px;
    }

    .calendar-week {
        height: 120px;
    }

    .calendar-cell {
        width: 14.285714%;
        min-width: 120px;
        height: 120px;
        vertical-align: top;
        border: 1px solid #e9ecef;
        padding: 0;
        position: relative;
        background: white;
        box-sizing: border-box;
    }

    .day-cell {
        height: 100%;
        padding: 6px;
        cursor: pointer;
        transition: background-color 0.2s ease;
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
    }

    .day-cell:hover {
        background: #f8f9fa;
    }

    .day-cell.current-month {
        background: white;
    }

    .day-cell.other-month {
        background: #f8f9fa;
        color: #adb5bd;
        cursor: default;
    }

    .day-cell.other-month:hover {
        background: #f8f9fa;
    }

    .day-cell.today {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border: 2px solid #2196f3;
    }

    .day-cell.has-events {
        background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    }

    .day-cell.today.has-events {
        background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    }

    .day-number {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        display: block;
        font-size: 14px;
        text-align: left;
        line-height: 1.2;
    }

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

    .day-cell.today .day-number {
        color: #1976d2;
        font-weight: 700;
    }

    .events-container {
        flex: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .event-item {
        background: #007cba;
        color: white;
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.3;
        display: block;
    }

    .event-item:hover {
        transform: scale(1.02);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 10;
        position: relative;
    }

    .event-title {
        display: block;
        font-weight: 500;
    }

    .more-events {
        font-size: 9px;
        color: #666;
        text-align: center;
        margin-top: 1px;
        background: rgba(0,0,0,0.05);
        padding: 1px 2px;
        border-radius: 2px;
        line-height: 1.2;
    }

    /* 投稿カレンダー専用スタイル */
    .post-calendar-wrapper {
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin: 20px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .post-calendar-header {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        padding: 15px 20px;
        border-radius: 8px 8px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .post-calendar-nav {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .post-calendar-title {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        white-space: nowrap;
    }

    .post-count-badge {
        background: rgba(255,255,255,0.2);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
    }

    .post-calendar-content {
        padding: 20px;
        background: white;
        border-radius: 0 0 8px 8px;
    }

    .post-calendar-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-calendar-grid {
        width: 100%;
        min-width: 700px;
        border-collapse: collapse;
        background: white;
        table-layout: fixed;
    }

    .post-calendar-header-day {
        background: #e9ecef;
        padding: 10px 5px;
        text-align: center;
        font-weight: 600;
        color: #495057;
        font-size: 12px;
        border-bottom: 1px solid #dee2e6;
        width: 14.285714%;
        min-width: 100px;
    }

    .post-calendar-cell {
        width: 14.285714%;
        min-width: 100px;
        height: 80px;
        vertical-align: top;
        border: 1px solid #dee2e6;
        padding: 0;
        position: relative;
        background: white;
    }

    .post-day-cell {
        height: 100%;
        padding: 4px;
        position: relative;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .post-day-cell.has-posts {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        cursor: pointer;
    }

    .post-day-cell.has-posts:hover {
        background: linear-gradient(135deg, #c3e6cb 0%, #b8dacc 100%);
        transform: scale(1.02);
        z-index: 5;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .post-day-number {
        font-size: 12px;
        font-weight: 600;
        color: #333;
        margin-bottom: 2px;
        text-align: left;
    }

    .post-day-cell.other-month .post-day-number {
        color: #adb5bd;
    }

    .post-count {
        background: #28a745;
        color: white;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 12px;
        text-align: center;
        margin-top: auto;
        font-weight: 500;
        align-self: center;
        min-width: 20px;
    }

    .post-preview {
        font-size: 8px;
        color: #666;
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
    }

    .post-preview a {
        color: #28a745;
        text-decoration: none;
        font-weight: 500;
    }

    .post-preview a:hover {
        text-decoration: underline;
    }

    /* 投稿一覧モーダル */
    .day-posts-list {
        max-height: 400px;
        overflow-y: auto;
    }

    .day-post-item {
        padding: 15px;
        border-bottom: 1px solid #e9ecef;
        transition: background-color 0.2s ease;
    }

    .day-post-item:last-child {
        border-bottom: none;
    }

    .day-post-item:hover {
        background: #f8f9fa;
    }

    .day-post-item h4 {
        margin: 0 0 8px 0;
        font-size: 16px;
    }

    .day-post-item h4 a {
        color: #333;
        text-decoration: none;
    }

    .day-post-item h4 a:hover {
        color: #28a745;
        text-decoration: underline;
    }

    .post-meta {
        display: flex;
        gap: 15px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .post-meta span {
        font-size: 12px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .post-excerpt {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

    .no-posts {
        text-align: center;
        color: #666;
        font-style: italic;
        padding: 20px;
        margin: 0;
    }

    .add-event-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 50px;
        padding: 15px 25px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        z-index: 1000;
        font-weight: 600;
        font-size: 14px;
    }

    .add-event-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(0,0,0,0.4);
    }

    /* モーダル */
    .modal {
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: white;
        border-radius: 12px;
        width: 90%;
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    }

    .modal-header {
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 12px 12px 0 0;
    }

    .modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    .close {
        font-size: 24px;
        cursor: pointer;
        color: white;
        opacity: 0.8;
    }

    .close:hover {
        opacity: 1;
    }

    .modal-body {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-row {
        display: flex;
        gap: 15px;
    }

    .form-row .form-group {
        flex: 1;
    }

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #333;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        border: 2px solid #e9ecef;
        border-radius: 6px;
        font-size: 14px;
        transition: border-color 0.2s ease;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .modal-footer {
        padding: 20px;
        border-top: 1px solid #e9ecef;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }

    .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: 600;
    }

    .btn-secondary {
        background: #6c757d;
        color: white;
    }

    .btn-danger {
        background: #dc3545;
        color: white;
    }

    /* ミニカレンダー */
    .mini-calendar {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 15px;
        max-width: 300px;
    }

    .mini-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .mini-nav {
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: #667eea;
    }

    .mini-title {
        font-weight: 600;
        color: #333;
    }

    .mini-grid {
        width: 100%;
        border-collapse: collapse;
    }

    .mini-grid th,
    .mini-grid td {
        text-align: center;
        padding: 5px;
        width: 14.28%;
    }

    .mini-grid th {
        font-size: 12px;
        color: #666;
        font-weight: 500;
    }

    .mini-day {
        display: block;
        padding: 8px 4px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.2s ease;
    }

    .mini-day:hover {
        background: #f0f7ff;
    }

    .mini-day.today {
        background: #667eea;
        color: white;
    }

    .mini-day.has-events {
        background: #fff3cd;
        font-weight: 600;
    }

    /* 今後のイベント */
    .upcoming-events {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .upcoming-events h3 {
        margin: 0 0 15px 0;
        color: #333;
        font-size: 18px;
    }

    .events-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .events-list .event-item {
        display: flex;
        align-items: center;
        padding: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 10px;
        background: white;
        transition: all 0.2s ease;
    }

    .events-list .event-item:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transform: translateY(-1px);
    }

    .event-date {
        background: #667eea;
        color: white;
        padding: 10px;
        border-radius: 6px;
        text-align: center;
        font-weight: 600;
        margin-right: 15px;
        min-width: 60px;
    }

    .event-info {
        flex: 1;
    }

    .event-title {
        margin: 0 0 5px 0;
        font-size: 16px;
        color: #333;
    }

    .event-location {
        margin: 0;
        font-size: 14px;
        color: #666;
    }

    .twitter-share {
        display: inline-block;
        margin-top: 8px;
        color: #1da1f2;
        text-decoration: none;
        font-size: 12px;
    }

    .twitter-share:hover {
        text-decoration: underline;
    }

    /* 週表示 */
    .week-view {
        background: white;
        border-radius: 8px;
        overflow: hidden;
    }

    .week-view .calendar-grid {
        width: 100%;
        border-collapse: collapse;
    }

    .week-view .time-slot {
        background: #f8f9fa;
        padding: 10px;
        text-align: center;
        font-size: 12px;
        font-weight: 500;
        width: 80px;
        border-right: 2px solid #e9ecef;
    }

    .week-view .week-cell {
        height: 60px;
        width: 14.28%;
        border: 1px solid #e9ecef;
        vertical-align: top;
        position: relative;
    }

    .time-events {
        height: 100%;
        padding: 2px;
    }

    /* 日表示 */
    .day-view {
        background: white;
        border-radius: 8px;
        padding: 20px;
    }

    .day-view h3 {
        margin: 0 0 20px 0;
        color: #333;
        font-size: 24px;
        text-align: center;
    }

    .no-events {
        text-align: center;
        color: #666;
        font-style: italic;
        padding: 40px;
    }

    .events-timeline {
        position: relative;
    }

    .timeline-event {
        display: flex;
        align-items: flex-start;
        padding: 15px;
        margin-bottom: 15px;
        border-left: 4px solid #667eea;
        background: #f8f9fa;
        border-radius: 0 8px 8px 0;
        transition: all 0.2s ease;
    }

    .timeline-event:hover {
        background: #e9ecef;
        transform: translateX(5px);
    }

    .event-time {
        background: #667eea;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-weight: 600;
        margin-right: 15px;
        min-width: 80px;
        text-align: center;
        font-size: 14px;
    }

    .event-details {
        flex: 1;
    }

    .event-details h4 {
        margin: 0 0 8px 0;
        color: #333;
        font-size: 18px;
    }

    .event-details p {
        margin: 5px 0;
        color: #666;
        line-height: 1.5;
    }

    /* リスト表示 */
    .list-view {
        background: white;
        border-radius: 8px;
        padding: 20px;
    }

    .events-list-container {
        display: grid;
        gap: 15px;
    }

    .list-event-item {
        display: flex;
        align-items: flex-start;
        padding: 20px;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        background: white;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .list-event-item:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        transform: translateY(-2px);
        border-color: #667eea;
    }

    .event-date-badge {
        background: #667eea;
        color: white;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        margin-right: 20px;
        min-width: 80px;
    }

    .event-day {
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
    }

    .event-month {
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
        margin-top: 2px;
    }

    .event-content {
        flex: 1;
    }

    .event-content .event-title {
        margin: 0 0 10px 0;
        color: #333;
        font-size: 20px;
        font-weight: 600;
    }

    .event-meta {
        display: flex;
        gap: 20px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .event-meta span {
        color: #666;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .event-description {
        color: #666;
        line-height: 1.6;
        margin: 0;
    }

    /* テーマ: ダーク */
    .theme-dark {
        background: #2c3e50;
        color: white;
    }

    .theme-dark .calendar-header {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    }

    .theme-dark .calendar-grid {
        background: #34495e;
    }

    .theme-dark .calendar-grid th {
        background: #2c3e50;
        color: #ecf0f1;
        border-color: #34495e;
    }

    .theme-dark .calendar-cell {
        border-color: #34495e;
    }

    .theme-dark .day-cell {
        color: white;
    }

    .theme-dark .day-cell:hover {
        background: #34495e;
    }

    /* レスポンシブ */
    @media (max-width: 768px) {
        .calendar-header {
            flex-direction: column;
            text-align: center;
            padding: 15px;
        }

        .calendar-title {
            font-size: 18px;
            order: -1;
            width: 100%;
            margin-bottom: 10px;
        }

        .header-controls,
        .view-controls {
            width: 100%;
            justify-content: center;
            flex-wrap: wrap;
        }

        .view-controls {
            margin-top: 10px;
        }

        /* カレンダー本体はスクロール対応を維持 */
        .calendar-table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .calendar-grid {
            min-width: 700px; /* モバイルでも最小幅を確保 */
        }

        .calendar-header-day {
            padding: 8px 4px;
            font-size: 12px;
            min-width: 100px; /* モバイル用の最小幅 */
        }

        .calendar-week {
            height: 100px;
        }

        .calendar-cell {
            height: 100px;
            min-width: 100px; /* モバイル用セル幅 */
        }

        .day-cell {
            padding: 4px;
        }

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

        .event-item {
            font-size: 9px;
            padding: 1px 3px;
            margin: 0.5px 0;
        }

        .more-events {
            font-size: 8px;
        }

        .add-event-btn {
            bottom: 20px;
            right: 20px;
            padding: 12px 20px;
            font-size: 12px;
        }

        .modal-content {
            width: 95%;
            margin: 10px;
            max-height: 95vh;
        }

        .form-row {
            flex-direction: column;
            gap: 0;
        }

        .mini-calendar {
            max-width: 100%;
        }

        /* 投稿カレンダーのレスポンシブ */
        .post-calendar-header {
            flex-direction: column;
            text-align: center;
            padding: 10px;
        }

        .post-calendar-nav {
            order: 1;
            width: 100%;
            justify-content: center;
            margin-bottom: 10px;
        }

        .post-calendar-title {
            font-size: 16px;
        }

        .post-calendar-content {
            padding: 10px;
        }

        .post-calendar-table-wrapper {
            overflow-x: auto; /* 投稿カレンダーもスクロール対応 */
        }

        .post-calendar-grid {
            min-width: 600px; /* 投稿カレンダーの最小幅 */
        }

        .post-calendar-cell {
            height: 70px;
            min-width: 85px;
        }

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

        .post-count {
            font-size: 9px;
            padding: 1px 4px;
        }

        .post-preview {
            font-size: 7px;
        }
    }

    @media (max-width: 480px) {
        .multi-calendar-wrapper {
            margin: 10px 0;
            border-radius: 8px;
        }

        .calendar-header {
            padding: 10px;
        }

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

        /* より小さい画面でもカレンダー全体を表示 */
        .calendar-grid {
            min-width: 560px; /* 480px以下でも最小幅を確保 */
        }

        .calendar-header-day {
            padding: 6px 2px;
            font-size: 11px;
            min-width: 80px; /* 小画面用最小幅 */
        }

        .calendar-week {
            height: 80px;
        }

        .calendar-cell {
            height: 80px;
            min-width: 80px; /* 小画面用セル幅 */
        }

        .day-cell {
            padding: 2px;
        }

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

        .events-container {
            gap: 0.5px;
        }

        .event-item {
            font-size: 8px;
            padding: 1px 2px;
            border-radius: 2px;
        }

        .more-events {
            font-size: 7px;
            margin-top: 0.5px;
        }

        .view-controls {
            flex-wrap: wrap;
            gap: 5px;
        }

        .btn {
            padding: 6px 10px;
            font-size: 11px;
        }

        .view-btn {
            min-width: 40px;
        }

        .add-event-btn {
            padding: 10px 15px;
            font-size: 11px;
            border-radius: 25px;
        }

        /* カレンダー全体を小さくする */
        .month-calendar-container {
            font-size: 12px;
        }

        /* 横スクロール対応を強化 */
        .calendar-content {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        /* 投稿カレンダーの小画面対応 */
        .post-calendar-grid {
            min-width: 480px;
        }

        .post-calendar-cell {
            height: 60px;
            min-width: 68px;
        }
    }

    @media (max-width: 360px) {
        /* 最小画面でも全列表示を維持 */
        .calendar-grid {
            min-width: 490px; /* 7列×70px = 490px */
        }

        .calendar-header-day {
            padding: 4px 1px;
            font-size: 10px;
            min-width: 70px;
        }

        .calendar-week {
            height: 70px;
        }

        .calendar-cell {
            height: 70px;
            min-width: 70px;
        }

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

        .event-item {
            font-size: 7px;
            padding: 0.5px 1px;
        }

        .more-events {
            font-size: 6px;
        }

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

        .btn {
            padding: 4px 8px;
            font-size: 10px;
        }

        /* 投稿カレンダーの最小画面対応 */
        .post-calendar-grid {
            min-width: 420px;
        }

        .post-calendar-cell {
            height: 50px;
            min-width: 60px;
        }
    }

    /* アニメーション */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .multi-calendar-wrapper {
        animation: fadeIn 0.5s ease-out;
    }

    .event-item {
        animation: fadeIn 0.3s ease-out;
    }

    /* ローディング */
    .loading {
        text-align: center;
        padding: 50px;
        color: #666;
    }

    .loading::after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
