@charset "UTF-8";

/* ============================================
   news.css - NEWS 一覧ページ & 記事詳細ページ
   ※ microCMS:news モデル想定
     fields: title / slug / category / publishedAt / eyecatch / body(rich) / related
   ============================================ */

/* =========================================================
   共通(news 一覧 & 詳細)
   ========================================================= */
.news-page,
.news-detail-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 54px 16px 60px;
  color: var(--c-text);
  font-family: var(--ff-body);
}
/* パンくずを画面横幅いっぱいに */
.news-page .breadcrumb,
.news-detail-page .breadcrumb { margin: 0 -16px 28px; }

/* カテゴリバッジ(カテゴリごとに色分け) */
.news-cat {
  display: inline-block;
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-family: var(--ff-body);
  background: transparent;
}
.news-cat[data-cat="shop"]   { border-color: var(--c-pink-text);  color: var(--c-pink-text);  }
.news-cat[data-cat="recipe"] { border-color: var(--c-green-text); color: var(--c-green-text); }
.news-cat[data-cat="komono"] { border-color: var(--c-blue-text);  color: var(--c-blue-text);  }
.news-cat[data-cat="event"]  { border-color: var(--c-text);       color: var(--c-text);       }
.news-cat[data-cat="info"]   { border-color: var(--c-accent);     color: var(--c-accent);     }

/* =========================================================
   一覧ページ ヒーロー
   ========================================================= */
.news-page-hero {
  text-align: center;
  padding: 36px 0 28px;
}
.news-page-hero__en {
  margin: 0 0 6px;
  font-family: var(--ff-body);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-text);
}
.news-page-hero__jp {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-accent);
}
.news-page-hero__desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--c-text);
}

/* =========================================================
   タブ(一覧ページ用)
   ※ index.html と同じ .news-tabs / .news-tab を使うので
     詳細スタイルは style.css 側に任せる
   ========================================================= */

/* =========================================================
   記事カード一覧
   ========================================================= */
.news-articles {
  list-style: none;
  margin: 24px 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.news-article {
  position: relative;
}
.news-article[hidden] { display: none; }

.news-article__link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--c-text);
  transition: transform .2s, box-shadow .2s;
}
.news-article__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(120, 90, 60, 0.08);
}

.news-article__thumb {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-bg-soft);
  flex-shrink: 0;
}
.news-article__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* eyecatch なし時のプレースホルダ:クラリエロゴを中央に控えめに表示 */
.news-article__thumb--placeholder img {
  object-fit: contain;
  padding: 22%;
  opacity: 0.55;
}

.news-article__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.news-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-article__date {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-text-soft);
  font-family: var(--ff-body);
}
.news-article__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--c-text);
  /* 2行までで省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-article__excerpt {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--c-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 「もっと見る」(JS で表示制御。news.html では全件表示なら省略可) */
.news-more {
  text-align: center;
  margin: 24px 0 0;
}
.news-more a {
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  background: #fff;
  color: var(--c-text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background .2s;
}
.news-more a:hover { background: var(--c-bg-soft); }

/* 空表示 */
.news-empty-msg {
  text-align: center;
  color: var(--c-text-soft);
  font-size: 13px;
  padding: 40px 0;
  margin: 0;
}

/* =========================================================
   記事詳細ページ
   ========================================================= */
.news-detail-article {
  margin: 28px 0 56px;
}
.news-detail-article__header {
  text-align: center;
  margin: 0 0 28px;
}
.news-detail-article__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.news-detail-article__date {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-text-soft);
  font-family: var(--ff-body);
}
.news-detail-article__title {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--c-text);
}

/* アイキャッチ */
.news-detail-article__eyecatch {
  margin: 0 0 28px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.news-detail-article__eyecatch img {
  display: block;
  width: 100%;
  height: auto;
}

/* 本文(CMS リッチテキストが流れ込む想定) */
.news-detail-article__body {
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.news-detail-article__body > * + * { margin-top: 18px; }
.news-detail-article__body h2 {
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.news-detail-article__body h3 {
  margin: 28px 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.news-detail-article__body p { margin: 0; }
.news-detail-article__body a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-detail-article__body a:hover { color: var(--c-text); }
.news-detail-article__body strong { font-weight: 500; color: var(--c-text); }
.news-detail-article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px auto;
}
.news-detail-article__body ul,
.news-detail-article__body ol {
  margin: 0 0 0 1.5em;
  padding: 0;
}
.news-detail-article__body li { margin: 4px 0; }
.news-detail-article__body blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-bg-soft);
  font-size: 12px;
  color: var(--c-text);
  border-radius: 0 8px 8px 0;
}
.news-detail-article__body hr {
  border: 0;
  border-top: 1px dashed var(--c-line);
  margin: 32px 0;
}

/* =========================================================
   関連ニュース
   ========================================================= */
.news-related {
  margin: 0 0 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--c-line);
}
.news-related__title {
  margin: 0 0 20px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-text);
  text-align: center;
}
.news-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================================
   一覧へ戻るボタン
   ========================================================= */
.news-back {
  text-align: center;
  margin: 32px 0 0;
}
.news-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  background: #fff;
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background .2s;
}
.news-back a:hover { background: var(--c-bg-soft); }
.news-back__arrow { font-family: var(--ff-body); }

/* =========================================================
   PC (>=768px)
   ========================================================= */
@media (min-width: 768px) {
  .news-page,
  .news-detail-page {
    max-width: 880px;
    padding: 54px 24px 80px;
  }
  .news-page .breadcrumb,
  .news-detail-page .breadcrumb { margin: 0 -24px 36px; }

  .news-page-hero__en { font-size: 32px; }
  .news-page-hero__jp { font-size: 14px; }
  .news-page-hero__desc { font-size: 13px; }

  .news-article__link {
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 18px;
  }
  .news-article__thumb { width: 140px; }
  .news-article__title { font-size: 16px; }
  .news-article__excerpt { font-size: 12px; }

  .news-detail-article__title { font-size: 26px; }
  .news-detail-article__body { font-size: 14px; }
  .news-detail-article__body h2 { font-size: 18px; }
  .news-detail-article__body h3 { font-size: 16px; }
}
