@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* 既存のCSS */
a.wiki-link {
    color: #3366cc;
    text-decoration: none;
    border-bottom: 1px dashed #3366cc;
    padding-left: 0.5em;
    position: relative;
    transition: color 0.3s ease;
}

a.wiki-link .wiki-icon {
    margin-right: 0.3em;
}

a.wiki-link:hover {
    color: #cc3333;
    border-bottom: 1px solid #cc3333;
}

.menu-icon {
	width: 20px;
	vertical-align: middle;
	margin-right: 5px;
}
.single .eye-catch {
  max-width: 400px; /* 好きな幅に変更 */
  margin: 0 auto;   /* 中央寄せ（必要なら） */
}

.single .eye-catch img {
  width: 100%;
  height: auto;
}

/* claude 設定 */
.single-post-eyecatch {
    margin: 20px 0;
    text-align: center;
}

.single-post-eyecatch img {
    width: 100%;
    max-width: 800px;
    height: auto;
}
/* claude 設定 */

.widget_categories ul li ul {
    display: none;
    margin-left: 15px;
}

.widget_categories > ul > li > ul {
    display: block;
}

.widget_categories > ul > li > ul > li > ul {
    display: none;
}

.widget_categories ul li.has-children > a::before {
    content: "▶ ";
    font-size: 12px;
    margin-right: 5px;
}

.widget_categories ul li.has-children.expanded > a::before {
    content: "▼ ";
}

.widget_categories > ul > li.has-children > a::before {
    content: "▼ ";
}

.widget_categories ul li.has-children.expanded > ul {
    display: block;
}

/* 投稿数のスタイリング - 複数パターンに対応 */
.widget_categories li a,
.widget_categories li {
    position: relative;
}

/* 括弧内の数字をターゲット（最も一般的なパターン） */
.widget_categories li a:after,
.widget_categories li:after {
    content: "";
}

/* 数字部分に背景を追加する方法 */
.widget_categories li {
    position: relative;
}

.widget_categories li a {
    display: inline-block;
}

/* 投稿数の括弧と数字全体をスタイリング */
.widget_categories li a[href*="cat"]:after {
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 3px;
    font-size: 0.85em;
    border: 1px solid #ddd;
    display: inline-block;
}

/* より確実な方法：テキスト全体を対象にして、JSで処理 */
.widget_categories .post-count {
    background-color: #f0f0f0 !important;
    color: #666 !important;
    padding: 2px 6px !important;
    margin-left: 8px !important;
    border-radius: 3px !important;
    font-size: 0.85em !important;
    border: 1px solid #ddd !important;
    display: inline-block !important;
}

.location-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.domestic-areas,
.visited-countries,
.domestic-posts,
.overseas-posts {
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 3px;
}

.location-stats-simple {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.location-stats-simple .domestic-areas {
    background: #e3f2fd;
}

.location-stats-simple .visited-countries {
    background: #fff3e0;
}




/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
