@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* # TODO: SPファーストで記述したがPCファーストに徐々に修正しています*/
:root {
    --text-color: #1f1f1f;
    --text-color-light: #555;
    --text-color-gray: #ccc;
    --text-color-muted: #888;

    --shadow-color: #cfcfcf;

    /* theme */
    --primary-color: #1f1f1f;
    --secondary-color: #4a90e2;

    /* background */
    --bg-color: #F8F8F8;
    --bg-secondary-color: #f5f5f5; /* 薄いグレーの背景 */
    --bg-blue-color: #eef7fc; /* 薄い青系の背景 */
    --tag-color: #d5e1e8;
    --border-color: #e0e0e0;
    --border-dark-color: #b0b0b0; /* より濃いボーダー */

    /* button */
    --btn-action: var(--original-btn-action, var(--blue));
    --btn-action-hover: var(--original-btn-action, var(--dark-blue));
    --btn-disabled: #a0a0a0; /* 無効ボタンの色 */
    --btn-danger: #d9534f; /* 削除・警告用のボタン */
    --btn-danger-hover: #c9302c;

    /* colors */
    --blue: #007bff;
    --dark-blue: #0056b3;
    --light-blue: #add8e6; /* 明るいブルー */
    --green: #28a745; /* 成功・OKボタン用 */
    --dark-green: #1e7e34;
    --yellow: #ffc107; /* 警告・注意喚起 */
    --orange: #fd7e14; /* 強調用 */
    --red: #dc3545; /* エラー・警告 */
    --dark-red: #a71d2a;

    /* カレンダー */
    --pale-blue: #dff3ff; /* 水色 */
    --pale-pink: #ffe3e3; /* ピンク */
    --pale-green: #e3f7df; /* 薄いグリーン */

    /*basic*/
    --font-family: var(--original-font-famiry, "'Noto Sans JP', sans-serif");
    --font-size: var(--original-font-size, 16px);
    --box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: var(--font-size);
    margin: 0;
    padding: 0;
}

/* モーダル表示時に背景スクロールを無効化 */
body.modal-open {
    overflow: hidden;
}

#wrapper {
    padding-top: 80px;
}

