@charset "UTF-8";

/* ==========================================
   体験談ページ固有スタイル（新デザイン対応版）
   ========================================== */

/* 1. 回数見出し（第114回など） */
.num {
  text-align: left;
  color: var(--ta-green);
  background-color: #f8fbf9;
  border-left: 5px solid var(--ta-green);
  font-size: clamp(20px, 4vw, 24px);
  font-weight: bold;
  margin: 60px 0 30px;
  padding: 12px 20px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0 4px 4px 0;
}

/* 2. 体験談グリッドのレイアウト */
.images {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 15px;
  justify-content: flex-start;
  margin-bottom: 60px;
  /* 画像の上端を揃えるための設定 */
  align-items: flex-start;
}

.images p {
  flex: 0 1 calc(16.666% - 13px);
  min-width: 140px;
  margin: 0;
  text-align: center;
  line-height: 1.4;
  font-size: 0.85rem;
}

/* リンクエリアの設定 */
.images p a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  height: 100%;
}

/* 3. 画像の設定：縦サイズを統一し、位置を固定 */
.images img {
  width: 100%;
  /* 縦横比を16:9に固定（必要に応じて調整してください） */
  aspect-ratio: 16 / 9;
  /* 比率に合わせて画像を切り抜いてフィットさせる */
  object-fit: cover;
  object-position: center;

  margin-bottom: 12px;
  /* テキストとの間隔 */
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ホバー時の演出 */
.images p a:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.images p a:hover {
  color: var(--ta-green);
}

/* 4. バナー画像の調整 */
.banner {
  margin-bottom: 40px !important;
  border-radius: 10px;
  display: block;
  width: 100%;
}

/* ポップアップ（Lightbox）の重なり順 */
#lightboxOverlay,
#lightbox {
  z-index: 999999;
}

/* 5. レスポンシブ調整（スマホ表示） */
@media (max-width: 768px) {
  .num {
    margin: 40px 0 20px;
    padding: 10px 15px;
  }

  .images {
    gap: 20px 10px;
  }

  .images p {
    flex: 0 1 calc(50% - 5px);
    min-width: auto;
    font-size: 0.8rem;
  }
}