﻿.estimate-page {
    --eq-navy: #123d84;
    --eq-deep: #071f42;
    --eq-blue: #2f67c8;
    --eq-light: #f4f7fc;
    --eq-line: #d8e1ef;
    --eq-text: #24364a;
    --eq-muted: #617287;
    --eq-accent: #ffda2a;
    --eq-danger: #e72d0d;
    --eq-shadow: 0 24px 50px rgba(9, 29, 67, 0.08);
    color: var(--eq-text);
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
    padding-bottom: 110px;
}

    .estimate-page *,
    .estimate-page *::before,
    .estimate-page *::after {
        box-sizing: border-box;
    }

.estimate-page__container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.estimate-break-pc {
    display: block;
}

.estimate-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #05152f 0%, #0d4f9e 48%, #4a97ff 100%);
}

    .estimate-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%), radial-gradient(circle at 84% 18%, rgba(74, 151, 255, 0.30) 0%, rgba(255, 255, 255, 0) 24%), radial-gradient(circle at 78% 82%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 22%);
        pointer-events: none;
    }

.estimate-hero__content {
    position: relative;
    z-index: 1;
    padding: 78px 0 68px;
    color: #fff;
}

.estimate-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
}

.estimate-breadcrumb li {
    position: relative;
    padding-right: 14px;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.78);
}

    .estimate-breadcrumb li:not(:last-child)::after {
        content: "/";
        position: absolute;
        right: 0;
        top: 0;
        color: rgba(255, 255, 255, 0.35);
    }

    .estimate-breadcrumb li:last-child {
        padding-right: 0;
    }

.estimate-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

    .estimate-breadcrumb a:hover {
        color: #fff;
    }

.estimate-hero__eyebrow,
.estimate-section-head__eyebrow,
.estimate-panel__eyebrow,
.estimate-summary-card__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.estimate-hero__eyebrow {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.estimate-hero__title {
    margin: 20px 0 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.estimate-hero__lead {
    max-width: 860px;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.92);
}

.estimate-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0;
    margin: 34px 0 0;
    list-style: none;
}

    .estimate-hero__chips li {
        display: inline-flex;
        align-items: center;
        min-height: 46px;
        padding: 0 18px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5;
        backdrop-filter: blur(4px);
    }

.estimate-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.estimate-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

    .estimate-btn:hover {
        transform: translateY(-2px);
    }

.estimate-btn--secondary {
    background: #fff;
    color: var(--eq-navy);
    box-shadow: 0 18px 40px rgba(9, 29, 67, 0.14);
}

.estimate-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}

.estimate-btn--full {
    width: 100%;
}

.estimate-summary {
    padding: 36px 0 28px;
}

.estimate-summary__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.estimate-summary-card {
    padding: 26px 24px 24px;
    border: 1px solid var(--eq-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--eq-shadow);
}

.estimate-summary-card__eyebrow,
.estimate-section-head__eyebrow,
.estimate-panel__eyebrow {
    color: var(--eq-blue);
}

.estimate-summary-card--accent {
    background: linear-gradient(180deg, #f7faff 0%, #eef4fe 100%);
}

.estimate-summary-card h2 {
    margin: 16px 0 0;
    font-size: 22px;
    line-height: 1.55;
    font-weight: 800;
    color: var(--eq-text);
}

.estimate-summary-card p {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--eq-muted);
}

.estimate-tool-section {
    padding: 12px 0 40px;
}

.estimate-section-head {
    text-align: center;
    margin-bottom: 34px;
}

.estimate-section-head__title {
    margin: 16px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.45;
    font-weight: 800;
    color: var(--eq-text);
}

.estimate-section-head__lead {
    max-width: 860px;
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 2;
    color: var(--eq-muted);
}

.estimate-app-shell {
    padding: 20px;
    border-radius: 34px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7fe 100%);
    border: 1px solid rgba(18, 61, 132, 0.10);
    box-shadow: var(--eq-shadow);
}

.estimate-app-shell__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(18, 61, 132, 0.06);
    color: var(--eq-blue);
    font-size: 13px;
    font-weight: 700;
}

.estimate-app-scroll {
    overflow: visible;
    padding-top: 18px;
    padding-bottom: 6px;
}

.estimate-workspace {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(320px, 0.9fr);
    gap: 20px;
    min-width: 1100px;
}

.estimate-main,
.estimate-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.estimate-side {
    position: sticky;
    top: 24px;
    align-self: start;
}

