/* 目次 */
.outer.reason-toc-bg {
    background-color: rgba(231, 243, 247, 0.5);
    padding: 3em 1em !important;
}

div#toc_container,
div#toc_container.contracted {
    max-width: 840px;
    width: 100% !important;
    border: 10px solid #b4c7e7;
    background-color: #f3f7ff;
    position: relative;
    z-index: 4;
}

#toc_container p.toc_title + ul.toc_list {
    display: block !important;
}

#main #toc_container .toc_title:before,
#main #toc_container .toc_title:after {
    background: #d6e3f9;
}

.toc_title .toc_toggle {
    display: none;
}


/* 背景 */
.outer.r-bg {
    background-image:
        url("../img/contents/reason-bg1.png"),
        /* 左上画像 */
        url("../img/contents/reason-bg2.png");
    background-repeat: no-repeat,
        /* 左上画像 */
        no-repeat;
    background-position: top 10% left 0.5%,
        /* 左上画像 */
        bottom 5% right 0.5%;
    background-size: auto;
}

/* タイトルのローラー */
#reason h2 {
    position: relative;
}

/* 理由のテキスト */


/* 理由の画像 */
.img-r.cp-img {
    background-color: #fff;
}

.img-r.cp-img img {
    margin-bottom: -1em;
}

/* 流れのスタイルの場合 */

#reason .r1 {
    position: relative;
}

#reason h2.cp-title {
    background-color: #fff;
    padding-right: 0.5em;
}

#reason h2.cp-title:before {
    content: "";
    position: absolute;
    height: 10px;
    background-color: #b4c7e7;
    left: 3em;
    bottom: 0.5em;
    width: 80%;
}

section#r2,
#r3,
#r4,
#r5,
#r6 {
    position: relative;
}

.reason-step:before {
    position: absolute;
    content: "";
    background-color: #f2f2f2;
    width: 2em;
    height: auto;
    top: 8em;
    min-height: 15em;
    left: 2.5em;
    z-index: 1;
}

.sss {
    color: #fff;
    display: block;
    position: relative;
    top: 5.8em;
    left: 1.5em;
    width: 5em;
    z-index: 1;
}

div.sss:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 16px 0 16px;
    border-color: #f2f2f2 transparent transparent transparent;
    margin-top: 12.65em;
    left: 1em;
}

.sss:before {
    content: "";
    position: absolute;
    width: 4em;
    height: 4em;
    background-color: #30327c;
    left: 0;
    z-index: -1;
}

.sss span {
    display: block;
}

.sss span.step {
    font-size: 0.6em;
    line-height: 0.5;
    padding-top: 1.5em;
    padding-left: 1.25em;
}

.sss span.snum {
    font-size: 2em;
    text-align: center;
    margin-left: -0.5em;
    margin-top: -0.1em;
}



/*  幅 768px 以上 ( PCの時だけ適用されるスタイル ) */
@media(min-width: 48em) {

    /* sectionの余白 */
    section#r2,
    #r3,
    #r4,
    #r5,
    #r6 {
        margin-top: 5em;
    }

    /* 理由のタイトル */
    #reason h2.cp-title {
        position: relative;
        background-color: #fff !important;
        padding: 0.8em 3em;
    }

    /* テキスト */
    .cont.cp-txt {
        padding: 0 2em 1.5em 6em;
    }
    #content .cont.cp-txt > p:first-child {
        margin-top: 0;
    }

    /* 理由の画像サイズ */
    .img-r .image,
    .img-l .image {
        width: 45%;
        position: relative;
        top: -0.5em;
        right: 0.5em;
    }

    .sp-on {
        display: none;
    }
}

/* 767px以下の場合（スマホ） */
@media(max-width: 767px) {

    .outer.r-bg {
        background-image: none;
    }

    section#r2,
    #r3,
    #r4,
    #r5,
    #r6 {
        margin-top: 5em;
    }

    /* タイトルの位置 */
    #reason h2.cp-title {
        position: relative;
        padding: 0.8em;
        text-align: center;
        background-color: #fff !important;
    }

    h2#r5-head {
        padding: 0.8em 0 0.8em 2.5em !important;
    }

    /* 理由の画像 */
    .img-r.cp-img img {
        padding-top: 1em;
    }

    /* 理由のテキスト幅 */
    .cont.cp-txt {
        text-align: inherit;
        margin-right: auto;
        margin-left: auto;
        width: 90%;
        padding: 1em 2em;
    }

    .sp-on {
        display: block;
    }

    #reason h2.cp-title:before {
        bottom: 0;
        width: 70%;
    }

    .sss {
        top: 3.5em;
        left: 0.5em;
    }

    .sss span.step {
        font-size: 0.6em;
        line-height: 0.5;
        padding-top: 1.5em;
        padding-left: 1em;
    }

    /* タイトルのローラー */


    .reason-step:before {
        top: 8em;
        left: 1em;
        z-index: 1;
        display: none;
    }

    div.sss:after {
        left: -0.5em;
        display: none;
    }
}