:root {
    --main-color: #007AC1;
    --light-color: #ECF8FF;
    --main-color-text: #006EA8;
    --pink-color: #DA719B;
    --green-color: #64B160;
    --orange-color: #DD7B35;
    --accent-color: #FB8938;
    --font-size-base: 16px;
}

* {
    word-break: auto-phrase;

}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
}

:root {
    /* 色 */
    --color-bg: #f7f8fb;
    --color-card: #ffffff;
    --color-primary: #49b232;
    /* This line is unchanged */
    /* accent */
    --color-primary-rgb: 73, 178, 50;
    /* for rgba usage */
    --color-secondary: #6b7280;
    /* muted */
    --color-border: #e6edf6;
    --color-text: #111111;
    --color-success: #0b8753;
    --color-error: #b91c1c;
    /* 共通スペース・角丸・シャドウ */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --radius: 10px;
    --card-radius: 12px;
    --shadow-elevation: 0 6px 18px rgba(12, 38, 63, 0.08);
    /* ボタン共通 */
    --btn-bg: var(--color-primary);
    --btn-color: #ffffff;
    --btn-padding: 12px 16px;
    --btn-radius: var(--radius);
    --btn-font-weight: 600;
}

/* ...existing code... */
* {
    box-sizing: border-box;
}

/* 
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
} */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, var(--color-card), #f8fafc);
    border-bottom: 1px solid var(--color-border);
}

.client-logo {
    font-weight: 700;
    color: var(--color-primary);
    padding: 6px 8px;
    border-radius: 6px;
}

#clientLogo img {
    /* height: 32px; */
    /* width: auto; */
    display: block;
}

