@charset "utf-8";
/* =========================================================
   event.css (fresh)
   文章はHTML側そのまま／レイアウトと見た目だけ整える
========================================================= */

/* ===== Safety base (scoped) ===== */
.ev,
.ev *{
  box-sizing: border-box;
}

/* Page wrapper */
.ev{
  padding: 12px 10px 24px;
  clear: both;             /* float残り対策：nav/他要素への潜り込みを減らす */
}

/* Title */
.ev__title{
  margin: 0 0 14px;
  padding: 10px 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: #ff6fbd;
  border-radius: 14px;
  text-shadow: 1px 1px 1px rgba(0,0,0,.35);
}

/* Grid */
.evGrid{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Card */
.evCard{
  width: min(100%, 440px);
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6e6e6;
}

/* Note area */
.evNote{
  margin-top: 16px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fcff;
  border: 1px solid #aeeaff;
}

/* Badge */
.evBadge{
  margin: 0;
  padding: 10px 10px;
  text-align: center;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.evBadge--health{
  color: #f63da6;
  border: 3px dashed #FC9FF6;
  background: #fff6fb;
}

.evBadge--free{
  color: #e68a00;
  border: 3px dashed #aeeaff;
  background: #f8fcff;
}

.evBadge--hand{
  color: #FFC800;
  border: 3px dashed #FFEF6C;
  background: #fffdf0;
}

/* Text */
.evText{
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.evText--note{
  font-weight: 800;
  color: #f63da6;
}

.evText--warn{
  font-weight: 900;
  color: #e1252e;
}

/* Inline emphasis */
.evEm{
  font-weight: 900;
}

/* ===== evTable (rounded via wrapper) ===== */
.evTableWrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
}

.evTableBox{
  border-radius: 14px;
  overflow: hidden; /* 角丸を確実に効かせる */
  background: #fff;
}

/* Table */
.evTable{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.evTable th,
.evTable td{
  padding: 12px 10px;
  text-align: center;
  font-weight: 800;
}

.evTable th{ width: 55%; }

/* Themes */
.evTable--pink{
  border: 1px solid #f63da6;
}
.evTable--pink th,
.evTable--pink td{
  border-bottom: 1px solid #f63da6;
  border-right: 1px solid #f63da6;
}

.evTable--free{
  border: 1px solid #aeeaff;
}
.evTable--free th,
.evTable--free td{
  border-bottom: 1px solid #aeeaff;
  border-right: 1px solid #aeeaff;
}

.evTable--gold{
  border: 1px solid #FFD700;
}
.evTable--gold th,
.evTable--gold td{
  border-bottom: 1px solid #FFD700;
  border-right: 1px solid #FFD700;
}

/* Remove last row bottom border */
.evTable tr:last-child th,
.evTable tr:last-child td{
  border-bottom: none;
}

/* Remove last col right border */
.evTable tr th:last-child,
.evTable tr td:last-child{
  border-right: none;
}

/* Row modifiers */
.evTable__row--strong th,
.evTable__row--strong td{
  font-size: 16px;
}

.evTable__row--compact th,
.evTable__row--compact td{
  font-size: 13px;
  padding: 8px 10px;
  font-weight: 700;
}

/* ===== Legacy table (o-event-*) : dedup + rounded fix ===== */
.o-event-table{
  width: 100%;
  border-collapse: separate;   /* collapseだと角丸が効きにくい */
  border-spacing: 0;
  border: 2px solid #d4af37;   /* ゴールド枠 */
  background: #fffdf3;
  border-radius: 14px;
  overflow: hidden;
}

.o-event-th,
.o-event-td{
  border-right: 1px solid #d4af37;
  border-bottom: 1px solid #d4af37;
  padding: 10px;
  font-size: 15px;
  font-weight: 700;
}

.o-event-th{
  background: #fff2b3;
  font-weight: 800;
  text-align: left;
}

.o-event-td{
  text-align: right;
  font-weight: 800;
}

/* last column/row borders */
.o-event-table tr th:last-child,
.o-event-table tr td:last-child{
  border-right: none;
}
.o-event-table tr:last-child th,
.o-event-table tr:last-child td{
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px){
  .ev{ padding: 10px 8px 18px; }
  .ev__title{ font-size: 16px; }
  .evCard{ width: 100%; }
  .evBadge{ font-size: 15px; }

  .evTable th,
  .evTable td{
    padding: 10px 8px;
    font-size: 14px;
  }

  .o-event-th,
  .o-event-td{
    padding: 9px 8px;
    font-size: 14px;
  }
}
