/*
 * イベント（一覧・詳細・カード）
 *
 * 求人側の redesign.css には手を入れず、ここだけで完結させる。
 * 色はブランド青（#116698）と緑（#25A764）を主に使い、
 * イベント固有の「日付・締切」だけ #C2410C を使う。
 * #C2410C は白地・白文字の両方で 5.18:1 を満たすので、
 * バッジの地にも文字色にも使える（#FF7043 や #E85A0C はAAを満たさない）。
 */
:root {
  --ev-ink: #102A43;
  --ev-ink-sub: #5A7488;
  --ev-line: #E2E8EE;
  --ev-surface: #FFFFFF;
  --ev-bg: #F5F8FA;
  --ev-brand: #116698;
  --ev-accent: #C2410C;
  --ev-accent-weak: #FFF3E8;
  --ev-green: #25A764;
}

.ev-page { background: var(--ev-bg); padding: 32px 0 64px; }
.ev-container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.ev-head { margin-bottom: 28px; }
.ev-head h1 { font-size: clamp(24px, 5vw, 32px); font-weight: 800; color: var(--ev-ink); margin: 0 0 10px; }
.ev-head p { color: var(--ev-ink-sub); margin: 0; font-size: 15px; line-height: 1.8; }

.ev-section-title {
  font-size: 20px; font-weight: 800; color: var(--ev-ink);
  margin: 40px 0 16px; display: flex; align-items: center; gap: 10px;
}
.ev-section-title::before {
  content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--ev-brand);
}

.ev-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ---- カード ---- */
.ev-card {
  background: var(--ev-surface); border: 1px solid var(--ev-line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ev-card:hover { border-color: var(--ev-brand); box-shadow: 0 2px 10px rgba(16, 42, 67, .08); }
.ev-card.is-finished { opacity: .72; }

.ev-card-visual { position: relative; height: 160px; background: #E8F0F4; }
.ev-card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-card-noimage {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #DCEAF2, #EAF3F7);
}
.ev-card-noimage span { font-size: 44px; font-weight: 900; color: #9BB6C6; }

.ev-card-date {
  position: absolute; left: 12px; top: 12px; background: var(--ev-surface);
  border-radius: 8px; padding: 6px 10px; text-align: center; line-height: 1.15;
  box-shadow: 0 1px 4px rgba(16, 42, 67, .18);
}
.ev-card-date b { display: block; font-size: 17px; font-weight: 900; color: var(--ev-accent); }
.ev-card-date small { font-size: 11px; color: var(--ev-ink-sub); }

.ev-card-flag {
  position: absolute; right: 12px; top: 12px; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
}
.ev-card-flag.is-soon { background: var(--ev-accent); color: #fff; }
.ev-card-flag.is-done { background: #6B7885; color: #fff; }

.ev-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex-grow: 1; }
.ev-card-organizer { font-size: 12px; color: var(--ev-ink-sub); margin: 0 0 6px; }
.ev-card-title { font-size: 17px; font-weight: 800; line-height: 1.5; margin: 0 0 8px; }
.ev-card-title a { color: var(--ev-ink); text-decoration: none; }
.ev-card-title a:hover { color: var(--ev-brand); text-decoration: underline; }
.ev-card-lead { font-size: 13.5px; color: var(--ev-ink-sub); line-height: 1.7; margin: 0 0 14px; }

.ev-card-info {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin: 0 0 16px; padding-top: 12px; border-top: 1px solid var(--ev-line);
}
.ev-card-info div { min-width: 0; }
.ev-card-info dt { font-size: 11px; color: var(--ev-ink-sub); margin: 0 0 2px; }
.ev-card-info dd {
  font-size: 13.5px; font-weight: 700; color: var(--ev-ink); margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ev-card-btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 8px; background: #E8F2F8; color: var(--ev-brand);
  font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.ev-card-btn:hover { background: #D8E9F3; }
.ev-card-btn.is-quiet { background: #EEF1F4; color: #5A7488; }

/* ---- 詳細 ---- */
.ev-detail { max-width: 760px; margin: 0 auto; }
.ev-cover { border-radius: 14px; overflow: hidden; margin-bottom: 24px; background: #E8F0F4; }
.ev-cover img { width: 100%; display: block; }

.ev-detail h1 { font-size: clamp(22px, 5vw, 30px); font-weight: 800; color: var(--ev-ink); line-height: 1.45; margin: 0 0 12px; }
.ev-detail-lead { font-size: 15.5px; color: var(--ev-ink-sub); line-height: 1.85; margin: 0 0 24px; }

.ev-facts {
  background: var(--ev-surface); border: 1px solid var(--ev-line); border-radius: 12px;
  padding: 4px 20px; margin-bottom: 24px;
}
.ev-facts dl { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ev-line); margin: 0; }
.ev-facts dl:last-child { border-bottom: none; }
.ev-facts dt { flex: 0 0 76px; font-size: 13px; color: var(--ev-ink-sub); font-weight: 600; padding-top: 2px; }
.ev-facts dd { margin: 0; font-size: 15px; color: var(--ev-ink); font-weight: 600; line-height: 1.7; }
.ev-facts dd small { display: block; font-weight: 400; font-size: 13px; color: var(--ev-ink-sub); margin-top: 3px; }

.ev-body { font-size: 15px; line-height: 1.95; color: var(--ev-ink); margin-bottom: 28px; white-space: pre-line; }

.ev-cta { position: sticky; bottom: 0; padding: 14px 0 18px; background: linear-gradient(to top, var(--ev-bg) 70%, rgba(245,248,250,0)); }
.ev-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; border-radius: 999px; background: var(--ev-green); color: #fff;
  font-size: 17px; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 167, 100, .3);
}
.ev-cta-btn:hover { background: #1B8E53; color: #fff; }
.ev-cta-note { text-align: center; font-size: 12.5px; color: var(--ev-ink-sub); margin: 10px 0 0; }

.ev-closed-note {
  background: #EEF1F4; border-radius: 10px; padding: 16px; text-align: center;
  color: #4A5A68; font-size: 14.5px; font-weight: 600;
}

/* 申込前のLINE導線。ここは「申込の代わり」ではなく「申込に加えて」置く */
.ev-line-box {
  background: #F0FAF4; border: 1px solid #C9E9D7; border-radius: 12px;
  padding: 18px 20px; margin-bottom: 24px;
}
.ev-line-box p { margin: 0 0 12px; font-size: 14px; color: #14532D; line-height: 1.75; }
.ev-line-box a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: #06C755; color: #fff; font-weight: 700;
  font-size: 14.5px; text-decoration: none;
}

@media (max-width: 600px) {
  .ev-card-visual { height: 140px; }
  .ev-facts dl { flex-direction: column; gap: 4px; }
  .ev-facts dt { flex: none; }
}

:focus-visible { outline: 3px solid var(--ev-brand); outline-offset: 2px; }
