/* 共通
------------------------------------------*/
section {
    width: var(--main-width);
    max-width: var(--main-max-width);
    margin: 0 auto;
}

h3 {
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
}

h3::before {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(-100vw - 12px);
    width: 100vw;
    height: 2px;
    background-color: var(--main-black);
}

/* メッセージ
------------------------------------------*/
#message {
    margin-bottom: 12rem;
    width: 94%;
}

#message h2 {
    font-size: 4rem;
    font-weight: bold;
    width: fit-content;
    margin: 0 auto 6rem;
    word-break: keep-all;
}

#message h2 .border {
    display: inline-block;
    border: 4px solid var(--main-black);
    padding: 0 .5rem;
}

#message .image_container {
    width: 900px;
    height: 700px;
    margin: 0 auto;
    position: relative;
    max-width: 100%;
}

#message .image_container .text {
    text-align: center;
    font-weight: bold;
    position: absolute;
    font-size: 1.25rem;
}

#message .image_container .img {
    position: absolute;
}

/* 人 */
#message .image_container .img.human {
    width: 250px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* 右上 */
#message .image_container .text.top_right {
    top: 46px;
    right: 96px;
}

#message .image_container .img.top_right {
    top: 0;
    right: 60px;
    width: 220px;
}

/* 右下 */
#message .image_container .text.bottom_right {
    bottom: 251px;
    right: 15px;
}

#message .image_container .img.bottom_right {
    bottom: 124px;
    right: 0;
    width: 241px;
}

/* 真ん中 */
#message .image_container .text.center {
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 337px;
}

#message .image_container .img.center {
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 238px;
    width: 283px;
}

/* 左上 */
#message .image_container .text.top_left {
    top: 82px;
    left: 110px;
}

#message .image_container .img.top_left {
    top: 32px;
    left: 88px;
    width: 264px;
}

/* 左下 */
#message .image_container .text.bottom_left {
    bottom: 277px;
    left: 35px;
}

#message .image_container .img.bottom_left {
    bottom: 165px;
    left: 0px;
    width: 250px;
}

@media only screen and (max-width:1000px) {
    #message h2 {
        font-size: 3rem;
    }

    #message .image_container {
        width: 720px;
    }

    #message .image_container .text.bottom_left {
        bottom: 205px;
    }

    #message .image_container .img.bottom_left {
        bottom: 90px;
    }

    #message .image_container .img.bottom_right {
        bottom: 80px;
    }

    #message .image_container .text.bottom_right {
        bottom: 200px;
    }

    #message .image_container .img.bottom_right {
        right: -25px;
    }

    #message .image_container .text.bottom_right {
        right: -10px;
    }
}

@media only screen and (max-width:768px) {
    #message {
        margin-bottom: 6rem;
    }

    #message h2 {
        font-size: 2.5rem;
    }

    #message .image_container {
        width: 560px;
    }

    #message .image_container .text {
        font-size: 1rem;
    }

    #message .image_container .img.top_right {
        top: 0;
        right: 20px;
        width: 190px;
    }

    #message .image_container .text.top_right {
        top: 45px;
        right: 60px;
    }

    #message .image_container .img.top_left {
        top: 45px;
        left: 0;
        width: 226px;
    }

    #message .image_container .text.top_left {
        top: 88px;
        left: 21px;
    }

    #message .image_container .img.center {
        left: 0;
        right: 0;
        margin: 0 auto;
        bottom: 300px;
        width: 228px;
    }

    #message .image_container .text.center {
        left: 0;
        right: 0;
        margin: 0 auto;
        bottom: 380px;
    }

    #message .image_container .img.bottom_right {
        right: 0;
        bottom: 80px;
        width: 210px;
    }

    #message .image_container .text.bottom_right {
        bottom: 191px;
        right: 16px;
    }

    #message .image_container .img.bottom_left {
        bottom: 122px;
        left: 0px;
        width: 200px;
    }

    #message .image_container .text.bottom_left {
        bottom: 210px;
        left: 24px;
    }

    #message .image_container .img.human {
        width: 200px;
        bottom: 0px;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}

