/* TABLE OF CONTENTS:
 *
 * 00 どのサイズでも共通で適用されるスタイル
 *    - ●ブロック名とか用途とか●
 * 01 幅 768 未満
 * 02 幅 480px 以上
 * 03 幅 768px 以上
 * 04 幅 880px 以上
 * 05 幅 1072px 以上
 * 06 幅 1264px 以上
 */

/* --------------------------------------------------------------------------------------------------------
   00
 *
 * どのサイズでも共通で適用されるスタイル
 */
.nodisc {
    list-style: none;
}

/* 目次 */
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;
}

/* STEP */
#content .f1 {
    margin-top: -6em;
    position: relative;
}
.flow-step {
    position: relative;
}

.flow-step h2 {
    display: inline-block;
    background-color: #fff;
    padding-right: 0.5em;
}
.flow-step h2:before {
    content: "";
    position: absolute;
    width: 1em;
    height: 5px;
    background-color: #b4c7e7;
    right: 0;
    width: 100%;
    z-index: -3;
}
.sss {
    color: #fff;
    display: block;
    position: relative;
    width: 5em;
    z-index: 1;
}
.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.8em;
    line-height: 0.2;
    padding-top: 1.2em;
    padding-left: 1.3em;
}
.sss span.snum {
    font-size: 2em;
    text-align: center;
    margin-left: -0.5em;
    margin-top: -0.1em;
}

/* STEPの画像とテキスト */
.r-img {
    position: relative;
}
.r-img p {
}
.r-img p:before {
    content: "";
    position: absolute;
    width: 224px;
    height: 176px;
    top: 0;
    background-repeat: no-repeat;
}
.f1 .r-img p:before {
    background-image: url(../img/contents/flow-step1.jpg);
}
.f2 .r-img p:before {
    background-image: url(../img/contents/flow-step2.jpg);
}
.f3 .r-img p:before {
    background-image: url(../img/contents/flow-step3.jpg);
}
.f4 .r-img p:before {
    background-image: url(../img/contents/flow-step4.jpg);
}
/* 問い合わせボタン */
li.tel-btn, li.mail-btn {
    max-height: 74px;
}
li.mail-btn {
    max-width: 290px;
    background-color: #004d83;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
li.mail-btn a {
    color: #fff;
    position: relative;
    display: block;
    font-family: 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HGP明朝B', serif;
}
li.mail-btn a:before {
    font-family: "Font Awesome 5 free";
    content: "\f138";
    font-weight: 700;
    font-size: 1em;
    position: absolute;
}
li.tel-btn {
    background-color: #ccc;
    max-width: 290px;
    padding: 15px 5px 10px;
}

/* 区切りのローラー */
.flow-step:before,
.flow-step:after {
    position: absolute;
}
.flow-step:before {
    content: "";
    background-color: #f2f2f2;
}


/* --------------------------------------------------------------------------------------------------------
   01
 *
 * 幅 768px 未満
 */
@media (max-width: 767px) {
    #content .outer {
        overflow-x: hidden;
    }
    /* イントロ */
    .flow-all {
        margin-top: -2em;
    }
    .flow-all p.txt-c {
        position: relative;
    }

    /* STEP */

    .flow-step h2 {
        padding-left: 3.5em;
    }
    .flow-step h2:before {
        top: 6em;
    }
    .sss {
        top: 6em;
    }

    /* STEPの画像とテキスト */
    .r-img p {
        padding-top: 190px;
    }
    .r-img p:before {
        right: 0;
        left: 0;
        margin: auto;
    }
    /* 問い合わせボタン */
    .r-img ul.col-1-2 li {
        margin-right: auto;
        margin-left: auto;
    }
    li.mail-btn {
        padding: 0.5em;
        height: 80px;
    }
    li.mail-btn a {
        font-size: 1.5em;
    }
    li.mail-btn a:before {
        right: -1.5em;
    }
    
    /* 区切りのローラー */
    .flow-step:before {
        width: 100vw;
        height: 2em;
        bottom: -4em;
        margin: 0 calc(50% - 50vw);
    }
    .flow-step:nth-of-type(odd):before {
        -webkit-transform: rotate(3deg);
        -ms-transform: rotate(3deg);
        transform: rotate(3deg);
    }
    .flow-step:nth-of-type(even):not(:last-child):before {
        -webkit-transform: rotate(-3deg);
        -ms-transform: rotate(-3deg);
        transform: rotate(-3deg);
    }

}

/* End max 767px */



/* --------------------------------------------------------------------------------------------------------
   02
 *
 * 幅 480px 以上
 */
@media (min-width: 30em) {

    /* ここにスタイル */

}

/* End min 480px */



/* --------------------------------------------------------------------------------------------------------
   03
 *
 * 幅 768px 以上
 */
@media (min-width: 48em) {

    /* 目次 */
    #toc_container p.toc_title + ul.toc_list {
        padding-left: 1em;
    }
    ul.toc_list li {
        vertical-align: top;
    }
    /* STEP */
    .flow-step h2 {
        padding-left: 2.5em;
    }
    .flow-step h2:before {
        top: 5em;
    }
    .sss {
        top: 8em;
    }
    
    .r-img p {
        padding-top: 0;
        min-height: 6em;
    }
    .r-img p:before {
        right: 0;
    }
    .r-img p, .r-img ul.col-1-2 {
        width: 67%;
        padding-left: 5em;
        padding-right: 1em;
    }
    /* 問い合わせボタン */
    li.mail-btn a {
        padding: 1em 1em 1em 0em;
        font-size: 1.1em;
    }
    li.mail-btn a:before {
        right: 0;
        margin-right: -0.1em;
    }
    
    /* 区切りのローラー */
    .flow-step:before {
        width: 2em;
        height: auto;
        top: 10em;
        min-height: 13em;
        left: 1em;
    }
    .flow-step:last-child:after {
        content: "";
        width: 3em;
        height: 11em;
        background-image: url(../img/contents/flow-step-ladder.png);
        background-size: contain;
        top: 192px;
        left: 6px;
    }

    .flow-step:not(.f4) 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: 10.5em;
        left: 1em;
    }
}

/* End min 768px */



/* --------------------------------------------------------------------------------------------------------
   04
 *
 * 幅 880px 以上
 */
@media (min-width: 55em) {

    /* ここにスタイル */
    .r-img p:before {
        right: 2em;
    }
    li.mail-btn a {
        font-size: 1.3em;
    }
    li.mail-btn a:before {
        margin-right: -0.4em;
    }
}

/* End min 880px */



/* --------------------------------------------------------------------------------------------------------
   05
 *
 * 幅 1072px 以上
 */
@media (min-width: 67em) {

    /* ここにスタイル */

}

/* End min 1072px */



/* --------------------------------------------------------------------------------------------------------
   06
 *
 * 幅 1264px 以上
 */
@media (min-width: 79em) {

    /* ここにスタイル */

}

/* End min 1264px */
