html {
    scroll-behavior: auto !important; /* スムーズスクロールを無効化 */
}

.cart-button {
    position: relative;
    display: inline-block;
    border: none;
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -3px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 0.8rem;
}

.m-cart-badge {
    position: absolute;
    top: -3px;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 0.8rem;
}


.heading {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 23px;
    font-weight: normal;
    clear: both;
    text-align: center;
}

/*　フッター */

footer {
    background-color: #4d4d4d;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

footer ul,
footer ol {
    list-style-type: none;
    padding-left: 0;
}

/* 利用規約、法的表記のマークダウン表示 */
.terms-container {
    h1 {
        font-size: 1.1rem !important;
        font-weight: bold !important;
        margin-bottom: 1.5rem !important;
    }

    h2 {
        font-size: 1.0rem !important;
        font-weight: normal !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    h3 {
        font-size: 1.0rem !important;
        font-weight: normal !important;
    }

    h4 {
        font-size: 1.0rem !important;
        font-weight: normal !important;
    }

    h5 {
        font-size: 1.0rem !important;
        font-weight: normal !important;
    }

    ul,
    ol {
        font-size: 1.0rem !important;
        font-weight: normal !important;
        list-style-type: disc !important;
    }

    ul {
        margin-left: 0 !important;
    }

    ol {
        margin-left: 0 !important;
    }
}

/*// テーブル一般*/
th {
    /*font-weight: normal;*/
    background-color: #f9f9f9 !important;
    width: 25%;
}

.width-md {
    width: 100%;
}

.w-md-80 {
    width: 100%;
}

@media (min-width: 768px) {
    .width-md {
        width: 75%;
        margin: 0 auto;
    }

    .w-md-80 {
        width: 75%;
        margin: 0 auto;
    }
}

/*/footer/*/

.undergnav {
    background-color: #4d4d4d;
    margin: 0 auto;
    width: 1110px;
    display: table;
}


.undergnavcontents {
}

.undergnavcontents h5,
.undergnavcontents li {
    margin-top: 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

.undergnavcontents h5 {
    color: #ffe326;
}

.undergnavcontents li {
    margin-left: 0;
}

.undergnavcontents a {
    color: #ffffff;
}

.copyright {
    padding-top: 34px;
    padding-bottom: 34px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 11px;
}

/**/
.autocomplete-dropdown {
    position: absolute;
    z-index: 1050;
    /* Bootstrapのmodalが1050なので同じくらいでOK */
    width: 100%;
}

/*イベントページ*/

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
}

.star-label {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    margin-right: 5px;
}

input[type="radio"]:checked ~ .star-label,
.star-label:hover,
.star-label:hover ~ .star-label {
    color: #ffc107;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.image-item {
    flex: 1 1 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    text-align: center;
}

.main-image,
.sub-image {
    width: 100%;
    height: 300px;
}

@media (max-width: 768px) {
    .image-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .image-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.street,
.seattext {
    border: 0;
    background-color: transparent;
    font-size: xx-small;
    color: #808080;
}

.seat {
    width: 13px;
    height: 13px;
    line-height: 14px;
    font-size: x-small;
    border-radius: 50%;
}

.stage {
    border-color: #ADD8E6;
    background-color: #ADD8E6;
    border-radius: 0 !important;
}

.legend-vacant,
.vacant {
    background-color: #F3F781;
}

.legend-webvacant,
.webvacant {
    background-color: #BEF781;
}

.legend-occupied,
.occupied,
.locked {
    background-color: #D8D8D8;
}

.legend-unsold,
.unsold {
    background-color: #D8D8D8;
    color: #D8D8D8;
    background-image: linear-gradient(
            135deg,
            transparent 0%,
            transparent calc(50% - 1px),
            rgba(0, 0, 0, 0.3) calc(50% - 1px),
            rgba(0, 0, 0, 0.3) calc(50% + 1px),
            transparent calc(50% + 1px),
            transparent 100%
    );
    background-size: 8px 8px;
}

.unset {
    background-color: #f5f5f5;
}

.legend-vacant-selected,
.vacant-selected,
.webvacant-selected {
    background-color: #F78181;
}

.occupied-selected {
    background-color: #819FF7;
}

.cursor-pointer {
    cursor: pointer;
}

#frame div div.clickable.selected {
    background-color: #F78181;
}

#frame div div.clickable.selecting {
    background-color: #819FF7;
}

div[data-new="true"] {
    border: 1px solid #F78181;
}


.clickable {
    cursor: pointer;
}

.selection-box {
    position: absolute;
    border: 1px solid #000;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}


/*座席色分け*/

.bgcolor_0 {
    background-color: #e1bee7 !important;
    color: #000 !important;
}

.bgcolor_1 {
    background-color: #e3f2fd !important;
    color: #000 !important
}

.bgcolor_2 {
    background-color: #dcedc8 !important;
    color: #000 !important
}

.bgcolor_3 {
    background-color: #b2dfdb !important;
    color: #000 !important
}

.bgcolor_4 {
    background-color: #f0f4c3 !important;
    color: #000 !important
}

.bgcolor_5 {
    background-color: #ffe0b2 !important;
    color: #000 !important
}

.bgcolor_6 {
    background-color: #ccff90 !important;
    color: #000 !important
}

.bgcolor_7 {
    background-color: #c5e1a5 !important;
    color: #000 !important
}

#tooltip {
    position: absolute;
    display: none;
    z-index: 1000;
    pointer-events: auto;
    outline: none !important;
    border: none !important;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    min-width: 100px;
}

.tooltip-content:focus,
.tooltip-content:active,
.tooltip-content:hover {
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.95);
}

