/* ============================================
   イベント一覧・詳細ページ専用スタイル
   archive-event.php / single-event.php
============================================ */

.ev-archive,
.ev-single {
  --ev-primary:    #ff7a9e;
  --ev-primary-d:  #e84d77;
  --ev-accent:     #8b5cf6;
  --ev-bg-soft:    #fff5f7;
  --ev-line:       #06c755;
  --ev-line-d:     #05a548;

  background: linear-gradient(180deg, #fff5f7 0%, #fdf4ff 100%);
  padding-bottom: 80px;
  color: #333;
}

/* === 共通ヒーロー === */
.ev-archive-hero,
.ev-single-hero {
  padding: 90px 24px 60px;
  background: linear-gradient(135deg, #ffd1dc 0%, #ffe5ec 50%, #f3d5fa 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ev-archive-hero::before,
.ev-single-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.ev-archive-hero-inner,
.ev-single-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.ev-archive-hero h1,
.ev-single-hero .ev-single-title {
  font-size: 2rem;
  font-weight: 700;
  color: #5d2e3d;
  margin: 0 0 14px;
  line-height: 1.4;
}
.ev-archive-lead {
  font-size: 1.05rem;
  color: #6d3d4d;
  line-height: 1.85;
  margin: 0;
}

/* === コンテナ === */
.ev-archive-container,
.ev-single-container {
  max-width: 880px;
  margin: -30px auto 0;
  padding: 0 24px;
  position: relative;
}

/* ============================================
   一覧ページ
============================================ */

/* イベント種類の案内（表示のみ・クリック不可） */
.ev-filter {
  margin-bottom: 32px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(255,122,158,.1);
  text-align: center;
}
.ev-filter-label {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ev-primary-d);
}
.ev-filter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ev-filter-badge {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #fff5f7, #fdf4ff);
  color: var(--ev-primary-d);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid #ffd6df;
  cursor: default; /* クリック不可を視覚的に示す */
  user-select: none;
}

/* セクション */
.ev-section {
  margin-bottom: 50px;
}
.ev-section-title {
  font-size: 1.55rem;
  color: var(--ev-primary-d);
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ffd6df;
  text-align: center;
}

/* イベントリスト */
.ev-list {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .ev-list { grid-template-columns: repeat(2, 1fr); }
  .ev-list--past { grid-template-columns: repeat(3, 1fr); }
}

/* イベントカード */
.ev-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(255,122,158,.12);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ev-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,122,158,.2);
}
.ev-card-link {
  display: block;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
}
.ev-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.ev-card-type {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--ev-primary), var(--ev-primary-d));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
}
.ev-card-date {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
}
.ev-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #3d2532;
  line-height: 1.5;
}
.ev-card-excerpt {
  margin: 0 0 14px;
  color: #6d4d5d;
  font-size: 0.95rem;
  line-height: 1.7;
}
.ev-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #ffd6df;
}
.ev-card-meta-item {
  font-size: 0.88rem;
  color: #6d4d5d;
}
.ev-card-cta {
  display: inline-block;
  margin-top: 14px;
  color: var(--ev-primary-d);
  font-weight: 700;
  font-size: 0.95rem;
}

/* 過去カード（小さめ） */
.ev-card--past {
  opacity: 0.85;
}
.ev-card--past .ev-card-link {
  padding: 18px 20px;
}
.ev-card--past .ev-card-title {
  font-size: 1rem;
}

/* 空の状態 */
.ev-empty {
  text-align: center;
  padding: 60px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(255,122,158,.08);
}
.ev-empty p {
  margin: 0 0 12px;
  color: #6d4d5d;
  line-height: 1.85;
}
.ev-empty-line-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 14px 30px;
  background: var(--ev-line);
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6,199,85,.3);
  transition: background .2s, transform .2s;
}
.ev-empty-line-btn:hover {
  background: var(--ev-line-d);
  transform: translateY(-2px);
}

