@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.0.8
*/


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


/*------------------------------------
  　　　　SNSシェアボタン
--------------------------------------*/

.sns-buttons {
	 justify-content: center;
}

.sns-share-message{
		text-align: center;
    font-weight: bold;
    color: #080357;
}


.button-caption{
    display:none;
}

.sns-share-buttons {
	justify-content: center!important; /*中央寄せ justify-content: left がスキンのhtmlに含まれてるからimportantを追加した*/
}

.sns-share-buttons a {
			font-size: 30px; /*アイコンのサイズ*/
    border-radius: 50%;
    margin: 10px;
}

#main .sns-share a {
	width: 40px; /*ボタンの横幅*/
	height: 40px; /*ボタンの高さ*/
}

/*------------------------------------
  　　　　SNSフォローボタン
--------------------------------------*/
.sns-follow-message{
	text-align: center;
	font-weight: bold; /*太字*/
	color: #080357; /*文字色*/
}
.sns-follow-buttons {
	justify-content: center; /*中央寄せ*/
}
.sns-follow-buttons a {
	border-radius: 50%; /*丸くする*/
	font-size: 20px; /*アイコンのサイズ*/
	margin: 0 10px; /*ボタン同士の間隔*/
}
#main .sns-follow a {
	width: 40px; /*ボタンの横幅*/
	height: 40px; /*ボタンの高さ*/
}


/* 共通：カテゴリ一覧を2列ボタン化 */
#categories-2 ul,
.wp-block-categories-list{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
    list-style:none;
    margin:0;
    padding:0;
}

#categories-2 li,
.wp-block-categories-list li{
    margin:0;
}

#categories-2 li a,
.wp-block-categories-list li a{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:52px;
    padding:12px;
    background:#fff;
    border:2px solid #6BBF59;
    border-radius:10px;
    color:#333;
    text-decoration:none;
    font-weight:700;
    transition:.2s;
    box-sizing:border-box;
}

#categories-2 li a:hover,
.wp-block-categories-list li a:hover{
    background:#6BBF59;
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 4px 10px rgba(0,0,0,.12);
}

/* ==========================================
   タグ・カテゴリーのボタン化＆見出し追加（中央配置版）
   ========================================== */

/* 1. 見出し部分（中央揃え・下線デザイン） */
.entry-categories-tags::before {
  content: "＼関連テーマの記事を探す／"; /* 見出し文字 */
  display: block;
  width: 100%; /* 横幅いっぱいに広げて改行させる */
  text-align: center; /* ▼ 見出しテキストを中央揃え */
  font-size: 1.08em;
  font-weight: bold;
  color: #333333;
  margin-bottom: 16px;
  padding-bottom: 6px; /* 下線との間の余白 */
  border-left: none;
  border-bottom: 2px solid #8bc34a; /* 下側に黄緑のアクセントライン */
}

/* 2. ボタンを配置する親枠の調整（中央配置） */
.entry-categories-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important; /* ▼ ボタン群を左右中央に配置 */
  gap: 8px; /* ボタン同士の間隔 */
  margin-top: 25px;
  margin-bottom: 25px;
}

/* 3. ボタン本体のデザイン（黄緑系） */
.entry-categories a.cat-link,
.entry-tags a.tag-link {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 14px !important;
  background-color: #689f38;
  color: #fcfcfc !important;
  border: 1px solid #c5e1a5;
  border-radius: 20px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* 4. マウスホバー時の動き */
.entry-categories a.cat-link:hover,
.entry-tags a.tag-link:hover {
  background-color: #8bc34a;
  color: #232323 !important;
  border-color: #8bc34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 195, 74, 0.3);
}

/* アイコンと文字の余白調整 */
.entry-categories-tags .tax-icon {
  margin-right: 5px;
}

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

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

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

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