#header-text .header-box {
    background-color: var(--whitecolor);
    opacity: 0.85;
    padding: 30px;
    margin: 0 auto 180px;
    display: flex;
    flex-direction: column;
    width: 900px;
    text-align: center;
}

#subheader-text .header-box {
    background-color: var(--whitecolor);
    opacity: 0.85;
    padding: 30px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 900px;
    text-align: center;
}

#header-text mark,
#subheader-text mark {
    color: var(--maincolor);
}

#header-text .boxes255 {
    margin-bottom: 200px;
}

#header-text .simple-button {}

.button-spanish {
    margin: 0 auto;
    width: 50%;
}

.sect1 .box3 {
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.16);
}

.s1b3inner {
    padding: 20px;
}

#top-lp .sect1 h3 {
    color: var(--blackcolor);
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 20px;
}

#top-lp .sect3 h3 {
    color: var(--blackcolor);
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 20px;
}

.number {
    position: absolute;
    top: calc(50% - 35px);
    left: -35px;
    width: 70px;
    height: 70px;
    text-align: center;
    line-height: 68px;
    background: var(--maincolor);
    color: var(--whitecolor);
    font-size: 2em;
}

.s3-mark {
    width: 180px;
    margin: 0 auto;
}

.s3-mark img {
    width: 100%;
}

/*section4*/

.s4-box {
    border: 1px solid var(--blackcolor);
    padding: 50px 50px 50px 100px;
    position: relative;
    background-color: var(--whitecolor);
    margin-left: 50px;
}

.s4-title {
    color: var(--maincolor);
    font-size: 1.5em;
    margin-bottom: 30px
}

.s4-txt {
    font-size: 1em;
    line-height: 1.8;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--whitecolor);
    border: 1px solid var(--lightcolor);
    overflow: hidden;
}

/* Q行 */
.faq-q {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 28px;
    background-color: var(--whitecolor);
    border-bottom: 1px dashed var(--lightcolor);
}

.faq-q .faq-text {
    font-weight: bold;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--blackcolor);
    padding-top: 6px;
}

/* A行 */
.faq-a {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 28px;
    background-color: var(--lightcolor);
}

.faq-a .faq-text {
    font-size: 1em;
    line-height: 1.85;
    color: var(--blackcolor);
    padding-top: 6px;
}

/* アイコン（Q / A バッジ）：.number（流れセクション）と意匠を揃えた円形バッジ */
.faq-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1em;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
}

.faq-icon-q {
    background-color: var(--maincolor);
    color: var(--whitecolor);
}

.faq-icon-a {
    background-color: var(--whitecolor);
    color: var(--maincolor);
    border: 2px solid var(--maincolor);
}

/*横幅1200px以下の表示変更*/
@media screen and (max-width:1200px) {

    #header-text .header-box,#subheader-text .header-box {
        width: 65%;
    }
}

/*横幅768px以下の表示変更（スマホのみ適用はsp-style.php）*/
@media screen and (max-width: 768px) {

    #header-title h1,
    #header-title .hx,
    .header-title h1,
    .header-title .hx {
        font-size: 2.5em;
    }

    .whiteheader #header-title .inner,
    .naviheader #header-title .inner {
        padding: 10px;
    }

    #header-title .subofficename,
    #header-title .subofficename a,
    .header-title .subofficename,
    .header-title .subofficename a {
        font-size: 0.75em;
    }

    #header-text {
        padding: 10px 0;
    }

    #header-text .boxes255 {
        margin-bottom: 0;
    }

    #header-text .header-box {
        background-color: var(--whitecolor);
        opacity: 0.85;
        padding: 30px;
        margin: 50px auto 180px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    #subheader-text .header-box {
        background-color: var(--whitecolor);
        opacity: 0.85;
        padding: 30px;
        margin: 50px auto;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .first-contact .contact-topbox {
        margin-top: 20px;
    }

    .sect1 .box3,
    .sect3 .box3 {
        margin-bottom: 30px;
    }

    .sect1 .box3:last-child,
    .sect3 .box3:last-child {
        margin-bottom: 0;
    }

    #sidebar .sidecontact-box img {
        width: auto;
    }

    .s4-box {
        padding: 100px 50px 50px;
        margin-left: 0;
        margin: 50px 0 100px;
    }

    .number {
        left: calc(50% - 50px);
        top: -50px;
    }

    .faq-q,
    .faq-a {
        padding: 18px 18px;
        gap: 12px;
    }

    .faq-icon {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }

    .faq-q .faq-text,
    .faq-a .faq-text {
        font-size: 0.95em;
        padding-top: 3px;
    }

    .faq-list {
        gap: 14px;
    }

}
