/* --------------------
 Estimate
-------------------- */
.layout-main {
    margin: 0;
}

.estimate {
    padding: 0 0 120px;
}

.estimate-container {
    margin: 0 auto;
    max-width: 1060px;
    padding: 0 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .estimate-container {
        padding: 0 30px;
    }
}

.estimate__content {
    margin: 0 0 80px;
}

.estimate__content p {
    font-size: var(--fs14);
    font-weight: 500;
    line-height: 1.8;
    margin: 0 0 1.5em;
    text-align: center;
}

@media (min-width: 768px) {
    .estimate__content p {
        font-size: var(--fs16);
    }
}

.estimate__content p:last-child {
    margin-bottom: 0;
}

.estimate form {
    display: block;
    margin: 0;
}

.estimate input[type=text], .estimate input[type=email], .estimate input[type=tel] {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 1px solid #CCCCCC;
    border-radius: 0;
    box-shadow: none;
    font-size: var(--fs16);
    height: 40px;
    padding: 8px 10px;
    width: 100%;
}

.estimate input[type=text]::-webkit-input-placeholder, .estimate input[type=email]::-webkit-input-placeholder, .estimate input[type=tel]::-webkit-input-placeholder {
    color: #CCCCCC;
}

.estimate input[type=text]::placeholder, .estimate input[type=email]::placeholder, .estimate input[type=tel]::placeholder {
    color: #CCCCCC;
}

.estimate input[type=text]::-webkit-input-placeholder, .estimate input[type=email]::-webkit-input-placeholder, .estimate input[type=tel]::-webkit-input-placeholder {
    color: #CCCCCC;
}

.estimate input[type=text]::-moz-placeholder, .estimate input[type=email]::-moz-placeholder, .estimate input[type=tel]::-moz-placeholder {
    color: #CCCCCC;
}

.estimate input[type=text]:-ms-input-placeholder, .estimate input[type=email]:-ms-input-placeholder, .estimate input[type=tel]:-ms-input-placeholder {
    color: #CCCCCC;
}

.estimate input[type=text]:-moz-placeholder, .estimate input[type=email]:-moz-placeholder, .estimate input[type=tel]:-moz-placeholder {
    color: #CCCCCC;
}

.estimate textarea {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 1px solid #CCCCCC;
    border-radius: 0;
    box-shadow: none;
    font-size: var(--fs16);
    height: 160px;
    padding: 8px 10px;
    width: 100%;
}

.estimate textarea::-webkit-input-placeholder {
    color: #CCCCCC;
}

.estimate textarea::placeholder {
    color: #CCCCCC;
}

.estimate textarea::-webkit-input-placeholder {
    color: #CCCCCC;
}

.estimate textarea::-moz-placeholder {
    color: #CCCCCC;
}

.estimate textarea:-ms-input-placeholder {
    color: #CCCCCC;
}

.estimate textarea:-moz-placeholder {
    color: #CCCCCC;
}

.estimate .-required {
    color: #D50000;
}

.estimate__type {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    gap: 20px;
    justify-content: center;
    margin: 0 0 40px;
}

@media (min-width: 768px) {
    .estimate__type {
        gap: 50px;
    }
}