/* 一覧下部のCTA */
.ev-archive-cta {
  background: #fff;
  padding: 40px 32px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(255,122,158,.12);
  text-align: center;
  margin-top: 30px;
}
.ev-archive-cta h2 {
  font-size: 1.4rem;
  color: var(--ev-primary-d);
  margin: 0 0 12px;
}
.ev-archive-cta p {
  color: #6d4d5d;
  line-height: 1.85;
  margin: 0 0 24px;
}
.ev-archive-cta-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 600px) {
  .ev-archive-cta-grid { grid-template-columns: 1fr 1fr; }
}
.ev-archive-cta-btn {
  display: block;
  padding: 18px 22px;
  border-radius: 14px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s;
}
.ev-archive-cta-btn--female {
  background: linear-gradient(135deg, #ff7a9e, #e84d77);
  box-shadow: 0 6px 16px rgba(232,77,119,.32);
}
.ev-archive-cta-btn--male {
  background: linear-gradient(135deg, #5b8def, #2f6dd6);
  box-shadow: 0 6px 16px rgba(47,109,214,.32);
}
.ev-archive-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* ============================================
   詳細ページ
============================================ */

.ev-single-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.ev-single-type {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ev-primary-d);
  box-shadow: 0 3px 10px rgba(232,77,119,.18);
}
.ev-single-past-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #888;
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.ev-single-hero.is-past {
  background: linear-gradient(135deg, #d8d4dc 0%, #e7e3eb 100%);
}
.ev-single-hero.is-past .ev-single-title {
  color: #555;
}
.ev-single-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5d2e3d;
  margin: 0;
}

/* 詳細サマリー */
.ev-single-summary {
  background: #fff;
  padding: 32px 30px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(255,122,158,.12);
  margin-bottom: 28px;
}
.ev-single-dl {
  margin: 0;
  display: grid;
  gap: 16px;
}
.ev-single-dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed #ffd6df;
  align-items: start;
}
.ev-single-dl > div:last-child { border-bottom: none; }
.ev-single-dl dt {
  font-weight: 700;
  color: var(--ev-primary-d);
  font-size: 0.98rem;
}
.ev-single-dl dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
}
.ev-single-dl dd strong { color: var(--ev-primary-d); }

/* 本文 */
.ev-single-body {
  background: #fff;
  padding: 32px 30px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(255,122,158,.12);
  margin-bottom: 28px;
}
.ev-single-body h2 {
  font-size: 1.35rem;
  color: var(--ev-primary-d);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ffd6df;
}
.ev-single-content {
  line-height: 1.95;
  color: #444;
}
.ev-single-content p {
  margin: 0 0 1.2em;
}
.ev-single-content h3 {
  margin-top: 1.5em;
  color: var(--ev-primary-d);
}

/* 申込みCTA */
.ev-single-apply {
  background: #fff;
  padding: 40px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(255,122,158,.18);
  text-align: center;
  margin-bottom: 28px;
}
.ev-single-apply h2 {
  font-size: 1.5rem;
  color: var(--ev-primary-d);
  margin: 0 0 14px;
}
.ev-single-apply-lead {
  color: #6d4d5d;
  line-height: 1.85;
  margin: 0 0 26px;
}
.ev-single-apply-btn {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--ev-primary), var(--ev-primary-d));
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(232, 77, 119, .35);
  transition: background .2s, transform .2s, box-shadow .2s, opacity .2s;
  font-family: inherit;
}
.ev-single-apply-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(232, 77, 119, .45);
  opacity: 0.95;
}
.ev-single-apply-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none !important;
}
.ev-single-apply-note {
  margin: 22px 0 18px;
  font-size: 0.9rem;
  color: #888;
}
.ev-single-register-grid {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .ev-single-register-grid { grid-template-columns: 1fr 1fr; }
}
.ev-single-register-link {
  display: block;
  padding: 14px 20px;
  border-radius: 12px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform .2s, opacity .2s;
}
.ev-single-register-link--female {
  background: linear-gradient(135deg, #ff7a9e, #e84d77);
}
.ev-single-register-link--male {
  background: linear-gradient(135deg, #5b8def, #2f6dd6);
}
.ev-single-register-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.ev-single-apply--past {
  background: #f3f0f5;
  box-shadow: none;
  color: #555;
}
.ev-single-apply--past h2 { color: #666; }
.ev-single-apply--past a { color: var(--ev-primary-d); }

/* 戻る */
.ev-single-back {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95rem;
}
.ev-single-back a {
  color: var(--ev-primary-d);
  text-decoration: underline;
}

/* ============================================
   トップページの「直近イベント」表示
============================================ */
.home-events-list {
  display: grid;
  gap: 20px;
  margin: 30px 0 20px;
}
@media (min-width: 720px) {
  .home-events-list { grid-template-columns: repeat(3, 1fr); }
}

.home-event-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(255,122,158,.12);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.home-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,122,158,.2);
}
.home-event-card-link {
  display: block;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
}
.home-event-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.home-event-card-type {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ff7a9e, #e84d77);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
}
.home-event-card-date {
  font-size: 0.82rem;
  color: #888;
  font-weight: 600;
}
.home-event-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #3d2532;
  line-height: 1.5;
}
.home-event-card-excerpt {
  margin: 0 0 12px;
  color: #6d4d5d;
  font-size: 0.9rem;
  line-height: 1.7;
}
.home-event-card-meta {
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px dashed #ffd6df;
  font-size: 0.85rem;
  color: #6d4d5d;
}
.home-event-card-cta {
  display: inline-block;
  margin-top: 8px;
  color: #e84d77;
  font-weight: 700;
  font-size: 0.92rem;
}

