/* ==============================================
   Events Page — gaaboo.jp 風デザイン
   ao-cafe.com / taku-theme
   ============================================== */

/* ──────────────────────────────
   共通変数
────────────────────────────── */
:root {
    --ev-red:       #C0392B;
    --ev-red-light: #e84a38;
    --ev-dark:      #1a1a1a;
    --ev-gray:      #6b7280;
    --ev-gray-light:#f5f5f5;
    --ev-white:     #ffffff;
    --ev-radius:    16px;
    --ev-radius-sm: 8px;
    --ev-radius-full: 999px;
    --ev-shadow:    0 4px 24px rgba(0,0,0,.08);
    --ev-shadow-hover: 0 8px 40px rgba(0,0,0,.14);
    --ev-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──────────────────────────────
   ページ全体
────────────────────────────── */
.ev-page {
    font-family: 'Noto Sans JP', 'Cormorant Garamond', sans-serif;
    color: var(--ev-dark);
    background: var(--ev-white);
    overflow-x: hidden;
}

.ev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.ev-container--narrow {
    max-width: 780px;
}

@media (max-width: 768px) {
    .ev-container { padding: 0 20px; }
}

/* ──────────────────────────────
   共通ラベル / タイトル
────────────────────────────── */
.ev-label {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--ev-red);
    background: rgba(192,57,43,0.08);
    padding: 4px 14px;
    border-radius: var(--ev-radius-full);
    margin-bottom: 16px;
}
.ev-label--dark {
    color: var(--ev-white);
    background: rgba(255,255,255,0.15);
}

.ev-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.ev-section-sub {
    font-size: 1rem;
    color: var(--ev-gray);
    line-height: 1.8;
    margin-bottom: 48px;
}

/* ──────────────────────────────
   Hero
────────────────────────────── */
.ev-hero {
    background: var(--ev-red);
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}
.ev-hero::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -120px;
    right: -80px;
}
.ev-hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -60px;
    left: 40px;
}
.ev-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}
.ev-hero .ev-label {
    color: var(--ev-white);
    background: rgba(255,255,255,0.2);
}
.ev-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--ev-white);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    line-height: 1.2;
}
.ev-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}
@media (max-width: 768px) {
    .ev-hero { padding: 100px 20px 60px; }
}

/* ──────────────────────────────
   フィルターボタン
────────────────────────────── */
.ev-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}
.ev-filter__btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--ev-gray);
    background: var(--ev-gray-light);
    border: none;
    border-radius: var(--ev-radius-full);
    padding: 8px 22px;
    cursor: pointer;
    transition: background var(--ev-transition), color var(--ev-transition);
}
.ev-filter__btn:hover,
.ev-filter__btn.is-active {
    background: var(--ev-red);
    color: var(--ev-white);
}

/* ──────────────────────────────
   イベント一覧
────────────────────────────── */
.ev-list {
    padding: 80px 0 100px;
}

.ev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 1024px) {
    .ev-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ev-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* カード */
.ev-card {
    background: var(--ev-white);
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
    overflow: hidden;
    transition: transform var(--ev-transition), box-shadow var(--ev-transition);
    display: flex;
    flex-direction: column;
}
.ev-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ev-shadow-hover);
}
.ev-card.is-hidden { display: none; }

/* カード画像 */
.ev-card__img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ev-gray-light);
}
.ev-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ev-card:hover .ev-card__img img {
    transform: scale(1.04);
}

/* ステータスバッジ */
.ev-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: var(--ev-radius-full);
}
.ev-badge--open   { background: #27ae60; color: #fff; }
.ev-badge--soon   { background: #e67e22; color: #fff; }
.ev-badge--closed { background: #95a5a6; color: #fff; }

/* カード本体 */
.ev-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 日付 */
.ev-card__date {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
    color: var(--ev-red);
}
.ev-card__date-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.ev-card__date-day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.ev-card__date-year {
    font-size: 0.75rem;
    color: var(--ev-gray);
}

/* カテゴリタグ */
.ev-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.ev-card__cat {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ev-red);
    background: rgba(192,57,43,0.08);
    padding: 3px 10px;
    border-radius: var(--ev-radius-full);
}

/* タイトル */
.ev-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

/* 抜粋 */
.ev-card__excerpt {
    font-size: 0.875rem;
    color: var(--ev-gray);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

/* メタ情報 */
.ev-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}
.ev-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--ev-gray);
}
.ev-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--ev-red);
}

