/* happyell event / spot / event calendar css */
/*　イベントページ */
/* =========================
   event archive 共通
========================= */

.event-archive {
  margin: 0 auto;
  padding: 0px;
}

.event-archive__title {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.event-archive__result {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* =========================
   クイック日付ボタン
========================= */

.event-quickdate {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.event-quickdate__btn {
  margin: 0 0 1em 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  text-decoration: none;
  color: #111;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.event-quickdate__btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

/* =========================
   絞り込みフォーム
========================= */

.event-filter {
  margin: 8px 0 12px;
}

.event-filter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
}

.event-filter label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
}

.event-filter input[type="date"],
.event-filter input[type="text"],
.event-filter select {
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  min-width: 160px;
}

.event-filter button {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.event-filter button:hover {
  opacity: 0.9;
}

.event-filter__reset {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
  text-decoration: none;
  color: #111;
}

/* =========================
   イベントカード一覧
========================= */

.event-cards {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.event-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  overflow: hidden;
}

.event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card__body {
  padding: 2px 14px 2px 14px;
  display: flex;
  flex-direction: column;
}

.event-card__genre {
  font-size: 0.8em!important;
  color: #555;
}

.event-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.event-card__title a {
  text-decoration: none;
  color: #111;
}

.event-card__date,
.event-card__spot {
  font-size: 0.9em !important;
  margin: 0;
}

.event-card__excerpt {
  font-size: 1.1em;
  line-height: 1.2em;
}

/* =========================
   ページネーション
========================= */

.event-archive__pagination {
  margin: 26px 0 10px;
  display: flex;
  justify-content: center;
}

.event-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 4px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: 14px;
  color: #111;
}

.event-archive__pagination .current {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* =========================
   レスポンシブ
========================= */

@media (max-width: 980px) {
  .event-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .event-cards {
    grid-template-columns: 1fr;
  }

  .event-filter__row {
    flex-direction: column;
    align-items: stretch;
  }

  .event-filter input,
  .event-filter select,
  .event-filter button {
    width: 100%;
  }

  .event-quickdate {
    flex-wrap: wrap;
  }
}


/* single-event.php 用の最小CSS（既存CSSに追記） */

.event-single {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.event-single__badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  padding: 3px 10px;
  margin: 0 0 10px;
}

.event-single__badge--ongoing {}
.event-single__badge--upcoming { border-color: #666; }
.event-single__badge--ended { border-color: #999; }

.event-single__title {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.event-single__meta {
  font-size: 1.3em;
  margin: 1em;
  line-height: 1.5em;
}

.event-single__meta-item {
  margin: 0;
}

.event-single__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.event-single__content {
  margin-top: 14px;
  line-height: 1.9;
}

/* スポットカード */
.event-single__section-title {
  margin: 26px 0 10px;
  font-size: 18px;
}

.event-single__spotcard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.event-single__spotthumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.event-single__spottitle {
  margin: 0 0 6px;
  font-size: 16px;
}

.event-single__spottitle a { text-decoration: none; }

.event-single__spotmeta {
  margin: 0 0 8px;
  font-size: 13px;
}

.event-single__spotlink a { text-decoration: none; }

/* 関連イベント */
.event-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.event-related__card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.event-related__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  overflow: hidden;
}

.event-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-related__body {
  padding: 12px;
}

.event-related__title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.event-related__title a { text-decoration: none; }

.event-related__date {
  margin: 0;
  font-size: 13px;
}

/* ナビ */
.event-single__nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-single__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 980px) {
  .event-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-single__spotcard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .event-related__grid {
    grid-template-columns: 1fr;
  }
}


/* single-spot.php 用CSS（そのまま貼れる） */

.spot-single {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.spot-single__title {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.spot-single__meta {
  margin: 0 0 12px;
  font-size: 13px;
}

.spot-single__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.spot-single__content {
  margin-top: 14px;
  line-height: 1.9;
}

.spot-single__section-title {
  margin: 26px 0 10px;
  font-size: 18px;
}

.spot-single__empty {
  font-size: 14px;
}

/* イベント */
.spot-events {
  margin-top: 14px;
}

.spot-events__title {
  font-size: 16px;
  margin: 14px 0 10px;
}

.spot-events__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.spot-event-card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.spot-event-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  overflow: hidden;
}

.spot-event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spot-event-card__body {
  padding: 12px;
}

.spot-event-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.spot-event-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  padding: 2px 8px;
  margin: 0;
}

.spot-event-card__badge--ongoing { }
.spot-event-card__badge--upcoming { border-color: #666; }
.spot-event-card__badge--ended { border-color: #999;  }

.spot-event-card__genre {
  margin: 0;
  font-size: 12px;
}

.spot-event-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.spot-event-card__title a {
  text-decoration: none;
  color: #111;
}

.spot-event-card__date {
  margin: 0;
  font-size: 13px;
}

/* ナビ */
.spot-single__nav {
  margin-top: 18px;
}

.spot-single__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  text-decoration: none;
  color: #111;
}

/* レスポンシブ */
@media (max-width: 980px) {
  .spot-events__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .spot-events__grid {
    grid-template-columns: 1fr;
  }
}

/*　イベントページで使うcss */
.event-tr {
    border: 1px solid #ddd;
}
.event-th {
width: 30%;
    padding: 8px;
    background-color: #efefef;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.7rem;
    text-align: left;
}

.event-td{
padding: 8px;
    font-size: 1.4rem;
    line-height: 1.6rem;
    word-break: break-all;
}


.event-embed-cards{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.event-embed-card{
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.event-embed-card__thumb{
  display:block;
  aspect-ratio: 16/9;
  background:#f0f0f0;
  overflow:hidden;
}
.event-embed-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.event-embed-card__body{
  padding: 12px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.event-embed-card__genre{
  margin:0;
  font-size:11px;
}
.event-embed-card__title{
  margin:0;
  font-size:16px;
  line-height:1.35;
}
.event-embed-card__title a{ text-decoration:none; }
.event-embed-card__date,
.event-embed-card__spot{
  margin:0;
  font-size:13px;
}
.event-embed-empty{
  margin: 14px 0;
  font-size: 14px;
}
@media (max-width: 980px){
  .event-embed-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .event-embed-cards{ grid-template-columns: 1fr; }
}

.event-card__date, 
.spot-event-card__date,
.event-embed-card__date {
  color: #e60023;
}

/* イベントカレンダー css */
.m-calendar {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin: 24px 0;
}

.m-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.m-calendar__ttl {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.m-calendar__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.m-calendar__future,
.m-calendar__past {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
  background: #fafafa;
  font-size: 0.9rem;
}

.m-calendar__main {
  width: 100%;
}

.m-calendar__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.m-calendar__cell {
  min-height: 64px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
  position: relative;
  background: #fff;
}

.m-calendar__row .m-calendar__cell:last-child {
  border-right: none;
}

.m-calendar__th {
  min-height: auto;
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  background: #fafafa;
}

.m-calendar__th--sat {
  color: #2b6de5;
}

.m-calendar__th--sun {
  color: #d94242;
}

.m-calendar__cell--sat .m-calendar__link,
.m-calendar__cell--sat {
  color: #2b6de5;
}

.m-calendar__cell--sun .m-calendar__link,
.m-calendar__cell--sun {
  color: #d94242;
}

.m-calendar__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 10px;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
}

.m-calendar__daynum {
  font-size: 1rem;
  line-height: 1.2;
}

.m-calendar__holiday-name {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1.3;
}

.m-calendar__cell.is-current {
  background: #fff7d6;
}

.m-calendar__cell.is-current .m-calendar__link {
  font-weight: 700;
}

@media (max-width: 767px) {
  .m-calendar__cell {
    min-height: 52px;
  }

  .m-calendar__link {
    padding: 8px;
  }

  .m-calendar__daynum {
    font-size: 0.95rem;
  }

  .m-calendar__holiday-name {
    font-size: 0.65rem;
  }

  .m-calendar__header {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* イベント詳細ページ：パンくず下の最新・人気イベント */
/* イベント詳細ページ：パンくず下の最新・人気イベント */
.happyell-event-pickup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 6px 0 16px;
}

.happyell-event-pickup__card {
  border-bottom: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
}

.happyell-event-pickup__link {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  align-items: center;
  color: #111;
  text-decoration: none;
}

.happyell-event-pickup__thumb {
  width: 150px;
  aspect-ratio: 16 / 9;
  background: #f2f2f2;
  overflow: hidden;
}

.happyell-event-pickup__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* アイキャッチ未設定時 */
.happyell-event-pickup__noimg {
  width: 100%;
  height: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  background: #f2f2f2;
  font-size: 12px;
}

.happyell-event-pickup__body {
  min-width: 0;
  padding: 0;
}

.happyell-event-pickup__label {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.3;
  color: #e60033;
  font-weight: 700;
}

.happyell-event-pickup__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .happyell-event-pickup__link {
    grid-template-columns: 200px 1fr;
  }

  .happyell-event-pickup__thumb {
    width: 200px;
  }

  .happyell-event-pickup__title {
    font-size: 16px;
  }

  .happyell-event-pickup__noimg {
    min-height: 112px;
  }
}

/* イベントカレンダー 月移動リンクのタップ不具合対策 */
.m-calendar,
.m-calendar__header,
.m-calendar__nav {
  position: relative;
}

.m-calendar__header {
  z-index: 20;
}

.m-calendar__nav {
  z-index: 21;
  pointer-events: auto !important;
}

.m-calendar__nav a,
.m-calendar__future,
.m-calendar__past {
  position: relative;
  z-index: 22;
  pointer-events: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  line-height: 1.4;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.m-calendar__main {
  position: relative;
  z-index: 1;
}