@charset "utf-8";

.cont .container {
    width: 100%;
}

.cont .primary .inner {
    width: 1040px;
    margin: auto;
}

@media only screen and (max-width: 768px) {

    .cont .container {
        width: 100%;
    }

    .cont .primary .inner {
        width: 90.625%;
    }
}

/*============================
worry
============================*/

#worry {
    background: url(../images/bg_penki.png)no-repeat top center;
    background-size: cover;
}

#worry ul li {
    font-weight: 700;
    background: var(--bg05-color);
    width: 420px;
    text-align: center;
    padding: 15px;
    border-radius: 20px;
    position: relative;
}

#worry ul li::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent var(--bg05-color);
    position: absolute;
    top: calc(50% - 9px);
    right: -15px;
}

#worry ul li:nth-child(even) {
    margin-left: 40px;
}

#worry .trouble {
    margin-bottom: 30px;
    position: relative;
}

#worry .trouble img {
    width: 500px;
    position: absolute;
    top: 0;
    right: 0;
}

#worry ul li:not(:last-of-type) {
    margin-bottom: 30px;
}

#worry .comment.flex {
    justify-content: center;
    align-items: center;
    grid-gap: 40px;
}

#worry .comment img {
    width: 220px;
}

#worry .comment p {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
}

#worry .comment p span {
    font-size: 34px;
    color: var(--text03-color);
}

@media only screen and (max-width: 768px) {
    #worry {
        background: url(../images/bg_penki.png)no-repeat top center;
        background-size: cover;
    }

    #worry ul {
        margin-bottom: 30px;
    }

    #worry ul li {
        width: 100%;
    }

    #worry ul li::before {
        content: "";
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 15px 9px 0 9px;
        border-color: var(--bg05-color) transparent transparent transparent;
        position: absolute;
        top: auto;
        left: 0;
        right: 0;
        bottom: -15px;
        margin: auto;
    }

    #worry ul li:nth-child(even) {
        margin-left: 0;
    }

    #worry .trouble {
        margin-bottom: 30px;
        position: relative;
    }

    #worry .trouble h2 {
        line-height: 1.5;
    }

    #worry .trouble img {
        width: 100%;
        position: static;
    }

    #worry ul li:not(:last-of-type) {
        margin-bottom: 30px;
    }

    #worry .comment.flex {
        grid-gap: 20px;
        flex-direction: column-reverse;
    }

    #worry .comment img {
        width: 150px;
    }

    #worry .comment p {
        font-size: 18px;
        text-align: center;
    }

    #worry .comment p span {
        font-size: 24px;
    }
}

/*============================
commitment
============================*/
#commitment {
    padding-top: 0;
    margin-top: -15px;
}

#commitment .inner {
    background: var(--bg03-color);
    border-radius: 30px;
}

#commitment .flex {
    align-items: stretch;
}

#commitment .flex .photo {
    width: 500px;
}

#commitment .flex .photo img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

#commitment .flex .text {
    width: calc(100% - 500px);
    padding: 40px;
}

@media only screen and (max-width: 768px) {
    #commitment {
        padding-top: 0;
        margin-top: -15px;
    }

    #commitment .inner {
        background: var(--bg03-color);
        border-radius: 30px;
    }

    #commitment .flex {
        align-items: stretch;
    }

    #commitment .flex .photo {
        width: 100%;
        height: 0;
        padding-top: 60%;
        position: relative;
    }

    #commitment .flex .photo img {
        width: 100%;
        height: 100%;
        object-position: center;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #commitment .flex .text {
        width: 100%;
        padding: 20px;
    }
}

/*============================
business_detail
============================*/
#business_detail .inner {
    overflow: visible;
}

#business_detail.bg_right {
    margin-top: 0;
}

#business_detail .flex:not(:last-of-type) {
    margin-bottom: 40px;
}

#business_detail .flex .photo {
    width: 440px;
    border-radius: 30px;
    overflow: hidden;
}

#business_detail .flex .photo img {
    width: 100%;
}

#business_detail .flex .text {
    width: 500px;
}

@media only screen and (max-width: 768px) {
    #business_detail .inner {
        overflow: visible;
    }

    #business_detail.bg_right {
        margin-top: 0;
    }

    #business_detail .flex:not(:last-of-type) {
        margin-bottom: 30px;
    }

    #business_detail .flex .photo {
        width: 100%;
        height: 0;
        padding-top: 60%;
        position: relative;
        margin-bottom: 15px;
    }

    #business_detail .flex .photo img {
        width: 100%;
        height: 100%;
        object-position: center;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #business_detail .flex .text {
        width: 100%;
    }
}

/*============================
flow
============================*/

#flow h2 {
    text-align: center;
}

#flow ul {
    counter-reset: flow 0;
    align-items: stretch;
    justify-content: center;
    grid-gap: 40px;
}

#flow ul li {
    width: 80px;
    position: relative;
    background: var(--bg01-color);
    color: var(--text02-color);
    padding: 60px 27px 20px;
    border-radius: 40px;
    writing-mode: vertical-rl;
}

#flow ul li::before {
    counter-increment: flow 1;
    content: counter(flow, decimal-leading-zero);
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    writing-mode: horizontal-tb;
}

#flow ul li:last-of-type {
    padding: 60px 11px 40px;
}

#flow ul li:not(:last-of-type)::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent var(--bg01-color);
    position: absolute;
    top: calc(50% - 14px);
    right: -20px;
}

@media only screen and (max-width: 768px) {
    #flow h2 {
        text-align: center;
    }

    #flow ul {
        counter-reset: flow 0;
        align-items: stretch;
        justify-content: center;
        grid-gap: 30px;
    }

    #flow ul li {
        width: 100%;
        padding: 40px 20px 20px 20px;
        border-radius: 40px;
        writing-mode: horizontal-tb;
        text-align: center;
    }

    #flow ul li::before {
        counter-increment: flow 1;
        content: counter(flow, decimal-leading-zero);
        font-family: "Josefin Sans", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
        font-size: 20px;
        position: absolute;
        top: 15px;
        left: 0;
        right: 0;
        margin: auto;
        text-align: center;
        writing-mode: horizontal-tb;
    }

    #flow ul li:last-of-type {
        padding: 40px 20px 20px 20px;
    }

    #flow ul li:not(:last-of-type)::after {
        content: "";
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 20px 15px 0 15px;
        border-color: var(--bg01-color) transparent transparent transparent;
        position: absolute;
        top: auto;
        right: 0;
        left: 0;
        bottom: -20px;
        margin: auto;
}