/* 詳細ボタン */
.ev-card__btn {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ev-red);
    border: 1.5px solid var(--ev-red);
    border-radius: var(--ev-radius-full);
    padding: 10px 24px;
    text-align: center;
    transition: background var(--ev-transition), color var(--ev-transition);
    text-decoration: none;
    margin-top: auto;
}
.ev-card__btn:hover {
    background: var(--ev-red);
    color: var(--ev-white);
}

/* 空状態 */
.ev-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--ev-gray);
    font-size: 1.1rem;
    line-height: 2;
}

/* ページネーション */
.ev-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}
.ev-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--ev-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ev-dark);
    background: var(--ev-gray-light);
    text-decoration: none;
    transition: background var(--ev-transition), color var(--ev-transition);
}
.ev-pagination .page-numbers.current,
.ev-pagination .page-numbers:hover {
    background: var(--ev-red);
    color: var(--ev-white);
}

/* ──────────────────────────────
   お問い合わせ
────────────────────────────── */
.ev-contact {
    background: var(--ev-dark);
    padding: 100px 40px;
}
.ev-contact .ev-section-title {
    color: var(--ev-white);
}
.ev-contact .ev-section-sub {
    color: rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
    .ev-contact { padding: 60px 20px; }
}

/* フォーム */
.ev-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ev-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 640px) {
    .ev-form__row { grid-template-columns: 1fr; }
}
.ev-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.ev-form__group--full {
    grid-column: 1 / -1;
}
.ev-form__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ev-form__required {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ev-red-light);
    background: rgba(232,74,56,0.15);
    padding: 2px 8px;
    border-radius: var(--ev-radius-full);
}
.ev-form__input,
.ev-form__select,
.ev-form__textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--ev-dark);
    background: var(--ev-white);
    border: 2px solid transparent;
    border-radius: var(--ev-radius-sm);
    padding: 14px 16px;
    width: 100%;
    transition: border-color var(--ev-transition), box-shadow var(--ev-transition);
    appearance: none;
    outline: none;
}
.ev-form__input:focus,
.ev-form__select:focus,
.ev-form__textarea:focus {
    border-color: var(--ev-red);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}
.ev-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
    cursor: pointer;
}
.ev-form__textarea {
    resize: vertical;
    min-height: 160px;
}

/* 送信ボタン */
.ev-form__submit {
    margin-top: 12px;
    text-align: center;
}
.ev-form__btn {
    display: inline-block;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ev-white);
    background: var(--ev-red);
    border: none;
    border-radius: var(--ev-radius-full);
    padding: 18px 60px;
    cursor: pointer;
    transition: background var(--ev-transition), transform var(--ev-transition), box-shadow var(--ev-transition);
}
.ev-form__btn:hover {
    background: var(--ev-red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192,57,43,0.35);
}

/* 成功メッセージ */
.ev-form-success {
    text-align: center;
    padding: 60px 20px;
    color: var(--ev-white);
}
.ev-form-success svg {
    width: 56px;
    height: 56px;
    color: #27ae60;
    margin-bottom: 24px;
}
.ev-form-success p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

/* エラー */
.ev-form-errors {
    background: rgba(192,57,43,0.15);
    border: 1px solid rgba(232,74,56,0.4);
    border-radius: var(--ev-radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.ev-form-errors li {
    font-size: 0.875rem;
    color: #ff8080;
    margin-bottom: 4px;
}
.ev-form-errors li:last-child { margin-bottom: 0; }
