/* 検索フォームの css */

#hair-product-select {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 100%;
}

#hair-product-select::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

#hair-product-select select {
    appearance: none;
    width: 100%;
    height: 2.8em;
    padding: .4em calc(.8em + 30px) .4em .8em;
    border: none;
    background-color: #fff;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
}

.slider-box {
    margin-bottom: 60px;
    position: relative;
    border: 3px solid #78BD48;
    border-radius: 5px;
    padding: 10px;
    /* background: #f5f5f5;
    border-radius: 5px;
    padding: 10px; */
}

.slider-title {
    /* font-size: 1.2em;
    margin-bottom: 50px;
    font-weight: bold;
    text-transform: uppercase;
    color: #78BD48;
    text-align: center; */
    position: relative;
    padding-left: 4.5em;
    font-size: 1em;
    text-align: left;
    width: 200px;
    margin: -28px auto 60px;
    border: 3px solid #78BD48;
    border-radius: 5px;
    color: #78BD48;
    background: #fff;
    font-weight: bold;

}

.slider-title span {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 1rem;
    color: #fff;
    background: #78BD48;
}

.slider-title span:after {
    position: absolute;
    top: calc(50% - 7px);
    right: -11px;
    width: 0;
    height: 0;
    content: '';
    border-width: 7px 0 7px 12px;
    border-style: solid;
    border-color: transparent transparent transparent #78BD48;
}

.slider-title_2 {
    padding-left: 0;
    text-align: center;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.slider-label {
    font-size: 0.85em;
    width: 100px;
    text-align: center;
    color: #666;
    font-weight: bold;
}

.slider {
    flex-grow: 1;
    margin: 0 10px;
}

.slider-button,
.slider-button:active {
    display: block;
    width: 90px;
    padding: 3px 0;
    font-size: 0.4em;
    font-weight: bold;
    /* background-color: #78BD48; */
    border: 1px solid #78BD48;
    background: #fff;
    color: #78BD48;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px auto;

}

.slider-button:hover {
    background: #fff;
    border: 1px solid #78BD48;
    color: #78BD48;
    opacity: 0.8;
}



.noUi-connect {
    background: none !important;
}

.reset-button {
    top: 10px;
    left: 10px;
    padding: 8px 16px;
    font-size: 0.85em;
    font-weight: bold;
    background-color: #ff5c5c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    display: block;
    width: auto;
    display: none;
}

.reset-button:hover {
    background-color: #ff2d2d;
}

.form-container {
    position: relative;
}

/* button[type="submit"] {
    background-color: #78BD48;
    color: white;
    font-size: 0.85em;
    padding: 8px 0;
    font-weight: bold;
    width: 150px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
} */

button[type="submit"] {
    position: relative;
    /* 必須: ボタンの基準位置を設定 */
    background: #78BD48;
    color: #fff;
    padding: 0.5em;
    margin-top: 0;
    box-shadow: 0 5px 0 #5f9639;
    /* 初期状態の線をbox-shadowで実現 */
    -webkit-box-shadow: 0 5px 0 #5f9639;
    border-radius: 0.5rem;
    /* 角丸を適用 */
    width: 100%;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* スムーズなアニメーション */
    box-sizing: border-box;
    text-align: center;
    /* テキストを中央揃え */
    font-weight: bold;
}

button[type="submit"]:hover {
    transform: translateY(3px);
    /* ボタン全体を下に移動 */
    box-shadow: 0 3px 0 #5f9639;
    /* 線の高さを短くする */
    -webkit-box-shadow: 0 3px 0 #5f9639;
    background: #78BD48;
    color: #fff;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 10px;
    position: relative;
    top: -90px;
}

.slider-box.hair-slider {
    margin-bottom: 40px;
}

.checkbox-container label {
    font-size: 0.85em;
    color: #666;
    margin-right: 10px;
}

.checkbox-container input {
    transform: scale(1.2);
}

.disabled-slider {
    opacity: 0.5;
    pointer-events: none;
}

.range-slider {
    background: #79BE49 !important;
}

/* タブボタンのスタイル */
.tabs {
    display: flex;
    justify-content: center;
}

.search_area {
    border: 5px solid #eee;
    border-radius: 10px;
    padding: 30px 10px 20px;
}

.tab-button {
    padding: 10px 20px;
    margin: 0 10px;
    border: 5px solid #eee;
    border-bottom: none;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.tab-button.active {
    background-color: #78BD48;
    border: 5px solid #78BD48;
    color: white;
    border: none;
}

.tab-button:hover {
    background-color: #45a049;
    color: white;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

.metaslider {
    margin-bottom: 80px;
}

.wp-block-quote {
    display: none;
}

.image-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    background: #78BD48;
    color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-align: center;
    margin: 0 auto;
    width: 5em;
    font-size: 3.733vw;
}

.image-list {
    margin: 0;
    padding: 0;
    background: #78BD48;
    display: flex;
    justify-content: space-between;
    margin: 0 -10px -10px;
    padding: 3px 5px 0;

    li {
        list-style: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
        color: #fff;
        font-size: 2.66vw;
        cursor: pointer;
        display: block;
    }

    li:hover {
        text-decoration: underline;
    }
}

/* ポップアップ */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
    /* アニメーションを追加 */
    opacity: 0;
    /* 初期状態で透明 */
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    transform: scale(0.9);
    /* 初期状態で少し小さく */
    animation: scaleUp 0.3s ease forwards;
    /* アニメーションを追加 */
}

.popup .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        /* 透明 */
    }

    to {
        opacity: 1;
        /* 完全に表示 */
    }
}

/* 拡大アニメーション */
@keyframes scaleUp {
    from {
        transform: scale(0.9);
        /* 少し小さく */
    }

    to {
        transform: scale(1);
        /* 標準サイズに */
    }
}

/* ====================
   スマホ用レイアウト調整
==================== */
@media (min-width: 768px) {
    .search_area {
        padding: 60px 20px 20px;
    }

    .slider-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .image-title {

        font-size: 0.8em;
    }

    .image-list {
        margin: 0 -10px -10px;
        padding: 3px 1em 0;

        li {

            font-size: 0.8em;

        }

    }
}

/* スマホ用レイアウト調整 */
@media (max-width: 768px) {
    .slider-box {
        margin-bottom: 30px;
    }

    .slider-title {
        font-size: 1em;
        padding-left: 3.8em;
        width: 100%;
        margin: -28px 0 50px 0;
    }

    .slider-title_2 {
        padding-left: 1em;
        text-align: left;
    }

    .slider-button,
    .slider-button:hover {
        margin-top: -22px;
        font-size: 0.7em;
        width: 120px;
    }

    /* スライダーコンテナのレイアウト調整 */
    .slider-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
        gap: 1.5vw;
    }

    /* スライダーの横幅を100%に広げる */
    .slider {
        grid-column: 1 / 4;
        grid-row: 1;
        width: 100%;
        margin: 10px 0;
    }

    /* 左ラベルをスライダーの下左側に配置 */
    .slider-label:first-of-type {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 右ラベルをスライダーの下右側に配置 */
    .slider-label:last-of-type {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        text-align: right;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


}