@charset "UTF-8";
/* --- タイトル --- */
.speed_mitsumori_ttl {
    position: relative;
    height: 55px;
    background: var(--color-sub);
    border: 1.5px solid var(--color-sub);
    border-radius: 15px 15px 0 0;
    box-sizing: border-box;
    overflow: visible;
}
.speed_mitsumori_ttl img {
    width: 200px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- メインコンテンツ --- */
.prices-field {
    padding: 15px 15px 25px;
    background: var(--bg-card);
    border-radius: 0 0 15px 15px;
    box-sizing: border-box;
}

/* --- 各入力行 (サイズ、種類など) --- */
.prices-formField {
    margin-bottom: 10px;
}
.prices-formField .prices-formField-label {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
}

/* --- セレクトボックスの共通装飾 --- */
/* --- TomSelect 全体 --- */
.ts-control {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

/* 入力欄にフォーカスが当たった時 */
.ts-wrapper.focus .ts-control {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}

/* --- ドロップダウンリストの外枠 --- */
.ts-dropdown {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    z-index: 1000;
}

/* --- 各選択肢（オプション） --- */
.ts-dropdown .option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

/* ホバーした時（選択中） */
.ts-dropdown .option.active {
    background-color: #f0f7ff;
    color: #007bff;
}

/* すでに選ばれている項目 */
.ts-dropdown .option.selected {
    background-color: #e9ecef;
    color: #333;
}

/* --- スクロールバーのカスタマイズ --- */
/* ドロップダウンの高さ制限とスクロール設定 */
.ts-dropdown .ts-dropdown-content {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 7px;
    
    /* IE, Edge用 */
    -ms-overflow-style: none;
    /* Firefox用 */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* Google Chrome, Safari, Edge（モダン）用スクロールバー */
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar {
    width: 6px; /* スクロールバーの幅 */
}

.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-track {
    background: transparent; /* 背景は透明に */
}

.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-thumb {
    background: #ccc; /* バーの色 */
    border-radius: 10px; /* バーを丸くする */
}

.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #aaa; /* ホバーで少し濃く */
}

/* 親コンテナと入力欄をすべて標準の矢印（default）にする */
.ts-control, 
.ts-control input {
    cursor: pointer !important;
}

/* 入力欄（input）自体のクリック判定 */
.ts-control input {
    pointer-events: none !important;
}

/* ドロップダウンのリスト内も標準の矢印にする */
.ts-dropdown .option {
    cursor: default !important;
}

/* ホバーした時 */
.ts-dropdown .option.active {
    cursor: default !important;
}


/* セレクトボックスの矢印 */
.prices-formField .select {
    position: relative;
}

.prices-formField .ts-control::before {
    content: "";
    width: 6px;
    height: 6px;
    border: 0;
    border-bottom: solid 1px #666;
    border-right: solid 1px #666;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    z-index: 2;
}
.prices-formField .disabled .ts-control::before {
    opacity: 0.5;
}

/* --- 合計金額セクション --- */
.prices-formField__title {
    margin-top: 15px;
    padding-top: 10px;
    font-size: 15px;
    font-weight: bold;
    border-top: 1px solid #dedede;
}

.prices-formField-total {
    display: flex;
    justify-content: center;
    align-items: baseline;
    padding: 10px 0 15px;
}

.prices-formField__price {
    color: var(--color-sub);
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-right: 2px;
}

.prices-formField__yen {
    font-size: 14px;
    font-weight: bold;
}

.prices-formField__tax-included {
    font-size: 12px;
    font-weight: normal;
}

/* --- アクションボタン --- */
.prices-formField-action__button-box {
    display: flex;
    justify-content: center;
    border-radius: 50px;
    overflow: hidden;
}
.prices-formField-action__button-box a{
    font-weight: 700;
    color: #999;
    background-color: #d3d3d3;
    padding: 10px 20px;
    border-radius: 50px;
    overflow: hidden;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
}

.prices-formField-action__button-box a.is-active{
    color: var(--text-main);
    background-color: var(--color-main);
    cursor: pointer;
}
.prices-button-text{
    position: relative;
}

@media (min-width:768px){
    .prices-formField-action__button-box a.is-active:hover {
        color: #fff;
    }
    .prices-formField-action__button-box a.is-active:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    }
    .prices-formField-action__button-box a.is-active::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #444;
    transform: scaleX(0);
    transform-origin: right;
    transition: all 0.3s ease;
    transition-property: transform;
    }
}


