@charset "UTF-8";

/* Cookie バナー全体 */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 34, 34, 0.95); /* 背景を50%透過 */
    color: #fff;
    padding: 15px;
    z-index: 9999;
    font-size: 14px;
}

/* 表示状態用クラス */
.cookie-banner.show,
.cookie-banner[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

/* メッセージ部分 */
.cookie-banner .cookie-message {
    flex: 1;
    margin-right: 15px;
    min-width: 0; /* flexアイテムの最小幅を0に */
}

/* メッセージ内のリンク */
.cookie-banner .cookie-message a {
    color: #42B8B8;
    text-decoration: underline;
}

/* ボタンとリンクをまとめて中央に */
.cookie-banner .cookie-btn {
    margin: 0;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    text-align: center;
}

/* 同意ボタン */
.cookie-banner .cookie-btn.accept {
    background: #007ADB;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 110px;
}

/* 拒否リンク */
.cookie-banner .cookie-btn.deny {
    color: #fff;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    border-radius: 0;
    width: auto;
}

/* 同意ボタンのホバースタイル */
@media all and (min-width: 768px) {
    .cookie-banner .cookie-btn.accept:hover {
        background-color: #0099FF;
    }
}

/* 拒否リンクのホバースタイル */
@media all and (min-width: 768px) {
    .cookie-banner .cookie-btn.deny:hover {
        opacity: 0.6;
        text-decoration: underline;
    }
}

/* スマホ時のスタイル */
@media all and (max-width: 767px) {
    .cookie-banner.show,
    .cookie-banner[style*="display: flex"] {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .cookie-banner .cookie-message {
        flex: 1 0 100%;
        margin-right: 0;
        margin-bottom: 4px;
        width: 100%;
    }
    
    .cookie-banner .cookie-btn {
        align-self: center;
        flex: 0 0 calc(50% - 5px);
        width: auto;
    }
    
    .cookie-banner .cookie-btn.deny {
        padding-left: 0;
        text-align: center;
    }
}
