@charset "UTF-8";

/* 法人お見積りフォーム（リニューアルサイト）
   トンマナ: business #1B529A / CTA #0876BB・#004EA2 / Hiragino / 角丸控えめ
-------------------------------------------------------------------------*/

.biz-estimate {
    padding: 80px 0;
    background: #f5f8ff;
}

.biz-estimate .inner {
    width: 95%;
    max-width: 840px;
    margin: 0 auto;
}

.biz-estimate__header {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    text-align: center;
    justify-items: center;
}

.biz-estimate__header .section-title {
    margin: 0;
}

.biz-estimate__header .section-title h2 {
    margin: 0;
}

.biz-estimate__lead {
    margin: 0;
    max-width: 36em;
    color: #000;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.biz-estimate__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.biz-estimate__trust-item {
    padding: 8px 14px;
    border: 1px solid #1b529a;
    border-radius: 4px;
    background: #fff;
    color: #1b529a;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.biz-form {
    display: grid;
    gap: 28px;
    padding: 40px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(27, 82, 154, 0.08);
    box-sizing: border-box;
}

.biz-form__group {
    display: grid;
    gap: 16px;
}

.biz-form__group + .biz-form__group {
    padding-top: 24px;
    border-top: 1px solid #e5ebf3;
}

.biz-form__group-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: #1b529a;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1.4;
}

.biz-form__group-note {
    color: #7c7c80;
    font-size: 12px;
    font-weight: 300;
}

.biz-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.biz-form__stack {
    display: grid;
    gap: 16px;
}

.biz-form__field {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.biz-form__field--full {
    grid-column: 1 / -1;
}

.biz-form__label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    color: #000;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.biz-form__label--sub {
    font-weight: 300;
}

.biz-form__hint {
    color: #7c7c80;
    font-size: 12px;
    font-weight: 300;
}

.biz-form__req,
.biz-form__opt {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.biz-form__req {
    color: #fff;
    background: #0876bb;
}

.biz-form__opt {
    color: #5a6b7d;
    background: #eef3f8;
}

.biz-form__input,
.biz-form__textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #c6c6c8;
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    background: #fff;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.biz-form__input::placeholder,
.biz-form__textarea::placeholder {
    color: #999;
}

.biz-form__input:focus,
.biz-form__textarea:focus {
    outline: none;
    border-color: #0876bb;
    box-shadow: 0 0 0 3px rgba(8, 118, 187, 0.15);
}

.biz-form__textarea {
    resize: vertical;
    min-height: 88px;
}

.biz-form__choices {
    display: grid;
    gap: 10px;
}

.biz-form__choices--tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.biz-form__choices--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.biz-form__tile {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.biz-form__tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.biz-form__tile span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #c6c6c8;
    border-radius: 4px;
    background: #f8fafc;
    color: #000;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.biz-form__tile:hover span {
    border-color: #0876bb;
    background: #fff;
}

.biz-form__tile input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(8, 118, 187, 0.18);
}

.biz-form__tile input:checked + span {
    border-color: #1b529a;
    background: #eaf1fb;
    color: #1b529a;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px #1b529a;
}

.biz-form__other {
    display: grid;
    gap: 8px;
}

.biz-form__error {
    min-height: 0;
    margin: 0;
    color: #c0392b;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 300;
}

.biz-form__error:empty {
    display: none;
}

.biz-form__status {
    margin: 0;
    padding: 14px 16px;
    border-radius: 4px;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.biz-form__status.is-success {
    color: #1e6b3a;
    background: #e8f6ec;
}

.biz-form__status.is-error {
    color: #a12b22;
    background: #fdecea;
}

.biz-form__footer {
    display: grid;
    gap: 18px;
    padding-top: 8px;
    border-top: 1px solid #e5ebf3;
}

.biz-form__agree {
    justify-items: center;
}

.biz-form__agree-label {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin: 0;
    color: #000;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
}

.biz-form__agree-label input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.biz-form__agree-label label {
    margin: 0;
    font-weight: 300;
    cursor: pointer;
}

.biz-form__privacy-link {
    color: #0876bb;
    font-weight: 600;
    text-decoration: underline;
}

.biz-form__actions {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.biz-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    height: 52px;
    padding: 0 24px;
    border: 1px solid #0876bb;
    border-radius: 4px;
    background: #0876bb;
    color: #fff;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.biz-form__submit svg {
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .biz-form__submit:hover {
        background: #004ea2;
        border-color: #004ea2;
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(8, 118, 187, 0.38);
    }

    .biz-form__submit:hover svg {
        transform: translateX(5px);
    }
}

.biz-form__submit:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(8, 118, 187, 0.22);
    transition-duration: 0.1s;
}

.biz-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.biz-form__submit-note {
    margin: 0;
    color: #7c7c80;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

.biz-estimate__phone {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    justify-items: center;
    text-align: center;
}

.biz-estimate__phone-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 480px;
    min-height: 50px;
    padding: 10px 16px;
    border: 1px solid #004ea2;
    border-radius: 4px;
    background: #fff;
    color: #004ea2;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.biz-estimate__phone-link p {
    margin: 0;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.4;
}

.biz-estimate__phone-link p span {
    font-size: 14px;
    font-weight: 600;
}

@media (hover: hover) {
    .biz-estimate__phone-link:hover {
        background: #eef6fc;
        border-color: #0876bb;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 78, 162, 0.16);
    }
}

.biz-estimate__phone-note {
    margin: 0;
    color: #7c7c80;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 300;
}

@media screen and (max-width: 768px) {
    .biz-estimate {
        padding: 40px 0;
    }

    .biz-estimate .inner {
        width: 90%;
    }

    .biz-estimate__lead {
        font-size: 14px;
        text-align: left;
    }

    .biz-estimate__br {
        display: none;
    }

    .biz-estimate__trust-item {
        font-size: 12px;
        padding: 7px 11px;
    }

    .biz-form {
        padding: 24px 16px;
        gap: 22px;
    }

    .biz-form__group-title {
        font-size: 16px;
    }

    .biz-form__grid {
        grid-template-columns: 1fr;
    }

    .biz-form__choices--tiles,
    .biz-form__choices--compact {
        grid-template-columns: 1fr;
    }

    .biz-form__submit {
        font-size: 14px;
        height: 50px;
        font-weight: 600;
    }
}

/* 法人お問い合わせのやり取り。1通ずつ罫線で区切る */
.biz-mail {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.biz-mail__item {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #d5deea;
    border-left: 4px solid #1b529a;
    border-radius: 4px;
    background: #fff;
}

.biz-mail__item--staff {
    border-left-color: #1b529a;
}

.biz-mail__item--customer {
    border-left-color: #0876bb;
    background: #f7fbff;
}

.biz-mail__meta {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5ebf3;
    color: #1b529a;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.biz-mail__body {
    color: #000;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.biz-mail__files {
    margin: 0;
    padding-left: 1.2em;
}

.biz-mail__form {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #d5deea;
}

.biz-mail__form .biz-form__submit {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .biz-form__submit,
    .biz-form__submit svg,
    .biz-estimate__phone-link {
        transition: none;
    }

    .biz-form__submit:hover,
    .biz-form__submit:active,
    .biz-estimate__phone-link:hover {
        transform: none;
        box-shadow: none;
    }
}
