@charset "UTF-8";
/* ============================================================
 * イベント(.hp-ev)・ニュース(.hp-nw)
 *   (クーポンは画像を並べるバナー型に変えたので coupon.css)
 *   置いた場所の幅で並びを変える(画面の幅ではなく .hp-pq の幅 = コンテナクエリ)
 *     イベント   … 52rem未満は画像が上
 *     ニュース   … 64rem以上で2列
 *   色はアクセント色(--hp-accent)だけを使う
 *   件数は parts 側で決める(トップ: ニュース4・イベント1 / 一覧ページ: 全部)
 * ============================================================ */
.hp-pq {
  container-type: inline-size;
  container-name: hppq;
}

/* 一覧ページへの「More」… 見た目は base.css の .hp-more にそろえた(全体デザインで色を変えられる) */

/* ============================================================
 * イベント … 左に画像・右にタイトルと日付(下にアクセント色の線)・本文
 * ============================================================ */
.hp-ev {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.hp-ev__item {
  display: flex;
  gap: 2.4rem;
  align-items: flex-start;
}

.hp-ev:not(.hp-ev--frame) .hp-ev__item + .hp-ev__item {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 0.1rem solid color-mix(in srgb, var(--hp-text) 10%, transparent);
}

/* ---------- 枠(1件ずつ囲む)… --ev-bc 色(空 = アクセント色)/ --ev-bw 太さ ---------- */
.hp-ev--frame .hp-ev__item {
  padding: 2.4rem;
  background: var(--hp-surface);
  border: var(--ev-bw, 0.2rem) solid var(--ev-bc, var(--hp-accent));
  border-radius: 0.6rem;
}

.hp-ev--frame .hp-ev__item + .hp-ev__item {
  margin-top: 2rem;
}

/* 二重線は線と線のあいだも要るので、太さの3倍にする */
.hp-ev--double .hp-ev__item {
  border-style: double;
  border-width: calc(var(--ev-bw, 0.2rem) * 3);
}

.hp-ev__img {
  flex: 0 0 18rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--hp-text) 6%, transparent);
}

.hp-ev__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-ev__body {
  flex: 1 1 auto;
  min-width: 0;
}

.hp-ev__head {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: 0 0 0.8rem;
  border-bottom: 0.1rem solid var(--hp-accent);
}

.hp-ev__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--hp-accent);
}

.hp-ev__date {
  flex: none;
  font-size: 1.2rem;
  color: var(--hp-accent);
}

.hp-ev__text {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--hp-text-sub);
}

.hp-ev__target span {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.1rem 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hp-accent);
  border: 0.1rem solid var(--hp-accent);
  border-radius: 0.4rem;
}

.hp-ev__target {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--hp-text);
}

@container hppq (max-width: 52rem) {
  .hp-ev__item {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }

  .hp-ev--frame .hp-ev__item {
    padding: 1.6rem;
  }

  .hp-ev__img {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .hp-ev__head {
    flex-direction: column;
    gap: 0.2rem;
  }

  .hp-ev__title {
    max-width: 100%;
  }
}

/* ============================================================
 * ニュース … 丸いサムネイル + タイトル・日付・本文1行
 *   広い場所(64rem以上)は2列 / それ以外は1列
 *   ニュースページ(.hp-nw--full)は本文を全文出す
 * ============================================================ */
.hp-nw {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-nw__item {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  min-width: 0;
  padding: 1.4rem 0;
  border-bottom: 0.1rem solid color-mix(in srgb, var(--hp-accent) 35%, transparent);
}

.hp-nw--full .hp-nw__item {
  align-items: flex-start;
}

.hp-nw__img {
  flex: 0 0 5.6rem;
  width: 5.6rem;
  height: 5.6rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--hp-text) 6%, transparent);
  border-radius: 50%;
}

.hp-nw__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-nw__body {
  flex: 1 1 auto;
  min-width: 0;
}

.hp-nw__head {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.hp-nw__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--hp-accent);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hp-nw__date {
  flex: none;
  font-size: 1.1rem;
  color: var(--hp-accent);
}

.hp-nw__text {
  margin: 0.4rem 0 0;
  overflow: hidden;
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--hp-text-sub);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hp-nw--full .hp-nw__title {
  white-space: normal;
}

.hp-nw--full .hp-nw__text {
  overflow: visible;
  white-space: normal;
}

@container hppq (min-width: 64rem) {
  .hp-nw {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container hppq (max-width: 36rem) {
  .hp-nw__head {
    flex-direction: column;
    gap: 0.2rem;
  }

  .hp-nw__title {
    max-width: 100%;
  }

  .hp-nw__img {
    flex-basis: 4.8rem;
    width: 4.8rem;
    height: 4.8rem;
  }
}
