/* ニューズピックス風ボタン設置 TOPページ*/
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  /* スマホで折り返し */
  gap: 10px;
  /* ボタン間の余白 */
  padding: 10px 0;
}

.category-button {
  display: inline-block;
  background-color: #f5f5f5;
  color: #2F3192;
  padding: 8px 15px;
  border-radius: 20px;
  /* 丸み */
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s;
  white-space: nowrap;
  /* 折り返し防止 */
}

.category-button:hover {
  background-color: #007bff;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .category-buttons {
    justify-content: center;
    /* スマホで中央揃え */
  }
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  /* スマホで折り返し */
  gap: 10px;
  /* ボタン間の余白 */
  padding: 10px 0;
}

/* ニューズピックス風ボタン設置 投稿ページ*/
.category-button {
  display: inline-block;
  background-color: #f5f5f5;
  color: #2F3192;
  padding: 8px 15px;
  border-radius: 20px;
  /* 丸み */
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s;
  white-space: nowrap;
  /* 折り返し防止 */
}

.category-button:hover {
  background-color: #007bff;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .category-buttons {
    justify-content: center;
    /* スマホで中央揃え */
  }
}

/* bogoのカスタマイズJP/EN表示 */
/* ① リストの基本スタイル */
.bogo-language-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  /* 横並びにする */
  gap: 1px;
  align-items: center;
}

/* ② 言語の順番を強制的に「JP / EN」に変更 */
.bogo-language-switcher li.en-US {
  order: 1;
  /* EN を後ろに */
}

.bogo-language-switcher li.ja {
  order: 0;
  /* JP を前に */
}

/* ③ スラッシュを手動で追加（JPの後に1つだけ配置） */
.bogo-language-switcher::after {
  content: " / ";
  padding: 0 2px;
  color: #ffffff;
  /* スラッシュの色を白に */
  font-weight: normal;
}

/* ④ 言語リンクの基本スタイル */
.bogo-language-switcher li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: opacity 0.3s, color 0.3s;
}

/* ⑤ 現在の言語を白色に */
.bogo-language-switcher li.current a {
  color: #ffffff;
  /* 白色 */
  opacity: 1;
}

/* ⑥ 非選択の言語は白色だけど薄く */
.bogo-language-switcher li:not(.current) a {
  color: #ffffff;
  /* 白色 */
  opacity: 0.5;
}

/* ⑦ ホバー時に白くする */
.bogo-language-switcher li:not(.current) a:hover {
  opacity: 1;
}


/* 通常時（背景が青） */
.bogo-language-switcher li a {
  color: #ffffff;
  /* 通常時は白 */
  opacity: 0.7;
  transition: color 0.3s, opacity 0.3s;
}

/* スクロール時（背景白のとき） → 文字色を黒に */
body:not(.home):not(.single-post) .bogo-language-switcher li a,
[data-scrolled=true] .bogo-language-switcher li a {
  color: #000000;
  /* スクロール時は黒に */
}

/* 現在の言語のスタイル */
.bogo-language-switcher li.current a {
  color: #ffffff;
  /* 通常時は白 */
  opacity: 1;
}

body:not(.home):not(.single-post) .bogo-language-switcher li.current a,
[data-scrolled=true] .bogo-language-switcher li.current a {
  color: #000000;
  /* スクロール時は黒 */
}

/* スラッシュ（ / ）のスタイルを調整 */
.bogo-language-switcher::after {
  content: " / ";
  padding: 0 3px;
  color: #ffffff;
  /* 通常時は白 */
  font-weight: normal;
  transition: color 0.3s;
}

/* スクロール時のスラッシュ（ / ）の色を黒に */
body:not(.home):not(.single-post) .bogo-language-switcher::after,
[data-scrolled=true] .bogo-language-switcher::after {
  color: #000000;
  /* スクロール時は黒 */
}

/* ホバー時のスタイル */
.bogo-language-switcher li:not(.current) a:hover {
  opacity: 1;
  color: #ffffff;
  /* ホバー時に白 */
}

body:not(.home):not(.single-post) .bogo-language-switcher li:not(.current) a:hover,
[data-scrolled=true] .bogo-language-switcher li:not(.current) a:hover {
  color: #333333;
  /* スクロール時のホバーは少し薄い黒 */
}


/* 【トップ】ニュース/コラムのカテゴリー一覧 */
.topics-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topics-cat-item {
  margin-top: 0 !important;
}

.topics-cat-item a {
  background-color: #f5f5f5;
  color: #2F3192;
  border-radius: 30px;
  padding: 8px 10px;
  font-weight: bold;
  transition: 0.3s;
  text-decoration: none;
}

.topics-cat-item a:hover {
  background-color: #007bff;
  color: #fff;
}


/* 【トップ】ニュース/コラム一覧 */
.scroll-shortcode-container {
  width: 100%;
  overflow-y: auto;
  border: 1px solid #ddd;
  background: #fff;
  box-sizing: border-box;
}

.scroll-shortcode-item {
  border-bottom: 1px solid #eee;
}

.scroll-shortcode-item:last-child {
  border-bottom: none;
}

/* 全体をリンクにする設定 */
.scroll-item-link {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: inherit;
  /* 親の文字色を引き継ぐ */
  transition: background-color 0.2s ease;
}

/* ホバー時の演出（お好みで） */
.scroll-item-link:hover {
  background-color: #f5faff;
  /* ほんのり青っぽく */
}

.scroll-item-link .post-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.scroll-item-link .post-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #777;
  align-items: center;
}

/* カテゴリーラベルを並べるグループ */
.post-cat-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  /* ラベル同士の隙間 */
}

/* 個別のラベルデザイン */
.post-cat-label {
  background-color: #cd162c;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: bold;
}


/* 【記事詳細】関連記事リスト（3列グリッド） */
.c-topics-related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .c-topics-related__list {
    grid-template-columns: 1fr;
    /* スマホは1列 */
  }
}

.c-topics-related__item {
  background: #fff;
  /* border: 1px solid #eee; */
  /* 薄い枠線 */
  border-radius: 4px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
  /* ほんのり影 */
  transition: box-shadow 0.3s ease;
  padding: 15px;
}

/* 既存のボーダースタイルを打ち消し */
.c-topics-related__list li {
  /* border: 1px solid #eee !important; */
}

.c-topics-related__item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.c-topics-related__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* padding: 0 !important; */
  /* 既存のpaddingを打ち消し */
}

.c-topics-related__link:hover {
  /* background-color: transparent !important; */
  /* デフォルトのホバー背景を打ち消し */
  opacity: 0.8;
  /* color: inherit !important; */
}

/* カテゴリー名 */
.c-topics-related__cat {
  color: #0073a8;
  /* 青系 */
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 記事タイトル */
.c-topics-related__post-title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

/* 【サイドバー】コラム執筆者 */
.column-author-img {
  text-align: center;
}

.column-author-name {
  text-align: center;
  margin: 20px 0;
}

/* 【物件一覧】記事抜粋下のタグ・ステータスバッジ */
.property-entry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.property-entry-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  border-radius: 5px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.property-entry-badge--tag {
  background-color: #cd162c;
}

.property-entry-badge--blue {
  background-color: #2e3192;
}

.property-entry-badge--green {
  background-color: #28a745;
}

.property-entry-badge--orange {
  background-color: #ff9900;
}

.property-entry-badge--red {
  background-color: #dc3545;
}