.estimate-panel,
#shapeinput,
#resultStage,
.imageGrid,
.tabs {
    border: 1px solid var(--eq-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--eq-shadow);
    overflow: hidden;
}

.estimate-panel__heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 22px 0;
}

.estimate-panel__heading--compact,
.estimate-panel__heading--result {
    padding-bottom: 12px;
}

.estimate-panel__heading h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
    color: var(--eq-text);
}

.tabs {
    min-height: 388px;
}

    .tabs .tab-header {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        background: linear-gradient(180deg, #f7faff 0%, #eef4fd 100%);
        border-top: 1px solid rgba(18, 61, 132, 0.08);
        border-bottom: 1px solid rgba(18, 61, 132, 0.08);
    }

        .tabs .tab-header > section {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 56px;
            padding: 0 12px;
            text-align: center;
            color: #6c7f96;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.4;
            cursor: pointer;
            transition: color 0.25s ease, background-color 0.25s ease;
        }

            .tabs .tab-header > section:not(:first-of-type) {
                border-left: 1px solid rgba(18, 61, 132, 0.08);
            }

            .tabs .tab-header > section.active {
                color: var(--eq-navy);
                background: rgba(47, 103, 200, 0.04);
            }

span.numberstyle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--eq-danger);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.tabs .tab-indicator {
    position: relative;
    width: calc(100% / 4);
    height: 4px;
    background: linear-gradient(90deg, #1d56b1 0%, #4a97ff 100%);
    left: 0;
    top: 0;
    transition: all 300ms ease-in-out;
}

.tabs .tab-body {
    position: relative;
    width: 100%;
    min-height: 254px;
    padding: 8px 20px 18px;
}

    .tabs .tab-body > section {
        position: absolute;
        inset: 8px 24px auto;
        opacity: 0;
        transition: opacity 180ms ease;
        pointer-events: none;
    }

        .tabs .tab-body > section.active {
            opacity: 1;
            pointer-events: auto;
        }

.shape-detail h4 {
    margin: 8px 0 0;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 800;
    color: var(--eq-text);
    text-align: center;
}

.image-selector {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 16px 0 0;
}

.image-selector--triple {
    gap: 14px;
}

.shape-detail img {
    display: block;
    width: 156px;
    height: 156px;
    padding: 13px;
    border-radius: 16px;
    border: 1px solid var(--eq-line);
    background: linear-gradient(180deg, #fbfdff 0%, #f4f7fc 100%);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .shape-detail img:hover {
        transform: translateY(-2px);
        border-color: rgba(18, 61, 132, 0.24);
    }

.image-selector > img.selected {
    border: 3px solid var(--eq-danger);
    box-shadow: 0 18px 30px rgba(231, 45, 13, 0.14);
}

#shapeinput {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.estimate-form-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    padding: 0 22px 22px;
}

.estimate-form-sidebar {
    padding-right: 22px;
    border-right: 1px solid rgba(18, 61, 132, 0.08);
}

.estimate-form-block + .estimate-form-block {
    margin-top: 14px;
}

#shapeinput label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--eq-text);
}

.warningT {
    display: block;
    min-height: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

    .warningT:empty {
        display: none;
    }

    .warningT:not(:empty) {
        margin: 4px 0 6px;
    }

.exT {
    display: block;
    margin: 0 0 8px 36px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--eq-muted);
    font-weight: 600;
}

#shapeinput .form-control,
#thickList,
.dropdownList nav .drop-btn h5,
.dropdownList2 nav .drop-btn2 h5 {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid rgba(18, 61, 132, 0.14);
    border-radius: 16px;
    background: #fff;
    color: var(--eq-text);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(9, 29, 67, 0.05);
}

#shapeinput input {
    display: inline-block;
    width: 118px;
    margin-right: 10px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
}

.inputShape::placeholder {
    opacity: 0.5;
}

#thickList {
    width: 180px;
    appearance: none;
    cursor: pointer;
}

    #thickList option {
        color: #242526;
        font-weight: 500;
        background: #fff;
    }

.dropdownList.materialBox nav,
.dropdownList2.areaBox nav {
    position: static;
}

#delivery_select_area,
#material_select_area {
    position: relative;
}

.dropdownList nav .drop-btn span,
.dropdownList2 nav .drop-btn2 span {
    margin-left: auto;
    font-size: 22px;
    line-height: 1;
    color: var(--eq-blue);
}

.dropdownList nav .drop-btn h5 {
    width: 230px;
}

