/* --- デザイン変数 --- */
:root {
    --primary-green: #066432;
    --accent-gold: #e7b318;
    --bg-light: #f8faf8;
    --text-main: #2c3e50;
    --text-sub: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --header-height: 80px;
}

/* フォントの読み込み設定 */
 @font-face {
    font-family: 'k-font';
    src: url('fonts/keinan.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* --- リセット & 基本設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-family: 'k-font', sans-serif !important;
    font-weight: 200;
}


body {
    font-family:  sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-light);
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
}

/* --- ヘッダー --- */
.calendar-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: var(--primary-green);
    border-bottom: 2px solid var(--accent-gold);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (min-width: 601px) {
    .calendar-nav-container {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    margin: 0;
    white-space: nowrap;
}

.month-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-month {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    padding: 0 20px;
    min-width: 160px;
    text-align: center;
}

.nav-btn {
    background: var(--white);
    border: none;
    color: var(--primary-green);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) { 
    background: var(--accent-gold);
    color: var(--white);
}

.nav-btn:disabled { 
    opacity: 0.2;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* --- カレンダーリスト --- */
.calendar-section { padding: 40px 0 80px; }
.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

.calendar-list { list-style: none; margin-bottom: 40px; }

.calendar-day {
    background: var(--white);
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 6px solid #e0e0e0;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 日曜・土曜の色 */
.calendar-day.sun { border-left-color: #d9534f; background-color: #fff; }
.calendar-day.sat { border-left-color: #428bca; background-color: #fff; }
.calendar-day.has-event { border-left-color: var(--accent-gold); }

/* 定休日のデザイン（グレーアウト） */
.calendar-day.is-closed { 
    background-color: #f2f2f2; 
    border-left-color: #ccc;
}
.is-closed .date-num, .is-closed .date-week { color: #999; }
.is-closed .event-title { color: #888; }

.day-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
}

.no-click { cursor: default !important; }

.date-box {
    min-width: 55px;
    text-align: center;
    margin-right: 20px;
    border-right: 1px solid #f0f0f0;
    padding-right: 10px;
}

.date-num { font-size: 1.4rem; font-weight: 800; display: block; line-height: 1; color: var(--text-main); }
.date-week { font-size: 0.8rem; font-weight: bold; color: var(--text-sub); }

.event-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- イベントバッジの色 --- */
.event-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--white);
    background-color: #146aba;
    white-space: nowrap;
}

.badge-lecture { background-color: #4a34db; }
.badge-course { background-color: #db343c; }
.badge-fitness { background-color: #066432; }

.event-title { font-weight: 600; font-size: 1rem; color: var(--text-main); }

/* 詳細アコーディオン */
.day-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.day-detail.open {
    max-height: 1200px;
    border-top: 1px solid #f0f0f0;
}

.detail-item {
    padding: 20px 20px 20px 85px;
    border-bottom: 1px solid #eee;
}
.detail-item:last-child { border-bottom: none; }

.detail-row { display: flex; margin-bottom: 8px; align-items: flex-start; }
.detail-label { 
    min-width: 70px; 
    color: var(--primary-green); 
    font-weight: bold; 
    font-size: 0.85rem;
    padding-top: 2px;
}
.detail-content { font-size: 0.95rem; flex: 1; color: var(--text-main); }

.arrow {
    margin-left: 15px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.open-state .arrow { transform: rotate(-135deg); }


/* フッターのスタイル */
.site-footer {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    background-color: #066432;
    border-top: 2px solid #e7b318;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px;
}

.footer-sub-links {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.footer-sub-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    margin: 0 10px;
}

.footer-sub-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-sub-links .separator {
    opacity: 0.4;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 0.03em;
}

@media (max-width: 600px) {
    body { padding-top: 115px; }
    .day-header { padding: 10px 15px; }
    .detail-item { padding: 15px 20px; }
    .date-box { min-width: 45px; margin-right: 12px; }
    .btn-back { width: 100%; }
}