@charset "utf-8";
/* CSS Document */

/* -----------------------------
新着情報部分
----------------------------- */

.tits {
  margin: 20px auto;
  width: 98%;
  max-width: 500px;
  padding: 15px;
  text-align: center;
  border: 3px #000 solid;
  box-sizing: border-box;
}

.tits h2 {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
}

.blog-wrap {
  margin: 20px auto;
  width: 96%;
  max-width: 800px;
  color: #000;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

.blog-wrap img {
  width: 98%;
  max-width: 400px;
  margin: 15px 0 15px 0;

  border-radius: 6px; /* 角丸（必要なら） */
  display: block; /* 画像下の余白防止 */
}

.blog-wrap .titles {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* =========================================================
 * ブログカード（.newinfo-wrap）PC/スマホ共通
 * HTMLそのまま対応版
 * ========================================================= */

/* カード全体：aタグ */
.newinfo-wrap {
  position: relative; /* 右上バッジの基準にする */
  display: block;
  width: 94%;
  max-width: 720px;
  margin: 12px auto;
  padding: 26px 20px 18px; /* 上だけ少し広くしてバッジの分を確保 */
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);

  color: #222;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* PCのみ hover（スマホは効かない） */
@media (hover: hover) and (pointer: fine) {
  .newinfo-wrap:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  }
}

/* 日付（上部） */
.newinfo-wrap .left {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  opacity: 0.85;
  margin-bottom: 8px;
  text-align: left;
}

/* 右側ラッパー */
.newinfo-wrap .right {
  display: block;
}

/* ラベル（新着情報など） → カード右上固定 */
.newinfo-wrap .info-title {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  z-index: 2;
}

/* ---------------------------------------------------------
 * 画像＋タイトル＋本文
 * 画像＝左、タイトル＆本文＝右の2列レイアウト（grid）
 * --------------------------------------------------------- */
.newinfo-wrap .text-content {
  display: grid;
  grid-template-columns: auto 1fr; /* 左:画像 / 右:テキスト */
  column-gap: 14px;
  row-gap: 0px;
  align-items: flex-start;
  font-size: 1.6rem;
  line-height: 1.4;
}

/* 写真：左列で上下2行ぶち抜き */
.newinfo-wrap .text-content img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

/* タイトル：右列の1行目（下との隙間少なめ） */
.newinfo-wrap .text-content b {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: -2px; /* タイトルと本文の隙間を詰める */
}

/* 本文：右列の2行目（残りテキスト全体） */
.newinfo-wrap .text-content br {
  display: none; /* 強制改行は邪魔なので消す */
}

/* スマホ調整 */
@media (max-width: 600px) {
  .newinfo-wrap {
    padding: 24px 14px 14px;
    margin: 16px auto;
    border-radius: 14px;
  }

  .newinfo-wrap .text-content {
    column-gap: 10px;
  }

  .newinfo-wrap .text-content img {
    width: 90px;
    height: 90px;
  }

  .newinfo-wrap .text-content b {
    font-size: 0.95rem;
  }
}

.anime-top {
  opacity: 0; /* 初期状態では透明にする */
  transform: translateY(50px); /* 初期状態では30px下に配置 */
  transition: opacity 0.6s ease, transform 0.6s ease; /* アニメーションの設定 */
}

.anime-top.animate {
  opacity: 1; /* 表示状態 */
  transform: translateY(0); /* 元の位置に移動 */
  animation: fadeIn 2s forwards; /* アニメーションの持続時間を2秒に設定 */
}

.anime-txt {
  opacity: 0;
  display: inline-block;
}

.anime-txt.animate {
  opacity: 1;
}

.anime-txt span {
  display: inline-block;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

/* =========================================================
 * 【BLOG】ジャンルタグ（blog-genre-tags）
 * 1行固定・横スクロール・上品シンプル
 * ・非アクティブ：グレー系グラデ
 * ・アクティブ：青 → 水色グラデ
 * ======================================================= */

.blog-genre-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ★中央寄せ */
  gap: 6px 6px;
  margin: 12px auto 20px;
  padding: 4px 0;
  max-width: 900px; /* ★全体の幅を制御して綺麗に中央へ */
}

/* すべてのタグの基本形（丸ピル型） */
.blog-genre-tag {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #444;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background: linear-gradient(
    135deg,
    #f4f4f4 0%,
    #dcdcdc 100%
  ); /* ★グレー上品グラデ */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  position: relative;
}

/* PCホバー時：少しだけ明るく（主張しすぎない） */
@media (hover: hover) and (pointer: fine) {
  .blog-genre-tag:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
}

/* アクティブ（選択されたジャンル） → 青〜水色のグラデ */
.blog-genre-tag.is-active {
  color: #fff;
  border-color: #0091ff;
  background: linear-gradient(135deg, #0091ff 0%, #7dd3ff 100%);
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.35);
}

/* スマホ調整（少し小さめに） */
@media (max-width: 680px) {
  .blog-genre-tags {
    gap: 8px;
    padding: 6px 8px 12px;
  }

  .blog-genre-tag {
    padding: 5px 12px;
    font-size: 0.75rem;
  }
}

/* =========================================================
 * ブログ：ジャンルタグ一覧（上部ナビ風）
 *  - センタリング
 *  - 余白を詰めてコンパクト化
 * =======================================================*/

/* ラッパー：中央寄せ + コンパクト */
.zzz-blog-genre-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ← 中央寄せ */
  gap: 6px 4px; /* ← タグ間の隙間を詰める */
  margin: 12px auto 20px;
  padding: 4px 0;
  max-width: 900px; /* 伸びすぎ防止（適度に中央にまとまる） */
}

/* タグ本体 */
.zzz-blog-genre-tag {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--genre-color, #ff6fa5);
  border: 2px solid var(--genre-color, #ff6fa5);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  line-height: 1.1;
}

/* PCホバー */
@media (hover: hover) {
  .zzz-blog-genre-tag:hover {
    transform: translateY(-2px);
    background: var(--genre-color, #ff6fa5);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  }
}

/* アクティブ（現在ジャンル） */
.zzz-blog-genre-tag.is-active {
  background: var(--genre-color, #ff6fa5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

@media (hover: hover) {
  .zzz-blog-genre-tag.is-active:hover {
    transform: translateY(-1px);
  }
}

/* ========================
 * スマホ：さらに詰める
 * ======================== */
@media (max-width: 768px) {
  .zzz-blog-genre-tags {
    gap: 5px 4px; /* ← スマホはもっと詰める */
    margin: 10px auto 16px;
  }

  .zzz-blog-genre-tag {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}
