* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: #f7fbf7;
    color: #222;
    line-height: 1.8;
}

.chairman-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 50px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.page-title span {
    width: 8px;
    height: 42px;
    background: #2f8f46;
    border-radius: 10px;
}

.page-title h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
}

.profile-card,
.message-section,
.closing-message {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.profile-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    padding: 34px;
    align-items: center;
    margin-bottom: 18px;
}

.profile-photo img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.association-name {
    color: #087236;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.profile-text h2 {
    font-size: 38px;
    margin: 0 0 18px;
    border-bottom: 2px solid #9bc49b;
    padding-bottom: 14px;
}

.main-message {
    color: #087236;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    line-height: 1.8;
    border-bottom: 2px solid #9bc49b;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.profile-text p {
    font-size: 17px;
}

.message-section {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 24px;
    padding: 28px 34px;
    align-items: start;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #ffffff 0%, #fbfff8 100%);
}

.message-text h3,
.activity-section h3 {
    color: #087236;
    font-size: 26px;
    margin: 0 0 14px;
    position: relative;
    padding-left: 22px;
}

.message-text h3::before,
.activity-section h3::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #9bd29b;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 16px;
}

.message-text p {
    font-size: 17px;
    margin: 0 0 10px;
}

.town-image img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.activity-section {
    margin-bottom: 18px;
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.activity-card {
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    min-height: 190px;
}

.activity-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.activity-card h4 {
    margin: 6px 0 8px;
    font-size: 18px;
}

.activity-card p {
    margin: 0;
    font-size: 14px;
    text-align: left;
}

.green {
    background: #edf8ee;
}

.pink {
    background: #fff0f2;
}

.blue {
    background: #eef8ff;
}

.yellow {
    background: #fff8df;
}

.purple {
    background: #f6f0ff;
}

.closing-message {
    padding: 28px 36px;
    background: linear-gradient(90deg, #fffaf0 0%, #f4ffe9 100%);
    border: 1px solid #edf1d5;
}

.closing-title {
    color: #087236;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
}

.closing-message p {
    font-size: 17px;
    margin-bottom: 8px;
}

/* スマホ対応 */
@media (max-width: 900px) {
    .profile-card,
    .message-section {
        grid-template-columns: 1fr;
    }

    .activity-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-text h2 {
        font-size: 30px;
    }

    .main-message {
        font-size: 21px;
    }
}

@media (max-width: 600px) {
    .chairman-page {
        padding: 20px 12px 36px;
    }

    .page-title h1 {
        font-size: 28px;
    }

    .profile-card,
    .message-section,
    .closing-message {
        padding: 22px 18px;
    }

    .activity-cards {
        grid-template-columns: 1fr;
    }

    .profile-text h2 {
        font-size: 28px;
    }

    .main-message {
        font-size: 19px;
        text-align: left;
    }

    .profile-text p,
    .message-text p,
    .closing-message p {
        font-size: 16px;
    }

    .closing-title {
        font-size: 20px;
    }
}