/* ============================================
   掲示板カード一覧（トップ・/news/・アーカイブ共通）
   ============================================ */

.section-diary {
  padding: 40px 0 80px;
  background: var(--color-bg, #FAFAF7);
  min-height: 60vh;
}
.diary-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.diary-header {
  text-align: center;
  margin-bottom: 40px;
}
.diary-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.diary-page-desc {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* ---- カード ---- */
.diary-feed {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.diary-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.diary-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
a.diary-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.diary-card-tags:empty {
  display: none;
}
.diary-card-meta .diary-card-date {
  margin-left: auto;
}
.section-diary [id^="board-"] {
  scroll-margin-top: 88px;
}

.diary-card .diary-card-entry {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}
.diary-card .diary-card-entry > *:first-child {
  margin-top: 0;
}
.diary-card .diary-card-entry > *:last-child {
  margin-bottom: 0;
}
.diary-card .diary-card-entry p {
  margin: 0 0 0.85em;
}
.diary-card .diary-card-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


.diary-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}
.diary-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.diary-card-body {
  padding: 20px 24px 24px;
}

.diary-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.diary-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.diary-tag {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-primary, #f28b30);
  background: none;
  border: none;
  border-radius: 0;
  line-height: 1.5;
  box-shadow: none;
}

/* #カテゴリー名 */
.diary-tag::before {
  content: "#";
  font-weight: 700;
  color: var(--color-primary, #f28b30);
}
.diary-card-date {
  font-size: 12px;
  color: #aaa;
  flex-shrink: 0;
}

.diary-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.6;
}

.diary-card-text {
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

/* ---- トップページ内「たいようの掲示板」 ---- */
.section-top-news--feed .common-title {
  margin-bottom: 8px;
}
.section-top-news--feed .diary-wrapper--embed {
  margin-top: 16px;
  padding-left: 0;
  padding-right: 0;
  max-width: 720px;
}
.section-top-news--feed .diary-feed--top {
  gap: 24px;
}
.news-feed-more {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 0;
}
.diary-pagination {
  margin-top: 48px;
  text-align: center;
}
.diary-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  font-size: 14px;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.diary-pagination .page-numbers.current {
  background: var(--color-primary, #F28B30);
  color: #fff;
  border-color: var(--color-primary, #F28B30);
}
.diary-pagination .page-numbers:hover:not(.current) {
  background: #f5f5f5;
}

/* ---- 空状態 ---- */
.diary-empty {
  text-align: center;
  padding: 60px 0;
  color: #999;
  font-size: 15px;
}

/* ---- 求人詳細内の日常セクション ---- */
.diary-inline-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.diary-inline-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.diary-inline-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.diary-inline-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}
.diary-inline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.diary-inline-card-body {
  padding: 14px 16px 16px;
}
.diary-inline-card-date {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 4px;
}
.diary-inline-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- レスポンシブ ---- */
@media (max-width: 600px) {
  .section-diary { padding: 24px 0 60px; }
  .diary-page-title { font-size: 20px; }
  .diary-card-body { padding: 16px 18px 20px; }
  .diary-card-title { font-size: 15px; }
  .diary-inline-feed { grid-template-columns: 1fr; }
}