.home-events-empty {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255,122,158,.08);
  margin: 30px 0;
}
.home-events-empty p {
  margin: 0 0 18px;
  line-height: 1.85;
  color: #6d4d5d;
}
.home-events-empty-actions {
  margin-top: 14px;
}

/* === レスポンシブ === */
@media (max-width: 720px) {
  .ev-archive-hero,
  .ev-single-hero { padding: 70px 18px 50px; }
  .ev-archive-hero h1,
  .ev-single-hero .ev-single-title { font-size: 1.5rem; }
  .ev-archive-lead { font-size: 0.95rem; }

  .ev-archive-container,
  .ev-single-container { padding: 0 16px; }

  .ev-section-title { font-size: 1.25rem; }

  .ev-card-link { padding: 18px 18px; }
  .ev-card-title { font-size: 1.05rem; }

  .ev-single-summary,
  .ev-single-body,
  .ev-single-apply { padding: 26px 22px; }
  .ev-single-dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ev-single-dl dt { font-size: 0.9rem; }
  .ev-single-apply-btn { font-size: 1.05rem; padding: 16px 30px; }

  .ev-archive-cta { padding: 30px 22px; }
}

/* ============================================
   LINE送信メッセージ コピーヘルパー（イベント詳細ページ）
============================================ */
.cp-line-msg-helper {
  margin: 22px auto 18px;
  max-width: 560px;
  background: linear-gradient(135deg, #fff8fb 0%, #fff5f7 100%);
  border: 2px dashed #f8a5c2;
  border-radius: 14px;
  padding: 20px 22px;
  text-align: left;
}
.cp-line-msg-helper-title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #c54177;
  line-height: 1.5;
}
.cp-line-msg-box {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #ffd6df;
}
.cp-line-msg-text {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 1rem;
  color: #2d2440;
  font-weight: 600;
  line-height: 1.6;
  display: flex;
  align-items: center;
  word-break: break-all;
}
.cp-line-msg-copy {
  flex-shrink: 0;
  background: linear-gradient(135deg, #06c755, #05a548);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
  white-space: nowrap;
}
.cp-line-msg-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
}
.cp-line-msg-copy.is-copied {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  animation: cp-copy-pulse 0.4s ease;
}
@keyframes cp-copy-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.cp-line-msg-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .cp-line-msg-helper {
    padding: 16px 18px;
  }
  .cp-line-msg-helper-title {
    font-size: 0.88rem;
  }
  .cp-line-msg-text {
    font-size: 0.95rem;
    min-width: 100%;
  }
  .cp-line-msg-copy {
    width: 100%;
    padding: 12px;
  }
}