.dropdownList2 nav .drop-btn2 h5 {
    width: 200px;
}

.dropdownList nav .wrapper {
    position: absolute;
    top: 60px;
    display: none;
    width: 230px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(18, 61, 132, 0.14);
    box-shadow: 0 24px 40px rgba(9, 29, 67, 0.14);
    z-index: 100;
}

    .dropdownList nav .wrapper.show {
        display: flex;
    }

    .dropdownList nav .wrapper .iron-drop,
    .dropdownList nav .wrapper .stainless-drop,
    .dropdownList nav .wrapper .Alumi-drop,
    .dropdownList nav .wrapper .etc-drop {
        display: none;
    }

    .dropdownList nav .wrapper ul {
        list-style: none;
        width: 230px;
        padding: 10px;
        margin: 0;
        transition: all 0.3s ease;
    }

        .dropdownList nav .wrapper ul li {
            line-height: 1;
        }

            .dropdownList nav .wrapper ul li h5 {
                position: relative;
                display: flex;
                align-items: center;
                min-height: 42px;
                margin: 0;
                padding: 0 12px;
                border-radius: 12px;
                color: var(--eq-text);
                font-size: 14px;
                font-weight: 700;
                line-height: 1.4;
                cursor: pointer;
            }

            .dropdownList .wrapper ul .arrows :hover span,
            .dropdownList .wrapper ul li :hover i,
            .dropdownList nav .wrapper ul li:hover h5 {
                background: var(--eq-deep);
                color: #fff;
            }

.dropdownList .wrapper ul li i {
    position: absolute;
    right: 10px;
    font-size: 18px;
    color: var(--eq-blue);
    pointer-events: none;
}

.dropdownList .wrapper ul .arrows {
    padding-left: 0;
}

    .dropdownList .wrapper ul .arrows span {
        margin-right: 10px;
        color: var(--eq-danger);
    }

.dropdownList2 nav .wrapper2 {
    position: absolute;
    top: 60px;
    display: none;
    width: 200px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(18, 61, 132, 0.14);
    box-shadow: 0 24px 40px rgba(9, 29, 67, 0.14);
    z-index: 110;
}

    .dropdownList2 nav .wrapper2.show {
        display: flex;
    }

    .dropdownList2 nav .wrapper2 .kanto-drop,
    .dropdownList2 nav .wrapper2 .tohoku-drop,
    .dropdownList2 nav .wrapper2 .tubu-drop,
    .dropdownList2 nav .wrapper2 .kinki-drop,
    .dropdownList2 nav .wrapper2 .sikoku-drop,
    .dropdownList2 nav .wrapper2 .tugoku-drop {
        display: none;
    }

    .dropdownList2 nav .wrapper2 ul {
        list-style: none;
        width: 300px;
        padding: 10px;
        margin: 0;
        transition: all 0.3s ease;
    }

        .dropdownList2 nav .wrapper2 ul li {
            line-height: 1;
        }

            .dropdownList2 nav .wrapper2 ul li h5 {
                position: relative;
                display: flex;
                align-items: center;
                min-height: 42px;
                margin: 0;
                padding: 0 12px;
                border-radius: 12px;
                color: var(--eq-text);
                font-size: 14px;
                font-weight: 700;
                line-height: 1.4;
                cursor: pointer;
            }

            .dropdownList2 .wrapper2 ul .arrows:hover span,
            .dropdownList2 .wrapper2 ul li :hover i,
            .dropdownList2 nav .wrapper2 ul li:hover h5 {
                background: var(--eq-deep);
                color: #fff;
            }

.dropdownList2 .wrapper2 ul li i {
    position: absolute;
    right: 10px;
    font-size: 18px;
    color: var(--eq-blue);
    pointer-events: none;
}

.dropdownList2 .wrapper2 ul .arrows {
    padding-left: 0;
}

    .dropdownList2 .wrapper2 ul .arrows span {
        margin-right: 10px;
        color: var(--eq-danger);
    }

.estimate-dynamic-inputs {
    min-height: 272px;
    padding-top: 0;
}

.block_underline {
    margin-top: 0 !important;
    padding: 10px 14px 9px;
    border: 1px solid rgba(18, 61, 132, 0.10);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
}

    .block_underline + .block_underline {
        margin-top: 10px !important;
    }

    .block_underline label {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin-bottom: 1px !important;
    }

p.inputvalid {
    display: inline-block;
    margin: 0 8px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--eq-text);
}

