/* 大会情報ページ（/event/）と大会ガイド（/event/guide.php）。docs/tournament-events-proposal-2026-10-04.md */

.ev-page {
    --ev-blue: #2563eb;
    --ev-blue-soft: #eff6ff;
    --ev-orange: #f97316;
    --ev-orange-deep: #ea580c;
    --ev-yellow: #fcd34d;
    --ev-line: #e7e5e4;
    --ev-ink: #1c1917;
    --ev-ink-light: #57534e;
    color: var(--ev-ink);
}

.ev-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid #fde68a;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 55%, #eff6ff 100%);
}

.ev-hero__kicker {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ev-blue);
}

.ev-hero__title {
    margin-top: 0.25rem;
    font-family: Inter, 'Noto Sans JP', sans-serif;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

.ev-hero__lead {
    margin-top: 0.5rem;
    max-width: 40rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ev-ink-light);
}

.ev-hero__lead a,
.ev-note a,
.ev-guide a {
    color: var(--ev-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ev-hero__icon {
    flex: none;
    width: 7.5rem;
    height: auto;
}

.ev-filter {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--ev-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.ev-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

fieldset.ev-filter__row {
    align-items: center;
}

.ev-field {
    display: grid;
    gap: 0.25rem;
    min-width: 10rem;
}

.ev-field--grow {
    flex: 1 1 14rem;
}

.ev-field__label {
    float: left;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ev-ink-light);
}

fieldset .ev-field__label {
    float: none;
    width: auto;
    margin-right: 0.25rem;
}

.ev-select,
.ev-input {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #d6d3d1;
    border-radius: 0.6rem;
    background: #fff;
    font-size: 0.9rem;
}

.ev-select:focus,
.ev-input:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.ev-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.ev-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ev-chip span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    background: #fafaf9;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ev-ink-light);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ev-chip span img {
    width: 1.1rem;
    height: 1.1rem;
    object-fit: contain;
}

.ev-chip input:checked + span {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.ev-chip input:focus-visible + span {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.ev-filter__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.ev-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.75rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #fb923c 0%, var(--ev-orange) 55%, var(--ev-orange-deep) 100%);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.28);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.ev-button:hover {
    filter: brightness(1.05);
}

.ev-reset {
    font-size: 0.85rem;
    color: var(--ev-ink-light);
    text-decoration: underline;
}

.ev-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.ev-section-title span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ev-ink-light);
}

.ev-prefs {
    padding: 1.25rem;
    border: 1px solid var(--ev-line);
    border-radius: 1rem;
    background: #fff;
}

.ev-prefs__region + .ev-prefs__region {
    margin-top: 0.9rem;
}

.ev-prefs__region h3 {
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ev-blue);
}

.ev-prefs__region ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.4rem;
}

.ev-prefs__region a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #e7e5e4;
    border-radius: 0.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}

.ev-prefs__region a:hover {
    border-color: #fdba74;
    background: #fff7ed;
}

.ev-prefs__region a span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ev-ink-light);
}

/* 一覧を送る（SNS戦略の段階2）。LINEのボタンはLINEの決まりで文言だけにし、アイコンは描かない */
.ev-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.ev-share__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ev-ink-light);
}

.ev-share__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.95rem;
    border: 1px solid var(--ev-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ev-ink);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ev-share__button--line {
    border-color: #06c755;
    background: #06c755;
    color: #fff;
}

.ev-share__button--x {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

.ev-count {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--ev-ink-light);
}

.ev-count strong {
    color: var(--ev-ink);
}

.ev-empty {
    padding: 1.5rem;
    border-radius: 0.8rem;
    background: #fff;
    font-size: 0.9rem;
    color: var(--ev-ink-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ev-day + .ev-day {
    margin-top: 1.25rem;
}

.ev-day__title {
    position: sticky;
    top: 4rem; /* サイトのヘッダー（h-16）の下 */
    z-index: 1;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.25rem;
    background: #fafaf9;
    font-size: 1rem;
    font-weight: 800;
}

.ev-day__title--weekend {
    color: #c2410c;
}

.ev-list {
    display: grid;
    gap: 0.6rem;
}

.ev-card {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--ev-line);
    border-left: 4px solid #a8a29e;
    border-radius: 0.8rem;
    background: #fff;
}

.ev-card--gym_battle,
.ev-card--trainers_league,
.ev-card--gym_event,
.ev-card--organizer {
    border-left-color: var(--ev-blue);
}

.ev-card--city_league,
.ev-card--champions_league {
    border-left-color: #7c3aed;
}

.ev-card--shield,
.ev-card--campaign {
    border-left-color: #0d9488;
}

.ev-card--shop {
    border-left-color: var(--ev-orange);
}

.ev-card__time {
    font-family: Inter, 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.ev-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.ev-tag,
.ev-status {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #f5f5f4;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ev-ink-light);
}

.ev-tag--official {
    background: var(--ev-blue-soft);
    color: #1d4ed8;
}

.ev-tag--shop {
    background: #fff7ed;
    color: #c2410c;
}

.ev-tag--beginner {
    background: #ecfdf5;
    color: #047857;
}

.ev-card__title {
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
}

.ev-card__title a:hover {
    color: var(--ev-blue);
    text-decoration: underline;
}

.ev-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.9rem;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--ev-ink-light);
}

.ev-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.ev-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: var(--ev-blue-soft);
    font-size: 0.8rem;
    font-weight: 700;
    color: #1d4ed8;
}

.ev-link::after {
    content: '↗';
    font-size: 0.75rem;
}

.ev-link--sub {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.ev-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.8rem;
    background: #f5f5f4;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--ev-ink-light);
}

.ev-note p + p {
    margin-top: 0.4rem;
}

@media (max-width: 640px) {
    .ev-hero {
        padding: 1.1rem 1rem;
    }

    .ev-hero__icon {
        width: 4.5rem;
    }

    .ev-filter {
        padding: 0.9rem;
    }

    .ev-field {
        min-width: 0;
        flex: 1 1 100%;
    }

    .ev-card {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.75rem 0.85rem;
    }

    .ev-card__time {
        font-size: 0.85rem;
        color: var(--ev-ink-light);
    }
}

/* 大会ガイド */
.ev-guide section + section {
    margin-top: 1.25rem;
}

.ev-guide__card {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--ev-line);
    border-radius: 1rem;
    background: #fff;
}

.ev-guide__head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

.ev-guide__head img {
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.ev-guide__head h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.ev-guide p,
.ev-guide li {
    font-size: 0.92rem;
    line-height: 1.85;
}

.ev-guide ol,
.ev-guide ul {
    display: grid;
    gap: 0.35rem;
    padding-left: 1.25rem;
}

.ev-guide ol {
    list-style: decimal;
}

.ev-guide ul {
    list-style: disc;
}

.ev-guide__levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.6rem;
    padding: 0 !important;
    list-style: none !important;
}

.ev-guide__levels li {
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: #fafaf9;
    border: 1px solid var(--ev-line);
}

.ev-guide__levels strong {
    display: block;
    font-size: 0.95rem;
}

.ev-guide__checks {
    padding: 0 !important;
    list-style: none !important;
}

/* 文とリンクを1つの段落として流す（flex にするとリンクだけ別の列になる） */
.ev-guide__checks li {
    position: relative;
    padding-left: 1.75rem;
}

.ev-guide__checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 1.15rem;
    height: 1.15rem;
    background: url('../images/events/check.webp') center / contain no-repeat;
}