/* ============================================
   チューリップ降下演出（イベント一覧ページ）
============================================ */
.ev-archive {
  position: relative;
  overflow-x: hidden;
}
.ev-tulip-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}
.ev-tulip {
  position: absolute;
  top: -50px;
  font-size: 28px;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(255, 122, 158, 0.3)) brightness(1.1);
  user-select: none;
  will-change: transform, opacity;
}

/* 15個のチューリップそれぞれに異なる位置・サイズ・タイミング */
.ev-tulip--1  { left:  3%;  font-size: 30px; animation: ev-tulip-fall 14s linear infinite; animation-delay: 0s;   }
.ev-tulip--2  { left: 10%;  font-size: 24px; animation: ev-tulip-fall 16s linear infinite; animation-delay: 1.2s; }
.ev-tulip--3  { left: 18%;  font-size: 36px; animation: ev-tulip-fall 13s linear infinite; animation-delay: 2.5s; }
.ev-tulip--4  { left: 25%;  font-size: 28px; animation: ev-tulip-fall 17s linear infinite; animation-delay: 0.6s; }
.ev-tulip--5  { left: 33%;  font-size: 32px; animation: ev-tulip-fall 15s linear infinite; animation-delay: 3.5s; }
.ev-tulip--6  { left: 41%;  font-size: 22px; animation: ev-tulip-fall 18s linear infinite; animation-delay: 1.8s; }
.ev-tulip--7  { left: 49%;  font-size: 34px; animation: ev-tulip-fall 14.5s linear infinite; animation-delay: 4s; }
.ev-tulip--8  { left: 57%;  font-size: 26px; animation: ev-tulip-fall 16.5s linear infinite; animation-delay: 0.9s; }
.ev-tulip--9  { left: 65%;  font-size: 30px; animation: ev-tulip-fall 13.5s linear infinite; animation-delay: 2.7s; }
.ev-tulip--10 { left: 73%;  font-size: 24px; animation: ev-tulip-fall 17.5s linear infinite; animation-delay: 1.5s; }
.ev-tulip--11 { left: 81%;  font-size: 38px; animation: ev-tulip-fall 14s linear infinite; animation-delay: 3.2s; }
.ev-tulip--12 { left: 88%;  font-size: 26px; animation: ev-tulip-fall 16s linear infinite; animation-delay: 0.3s; }
.ev-tulip--13 { left: 95%;  font-size: 22px; animation: ev-tulip-fall 18.5s linear infinite; animation-delay: 5s; }
.ev-tulip--14 { left: 38%;  font-size: 20px; animation: ev-tulip-fall 19s linear infinite; animation-delay: 6s; }
.ev-tulip--15 { left: 70%;  font-size: 32px; animation: ev-tulip-fall 15.5s linear infinite; animation-delay: 7.5s; }

/* チューリップが降ってくるアニメーション
   - 上から下に落下
   - 左右に揺れながら（風に揺られるイメージ）
   - 軽く回転
   - フェードイン・アウト */
@keyframes ev-tulip-fall {
  0% {
    transform: translate(0, -50px) rotate(-15deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  25% {
    transform: translate(15px, 25vh) rotate(10deg);
  }
  50% {
    transform: translate(-15px, 50vh) rotate(-10deg);
    opacity: 0.6;
  }
  75% {
    transform: translate(20px, 75vh) rotate(15deg);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-10px, 100vh) rotate(-5deg);
    opacity: 0;
  }
}

/* スマホでは数を減らして軽量化 */
@media (max-width: 720px) {
  .ev-tulip--3,
  .ev-tulip--6,
  .ev-tulip--9,
  .ev-tulip--11,
  .ev-tulip--14 {
    display: none;
  }
  .ev-tulip {
    font-size: 22px !important;
  }
}

/* アニメーション軽減設定が有効な場合は非表示 */
@media (prefers-reduced-motion: reduce) {
  .ev-tulip-rain {
    display: none;
  }
}

/* コンテンツをチューリップより下のレイヤーに */
.ev-archive .ev-archive-hero,
.ev-archive .ev-archive-container {
  position: relative;
  z-index: 1;
}
