@charset "UTF-8";

.tkgp-contact-widget,
.tkgp-contact-widget * {
    box-sizing: border-box;
}

.tkgp-contact-tab {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 2147483000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 52px;
    min-height: 148px;
    padding: 16px 11px;
    border: 0;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(180deg, #2475bd, #245f9d);
    color: #fff;
    box-shadow: 0 18px 36px rgba(8, 24, 43, .24);
    cursor: pointer;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .08em;
    text-decoration: none;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
}

.tkgp-contact-tab:hover,
.tkgp-contact-tab:focus {
    color: #fff;
    outline: 0;
    text-decoration: none;
    filter: brightness(1.04);
}

.tkgp-contact-tab:focus-visible,
.tkgp-contact-close:focus-visible,
.tkgp-contact-submit:focus-visible,
.tkgp-contact-secondary:focus-visible,
.tkgp-contact-back:focus-visible {
    outline: 3px solid rgba(37, 111, 255, .32);
    outline-offset: 3px;
}

.tkgp-contact-tab-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    writing-mode: horizontal-tb;
}

.tkgp-contact-widget.has-external-trigger .tkgp-contact-tab {
    display: none;
}

.tkgp-contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: none;
    background: rgba(8, 24, 43, .28);
    opacity: 0;
    transition: opacity .2s ease;
}

.tkgp-contact-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2147483002;
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 32px));
    height: min(78vh, 680px);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(8, 24, 43, .28);
    color: #142033;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
    opacity: 0;
    overflow: hidden;
    transform: translateY(calc(100% + 36px));
    transition: transform .24s ease, opacity .2s ease;
}

.tkgp-contact-widget.is-open .tkgp-contact-overlay {
    display: block;
    opacity: 1;
}

.tkgp-contact-widget.is-open .tkgp-contact-panel {
    opacity: 1;
    transform: translateY(0);
}

.tkgp-contact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(90deg, #2f63f3, #1f76c1);
    color: #fff;
}

.tkgp-contact-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}

.tkgp-contact-title svg {
    flex: 0 0 auto;
}

.tkgp-contact-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

.tkgp-contact-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 22px 26px;
    background: #f5f7fb;
}

.tkgp-contact-lead {
    margin: 0 0 18px;
    color: #526070;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.tkgp-contact-view[hidden] {
    display: none;
}

.tkgp-contact-field {
    margin: 0 0 14px;
}

.tkgp-contact-field label {
    display: block;
    margin: 0 0 7px;
    color: #1f2d3d;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
}

.tkgp-contact-required {
    margin-left: 5px;
    color: #c5534f;
}

.tkgp-contact-field input,
.tkgp-contact-field select,
.tkgp-contact-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    background: #fff;
    color: #142033;
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    padding: 12px 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.tkgp-contact-field textarea {
    min-height: 142px;
    resize: vertical;
}

.tkgp-contact-field input:focus,
.tkgp-contact-field select:focus,
.tkgp-contact-field textarea:focus {
    border-color: #2673d8;
    box-shadow: 0 0 0 4px rgba(38, 115, 216, .13);
    outline: 0;
}

.tkgp-contact-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tkgp-contact-error {
    display: none;
    margin: 0 0 14px;
    padding: 11px 12px;
    border: 1px solid rgba(197, 83, 79, .32);
    border-radius: 10px;
    background: rgba(197, 83, 79, .08);
    color: #9f3632;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.tkgp-contact-error.is-visible {
    display: block;
}

.tkgp-contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.tkgp-contact-submit,
.tkgp-contact-secondary,
.tkgp-contact-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.tkgp-contact-submit {
    flex: 1 1 auto;
    border: 0;
    background: linear-gradient(90deg, #5926a8, #1e73b6);
    color: #fff !important;
}

.tkgp-contact-submit:hover,
.tkgp-contact-submit:focus {
    color: #fff !important;
    text-decoration: none;
}

.tkgp-contact-submit:disabled {
    background: #9ba3b0;
    cursor: wait;
}

.tkgp-contact-secondary,
.tkgp-contact-back {
    border: 1px solid #d8e0ea;
    background: #fff;
    color: #31414e;
}

.tkgp-contact-confirm-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.tkgp-contact-confirm-list div {
    padding: 13px 14px;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    background: #fff;
}

.tkgp-contact-confirm-list dt {
    margin: 0 0 5px;
    color: #647184;
    font-size: 12px;
    font-weight: 900;
}

.tkgp-contact-confirm-list dd {
    margin: 0;
    color: #142033;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tkgp-contact-complete {
    display: grid;
    gap: 14px;
    padding: 26px 18px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.tkgp-contact-complete svg {
    margin: 0 auto;
    color: #2570c9;
}

.tkgp-contact-complete h3 {
    margin: 0;
    color: #142033;
    font-size: 20px;
    font-weight: 900;
}

.tkgp-contact-complete p {
    margin: 0;
    color: #526070;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .tkgp-contact-tab {
        top: auto;
        right: 18px;
        bottom: 96px;
        min-width: 58px;
        min-height: 58px;
        width: 58px;
        height: 58px;
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 14px 32px rgba(8, 24, 43, .24);
        transform: none;
        writing-mode: horizontal-tb;
    }

    .tkgp-contact-tab-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .tkgp-contact-panel {
        top: auto;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: min(88vh, 720px);
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
    }

    .tkgp-contact-widget.is-open .tkgp-contact-panel {
        transform: translateY(0);
    }

    .tkgp-contact-body {
        padding: 18px 18px 22px;
    }

    .tkgp-contact-actions {
        flex-direction: column;
    }
}
