/* =========================
   Map controls
========================= */
.whem-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
}
.whem-controls input[type="date"] { padding: 4px 6px; }
.whem-controls .whem-reload { padding: 6px 10px; cursor: pointer; }
.whem-popup a { text-decoration: underline; }


/* =========================
   Single Event: hide theme title/featured image
========================= */
.single-whiga_event .entry-title { display:none !important; }
.single-whiga_event .post-image,
.single-whiga_event .featured-image,
.single-whiga_event .gp-post-image { display:none !important; }


/* =========================
   GeneratePress余白（イベント個別ページ）
========================= */
.single-whiga_event .site-content { padding-top: 0 !important; padding-bottom: 0 !important; }
.single-whiga_event .content-area { padding: 0 !important; margin: 0 !important; }
.single-whiga_event .inside-article { padding: 15px !important; }
.single-whiga_event .entry-content { margin: 0 !important; padding: 0 !important; }
.single-whiga_event .entry-content > * { margin-top: 0 !important; }


/* =========================
   Hero (Title → Eyecatch)
   - タイトル/本文/イベント情報は左右+20px
   - アイキャッチは余白0 & 中央（inside-article 15pxを打ち消す）
========================= */
.whem-hero { margin: 0; padding: 0; }

/* タイトル：左右+20px（アイコン分も確保） */
.single-whiga_event .whem-hero__title.sample_h_23{
  padding-right: 20px;
  padding-left: calc(2.2em + 20px);
}

/* アイキャッチ：左右0（記事内余白15pxを相殺） */
.single-whiga_event .whem-hero__image{
  margin-top: 6px;
  margin-left: -15px;
  margin-right: -15px;
  text-align: center;
}

.whem-eyecatch{
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
}


/* =========================
   Title Megaphone Flash (Font Awesome 6)
========================= */
.sample_h_23{
  display:block;
  font-size: 1.68em;
  font-weight: 800;
  line-height: 1.25;
  padding: .10em 0 .10em 2.2em;
  margin: .20em 0 .35em 0;
  position: relative;
  color:#168c6b;
}
.sample_h_23:before {
  position: absolute;
  font-family: "Font Awesome 6 Free";
  content: "\f0a1";
  font-weight: 900;
  font-size: 18px;
  top: .20em;
  left: .20em;
  width: 1.6em;
  height: 1.6em;
  text-align: center;
  line-height: 1.6em;
  color: #168c6b;
  transform: none;
  animation: my-animation 4s ease infinite;
}
@keyframes my-animation{
  0% { opacity:1; }
  50% { opacity:0; }
  100% { opacity:1; }
}


/* =========================
   Body content padding (左右+20px)
========================= */
.single-whiga_event .entry-content{
  padding-left: 20px !important;
  padding-right: 20px !important;
}


/* =========================
   Details (イベント情報)
   - ブロック自体も左右+20px
   - 表の背景帯は本文に揃える（行paddingを0にしてdt/ddにpadding）
========================= */
.single-whiga_event .whem-event-detail{
  margin: 10px 0 0;
  padding-left: 20px;
  padding-right: 20px;
}

.whem-event-detail__title{
  text-align: center;
  font-family: "Zen Kaku Gothic New","Noto Sans JP",sans-serif;
  font-weight: 900;
  letter-spacing: .10em;
  font-size: 20px;
  margin: 0 0 10px;
}

/* dl rows */
.whem-dl { margin: 0; }

.whem-dl__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 0; /* 背景を端まで */
}

/* 背景を淡い色で交互に */
.whem-dl__row:nth-child(odd)  { background: #f6f7fb; }
.whem-dl__row:nth-child(even) { background: #ffffff; }

.whem-dl__dt,
.whem-dl__dd{
  padding: 10px 8px;
  margin: 0;
}
.whem-dl__dt { font-weight: 700; }

.whem-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
}
.whem-badge-open { background: #e8f7ee; }
.whem-badge-closed { background: #fbe9ea; }

.whem-event-detail__mapwrap { margin-top: 10px; }
.whem-single-map .whem-map { overflow: hidden; }
.whem-map-links { margin-top: 6px; }

.whem-no-geo {
  color: #666;
  font-size: 13px;
  padding: 10px 0;
}


/* =========================
   Site / SNS row
========================= */
.whem-sns{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.whem-sns-url{
  font-weight:700;
  text-decoration: underline;
}

.whem-sns-none{
  color:#888;
  font-weight:700;
}

.whem-sns-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.whem-sns-icon i{
  font-size:18px;
  line-height:1;
}


/* =========================
   Event List (Widget / Sidebar)
========================= */
.whem-elist{
  display: grid;
  gap: 12px;
}

.whem-elist__item{
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 10px 0;
  border-bottom: 2px solid #e6e6e6;
}

.whem-elist__thumb{
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f2f2;
}

.whem-elist__img--ph{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f2f2f2, #e7e7e7);
}

.whem-elist__badge{
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff;
  background: #888;
}

.whem-elist__body{ min-width: 0; flex: 1 1 auto; }

.whem-elist__title{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.whem-elist__meta{
  margin-top: 6px;
  font-size: 12px;
  color: #777;
}

/* 下線カラー＆バッジ色：受付中/受付終了 */
.whem-elist--open{ border-bottom-color: #4aa36a; }
.whem-elist--open .whem-elist__badge{ background: #4aa36a; }

.whem-elist--closed{ border-bottom-color: #d85b5b; }
.whem-elist--closed .whem-elist__badge{ background: #d85b5b; }

.whem-elist__item:hover .whem-elist__title{ text-decoration: underline; }


/* =========================
   Responsive
========================= */
@media (max-width: 640px) {
  .whem-dl__row { grid-template-columns: 1fr; }
  .whem-dl__dt { padding-bottom: 4px; }
  .sample_h_23{ font-size: 1.45em; }

  .single-whiga_event .entry-content,
  .single-whiga_event .whem-event-detail{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .single-whiga_event .whem-hero__title.sample_h_23{
    padding-right: 16px;
    padding-left: calc(2.0em + 16px);
  }

  .single-whiga_event .whem-hero__image{
    margin-left: -15px;
    margin-right: -15px;
  }
}
