/* ============================================
   News / Column shared styles
   ============================================ */

/* ── Page wrapper ── */
.news-page {
  position: relative;
}

/* ── Decorative circles ── */
.news-page__deco-pink,
.news-page__deco-blue {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.news-page__deco-pink img,
.news-page__deco-blue img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-page__deco-pink {
  top: -160px;
  right: -134px;
  width: 502px;
  height: 748px;
}

.news-page__deco-blue {
  top: 110px;
  left: -302px;
  width: 1012px;
  height: 1490px;
}

/* ── Bottom gradient ── */
.news-page__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 450px;
  background: linear-gradient(to bottom, #ffffff, #fef2f3);
  pointer-events: none;
  z-index: 0;
}

/* ── 2-column layout ── */
.news-page__contents {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  gap: 40px;
}

@media (min-width: 769px) {
  .news-page__contents {
    flex-direction: row;
    gap: 60px;
    padding: 80px 20px 120px;
  }
}

/* ============================================
   Sidebar
   ============================================ */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  order: 2;
}

@media (min-width: 769px) {
  .news-sidebar {
    width: 240px;
    min-width: 240px;
    order: 0;
  }
}

/* ── Sidebar section ── */
.news-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Section title (diamond + text) ── */
.news-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-navy);
}

.news-sidebar__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.news-sidebar__title--pink::before {
  background: url("../images/news/diamond-pink.svg") no-repeat center / contain;
}

.news-sidebar__title--blue::before {
  background: url("../images/news/diamond-blue.svg") no-repeat center / contain;
}

/* ── Category links ── */
.news-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-sidebar__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: opacity 0.3s;
}

.news-sidebar__link:hover {
  opacity: 0.7;
}

.news-sidebar__link--pink {
  color: var(--color-pink);
}

.news-sidebar__link--blue {
  color: #589DD8;
}

.news-sidebar__link::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.news-sidebar__link--pink::before {
  background: url("../images/news/arw-pink.svg") no-repeat center / contain;
}

.news-sidebar__link--blue::before {
  background: url("../images/news/arw-blue.svg") no-repeat center / contain;
}

/* Active state */
.news-sidebar__link.is-active {
  text-decoration: underline;
}

/* ── Gradient divider ── */
.news-sidebar__divider {
  width: 100%;
  height: 1px;
  border: none;
  background: linear-gradient(to right, #FEDBDE, #CCE8FE);
}

/* ── Recent columns ── */
.news-sidebar__columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-sidebar__column-item {
  display: flex;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.news-sidebar__column-item:hover {
  opacity: 0.7;
}

.news-sidebar__column-thumb {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
}

.news-sidebar__column-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.news-sidebar__column-date {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-pink);
}

.news-sidebar__column-title {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   News List (right main area)
   ============================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-grow: 1;
  min-width: 0;
}

/* ── Article link wrapper ── */
.news-item__link-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.news-item__link-wrap:hover {
  opacity: 0.7;
}

/* ── Single news item ── */
.news-item {
  padding: 36px 0;
}

.news-item:first-child {
  padding-top: 0;
}

/* ── Meta row (date + tag) ── */
.news-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-item__date {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-pink);
}

.news-item__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 21px;
  padding: 0 8px;
  border-radius: 30px;
  background: var(--color-pink);
  font-family: var(--font-mincho);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  white-space: nowrap;
}

/* ── Body text ── */
.news-item__body {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-navy);
}

.news-item__body p {
  margin: 0;
}

.news-item__body p + p {
  margin-top: 0.4em;
}

/* ── Link in body ── */
.news-item__link {
  color: #589DD8;
  font-weight: 700;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.news-item__link:hover {
  opacity: 0.7;
}

/* ── Dotted divider between items ── */
.news-divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px dashed var(--color-divider);
}

/* ============================================
   Pagination
   ============================================ */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  font-family: "Zen Maru Gothic", var(--font-gothic);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.6px;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

.news-pagination a:hover {
  opacity: 0.7;
}

/* Page numbers */
.news-pagination .page-numbers {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--color-navy);
}

.news-pagination .page-numbers.current {
  background: var(--color-pink);
  color: var(--color-white);
}

/* Dots */
.news-pagination .page-numbers.dots {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: var(--color-navy);
  width: auto;
  background: none;
}

/* Prev / Next arrows */
.news-pagination .prev,
.news-pagination .next {
  width: 25px;
  height: 16px;
  color: var(--color-pink);
}