@media only screen and (max-width:600px) {
    #message h2 {
        font-size: 2rem;
    }

    #message .image_container .img.human {
        bottom: -15px;
    }
}

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

    #message .image_container .img.top_right,
    #message .image_container .text.top_right,
    #message .image_container .img.center,
    #message .image_container .text.center {
        display: none;
    }

    #message .image_container .img.top_left {
        top: 0;
        left: auto;
        right: 0px;
        width: 226px;
    }

    #message .image_container .text.top_left {
        top: 42px;
        left: auto;
        right: 49px;
    }

    #message .image_container .img.bottom_right {
        bottom: auto;
        right: auto;
        top: 140px;
        left: 17px;
        width: 187px;
    }

    #message .image_container .text.bottom_right {
        bottom: auto;
        right: 27px;
        top: 402px;
    }

    #message .image_container .img.bottom_left {
        bottom: auto;
        left: auto;
        top: 331px;
        right: 16px;
    }

    #message .image_container .text.bottom_left {
        bottom: auto;
        left: 34px;
        top: 195px;
    }

    #message .image_container {
        height: 700px;
    }
}

/* 帯
------------------------------------------*/
#bar {
    width: 100%;
    max-width: none;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-black);
    color: var(--main-white);
    margin-bottom: 12rem;
}

#bar p {
    color: var(--main-white);
    font-weight: bold;
    font-size: 2rem;
}

#bar .img {
    width: 140px;
    height: 70px;
    border-radius: .5rem;
    background-color: var(--main-white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 .5rem;
}

#bar .img img {
    width: 60%;
}

@media only screen and (max-width:800px) {
    #bar p {
        font-size: 1.75rem;
    }
}

@media only screen and (max-width:768px) {
    #bar {
        margin-bottom: 6rem;
    }

    #bar p {
        font-size: 1.5rem;
    }

    #bar .img {
        width: 130px;
    }
}

@media only screen and (max-width:600px) {
    #bar {
        display: block;
        text-align: center;
        padding: 1rem 0;
        height: auto;
    }

    #bar .img {
        width: 140px;
        margin: 1rem auto;
    }
}

/* サポート
------------------------------------------*/
#support {
    margin-bottom: 12rem;
}

#support .flex_container {
    width: 100%;
    display: flex;
    align-items: start;
    margin-bottom: 10rem;
}

#support .flex_container .img {
    width: calc(50% - 3rem);
    height: 300px;
    margin: 0 2rem 0 1rem;
    background-position: center;
    background-size: cover;
    border-radius: .5rem;
}

#support .flex_container:nth-child(odd) .img {
    margin: 0 1rem 0 2rem;
}

#support .flex_container .img.sp {
    display: none;
}

#support .flex_container .container {
    width: 50%;
}

#support .flex_container .container h5 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 1.5rem;
}

#support .flex_container .container .board {
    margin-top: 1.5rem;
    background-color: var(--main-middlegray);
    padding: 1rem;
    border-radius: .5rem;
    font-weight: bold;
}

@media only screen and (max-width:768px) {
    #support .flex_container {
        display: block;
        width: 600px;
        max-width: 100%;
        margin: 0 auto 6rem;
    }

    #support .flex_container .img,
    #support .flex_container:nth-child(odd) .img {
        width: 100%;
        margin: 0 0 1rem;
    }

    #support .flex_container .img.sp {
        display: block;
    }

    #support .flex_container .img.pc {
        display: none;
    }

    #support .flex_container .container {
        width: 100%;
    }
}

@media only screen and (max-width:425px) {
    #support .flex_container .img {
        height: 200px;
    }
}


/* リバ邸の強み
------------------------------------------*/
#strength {
    margin-bottom: 12rem;
}


#strength .container {
    width: 100%;
    position: relative;
    margin-bottom: 3rem;
    height: fit-content;
}

#strength .container .img {
    position: absolute;
    top: 3rem;
    left: 0;
    width: 360px;
    height: 220px;
    background-size: cover;
    background-position: center;
}

