/* バナー基本スタイル */
.acc-cookie-banner {
    position: fixed;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 5px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}
.acc-cookie-banner.top { top: 0; bottom: auto; }
.acc-cookie-banner.bottom { bottom: 0; top: auto; }

/* アニメーション */
.acc-animate-fade { animation: fadeIn 1s; }
.acc-animate-slide { animation: slideIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* バナーコンテンツ */
.acc-banner-content {
    /*max-width: 1200px;*/
    margin: 0 auto;
    text-align: center;
}

.acc-notification-message {
    display: block;
    width: 100%;
    font-size: 0.9em;
}
@media screen and (max-width: 768px) {
    .acc-notification-message {
        font-size: 0.7em;
    }
}
.acc-consent-buttons {
    margin: 5px 0;
}
.acc-consent-btn {
    margin: 0 5px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    background: #444;
    color: #fff;
}
.acc-consent-btn:hover {
    background: #555;
}
.acc-duration-selector {
    margin: 10px 0;
}

/* Revokeバー（改修済み） */
#acc-revoke-bar {
    position: fixed;
    left: 0;
    width: 100%;
    min-height: 30px;
    background: #444;
    z-index: 9999;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 10px;
    font-size: 0.7em;  /* ベースサイズ 0.7em */
    color: #fff;
    justify-content: center;
}
@media screen and (max-width: 768px) {
    #acc-revoke-bar {
        font-size: 0.6em;  /* ベースサイズ 0.6em */
    }
}
#acc-revoke-center {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}
#acc-revoke-btn {
    padding: 3px 8px;
    cursor: pointer;
    background: #008CBA;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left:10px;
}
@media screen and (max-width: 768px) {
    #acc-revoke-btn {
        font-size: 0.7em;
    }
}
#acc-revoke-btn:hover {
    background: #007B9E;
}
#acc-revoke-close {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.8em;  /* 現状の約3倍 */
}

#acc-revoke-tab {
    display:none;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.8em;  /* 現状の約3倍 */
}

/* モーダルダイアログ */
#hs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}
#hs-modal-content {
    background: #fff;
    max-width: 480px;
    width: 80vw;       /* 横幅固定 */
    max-height: 550;
    height: 70vh;       /* 高さを画面の80%に固定 */
    margin: 5% auto;
    padding: 10px;
    position: relative;
    overflow-y: auto;   /* 高さが足りない場合、縦スクロールバーを表示 */
    border-radius: 10px;
}
.hs-close-button {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
#hs-modal-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
#hs-modal-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#hs-modal-body {
    padding: 10px 0;
}
#hs-modal-body-container {
    padding: 10px;
}
#hs-modal-introduction {
    font-size: 1.2em;
    margin-bottom: 10px;
}
#hs-modal-introduction-description p {
    margin: 0;
    line-height: 1.5;
}
#hs-categories-container {
    margin-top: 20px;
}
#hs-modal-footer {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 20px;
}
#hs-modal-footer-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
#hs-modal-footer-container button {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    background: #444;
    color: #fff;
}
#hs-modal-footer-container button:hover {
    background: #555;
}

@media screen and (max-width: 768px) {
    #hs-modal-introduction {
        font-size: 0.9em;
    }
    #hs-modal-introduction-description p {
        font-size: 0.7em;
    }
    #hs-categories-container {
        font-size: 0.7em;
    }
    #hs-modal-accept-all {
        font-size: 0.7em;
    }
    #hs-modal-decline-all {
        font-size: 0.7em;
    }
    #hs-modal-save-settings {
        font-size: 0.7em;
    }
}

/* モーダル内カテゴリ */
.hs-category-row {
    border-top: 1px solid #ccc;
    padding: 10px 0;
}
.hs-category-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hs-category-label {
    background: none;
    border: none;
    font-size: 1em;
    cursor: pointer;
    text-align: left;
}
.hs-always-active-label {
    font-weight: bold;
    margin-left: 10px;
}
.hs-toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    margin-left: 10px;
    cursor: pointer;
}
.hs-toggle-switch-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
.hs-toggle-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 12px;
    transition: background 0.3s;
}
.hs-toggle-switch label::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.hs-toggle-switch-input:checked + label {
    background: #4caf50;
}
.hs-toggle-switch-input:checked + label::before {
    transform: translateX(26px);
}
.hs-category-description {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.toggle-icon {
    font-weight: bold;
    margin-right: 5px;
}
.hs-toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}
