/* ===================================================
   news.css - お知らせページ専用スタイル
   CENTURY21ココカラ
   =================================================== */

/* ===== News 2-Column Layout ===== */
.news-content-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

/* ===== News Main ===== */
.news-main {
  min-width: 0;
}

/* ===== News List ===== */
.news-list {
  border-top: 1px solid #e8e6e1;
  margin-bottom: 60px;
}
.news-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e8e6e1;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
}
.news-list-item:hover {
  background: rgba(199, 186, 140, 0.06);
  opacity: 1;
}
.news-list-category {
  display: inline-block;
  flex-shrink: 0;
  min-width: 72px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  letter-spacing: 0.05em;
  text-align: center;
}
.news-list-date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}
.news-list-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-list-item:hover .news-list-title {
  color: var(--accent);
}

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

/* ===== Sidebar Widget Common ===== */
.sidebar-widget {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sidebar-widget-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  line-height: 1.4;
}

.sidebar-archive-list .is-hidden {
  display: none;
}

.archive-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

/* ▶ 矢印 */
.archive-toggle .arrow {
  width: 0;
  height: 0;
  border-left: 6px solid #333;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
}

/* 開いたとき ▼ */
.archive-toggle.is-open .arrow {
  transform: rotate(90deg);
}

/* ===== Sidebar Calendar ===== */
.sidebar-calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}
.sidebar-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sidebar-calendar-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 8px;
  transition: color 0.3s;
}
.sidebar-calendar-nav-btn:hover {
  color: var(--accent);
}
.sidebar-calendar-month {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.sidebar-calendar th {
  padding: 6px 0;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.sidebar-calendar th:first-child {
  color: #c55;
}
.sidebar-calendar th:last-child {
  color: #58a;
}
.sidebar-calendar td {
  padding: 5px 0;
  color: var(--text-main);
  line-height: 1.8;
}
.sidebar-calendar td:first-child {
  color: #c55;
}
.sidebar-calendar td:last-child {
  color: #58a;
}
.sidebar-calendar td.is-today {
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
.sidebar-calendar td.is-other-month {
  color: #ccc;
}
.sidebar-calendar td a {
  color: var(--accent-cta);
  font-weight: 700;
  text-decoration: none;
}
.sidebar-calendar td a:hover {
  text-decoration: underline;
}

.sidebar-calendar td.is-disabled {
  color: #ccc;
  pointer-events: none;
}

/* ===== Sidebar Archive List ===== */
.sidebar-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-archive-list li {
  border-bottom: 1px solid #f0eeea;
}
.sidebar-archive-list li:last-child {
  border-bottom: none;
}
.sidebar-archive-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s;
}
.sidebar-archive-list a:hover {
  color: var(--accent);
  opacity: 1;
}
.sidebar-archive-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Sidebar Recent Posts ===== */
.sidebar-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-recent-list li {
  border-bottom: 1px solid #f0eeea;
}
.sidebar-recent-list li:last-child {
  border-bottom: none;
}
.sidebar-recent-list a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
.sidebar-recent-list a:hover {
  opacity: 1;
}
.sidebar-recent-date {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  margin-bottom: 4px;
}
.sidebar-recent-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
}
.sidebar-recent-list a:hover .sidebar-recent-title {
  color: var(--accent);
}

/* ===== News Detail: Page Header Meta ===== */
.page-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.page-header-category {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  letter-spacing: 0.05em;
}
.page-header-date {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

/* ===== News Detail: Post Body in 2-Column ===== */
.news-detail-body .post-content {
  padding-top: 0;
}
.news-detail-body .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}
.news-detail-body .post-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e8e6e1;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .news-content-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .news-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .sidebar-widget {
    flex: 1;
    min-width: 280px;
  }
}

/* ===== Responsive: SP ===== */
@media (max-width: 768px) {
  .news-list-item {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 16px 0;
  }
  .news-list-title {
    width: 100%;
    white-space: normal;
    font-size: 14px;
  }
  .news-sidebar {
    flex-direction: column;
  }
  .sidebar-widget {
    min-width: 0;
  }
}
