/* タグ選択モーダル */
.tag-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.tag-modal.show {
    display: flex;
}

.tag-modal-content {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 0 20px 20px 20px;
    max-width: 500px;
    width: 90%;
    max-height: 70%;
    overflow-y: auto;
}

.tag-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #DDDDDD;
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tag-modal-title {
    font-size: 18px;
    font-weight: bold;
}

.tag-modal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-modal-item {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333333;
    border: 1px solid #DDDDDD;
    background-color: #FFFFFF;
    border-radius: 20px;
}

.tag-modal-item:hover {
    background-color: #F5F5F5;
    border-color: #999999;
}

.tag-modal-item.selected {
    background-color: #FF6600;
    color: #FFFFFF;
    border-color: #FF6600;
}

.tag-modal-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #DDDDDD;
    justify-content: center;
}


.tag-modal-apply {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    max-width: 200px;
}

.tag-modal-apply {
    background-color: #FF6600;
    border: 1px solid #FF6600;
    color: #FFFFFF;
}

.tag-modal-apply:hover {
    background-color: #E55A00;
}

/* 公開リスト作成モーダルのキャンセルボタン */
.tag-modal-close {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    height: 22px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 11px;
    color: #666666;
    cursor: pointer;
    position: relative;
}

.tag-modal-close-icon {
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    height: 18px;
    text-align: center;
    border-radius: 50%;
    background: transparent;
    color: #666666;
    line-height: 18px;
    margin-left: 3px;
    margin-right: 4px;
}

.tag-modal-close-text {
    font-size: 11px;
    line-height: 11px;
    color: #666666;
    padding-top: 2px;
}

.tag-modal-close:hover:not(:disabled) {
    background: #FAFAFA;
    color: #000000;
    border-color: #666666;
}

.tag-modal-close-simple{
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666666;
    padding: 0;
    width: 30px;
    height: 30px;
}

/* 公開リスト一覧のSP表示モーダルの選択解除ボタン */
.tag-modal-reset {
    display: inline-flex;
    align-items: center;
    width: 97px;
    height: 22px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 11px;
    color: #666666;
    cursor: pointer;
    position: relative;
    margin-right: auto;
}

.tag-modal-reset-icon {
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    height: 18px;
    text-align: center;
    border-radius: 50%;
    background: transparent;
    color: #666666;
    line-height: 18px;
    margin-left: 3px;
    margin-right: 4px;
}

.tag-modal-reset-text {
    font-size: 11px;
    line-height: 11px;
    color: #666666;
}

.tag-modal-reset:hover:not(:disabled) {
    background: #FAFAFA;
    color: #000000;
    border-color: #666666;
}

.tag-modal-reset-simple{
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666666;
    padding: 0;
    width: 30px;
    height: 30px;
}
