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

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

/* タブブロックのスタイル ---------------------------------------------- */

/* タブラベル共通 */
[class*="is-style-cstm-tab-"] .tab-label-group .tab-label {
  padding: 0.6em 1.5em;
  text-align: center;
  border-radius: 0;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* コンテンツ部分（frame） */
[class*="is-style-cstm-tab-"][class*="-frame"] .tab-content-group {
  border-radius: 0;
}

[class*="is-style-cstm-tab-"][class*="-frame"] .tab-label-group {
  gap: 0;
}

/* コンテンツ部分（simple / bubble / underline 共通） */
[class*="is-style-cstm-tab-"][class*="-simple"] .tab-content-group,
[class*="is-style-cstm-tab-"][class*="-bubble"] .tab-content-group,
[class*="is-style-cstm-tab-"][class*="-underline"] .tab-content-group {
  border: none;
  padding: 1.2em 0;
}

/* 601px以上 */
@media screen and (min-width: 601px){
  [class*="is-style-cstm-tab-"] .tab-content-group {
    padding: 2em;
  }
}

/* タブ幅均等配置（grid / wrap） */
[class*="is-style-cstm-tab-grid-"] .tab-label-group .tab-label,
[class*="is-style-cstm-tab-wrap-"] .tab-label-group .tab-label {
  flex: 1;
}

[class*="is-style-cstm-tab-"] .tab-label-group {
  font-size: 0.9em;
}

/* タブ折り返し（wrap） */
[class*="is-style-cstm-tab-wrap-"] .tab-label-group {
  flex-wrap: wrap;
}

/* 吹き出しタブ */
[class*="is-style-cstm-tab-"][class*="-bubble"] .tab-label-group {
  gap: 7px 3px;
  padding-bottom: 1em;
}

[class*="is-style-cstm-tab-"][class*="-bubble"] .tab-label-group .tab-label {
  position: relative;
}

[class*="is-style-cstm-tab-"][class*="-bubble"] .tab-label-group .tab-label.is-active:after {
  background-color: var(--cocoon-tab-label-active-color);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% - 1px);
  height: 8px;
  width: 15px;
  z-index: 2;
}

/* 下線タブ */
[class*="is-style-cstm-tab-"][class*="-underline"] .tab-label-group .tab-label {
  background: none;
  border-bottom: 2px solid var(--cocoon-tab-label-color);
}

[class*="is-style-cstm-tab-"][class*="-underline"] .tab-label-group .tab-label.is-active {
  background: none;
  border-color: var(--cocoon-tab-label-active-color);
  color: var(--cocoon-tab-label-active-color);
}

/* ホバー時の設定 */
[class*="is-style-cstm-tab-"]:not([class*="-underline"]) .tab-label-group .tab-label:hover {
  background-color: var(--cocoon-tab-label-active-color);
  color: var(--cocoon-white-color);
}

[class*="is-style-cstm-tab-"][class*="-underline"] .tab-label-group .tab-label:hover {
  border-color: var(--cocoon-tab-label-active-color);
  color: var(--cocoon-tab-label-active-color);
}

:root {
   --cocoon-tab-label-color: #f2f2f2; /* 非アクティブ時の背景色 */
   --cocoon-tab-label-active-color: #F2B8BA; /* 選択したタブの背景色 */
}

.post-1659 .date-tags {
  display: none;
}

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

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

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