@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.2
*/

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


/* テーブルの外枠を少し濃くして上品に */
.entry-content table {
  border: 1px solid #bbb;
}

/* 中のセルの線は控えめに */
.entry-content table th,
.entry-content table td {
  border: 1px solid #ccc;
}

/* 見出しの背景は淡いブルー（①） */
.entry-content table th {
  font-size: 14px;
  font-weight: 600;
  background-color: #e8f3ff; /* あなたが選んだ①の色 */
  padding: 6px;
  color: #333;
}



/* テーブルの背景を透明にする */
table tr:nth-of-type(n+1) {
    background-color: transparent;
}

/* CATボックスの背景を透明にする */
.cta-box {
	background-color: transparent;
}

/* プロフィールのSNS　リンクアイコンのデザインを変更する */
.author-box .sns-follow .sns-follow-buttons a.follow-button {
  font-size: 36px;
  width: 100px;
  height: 46px;
  margin-bottom: 10px;
  margin-right: 10px;
  color: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 0 5px 0 rgba(0,0,0,.1),0 3px 5px 0 rgba(0,0,0,.2);
}

/* アイコンをセンタリングする */
.author-box .sns-follow-buttons a.follow-button span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* リンクの背景色にSNSのブランドカラーを設定する */
.author-box .sns-follow-buttons a.twitter-button {
  background-color: #000000 !important;
}

.author-box .sns-follow-buttons a.youtube-button {
  background-color: #FF0000 !important;
}


/* カテゴリーラベル非表示 */
.entry-card .cat-label{
display: none;
}

/* カテゴリーラベル非表示 */
.related-entry-card .cat-label{
display: none;
}

/* 固定ページの日付を非表示 */
.post-336 .date-tags,
.post-56 .date-tags {
display: none;
}

/* 目次に戻るリンクを機能させる */
.toc-checkbox {
    height: 0;
    overflow: hidden;
    display: block;
    visibility: hidden;
}

/* 目次に戻るリンクのスタイル */
.back-toc {
    margin: 50px 0; /* 上下の余白 */
}
.back-toc a {
    color: #e57373; /* 文字色 */
    text-decoration: none; /* 下線を消す */
}


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

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

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



/**アプリーチ新コードCSS**/
.appreach {
  text-align: left;
  padding: 10px;
  border: 1px solid #7C7C7C;
  overflow: hidden;
}
.appreach:after {
  content: "";
  display: block;
  clear: both;
}
.appreach p {
  margin: 0;
}
.appreach a:after {
  display: none;
}
.appreach__icon {
  float: left;
  border-radius: 10%;
  overflow: hidden;
  margin: 0 3% 0 0 !important;
  width: 25% !important;
  height: auto !important;
  max-width: 120px !important;
}
.appreach__detail {
  display: inline-block;
  font-size: 20px;
  line-height: 1.5;
  width: 72%;
  max-width: 72%;
}
.appreach__detail:after {
  content: "";
  display: block;
  clear: both;
}
.appreach__name {
  font-size: 16px;
  line-height: 1.5em !important;
  max-height: 3em;
  overflow: hidden;
}
.appreach__info {
  font-size: 12px !important;
}
.appreach__developper, .appreach__price {
  margin-right: 0.5em;
}
.appreach__posted a {
  margin-left: 0.5em;
}
.appreach__links {
  float: left;
  height: 40px;
  margin-top: 8px;
  white-space: nowrap;
}
.appreach__aslink img {
  margin-right: 10px;
  height: 40px;
  width: 135px;
}
.appreach__gplink img {
  height: 40px;
  width: 134.5px;
}
.appreach__star {
  position: relative;
  font-size: 14px !important;
  height: 1.5em;
  width: 5em;
}
.appreach__star__base {
  position: absolute;
  color: #737373;
}
.appreach__star__evaluate {
  position: absolute;
  color: #ffc107;
  overflow: hidden;
  white-space: nowrap;
}

/* ===============================================
   アコーディオン見出し（グレーの上品デザイン）
================================================ */
.toggle-button {
  position: relative;
  display: block;
  padding: 14px 52px 14px 20px;
  font-weight: 600;
  background-color: #eeeeee;  /* 上品グレー */
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #d0d0d0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* 開いたときの背景変化（少し濃く） */
input[type="checkbox"]:checked + .toggle-button {
  background-color: #e0e0e0;
  border-color: #c0c0c0;
}

/* Cocoon標準の左の＋アイコンは消す */
.toggle-button::before {
  content: none !important;
  display: none !important;
}

/* ===============================================
   ＋アイコン（デフォルトは黒）
================================================ */
.toggle-button::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: #000;   /* ← 黒に変更（視認性UP） */
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* 開いたとき → － に切り替え */
input[type="checkbox"]:checked + .toggle-button::after {
  content: "−";
  opacity: 1;
}

/* ===============================================
   背景色あり（色付き） → ＋を自動で白に
================================================ */

/* 子に色が付くタイプ（赤など） */
.cocoon-block-toggle.has-border-color.not-nested-style > .toggle-button::after {
  color: #fff !important;
}

/* 親に色が付くタイプ（緑や青など） */
.toggle-wrap.has-border-color .toggle-button::after,
.toggle-wrap.has-green-border-color .toggle-button::after,
.toggle-wrap.has-indigo-border-color .toggle-button::after {
  color: #fff !important;
}
