/** @format */
.box-type--button {
    max-width: 820px;
    width: 100%;
    margin: 60px auto 0 auto;
    padding: 0 20px;
}

.box-type__title--learge {
    color: #ffa700;
    display: block;
    text-align: center;
    position: relative;
    font-family: var(--font-mincho);
    font-weight: normal;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.box-type__title--small {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 10px;
}

.box-type__text {
    font-size: 13px;
}

.box-type__button-area {
    text-align: center;
    margin-top: 16px;
}

.box-type__button-link {
    display: inline-block;
    padding: 15px;
    background-color: #ffa700;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
    padding: 0.6em 3em;
}
.box-type__button-link:hover {
    opacity: 0.8;
    color: #fff;
}

.box-type__entry {
    margin: 0 0 40px 0;
}

.box-type__images {
    margin: 0 0 10px 0;
    width: 100%;
}
.box-type__images figure {
    display: block;
    margin: 0;
    padding: 0;
}
.box-type__images figure img {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.box-type--2row {
    margin-top: 60px;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.box-type--3row {
    margin-top: 60px;
}

.box-type--3row .box-type__content-wrap {
    width: 100%;
}

.box-type--3row .box-type__entry {
    border: 1px #ccc solid;
    padding: 22px 16px;
    margin: 0 0 10px 0;
}
.box-type--3row .box-type__title--small {
    text-align: center;
}

.box-type--3row .box-type__button-area {
    margin: 16px auto 0;
    text-align: center;
}

.box-type--button:last-of-type,
.box-type--2row:last-of-type,
.box-type--3row:last-of-type {
    margin-bottom: 60px;
}

@media (max-width: 769px) {
    .box-type--3row .box-type__content-wrap {
        display: flex;
        gap: 16px;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .box-type--3row .box-type__images {
        flex: 1;
        max-width: calc(100% / 2.8); /* 約35.7% */
        margin: 0;
    }
    .box-type--3row .box-type__text {
        flex: 1.8;
        max-width: calc(100% * 1.8 / 2.8); /* 約64.3% */
        margin: 0;
    }
}

@media screen and (min-width: 768px) {
    .box-type__title--learge {
        font-size: 32px;
    }
    .box-type__text {
        font-size: 16px;
    }
    .box-type--button {
        margin: 130px auto 0;
    }
    .box-type__button-area {
        margin-top: 36px;
        margin-left: auto;
        margin-right: auto;
    }
    .box-type__button-link {
        font-size: 20px;
        padding: 0.6em 3em;
    }
    .box-type__title--small {
        font-size: 24px;
        margin-left: auto;
        margin-right: auto;
    }

    .box-type--2row {
        margin-top: 130px;
    }

    .box-type--2row .box-type__wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 40px; /* 2列間の余白 */
        justify-content: space-between;
    }

    .box-type--2row .box-type__entry {
        width: calc(50% - 20px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 0 40px 0;
    }

    .box-type--3row {
        width: 100%;
        margin: 130px auto 0;
    }

    .box-type--button:last-of-type,
    .box-type--2row:last-of-type,
    .box-type--3row:last-of-type {
        margin-bottom: 130px;
    }

    .box-type--3row .box-type__wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .box-type--3row .box-type__entry {
        flex: 1 1 calc((100% - 80px) / 3); /* ← 計算済み幅 */
        max-width: calc((100% - 80px) / 3);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border: none;
        box-sizing: border-box; /* ← 横幅計算に padding を含めるように */
        overflow: hidden; /* ← はみ出し防止 */
    }
    .box-type--3row .box-type__button-area {
        margin: 36px auto 0;
    }
    .box-type--3row .box-type__title--small {
        font-size: 24px;
    }
}
