/* 基本レイアウト */
.title {
    margin: 0 auto 50px;
    padding: 20px;
}

.honbun {
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section {
    margin: 50px 0 40px;
    padding: 20px;
    background-color: #f8f5ee;
    border-radius: 8px;
    overflow: hidden;
}

/* 見出し */
h2 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.8em;
    color: #4c7437;
    margin-bottom: 50px;
}

h4 {
    font-size: 1.4em;
    color: #4c7437;
    margin-bottom: 15px;
}

.topic-section {
    margin: 50px 0 40px;
    padding: 20px;
    background-color: #f8f5ee;
    border-radius: 8px;
    overflow: hidden;
}

.topic-section h4 {
    text-align: center;
    margin-bottom: 1.5em;

    color: #4c7437;  /* キープ協会のグリーン系カラー */
    position: relative;
    padding-bottom: 0.5em;
}

.topic-section h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #4c7437;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 画像関連 */
.f-rightimg {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    max-width: 300px;
}

.f-centerimg {
    display: block;
    margin: 20px;
    max-width: 100%;
}

/* お問い合わせ関連 */
.contact {
    background-color: #4c7437;
    color: white;
    padding: 20px;
    border-radius: 5px;
}

.contact h2 {
    color: white;
    font-size: 30px;
}

.contact-button {
    display: inline-block;
    background-color: white;
    color: #4c7437;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.contact-button:hover {
    opacity: 0.8;
}

/* リンク関連 */
.ranger-links {
    margin-top: 20px;
    display: flex;
    justify-content: start;
    gap: 20px;
}

.ranger-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f5ee;
    color: #4c7437;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ranger-link:hover {
    background-color: #4c7437;
    color: #f8f5ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.meeting-link {
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.meeting-link:hover {
    color: #4c7437;
}

/* カードレイアウト */
.card-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
}

.card-content .text-side {
    flex: 1;
}

.card-content .image-side {
    flex: 1;
    text-align: center;
}

.card-content .image-side img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.card-content.reverse {
    flex-direction: row-reverse;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

/* その他 */
.hilight {
    display: grid;
    place-items: center;
    margin-top: 50px;
    max-width: 650px;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
}

.pagetop_0 {
    text-align: right;
    margin-top: 20px;
}

.pagetop_0 a {
    color: #4c7437;
    text-decoration: none;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .f-rightimg {
        float: none;
        margin-left: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .tit {
        font-size: 2em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    h4 {
        font-size: 1.2em;
    }

    .hilight {
        max-width: 100%;
    }
    
    .card-content,
    .card-content.reverse {
        flex-direction: column;
        gap: 20px;
    }

    .card-content .text-side,
    .card-content .image-side {
        width: 100%;
    }
}