/* ============================================================
   CLEANING 喜久屋 — お知らせ（ニュース）ページ専用 CSS (news.css)
   ============================================================ */

.news-page {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background-color: var(--color-bg);
}

.news-page .section-title {
  border: none;
}

.news-header {
  margin-bottom: var(--space-xl);
}

/* ------------------------------------------------------------
   共通: 日付
   ------------------------------------------------------------ */
.news-item__date {
  display: flex;
  flex-direction: column;
  font-family: var(--font-jp);
  color: var(--color-black);
  line-height: 1;
}

.news-item__date-year {
  font-size: var(--font-size-lg);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: .5em;
}

.news-item__date-day {
  font-size: calc(var(--font-size-2xl)*1.6);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* 共通: タイトル */
.news-item__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-black);
  flex: 1;
  margin-bottom: var(--space-xs);
}

/* 共通: カテゴリタグ */
.news-item__tag {
  display: inline-block;
  background-color: var(--color-badge-bg);
  color: var(--color-text);
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 1px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  font-weight: 500;
  flex-shrink: 0;
}

/* 共通: アクションリンク */
.news-item__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-black);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
  width: fit-content;
  letter-spacing: 0.02em;
}

.news-item__action:hover {
  opacity: 0.6;
}

.news-item__action-arrow {
  display: inline-block;
  font-size: var(--font-size-sm);
}


/* ------------------------------------------------------------
   ニュース一覧 (news.html)
   ------------------------------------------------------------ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-inline: auto;
}

/* 各ニュースアイテム */
.news-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.news-item__inner {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 40px;
  align-items: start;
}


/* コンテンツエリア (右ブロックのみ2px下線) */
.news-item__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: 1.6em;
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-line-strong);
}

.news-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

#newsDetailContent .news-item__header {
  border-bottom: 2px solid var(--color-line-strong);
  margin-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: 1em;
}

/* 本文概要テキスト */
.news-item__summary {
  font-size: var(--font-size-base);
  color: var(--color-text);
}


/* ------------------------------------------------------------
   ニュース個別記事・汎用記事スタイル (news-article)
   ------------------------------------------------------------ */
.news-article {
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-black);
  width: 100%;
  margin-top: var(--space-xs);
}

.news-article__section p {
  font-size: var(--font-size-base);
  margin-bottom: 1em;
}

.news-article__lead {
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: var(--space-2xl);
}

.news-article__section {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-2xl);
}

.news-article__heading {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 2em;
}

.news-article__text {
  /* 通常のテキスト折り返し・改行指定 */
}

.news-article__align-right {
  text-align: right;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.news-article__signature {
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* ── 一覧へ戻るボタン ─────────────────────────────────── */
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 220px;
  margin: var(--space-2xl) auto 0;
  padding: 12px 32px;
  border: 1px solid var(--color-black);
  border-radius: 30px;
  background-color: transparent;
  color: var(--color-black);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
}

.back-btn:hover {
  background-color: var(--color-black);
  color: var(--color-bg-white);
}

@media (max-width: 640px) {
  .news-item__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .news-item__header {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    padding-bottom: 1em;
  }

  .news-article__lead {
    margin-bottom: var(--space-xl);
  }

  .back-btn {
    width: 100%;
    max-width: 280px;
    margin-top: var(--space-xl);
    padding: 10px 24px;
  }
}