html {
    font-size: 10px;
}
body {
    position: relative;
    background: #f7fae7;
    color: #a7642c;
    font-family: "Kaisei Opti", serif;
    font-weight: bold;
    font-size: 1.6rem;
    padding-top: 100px;
    padding-bottom: 20px;
    &::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url(../img/bg_img.webp) center/cover no-repeat;
        opacity: 0.4;
    }
    >* {
        position: relative;
        z-index: 2;
    }
}
@media screen and (max-width: 767px) {
    body {
        padding-top: 80px;
    }
}

@media screen and (min-width: 768px) {
    body {
        padding-top: 130px;
    }
}
i.fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    aspect-ratio: 1;
    height: 16px;
}
#cm a {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 0 20px auto;
    max-width: 350px;
    background: #fff;
    padding: 10px 10px 10px 25px;
    border-radius: 5px;
}
#cm a::before {
    content: "広告";
    position: absolute;
    padding: 5px 0 5px 5px;
    top: 50%;
    left: 0;
    transform: translate(0,-50%);
    color: #a7642c;
    font-size: 1.2rem;
    writing-mode: vertical-rl;
    white-space: nowrap;
}
@media screen and (max-width: 767px) {
    #cm a {
        margin: 0 auto 30px;
    }
}
img {
    max-width: 100%;
}
@media screen and (min-width: 768px) {
    .hp_spOnly {
        display: none;
    }
}
@media screen and (max-width: 767px) {
    html {
        font-size: 8px;
    }
    .hp_pcOnly {
        display: none;
    }
}
.ly_cont {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.ly_cont_sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.header {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px;
    backdrop-filter: blur(5px)brightness(0.95);
    z-index: 100;
    .siteTtl {
        .logo {
            width: 200px;
            border-radius: 5px;
        }
    }
    .header_right {
        .nav {
            .nav_list {
                display: flex;
                gap: 15px;
            }
            .nav_item {
                filter: drop-shadow(0 0 2px #fff);
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .header {
        padding:10px;
        .siteTtl {
            .logo {
                width: 140px;
            }
        }
    }
}
.mvSect {
    margin-bottom: 20px;
    text-align: center;
    .txt {
        font-size: 2.4rem;
    }
}
@media screen and (min-width: 768px) {
    .mvSect {
        margin-bottom: 50px;
    }
}
.searchSect {
    position: relative;
    margin-inline: auto;
    background: #ffffffaa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    max-width: 800px;
    outline: 2px dashed #a7642c;
    outline-offset: -15px;
    form {
        .ttl {
            text-align: center;
            font-size: 2.4rem;
        }
        .filterbox {
            + .filterbox {
                margin-top: 10px;
            }
            .filterbox_ttl {
                margin-bottom: 10px;
                font-size: 1.7rem;
            }
            .label_wrap {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                label {
                    display: flex;
                    align-items: center;
                    margin-bottom: 12px;
                    cursor: pointer;
                    position: relative;
                    padding-left: 22px;
                    user-select: none;
                    font-size: 1.6rem;
                    color: #333;
                }
            }

            /* チェックボックスを隠す */
            label input[type="checkbox"] {
                position: absolute;
                opacity: 0;
                cursor: pointer;
                height: 0;
                width: 0;
            }

            label input[type="date"],
            label input[type="text"] {
                max-width: 300px;
                width: 100%;
                height: 40px;
                background: #fff;
                padding: 10px;
                border-radius: 10px;
                border: #a7642c 2px solid;
                color: #333;
            }
            label input[type="date"] {
                width: 165px;
            }
            .dateInput {
                position: relative;
                width: fit-content;
                /* placeholderの値を表示（firefox以外） */
                /* input[value=""] {
                    &::before {
                        content: attr(placeholder);
                        width: 100%;
                        height: 22px;
                        color: #C2C2C2;
                        line-height: 22px;
                        position: absolute;
                        top: 50%;
                        left: 16px;
                        transform: translateY(-50%);
                    }
                } */

                /* カレンダーアイコンをinput全体に設定する */
                input[type="date"]::-webkit-calendar-picker-indicator {
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    opacity: 0;
                    top: 0;
                    left: 0;
                }


                /* 空欄の時、初期表示値を非表示にする */
                /* input[type=date][value=""]::-webkit-datetime-edit-fields-wrapper {
                    display: none;
                } */

                /* デザインで指定されているカレンダーアイコンを表示する */
                &::after {
                    content: "";
                    width: 20px;
                    height: 20px;
                    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M120 0c13.3 0 24 10.7 24 24l0 40 160 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-40c0-13.3 10.7-24 24-24zm0 112l-56 0c-8.8 0-16 7.2-16 16l0 48 352 0 0-48c0-8.8-7.2-16-16-16l-264 0zM48 224l0 192c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-192-352 0z'/%3E%3C/svg%3E") center/contain no-repeat;
                    position: absolute;
                    top: 50%;
                    right: 12px;
                    transform: translateY(-50%);
                    pointer-events: none;
                    filter: brightness(0) saturate(100%) invert(37%) sepia(99%) saturate(354%) hue-rotate(345deg) brightness(94%) contrast(90%);
                }
                
                @-moz-document url-prefix() {
                    &::after {
                        display: none;
                    }
                }
            }

            /* カスタムチェックボックス */
            .checkmark {
                position: absolute;
                left: 0;
                top: 0;
                height: 18px;
                width: 18px;
                background-color: #fff;
                border: 2px solid #a7642c;
                border-radius: 6px;
                transition: all 0.2s;
            }

            /* チェック時のスタイル */
            label input:checked ~ .checkmark {
                background-color: #a7642c;
                border-color: #a7642c;
            }

            /* チェックマーク */
            .checkmark:after {
                content: "";
                position: absolute;
                display: none;
            }

            label input:checked ~ .checkmark:after {
                display: block;
            }

            label .checkmark:after {
                left: 5px;
                top: 0px;
                width: 5px;
                height: 11px;
                border: solid white;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }
        }
        .searchBtn {
            background: #a7642c;
            color: #fff;
            display: block;
            padding: 15px 40px;
            border-radius: 10px;
            min-width: 150px;
        }
        .btnWrap {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin: 20px auto 0;
        }
        .clearBtn {
            position: absolute;
            bottom: 25px;
            right: 25px;
            color: #333333b8;
        }
    }
}
.resultSect {
    .result_txt {
        padding-top: 80px;
        margin-top: -50px;
        margin-bottom: 40px;
        font-size:1.8rem;
    }
    .eventList {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .eventList_item {
        overflow: hidden;
        background: #fef6c3;
        border-radius: 10px;
        transition: all 0.3s;
        border: 2px solid #a7642c;
        max-width: 580px;
        .img {
            position: relative;
            width: 100%;
            aspect-ratio: 16/9;
            overflow: hidden;
            &::after {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: var(--bgUrl);
                background-position: center;
                background-size: cover;
                background-color: #fff;
                filter: blur(5px);
                z-index: 1;
            }
            .inner {
                position: relative;
                display: flex;
                align-items: center;
                object-fit: contain;
                width: 100%;
                height: 100%;
                z-index: 2;
            }
            img {
                max-width: 100%;
                max-height: 100%;
                margin: auto;
                background: #fff;
            }
        }
        .eventLink {
            display: block;
            height: 100%;
        }
        article {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .txtArea {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            gap: 8px;
            padding: 20px;
            .eventTtl {
                font-size: 2.0rem;
                font-weight: 700;
                color: #333;
            }
            .eventDate {
                font-size: 1.8rem;
                font-weight: bold;
            }
            .tag-list {
                font-size: 1.2rem;
                gap: 3px;
            }
            .info {
                position: relative;
                padding: 10px;
                border: 1px dashed #a7642c;
                border-radius: 5px;
                background:#fffadb;
                margin-top: auto;
                .info_item:not(:first-child) {
                    margin-top: 5px;
                }
                .event_tag_list {
                    display: flex;
                    gap: 5px;
                    flex-wrap: wrap;
                    margin-top: 5px;
                    font-size: 1.4rem;
                }
                .event_tag_item {
                    &::before {
                        content: "#";
                    }
                }
                .event_type {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                }
                .event_type_icon {
                    width: 18px;
                    height: 18px;
                    object-fit: contain;
                    object-position: center;
                    filter: invert(34%) sepia(94%) saturate(350%) hue-rotate(346deg) brightness(104%) contrast(93%);
                }
            }
        }
        &:hover {
            transform: scale(1.01);
        }
    }
}
.site-footer {
    margin-top: 40px;
    p {
        text-align: center;
    }
}

.upcoming {
    --stateColor: #3498DB;
}
.ended {
    --stateColor: #C0392B;
}
.ending_soon {
    --stateColor: #E67E22;
}
.ongoing {
    --stateColor: #11b157;
}
.event_label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 3px;
    top: 5px;
    right: 5px;
    padding:2px 5px;
    border:1px solid var(--stateColor);
    color: var(--stateColor);
    background: #fff;
    border-radius: 5px;
    font-size: 1.3rem;
    &::before {
        content: "";
        position: relative;
        display: block;
        width: 7px;
        height: 7px;
        background: var(--stateColor);
        border-radius: 50%;
    }
}
.tag-list {
    font-size: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
@media screen and (max-width: 768px) {
    .resultSect .eventList_item .img {
        /* margin-top: 15px; */
        width: 100%;
        margin-inline: auto;
        /* &::after {
            display: none;
        } */
    }
    .resultSect {
        & .eventList_item {
            .txtArea {
                padding: 15px;
                & .info {
                    .event_type_icon {
                        width: 16px;
                        height: 16px;
                    }
                }
            }
        }
    }
}
/* ------------ */
/* ----- 基本レイアウト ----- */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    color: #333;
    line-height: 1.6;

    h1.entry-title {
        font-size: 2.6rem;
        margin-bottom: 1rem;
        color: #a7642c; /* タイトルにアクセントカラー */
    }

    .post-meta span {
        font-size: 1.4rem;
        color: #666;
    }

    .event-video {
        margin-top: 40px;
        margin-bottom: 40px;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    /* ----- 画像 ----- */
    .event-img {
        margin: 2rem auto;
        text-align: center;
    } 
    .eventDate {
        font-size: 2rem;
    }

    .event-img img {
        max-width: 100%;
        max-height: 450px;
        border-radius: 8px;
        border: 2px solid #a7642c; /* 枠線にアクセントカラー */
    }

    /* ----- イベント情報 ----- */
    .event-info {
        position: relative;
        background-color: #fff7f0; /* 薄いアクセント背景 */
        border-left: 5px solid #a7642c; /* 左のラインにアクセントカラー */
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 4px;
    }

    .event-info .event-details p {
        margin: 0.5rem 0;
        color: #a7642c;
    }

    .event-info .event-details {
        color: #a7642c;
        a {
            text-decoration: underline;
        }
    }

    .event-info .event-date time {
        font-weight: bold;
        color: #a7642c; /* 日付にアクセント */
    }

    .prefecture,
    .event_type,
    .event_price {
        margin-right: 1rem;
        font-weight: 700;
        color: #a7642c;
    }

    /* ----- 記事本文 ----- */
    .entry-content {
        margin: 2rem 0;
        font-size:16px;
    }

    .entry-content p {
        margin-bottom: 1rem;
    }

    /* ----- カテゴリ / タグ ----- */
    .post-tax {
        margin-top: 2rem;
        font-size: 1.4rem;
        color: #666;
    }

    .post-tax p {
        margin-bottom: 0.5rem;
        color: #a7642c;
    }

    /* ----- リンク ----- */
    a {
        color: #a7642c;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
    .acf-map {
        margin-top: 30px;
    }
    .location_embed {
        border: 2px solid #a7642c;
        border-radius: 5px;
        margin-bottom: 30px;
        overflow: hidden;
        iframe {
            height: 370px;
            width: 100%;
        }
    }
    .event_type {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .event_type_icon {
        width: 18px;
        height: 18px;
        object-fit: contain;
        object-position: center;
        filter: invert(34%) sepia(94%) saturate(350%) hue-rotate(346deg) brightness(104%) contrast(93%);
    }
}
/* ----- レスポンシブ ----- */
@media screen and (max-width: 768px) {
    .single-post {
        padding: 0px 20px 0;
        .event-video {
            margin-top: 20px;
        }
        .event-img img {
            max-height: 350px;
        }
    }
    .event-info {
        padding: 0.8rem 1rem;
    }
}

a.el_btn,button.el_btn,.smf-button-control__control {
    display: block!important;
    width: fit-content;
    margin-bottom: 30px;
    margin-inline: auto;
    background-color: #a7642c!important;
    background-image: none !important;
    color: #fff !important;
    min-width: 250px;
    text-align: center;
    padding: 15px 40px !important;
    border-radius: 10px!important;
    border: 2px solid transparent !important;
    transition: all 0.3s;
    &:hover {
        background-color: #fff !important;
        color: #a7642c !important;
        border: 2px solid #a7642c !important;
        text-decoration: none;
    }
}
@media screen and (max-width: 768px) {
    a.el_btn {
        min-width: 200px;
        padding: 10px 30px;
    }
}
a.el_btn__type2,button.el_btn__type2,button[data-action="back"] {
    background: #fff!important;
    color: #a7642c!important;
    border: 2px solid #a7642c!important;
    &:hover {
        background-color: #a7642c !important;
        color: #fff !important;
    }
}

.el_pageTtl {
    font-size: 2.4rem;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}
.smf-radio-buttons-control__control {
    display: flex!important;
    flex-wrap: wrap!important;
    align-items: center!important;
    gap: 20px!important;
    margin-top: 0 !important;
}
.smf-radio-button-control {
    display: flex!important;
    align-items: center!important;
}
.smf-item__label__text {
    font-size: 1.8rem!important;
}
.snow-monkey-form {
    --_color-text: #a7642c !important;
    input,textarea,.smf-placeholder {
        font-family: noto-sans-jp, sans-serif !important;
        font-size: 1.6rem !important;
        color: #333 !important;
        font-weight: normal;
    }
    .smf-form .smf-radio-button-control__control {
        margin-top: 0 !important;
    }
}
.smf-form .smf-radio-button-control__control:checked {
    background: #a7642c !important;
    border-color: #a7642c !important;
}


/* ページネーション全体 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 8px;
    font-family: sans-serif;
}

/* 各リンク */
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0;
    border-radius: 6px;
    text-decoration: none;
    color: #a7642c;
    transition: all 0.2s;
}
.pagination a {
    border: 1px solid #a7642c;
    background: #fff;
    color: #a7642c;
}

/* ホバー時 */
.pagination a:hover {
    background-color: #a7642c; /* あなたのテーマカラー */
    color: #fff;
    border-color: #a7642c;
}

/* 現在のページ */
.pagination .current {
    background-color: #a7642c;
    color: #fff;
    border-color: #a7642c;
    font-weight: bold;
    pointer-events: none;
}

/* 前へ・次へリンク */
.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/* スマホ対応（必要に応じて） */
@media screen and (max-width: 480px) {
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 14px;
    }
}
#eventSearchForm:has(input[name="allday"]:checked) .filterbox label:has(input[name="date"]) {
    opacity: 0.3;
    pointer-events: none;
}