@charset "UTF-8";

/*///////////////////////////////////////////////
// ［Meetsでみぃつけた］ページ                     
///////////////////////////////////////////////*/

/* タイトル・全体エリア */
.bg-light-blue {
  background-color: #eaf2f8 !important;
}
.color-dark-green {
  color: #033824 !important;
}
.stories-main {
  background-color: #ffffff;
}
.stories-main .content-breadcrumb {
  margin-bottom: 5px;
}

.content-section .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* カードグリッドシステム */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0px;
  margin-bottom: 35px;
}

/* 各日記カード */
.diary-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid #b8b8b8;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #202020;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.diary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* 画像ラッパー */
.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* カードテキスト領域 */
.card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.diary-post-date {
  display: block;
  font-size: 18px;
  color: #666666;
  margin-bottom: 6px;
  font-weight: 700;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  color: #202020;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto;
}

.diary-card-summary {
  font-size: 18px;
  color: #444444;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* NEWリボン */
.card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #ee6a5b 0%, #ee6a5b 50%, transparent 50%, transparent 100%);  
  z-index: 1;
  pointer-events: none;
}
.card-ribbon span {
  position: absolute;
  top: 12px;
  left: 2px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  transform: rotate(-45deg);
  width: 45px;
  text-align: center;
}

/* ページネーション */
#diary-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 50px 0 40px;
  padding-top: 30px;
  border-top: 1px solid #dcdcdc;
  width: 100%;
}

.total-count {
  font-size: 18px;
  font-weight: 800;
  color: #202020;
}

.pagination-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 2px solid #555555;
  border-radius: 10px;
  background-color: #ffffff;
  color: #202020;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
}

.page-btn:hover:not(.disabled) {
  background-color: #f0f0f0;
}

.page-btn.active {
  background-color: #3d3d3d;
  color: #ffffff;
  border-color: #3d3d3d;
  cursor: default;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.no-data-message {
  margin: 30px 0 60px;
  padding: 45px 20px;
  border-radius: 16px;
  background: #f7f7f2;
  color: #444444;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.bottom_area.sp_only {
  z-index: 9999 !important;
}

/* レスポンシブ表示 */
@media (max-width: 750px) {
  .content-section .inner {
    padding: 0 15px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0px;
  }
 
  .card-img-wrapper {
    height: 180px;
  }

  .card-body {
    padding: 16px 16px 18px;
  }

  .diary-post-date {
    font-size: 18px;
  }

  .card-title {
    font-size: 20px;
  }

  .diary-card-summary {
    font-size: 18px;
  }

  #diary-pagination {
    flex-direction: column;
    gap: 16px;
    margin: 35px 0 20px;
    padding-top: 20px;
  }
  .total-count {
    font-size: 20px;
    text-align: center;
  }
  .pagination-list {
    gap: 12px;
  }
  .page-btn {
    min-width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 12px;
  }
}
