/* activity-contents.css — ページ固有スタイルのみ（共通部分は header.css に集約済み） */

main {
    margin-top: 80px;
    width: 100%;
}

.container {
    background-color: transparent;
    padding-left: 13px;
    padding-right: 13px;
    padding-top: 1.8rem;
    max-width: 960px;
    margin: 0 auto;
}

.top-info {
    border-left: 6px solid var(--head-background-color);
    padding-left: 15px;
    margin-bottom: 25px;
}

.top-line {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
}

.headline {
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: bold;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--head-background-color);
    padding-left: 12px;
    line-height: 1.5;
}

.headline-bold {
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Noto Serif JP', serif;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--font-color);
    border-left: 4px solid var(--head-background-color);
    padding-left: 12px;
    line-height: 1.4;
}

hr {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.topic + .topic,
.topic-box + .topic {
    margin-top: 3rem;
}

.topic-box {
    margin-top: 3rem;
}

.topic-img {
    width: 100%;
    margin-bottom: 1rem;
}

/* 普段の活動カード */
.activity-vertical-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.activity-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.activity-card .card-head:first-child {
    border-radius: 8px 8px 0 0;
}

.card-head {
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.blue   { background-color: #a01d43; }
.orange { background-color: #d35400; }
.green  { background-color: #2d5a27; }

.card-body {
    padding: 15px 20px;
}

.card-title-sub {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
    line-height: 1.6;
}

/* 年間予定 */
.term-container {
    margin: 30px auto;
}

.term-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    border-top: 8px solid #ccc;
    transition: transform 0.3s ease;
}

.term-card:hover {
    transform: translateY(-5px);
}

.spring-term    { border-top-color: #ffb7c5; }
.summer-vacation { border-top-color: #4da6ff; }
.autumn-term    { border-top-color: #e67e22; }
.spring-vacation { border-top-color: #95a5a6; }

.summer-vacation,
.spring-vacation {
    background-color: #fffafb;
}

.term-header {
    background-color: var(--head-background-color);
    color: #ffffff;
    padding: 12px 18px;
    font-weight: bold;
    font-size: 1.05rem;
    font-family: 'Noto Serif JP', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.term-header span {
    font-size: 0.7rem;
    font-family: "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.event-list {
    padding: 10px 15px;
}

.event-item {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.event-item span {
    font-weight: bold;
    min-width: 45px;
    font-size: 1.1rem;
}

.spring-term     .event-item span { color: #d16a7d; }
.summer-vacation .event-item span { color: #2d89c9; }
.autumn-term     .event-item span { color: #a3530d; }
.spring-vacation .event-item span { color: #525e5f; }

.event-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--font-color);
    line-height: 1.5;
    flex: 1;
    text-align: left;
}

/* 写真グリッド（3枚均等横並び） */
.topic-img-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.topic-img-container .topic-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.site-footer .headline {
    font-size: 1rem;
    font-weight: bold;
    font-family: inherit;
    letter-spacing: normal;
    color: inherit;
    border-left: none;
    padding-left: 0;
    margin: 0 0 5px 0;
    display: block;
}

/* 年間予定：タブレットで2列 */
@media screen and (min-width: 600px) {
    .term-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
    }

    .event-item span {
        min-width: 35px;
        font-size: 1rem;
    }
}

/* 年間予定：PC（1024px以上）で4列 */
@media screen and (min-width: 1024px) {
    .term-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        max-width: 1200px;
    }
}

/* スマホ：写真を縦積み */
@media (max-width: 600px) {
    .topic-img-container {
        grid-template-columns: 1fr;
    }

    .topic-img-container .topic-img {
        height: 220px;
    }
}
