@charset "UTF-8";

/* ==========================================================================
   1. 全体コンテナ・基本レイアウト
   ========================================================================== */

/* 主催者絞り込みエリア */
.filter-area {
    background: #fff;
    padding: 2.0rem 1rem;
    margin: 3.0rem auto;
    border: 0.2rem solid #e0e0e0;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 90.0rem;
    flex-wrap: wrap;
}

.filter-label-title {
    font-weight: bold;
    font-size: 2rem;
    color: #333;
}

.filter-label-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-item {
    cursor: pointer;
    background: #fff;
    padding: 0 2.0rem;
    height: 4.4rem;
    border-radius: 5.0rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: bold;
    font-size: 2rem;
    transition: all 0.2s ease;
    border: 0.2rem solid transparent;
    white-space: nowrap;
}

.filter-item span {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

/* チェックアイコン */
.filter-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 2.4rem;
    height: 2.4rem;
    background-image: url('../assets/icon_24px_check_white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 0.4rem 0 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-item:has(input:checked) input[type="checkbox"] {
    opacity: 1;
}

.filter-item:not(:has(input:checked)) span {
    transform: translateX(-1.4rem);
}

/* 主催者別の配色設定 */
.filter-item.tokyo {
    border-color: var(--color-ren);
    color: var(--color-red);
}

.filter-item.tokyo:has(input:checked) {
    background: var(--color-red);
    color: #fff;
}

.filter-item.other {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.filter-item.other:has(input:checked) {
    background: var(--color-navy);
    color: #fff;
}

.filter-item.private {
    border-color: var(--color-brown);
    color: var(--color-brown);
}

.filter-item.private:has(input:checked) {
    background: var(--color-brown);
    color: #fff;
}

/* ==========================================================================
   2. カレンダー・日付検索エリア
   ========================================================================== */
.date-picker-wrapper {
    text-align: center;
    margin-bottom: 3.0rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.calendar-btn {
    background-color: var(--color-green);
    color: #fff;
    border: none;
    padding: 0.8rem 3.2rem;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 5.0rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.2s ease;
}

.calendar-btn img {
    width: 2.4rem;
}

.calendar-btn:hover {
    opacity: 0.9;
    transform: translateY(0.1rem);
}

.flatpickr-calendar {
    width: 30.8rem !important;
    margin: 1.0rem auto 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 1.0rem 2.0rem rgba(0, 0, 0, 0.1);
    border: none;
}

.dayContainer {
    width: 30.8rem !important;
    min-width: 30.8rem !important;
    max-width: 30.8rem !important;
    justify-content: flex-start !important;
}

.flatpickr-day {
    flex-basis: 14.2857% !important;
    max-width: 4.4rem !important;
    height: 4.4rem !important;
    line-height: 4.4rem !important;
    margin: 0 !important;
    color: #C5C5C5 !important;
}

/* 前月・翌月の日付を非表示（スペースは維持） */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    visibility: hidden !important;
    /* 物理的なスペースを残したまま消す */
    pointer-events: none !important;
    /* クリックできないようにする */
}

.flatpickr-day.has-event {
    background: #1b752b !important;
    color: #fff !important;
    border-radius: 50% !important;
    border: none !important;
    font-weight: bold;
    transform: scale(0.85);
}

#date-picker-input {
    opacity: 0;
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
    position: absolute;
    pointer-events: none;
}

/* 曜日全体のコンテナの幅を固定 */
.flatpickr-weekdays {
    width: 30.8rem !important;
    /* .dayContainerの幅と合わせる */
    background: transparent;
}

/* 曜日1つ1つの幅を日付（14.28%）と完全に一致させる */
span.flatpickr-weekday {
    display: inline-block !important;
    flex: 1 !important;
    width: 14.28% !important;
    max-width: 14.28% !important;
    margin: 0 !important;
    text-align: center !important;
}

/* 曜日エリア自体の余白をリセット */
.flatpickr-weekdaycontainer {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
}




/* ==========================================================================
   3. 月別タブ・過去イベントアンカー
   ========================================================================== */
.month-tabs {
    display: flex;
    margin-bottom: 3.0rem;
    border-bottom: solid var(--color-mosgreen) 0.4rem;
}

.month-tabs div {
    flex: 1;
    height: 5.5rem;
    background-color: var(--color-mosgreen);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.2rem;
    font-weight: bold;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.5;
    border-radius: 1.2rem 1.2rem 0 0;
}

.month-tabs div.is-active {
    opacity: 1;
}

.month-tabs div:last-child {
    margin-right: 0;
}

.past-anchor-list {
    display: none;
    margin: 1.5rem 0 3.0rem;
    padding: 0 2.0rem;
    font-size: 1.4rem;
    color: #666;
    text-align: left;
}

.past-anchor-list a {
    color: #aa7d49;
    text-decoration: none;
    margin: 0 0.4rem;
    font-weight: bold;
}

.past-year-label {
    display: inline-block;
    font-weight: bold;
    color: #333;
    margin: 0 0.5rem 0 1.2rem;
}

.past-year-label:first-of-type {
    margin-left: 0.5rem;
}

/* ==========================================================================
   4. イベントリスト・カードデザイン
   ========================================================================== */
.event-header-row,
.event-item {
    display: flex;
    width: 100%;
}

.event-header-row {
    margin-bottom: 1.0rem;
}

.event-item {
    margin-bottom: 0.8rem;
    transition: opacity 0.3s;
}

.event-item.is-hidden {
    display: none !important;
}

/* 左側：基本設定 */
.header-date,
.date-box {
    width: 19.0rem;
    flex-shrink: 0;
    color: #fff;
    box-sizing: border-box;
}

/* ヘッダーの初期色 */
.header-date {
    background-color: var(--color-mosgreen);
    padding: 1.6rem 0;
    text-align: center;
    font-size: 3rem;
    border-radius: 4px 0 0 4px;
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4.0rem 0;
    border-radius: 4px 0 0 4px;
}

/* 右側：コンテンツボックス */
.header-content,
.content-box {
    flex: 1;
    border: 0.3rem solid var(--color-mosgreen);
    margin-left: -0.3rem;
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mosgreen);
    font-weight: bold;
    font-size: 2.2rem;
}

