@charset "UTF-8";

/*慰謝料計算ツール*/
.tool {
    position: relative;
    padding: min(8%, 48px) min(8%, 64px) min(5%, 24px);
    border-radius: 10px;
    background: var(--i_sub2_color);
    box-sizing: border-box;
}

.tool dl {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.tool dl dt {
    margin: .5em 0 0;
}

.tool dl dd {
    margin: 0;
}

.tool dl .item-title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
}

.tool dl .item-title>.txt_s {
    display: block;
    font-size: 75%;
}

.tool input {
    display: block;
    margin: 0 auto;
    width: 100%;
    appearance: none;
    background-color: #fff;
    padding: 0.5em 0.75em;
    font-size: 1em;
    line-height: 1.5em;
    border: 1px solid #666;
    border-radius: 6px;
    box-sizing: border-box;
}

.tool .submit,
.tool .submit02 {
    margin: min(5vw, 20px) auto;
    display: block;
    margin-bottom: 1em;
    padding: 1em .5em;
    border: 0;
    border-radius: 50px;
    background-color: #ed726d;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.18);
    font-size: clamp(18px, 4vw, 24px);
    color: #FFF;
    cursor: pointer;
    width: 100%;
    max-width: 500px;
    transition: .4s ease-in-out;
}

.tool .submit:hover,
.tool .submit02:hover {
    opacity: 0.7;
}

.tool .submit {
    background-color: var(--i_main_color);
}

.tool .submit02 {
    background-color: #dc7f56;
}

.jibai_ttl,
.bengo_ttl {
    font-size: clamp(18px, 4.5vw, 28px);
    font-weight: 700;
    text-align: center;
    padding-top: 30px;
    display: inline-block;
    border-bottom: 3px dotted var(--i_txt_color);
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

/*直上げの時は以下のコードを使う*/
.tool #price:not(:empty),
.tool #price02:not(:empty) {
    text-align: center;
    font-size: 5.5rem;
    font-weight: bold;
}

.tool #price:not(:empty) {
    color: var(--i_main_color);
}

.tool #price02:not(:empty) {
    color: #dc7f56;
}

.tool .info {
    margin-top: 1.5em;
}

.tool .info p {
    margin: 0.5em 0;
    font-size: 1em;
}

.box30 {
    margin: 2em 0;
    background: var(--i_bg_color);
    border-radius: 0 0 25px 25px;
    padding-bottom: 20px;
}

.box30 .box-title {
    font-size: 2em;
    background: #a45f67;
    padding: 4px;
    text-align: center;
    color: #FFF;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-top: 60px;
}

.box30 p {
    padding: 15px;
    margin: 0;
}

.under {
    background: linear-gradient(transparent 50%, rgba(255, 126, 145, 0.5) 50%);

}

.bold {
    font-size: clamp(15px, 4.5vw, 28px);
    font-weight: bold;
    text-align: center;
}

.under_double {
    border-bottom: 3px dotted var(--i_txt_color);
    line-height: 1.8;
}

@media screen and (min-width: 782px) {
    .tool dl {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .tool dl dt {
        margin: 0;
        width: calc(50% - 8px);
    }

    .tool dl dd {
        width: calc(50% - 8px);
    }

    .tool dl .inner {
        padding: .3em;
    }

    .tool dl .item-title>.txt_s {
        font-size: 60%;
    }
}