/* Event Page Styles */

/* Event Page Styles */

.event-archive-content {
    padding: 4rem 0;
}

/* Header & Title */
.event-archive-header {
    margin-bottom: 3rem;
}

.archive-section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.archive-section-title .ja-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 2rem;
    color: #282303;
    /* $color-lockheart-text */
    margin-bottom: 0;
    line-height: 1;
}

.archive-section-title .ja-sub::before,
.archive-section-title .ja-sub::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background-color: #a0a0a0;
    /* 薄いグレー線 */
    margin: 0 1.5rem;
}
@media (max-width: 768px) {
    .archive-section-title .ja-sub {
        font-size: 1.5rem;
    }
}
/* Category Filter */
.event-category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.event-category-filter li {
    flex: 1 1 auto;
    text-align: center;
    border-bottom: 2px solid #ccc;
    /* Underline */
    margin-bottom: 1rem;
}

.event-category-filter li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #888;
    text-decoration: none;
    font-size: 1rem;
    font-family: "Noto Sans JP", sans-serif;
    transition: color 0.3s, border-color 0.3s;
}

.event-category-filter li.active {
    border-bottom: 2px solid #002366;
    /* $color-lockheart-blue */
}

.event-category-filter li.active a {
    color: #002366;
    font-weight: 500;
}

.event-category-filter li:not(.active) a:hover {
    color: #333;
}

/* Grid & Cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

.event-card {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.event-card-image {
    width: 100%;
    margin-bottom: 1rem;
}

.event-card-image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    height: auto;
}

.event-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 一覧カード内のバッジを横並びに */
.event-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.event-category-badge {
    display: inline-block;
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    /* デフォルトカラー */
    background-color: #666;
}

.event-card-badges .event-category-badge {
    margin-bottom: 0;
}

/* Badge specific colors based on image */
.badge-experience {
    background-color: #004d73;
    /* 青(体験する) */
}

.badge-see {
    background-color: #6c3e30;
    /* 茶(観る) */
}

.badge-around {
    background-color: #345d36;
    /* 緑(巡る) */
}
.badge-pet{
    background-color: #a58900;
}
.badge-campaign{
    background-color: #a6192e;
}

.event-date {
    font-family: "Castoro Titling", serif;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.event-name {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    color: #282303;
    text-decoration: none;
    transition: color 0.3s;
}

.event-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.event-card-link:hover {
    opacity: 0.8;
}

.event-card-link:hover .event-name {
    color: #002366;
}

/* Single Event Styles */
.single-event-content {
    padding: 2rem 0 6rem 0;
}

.event-detail-article {
    max-width: 900px;
    margin: 0 auto;
}

.event-detail-header {
    margin-bottom: 2.5rem;
}

.event-detail-title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
    color: #282303;
    margin-bottom: 1.5rem;
    font-family: "Zen Old Mincho", serif;
}

@media (max-width: 768px) {
    .event-detail-title {
        font-size: 1.5rem;
    }
}

.event-detail-meta-box {
    margin-bottom: 1rem;
}

.event-detail-period {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 2rem;
}

.event-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
    font-family: "Noto Sans JP", sans-serif;
}

.event-detail-body p {
    margin-bottom: 1.5rem;
}

.event-detail-body a {
    color: #004d73;
    /* custom link color */
    text-decoration: none;
    font-weight: 500;
}

.event-detail-body a:hover {
    text-decoration: underline;
}

/* Event Detail Images Grid implementation for content */
.event-detail-body .wp-block-gallery {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 3rem 0;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .event-detail-body .wp-block-gallery {
        flex-direction: column;
    }
}

.event-detail-body .wp-block-gallery figure {
    flex: 1;
    margin: 0;
}

.event-detail-body .wp-block-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.event-detail-footer {
    text-align: right;
    margin-bottom: 4rem;
}

.event-post-date {
    font-size: 1rem;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
}

.btn-back-wrapper {
    text-align: center;
    margin-top: 4rem;
}

.btn-back-list {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    background-color: #937628;
    /* $color-lockheart-gold */
    color: #fff;
    padding: 1rem 4rem;
    font-size: 1.1rem;
    font-family: "Noto Sans JP", sans-serif;
    text-decoration: none;
    transition: background-color 0.3s, opacity 0.3s;
    border: 1px solid #7c631a;
    width: 320px;
    max-width: 100%;
}

.btn-back-list::after {
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid #937628;
    content: '';
    pointer-events: none;
}

.btn-back-list .arrow {
    position: absolute;
    right: 20px;
    font-size: 0.9rem;
}

.btn-back-list:hover {
    opacity: 0.9;
    color: #fff;
}

/* Pagination Styles */
.pagination-wrapper ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 12px;
}

.pagination-wrapper ul.page-numbers li {
    display: inline-block;
}

.pagination-wrapper ul.page-numbers .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #002366;
    color: #002366;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: "Castoro Titling", serif;
    transition: all 0.3s ease;
}

.pagination-wrapper ul.page-numbers .page-numbers.current,
.pagination-wrapper ul.page-numbers .page-numbers:not(.prev):not(.next):hover {
    background-color: #002366;
    color: #fff;
}

.pagination-wrapper ul.page-numbers .page-numbers.prev,
.pagination-wrapper ul.page-numbers .page-numbers.next {
    border: none;
    font-size: 1.8rem;
    width: auto;
    height: auto;
    background: transparent;
    color: #002366;
    padding: 0;
    margin: 0 10px;
}

.pagination-wrapper ul.page-numbers .page-numbers.prev:hover,
.pagination-wrapper ul.page-numbers .page-numbers.next:hover {
    background-color: transparent;
    color: #002366;
    opacity: 0.7;
}