@charset "utf-8";
/*
Theme Name: GENESIS Child
Template: genesis_tcd103
Description: GENESIS子テーマ ｜ メニューNEW自動表示・記事カードNEW自動表示・右下追従バナー（管理画面で編集可能）を追加します。Templateの値は親テーマのフォルダ名と一致させてください。
Author: 健康と料理社
Version: 1.1.0
Text Domain: tcd-genesis-child
*/

/* ============================================================
   ① メニュー NEW バッジ
   ※ 管理画面「外観 → NEW表示設定」でON/OFF
   ※ チェックを入れた項目に .is-new クラスが付与される
============================================================ */
#global_menu .menu-item.is-new > a::before {
  content: "NEW";
  display: inline-block;
  background: #97C459;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1px 7px;
  border-radius: 9px;
  margin-right: 6px;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}

/* ドロワーメニュー（モバイル）にも対応 */
#drawer_menu .menu-item.is-new > a::before {
  content: "NEW";
  display: inline-block;
  background: #97C459;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1px 7px;
  border-radius: 9px;
  margin-right: 6px;
  line-height: 1.4;
  vertical-align: middle;
}

/* ============================================================
   ② 記事カード NEW バッジ
   投稿日（または更新日）から14日以内の記事に自動でNEWを表示
============================================================ */
.news_carousel .item.is-new .title,
.news_list .item.is-new .title,
.index_news_list .item.is-new .title {
  position: relative;
}
.news_carousel .item.is-new .title::before,
.news_list .item.is-new .title::before,
.index_news_list .item.is-new .title::before {
  content: "NEW";
  display: inline-block;
  background: #97C459;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1px 8px;
  border-radius: 10px;
  margin-right: 6px;
  vertical-align: 2px;
  line-height: 1.6;
}

/* ============================================================
   ③ 右下追従バナー
   ※ 内容は 外観 → カスタマイズ → 「右下バナー」で編集
============================================================ */
.kr-floating-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  z-index: 9999;
  font-family: inherit;
}
.kr-floating-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
}
.kr-floating-banner__close:hover {
  background: rgba(0, 0, 0, 0.7);
}
.kr-floating-banner__image {
  height: 110px;
  background: linear-gradient(180deg, #FFF4D6 0%, #FFE9B0 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}
.kr-floating-banner__body {
  padding: 14px 16px 16px;
}
.kr-floating-banner__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.kr-floating-banner__sub {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  margin: 0 0 12px;
}
.kr-floating-banner__btn {
  display: block;
  text-align: center;
  background: #97C459;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.kr-floating-banner__btn:hover {
  background: #7FAD42;
  color: #fff !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .kr-floating-banner {
    width: 200px;
    right: 12px;
    bottom: 12px;
  }
  .kr-floating-banner__image {
    height: 80px;
    font-size: 38px;
  }
  .kr-floating-banner__body {
    padding: 10px 12px 12px;
  }
  .kr-floating-banner__title {
    font-size: 12px;
  }
  .kr-floating-banner__sub {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .kr-floating-banner__btn {
    font-size: 12px;
    padding: 8px;
  }
}

/* ============================================================
   管理画面（メニュー編集画面）の追加フィールドスタイル
============================================================ */
.field-auto-new-target {
  margin-top: 8px;
}
.field-auto-new-target select {
  max-width: 320px;
}
