@charset "utf-8";

/* =========================================
   契約の流れ
   adviser / 50min / spot 共通
========================================= */

.contract-flow {
    width: 100%;
    padding: 10px 28px 25px;
    box-sizing: border-box;
    color: #000;
    font-size: 16px;
    line-height: 1.7;
}

.contract-flow * {
    box-sizing: border-box;
}

.contract-flow-intro {
    margin: 0 0 20px;
    padding: 0;
    color: #000;
    font-size: 16px !important;
    line-height: 1.7 !important;
}


/* =========================
   各STEP
========================= */

.contract-flow-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 165px;
    padding: 22px 0;
    border-bottom: 2px dotted #b7b7b7;
}

.contract-flow-item.step6 {
    border-bottom: none;
}


/* =========================
   左側
========================= */

.contract-flow-left {
    position: relative;
    flex: 0 0 125px;
    width: 125px;
    align-self: stretch;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contract-flow-icon {
    position: relative;
    width: 110px;
    text-align: center;
}

.contract-flow-icon img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
}


/* STEP間の矢印 */

.contract-flow-item:not(.step6)::after {
    content: "";
    position: absolute;
    left: 62px;

    /* ▼が点線をまたぐ位置 */
    bottom: -9px;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 18px solid #54ad6b;

    z-index: 5;
}

.contract-flow-item.step1::after {
    border-top-color: #b2ca58;
}

.contract-flow-item.step4::after,
.contract-flow-item.step5::after {
    border-top-color: #21a3a1;
}


/* =========================
   右側本文
========================= */

.contract-flow-content {
    flex: 1;
    min-width: 0;
    padding: 0 5px 0 20px;
}


/* STEP */

.contract-flow-step {
    margin: 0 0 6px;
    padding: 0;

    color: #50ad6a;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.step1 .contract-flow-step {
    color: #aabe4d;
}

.step4 .contract-flow-step,
.step5 .contract-flow-step {
    color: #159f9e;
}

.step6 .contract-flow-step {
    color: #469be0;
}


/* =========================
   タイトル
========================= */

.contract-flow-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin: 0 0 7px;
    padding: 0;
}

.contract-flow-title h4 {
    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    background: none !important;

    color: #000 !important;
    font-size: 22px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;

    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
}


/* =========================
   無料
========================= */

.contract-flow-free {
    display: inline-block;

    padding: 4px 13px;

    border-radius: 5px;
    background: #f00000;

    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
}


/* =========================
   本文
========================= */

.contract-flow-content p {
    margin: 0 !important;
    padding: 0 !important;

    color: #000 !important;
    font-size: 16px !important;
    font-weight: normal;
    line-height: 1.5 !important;
}

.contract-flow-content a {
    color: #006633 !important;
    font-size: 16px !important;
    text-decoration: underline;
}

.contract-flow-content a:hover {
    text-decoration: none;
}

.contract-flow-red {
    color: #ea5550 !important;
    font-weight: bold !important;
}

/* STEP6だけ無料バッジと同じ赤 */

.step6 .contract-flow-red {
    color: #f00000 !important;
}


/* =========================
   STEP5 吹き出し
========================= */

.contract-flow-note {
    position: relative;
    flex: 0 0 190px;

    display: flex;
    align-items: center;

    height: 110px;
    margin: 0 0 0 15px;

    /* 女性用スペースを広げる */
    padding: 12px 85px 12px 14px;

    background: #fff;
    border: 2px solid #aaa;
    border-radius: 16px;

    box-sizing: border-box;
}


/* 吹き出しのしっぽ：外側 */
.contract-flow-note::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);

    width: 0;
    height: 0;

    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-right: 16px solid #aaa;
}


/* 吹き出しのしっぽ：内側 */
.contract-flow-note::after {
    content: "";
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);

    width: 0;
    height: 0;

    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 14px solid #fff;
}


/* 吹き出し内の文章 */
.contract-flow-note-text {
    position: relative;
    z-index: 2;

    color: #000;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.35;
    white-space: nowrap;
}


/* 女性イラスト */
.contract-flow-note-woman {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);

    width: 82px;
    height: auto !important;
}


/* STEP5：タイトルと「無料」を1行にする */
.step5 .contract-flow-title {
    flex-wrap: nowrap;
    gap: 10px;
}

.step5 .contract-flow-title h4 {
    white-space: nowrap;
}

.step5 .contract-flow-free {
    flex-shrink: 0;
}

/* =========================================
   スマホ
========================================= */

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

    /* 全体 */
    .contract-flow {
        padding: 10px 12px 20px;
        font-size: 16px;
    }

    .contract-flow-intro {
        margin-bottom: 15px;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }


    /* =========================
       各STEP
    ========================= */

    .contract-flow-item {
        align-items: flex-start;
        min-height: 0;
        padding: 20px 0 25px;
    }


    /* =========================
       左側：アイコン
    ========================= */

    .contract-flow-left {
        flex: 0 0 85px;
        width: 85px;
        min-height: 105px;

        align-self: stretch;
        align-items: flex-start;

        padding-top: 8px;
    }

    .contract-flow-icon {
        width: 75px;
    }

    .contract-flow-icon img {
        width: 75px;
        height: auto !important;
    }


    /* =========================
       ▼
       点線の中央に重ねる
    ========================= */

    .contract-flow-item:not(.step6)::after {
        left: 42px;
        bottom: -7px;

        border-left-width: 11px;
        border-right-width: 11px;
        border-top-width: 14px;
    }


    /* =========================
       右側
    ========================= */

    .contract-flow-content {
        padding-left: 10px;
        padding-right: 0;
    }


    /* STEP1、STEP2... */
    .contract-flow-step {
        font-size: 19px;
    }


    /* =========================
       タイトル
    ========================= */

    .contract-flow-title {
        display: flex;
        align-items: center;
        flex-wrap: wrap;

        column-gap: 8px;
        row-gap: 3px;

        margin-bottom: 7px;
    }

    .contract-flow-title h4 {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }


    /* STEP2はタイトルが長いので少し小さく */
    .step2 .contract-flow-title h4 {
        font-size: 18px !important;
    }


    /* =========================
       無料バッジ
    ========================= */

    .contract-flow-free {
        flex-shrink: 0;

        padding: 3px 8px;

        font-size: 13px;
        line-height: 1.2;
    }


    /* =========================
       本文
    ========================= */

    .contract-flow-content p,
    .contract-flow-content a {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }


    /* =========================
       STEP5
    ========================= */

    /*
       PC版ではタイトルと無料を
       強制的に1行にしているので、
       スマホでもその設定を維持
    */

    .step5 .contract-flow-title {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .step5 .contract-flow-title h4 {
        white-space: nowrap;
    }


    /* STEP5の吹き出しはスマホでは非表示 */
    .contract-flow-note {
        display: none;
    }

}