.phone-placeholder {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 14px;
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1100px;
    }

    .container {
        /* max-width: 520px; */
        /* width: 100%;
    margin: 0 auto;
    padding: 24px;
    background: var(--color-card);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-elevation); */
    }
}

    h1 {
        margin-top: 0;
        font-size: 20px;
    }

    form {
        display: grid;
        gap: 12px;
    }

    label {
        font-size: 13px;
        /* color: var(--color-secondary); */
    }

    input[type=text] {
        padding: 12px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        font-size: 15px;
    }

    /* 
button {
  background: var(--btn-bg);
  color: var(--btn-color);
  border: none;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
} */

    #message {
        margin-top: 12px;
        /* color: var(--color-text); */
        font-size: 14px;
    }

    .error {
        /* color: var(--color-error); */
    }

    .success {
        color: var(--color-success);
    }

    /* 汎用ボタン */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: var(--btn-padding);
        border-radius: var(--btn-radius);
        font-weight: var(--btn-font-weight);
        cursor: pointer;
        border: none;
        text-decoration: none;
    }

    /* プライマリーボタン（クライアント固有のカラーで上書き可能） */
    .btn-primary {
        background: var(--btn-bg);
        color: var(--btn-color);
    }

    /* セカンダリーボタンの例 */
    .btn-secondary {
        background: transparent;
        color: var(--color-primary);
        border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    }

    /* 小さめのヘルパーボタン */
    .btn-small {
        padding: 8px 10px;
        font-size: 14px;
        border-radius: calc(var(--btn-radius) - 4px);
    }

    /* ギフト選択のカード */
    .gift-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    @media (min-width: 560px) {
        .gift-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .gift-card {
        border: 1px solid var(--color-border);
        padding: 12px;
        border-radius: var(--radius);
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .gift-card input {
        margin-right: 8px;
    }

    .gift-card .gift-title {
        font-weight: 600;
    }


    /* Ensure buttons using the --btn-bg variable already pick up the new primary color */
    /* (no change needed here because --btn-bg references --color-primary) */
    .for-500,
    .for-1000,
    .for-1500 {
        display: none;
    }

    body.stock-500 .for-500 {
        display: block;
    }

    body.stock-1000 .for-1000 {
        display: block;
    }

    body.stock-1500 .for-1500 {
        display: block;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #f5f5f5;
    }

    .header-logo img {
        height: 50px;
    }

    .header-contact a {
        color: #007bff;
        text-decoration: none;
    }

    .hero {
        text-align: center;
        padding: 50px 20px;
        background: #e6f7ff;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .products {
        padding: 20px;
        background: #fff;
    }

    .products h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .product {
        margin-bottom: 20px;
        text-align: center;
    }

    .product img {
        max-width: 100%;
        height: auto;
    }

    .faq {
        padding: 20px;
        background: #f9f9f9;
    }

    .faq h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .faq-item {
        margin-bottom: 10px;
    }

    .footer {
        text-align: center;
        padding: 10px;
        background: #333;
        color: #fff;
    }




    .button {
        background-color: var(--main-color);
        font-size: var(--font-size-base);
    }


    .kv-area {
        background-image: url(/img/bg.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        padding: 4em 1em;
    }

    header {
        z-index: 100;
    }





    .title-layout:after {

        content: "";
        display: block;
        width: 40px;
        height: 3px;
        background-color: var(--main-color);
        margin-top: 1em;
        margin-left: auto;
        margin-right: auto;
    }


    button.btn-inline {
        padding: 0;
        border: none;
        background-color: transparent;
    }

    .color-main {
        color: var(--main-color);
    }

    .period {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .period-text {
        font-size: 1.2em;
        margin-left: .5em;
        margin-right: .5em;
    }

    .period-title {
        border-radius: 100%;
        background: var(--main-color);
        color: #fff;
        font-weight: bold;
        width: 4em;
        height: 4em;
        display: flex;
        align-items: center;
        line-height: 1.2;
        justify-content: center;
    }



    .scroll-container-wrapper {
        position: relative;
    }

    .scroll-container {
        display: flex;
        gap: 3em;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 1rem;
        /* mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); */
        /* -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); */
    }

    .benefit-item {
        display: inline-block;
        /* width: 250px; */
        /* margin-right: 1rem; */
        vertical-align: top;
    }

    .benefit-title {
        border-bottom: 2px solid #007bff;
        font-weight: bold;
        margin-bottom: 0.5rem;
        font-size: 1.2em;
        text-indent: -2.75em;
        padding-left: 2.75em;
    }

    .benefit-image {
        width: 100%;
        /* height: 150px; */
        /* background: #ddd; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: #777;
        font-size: 14px;
    }

    /* スクロールアイコン演出 */
    .scroll-hint-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        color: rgba(0, 0, 0, 0.3);
        animation: blink 1.2s infinite;
        pointer-events: none;
    }

    .scroll-hint-icon.left {
        left: 0;
        transform: translateX(-100%);
    }

    .scroll-hint-icon.right {
        right: 0;
        transform: translateX(100%);

    }

    .scroll-hint-icon.left,
    .scroll-hint-icon.right {
        display: none;
    }

    @keyframes blink {

        0%,
        100% {
            opacity: 0.2;
        }

        50% {
            opacity: 0.8;
        }
    }

    /* レスポンシブ時は通常の並びへ */
    @media (min-width: 768px) {
        .scroll-container {
            overflow-x: visible;
            white-space: normal;
            mask-image: none;
            -webkit-mask-image: none;
        }

        .benefit-item {
            /* width: 300px; */
        }

        .scroll-hint-icon {
            display: none;
        }
    }

    .pink {
        color: var(--pink-color);
        border-color: var(--pink-color);
    }

    .green {
        color: var(--green-color);
        border-color: var(--green-color);
    }

    .orange {
        color: var(--orange-color);
        border-color: var(--orange-color);
    }


    .benefit-list-group {
        position: relative;
        padding: 3em 3em 1.5em;
        border: var(--main-color) solid 2px;
        border-radius: 8px;
    }

    .benefit-list-group .select-title {
        position: absolute;
        top: 0;
        left: 50%;
        /* right: 50%; */
        transform: translate(-50%, -50%);
        z-index: 100;
        background: #fff;
        padding: 0 1em;
        display: block;
        width: fit-content;
        font-size: 1.4em;
        color: var(--main-color-text);
        text-align: center;
    }


    @media screen and (max-width: 768px) {
        .scroll-container * {
            white-space: normal;
        }

        .scroll-container {
            flex-direction: column;
        }

        .scroll-container .benefit-image img {
            width: 200px;
        }


        .scroll-container {
            gap: 1.5em;
        }

        .benefit-list-group {
            padding: 3em 1.5em 1.5em;
        }

        .benefit-list-group .select-title {
            font-size: 1.2em;
        }

        .benefit-item {
            min-width: 240px;
        }

    }

    .plus-icon {
        text-align: center;
    }

    .plus-icon svg {
        width: 3em;
        color: var(--main-color-text);
        fill: var(--main-color);
        text-align: center;
        margin: 0 auto;
    }

    .title-style-04 {
        color: #fff;
        padding: 0.5em 1em;
        border-radius: 8px;
        width: fit-content;
        min-width: 240px;
        text-align: center;
    }

    .title-style-04.pink {
        background-color: var(--pink-color);

    }

    .title-style-04.green {
        background-color: var(--green-color);

    }

    .title-style-04.orange {
        background-color: var(--orange-color);

    }

    .modal {
        z-index: 10000000;
    }

    .benefit-modal a {
        text-decoration: none;
    }

    .bg-primary {
        background-color: var(--light-color);
    }


    .text-primary {
        color: var(--main-color-text) !important;
    }


    .step-list {
        width: fit-content;
        margin: 0 auto;
    }

    .step-list h6.text-primary {
        font-size: 1.2em;
    }

    .step-circle {
        width: 3em;
        height: 3em;
        background-color: var(--main-color-text);
        color: white;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        flex-shrink: 0;
        font-size: 18px;
    }


    .step-list>div {
        position: relative;
    }

    .step-list>div:not(:last-child):before {
        content: "";
        width: 2px;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 26px;
        background-color: var(--main-color-text);
        z-index: -1;
    }

    .accordion-button {
        background-color: #f8f9fa;
        font-weight: bold;
    }

    .accordion-button:focus {
        box-shadow: none;
    }

    .accordion-body {
        background: #ffffff;
        border-top: 1px solid #dee2e6;
    }

    .q-badge {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        font-size: 1rem;
        background: linear-gradient(to bottom right, #5DBDF5, #0090E3);
    }

    .border-start {
        border-color: var(--main-color) !important;
    }








    .footer-section {
        background-color: #f0f0f0;
        font-family: "Helvetica Neue", sans-serif;
    }

    .footer-top {
        background-color: #e5e5e5;
    }

    .footer-link {
        color: #333;
        text-decoration: none;
    }

    .footer-link:hover {
        text-decoration: underline;
    }

    .footer-bottom {
        background-color: #333;
    }

    .long-holder-benefit {
        border: 2px solid #0073c6;
        border-radius: 6px;
        overflow: hidden;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .long-holder-header {
        background: var(--main-color);
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .long-holder-body {
        background-color: #ffffff;
        font-size: 0.95rem;
        padding: 1.25rem 1rem;
    }




    .long-holder-text {
        color: #e60000;
        font-weight: 600;
        line-height: 1.6;
    }




    [data-bs-toggle] {
        cursor: pointer;
        transition: .25s;
    }

    [data-bs-toggle]:hover {

        opacity: 0.8;
    }

    header {
        position: relative;
    }

    header .text-end {
        max-width: 460px;
    }





    .fixed-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #ccc;
        display: flex;
        justify-content: center;
        gap: 1rem;
        align-items: center;
        padding: 0.6rem;
        z-index: 999;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    .fixed-action-bar .action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        height: 50px;
    }

    .action-btn img {
        height: 100%;
    }

    .fixed-action-bar .phone-btn {
        background-color: var(--main-color);
        color: #fff;
        font-size: 1.2rem;
    }

    .fixed-action-bar .apply-btn {
        background-color: var(--accent-color);
        color: #fff;
        font-size: 0.95rem;
    }

    header .apply-btn {
        background-color: var(--accent-color);
        color: #fff;
        font-size: 0.95rem;
        border-radius: 100px;
        text-decoration: none;
        padding: .5em 1em;
        text-align: center;
        font-weight: bold;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-width: 240px;
    }

    .fixed-action-bar i.bi {
        font-size: 1.2rem;
    }

    @media (max-width: 576px) {
        .fixed-action-bar {
            /* flex-direction: column; */
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }


        .fixed-action-bar .action-btn {
            width: 50px;
        }

        .fixed-action-bar .apply-btn {
            width: 220px;
        }

        .fixed-action-bar .stock-chenge-btn {
            width: 100%;
        }
    }

    .modal-body img {
        width: 80%;
        /* min-width: 200px; */
    }

    .modal-title {
        text-indent: -2.75em;

        padding-left: 2.75em;
    }

    .btn-orange {
        background-color: #ff914d;
        color: #fff;
        font-weight: bold;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: none;
        transition: background-color 0.2s ease;
    }

    .btn-orange:hover {
        background-color: #ff7a26;
        color: #fff;
        opacity: 0.8;
    }


    .modal-body .text-center img {
        max-width: 240px;
    }



    html .for-500,
    html .for-1000,
    html .for-1500 {
        display: none !important;
    }

    html body.stock-500 .for-500 {
        display: block !important;
    }

    html body.stock-1000 .for-1000 {
        display: block !important;
    }

    html body.stock-1500 .for-1500 {
        display: block !important;
    }

    @media (max-width: 576px) {
        body {
            font-size: 14px;
        }
    }

    /* 郵便番号検索ボタンのスタイル調整 */
    #searchPostal {
        border: 1px solid #6c757d;
        background-color: #ffffff;
        color: #6c757d;
        transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    }
    #searchPostal:hover {
        background-color: #e6f0fa; /* 薄い青 */
        border-color: #0d6efd;
        color: #0d6efd;
    }