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

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

.event-archive__title {
  font-size: 1.2em;
  line-height: 1.2;
  margin: 0;
}

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


/* =========================
   eventkansai 目的別ショートカット
========================= */

.event-purpose-nav {
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid #ffd4df;
  border-radius: 18px;
  background: #fff8fb;
}

.event-purpose-nav--middle {
  margin: 28px 0 24px;
  background: #fffdf7;
  border-color: #ffd9a8;
}

.event-purpose-nav__head {
  margin-bottom: 12px;
}

.event-purpose-nav__title {
  margin: 0 0 6px;
  color: #661326;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.event-purpose-nav__lead {
  margin: 0;
  color: #533;
  font-size: 13px;
  line-height: 1.7;
}

.event-purpose-nav__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.event-purpose-nav__grid--middle {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-purpose-nav__item {
  display: flex;
  min-height: 56px;
  padding: 10px 8px;
  border: 1px solid #ffc3d1;
  border-radius: 14px;
  background: #fff;
  color: #351018;
  text-decoration: none;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(255, 51, 102, 0.08);
}

.event-purpose-nav__item:hover {
  border-color: #ff3366;
  background: #fff2f6;
}

.event-purpose-nav__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.event-purpose-nav__sub {
  color: #76525b;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.event-editor-section {
  margin: 26px 0 28px;
}

.event-purpose-recommend {
  margin: 30px 0;
  padding: 4px 0 2px;
}

.event-purpose-recommend .event-editor-section {
  margin: 20px 0 24px;
}

.event-editor-section__lead {
  margin: 6px 0 12px;
  color: #533;
  font-size: 13px;
  line-height: 1.7;
}

.event-editor-section__more {
  margin: 12px 0 0;
  text-align: right;
}

.event-editor-section__more a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #ff3366;
  border-radius: 999px;
  background: #fff;
  color: #aa0033;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.event-cards--editor {
  margin-top: 12px;
}

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

.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 #e9d7dc;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

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

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

.event-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}

.event-card__top {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.event-card__status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ff3366;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.event-card__status--today,
.event-card__status--ending-today,
.event-card__status--ending-soon {
  background: #c9002b;
}

.event-card__status--weekend,
.event-card__status--tomorrow {
  background: #f08a00;
}

.event-card__status--upcoming {
  background: #444;
}

.event-card__status--ended {
  background: #999;
}

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

.event-card__date {
  margin: 0;
  color: #aa0000;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
}

.event-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.event-card__place,
.event-card__spot {
  margin: 0;
  color: #444;
  font-size: 13px !important;
  line-height: 1.45;
}

.event-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.event-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #ffd0dc;
  border-radius: 999px;
  background: #fff7fa;
  color: #772033;
  font-size: 12px;
  line-height: 1.35;
}