.estimate__type label {
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    display: block;
    font-size: var(--fs16);
    font-weight: 700;
    margin: 0;
    padding: 0;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.estimate__type input {
    cursor: pointer;
    opacity: 0 !important;
    padding: 0;
    position: absolute;
}

.estimate__type label span {
    display: block;
    padding-left: 25px;
    position: relative;
}

@media (min-width: 768px) {
    .estimate__type label span {
        padding-left: 35px;
    }
}

.estimate__type label span:before {
    background-color: #fff;
    border: 1px solid #333333;
    border-radius: 10px;
    bottom: 0;
    content: "";
    height: 20px;
    left: 0;
    margin: auto;
    position: absolute;
    top: 0;
    width: 20px;
}

.estimate__type label span:after {
    background-color: #F58700;
    border: 1px solid #F58700;
    border-radius: 8px;
    bottom: 0;
    content: "";
    display: block;
    height: 14px;
    left: 3px;
    margin: auto;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 14px;
}

.estimate__type label input:checked ~ span:after {
    opacity: 1;
}

.estimate__type label input:disabled ~ span:before {
    background: rgb(235, 235, 228);
}

.estimate__type .ec-errorMessage {
    color: #D50000;
    font-size: var(--fs12);
    font-weight: 400;
    margin: 0 0 0.5em;
}

.estimate__table-wrapper {
    border-bottom: 1px solid #CCCCCC;
    margin: 0 0 80px;
    padding: 0 0 50px;
}

.estimate__table {
    border: none;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    width: 100%;
}

@media (max-width: 767px) {
    .estimate__table {
        display: block;
    }
}

@media (max-width: 767px) {
    .estimate__table > tbody {
        display: block;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .estimate__table > tbody > tr {
        display: block;
        margin: 0 0 50px;
        width: 100%;
    }

    .estimate__table > tbody > tr:last-child {
        margin-bottom: 0;
    }
}

.estimate__table > tbody > tr > th, .estimate__table > tbody > tr > td {
    line-height: 1.4;
    text-align: left;
    vertical-align: center;
    width: auto;
}

@media (max-width: 767px) {
    .estimate__table > tbody > tr > th, .estimate__table > tbody > tr > td {
        display: block;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .estimate__table > tbody > tr > th, .estimate__table > tbody > tr > td {
        border-bottom: 1px solid #CCCCCC;
        font-size: var(--fs16);
    }
}

.estimate__table > tbody > tr > th {
    font-size: var(--fs16);
    font-weight: 500;
}

@media (max-width: 767px) {
    .estimate__table > tbody > tr > th {
        border-bottom: 1px solid #CCCCCC;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
}

@media (min-width: 768px) {
    .estimate__table > tbody > tr > th {
        padding: 25px 0 25px 0;
        width: 200px;
    }
}

@media (min-width: 992px) {
    .estimate__table > tbody > tr > th {
        width: 240px;
    }
}

.estimate__table > tbody > tr > th .-required {
    font-size: var(--fs12);
    margin-left: 0.5em;
}

.estimate__table > tbody > tr > th .ec-required {
    display: none;
}

.estimate__table > tbody > tr > td {
    font-size: var(--fs14);
}

@media (min-width: 768px) {
    .estimate__table > tbody > tr > td {
        font-size: var(--fs16);
        padding: 25px 80px 25px 0;
    }
}

@media (min-width: 768px) {
    .estimate__table > tbody > tr:first-child > th, .estimate__table > tbody > tr:first-child > td {
        border-top: 1px solid #CCCCCC;
    }
}

@media (min-width: 768px) {
    .estimate__table > tbody > tr:last-child > th, .estimate__table > tbody > tr:last-child > td {
        border-bottom: none;
        padding-bottom: 0;
    }
}

.estimate__table > tbody > tr.-top > th, .estimate__table > tbody > tr.-top > td {
    vertical-align: top;
}

.estimate__table .ec-errorMessage {
    color: #D50000;
    font-size: var(--fs12);
    font-weight: 400;
    margin: 0 0 0.5em;
}

@media (min-width: 768px) {
    .estimate__table .ec-errorMessage {
        font-size: var(--fs14);
    }
}

.estimate__table .ec-errorMessage:last-child {
    margin-bottom: 0;
}

.estimate__table__name {
    align-items: flex-start;
    display: flex;
    flex-flow: row nowrap;
    gap: 8px;
}

@media (min-width: 768px) {
    .estimate__table__name {
        gap: 38px;
    }
}

.estimate__table__name__item {
    width: calc(50% - 4px);
}

@media (min-width: 768px) {
    .estimate__table__name__item {
        width: calc(50% - 19px);
    }
}

.estimate__table__name__item.error input {
    background: #FDF1F0;
    border-color: #D50000;
    margin-bottom: 5px;
}

.estimate__table__address .error input, .estimate__table__address .error select {
    background: #FDF1F0;
    border-color: #D50000;
    margin-bottom: 5px;
}

.estimate__table__address__code {
    margin: 0 0 15px;
}

@media (min-width: 768px) {
    .estimate__table__address__code {
        margin: 0 0 20px;
    }
}

.estimate__table__address__code-inner {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    gap: 8px;
}

.estimate__table__address__code-inner span {
    display: block;
}

.estimate__table__address__code-inner input[type=text], .estimate__table__address__code-inner input[type=tel] {
    width: 160px;
}

.estimate__table__address__code a {
    color: #AAAAAA;
    font-size: var(--fs14);
    font-weight: 500;
    margin: 0 0 0 15px;
    text-decoration: underline;
}

.estimate__table__address__code a:focus {
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .estimate__table__address__code a:hover {
        text-decoration: none;
    }
}

.estimate__table__address__code__item {
    width: calc(50% - 19px);
}

.estimate__table__address__pref {
    margin: 0 0 15px;
}

@media (min-width: 768px) {
    .estimate__table__address__pref {
        margin: 0 0 20px;
    }
}

.estimate__table__address__pref__selector {
    display: block;
    position: relative;
    width: 160px;
}

.estimate__table__address__pref__selector:after {
    background-color: #333333;
    bottom: 0;
    content: "";
    display: block;
    height: 14px;
    left: auto;
    margin: auto;
    -webkit-mask-image: url(../images/icons/icon-black-angle-right.svg);
    mask-image: url(../images/icons/icon-black-angle-right.svg);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 7px 14px;
    mask-size: 7px 14px;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 0;
    transform: rotate(90deg);
    width: 7px;
    z-index: 1;
}

.estimate__table__address__pref__selector select {
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff;
    border: 1px solid #CCCCCC;
    border-radius: 0;
    box-shadow: none;
    color: #333333;
    cursor: pointer;
    font-size: var(--fs16);
    font-weight: 500;
    height: 40px;
    line-height: 1.2;
    padding: 8px 15px 8px 10px;
    width: 100%;
}

.estimate__table__address__pref__selector select::-ms-expand {
    display: none;
}

.estimate__table__address__item {
    margin: 0 0 15px;
}

@media (min-width: 768px) {
    .estimate__table__address__item {
        margin: 0 0 20px;
    }
}

.estimate__table__address__item:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .estimate__table__tel input[type=text], .estimate__table__tel input[type=tel] {
        width: 160px;
    }
}

.estimate__table__tel.error input {
    background: #FDF1F0;
    border-color: #D50000;
    margin-bottom: 5px;
}

.estimate__table__email.error input {
    background: #FDF1F0;
    border-color: #D50000;
    margin-bottom: 5px;
}

.estimate__table__message.error textarea {
    background: #FDF1F0;
    border-color: #D50000;
    margin-bottom: 5px;
}

.estimate__action {
    align-items: center;
    display: flex;
    flex-flow: column nowrap;
    gap: 20px;
    justify-content: center;
}

.estimate__action__submit {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    background-color: #F58700;
    border: 2px solid #F58700;
    border-radius: 0;
    color: #ffffff;
    display: block;
    font-size: var(--fs14);
    font-weight: 700;
    height: 60px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 280px;
    padding: 0;
    transition: background-color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s, color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 100%;
}

@media (min-width: 768px) {
    .estimate__action__submit {
        font-size: var(--fs16);
    }
}

.estimate__action__submit:focus {
    background-color: #ffffff;
    color: #F58700;
}

@media (hover: hover) and (pointer: fine) {
    .estimate__action__submit:hover {
        background-color: #ffffff;
        color: #F58700;
    }
}

.estimate__action__back {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    background-color: #333333;
    border: 2px solid #333;
    border-radius: 0;
    color: #ffffff;
    display: block;
    font-size: var(--fs14);
    font-weight: 700;
    height: 60px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 280px;
    padding: 0;
    transition: background-color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s, color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 100%;
}

@media (min-width: 768px) {
    .estimate__action__back {
        font-size: var(--fs16);
    }
}

.estimate__action__back:focus {
    background-color: #ffffff;
    color: #333;
}

@media (hover: hover) and (pointer: fine) {
    .estimate__action__back:hover {
        background-color: #ffffff;
        color: #333;
    }
}

@media (min-width: 768px) {
    .estimate--confirm .estimate__table-wrapper {
        padding-bottom: 25px;
    }
}