#strength .container .text_container {
    background-color: var(--main-middlegray);
    border-radius: 1rem;
    padding: 3rem 2rem 3rem calc(360px - 1rem);
    margin-left: 4rem;
    width: calc(100% - 4rem);
    min-height: 320px;
}

#strength .container .text_container a {
    text-decoration: underline;
}

#strength .container .text_container h5 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

@media only screen and (max-width:900px) {
    #strength .container .img {
        width: 320px;
        height: 200px;
    }

    #strength .container .text_container {
        padding: 3rem 2rem 3rem calc(320px - 2.5rem);
        margin-bottom: 6rem;
    }
}

@media only screen and (max-width:768px) {
    #strength .container .img {
        top: 0;
        width: 400px;
        height: 260px;
    }

    #strength .container {
        padding-top: 9.5rem;
    }

    #strength .container .text_container {
        padding: 8rem 1.5rem 1rem 1.5rem;
    }

    #strength .container .text_container h5 {
        margin-bottom: 1rem;
    }
}


@media only screen and (max-width:475px) {
    #strength .container {
        padding: 1rem;
        background-color: var(--main-middlegray);
        border-radius: 1rem;
    }

    #strength .container .img {
        width: 100%;
        position: relative;
        border-radius: .25rem;
    }

    #strength .container img.img{
        height: auto;
    }

    #strength .container .text_container {
        width: 100%;
        padding: 0 0 1rem;
        margin: 1rem 0 0;
        min-height: 0;
    }
}

/* 5つのステップ
------------------------------------------*/

#step {
    margin-bottom: 12rem;
    width: 94%;
}

#step h2 {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 6rem;
}

#step h2 .border {
    border: 4px solid var(--main-black);
    padding: 1rem;
}

#step .flow {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6rem 0;
}

#step .flow .icon_container {
    width: 150px;
    text-align: center;
    position: relative;
}

#step .flow .icon_container img {
    margin-bottom: .5rem;
    width: 100%;
}

#step .flow .icon_container p {
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    top: 160px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

#step .flow .next {
    width: 1.25rem;
    height: 2rem;
}

#step .manual {
    width: fit-content;
    max-width: 100%;
    border: 2px solid var(--main-black);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 1.5rem 2.5rem;
    margin: 0 auto 4rem;
}

#step .manual img {
    height: 60px;
    margin-right: 1.5rem;
}

#step .manual div p {
    font-size: .875rem;
}

#step .manual div p.bold {
    font-size: 1.5rem;
    font-weight: bold;
    word-break: keep-all;
}


@media only screen and (max-width:1100px) {
    #step h2 span {
        font-size: 3rem;
    }

    #step .flow .icon_container {
        width: 130px;
    }

    #step .flow .icon_container p {
        top: 140px;
    }
}

@media only screen and (max-width:900px) {
    #step .flow .icon_container {
        width: 105px;
    }

    #step .flow .icon_container p {
        top: 115px;
    }

    #step .flow .icon_container p {
        font-size: 1rem;
    }

    #step h2 {
        margin-bottom: 3rem;
    }
}

@media only screen and (max-width:768px) {
    #step h2 span {
        font-size: 2.5rem;
    }

    #step .flow .icon_container {
        width: 90px;
    }

    #step .flow .icon_container p {
        top: 100px;
    }

    #step .flow .next {
        width: 0.75rem;
        height: 1rem;
    }
}

@media only screen and (max-width:600px) {
    #step h2 span {
        font-size: 2rem;
    }

    #step .flow .icon_container {
        width: 60px;
    }

    #step .flow .icon_container p {
        top: 70px;
        font-size: .75rem;
    }

    #step h2 {
        margin-bottom: 1rem;
    }

    #step .manual {
        padding: 1rem 1.5rem;
    }

    #step .manual img {
        height: 40px;
        margin-right: 1rem;
    }

    #step .manual div p.bold {
        font-size: 1.25rem;
        margin-bottom: .25rem;
    }
}

@media only screen and (max-width:425px) {
    #step .flow .icon_container {
        width: 55px;
    }

    #step .flow .icon_container p {
        top: 65px;
    }

    #step .flow .next {
        display: none;
    }
}