.content-box {
    display: flex;
    padding: 3.0rem;
}

/* 日付の数字デザイン */
.date-display {
    position: relative;
    width: 10.0rem;
    height: 14.0rem;
    margin-bottom: 1.5rem;
}

.date-display::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 0.3rem;
    background-color: #fff;
    transform: rotate(-45deg);
}

.date-display .month,
.date-display .day {
    position: absolute;
    font-size: 4.2rem;
    font-family: 'Libre Baskerville', serif;
    line-height: 1;
}

.date-display .month {
    top: 0.5rem;
    left: 0.5rem;
}

.date-display .day {
    bottom: 0.5rem;
    right: 0.5rem;
}

.organizer-label {
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.5;
    padding: 0 1.5rem;
}

.info-area {
    flex: 1;
    padding-right: 2.0rem;
}

.info-area h2 {
    font-size: 1.5rem;
    margin-bottom: 2.0rem;
    line-height: 1.4;
}

.info-area h2 a {
    text-decoration: underline;
    font-weight: bold;
    font-size: 2.2rem;
}

.info-list {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #333;
}

.image-area {
    width: 20.0rem;
    flex-shrink: 0;
}

.image-area img {
    width: 100%;
    height: auto;
    display: block;
}

/* タブ切り替え用の表示制御 */
.event-month-content {
    display: none;
}

.event-month-content.is-active {
    display: block;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.0rem;
}

.btn-detail,
.btn-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 4.8rem 0.6rem 3.0rem;
    /* 右側にアイコン用の余白を確保 */
    border: 0.2rem solid #8ab4d0;
    border-radius: 5.0rem;
    color: var(--color-linkblue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
}