.mice-contents {
    max-width: 1000px;
    margin: 0 auto;

    h2 {
        font-size: 24px;
        font-weight: bold;
    }

    h3 {
        font-size: 16px;
        font-weight: bold;
        margin-top: 32px;
        padding: 8px 12px;
        margin-bottom: 12px;
        background-color: var(--bg-secondary-color);
        border-left: 4px solid var(--primary-color);
        color: var(--text-color);
    }

    p {
        color: var(--text-color);
    }

    .forPc {
        @media screen and (max-width: 768px) {
            display: none;
        }
    }

    .mice-section {
        padding: 0 8px;

        .mice-section-title {
            color: var(--text-color);
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 12px;

            @media screen and (max-width: 768px) { /*SP*/
                margin-bottom: 20px;
            }
        }

        .mice-section-content {
            .display-count {
                font-size: 14px;
                padding: 0 14px;
                margin-bottom: 4px;
            }
        }

        .list-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 4px;
            margin-top: 20px;
            padding: 0 4px;

            .show-count {
                font-size: 14px;
            }

            .sort-select {
                appearance: none;
                -webkit-appearance: none;
                -moz-appearance: none;
                background: var(--bg-secondary-color);
                border-radius: 30px;
                padding: 6px 0;
                font-size: 14px;
                font-weight: bold;
                color: var(--text-color-light);
                cursor: pointer;
                transition: all 0.3s ease;
                outline: none;
                width: 120px;
                text-align: center;
                border: 1px solid transparent;
            }

            .sort-select:hover {
                background: var(--secondary-color);
                color: white;
            }

            .sort-select:focus {
                border-color: var(--primary-color);
                box-shadow: var(--box-shadow);
            }
        }

        .facility-list {
            min-height: 120px;
        }

        .information-item {
            display: flex;
            flex-direction: row;
            gap: 20px;
            padding: 16px;
            margin-bottom: 16px;
            border-radius: 4px;
            background-color: #fff;

            @media screen and (max-width: 768px) { /*SP*/
                flex-direction: column;
                gap: 16px;
            }

            &.item-detail {
                border: none;
                flex-direction: row;
                gap: 40px;
                padding: 16px;

                @media screen and (max-width: 768px) { /*SP*/
                    padding: 0;
                    max-height: 320px;
                }
            }

            &.item-col {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            .information-row {
                display: flex;
                gap: 16px;
                padding: 0 16px;
                flex-direction: row;

                @media screen and (max-width: 768px) { /*SP*/
                    flex-direction: column;
                }
            }

            .information-area {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                width: 100%;
            }

            .plan-info,
            .facility-info {
                display: flex;
                flex-direction: column;
                gap: 12px;
                padding: 12px 0;
                width: 100%;
            }
            .plan-id,
            .facility-id {
                font-size: 12px;
                color: var(--text-color-light);
            }
            .plan-name,
            .facility-name {
                font-size: 24px;
                font-weight: bold;
                color: var(--secondary-color);
                white-space: pre-line;
                word-break: break-all;

                @media screen and (max-width: 768px) { /*SP*/
                    font-size: 18px;
                }
            }
            .plan-attention,
            .facility-attention {
                font-size: 14px;
                color: var(--dark-red);
                white-space: pre-line;
                word-break: break-all;
            }
            .plan-catch,
            .facility-catch {
                font-size: 14px;
                color: var(--text-color-light);
                white-space: pre-line;
                word-break: break-all;
            }
            .plan-budget,
            .facility-budget {
                font-size: 14px;
                white-space: pre-line;
                word-break: break-all;
            }
            .plan-tags,
            .facility-budget {
                display: flex;
                gap: 8px;
                flex-wrap: wrap;
            }
            .plan-tags .tag,
            .facility-tags .tag {
                font-size: 12px;
                color: var(--secondary-color);
                font-weight: bold;
                background-color: var(--pale-blue);
                border-radius: 4px;
                padding: 4px 8px;
                border: 1px solid var(--secondary-color);
            }
            .plan-capacity,
            .facility-capacity {
                display: flex;
                flex-wrap: wrap;
                font-size: 14px;
                gap: 12px;
                word-break: break-all;
            }
            .plan-footer,
            .facility-footer {
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                align-items: flex-end;
                margin-top: 16px;
                gap: 12px;
                padding-top: 12px;
                flex-direction: row;
                word-break: break-all;

                @media screen and (max-width: 768px) { /*SP*/
                    padding-top: 0;
                    flex-direction: column;
                }
            }
            .plan-price {
                width: calc(100% - 118px);
                margin-bottom: 0;
                font-size: 20px;
                font-weight: bold;
                color: var(--text-color-light);

                .annotation {
                    font-size: 12px;
                }

                @media screen and (max-width: 768px) { /*SP*/
                    width: 100%;
                }
            }
            .facility-area {
                font-size: 14px;
                font-weight: normal;
                word-break: break-all;

                .annotation {
                    font-size: 12px;
                    white-space: pre-line;
                    word-break: break-all;
                }
            }
            .facility-price {
                font-size: 14px;
                font-weight: normal;
                word-break: break-all;

                .annotation {
                    font-size: 12px;
                    white-space: pre-line;
                    word-break: break-all;
                }
            }
            .plan-detail-btn,
            .facility-detail-btn {
                padding: 8px 16px;
                font-size: 14px;
                color: #fff;
                background-color: var(--btn-action);
                border: none;
                border-radius: 4px;
                cursor: pointer;
                transition: background-color 0.3s;
            }
            .plan-detail-btn:hover,
            .facility-detail-btn:hover {
                background-color: var(--btn-action-hover);
            }
            .plan-image {
                width: 100px;
                height: auto;
                padding-top: 12px;

                @media screen and (max-width: 768px) { /*SP*/
                    padding-top: 0;
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .other-facilities {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 8px;
                .image-area {
                    height: 75px;

                    img {
                        width: 100%;
                        height: 75px;
                        object-fit: cover;
                    }
                }
                .image-text {
                    font-size: 12px;
                    color: var(--text-color-light);
                    white-space: pre-line;
                    word-break: break-all;
                }
            }
            .bottom-button-row {
                text-align: center;
                margin-top: 80px;
            }
            .contents-inner {
                padding: 0 14px;
                word-break: break-all;
            }
        }
    }

    .filter-item {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        justify-content: flex-start;

        label {
            width: 4em;
        }

        &.for-price {
            width: 100%;
            display: flex;
            flex-direction: column;

            label {
                align-self: flex-start;
            }
        }

        .text{
            font-size: 14px;
            vertical-align: text-top;
        }

        .input-container span {
            font-size: 12px;
        }
    }

    .filter-select,
    .filter-button {
        font-size: 16px;
        padding: 8px 12px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
    }

    .filter-divider {
        display: none;
    }

    .filter-ui {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        font-size: 16px;
        background: #fff;
        padding: 16px;
        border-radius: 8px;
        gap: 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: auto;
        padding: 16px;
        gap: 16px;
        box-shadow: var(--box-shadow);
        margin-top: 12px;

        @media screen and (max-width: 768px) {
            border: none;
        }
    }

    .filter-item {
        width: calc(50% - 16px - 8px);
        @media screen and (max-width: 768px) {
            width: 100%;

        }
    }

    .filter-divider {
        display: block;
        width: 1px;
        height: 40px;
        background-color: var(--border-color);

        @media screen and (max-width: 768px) {
            display: none;
        }
    }

    .filter-select,
    .filter-button {
        width: 100%;
    }
    .filter-controls {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-top: 12px;
    }

    .clear-filters-btn {
        background-color: var(--btn-danger);
        color: white;
        padding: 8px 14px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
    }

    .clear-filters-btn:hover {
        background-color: var(--btn-danger-hover);
    }
}

.btn-row {
    display: flex;
    text-align: right;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    cursor: pointer;
    color:var(--secondary-color);
    transition: opacity 0.3s ease-in;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    height: 40px;

    &:hover {
        opacity: 0.7;
    }

    &.btn-primary {
        background-color: var(--secondary-color);
        color: #fff;
    }

    &.btn-line {
        border: 1px solid var(--text-color);
        transition: all 0.3s ease-in-out;

        &:hover {
            background-color: var(--text-color);
            color: #fff;
        }
    }

    &.btn-right {
        margin-left: auto;
    }

    &.btn-search {
        font-size: 14px;
    }

    &.btn-clear {
        background-color: #fff;
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        height: 34px;
        margin-left: 12px;
        font-size: 12px;
        cursor: pointer;
        transition: background-color 0.3s ease;

        &:hover {
            background-color: var(--bg-color);
        }
    }

    &.btn-back {
        background-color: var(--bg-secondary-color);
        color: var(--text-color);
        border: 1px solid var(--border-dark-color);
        font-weight: bold;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;

        &:hover {
            background-color: var(--border-dark-color);
            color: var(--text-color-light);
        }
    }

}

.sub-title {
    font-size: 14px;
    border-bottom: 1px solid;
    margin-bottom: 20px;
    white-space: pre-line;
    word-break: break-all;
}

.tar {
    text-align: right;
}

.tal {
    text-align: left;
}

.tac {
    text-align: center;
}

.ma0 {
    margin: 0 auto;
}

.v-middle {
    vertical-align: middle;
}

/*画像スライド*/
/* Slickスライドのドット */
.slick-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.slick-dots li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slick-dots li button {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slick-dots li.slick-active button {
    background-color: var(--text-color-light);
    transform: scale(1.1);
}

.slick-dots li button:hover {
    background-color: #fff;
}

.slick-slide img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}
/*画像スライドのスタイル*/
/*サムネイル付きスライド*/
.sliderArea {
    width: 100%;

    img {
        width: 400px;
        height: 280px;
        object-fit: cover;
    }
}

/* slickスライダー本体 */
.image-slider {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 320px;
    overflow: hidden;

    @media screen and (max-width: 768px) {/*SP*/
        height: auto;
    }
}

.image-slider .slick-list,
.image-slider .slick-track {
    height: 100% !important;
}

.image-slider .slick-slide {
    height: 100% !important;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

/* Slick矢印全体のボタンデザイン */
.slick-prev,
.slick-next {
    z-index: 10;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    position: absolute;
    transform: translateY(-25%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(255, 255, 255, 1);
}

.slick-prev { left: 10px; top: 50%;bottom: 50%;}
.slick-next { right: 10px; top: 50%;bottom: 50%;}

.slick-prev::before,
.slick-next::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: #333;
}

.slick-prev::before {
    content: "\f104";
}

/* 右矢印 */
.slick-next::before {
    content: "\f105";
}

.slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 6px;
    padding-top: 10px;
}

.slick-dots li {
    width: 8px;
    height: 8px;
}

.slick-dots li button {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--shadow-color);
    border: none;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    transition: background 0.3s;
}

.slick-dots li.slick-active button {
    background: var(--text-color-light);
}

/*デフォルトのスタイルを打ち消し*/
.slick-dots + .slick-dots {
    display: none !important;
}


/*imageギャラリー（正方形）*/
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
    padding: 0 14px;

    img {
        width: 100%;
        height: 100px;
        object-fit: cover;
    }

    .image-text {
        font-size: 12px;
        color: var(--text-color-light);
        white-space: pre-line;
        word-break: break-all;
    }

    .image-gallery-item {
        cursor: pointer;
    }
}