/* 利用者の声
------------------------------------------*/
#voice {
    margin-bottom: 12rem;
}

#voice h3 {
    margin-bottom: 4rem;
}

#voice .row {
    position: relative;
    width: 100%;
    height: 360px;
    margin-bottom: 6rem;
}

#voice .row .img_container {
    position: absolute;
    left: 1rem;
    top: 0;
    width: 220px;
    z-index: 1;
}

#voice .row .img_container .img {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    display: block;
    border-radius: 1rem;
    margin-bottom: .5rem;
}

#voice .row .img_container p {
    padding: 0 1rem;
}

#voice .row .img_container p span {
    font-weight: bold;
    word-break: keep-all;
}

#voice .row .content {
    position: absolute;
    width: calc(100% - 140px);
    padding: 1.5rem 3rem 3rem 140px;
    right: 0;
    top: 3rem;
    background-color: var(--main-middlegray);
    border-radius: 1rem;
    min-height: 300px;
}

#voice .row .content h5 {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 0 1rem;
    word-break: keep-all;
}

#voice .row .content ul {
    padding-left: 1rem;
}

/* 遇数 */
#voice .row:nth-child(odd) .img_container {
    left: auto;
    right: 1rem;
}

#voice .row:nth-child(odd) .content {
    padding: 1.5rem 140px 3rem 3rem;
    right: auto;
    left: 0;
}

@media only screen and (max-width:1000px) {
    #voice .row {
        height: 440px;
    }
}

@media only screen and (max-width:768px) {
    #voice .row .content {
        width: calc(100% - 120px);
    }

    #voice .row {
        height: 500px;
    }

    #voice .row .content {
        padding: 1.5rem 1rem 1rem 120px;
    }

    #voice .row .content h5 {
        font-size: 1.25rem;
    }

    #voice .row .img_container {
        width: 200px;
    }

    #voice .row .img_container p {
        padding: 0 .5rem;
    }

    #voice .row .content {
        top: 2rem;
    }
}


@media only screen and (max-width:600px) {
    #voice .row {
        height: auto;
        padding-top: 0;
        position: relative;
    }

    #voice .row .content {
        position: relative;
        width: 100%;
        padding: 1rem;
        top: auto;
    }

    #voice .row .img_container {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        margin-bottom: 1rem;
    }

    #voice .row:nth-child(odd) .img_container {
        right: auto;
    }

    #voice .row:nth-child(odd) .content {
        padding: 1rem;
    }
}


/* よくある質問
------------------------------------------*/

#question {
    margin-bottom: 12rem;
}

#question .container {
    margin-bottom: 8rem;
}

#question .container .question {
    width: 100%;
    display: flex;
    align-items: center;
    border: 2px solid var(--main-black);
    margin-bottom: 2rem;
}

#question .container .question .q {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--main-white);
    background-color: var(--main-black);
}

#question .container .question .text {
    padding: 0 1rem;
    font-weight: bold;
    font-size: 1.25rem;
}

@media only screen and (max-width:768px) {
    #question .container .question {
        margin-bottom: 1rem;
    }

    #question .container .question .q {
        padding: .75rem 1.5rem;
    }

    #question .container {
        margin-bottom: 4rem;
    }
}

@media only screen and (max-width:600px) {
    #question .container .question .text {
        font-size: 1rem;
    }

    #question .container .question .q {
        padding: 0.75rem 1rem;
    }

    #question .container .question .q {
        font-size: 1.25rem;
    }
}


/* お問合せ
------------------------------------------*/

#contact {
    margin-bottom: 12rem;
}

#contact h4 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 5rem;
}

#contact a {
    margin: 0 auto;
    padding: 1.5rem 3rem;
    background-color: var(--main-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-white);
    border-radius: 3rem;
    width: fit-content;
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
}

#contact a img {
    margin-right: .5rem;
}

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

    #contact a {
        width: 500px;
        max-width: 90vw;
    }
}

@media only screen and (max-width:600px) {
    #contact a {
        padding: 1rem;
    }
}