.estimate-submit-row {
    padding: 0 22px 22px;
    margin: 0;
    background: transparent;
}

    .estimate-submit-row .my-3 {
        margin-top: 10px !important;
        margin-bottom: 0 !important;
    }

#shapeSubmitBtn {
    min-width: 240px;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(18, 61, 132, 0.18);
    background: linear-gradient(135deg, #ffda2a 0%, #ffe772 100%);
    color: var(--eq-navy);
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(255, 218, 42, 0.25);
}

    #shapeSubmitBtn:disabled {
        opacity: 0.45;
        box-shadow: none;
        cursor: not-allowed;
    }

#resultStage {
    height: auto;
    border: 1px solid var(--eq-line);
}

    #resultStage .table {
        margin: 0;
    }

    #resultStage td {
        padding: 13px 0;
        color: var(--eq-text);
        text-align: right;
        font-weight: 700;
        font-size: 15px;
        vertical-align: middle;
        border: none;
    }

        #resultStage td:first-child {
            width: 31% !important;
            padding-right: 14px;
            text-align: left;
        }

        #resultStage td.result_text {
            padding-left: 12px;
        }

        #resultStage td:last-child {
            padding-left: 10px;
        }

    #resultStage tr + tr td {
        border-top: 1px solid rgba(18, 61, 132, 0.08);
    }

    #resultStage .table_border td {
        background: rgba(47, 103, 200, 0.06);
    }

    #resultStage .result_text {
        color: var(--eq-danger);
        text-align: right;
        font-weight: 800;
        font-size: 24px;
        letter-spacing: 0.02em;
    }

    #resultStage .table-borderless {
        padding: 0 22px 8px;
        display: block;
    }

.estimate-result__delivery {
    padding: 14px 22px 20px;
    border-top: 1px solid rgba(18, 61, 132, 0.08);
}

    .estimate-result__delivery h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
        text-align: center;
        color: var(--eq-text);
    }

#delivery {
    color: var(--eq-danger);
}

.imageGrid {
    border: 1px solid var(--eq-line);
}

.canvasGrid {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 316px;
    padding: 0 22px 22px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
}

#shape_canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 1199px) {
    .estimate-app-scroll {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .estimate-side {
        position: static;
    }
}


.estimate-notes {
    padding: 0 0 40px;
}

.estimate-note-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: 34px 36px;
    border: 1px solid var(--eq-line);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--eq-shadow);
}

.estimate-note-panel__text h2 {
    margin: 16px 0 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.45;
    font-weight: 800;
    color: var(--eq-text);
}

.estimate-note-list {
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

    .estimate-note-list li {
        position: relative;
        padding-left: 22px;
        font-size: 15px;
        line-height: 2;
        color: var(--eq-muted);
    }

        .estimate-note-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.86em;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--eq-blue);
        }

.estimate-note-panel__links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.customTooltip {
    min-width: 450px !important;
    text-align: center;
}

    .customTooltip * {
        font-size: 16px;
        font-weight: 700;
        color: var(--eq-text);
        background-color: #f4f7fc;
        font-family: "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "Yu Gothic", "Hiragino Kaku Gothic ProN", "メイリオ", "ＭＳ Ｐゴシック", "sans-serif" !important;
    }

    .customTooltip .introjs-tooltip-title {
        color: var(--eq-danger);
    }

@media (max-width: 1080px) {
    .estimate-summary__grid,
    .estimate-note-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .estimate-page {
        padding-bottom: 80px;
    }

    .estimate-page__container {
        width: calc(100% - 24px);
    }

    .estimate-break-pc {
        display: none;
    }

    .estimate-hero__content {
        padding: 94px 0 72px;
    }

    .estimate-hero__lead {
        font-size: 16px;
        line-height: 1.9;
    }

    .estimate-hero__chips {
        gap: 10px;
    }

        .estimate-hero__chips li {
            min-height: 42px;
            padding: 0 14px;
            font-size: 13px;
        }

    .estimate-hero__actions {
        flex-direction: column;
    }

    .estimate-btn {
        width: 100%;
    }

    .estimate-summary {
        padding-top: 24px;
    }

    .estimate-app-shell {
        padding: 14px;
        border-radius: 24px;
    }

    .estimate-app-shell__note {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
        line-height: 1.5;
    }

    .estimate-panel,
    .tabs {
        border-radius: 22px;
    }

    .estimate-note-panel {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .estimate-note-panel__text h2 {
        font-size: 28px;
    }

    .estimate-summary-card {
        border-radius: 22px;
    }
}
