:root {
    --font: #66360c;
    --sub1: #fff5e5;
    --sub2: #f6ad3c;
    --sub3: #aacf52;
}

.inner_box {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.sumaho {
    display: none;
}

.main {
    color: var(--font);
    letter-spacing: 2px;
}

/* ヒーローイメージ */
.main-visual {
    position: relative;
}

.main-visual_image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align:bottom;
}

.main-visual_text {
    position: absolute;
    width: 100%;
    max-width: 500px;
    margin: auto;
    left: 11%; 
    bottom: 43%; 
    font-family: "Zen Maru Gothic", serif;
}

.main-visual_text p {
    font-size: clamp(2.5em, 5vw, 6em);
    font-weight: bold;
    letter-spacing: 0.2rem;
}

/* 背景色 */
.kosodateshien {
    background-color: var(--sub1);
}

/* 子育て支援説明 */
.title_text {
    margin-top: 30px;
}

/* 預かり保育の紹介 */
.content1 {
    margin: 60px auto 50px;
}

/* 親子の会 */
.content2 {
    margin: 40px auto 50px;
}

/* 育児相談 */
.content3 {
    margin: 40px auto 50px;
}

/* 預かり保育 */
.content4 {
    margin: 40px auto 60px;
}

/* 課外教室 */
.content5 {
    margin: 40px auto 120px;
}

.content_flex {
    display: flex;
}

.content_flex div {
    max-width: 40px;
    width: 100%;
    max-height: 40px;
    border-radius: 50%;
    margin-top: 5px;
    margin-right: 15px;
}

.content_title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.circle1 {
    background-color: var(--font);
}

.content_text {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px 30px;
}

/* もっと見る */
.more_button {
    border-bottom: 0.1875em solid hwb(36 20% 11%);
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
    background-color: var(--sub2);
    border-radius: 50px;
    max-width: 280px;
    padding: 20px 40px;
    margin: 30px auto 20px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.more_button:hover {
    background-color: #eca02e;
    border-bottom-color: transparent;
    transform: translateY(0.1875em);
}

.more_button a {
    display: block;
    width: 150px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    margin-left: 28px;
}

.more_button a::after {
    content: "";
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    border-top: 3.5px solid #fff;
    border-right: 3.5px solid #fff;
    position: absolute;
    right: 0px;
    top: 3px;
    bottom: 0px;
    margin: auto;
    margin-left: 20px;
    transform: rotate(45deg);
}

/* 詳しく見るボタン */
.flex_item {
    width: 100%;
    max-width: 350px;
    box-shadow: 1px 3px 0px #cfb7a248;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px 5px;
    margin: 30px auto;
    display: flex;
    align-items: center;
}

.flex_item p{
    font-size: 20px;
    font-weight: bold;
}

.pdf_icon {
    width: 100%;
    max-width: 40px;
    margin-right: 7%;
    margin-left: 10%;
}

/* ヒーローイメージ */
@media screen and (max-width: 767.9px) {
    .main-visual_text {
        max-width: 400px;
        left: 26%; 
        bottom: 44%;
    }

    .main-visual_text p {
        font-size: clamp(2em, 9vw, 9em);
    }
}

@media screen and (max-width: 550px) {
    .main-visual_text {
        max-width: 300px;
        left: 26%; 
        bottom: 44%;
    }
}

@media screen and (max-width: 410px) {
    .main-visual_text {
        max-width: 250px;
        left: 26%; 
        bottom: 44%;
    }
}

@media screen and (max-width: 350px) {
    .main-visual_text {
        max-width: 200px;
        left: 24%; 
        bottom: 44%;
    }
}

/* 詳しく見るボタン */
@media screen and (max-width: 387px) {
    .flex_item {
        width: 100%;
        max-width: 300px;
        background-color: #fff;
        padding: 4% 1%;
        margin-bottom: 80px;
    }

    .flex_item p {
        font-size: 18px;
        font-weight: bold;
        margin-top: 10px;
    }

    .pdf_icon {
        width: 100%;
        max-width: 40px;
        margin-right: 5%;
        margin-left: 10%;
    }
}


@media screen and (max-width: 869px) {
    .small_sumaho1 {
        display: none;
    }
}

@media screen and (max-width: 851px) {
    .small_sumaho2 {
        display: none;
    }
}

@media screen and (max-width: 833px) {
    .small_sumaho3 {
        display: none;
    }
}

@media screen and (max-width: 769px) {
    .small_sumaho4 {
        display: none;
    }
}

@media screen and (max-width: 757px) {
    .small_sumaho5 {
        display: none;
    }
}

@media screen and (max-width: 391px) {
    .small_sumaho6 {
        display: none;
    }
}