.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    color: #334155;
    z-index: 9998;
    padding: 14px 20px;
    box-shadow: 0 -8px 32px rgba(1, 58, 107, 0.08);
    border-top: 1px solid rgba(1, 58, 107, 0.12);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent.show { transform: translateY(0); }

.cookie-consent__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent__text {
    flex: 1;
    min-width: 0;
}

.cookie-consent__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #004e8d;
}

.cookie-consent__desc {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.6;
}

/* 本文内インラインリンク */
.cookie-privacy-link {
    color: #004e8d;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.2s ease;
    cursor: pointer;
}
.cookie-privacy-link:hover {
    color: #C1134E;
}

.cookie-consent__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    width: 170px;
}

.cookie-btn {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* 同意ボタン */
.cookie-btn--accept {
    background: #C1134E;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(193, 19, 78, 0.15);
}
.cookie-btn--accept:hover {
    background: #a50f41;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(193, 19, 78, 0.25);
}

/* 拒否ボタン */
.cookie-btn--reject {
    background: transparent;
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
}
.cookie-btn--reject:hover {
    background: rgba(100, 116, 139, 0.04);
    border-color: #64748b;
    color: #334155;
}

/* h-do.housedo-th.com フロートバー制御 */
#scrollFloating { transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
#scrollFloating.cookie-banner-active { bottom: 112px; }
/* Cookieバナー表示中のみ、ページ全体の一番下にスクロール用の余白を確保する */
body {
    transition: padding-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.cookie-banner-visible {
    padding-bottom: 120px; /* PC版バナーの高さ＋余裕分 */
}

@media (max-width: 768px) {
    /* 中略された元のメディアクエリ内の記述はそのまま残し、余白指定だけ変更 */
    .cookie-consent__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cookie-consent__buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    .cookie-btn { height: 38px; padding: 10px 12px; font-size: 12px; }
    #scrollFloating.cookie-banner-active { bottom: 126px; }

    /* SP版: バナーが縦長になるため余白を多めに確保（bodyに適用） */
    body.cookie-banner-visible {
        padding-bottom: 180px; /* SP版バナーの高さ＋余裕分 */
    }
}