.tooltip-header {
    font-weight: bold;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 4px;
    color: #000;
}

.tooltip-header-web {
    font-weight: bold;
    color: #000;
}

.tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tooltip-body div {
    display: flex;
    align-items: center;
    color: #555;
}

/* Event Cards and Grids */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-title {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.end-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.performance-card,
.event-card {
    height: 560px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease;
}

.performance-card:hover,
.event-card:hover {
    transform: scale(1.02);
}

/* スマホサイズでカードを100%幅に調整 */
@media (max-width: 480px) {
    .performance-card,
    .event-card {
        padding: 10px;
        width: 100%;
        height: auto;
    }
    .event-info {
        padding: 0 !important;
        padding-left: 0.5rem !important;
        text-align: left !important;
    }

    .event-title {
        font-size: 0.9rem !important;
        font-weight: bold !important;
        text-align: left !important;
        line-height: 1.3 !important;
        height: 3.5rem !important;
    }
    /* スライダー内のアイテムも調整 */
    .slider-item {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* スライダーのコンテナ調整 */
    .events-slider {
        margin: 0;
        width: 100%;
        overflow: hidden;
    }

    /* 画像サイズ調整 */
    .event-image img {
        max-width: 100%;
        height: auto;
    }
}

.event-card-link {
    text-decoration: none;
    color: inherit;
}

.event-status {
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
}

.event-status-red {
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
}

.event-image-responsive {
    height: 370px !important;
}

@media (max-width: 768px) {
    .event-image-responsive {
        height: auto !important;
    }
}

.event-image {
    display: flex;
    justify-content: center;
}

.event-image img {
    width: auto;
    height: 200px;
    object-fit: contain;
    object-position: center;
}

.event-organizer {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.2rem;
    text-align: left;
}

.event-info {
    padding: 0.5rem;
    text-align: left;
}

.event-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    height: 2.9rem;
    text-align: left;
    line-height: 1.3;
}

.event-date,
.event-place {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.05rem;
    text-align: left;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.event-description {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.2rem;
    text-align: left;
}

.btn-gradient-disabled {
    background: #cccccc;
    color: black;
}

/* Top Bar Styles */
.btn-gradient {
    background: linear-gradient(45deg, #ff7eb3, #ff758c, #ff6480);
    color: white;
    border: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #ff6480, #ff758c, #ff7eb3);
}

#search-form-container {
    max-height: 420px;
    transition: max-height 0.5s ease-in-out;
}

.search-hidden {
    display: none;
}


.trix-content {
    h1 {
        font-size: 2rem !important;
        margin-top: 1.5em !important;
        margin-bottom: 0.5em !important;
    }

    /* 必要に応じて他のタグも調整 */
}

.help-page h2 {
    font-size: 1.75rem !important;; /* h3 size */
    font-weight: 300 !important;;
    margin-top: 3rem !important;;
    margin-bottom: 1rem !important;;
    padding-bottom: 0.5rem !important;;
    border-bottom: 2px solid #000 !important;; /* w-100 underline */
    width: 100% !important;;
}

/* Help page specific styles */
.help-page .trix-content h1 {
    font-size: 1.75rem !important;; /* h3 size */
    font-weight: 300 !important;;
    margin-top: 3rem !important;;
    margin-bottom: 1rem !important;;
    padding-bottom: 0.5rem !important;;
    border-bottom: 2px solid #000 !important;; /* w-100 underline */
    width: 100% !important;;
}


.help-page ul {
    padding-left: 0;
}

.help-page li {
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}