/*
Theme Name: code_tcd090 child gourmet
Theme URI: https://tf-kirin.info/
Description: code_tcd090 (TCD CODE v2.9) の子テーマ。 グルメサイト用の「お店情報ボックス」と「まとめ記事テンプレート」を追加します。 v1.0.1
Author: TFきりん
Author URI: https://tf-kirin.info/
Template: code_tcd090
Version: 1.1.0
Text Domain: code_tcd090_child_gourmet
*/

div#osusume { margin-top: 100px; display: flex; align-items: center; flex-wrap: wrap; }
#food-info { background-color:#fff; padding:25px 12px; border-radius:5px; }
#food-info dl { margin: 10px 0 30px; }
#food-info dt { font-size: 90%; line-height: 125%; padding:0; vertical-align: text-top; }
#food-info dd { font-size: 110%; padding: 8px 0; vertical-align: text-top; }
label { color:#77c478; font-weight: bold; }
address { font-style: normal; }
.bg_pale_yellow { background-color:#ffff99 !important; }
h2.shop_info { font-size: 28px !important; text-align:center; color:#78c478; background:#fff; border:1px solid #78c478; padding:10px !important; margin:0 0 10px !important; border-radius:5px; }
.osusume-totalscore { font-size: 70%; color:#888; margin-left:5px; }
.shop-url { background-color:#fff5b1; padding: 10px 15px; border-radius:5px; }
.marker-normal { background: linear-gradient(transparent 75%, #f6c 75%); }
.marker-bold { background: linear-gradient(transparent 50%, #f6c 50%); }
.marker-all { background: linear-gradient(transparent 0%, #f6c 0%); }
.speech_balloon_left1 .speach_balloon_text { background-color:#c8f4cd; border-color:#78c478; color:#000; }
.speech_balloon_left1 .speach_balloon_text::before { border-right-color:#78c478; }
.speech_balloon_left1 .speach_balloon_text::after { border-right-color:#c8f4cd; }
.speech_balloon_right2 .speach_balloon_text { background-color:#ffff99; border-color:#f0c419; color:#000; }
.speech_balloon_right2 .speach_balloon_text::before { border-left-color:#f0c419; }
.speech_balloon_right2 .speach_balloon_text::after { border-left-color:#ffff99; }
#single_share_bottom { background-color:#c8f4cd; border:1px solid #78c478; border-radius:8px; padding:20px; margin-top:30px; }


/* === 比較表 配色 v1.0.5 (compare-table & shop-info-box) === */
/* まとめ記事の比較表（4列以上、thead/tr:first-child の th） */
.post_content table thead tr th,
.post_content table tr:first-child th {
  background-color: #333333 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  text-align: center !important;
  font-weight: bold !important;
}
.post_content table thead tr th i,
.post_content table tr:first-child th i {
  color: #ffffff !important;
  margin-right: 4px;
}
/* shop-info-box の2列テーブル: 全ての th（左列ラベル）を黒背景・白文字・中央揃え */
.post_content table tr th {
  background-color: #333333 !important;
  color: #ffffff !important;
  text-align: center !important;
  font-weight: bold !important;
  border: 1px solid #ffffff !important;
}
.post_content table tr th i {
  color: #ffffff !important;
  margin-right: 4px;
}
/* まとめ比較表の1列目 td（店舗・料理名）: 薄いグレー背景 */
.post_content table tr td:first-child {
  background-color: #f5f5f5 !important;
}
/* まとめ比較表のジャンル列（4列レイアウトの3列目 td）: 白背景・黒文字に統一 */
.post_content table tr td:nth-child(3) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* === shop-info-box テーブル調整 (v1.0.6) === */
/* 1列目を幅25%に固定・2列目を行回りさせる */
.post_content table { table-layout: fixed; width: 100%; }
.post_content table tr th:first-child { width: 25% !important; }
.post_content table tr td { word-break: break-word !important; overflow-wrap: anywhere !important; white-space: normal !important; }
/* shop-info-box のラベル列の絵文字アイコン（ジャンルのフォーク等）を非表示 */
.post_content table tr th img.emoji,
.post_content table tr th .emoji { display: none !important; }


/* === 記事本文 h2 見出し スタイル (v1.0.7) === */
/* 親テーマのオレンジグラデーション h2 を上書き：背景なし・黒文字・左に黒帯・上余白1.6倍 */
.post_content h2:not(.shop_info):not(.headline) {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  color: #000000 !important;
  border: none !important;
  border-left: 6px solid #000000 !important;
  border-radius: 0 !important;
  margin: 64px 0 25px !important;
  padding: 8px 0 8px 16px !important;
  text-align: left !important;
  box-shadow: none !important;
  font-weight: bold !important;
}
.post_content h2:not(.shop_info):not(.headline) i,
.post_content h2:not(.shop_info):not(.headline) .fa {
  color: #000000 !important;
}


/* === メインコンテンツ背景 (v1.0.9) === */
/* メイン記事エリアだけ薄いグレー、サイドバーは親のグレーを維持 */
#main_col { background-color: #fafafa !important; }

/* === サイドバーカテゴリーウィジェットのリストマーカー (v1.0.9) === */
/* 黒い丸ポットを付与 */
#side_col .category_list_widget ul { list-style: none !important; padding-left: 0; margin-left: 0; }
#side_col .category_list_widget li.cat-item {
  position: relative;
  padding-left: 14px;
}
#side_col .category_list_widget li.cat-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: #000000;
  border-radius: 50%;
}
/* ネストしたサブリストにも同様に黒丸を付ける */
#side_col .category_list_widget li.cat-item li.cat-item {
  padding-left: 14px;
}


/* === 記事本体の左余白 (v1.1.0) === */
/* アイキャッチ画像はフル幅、それ以外は左に余白 */
#article > #post_title,
#article > #single_copy_title_url_top,
#article > .post_content,
#article > #single_share_bottom,
#article > #post_meta_bottom,
#article > #next_prev_post {
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}
/* アイキャッチはそのままフル幅 */
#article > #post_image {
  margin-left: 0;
  margin-right: 0;
}