/* 既存の '>' を画像に置き換え */
.btn-detail::after,
.btn-report::after {
    content: "";
    /* テキストを消去 */
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    /* 垂直中央揃え */
    width: 1.8rem;
    /* 18px */
    height: 1.8rem;
    /* 18px */

    /* 画像のパス指定 */
    background-image: url('../assets/icon_18px_arrow_right_linkblue.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-detail:hover,
.btn-report:hover {
    opacity: 0.8;
}

/* 赤字のお知らせ */
.event-red-note {
    color: #ff0000;
    margin-top: 1.5rem;
    margin-bottom: 1.0rem;
    line-height: 1.6;
}


/* 配色設定 */
.event-item.type-tokyo .date-box {
    background-color: var(--color-red);
}

.event-item.type-tokyo .content-box {
    border-color: var(--color-red);
}

.event-item.type-tokyo .info-area h2 a {
    color: var(--color-red);
}

.event-item.type-other .date-box {
    background-color: var(--color-navy);
}

.event-item.type-other .content-box {
    border-color: var(--color-navy);
}

.event-item.type-other .info-area h2 a {
    color: var(--color-navy);
}

.event-item.type-private .date-box {
    background-color: var(--color-brown);
}

.event-item.type-private .content-box {
    border-color: var(--color-brown);
}

.event-item.type-private .info-area h2 a {
    color: var(--color-brown);
}



/* カレンダー下部の案内エリア（一番下用） */
.calendar-info-banner {
    text-align: center;
    margin-top: 4.0rem;
    /* 上のリストとの間隔 */
    margin-bottom: 4.0rem;
    /* フッターとの間隔 */
}

.new-info-text {
    font-size: 1.6rem;
    margin-bottom: 2.0rem;
    font-weight: nomal;
}

.new-info-text a {
    color: var(--color-linkblue);
    text-decoration: underline;
}

/* インスタグラムのリンク */
.link-insta {
    color: var(--color-linkblue);
    text-decoration: underline;
    font-weight: bold;
    position: relative;
    padding-right: 2.2rem;
    /* アイコン分の余白 */
    display: inline-block;
}

.link-insta::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 1.8rem;
    background-image: url('../assets/icon_20px_open_linkblue.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* 掲載希望ボタン（右矢印） */
.btn-request {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-green);
    color: #fff;
    padding: 1.2rem 6.0rem 1.2rem 4.0rem;
    /* 右を少し広めに */
    font-size: 2.0rem;
    font-weight: bold;
    border-radius: 3.0rem;
    text-decoration: none;
    position: relative;
    margin-bottom: 4.0rem;
    transition: opacity 0.2s;
}

.btn-request::after {
    content: "";
    position: absolute;
    right: 2.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 1.8rem;
    background-image: url('../assets/icon_18px_arrow_right_white.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* 下部の薄桃色ボックス */
.other-calendar-box {
    background-color: #fdf5f3;
    border-radius: 1.2rem;
    padding: 4.0rem 2.0rem;
    /*     width: 100%; */
    margin: 0 auto;
}

.other-calendar-box p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2.0rem;
    color: #333;
}


/* 都庁リンク（外部リンクアイコン） */
.link-external {
    color: var(--color-linkblue);
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.8rem;
    position: relative;
    padding-right: 2.4rem;
    display: inline-block;
}

.link-external::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.6rem;
    height: 1.6rem;
    background-image: url('../assets/icon_20px_open_linkblue.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.link-insta:hover,
.link-external:hover,
.btn-request:hover {
    opacity: 0.7;
}


/* ==========================================================================
   5. レスポンシブ (900px以下)
   ========================================================================== */
@media screen and (max-width: 900px) {

    /* ヘッダー行を非表示（縦並びになると不要なため） */
    .event-header-row {
        display: none;
    }

    /* 全体コンテナを縦並びに変更 */
    .event-item {
        flex-direction: column;
        margin-bottom: 2.0rem;
    }

    /* 上側：日付ボックス */
    .date-box {
        width: 100%;
        padding: 2.0rem 0;
        border-radius: 1.2rem 1.2rem 0 0;
        /* 上側だけ角丸に */
    }

    /* 下側：コンテンツボックス */
    .content-box {
        /*         width: 100%; */
        margin-left: 0;
        border-width: 0.3rem;
        /* 枠線を全周に適用 */
        border-top: none;
        /* 日付ボックスと接する部分は消す */
        border-radius: 0 0 1.2rem 1.2rem;
        /* 下側だけ角丸に */
        flex-direction: column;
        /* 画像エリアも縦に並べる場合 */
        padding: 2.0rem;
    }

    /* 画像エリアの調整 */
    .image-area {
        width: 100%;
        margin: 1.6rem 0;
        order: -1;
        /* 画像をテキストより上に持ってくる場合はこちら */
        /* 		text-align: center; */
    }

    .image-area img {
        max-width: 200px;
        margin: auto;
    }

    .info-area {
        padding-right: 0;
    }

    /* 日付の数字デザイン */
    .date-display {
        height: 10.0rem;
        margin-bottom: 0.5rem;
    }

    .date-display::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 10%;
        width: 80%;
        height: 0.3rem;
        background-color: #fff;
        transform: rotate(-45deg);
    }

    .date-display .month,
    .date-display .day {
        position: absolute;
        font-size: 3.2rem;
        font-family: 'Libre Baskerville', serif;
        line-height: 1;
    }

    .date-display .month {
        top: 1.2rem;
        left: 1.2rem;
    }

    .date-display .day {
        bottom: 1.2rem;
        right: 1.2rem;
    }

}