.news-pagination .prev::after,
.news-pagination .next::after {
  content: "";
  display: block;
  width: 25px;
  height: 16px;
  background: var(--color-pink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 16'%3E%3Cpath d='M24.707 8.707a1 1 0 000-1.414L18.343.929a1 1 0 10-1.414 1.414L22.586 8l-5.657 5.657a1 1 0 001.414 1.414l6.364-6.364zM0 9h24V7H0v2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.news-pagination .prev::after {
  transform: rotate(180deg);
}

/* Hide text inside prev/next (WordPress outputs text) */
.news-pagination .prev,
.news-pagination .next {
  font-size: 0;
  overflow: hidden;
}

/* ============================================
   Column List (コラム一覧)
   ============================================ */

/* ── Column card ── */
.column-item {
  padding: 36px 0;
}

.column-item:first-child {
  padding-top: 0;
}

.column-item__link-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.column-item__link-wrap:hover {
  opacity: 0.7;
}

/* ── Meta row (date + tags) — reuse news-item__meta styles ── */

/* ── Content row (thumbnail + text) ── */
.column-item__content {
  display: flex;
  gap: 16px;
}

.column-item__thumb {
  width: 240px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
}

.column-item__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.column-item__title {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-pink);
}

.column-item__excerpt {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-navy);
}

.column-item__read-more {
  color: #589DD8;
}

/* ============================================
   News Detail (お知らせ詳細)
   ============================================ */
.news-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-detail__title {
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-pink);
}

.news-detail__body {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-navy);
}

.news-detail__body p {
  margin: 0;
}

.news-detail__body p + p {
  margin-top: 0.4em;
}

.news-detail__body a {
  color: #589DD8;
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================
   Column Detail (コラム詳細)
   ============================================ */
.column-detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Article title ── */
.column-detail__title {
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-pink);
  margin-top: -28px;
}

/* ── Hero image ── */
.column-detail__hero-wrap {
  width: 100%;
}

.column-detail__hero {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
}

/* ── Body content (styled the_content output) ── */
.column-detail__body {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-navy);
}

.column-detail__body > * + * {
  margin-top: 24px;
}

.column-detail__body p {
  margin: 0;
}

.column-detail__body p + p {
  margin-top: 16px;
}

/* h2 — section heading (diamond + pink) */
.column-detail__body h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-pink);
  margin: 0;
  padding-top: 40px;
  border-top: 1px dashed var(--color-divider);
}

.column-detail__body h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: url("../images/news/diamond-pink.svg") no-repeat center / contain;
}

/* h3 — same style as h2 */
.column-detail__body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-pink);
  margin: 0;
  padding-top: 40px;
  border-top: 1px dashed var(--color-divider);
}

.column-detail__body h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: url("../images/news/diamond-pink.svg") no-repeat center / contain;
}

/* h4 — inside box, bold pink 18px */
.column-detail__body h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-pink);
  margin: 0;
}

.column-detail__body h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: url("../images/news/diamond-pink.svg") no-repeat center / contain;
}

/* Links */
.column-detail__body a {
  color: #589DD8;
  font-weight: 700;
  text-decoration: underline;
}

/* Lists */
.column-detail__body ul,
.column-detail__body ol {
  margin: 0;
  padding: 24px;
  list-style: none;
  background: var(--color-white);
  border: 1px solid #CCE8FE;
}

.column-detail__body ul li,
.column-detail__body ol li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(to right, #FEDBDE, #CCE8FE) 1;
}

.column-detail__body ul li:last-child,
.column-detail__body ol li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.column-detail__body ul li:first-child,
.column-detail__body ol li:first-child {
  padding-top: 0;
}

.column-detail__body ul li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-pink);
}

/* Blockquote as bordered box */
.column-detail__body blockquote {
  margin: 0;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid #CCE8FE;
}

.column-detail__body blockquote p {
  margin: 0;
}

.column-detail__body blockquote p + p {
  margin-top: 4px;
}

/* Images inside body */
.column-detail__body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ── Previous article link ── */
.column-detail__prev {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  transition: opacity 0.3s;
}

.column-detail__prev:hover {
  opacity: 0.7;
}

.column-detail__prev-thumb {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
}

.column-detail__prev-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.column-detail__prev-label {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #589DD8;
}

.column-detail__prev-title {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #589DD8;
  text-decoration: underline;
}

/* ============================================
   Single news/column detail — back link
   ============================================ */
.news-single__back {
  margin-top: 40px;
}

.news-single__back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-pink);
  text-decoration: none;
  transition: opacity 0.3s;
}

.news-single__back-link:hover {
  opacity: 0.7;
}

/* Single page — body gap without link-wrap */
.news-item > .news-item__meta {
  margin-bottom: 16px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .news-page__deco-pink {
    width: 200px;
    height: 298px;
    top: -40px;
    right: -60px;
  }

  .news-page__deco-blue {
    width: 400px;
    height: 589px;
    top: 60px;
    left: -200px;
  }

  .news-item {
    padding: 24px 0;
  }

  .column-item {
    padding: 24px 0;
  }

  .column-item__content {
    flex-direction: column;
  }

  .column-item__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 240 / 140;
  }

  .news-pagination {
    gap: 4px;
  }

  .news-pagination .page-numbers {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .column-detail {
    gap: 24px;
  }

  .column-detail__title {
    font-size: 20px;
    margin-top: -12px;
  }

  .column-detail__hero {
    height: 180px;
  }

  .column-detail__prev-title {
    font-size: 16px;
  }

  .news-detail__title {
    font-size: 20px;
  }
}
