/* ==================================================================
 * にこいち：TOP「受付中の見学会」欄（2026-11-09）
 * inc/nicoichi-event-lp-feed.php の [wh_event_lp_feed] 用。TOP だけで読む。
 * 下の「イベント情報／モデルハウス情報」（白地のカルーセル）と分けるため、
 * 紺の帯・白いカード・えんじの札で、ひと目で「いま行ける見学会」と分かる形にする。
 * ================================================================== */

.wh-evlp {
  --evlp-navy: var(--wh-navy, #3E4F63);
  --evlp-navy-deep: var(--wh-navy-deep, #2E3B4B);
  --evlp-accent: var(--wh-accent, #942827);
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 16px clamp(56px, 7vw, 96px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, var(--evlp-navy) 0%, var(--evlp-navy-deep) 100%);
  color: #fff;
}

.wh-evlp__inner {
  max-width: 1140px;
  margin: 0 auto;
}

/* 見出し */
.wh-evlp__head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.wh-evlp__en {
  margin: 0 0 8px;
  font-family: "Roboto Slab", serif;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: .32em;
  color: rgba(255, 255, 255, .72);
}
.wh-evlp__ttl {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  color: #fff;
}
.wh-evlp__ttl::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--evlp-accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
  transform: translateX(-50%);
}
.wh-evlp__lead {
  margin: 16px 0 0;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.9;
  color: rgba(255, 255, 255, .86);
}

/* 並び：件数で列を変える */
.wh-evlp__list {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wh-evlp[data-count="2"] .wh-evlp__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
}
.wh-evlp[data-count="1"] .wh-evlp__list {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
  margin: 0 auto;
}
.wh-evlp__item {
  margin: 0;
  padding: 0;
}
.wh-evlp__item::before { content: none; }

/* カード */
.wh-evlp__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  color: #333;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  transition: transform .35s var(--wh-ease, ease), box-shadow .35s var(--wh-ease, ease);
}
.wh-evlp__card:hover,
.wh-evlp__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  color: #333;
  text-decoration: none;
}
/* サイト共通のリンク下線をカードの中では消す */
.wh-evlp__card,
.wh-evlp__card *,
.wh-evlp__card:hover * {
  text-decoration: none !important;
}
.wh-evlp__card:focus-visible {
  outline: 3px solid #FFD800;
  outline-offset: 3px;
}

.wh-evlp__img {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #E9ECEF;
}
.wh-evlp__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--wh-ease, ease);
}
.wh-evlp__card:hover .wh-evlp__img img { transform: scale(1.04); }

.wh-evlp__img.is-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(62, 79, 99, .05) 0 12px, rgba(62, 79, 99, 0) 12px 24px),
    #F4F1EC;
}
.wh-evlp__noimg {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .3em;
  color: rgba(62, 79, 99, .45);
}

/* 状態の札 */
.wh-evlp__state {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .06em;
  color: #fff;
  background: var(--evlp-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.wh-evlp__state.is-open::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #fff;
  vertical-align: middle;
  animation: wh-evlp-pulse 1.8s ease-in-out infinite;
}
.wh-evlp__state.is-soon {
  background: #fff;
  color: var(--evlp-navy);
}
@keyframes wh-evlp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* 本文 */
.wh-evlp__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.wh-evlp__date {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--evlp-accent);
}
.wh-evlp__name {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
}
.wh-evlp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.wh-evlp__metaitem {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wh-evlp__ico {
  width: 14px;
  height: 14px;
  flex: none;
  fill: var(--evlp-navy);
}
.wh-evlp__ico.is-line {
  fill: none;
  stroke: var(--evlp-navy);
  stroke-width: 2;
  stroke-linecap: round;
}
.wh-evlp__resv {
  padding: 2px 8px;
  border: 1px solid var(--evlp-accent);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--evlp-accent);
}

/* ボタン（カード全体がリンク。見た目の目印） */
.wh-evlp__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: var(--evlp-accent);
  transition: background-color .3s var(--wh-ease, ease);
}
.wh-evlp__card:hover .wh-evlp__btn { background: var(--wh-accent-deep, #75201F); }
.wh-evlp__arrow { transition: transform .3s var(--wh-ease, ease); }
.wh-evlp__card:hover .wh-evlp__arrow { transform: translateX(4px); }

/* 1件だけのときは横長のカード（PC） */
@media (min-width: 768px) {
  .wh-evlp[data-count="1"] .wh-evlp__card { flex-direction: row; }
  .wh-evlp[data-count="1"] .wh-evlp__img { flex: 0 0 52%; aspect-ratio: auto; min-height: 320px; }
  .wh-evlp[data-count="1"] .wh-evlp__body { padding: 32px 36px; justify-content: center; }
  .wh-evlp[data-count="1"] .wh-evlp__name { font-size: 20px; }
  .wh-evlp[data-count="1"] .wh-evlp__btn { margin-top: 8px; align-self: flex-start; padding: 14px 32px; }
  .wh-evlp__br { display: none; }
}

/* タブレット：3件は2列＋1 */
@media (max-width: 1024px) {
  .wh-evlp[data-count="3"] .wh-evlp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* スマホ：縦に並べる */
@media (max-width: 767px) {
  .wh-evlp .wh-evlp__list { grid-template-columns: minmax(0, 1fr) !important; }
  .wh-evlp__body { padding: 16px 16px 18px; }
  .wh-evlp__name { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .wh-evlp__card,
  .wh-evlp__img img,
  .wh-evlp__arrow,
  .wh-evlp__btn { transition: none; }
  .wh-evlp__card:hover { transform: none; }
  .wh-evlp__state.is-open::before { animation: none; }
}