.event-card__excerpt,
.event-card__desc {
  color: #333;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-card__actions {
  margin-top: auto;
  padding-top: 7px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-card__actions a:only-child {
  grid-column: 1 / -1;
}

.event-card__button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.event-card__button--primary {
  background: #ff3366;
  border: 1px solid #ff3366;
  color: #fff;
}

.event-card__button--secondary {
  background: #fff;
  border: 1px solid #ff3366;
  color: #aa0033;
}

/* イベントカード内のグローバルCSS干渉対策 */
.p-entry__body .event-card__top,
.event-card .event-card__top {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.p-entry__body .event-card__date,
.event-card .event-card__date {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.p-entry__body .event-card__thumb,
.event-card .event-card__thumb {
  background: transparent !important;
}

.p-entry__body .event-card__thumb img,
.event-card .event-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  background: transparent !important;
}


/* 通常イベントカードをコンパクト表示。ピックアップ枠だけ event-card--pickup で大きい画像を維持 */
.event-card--compact .event-card__title,
.event-card:not(.event-card--pickup) .event-card__title {
  -webkit-line-clamp: 2;
}

.event-card--compact .event-card__excerpt,
.event-card--compact .event-card__desc,
.event-card:not(.event-card--pickup) .event-card__excerpt,
.event-card:not(.event-card--pickup) .event-card__desc {
  -webkit-line-clamp: 3;
}

@media (max-width: 560px) {
  .event-card--compact,
  .event-card:not(.event-card--pickup) {
    flex-direction: row;
    min-height: 118px;
    border-radius: 12px;
  }

  .event-card--compact .event-card__thumb,
  .event-card:not(.event-card--pickup) .event-card__thumb {
    flex: 0 0 38%;
    width: 38%;
    max-width: 38%;
    height: 118px;
    min-height: 118px;
    aspect-ratio: auto;
    align-self: stretch;
    line-height: 0;
    background: transparent;
  }

  .event-card--compact .event-card__thumb img,
  .event-card:not(.event-card--pickup) .event-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
  }

  .event-card--compact .event-card__body,
  .event-card:not(.event-card--pickup) .event-card__body {
    width: 62%;
    min-width: 0;
    padding: 8px 9px;
    gap: 4px;
  }

  .event-card--compact .event-card__top,
  .event-card:not(.event-card--pickup) .event-card__top {
    gap: 5px;
    flex-wrap: nowrap;
  }

  .event-card--compact .event-card__status,
  .event-card:not(.event-card--pickup) .event-card__status {
    min-height: 20px;
    padding: 1px 6px;
    font-size: 10px;
    line-height: 1.3;
    flex: 0 0 auto;
  }

  .event-card--compact .event-card__date,
  .event-card:not(.event-card--pickup) .event-card__date {
    font-size: 12px !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-card--compact .event-card__title,
  .event-card:not(.event-card--pickup) .event-card__title {
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .event-card--compact .event-card__place,
  .event-card--compact .event-card__spot,
  .event-card:not(.event-card--pickup) .event-card__place,
  .event-card:not(.event-card--pickup) .event-card__spot {
    font-size: 11px !important;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .event-card--compact .event-card__badges,
  .event-card:not(.event-card--pickup) .event-card__badges {
    gap: 3px;
    max-height: 21px;
    overflow: hidden;
  }

  .event-card--compact .event-card__tag,
  .event-card:not(.event-card--pickup) .event-card__tag {
    min-height: 18px;
    padding: 1px 5px;
    font-size: 10px;
    line-height: 1.25;
  }

  .event-card--compact .event-card__excerpt,
  .event-card--compact .event-card__desc,
  .event-card:not(.event-card--pickup) .event-card__excerpt,
  .event-card:not(.event-card--pickup) .event-card__desc {
    display: none;
  }

  .event-card--compact .event-card__actions,
  .event-card:not(.event-card--pickup) .event-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 2px;
    padding-top: 0;
  }

  .event-card--compact .event-card__actions a:only-child,
  .event-card:not(.event-card--pickup) .event-card__actions a:only-child {
    grid-column: 1 / -1;
  }

  .event-card--compact .event-card__button,
  .event-card:not(.event-card--pickup) .event-card__button {
    width: 100%;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .p-entry__body .event-card--compact .event-card__thumb,
  .p-entry__body .event-card:not(.event-card--pickup) .event-card__thumb,
  .event-card--compact .event-card__thumb,
  .event-card:not(.event-card--pickup) .event-card__thumb {
    background: transparent !important;
  }

  .p-entry__body .event-card--compact .event-card__top,
  .p-entry__body .event-card:not(.event-card--pickup) .event-card__top,
  .event-card--compact .event-card__top,
  .event-card:not(.event-card--pickup) .event-card__top {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .p-entry__body .event-card--compact .event-card__date,
  .p-entry__body .event-card:not(.event-card--pickup) .event-card__date,
  .event-card--compact .event-card__date,
  .event-card:not(.event-card--pickup) .event-card__date {
    display: inline-flex !important;
    margin: 0 !important;
  }

}

.event-card__more {
  margin: auto 0 0;
}

.event-card__more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ff3366;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

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

.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;
  }

  .event-purpose-nav {
    padding: 12px;
    border-radius: 14px;
  }

  .event-purpose-nav__grid,
  .event-purpose-nav__grid--middle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .event-purpose-nav__item {
    min-height: 50px;
    padding: 8px 6px;
  }

  .event-purpose-nav__label {
    font-size: 13px;
  }

  .event-purpose-nav__sub {
    font-size: 10px;
  }

  .event-editor-section__more {
    text-align: left;
  }

  .event-editor-section__more a {
    width: 100%;
    justify-content: center;
  }
}


/* 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: 50%;
  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: transparent;
  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: transparent;
  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;
  }
}

/* 関西イベント診断 */
.event-diagnosis {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #f2d6dd;
  border-radius: 16px;
  background: #fff8fa;
}

.event-diagnosis__head {
  margin-bottom: 14px;
}

.event-diagnosis__title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.4;
}

.event-diagnosis__lead,
.event-diagnosis__note,
.event-diagnosis-result__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.event-diagnosis__questions {
  display: grid;
  gap: 14px;
}

.event-diagnosis__question {
  margin: 0;
  padding: 12px;
  border: 1px solid #f4e3e8;
  border-radius: 14px;
  background: #fff;
}

.event-diagnosis__question legend {
  padding: 0 4px;
  font-weight: 700;
  font-size: 14px;
}

.event-diagnosis__question label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 8px 0 0;
  cursor: pointer;
}

.event-diagnosis__question input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-diagnosis__question span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e7d8de;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 1.3;
}

