@charset "UTF-8";

/* =========================================
   1. 変数定義 (共通)
   ========================================= */
:root {
    --color-main: #4B0082;       /* ロゴ、アクセント色（紫） */
    --color-accent: #667eea;     /* リンク、強調色（青紫） */
    --color-accent-hover: #5a6fd8;
    --color-text: #333333;       /* 基本テキスト */
    --color-bg: #f4f7f9;         /* 背景色を少しグレーに */
    --color-white: #ffffff;
    --header-height: 85px;       /* ヘッダーの高さ目安 */
}

/* =========================================
   2. 基本設定・リセット (共通)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    background-color: var(--color-bg);
    color: var(--color-text);
    padding-top: var(--header-height); 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   3. ヘッダー (共通)
   ========================================= */
.site-header {
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo a {
    color: var(--color-main);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-main { font-size: 30px; font-weight: bold; margin: 2px 0; }
.logo-sub { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.pc-menu-area { display: flex; align-items: center; gap: 20px; flex: 1; margin-left: 40px; }
.header-nav { flex: 1; }
.header-nav ul { display: flex; gap: 25px; justify-content: flex-start; }
.header-nav a { color: var(--color-text); font-size: 15px; font-weight: bold; }
.header-nav a:hover { color: var(--color-main); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.contact-info { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.contact-btn { background-color: var(--color-main); color: var(--color-white); padding: 8px 30px; border-radius: 50px; font-size: 15px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.contact-btn:hover { background-color: #6a0dad; transform: translateY(-2px); }
.tel-number { font-size: 20px; font-weight: bold; color: #000; line-height: 1; }
.tel-label { color: var(--color-main); font-size: 14px; margin-right: 15px; }

/* =========================================
   4. ハンバーガーメニュー (共通)
   ========================================= */
.hamburger-btn { display: none; background: none; border: none; font-size: 24px; color: var(--color-main); cursor: pointer; z-index: 101; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #3448ba; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--color-white); font-size: 40px; cursor: pointer; padding: 10px; }
.mobile-menu-content { width: 100%; max-width: 400px; text-align: center; color: var(--color-white); padding: 20px; }
.mobile-nav-list { margin: 0 0 40px 0; }
.mobile-nav-list li { margin-bottom: 20px; }
.mobile-nav-list a { color: var(--color-white); font-size: 18px; font-weight: bold; display: block; }
.mobile-nav-list a:hover { opacity: 0.7; }
.mobile-contact-area { margin-bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mobile-contact-btn { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; max-width: 300px; padding: 15px; background-color: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50px; color: var(--color-white); font-weight: bold; font-size: 16px; }
.mobile-tel { font-size: 12px; font-weight: normal; opacity: 0.8; margin-top: 10px; }

/* =========================================
   5. メインコンテンツ (スケジュールページ独自)
   ========================================= */
.content-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 1rem;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}
.page-header__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

/* 連絡事項・関係者リンクボックス */
.notice-box, .members-link-box {
    background-color: var(--color-white);
    border-left: 5px solid #007bff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.notice-box h4, .members-link-box p {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--color-text);
    display: flex;
    align-items: center;
}
.notice-box h4 i, .members-link-box p i {
    margin-right: 0.75rem;
    color: #007bff;
}
.notice-box ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.notice-box li {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    padding-left: 1rem;
}
.notice-box a {
    color: var(--color-accent);
    font-weight: 700;
}
.notice-box a:hover {
    text-decoration: underline;
}

/* 団員・関係者向けリンク */
.members-link-box {
    border-left-color: #28a745;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.members-link-box p {
    margin: 0;
}
.members-link-box p i {
    color: #28a745;
}
.members-link-box .button {
    background-color: #28a745;
    color: var(--color-white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    margin-top: 1rem; /* スマホ表示用 */
    width: 100%; /* スマホ表示用 */
    text-align: center; /* スマホ表示用 */
}
.members-link-box .button:hover {
    background-color: #218838;
}

/* =========================================
   6. 週間スケジュール (★新しいカードデザイン)
   ========================================= */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.schedule-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    background-color: #6c757d;
    color: var(--color-white);
}
.card-header.is-saturday { background-color: #007bff; }
.card-header.is-sunday { background-color: #dc3545; }

.card-body {
    padding: 1.5rem;
    flex-grow: 1; /* カードの高さを揃える */
}
.card-body.is-holiday {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc3545;
    min-height: 150px;
}
.card-body.is-holiday i {
    margin-right: 0.5rem;
}

.session {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.session:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.session-title {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    color: #555;
}
.info-list i {
    color: #888;
    margin-right: 0.75rem;
    margin-top: 0.2em;
    width: 20px;
    text-align: center;
}

/* =========================================
   7. JS用カレンダー設定・モーダル (維持)
   ========================================= */
.info {
    padding-top: 10px;
    text-align: center;
    font-size: 18px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 70%;
    margin: 20px auto 10px;
}
.calendar-header h2 { margin: 0; font-weight: normal; }
#prev-month-btn, #next-month-btn { border: none; background: none; font-size: 24px; cursor: pointer; padding: 0 20px; color: var(--color-text); transition: color 0.3s; }
#prev-month-btn:hover, #next-month-btn:hover { color: var(--color-accent); }
.calendar-scroll-container { width: 70%; margin: 0 auto; }
.calendar { table-layout: fixed; width: 100%; border-collapse: collapse; border: 1px solid #ddd; background-color: var(--color-white); }
.calendar th { padding: 0.8em; font-weight: normal; background-color: #f9f9f9; border: 1px solid #ddd; text-align: center; }
.calendar td { height: 80px; padding: 0; border: 1px solid #ddd; vertical-align: top; text-align: center; }
.calendar .sun { color: red; }
.calendar .sat { color: blue; }
.calendar .other-month { color: #aaa; padding: 0.5em; box-sizing: border-box; }
.day-cell { padding: 0.5em; box-sizing: border-box; }
.date-num { font-size: 0.9em; }
.event-title { font-size: 0.8em; margin-top: 5px; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.date-link { display: block; height: 100%; padding: 0.5em; text-decoration: none; color: inherit; box-sizing: border-box; }
.event:hover { background-color: #f0f8ff; cursor: pointer; }
.highlight-orange { color: orange; font-weight: bold; }
.highlight-yellow { background-color: yellow; }
.highlight-green { color: rgb(10, 141, 10); font-weight: bold; }
.highlight-red { color: red; font-weight: bold; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; }
.modal-content { background-color: #fff; padding: 20px 30px; border-radius: 8px; width: 90%; max-width: 450px; position: relative; box-sizing: border-box; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.close-button { position: absolute; top: 10px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; text-decoration: none; cursor: pointer; }
.close-button:hover { color: #333; }
#monthly-notes-container { width: 70%; margin: 20px auto; padding: 15px; border: 1px solid #ddd; background-color: #f9f9f9; border-radius: 8px; }
#monthly-notes-container h3 { margin-top: 0; border-bottom: 2px solid var(--color-accent); padding-bottom: 10px; }
#monthly-notes-content { margin: 0; line-height: 1.6; }

/* =========================================
   8. フッター (共通)
   ========================================= */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-white);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    margin-top: auto;
    flex-shrink: 0;
}
.ssl-seal {
    margin-top: 15px;
}

/* =========================================
   9. メディアクエリ (レスポンシブ)
   ========================================= */
@media screen and (max-width: 900px) {
    .pc-menu-area { display: none; }
    .hamburger-btn { display: block; }
}

@media (min-width: 600px) {
    .members-link-box .button {
        width: auto;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .calendar-header,
    .calendar-scroll-container,
    #monthly-notes-container {
        width: 95%;
    }
    .calendar-scroll-container {
        overflow-x: auto;
    }
    .calendar {
        min-width: 700px;
    }
    .calendar td {
        height: 90px;
    }
    .event-title {
        white-space: normal;
        overflow: visible;
        font-size: 0.85em;
        line-height: 1.2;
    }
}