/*
Theme Name: Kagai Child Theme
Description: 花街イベントニュースサイト用子テーマ - Google スプレッドシート連携機能付き
Author: Kagai Development Team
Version: 1.0.0
Template: twentytwentyfour
*/

/* 親テーマのスタイル読み込み */
@import url("../twentytwentyfour/style.css");

/* ==========================================================================
   花街イベント用カスタムスタイル
   ========================================================================== */

/* サイトタイトルを非表示（不要なリンクを削除） */
#header,
header#header,
.wp-block-site-title,
.wp-block-site-title a,
.site-title,
header h1.site-title,
header .wp-block-site-title,
.wp-site-blocks header,
body header h1,
body header .site-title,
body .wp-block-template-part header h1,
.wp-block-template-part .wp-block-site-title {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ヘッダー全体が空の場合は非表示 */
body > header:empty,
.wp-site-blocks > header:empty {
    display: none !important;
}

/* ヘッダーとmainの間のhrタグを削除 */
#header + hr,
header#header + hr,
header + hr,
.wp-site-blocks > hr:first-of-type,
.wp-block-template-part + hr {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* ヘッダー・ナビゲーション */
.kagai-header {
    background: #2c3e50;
    padding: 1rem 0;
}

.kagai-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.kagai-logo h1 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.kagai-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.kagai-logo-link span {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.kagai-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kagai-menu {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kagai-menu-item a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.kagai-menu-item a:hover,
.kagai-menu-item a:focus,
.kagai-menu-item.current-menu-item a,
.kagai-menu-item.current_page_item a {
    background: rgba(236, 240, 241, 0.15);
    color: #ffffff;
}

.kagai-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
}

.kagai-mobile-menu-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.kagai-site-wrapper {
    min-height: 100vh;
    background: #f5f7fa;
}

/* イベントリスト - 横並びカード対応 */
.kagai-event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* より広い画面では3列表示 */
@media (min-width: 1600px) {
    .kagai-event-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 大画面では2列表示 */
@media (min-width: 1024px) and (max-width: 1599px) {
    .kagai-event-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 中サイズの画面では1列表示 */
@media (min-width: 768px) and (max-width: 1023px) {
    .kagai-event-list {
        grid-template-columns: 1fr;
    }
}

/* イベントカード */
.kagai-event-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    height: 180px; /* 高さを固定 */
}

.kagai-event-card:hover {
    border-color: #c0c0c0;
}

/* カード全体リンク（横並びレイアウト） */
.kagai-event-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 画像エリア（左側・縦方向） */
.kagai-event-image {
    position: relative;
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
    height: 100%; /* 高さを100%に */
}


.kagai-event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kagai-event-card:hover .kagai-event-image img {
}

/* エリアバッジ（画像上） */
.event-area-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* お知らせ */
.announcement-detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.announcement-detail-date {
    color: #8b1a2e;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.announcement-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.announcement-detail-meta a {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    background: rgba(139, 26, 46, 0.12);
    color: #8b1a2e;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.announcement-detail-image {
    margin: 0 0 1.75rem;
    border-radius: 0;
    overflow: hidden;
}

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

.announcement-detail-tags {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.announcement-detail-tags a {
    background: rgba(139, 26, 46, 0.1);
    color: #8b1a2e;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.announcement-detail-nav {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.announcement-detail-nav-item {
    flex: 1 1 200px;
}

.announcement-detail-nav-item a {
    color: #8b1a2e;
    text-decoration: none;
    font-weight: 600;
}

.announcement-detail-back {
    margin-top: 2.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .announcement-detail-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .announcement-detail-nav-item {
        text-align: center;
    }
}

/* 詳細ページ */

/* 固定ページ共通 */
.kagai-page-default {
    background: #f9fbff;
    min-height: 70vh;
    padding: 3rem 1.5rem;
}

.kagai-page-container {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    padding: 3rem;
}

.kagai-page-heading {
    margin: 0 0 1.5rem;
    font-size: 2.4rem;
    color: #253656;
}

.kagai-page-body {
    color: #374968;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* コンテンツエリア（右側） */
.kagai-event-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 日付 */
.kagai-event-date {
    margin-bottom: 0.5rem;
}

.kagai-event-date .date-text {
    display: inline-block;
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* タイトル */
.kagai-event-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 場所 */
.kagai-event-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.6rem;
}

.location-icon {
    flex-shrink: 0;
    color: #95a5a6;
}

/* 説明文 */
.kagai-event-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 花街エリア別表示 */
.kagai-area-filter {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.kagai-area-button {
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2c3e50;
}

.kagai-area-button:hover,
.kagai-area-button.active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* 地図表示エリア */
.kagai-map-container {
    margin: 2rem 0;
    height: 400px;
    background: #ecf0f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .kagai-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .kagai-mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 0;
    }

    .kagai-menu-wrapper {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(44, 62, 80, 0.95);
        border-radius: 16px;
        padding: 1rem;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .kagai-nav.mobile-open .kagai-menu-wrapper {
        display: flex;
    }

    .kagai-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .kagai-menu-item a {
        width: 100%;
        text-align: center;
    }

    .kagai-event-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .kagai-area-filter {
        justify-content: center;
    }

    /* スマホでは縦並びに */
    .kagai-event-link {
        flex-direction: column;
    }

    .kagai-event-card {
        height: auto !important; /* 固定高さを解除して内容に合わせる */
    }

    .kagai-event-image {
        width: 100%;
        height: 200px; /* 画像の高さを少し確保 */
    }

    .kagai-event-content {
        padding: 1rem; /* パディングを少し広げる */
        flex: 1; /* 残りのスペースを埋める */
    }
}

@media (max-width: 480px) {
    .kagai-header {
        padding: 0.5rem 0;
    }

    .kagai-logo h1 {
        font-size: 1.4rem;
    }

    .kagai-logo-link span {
        font-size: 1.3rem;
    }

    .kagai-event-image {
        width: 100%;
        height: 160px;
    }

    .kagai-event-title {
        font-size: 1rem;
    }

    .kagai-event-content {
        padding: 0.75rem;
    }

}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    .kagai-event-card {
        transition: none;
    }

    .kagai-area-button {
        transition: none;
    }
}

/* 全体のボタン要素に対するレスポンシブ修正 */
button,
.button,
.hero-button,
.kagai-toggle-button,
.section-view-all,
.action-button,
.kagai-button-apply,
.kagai-button-clear,
input[type="submit"],
input[type="button"] {
    box-sizing: border-box; /* パディングを含めた幅計算 */
    max-width: 100%; /* 画面幅を超えないようにする */
}

/* レスポンシブ対応 - ボタン関連の修正 */
@media (max-width: 768px) {
    /* ...既存のメディアクエリ内... */

    /* ボタンの横幅調整 */
    .hero-button,
    .kagai-toggle-button,
    .section-view-all,
    .action-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem; /* パディングを少し調整 */
        white-space: nowrap; /* テキストの折り返しを防止（必要に応じて） */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* テキストが長すぎる場合は折り返しを許可 */
    .hero-button,
    .kagai-toggle-button {
        white-space: normal;
        text-align: center;
    }
}
@media print {
    .kagai-area-filter,
    .kagai-map-container {
        display: none;
    }

    .kagai-event-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ==========================================================================
   一覧ページ（アーカイブ）用モダンデザイン
   ========================================================================== */

/* ページ全体 */
.kagai-archive-page {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 2rem 0 4rem;
}

.kagai-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ページヘッダー */
.kagai-page-header {
    background: #c92a3a;
    border-radius: 0;
    padding: 1.5rem 3rem;
    margin-bottom: 3rem;
    color: white;
}

.kagai-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.kagai-header-left {
    flex: 1;
    min-width: 300px;
}

.kagai-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.title-icon {
    font-size: 2rem;
}

.kagai-page-description {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

.kagai-header-right {
    flex-shrink: 0;
}

/* トグルボタン */
.kagai-toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kagai-button-primary {
    background: white;
    color: #c92a3a;
}

.kagai-button-primary:hover {
    background: #f8f9fa;
}

.kagai-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.kagai-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* フィルターセクション */
.kagai-filters-wrapper {
    background: white;
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid #e0e0e0;
}

/* 選択中のエリア表示 */
.kagai-selected-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff5f5;
    border: 2px solid #ffcccc;
    border-radius: 0;
    margin-bottom: 2rem;
    color: #c92a3a;
}

.kagai-selected-area svg {
    flex-shrink: 0;
    color: #c92a3a;
}

.selected-area-text {
    font-size: 1.05rem;
    color: #2c3e50;
}

.selected-area-text strong {
    color: #c92a3a;
    font-weight: 700;
}

.kagai-filter-section {
    margin-bottom: 2rem;
}

.kagai-filter-section:last-child {
    margin-bottom: 0;
}

.kagai-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem;
}

.kagai-filter-label svg {
    color: #c92a3a;
}

.kagai-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kagai-filter-chip {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.kagai-filter-chip:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.kagai-filter-chip.active {
    background: #c92a3a;
    border-color: #c92a3a;
    color: white;
}

/* エリアボタン特別スタイル */
.kagai-area-buttons {
    gap: 0.5rem;
}

.kagai-area-chip {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* フィルター内のアクションボタン（アーカイブページ） */
.kagai-filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.kagai-filter-actions .hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kagai-filter-actions .hero-button-primary {
    background: #c92a3a;
    color: white;
    border: 2px solid transparent;
}

.kagai-filter-actions .hero-button-primary:hover {
    background: #8b1a2e;
    color: white;
}

.kagai-filter-actions .hero-button-secondary {
    background: white;
    color: #c92a3a;
    border: 2px solid #c92a3a;
}

.kagai-filter-actions .hero-button-secondary:hover {
    background: #c92a3a;
    color: white;
}

/* 年月フィルターフォーム */
.kagai-month-filter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.kagai-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.kagai-select:hover {
    border-color: #c92a3a;
}

.kagai-select:focus {
    outline: none;
    border-color: #c92a3a;
}

.kagai-button-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #c92a3a;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kagai-button-apply:hover {
    background: #8b1a2e;
}

.kagai-button-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kagai-button-clear:hover {
    background: #c0392b;
}

/* イベント結果なし */
.kagai-no-results {
    background: white;
    border-radius: 0;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.no-results-icon {
    margin: 0 auto 1.5rem;
    color: #bdc3c7;
}

.no-results-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem;
}

.no-results-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.8;
    margin: 0;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .kagai-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .kagai-archive-page {
        padding: 1rem 0 2rem;
    }

    .kagai-archive-container {
        padding: 0 1rem;
    }

    .kagai-page-header {
        padding: 1.25rem 1.5rem;
        border-radius: 0;
    }

    .kagai-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .kagai-header-left {
        min-width: auto;
    }

    .kagai-page-title {
        font-size: 1.75rem;
    }

    .title-icon {
        font-size: 1.5rem;
    }

    .kagai-header-right {
        width: 100%;
    }

    .kagai-toggle-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .kagai-filters-wrapper {
        padding: 1.5rem;
        border-radius: 0;
    }

    .kagai-selected-area {
        padding: 0.875rem 1.25rem;
        flex-wrap: wrap;
    }

    .kagai-selected-area svg {
        width: 20px;
        height: 20px;
    }

    .selected-area-text {
        font-size: 0.95rem;
    }

    .kagai-filter-label {
        font-size: 1rem;
    }

    .kagai-filter-chip {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .kagai-month-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .kagai-select {
        width: 100%;
        min-width: auto;
    }

    .kagai-button-apply,
    .kagai-button-clear {
        width: 100%;
        justify-content: center;
    }

    .kagai-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .kagai-filter-actions .hero-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .no-results-title {
        font-size: 1.5rem;
    }

    .no-results-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .kagai-page-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .kagai-filter-buttons {
        gap: 0.5rem;
    }

    .kagai-filter-chip {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }
}

/* ==========================================================================
   TOPページ用モダンデザイン
   ========================================================================== */

/* ページ全体 */
.kagai-front-page {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 2rem 0 4rem;
}

.kagai-front-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ヒーローセクション */
.kagai-hero-section {
    background: #c92a3a;
    border-radius: 0;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-button-primary {
    background: white;
    color: #c92a3a;
}

.hero-button-primary:hover {
    background: #f8f9fa;
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* クイックフィルター */
.kagai-quick-filter {
    background: white;
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #e0e0e0;
}

.quick-filter-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.25rem;
}

.quick-filter-label svg {
    color: #c92a3a;
}

.quick-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-filter-chip {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.quick-filter-chip:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.quick-filter-chip.active {
    background: #c92a3a;
    border-color: #c92a3a;
    color: white;
}

/* クイックフィルター内のアクションボタン */
.quick-filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.quick-filter-actions .hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-filter-actions .hero-button-primary {
    background: #c92a3a;
    color: white;
    border: 2px solid transparent;
}

.quick-filter-actions .hero-button-primary:hover {
    background: #8b1a2e;
    color: white;
}

.quick-filter-actions .hero-button-secondary {
    background: white;
    color: #c92a3a;
    border: 2px solid #c92a3a;
}

.quick-filter-actions .hero-button-secondary:hover {
    background: #c92a3a;
    color: white;
}

/* イベントセクション */
.kagai-events-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: #c92a3a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.section-icon-recurring {
    background: #f5576c;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    color: #c92a3a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-view-all:hover {
    background: #c92a3a;
    border-color: #c92a3a;
    color: white;
}

/* イベントなしセクション */
.kagai-no-events-section {
    background: white;
    border-radius: 0;
    padding: 5rem 2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    margin-bottom: 4rem;
}

.no-events-icon {
    margin: 0 auto 2rem;
    color: #cbd5e0;
}

.no-events-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem;
}

.no-events-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.8;
    margin: 0;
}

/* TOPページ レスポンシブデザイン */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .kagai-front-page {
        padding: 1rem 0 2rem;
    }

    .kagai-front-container {
        padding: 0 1rem;
    }

    .kagai-hero-section {
        padding: 3rem 2rem;
        border-radius: 0;
    }

    .hero-icon {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
        padding: 1.125rem 2rem;
    }

    .kagai-quick-filter {
        padding: 1.5rem;
        border-radius: 0;
    }

    .quick-filter-label {
        font-size: 1.1rem;
    }

    .quick-filter-chip {
        font-size: 0.95rem;
        padding: 0.625rem 1.25rem;
    }

    .quick-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-filter-actions .hero-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-left {
        width: 100%;
    }

    .section-icon {
        width: 50px;
        height: 50px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-view-all {
        width: 100%;
        justify-content: center;
    }

    .kagai-no-events-section {
        padding: 3rem 1.5rem;
        border-radius: 0;
    }

    .no-events-title {
        font-size: 1.5rem;
    }

    .no-events-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .kagai-hero-section {
        padding: 2.5rem 1.5rem;
    }

    .hero-icon {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-button {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .quick-filter-buttons {
        gap: 0.5rem;
    }

    .quick-filter-chip {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .section-header-left {
        gap: 0.75rem;
    }

    .section-icon {
        width: 44px;
        height: 44px;
    }

    .section-title {
        font-size: 1.375rem;
    }
}

/* ==========================================================================
   イベント詳細ページ用モダンデザイン
   ========================================================================== */

/* ページ全体 */
.kagai-single-page {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 0;
}

.kagai-single-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* コンテンツラッパー */
.kagai-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* イベントタイトルセクション（カード内） */
.event-title-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.event-title-with-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-area-badge-inline {
    display: inline-flex;
    align-items: center;
    background: #e74c3c;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.event-title-section .event-recurring-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f093fb;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.event-title-section .event-recurring-badge svg {
    width: 16px;
    height: 16px;
}

.event-main-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.event-summary {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.7;
}

/* 花街名タグ */
.event-hanamachi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hanamachi-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #ffeaa7;
    color: #2d3436;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hanamachi-tag:hover {
}

.hanamachi-tag svg {
    flex-shrink: 0;
    color: #2d3436;
}

/* メインコンテンツ */
.kagai-main-content {
    min-width: 0;
}

.content-section {
    background: white;
    border-radius: 0;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #c92a3a;
}

.section-heading svg {
    color: #c92a3a;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #34495e;
}

.content-text p {
    margin-bottom: 1.25rem;
}

.content-text h2,
.content-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* イベント画像 */
.event-image-wrapper {
    margin-bottom: 2rem;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.event-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

/* ギャラリー表示（複数画像） */
.event-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.event-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.event-gallery-image:hover {
}

/* 画像が1枚の場合のギャラリー */
.event-image-gallery:has(.event-gallery-image:only-child) {
    grid-template-columns: 1fr;
}

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

/* イベント情報リスト（メインコンテンツ内） */
.event-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.event-info-list .info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.event-info-list .info-item:hover {
    background: #e9ecef;
}

.event-info-list .info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.event-info-list .info-details {
    flex: 1;
    min-width: 0;
}

.event-info-list .info-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-info-list .info-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    word-wrap: break-word;
}

/* 開催日時の値だけ一覧と同じ色に */
.event-info-list .info-item:first-child .info-value {
    color: #e74c3c;
}

.event-info-list .info-secondary {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

.event-info-list .info-link {
    color: #c92a3a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.event-info-list .info-link:hover {
    color: #8b1a2e;
    text-decoration: underline;
}

.event-info-list .info-link svg {
    transition: transform 0.3s ease;
}

.event-info-list .info-link:hover svg {
    transform: translateX(2px);
}

/* 地図セクション */
.address-info {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 0;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.address-text {
    margin: 0;
    font-size: 1.05rem;
    color: #2c3e50;
}

.map-container {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* サイドバー */
.kagai-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.sidebar-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-details {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    word-wrap: break-word;
}

.info-secondary {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

/* アクションボタン */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-button-primary {
    background: #c92a3a;
    color: white;
}

.action-button-primary:hover {
    background: #8b1a2e;
}

.action-button-secondary {
    background: white;
    border: 2px solid #c92a3a;
    color: #c92a3a;
}

.action-button-secondary:hover {
    background: #c92a3a;
    color: white;
}

/* ナビゲーション */
.sidebar-navigation .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 0;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #c92a3a;
}

.nav-link:hover .nav-direction,
.nav-link:hover .nav-title,
.nav-link:hover .nav-date {
    color: white;
}

.nav-direction {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
}

.nav-title {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.nav-date {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 600;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .kagai-content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 1024px) {
    .kagai-content-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .kagai-sidebar {
        position: relative;
        top: 0;
    }

    .event-main-title {
        font-size: 2rem;
    }

    .event-summary {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .kagai-content-wrapper {
        padding: 1.5rem 1rem;
    }

    .content-section {
        padding: 1.5rem;
        border-radius: 0;
    }

    .event-main-title {
        font-size: 1.75rem;
    }

    .event-summary {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .sidebar-card {
        padding: 1.5rem;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .event-title-with-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .event-main-title {
        font-size: 1.5rem;
    }

    .event-summary {
        font-size: 0.95rem;
    }

    .event-area-badge-inline,
    .event-title-section .event-recurring-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.875rem;
    }

    .hanamachi-tag {
        font-size: 0.85rem;
        padding: 0.45rem 0.875rem;
    }

    .content-section {
        padding: 1.25rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    .sidebar-card {
        padding: 1.25rem;
    }

    .action-button {
        padding: 0.875rem 1.25rem;
    }
}
