/* =============================== */
/* 📌 activity.html 専用のスタイル */
/* =============================== */

/* ページタイトル */
.page-title-hero h1 {
    font-size: 2.5em;
    color: var(--main-color);
    text-align: center;
    padding: 20px 0;
}

/* 1. 指導方針グリッド */
.activity-policy {
    max-width: 900px;
}

.policy-grid {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.policy-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.policy-item i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.policy-item h3 {
    font-size: 1.3em;
    color: var(--main-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.policy-item p {
    line-height: 1.6;
    color: #555;
    text-align: left;
}

/* 2. 練習内容と期間のカード */
.container h2{
    margin-bottom: 10px;
}

.training-periods {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.period-card {
    flex: 1;
    background-color: #fff;
    border-left: 5px solid var(--main-color);
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
}

.period-card h4 {
    font-size: 1.4em;
    color: var(--main-color);
    margin-bottom: 15px;
}

.period-card .description {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 20px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 10px;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    font-size: 1em;
    line-height: 2;
    color: #333;
}

.menu-list i {
    color: var(--accent-color);
    margin-right: 8px;
}

.practice-details {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    border: 1px dashed var(--main-color);
    border-radius: 8px;
    background-color: var(--light-gray);
}

.practice-details h3 {
    color: var(--main-color);
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
}

.practice-details p {
    font-size: 1.1em;
    line-height: 1.8;
}

.practice-details i {
    margin-right: 10px;
    color: var(--accent-color);
}

.note-text {
    font-size: 0.9em;
    color: #777;
    margin-top: 15px;
}


/* 3. 年間スケジュールフロー */
.schedule-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    text-align: center;
    flex-wrap: wrap; /* モバイル対応 */
}

.month-card {
    width: 20%; /* 4つ並べるため */
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.month-name {
    display: block;
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.schedule-flow .fa-arrow-right {
    font-size: 1.5em;
    color: var(--main-color);
    margin: 0 10px;
}

.note-text-large {
    text-align: center;
    font-size: 1em;
    margin-top: 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-left: 5px solid var(--accent-color);
}

/* =============================== */
/* 📌 activity.html (年間予定リスト) */
/* =============================== */

.schedule-columns {
    display: flex;
    gap: 40px;
    margin-top: 0;
    flex-wrap: wrap;
}
.schedule-list {
    flex: 1;
    min-width: 300px;
}
.schedule-list h3 {
    font-size: 1.4em;
    color: var(--main-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.schedule-list ul {
    list-style: none;
    padding: 0;
}
.schedule-list li {
    background-color: #fff;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}
.club-event li {
    border-left: 5px solid #a3cc78; /* クラブイベントは少し違う色 */
}

.month-tag {
    font-weight: bold;
    color: #fff;
    background-color: var(--main-color);
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 15px;
    flex-shrink: 0; /* 幅を固定 */
    min-width: 45px;
    text-align: center;
}

/* activity.css に追記 */
/* 共通写真セクションのスタイル (about.cssと同じクラス名を使用) */
.activity-photo-section {
    max-width: 900px; /* 適切な写真の最大幅を設定 */
    margin: 60px auto 40px auto; /* 上下にスペースを確保 */
    text-align: center;
}

.activity-photo-section img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 影をつけて立体感を出す */
}

.activity-photo-section figcaption {
    margin-top: 15px;
    font-size: 1em;
    color: var(--text-color);
    font-weight: 500;
}

/* activity.css に追記 */
/* スケジュールと写真を左右に並べるラッパー */
.schedule-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start; /* 上揃え */
}

/* スケジュールリストが占める領域 */
.schedule-columns {
    flex: 2; /* リスト側を写真より広めに (例: 2/3程度) */
    min-width: 300px;
    margin-top: 0; /* 親要素のラッパーで調整するためリセット */
}

/* 試合写真のスタイル */
.schedule-photo-section {
    flex: 1; /* 写真側が 1/3程度を占める */
    max-width: 400px;
    align-self: center; /* 垂直方向の中央に配置 */
    text-align: center;
}

.schedule-photo-section img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* activity.css の末尾に追記 */
/* =============================== */
/* 📌 写真セクション共通スタイル */
/* =============================== */

/* 練習風景写真のスタイル */
.activity-photo-section {
    max-width: 900px; 
    margin: 60px auto 40px auto; 
    text-align: center;
}

.activity-photo-section img {
    width: 100%;
    height: auto;
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
}

.activity-photo-section figcaption {
    margin-top: 15px;
    font-size: 1em;
    color: var(--text-color);
    font-weight: 500;
}

/* =============================== */
/* 📌 年間予定セクションのレイアウト（リストと写真を左右に配置） */
/* =============================== */
/* スケジュールと写真を左右に並べるラッパー */
.schedule-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start; /* 上揃え */
}

/* スケジュールリストが占める領域 */
.schedule-columns {
    flex: 2; /* リスト側を写真より広めに (例: 2/3程度) */
    min-width: 300px;
    margin-top: 0; 
}

/* 試合写真のスタイル */
.schedule-photo-section {
    flex: 1; /* 写真側が 1/3程度を占める */
    max-width: 500px;
    align-self: center; /* 垂直方向の中央に配置 */
    text-align: center;
}

.schedule-photo-section img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* activity.css の .schedule-columns スタイルを修正 */
.schedule-columns {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.schedule-list {
    /* 2列が横並びになるように幅を調整 */
    flex: 1 1 calc(50% - 20px);
    min-width: 0;
}

/* activity.css の末尾に追記・置換 */
/* =============================== */
/* 📌 年間予定セクションのレイアウト（リストと写真を左右に配置） */
/* =============================== */

/* 1. 写真全体を囲むラッパー（2列分を占めて中央寄せ） */
.schedule-photo-duo {
    /* 親要素の Flexbox の次の行に移動し、全幅を占める */
    flex: 1 1 100%;
    display: flex;
    gap: 20px; /* 写真間の隙間 */
    justify-content: center; /* 写真全体を中央寄せ */
    margin-top: 0; /* リストとの間隔 */
}

/* 2. 個別の写真アイテム（2枚横並び） */
.schedule-photo-item {
    flex: 1 1 48%; /* 2枚でほぼ均等に */
    max-width: 450px; /* 写真1枚の最大幅を制限 */
    text-align: center;
}

.schedule-photo-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.schedule-photo-item figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .policy-grid {
        flex-direction: column;
        gap: 20px;
    }
    .training-periods {
        flex-direction: column;
        gap: 30px;
    }
    .schedule-flow {
        flex-direction: column;
        gap: 15px;
    }
    .schedule-flow .month-card {
        width: 80%;
    }
    .schedule-flow .fa-arrow-right {
        transform: rotate(90deg); /* 矢印を縦向きに */
        margin: 10px 0;
    }
    .schedule-columns {
        flex-direction: column;
        gap: 20px;
    }
    .schedule-list {
        min-width: 100%;
    }
    .schedule-wrapper {
        flex-direction: column; /* 縦に並べる */
    }
    .schedule-photo-section {
        max-width: 100%; /* 幅いっぱいに広げる */
        margin-top: 30px;
    }
    .schedule-wrapper {
        flex-direction: column; /* 縦に並べる */
    }
    .schedule-photo-section {
        max-width: 100%; /* 幅いっぱいに広げる */
        margin-top: 30px;
    }
    .schedule-columns {
        gap: 20px;
    }
    /* リストは縦並びに戻る */
    .schedule-list {
        flex: 1 1 100%;
    }
    /* 写真も縦並びに戻る */
    .schedule-photo-duo {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }
    .schedule-photo-item {
        max-width: 100%;
    }
}