@charset "utf-8";

/* CSS Document */
main {
    padding-bottom: 20vw;
}

#flow {
    padding-top: 5vw;
}

#flow .box {
    background: #f9f2e9;
    border-radius: 2vw;
    padding: 2vw 2vw 4vw;
}
#flow .wrap > div:nth-of-type(n+2):before {
    content: "";
    display: block;
    width: 0;
    border-top: 4vw solid #c2c2b8;
    border-left: 7vw solid transparent;
    border-right: 7vw solid transparent;
    border-bottom: 0;
    margin: 5vw auto;
}
#flow .box .ttl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #fff;
    padding-bottom: 1vw;
    margin-bottom: 3vw;
}
#flow .icon img {
    height: 10vw;
    width: auto;
}
#flow h2 {
    font-size: 4.2vw;
    display: flex;
    align-items: center;
}
#flow h2 span {
    width: 1.3em;
    height: 1.3em;
    line-height: 1.3em;
    text-align: center;
    border-radius: 0.2em;
    margin-right: 0.3em;
    color: #fff;
}
#flow1 h2 span {
    background: #c66;
}

#flow2 h2 span {
    background: #96c;
}

#flow3 h2 span {
    background: #39c;
}

#flow4 h2 span {
    background: #696;
}

#flow5 h2 span {
    background: #c96;
}

#flow1 h2 p {
    color: #c66;
}

#flow2 h2 p {
    color: #96c;
}

#flow3 h2 p {
    color: #39c;
}

#flow4 h2 p {
    color: #696;
}

#flow5 h2 p {
    color: #c96;
}
#flow5 a {
    text-decoration: underline;
    color: #3165ae;
}
#flow .box .txt p {
    font-size: 4vw;
}

#flow1 .green {
    background: #549e75;
    color: #fff;
    font-size: 4.2vw;
    font-weight: bold;
    padding: 0 1.5vw;
}
#flow1 .tel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2vw;
}
#flow1 .tel .arrow {
    border-left: 3vw solid #549e75;
    border-top: 2vw solid transparent;
    border-bottom: 2vw solid transparent;
    margin: 0 2vw;
}
#flow1 .tel h3,
#flow1 .tel h3 a {
    color: #604116;
}
#flow1 .tel h3 {
    font-size: 8vw;
}
#flow1 .tel + p {
    text-align: center;
    padding: 1vw 0 7vw;
}
#flow1 .form-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#flow1 .form-btn .arrow {
    width: 0;
    border-top: 3vw solid #549e75;
    border-left: 2vw solid transparent;
    border-right: 2vw solid transparent;
    margin: 2vw 0;
}
#flow1 .form-btn a {
    background: #3165ae;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 1em;
    padding: 2.5vw 5vw;
    border-radius: 1vw;
}
#flow3 .box .txt p:first-of-type {
    padding-bottom: 2vw;
}
#flow3 .box .txt p:first-of-type span {
    font-size: 6vw;
    color: #604116;
    font-weight: bold;
    text-align: center;
}
#flow3 .box .txt p:last-of-type {
    text-indent: -1em;
    margin-left: 1em;
}

@media screen and (min-width: 768px) {
    main {
        padding-bottom: 120px;
    }
    #flow {
        padding-top: 40px;
    }
    #flow .box {
        background: transparent;
        padding: 0;
    }
    #flow .box .ttl {
        background: #e6e4d5;
        border-bottom: 0;
        margin-bottom: 3px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        padding: 10px 20px;
    }
    #flow h2 {
        font-size: 28px;
    }
    #flow h2 span {
        height: auto;
        width: auto;
        font-size: 20px;
        line-height: 1em;
        padding: 12px 0;
        margin-right: 10px;
    }
    #flow .icon {
        width: 140px;
        text-align: center;
    }
    #flow #flow1 .icon {
        width: 180px;
    }
    #flow .icon img {
        height: 70px;
    }
    #flow .box .txt {
        background: #f9f8f3;
        padding: 30px 35px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    #flow .box .txt p {
        font-size: 18px;
        line-height: 32px;
    }
    #flow .wrap > div:nth-of-type(n+2):before {
        border-top: 24px solid #c2c2b8;
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        margin: 20px auto;
    }
    #flow1 .arrow {
        display: none;
    }
    #flow1 .green {
        font-size: 16px;
        line-height: 32px;
        padding: 0 0.5em;
        margin-right: 20px;
        position: relative;
        font-weight: normal;
    }
    #flow1 .green:after {
        content:"";
        border-left: 8px solid #549e75;
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
        display: block;
        position: absolute;
        left: 100%;
        top: 0;
    }
    #flow1 .tel {
        margin-top: 40px;
    }
    #flow1 .tel + .tel {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    #flow1 .tel h3 {
        font-size: 36px;
    }
    #flow1 .tel + p {
        padding: 0.5em 0 2em;
    }
    #flow1 .form-btn {
        flex-direction: row;
        justify-content: center;
    }
    #flow1 .form-btn .green {
        margin-right: 50px;
    }
    #flow1 .form-btn a {
        font-size: 18px;
        padding: 15px 4em 15px 2em;
        font-weight: normal;
        position: relative;
        border-radius: 5px;
    }
    #flow1 .form-btn a:after {
        font-size: 16px;
        content: "\25b6";
        position: absolute;
        top: 50%;
        right: 1em;
        transform: translateY(-50%);
    }
    #flow3 .box .txt p:first-of-type span {
        font-size: 32px;
    }
}

@media screen and (min-width: 1024px) {
    #flow1 .green {
        font-size: 18px;
    }
    #flow1 .form-btn a {
        font-size: 20px;
    }
}