/* 基本設定 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5em;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #34495e;
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 40px;
    font-size: 1.8em;
}

/* タイムテーブル全体のコンテナ */
#timetable-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* 各タイムテーブルセクションのデザイン */
.timetable-section {
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    box-sizing: border-box;
}

/* 体育館などの個別イベント表示用 */
.timetable-section h3 {
    margin: 0 0 5px 0;
    font-size: 1.5em;
    color: #e74c3c;
}

.timetable-section h4 {
    color: #7f8c8d;
    font-size: 1em;
    margin: 0;
    font-weight: normal;
    text-align: center;
}

.timetable-section p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1.1em;
}

/* イベントが存在しない場合のスタイル */
.no-event {
    font-style: italic;
    color: #95a5a6;
}

/* グループ化されたイベントのコンテナ */
.timetable-grouped {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.grouped-event {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    flex: 1 1 250px;
    max-width: 350px;
    box-sizing: border-box;
    text-align: left;
}

.grouped-event h3 {
    color: #2980b9;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
}

.status-box {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.status-box h5 {
    color: #34495e;
    font-size: 1em;
    margin: 0 0 5px 0;
    text-align: left;
    font-weight: bold;
}

.event-title {
    font-weight: bold;
    color: #555;
    margin: 5px 0;
}

/* 現在開催中のイベントを強調するスタイル */
.current-event-container {
    background-color: #e0f7fa;
    border: 2px solid #00acc1;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #333 !important;
}

.current-event-container h5 {
    color: #00838f;
    font-size: 1.2em;
}

.status-box.current-event-box {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* 場所の表示スタイル */
.location-display {
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    color: #555;
}

.unusual-location {
    color: #ff0000;
    font-weight: bold;
}

/* レスポンシブデザイン */
@media (max-width: 960px) {
    #timetable-container,
    .timetable-grouped {
        flex-direction: column;
        align-items: center;
    }

    .timetable-section,
    .grouped-event {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    .timetable-section {
        padding: 15px;
    }
    .timetable-section h3 {
        font-size: 1.3em;
    }
    .timetable-section p {
        font-size: 1em;
    }
}
/* Googleカレンダーのレスポンシブ対応 */
.googleCalendar {
    text-align: center;
}


.googleCalendar iframe {
    width: 100%;
    max-width: 800px;
    height: 400px;
}


/* パソコン・タブレット用（768px以上） */
@media (min-width: 768px) {
    .googleCalendar iframe {
        height: 600px;
    }
}