/* 日付範囲セパレータ */
#date-separator {
    margin: 0 4px;
    display: none;
}
#end_date {
    display: none;
}

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

.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    max-width: 90%;
    width: 400px;
    box-sizing: border-box;
    text-align: left;
}

.modal-content h2 {
    margin-top: 0;
    text-align: center;
}

.modal-text p {
    margin: 8px 0;
}

.modal-content button {
    margin: 8px;
    padding: 8px 16px;
    cursor: pointer;
}

/* トグルチェックボックス（期間設定） */
#duration {
    margin-right: 6px;
}

/* メッセージ表示 */
#tournamentsFormMessage {
    margin-top: 8px;
    font-weight: bold;
}

.event-condition-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    border: none;
}
.event-condition-group label {
    margin-right: 8px;
}
.event-condition-group input[type="checkbox"] {
    width: 15px;
}
.form-repeater .event-condition-group input[type="text"] {
    width: 100%;
}


@media screen and (min-width: 835px) {
    #eventsRepeater.form-repeater .event-row {
        grid-template-columns: 35px 1fr 1fr 1fr;
        gap: 8px;
    }
    #eventsRepeater.form-repeater .event-group1,
    #eventsRepeater.form-repeater .event-group2 {
        border-right: 1px solid #eee;
        padding-right: 8px;
    }
}

/* ファイル選択ボタンとファイル名表示 */
#post_thumbnail {
    display: none;
}
.post-thumbnail-button {
    display: inline-block;
    padding: 6px 12px;
    margin: 10px 10px 10px 0;
    border: 1px solid #ccc;
    background: #f0f0f0;
    cursor: pointer;
}
.post-thumbnail-name {
    margin-left: 5px;
}
