/* ═══════════════════════════════════════════════════════
   POST.CSS — ニュース一覧 / 詳細ページ共通スタイル
═══════════════════════════════════════════════════════ */

/* ── Badge（front-page.css の ecard__badge と同定義） ── */
.news-item__badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.news-item__badge--chiba {
  /* background: #d8f0de; */
  background: var(--c-chiba);
  color: #fff;
}
.news-item__badge--kashiwa {
  /* background: #fdecd6; */
  background: var(--c-kashiwa);
  color: #fff;
}
.news-item__badge--kisarazu {
  /* background: #d6ebf7; */
  background: var(--c-kisarazu);
  color: #fff;
}

/* ── News Item（front-page.css と同定義、post ページで読み込む） ── */
.news-list-full {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.news-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #7adff5;
  transition: background 0.2s;
}
.news-item:first-child {
  border-top: 1px solid #7adff5;
}
.news-item:hover {
  background: rgba(0, 0, 0, 0.025);
}
.news-item__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 8px;
  text-decoration: none;
  color: inherit;
}
.news-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.news-item__date {
  font-size: 13px;
  color: var(--c-gray);
  font-family: var(--f-en);
  letter-spacing: 0.03em;
}
.news-item__tag {
  background: var(--c-gray-lt);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  color: var(--c-gray);
}
.news-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.news-item__title {
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
  flex: 1;
  color: var(--c-text);
}
.news-item:hover .news-item__title {
  color: #2a8df3;
  transition: color 0.2s;
}
.news-item__arrow {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  opacity: 0.6;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.news-item:hover .news-item__arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════
   ARCHIVE — ニュース一覧
═══════════════════════════════════════════════════════ */

.post-archive__body {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.post-archive__empty {
  color: var(--c-gray);
  padding: 40px 0;
  font-size: 15px;
}

/* ── Pagination ── */
.post-pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}
.post-pagination ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.post-pagination ul li a,
.post-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  font-family: var(--f-en);
  font-weight: 500;
  text-decoration: none;
  color: var(--c-text);
  border: 1.5px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.post-pagination ul li a:hover {
  border-color: var(--c-text);
}
.post-pagination ul li span.current {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* ═══════════════════════════════════════════════════════
   SINGLE — ニュース詳細
═══════════════════════════════════════════════════════ */

.post-single__body {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.post-single__meta {
  margin-bottom: 20px;
}

.post-single__title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 24px;
}

.post-single__divider {
  border: none;
  border-top: 1px solid rgba(51, 51, 51, 0.15);
  margin-bottom: 36px;
}

.post-single__thumb {
  margin-bottom: 36px;
  border-radius: 8px;
  overflow: hidden;
}
.post-single__thumb-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 本文エリア */
.post-single__content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
}
.post-single__content p {
  margin-bottom: 1.4em;
}

/* ── 見出し ── */
.post-single__content h2 {
  font-size: clamp(19px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.4;
  margin: 2.4em 0 1em;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(67, 195, 249, 0.1) 0%, transparent 100%);
  border-left: 4px solid #43c3f9;
  border-radius: 0 4px 4px 0;
  color: var(--c-dark);
}
.post-single__content h3 {
  font-size: clamp(18px, 1.4vw, 19px);
  font-weight: 700;
  line-height: 1.4;
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-gray-lt);
  color: var(--c-dark);
  position: relative;
}
.post-single__content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--grad);
}
.post-single__content h4 {
  font-size: clamp(17px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.6em 0 0.6em;
  color: var(--c-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-single__content h4::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;

  background: linear-gradient(135deg, #7adff5, #2a8df3);
}

.post-single__content h5 {
  font-size: clamp(16px, 1.1vw, 17px);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.4em 0 0.4em;
}

/* ── リスト（ul） ── */
.post-single__content ul {
  padding-left: 0;
  margin-bottom: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.post-single__content ul li {
  padding-left: 1.6em;
  position: relative;
  line-height: 1.75;
  margin-bottom: 0;
}
.post-single__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7adff5, #2a8df3);
  flex-shrink: 0;
}

/* ── リスト（ol） ── */
.post-single__content ol {
  padding-left: 0;
  margin-bottom: 1.4em;
  counter-reset: post-ol;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.post-single__content ol li {
  padding-left: 2.2em;
  position: relative;
  counter-increment: post-ol;
  line-height: 1.75;
  margin-bottom: 0;
}
.post-single__content ol li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: linear-gradient(135deg, #7adff5, #2a8df3);
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  font-family: var(--f-en);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-single__content a {
  color: #2a8df3;
  text-decoration: underline;
}
.post-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1em 0;
}
.post-single__content blockquote {
  border-left: 3px solid var(--c-gray-lt);
  padding: 12px 16px;
  color: var(--c-gray);
  margin: 1.4em 0;
  background: rgba(0, 0, 0, 0.025);
  border-radius: 0 4px 4px 0;
}

/* ── Back Link ── */
.post-single__back {
  margin-top: clamp(40px, 5vw, 64px);
}
.more-link--back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.more-link__icon-back {
  transform: rotate(180deg);
  width: 18px;
  height: auto;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .post-single__title {
    font-size: clamp(20px, 5vw, 28px);
  }
}