@media screen and (min-width: 769px) {
    .show-more {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    /* スマホの場合4枚目以降を隠す */
    .image-gallery .image-gallery-item:nth-child(n+4) {
        display: none;
    }

    /* 「もっと見る」ボタン */
    .show-more {
        display: block;
        text-align: center;
        padding: 10px;
        background: #fff;
        cursor: pointer;
        border: 1px solid var(--border-color);
        border-radius: 5px;
    }

    /* すべて表示した場合 */
    .image-gallery.show-all .image-gallery-item {
        display: block;
    }
}

/*FUWELテンプレの下部固定フッターの非表示*/
#mice_facility .Nav-Reservation.column,
#mice_facility .Nav-Reservation_sp {
    display: none!important;
}

#mice_plan .Nav-Reservation.column,
#mice_plan .Nav-Reservation_sp {
    display: none!important;
}

/*FUWELテンプレの打ち消し*/
.second .pageHeader .titleBlock {
    padding: 16px 0;
}
.second .pageHeader .titleBlock h2 {
    font-family: inherit;
}

/*アイコン*/

.icon-style {
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left;
    background-size: 14px;

    &.stand {
        background-image: url('/assets/img/mice/stand.svg');
    }
    &.seat {
        background-image: url('/assets/img/mice/seat.svg');
    }
    &.search {
        background-image: url('/assets/img/mice/search.svg');
    }
    &.sort {
        background-image: url('/assets/img/mice/sort.svg');
    }
    &.people {
        background-image: url('/assets/img/mice/people.svg');
    }
    &.area {
        background-image: url('/assets/img/mice/area.svg');
    }
    &.calendar {
        background-image: url('/assets/img/mice/calendar.svg');
    }
    &.price {
        background-image: url('/assets/img/mice/money.svg');
    }
}

/*パンくずリスト*/
.breadcrumb {
    display: none;
    padding: 10px 20px;
    background-color: var(--bg-color);

    nav {
        width: 920px;
        margin: 0 auto;
    }
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    font-size: 12px;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li::after {
    content: '>';
    margin: 0 5px;
    color: var(--text-color);
}

.breadcrumb li:last-child::after {
    content: '';
}

/* 問い合わせボタン */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-image: linear-gradient(90deg, #2af598 0%, #009efd 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    z-index: 9999;

    @media screen and (max-width: 768px) {
        gap: 0;
    }
}

.floating-icon-img {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('/assets/img/mice/contact.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    vertical-align: middle;
}

.floating-button:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
}

.floating-icon {
    font-size: 20px;
}

.floating-text {
    font-weight: bold;
    color: #fff;
    font-size: 16px;

    @media screen and (max-width: 768px) {
        font-size: 14px;
    }
}

/*スクロールアニメーション*/
.fade-in-up {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in-up.active {
    opacity: 1;
}

/*ボタンのローディング*/

.loading-btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-color-muted);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.loading-btn.loading .label {
    opacity: 0.5;
}
.loading-btn.loading .spinner {
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
