@charset "UTF-8";

/* =========================================================
   petit-only.css
   - get_petit_only.php 用スタイル
   - mobile first
   - 視認性優先版
   - PCは最大4カラム
   - バナーあり / なし混在でもカード高さを揃える
   - 500x100バナー対応
   - 文字省略なし
   - subgridで横並びカードの各項目高さを揃える
========================================================= */

.petit-month-list {
  display: grid;
  gap: 20px;
}

.petit-month-list__section {
  margin: 0;
}

.petit-month {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 4px solid #000000;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.12);
}

.petit-month__summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  background: #ffffff;
  padding: 16px;
}

.petit-month__summary::-webkit-details-marker {
  display: none;
}

.petit-month__summary::after {
  content: "＋";
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #000000;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.petit-month[open] .petit-month__summary::after {
  content: "－";
}

.petit-month__head {
  min-width: 0;
}

.petit-month__title {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.petit-month__body {
  padding: 0 16px 16px;
}

/* =========================
   カード一覧
========================= */
.petit-event-grid {
  display: grid;
  align-items: stretch;
  gap: 16px;
}

.petit-event-card {
  display: grid;
  grid-template-rows:
    auto
    auto
    auto
    auto
    1fr
    auto;
  min-height: 100%;
  background: #ffffff;
  border: 2px solid #000000;
}

/* =========================
   本文
========================= */
.petit-event-card__body {
  display: contents;
}

.petit-event-card__top,
.petit-event-card__title,
.petit-event-card__cp,
.petit-event-card__event,
.petit-event-card__desc {
  padding-left: 16px;
  padding-right: 16px;
}

.petit-event-card__top {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.petit-event-card__date {
  display: inline-block;
  align-self: start;
  justify-self: start;
  background: #000000;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.25em 0.7em;
}

.petit-event-card__title {
  margin: 12px 0 0;
  border-bottom: 1px solid #000000;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 8px;
}

.petit-event-card__cp {
  margin: 10px 0 0;
  color: #777777;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
}

.petit-event-card__cp:empty::before {
  content: "\00a0";
}

.petit-event-card__event {
  display: grid;
  gap: 4px;
}

.petit-event-card__parent {
  margin: 0;
  color: #555555;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
}

.petit-event-card__parent:empty::before {
  content: "\00a0";
}

.petit-event-card__desc {
  margin: 12px 0 0;
  border-top: 1px dashed #000000;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.8;
  padding-top: 12px;
  padding-bottom: 16px;
}

.petit-event-card__desc:empty::before {
  content: "\00a0";
}

/* =========================
   フッター
========================= */
.petit-event-card__footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid #000000;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.petit-event-card__notes {
  display: grid;
  gap: 6px;
  border-left: 3px solid #000000;
  padding-left: 6%;
}

.petit-event-card__note {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.petit-event-card__note--expired {
  color: #ab3436;
  font-weight: 700;
}

/* =========================
   CTA領域
========================= */
.petit-event-card__cta {
  display: flex;
  align-items: stretch;
  min-height: 56px;
}

.petit-event-card__cta:empty {
  display: block;
}

.petit-event-card__cta--empty {
  width: 100%;
  min-height: 56px;
}

/* =========================
   通常ボタン
========================= */
.petit-event-card__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 4px solid #000000;
  background: #ffffff;
  color: #000000;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  padding: 0.5em 1.6em 0.5em 0.8em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.petit-event-card__button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0.8em;
  bottom: 0;
  width: 7px;
  height: 7px;
  margin: auto;
  border-top: 2px solid #000000;
  border-right: 2px solid #000000;
  transform: rotate(45deg);
}

.petit-event-card__button:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 4px 4px 0 0 #000000;
  transform: translate(-2px, -2px);
}

/* =========================
   バナー対応（500 x 100）
========================= */
.petit-event-card__banner {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 2px solid #000000;
  background: #ffffff;
  aspect-ratio: 5 / 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.petit-event-card__banner:hover {
  box-shadow: 4px 4px 0 0 #000000;
  transform: translate(-2px, -2px);
}

/* =========================
   締切切れ
========================= */
.petit-event-card--expired {
  opacity: 0.5;
}

.petit-event-card--expired .petit-event-card__button,
.petit-event-card--expired .petit-event-card__banner {
  pointer-events: none;
}

.petit-event-card--expired .petit-event-card__banner {
  opacity: 0.7;
}

/* =========================
   月末アクション
========================= */
.petit-month__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.petit-month__btn {
  display: block;
  border: 4px solid #000000;
  background: #000000;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  padding: 0.8em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.petit-month__btn:hover {
  background: #ffff66;
  color: #000000;
}

.petit-month__btn:first-child:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 4px 4px 0 0 #000000;
  transform: translate(-2px, -2px);
}

.petit-month__btn:last-child {
  background: #ffffff;
  color: #000000;
}

.petit-month__btn:last-child:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 4px 4px 0 0 #000000;
  transform: translate(-2px, -2px);
}

@media (min-width: 768px) {
  .petit-month__summary {
    padding: 18px 20px;
  }

  .petit-month__body {
    padding: 0 20px 20px;
  }

  .petit-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows:
      auto
      auto
      auto
      auto
      1fr
      auto;
  }

  .petit-event-card {
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .petit-event-card__top,
  .petit-event-card__title,
  .petit-event-card__cp,
  .petit-event-card__event,
  .petit-event-card__desc {
    padding-left: 12px;
    padding-right: 12px;
  }

  .petit-event-card__top {
    padding-top: 12px;
  }

  .petit-event-card__desc {
    padding-bottom: 12px;
  }
}

@media (min-width: 992px) {
  .petit-event-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .petit-event-card__title {
    font-size: 1.5rem;
  }

  .petit-event-card__cp,
  .petit-event-card__note {
    font-size: 1rem;
  }

  .petit-event-card__parent,
  .petit-event-card__desc,
  .petit-event-card__button {
    font-size: 1.1rem;
  }
}