﻿/* スクロール復元時のちらつき防止 */
.hide-scroll {
    visibility: hidden;
    overflow: hidden;
}


/* スピナーのスタイル */
.spinner {
    border: 6px solid #ccc; /* 外側の薄いグレー */
    border-top: 6px solid #3fb312; /* 回転する部分 */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite; /* アニメーション */
}

/* スピンアニメーション定義 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* ---------- クッキー ---------- */

#cookieConsentBar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    display: none;
    z-index: 1000;
}

    #cookieConsentBar button {
        background: #ff9800;
        color: #fff;
        border: none;
        padding: 10px 15px;
        margin-left: 10px;
        cursor: pointer;
        border-radius: 5px;
    }

        #cookieConsentBar button:hover {
            background: #e68900;
        }

/* ---------- 全画面共通 ---------- */

body {
    background-color: #fff;
    color: #262626;
    letter-spacing: 0.08em;
    height: 100%;
}

label {
    margin-bottom: 0px;
}

/* ヘッダー */
.navbar-inverse {
    background-color: #3fb312 !important;
    border: none;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* タイトル */
.header-title {
    color: white !important;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    line-height: 1.2;
}

/* サブタイトル */
.header-sub-title {
    color: white !important;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    line-height: 1.2;
    margin-top: 4px;
}

.footer-title {
    text-align: center;
}

/* プログレスバーエリア */
.progressbar-container {
    margin: 20px 0px;
}

/* プログレスバー */
.progressbar {
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .progressbar li {
        position: relative;
        list-style-type: none;
        text-align: center;
        text-transform: uppercase;
        width: 25%;
        color: #999999;
        font-weight: bold;
        counter-increment: steps;
        padding-bottom: 10px;
    }

        .progressbar li:before {
            display: block;
            width: 36px;
            height: 36px;
            margin: 7px auto 10px auto;
            content: counter(steps);
            line-height: 36px;
            font-size: 14px;
            text-align: center;
            border-radius: 50%;
            background-color: #F5F5F5;
            color: #999999;
        }

        .progressbar li:after {
            content: none; /* 間の線を消す */
        }
        /* アクティブ・完了状態 */
        .progressbar li.active,
        .progressbar li.complete {
            color: #3fb312;
        }

            .progressbar li.active:before,
            .progressbar li.complete:before {
                background-color: #3fb312;
                color: #FFF;
            }
            /* アクティブな項目の下に線を追加 */
            .progressbar li.active::after {
                content: '';
                display: block;
                width: 50%;
                height: 4px;
                background-color: #3fb312;
                margin: 0 auto;
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
            }

/* 通常の太さのラベル */
.normal_label {
    font-weight: normal !important;
}

/* 太字・緑・ラベル */
.green-label {
    font-weight: bold;
    color: #3fb312;
}

/* 太字・グレー・ラベル */
.gray-label {
    font-weight: bold;
    color: gray;
}

/* 太字・赤・ラベル */
.red-label {
    font-weight: bold;
    color: red;
}

/* 次へボタン */
.btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid #36990f;
    background-color: #36990f;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    padding: 3px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

    .btn-next:hover {
        border: 2px solid #36990f;
        background-color: white;
        color: black;
    }

input[type="submit"].btn-next:active {
    background-color: #2c7a0f !important;
    border-color: #2c7a0f !important;
    color: white !important;
}

.btn-prev {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid #666;
    background-color: #666;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    padding: 3px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

    .btn-prev:hover {
        border: 2px solid #666;
        background-color: white;
        color: black;
    }

input[type="submit"].btn-prev:active {
    background-color: #444 !important;
    border-color: #444 !important;
    color: white !important;
}

.btn-group {
    margin: 20px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 中央寄せ */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ボーダーライン */
.border-line {
    margin-top: 20px;
    border-bottom: 1px solid #ccc;
}





/* ---------- 入力エリア共通 ---------- */
.form-container {
    margin: 20px 0px;
}

    .form-container label {
        display: flex;
        align-items: center;
        gap: .5em;
    }

    .form-container span.label {
        display: inline-block;
        font-size: 70%;
        padding: 3px 6px 2px;
        line-height: 100%;
        border-radius: 5px;
    }

    .form-container .form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background-color: #d5e6cf !important;
        border-radius: 4px !important;
    }

.form-control.input-small {
    width: 200px;
}

.form-control.remarks-control {
    width: 390px !important;
}

.form-box {
    max-height: 350px;
    overflow-y: auto;
    padding: 20px;
}

.form-row {
    margin-bottom: 15px;
}

.rental-form-row {
    border-bottom: 1px solid #ccc;
}
/* flex-responsive: PCでは横並び、モバイルでは縦並びにする  */
.flex-responsive {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* flex-static: PCでもモバイルでも常に横並びにする  */
.flex-static {
    display: flex;
    align-items: center;
    gap: 10px;
}
    /* 入力欄 */
    .flex-static .form-control {
        width: 200px;
    }

    /* チェックボックス */
    .flex-static input[type="checkbox"] {
        margin: 0;
        margin-right: 5px;
    }


/* 必須 */
.form-container .label-danger {
    color: #fff;
    background: #e14b4b;
}

/* 任意 */
.form-container .label-primary {
    color: #fff;
    background: #5eb1db;
}

/* 注釈ラベル */
.input-notice-label {
    font-weight: normal !important;
    font-size: 13px;
}

@media (max-width: 991px) {
    /* 縦並びに変更 */
    .flex-responsive {
        flex-direction: column;
        align-items: flex-start;
    }

    /* 横並びを維持 */
    .flex-static {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .flex-static .form-control {
            width: 150px;
        }

    .input-label-group {
        width: 100%;
        display: block;
        margin-bottom: 5px;
    }
}



/* ---------- レンタル内容表示エリア共通 ---------- */

/* レンタル内容表示エリア */
.price-summary-container {
    height: 200px;
    /*padding: 20px;*/
}

@media (max-width: 991px) {
    .price-summary-container {
        height: auto;
        display: flex;
        flex-wrap: wrap; /* コンテンツを折り返し可能に変更 */
        justify-content: center;
        align-items: center;
    }

    .total-price-section {
        margin-top: 20px;
    }

}

/* 商品画像 */
.veggie-image {
    max-height: 180px;
    max-width: 300px;
}

/* 画像中央寄せ */
.image-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* 画像左寄せ */
.image-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 0;
}

/* 金額表示エリア */
.total-price-section {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.total-price-section-box {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: right;
}

/* 金額表示エリア 緑外枠 */
.price-box {
    border: 2px solid #3fb312;
    padding: 10px;
    max-height: 180px;
    width: 400px;
    display: flex;
    flex-direction: column;

}

/* 見積の情報記述欄 */
.price-estimate-info{
    margin-top: 10px;
}

/* 合計金額ラベル */
.total-price-label {
    font-weight: bold;
    font-size: 22px;
}

/* 税込金額ラベル */
.tax-label {
    font-weight: bold;
    font-size: 18px;
}

/* 再計算ボタン */
.btn-recalc {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    /*width: 100px;*/
    border: 1px solid #e68a00;
    background-color: #f08d49;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    padding: 3px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

    .btn-recalc:hover {
        border: 2px solid #e68a00;
        background-color: white;
        color: black;
    }


/* ---------- レンタル内容入力画面 ---------- */
/* 横並びラベル */
.input-label-group {
    width: 180px;
}

.input-group{
    width: 500px;
}

/* カウンターボタン */
.btn-counter {
    background-color: #d5e6cf;
    color: white;
    border: none;
    padding: 5px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

    /* フォーカス時 */
    .btn-counter:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    /* ホバー時 */
    .btn-counter:hover {
        background-color: #36990f;
        transform: scale(1.05);
    }

    /* 押した時 */
    .btn-counter:active {
        background-color: #2d800d;
        transform: scale(0.95);
    }

/* レンタル台数 */
#MainContent_rentalQuantity {
    margin: 0px 10px;
    font-weight: bold;
    font-size: 18px;
}

/* レンタル期間入力補助ラジオボタン */
.rbl-period-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    align-items: center;
    width:480px;
}

    .rbl-period-wrap input[type="radio"] {
        vertical-align: middle;
        margin: 0 0.25rem 0 0;
    }

    .rbl-period-wrap label {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

/* ---------- お客様情報入力画面 ---------- */
/* 画面読み込み時body非表示 */
body.hide-before-scroll {
    visibility: hidden;
}

/* ポリシーエリア */
.policy-box {
    padding: 5px 10px;
    align-items: center;
    max-width: 800px;
    max-height: 400px;
    min-height: 300px;
    overflow-y: auto;
    margin: 20px;
    border: 2px solid #ccc;
    background-color: #eee;
}

.policy-text {
    padding: 5px 10px;
    text-align: left;
}

/* 住所検索ボタン */
.btn-address-search {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #36990f;
    background-color: #36990f;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    padding: 3px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
    .btn-address-search:hover {
        border: 2px solid #36990f;
        background-color: white;
        color: black;
    }

input[type="submit"].btn-address-search:active {
    background-color: #2c7a0f !important;
    border-color: #2c7a0f !important;
    color: white !important;
}

/* 非表示要素ラベル */
.label-box {
    margin: 10px 0;
    width: 80%;
    background-color: #36990f;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.label-box-container {
    width: 90px;
}

.detail-label-box-container {
    width: 150px;
}

.custom-address-table {
    width: 100%;
}

.rental-unit {
    margin: 20px 0px;
}

.form-check input[type="radio"] {
    display: inline-block;
    margin-right: 10px;
}

.form-check label {
    display: inline-block;
    margin-right: 20px;
}

@media (max-width: 991px) {
    .form-check {
        display: block;
    }
}


/* ---------- 確認画面 ---------- */
/* スクロール */
.confirmation-box {
    max-height: 530px;
    overflow-y: auto;
    padding: 20px;
}

/* 入力フィールドの見出し */
.field-label {
    min-width: 150px;
    color: #24660a;
}

/* 個別配送先入力フィールドの見出し */
#confirm_customAddressContainer .field-label {
    width: 200px;
    color: #24660a;
}

/* 個別配送先設定ラベル*/
.confirm-label-box {
    margin: 10px 0;
    width: 80px;
    background-color: #d5e6cf;
    padding: 5px 10px;
    border-radius: 5px;
}

.remarks-label{
    width: 400px;
}

/* ---------- 完了画面 ---------- */
.email-notice {
    margin: 20px 0px;
    text-align: center;
    display: block;
    font-weight: bold;
}

.email-warning {
    max-width: 530px;
}


/* 人物画像 */
.ppl-image {
    max-height: 200px;
    margin: 20px 0px;
}


/* ---------- オプション詳細画面 ---------- */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.option-card {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.option-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.option-image {
    max-width: 450px;
    height: auto;
    margin-bottom: 10px;
}

.option-description {
    color: #555;
}

.option-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