.event-diagnosis__question input:checked + span {
  border-color: #d9416f;
  background: #d9416f;
  color: #fff;
}

.event-diagnosis__question input:focus-visible + span {
  outline: 3px solid rgba(217, 65, 111, 0.25);
  outline-offset: 2px;
}

.event-diagnosis__actions {
  margin-top: 16px;
}

.event-diagnosis__button {
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #d9416f;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.event-diagnosis__button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.event-diagnosis__note {
  margin-top: 8px;
}

.event-diagnosis__result {
  margin-top: 18px;
}

.event-diagnosis__loading,
.event-diagnosis__error,
.event-diagnosis-result__empty,
.event-diagnosis__noscript {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0dce2;
  font-size: 14px;
  line-height: 1.7;
}

.event-diagnosis-result__title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.4;
}

.event-diagnosis-result__cards {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.event-diagnosis-result__links {
  margin-top: 16px;
}

.event-diagnosis-result__links-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.event-diagnosis-result__linkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-diagnosis-result__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ead6dd;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.event-diagnosis-result__link:hover {
  border-color: #d9416f;
  color: #d9416f;
}

@media (min-width: 768px) {
  .event-diagnosis__questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-diagnosis__question:nth-child(3) {
    grid-column: span 2;
  }

  .event-diagnosis-result__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-diagnosis-result__linkgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 関西イベント診断 ステップ表示 */
.event-diagnosis__progress {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ead6dd;
  color: #d9416f;
  font-weight: 700;
  font-size: 13px;
}

.event-diagnosis__question.is-hidden,
.event-diagnosis__actions.is-hidden {
  display: none;
}

.event-diagnosis__question.is-active {
  border-color: #e6b9c7;
  box-shadow: 0 6px 18px rgba(217, 65, 111, 0.08);
}

.event-diagnosis__form--steps .event-diagnosis__questions {
  grid-template-columns: 1fr;
}

.event-diagnosis__form--steps .event-diagnosis__question:nth-child(3) {
  grid-column: auto;
}

.event-diagnosis__form--steps .event-diagnosis__question {
  animation: eventDiagnosisFadeIn 0.22s ease-out;
}

@keyframes eventDiagnosisFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
