/* =========================================================
   HQ Background: Style
   key: ren-post
   name: LG ラウンジ蓮
   group: post
   type: Style
   layer: post
   value:
   selector:
   ========================================================= */

/* =========================================================
   01. Single
   ========================================================= */

.p-post {
  position: relative;
  margin-bottom: 30px;
}

.p-post-thumbnail img {
  display: block;
  width: 100%;
  border-radius: 5px;
}

.p-post-title {
  margin: 0 0 8px;
  padding: 0 0 12px;
  color: #3d4979;
  font-size: 20px;
  line-height: 1.8;
  font-weight: bold;
  text-align: left;
}

.p-post:not(:has(.p-post-thumbnail)) .p-post-title {
  margin: 0 0 8px;
  padding: 30px 0 12px;
}

.p-post-categories,
.p-post-date {
  margin: 0;
  font-family: "Smythe", "Noto Sans JP", sans;
  font-size: 18px;
  line-height: 1.1;
  color: #000;
  text-align: right;
}

.p-post-categories {
  justify-content: flex-end;
  margin-top: 4px;
}

.p-post-date {
  margin: 4px 4px 0 0;
}

.p-post-categories a {
  display: inline-flex;
  align-items: center;

  padding: 4px 12px;
  border-radius: 999px;

  background: rgba(61, 73, 121, 0.12);
  color: #3d4979;

  font-size: 13px;
  line-height: 1;

  text-decoration: none;
  white-space: nowrap;

  border: 1px solid rgba(61, 73, 121, 0.25);

  transition: all 0.2s ease;
}

.p-post-categories a:hover {
  background: #3d4979;
  color: #fff;
}

.p-post-content {
  padding: 25px 0;
  font-size: 16px;
  line-height: 1.8;
}

.p-post-content p {
  margin-bottom: 15px;
}

.p-post-content h3 {
  font-size: 18px;
}

.p-post-content h4 {
  font-size: 16px;
}

.p-post-content h5 {
  font-size: 14px;
}

.p-post.is-exhibit .p-post-thumbnail {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.p-post.is-exhibit .p-post-thumbnail img {
  background: #fff;
  padding: 8px;
  border-radius: 4px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;

  border: 1px solid rgba(61, 73, 121, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.p-post.is-exhibit .p-post-content {
  background: rgba(61, 73, 121, 0.08);
  padding: 16px 20px;
  border-radius: 6px;

  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   02. Archive（カード）
   ========================================================= */

.p-archive-card {
  position: relative;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(61, 73, 121, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.p-archive-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.p-archive-card__thumbnail {
  margin: 0;
}

.p-archive-card__thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.p-archive-card__meta {
  padding: 10px 14px 0;
  font-family: "Smythe", "Noto Sans JP", sans;
  font-size: 14px;
  line-height: 1.1;
  text-align: right;
  color: #3d4979;
}

.p-archive-card__title {
  margin: 8px 14px 0;
  font-size: 12.8px;
  line-height: 1.5;
  font-weight: bold;
  color: #3d4979;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;

  min-height: calc(1.5em * 2);
}

.p-archive-card__excerpt {
  margin: 8px 14px 14px;
  font-size: 11.2px;
  line-height: 1.6;
  color: #333;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;

  min-height: calc(1.6em * 2);
}

.p-archive-card.is-noimage .p-archive-card__meta {
  padding-top: 14px;
}

.p-archive-card.is-noimage .p-archive-card__title {
  margin-top: 6px;
}

/* =========================================================
   03. Post Navigation
   ========================================================= */

.p-post-nav {
  margin-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 12px;
}

.p-post-nav__link {
  display: block;
  text-decoration: none;
}

.p-post-nav__label {
  display: block;
  margin-bottom: 8px;
}

.p-post-nav__grid {
  position: relative;
}

.p-post-nav__grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 0, 0, 0.15);
  transform: translateX(-50%);
}

.p-post-nav__thumb {
  margin-bottom: 12px;
  max-width: 120px;
}

.p-post-nav__thumb img {
  display: block;
  width: 100%;
}

.p-post-nav__title {
  line-height: 1.4;
}

/* =========================================================
   04. Related
   ========================================================= */

.p-related {
  padding-bottom: 10px;
}

.p-related__heading {
  margin: 0 0 16px;
  color: #2e59a7;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  font-family: "Smythe", "Noto Sans JP", sans;
}

/* =========================================================
   05. Sidebar
   ========================================================= */

.p-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Box */
.p-sidebar__main > *,
.p-sidebar__categories {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

/* Heading */
.p-sidebar__heading,
.p-sidebar h2,
.p-sidebar h3 {
  padding: 16px 16px 20px;
  background: #3d4979 url("../img/archives_dt.png") repeat-x left
    bottom -4px/12px;
  color: #fff;
  font-size: 20px;
  font-family: "Smythe", "Noto Sans JP", sans;
  font-weight: normal;
  line-height: 1;
}

/* List */
.p-sidebar ul {
  font-size: 14px;
}

.p-sidebar ul > li {
  padding: 12px 16px;
  border-bottom: 1px dotted #bbb;
}

.p-sidebar ul > li:last-child {
  border-bottom: none;
}

/* Link */
.p-sidebar ul > li a {
  display: inline-block;
  color: #3d4979;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.p-sidebar ul > li a:hover {
  opacity: 0.7;
}

/* Count（(34)とか） */
.p-sidebar ul > li span {
  margin-left: 4px;
  font-size: 12px;
  color: #666;
}

/* 子リスト */
.p-sidebar ul > li ul {
  margin-top: 6px;
  margin-left: 10px;
}

.p-sidebar ul > li ul li {
  padding: 4px 0;
  border: none;
  font-size: 13px;
}

/* =========================================================
   07. Post Pager（Site）
   ========================================================= */

.navigation.pagination {
  margin-top: 48px;
}

.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* ページ番号 */
.navigation.pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;

  width: 36px;
  height: 36px;

  border-radius: 50%;

  font-family: "Smythe", "Noto Sans JP", sans;
  font-size: 14px;

  text-decoration: none;
  color: #3d4979;

  border: 1px solid rgba(61, 73, 121, 0.2);
  background: #fff;

  transition: all 0.2s ease;
}

/* Hover（少しだけ色を乗せる） */
.navigation.pagination .page-numbers:hover {
  background: rgba(61, 73, 121, 0.12);
  color: #3d4979;
}

/* 現在ページ（ベタじゃなく薄く） */
.navigation.pagination .page-numbers.current {
  background: rgba(61, 73, 121, 0.18);
  color: #3d4979;
  border-color: rgba(61, 73, 121, 0.35);
  pointer-events: none;
}

/* Prev / Next */
.navigation.pagination .prev,
.navigation.pagination .next {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
}

@media (max-width: 767px) {
  .navigation.pagination .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .navigation.pagination .page-numbers {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .navigation.pagination .prev,
  .navigation.pagination .next {
    padding: 0 10px;
  }
}

/* =========================================================
   06. Responsive
   ========================================================= */

@media (max-width: 767px) {
  .p-post-title {
    font-size: 16px;
  }

  .p-post-categories,
  .p-post-date {
    font-size: 16px;
  }

  .p-post-content {
    font-size: 14px;
  }

  .p-related__item {
    width: 48%;
  }
}