/* テンプレート（JS用の枠を非表示） */
.estimate-template {
    display: none;
}

/* ローダー */
/* ローダー表示中のスタイル */
#estimate-skeleton {
    display: block;
    height: 570px;
    background: #eeeeee;
    border-radius: 0 0 8px 8px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* スケルトンアニメーション */
#estimate-skeleton::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 本体の表示 */
.prices-field {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.prices-field.is-loaded {
    display: block;
    opacity: 1;
    pointer-events: auto;
    border: 1px var(--color-sub) solid;
}

/* SP表示時 */
@media (max-width: 767px) {
    .sidemenu{
        width: fit-content;
        padding-bottom: 0;
        z-index: 97;
        position: fixed;
        right: 0;
        bottom: 60px;
        transition: all 0.4s ease;
    }
    .sidemenu.fixed-hidden{
        right: -100%;
    }
    html body[style*="position: fixed"] .sidemenu {
        transition: none;
    }
    .sidemenu .aside-item {
        padding-bottom: 0;
    }

    .speed-estimate-banner{
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        width: fit-content;
        background-color: var(--color-sub);
        border-radius: 10px 0 0 10px;
        height: 90px;
        position: relative;
    }
    .speed-estimate-banimg{
        display: flex;
        align-items: center;
        padding: 15px 5px 15px 20px;
        transition: all 0.3s ease;
    }
    .speed-estimate-banimg .banimg-item{
        display: block;
        width: auto;
        height: 55px;
        transition: all 0.3s ease;
    }
    .speed-estimate-banimg .banimg-item.parts-icon{
        aspect-ratio: 33/50;
    }
    .speed-estimate-banimg .banimg-item.parts-txt{
        aspect-ratio: 50/19;
    }

    .close-btn{
        display: block;
        position: absolute;
        top: -10px;
        left: -10px;
    }
    .close-btn .i-plus{
        display: block;
        width: 30px;
        height: 30px;
        background-color: #222;
        border-radius: 15px;
        border: 1px solid #fff;
        position: relative;
    }
    .close-btn .i-plus::before,
    .close-btn .i-plus::after{
        content: "";
        display: block;
        width: 16px;
        height: 2px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        background-color: #fff;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    /* +-ボタン用 --------------- */
    .sidemenu.is-minimized .speed-estimate-banimg {
        padding: 10px;
    }
    .sidemenu.is-minimized .speed-estimate-banimg .banimg-item.parts-icon{
        height: 45px;
    }
    .sidemenu.is-minimized .speed-estimate-banimg .banimg-item.parts-txt{
        opacity: 0;
        height: 0;
    }
    .sidemenu.is-minimized .close-btn .i-plus::before {
        transform: rotate(90deg);
    }

    .estimate-content{
        display: none;
    }

    /* モーダル表示時 --------------- */
    .sidemenu.is-active {
        bottom: 0;
        width: 100%;
        height: 100dvh;
        z-index: 100;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.4); 
    }

    /* モーダルが開いている時はバナーを隠す */
    .sidemenu.is-active .speed-estimate-banner {
        display: none;
    }

    /* モーダルが開いている時に中身を出す */
    .sidemenu.is-active .estimate-content {
        display: block;
        padding: 40px 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* 閉じるボタンの表示 */
    .sidemenu.is-active .sp-only-close {
        display: block;
        font-size: 20px;
        color: #fff;
        background-color: #222;
        padding-bottom: 2px;
        width: 40px;
        height: 40px;
        border-radius: 20px;
        position: absolute;
        top: -15px;
        right: -15px;
        border: none;
        z-index: 10;
    }

    .js-open-estimate img,
    .js-open-estimate span {
        pointer-events: none;
    }
    .js-open-estimate .js-close-banner {
        pointer-events: auto;
    }
}