@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ==========================================================================
   NEWS ページ専用スタイルシート
   みずち OFFICIAL WEBSITE - NEWS ARCHIVE STYLE
   デザインルール：PROFILEページ完全準拠
   ・コンテナ Max-width: 1200px
   ・見出し（section-tag, section-title, section-desc）
   ・カード並び＆スタイル：PROFILEページの「ABOUT みずちの特徴」（features-grid / feature-card）完全準拠
   ========================================================================== */

:root {
  --color-primary: #1ca0ce;
  --color-primary-hover: #158db6;
  --color-primary-light: #eef8fc;
  --color-primary-glow: rgba(28, 160, 206, 0.22);

  --color-accent-red: #ff0033;
  --color-accent-red-hover: #e6002e;
  --color-accent-red-light: #fff0f2;

  --color-accent-purple: #8b5cf6;
  --color-accent-purple-light: #f5f3ff;
  --color-accent-green: #10b981;
  --color-accent-green-light: #ecfdf5;

  --color-base: #ffffff;
  --color-bg-sub: #f6f8fb;
  --color-bg-card: #ffffff;

  --color-text-main: #222222;
  --color-text-sub: #555555;
  --color-text-muted: #888888;

  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-btn: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 28px rgba(28, 160, 206, 0.24);

  --font-base: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", sans-serif;

  --transition-bounce: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────────────────────────
   全体ラッパー＆背景テクスチャ（PROFILEページ完全統一）
   ───────────────────────────────────────────────────────────── */
.news-page-wrapper,
.profile-wrapper {
  background-color: #fbfcff;
  background-image: radial-gradient(#d5dfe8 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 0 0;
  color: var(--color-text-main);
  font-family: var(--font-base);
  line-height: 1.75;
  letter-spacing: 0.05em;
  padding-bottom: 90px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* メインコンテンツ Max-width: 1240px（トップページNEWSセクション完全統一） */
.profile-container,
.news-page-wrapper .profile-container,
.news-section-main .profile-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.news-section-main {
  padding: 70px 0 60px;
}

/* ─────────────────────────────────────────────────────────────
   見出しルール（PROFILEページ完全準拠）
   ───────────────────────────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 35px;
}

/* 英語大見出し */
.section-tag,
h2.section-tag {
  display: block;
  font-size: 2.8rem;
  color: #065fd4;
  text-align: center;
  letter-spacing: .05em;
  font-family: Montserrat, Noto Sans JP, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 20px;
  margin: 0px auto;
  background: none;
  border: none;
  border-radius: 0;
  line-height: 1.2;
}

/* 日本語見出し */
.section-title,
h3.section-title,
.profile-wrapper .section-title {
  font-family: "Noto Sans JP", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
  margin: 14px auto 8px;
  padding: 0;
  line-height: 1.5;
}

/* 見出し下の説明文 */
.section-desc {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  margin: 0 auto;
  line-height: 1.75;
  letter-spacing: 0.05em;
  text-align: center;
}

@media (max-width: 768px) {
  .section-tag,
  h2.section-tag {
    font-size: 2.2rem;
  }
  .section-title,
  h3.section-title {
    font-size: 1.4rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   カテゴリフィルタータブ
   ───────────────────────────────────────────────────────────── */
.news-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-sub);
  font-family: var(--font-base);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.filter-btn .count-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.07);
  font-weight: 600;
}

.filter-btn.active .count-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   カードの並び（トップページ NEWSセクションと完全同一）
   ───────────────────────────────────────────────────────────── */
.features-grid,
.news-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .features-grid,
  .news-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .features-grid,
  .news-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* カード単体（トップページ top-news-card 完全準拠） */
.feature-card,
.news-card {
  background: var(--color-base);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: #222222;
  height: 100%;
}

/* ホバー時：浮き上がり＋みずちブルー枠線（トップページと完全統一） */
.feature-card:hover,
.news-card:hover {
  transform: translateY(-5px);
  border-color: #1ca0ce;
  box-shadow: 0 10px 22px rgba(28, 160, 206, 0.18), 0 0 0 1px #1ca0ce;
  color: #222222;
}

/* 16:9 サムネイル枠 */
.feature-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-thumb-wrap img {
  transform: scale(1.05);
}

/* サムネイル左下のバッジ（トップページ完全準拠） */
.feature-thumb-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(30, 30, 30, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.feature-thumb-badge i {
  color: #1ca0ce;
}

.feature-thumb-badge.cat-youtube i {
  color: #ff4d4d;
}

.feature-thumb-badge.cat-event i {
  color: #fbbf24;
}

.feature-thumb-badge.cat-goods i {
  color: #a855f7;
}

.feature-thumb-badge.cat-notice i {
  color: #1ca0ce;
}

/* 画像がない場合のフォールバックサムネイル（トップページ完全準拠） */
.news-thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1ca0ce 0%, #0d6382 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.news-fallback-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.news-fallback-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カード下部のテキスト本文領域（トップページ top-news-body 完全準拠） */
.feature-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 日付（左揃え・トップページ完全準拠） */
.news-card-date {
  font-family: Montserrat, "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #888888;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

/* タイトル（左揃え・トップページ top-news-title 完全準拠） */
.feature-title,
.news-card .feature-title {
  text-align: left;
  font-size: 1.02rem;
  font-weight: 800;
  color: #222222;
  margin: 0 0 8px 0;
  line-height: 1.45;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  word-break: break-word;
  transition: color 0.15s ease;
}

.feature-card:hover .feature-title {
  color: #1ca0ce;
}

/* 本文テキスト（全文表示・左揃え・トップページ top-news-text 完全準拠） */
.feature-text {
  font-size: 0.86rem;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 14px 0;
  flex: 1;
  text-align: left;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  word-break: break-word;
}

/* カードフッターリンク（トップページ top-news-footer 完全準拠） */
.news-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #1ca0ce;
}

.news-card-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.feature-card:hover .news-card-arrow {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────
   空状態 / 下部ボタン / アニメーション
   ───────────────────────────────────────────────────────────── */
.news-empty {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
  grid-column: 1 / -1;
  color: var(--color-text-muted);
}

.news-empty-icon {
  font-size: 40px;
  color: #cbd5e1;
  margin-bottom: 15px;
}

.news-bottom-nav {
  text-align: center;
  margin-top: 20px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-main);
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-bounce);
}

.btn-back-home:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--color-primary-glow);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
