@charset "utf-8";
/* CSS Document */
/*
.story .common__textParagraph{
	padding-top:1.5rem;
	padding-bottom:1.5rem
	
}
*/


.prize-section {
  background: rgb(255, 241, 0);
  padding: 30px 20px;
  color: rgb(30, 30, 30);
}
@media (max-width: 768px) {
  .prize-section {
    padding: 30px 0px;
  }
}


.prize-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.prize-gridwrap{
	max-width: 68rem;
	  margin: 2.4rem auto 0;
	  padding: 0 2.4rem;
}
@media (max-width: 768px) {
  .prize-gridwrap {
    padding: 0;
  }
}


.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
	grid-auto-flow: row dense;
}

@media (max-width: 768px) {
  .prize-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prize-item {
  position: relative;
  display: flex;
  flex-direction: column;
	height: 100%;
	min-height: 260px;
}

.prize-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.prize-date {
  position: absolute;
  top: -10px;   /* ← 外側に飛び出させる */
  left: -10px;
  background: rgb(229, 0, 104);
  color: #fff;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  z-index: 10; /* ← 画像より上に */
}

.prize-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* ← 正方形に固定（比率は自由に変更可） */
  overflow: hidden;
  border-radius: 8px;
}

.prize-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← 枠に合わせてトリミング */
  display: block;
}

.prize-date {
  position: absolute;
  top: -10px;
  left: -10px;
  background: rgb(229, 0, 104);
  color: #fff;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

.prize-name {
  margin-top: 8px;
  font-size: 16px;
  font-weight: bold;
	
}

/* 最初は非表示 */
.hidden {
  display: none;
}

/* もっと見るボタン */
.show-more-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background: rgb(229, 0, 104);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
/* 閉じるボタン */
.hide-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background: rgb(229, 0, 104);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}


/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  display: block;
  margin: auto;

  /* 画面より大きくしない */
  max-width: 90%;
  max-height: 80%;

  /* 元画像サイズ以上に拡大しない */
  width: auto;
  height: auto;

  /* 画像の実寸を尊重 */
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}


