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

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

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

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

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


/* ---------------------------------------------------------
  タブ見出しボックスのスタイル
--------------------------------------------------------- */

/* 共通：ラベル太字 */
.is-style-tab-caption-outside .tab-caption-box-label,
.is-style-tab-caption-inside .tab-caption-box-label,
.is-style-tab-caption-overlap .tab-caption-box-label,
.is-style-tab-caption-overlap-round .tab-caption-box-label,
.is-style-tab-caption-wide .tab-caption-box-label,
.is-style-tab-caption-icon-circle .tab-caption-box-label,
.is-style-tab-caption-icon-bar .tab-caption-box-label {
  font-weight: bold;
}

/* 共通：position基準 */
.is-style-tab-caption-inside.tab-caption-box,
.is-style-tab-caption-overlap.tab-caption-box,
.is-style-tab-caption-overlap-round.tab-caption-box,
.is-style-tab-caption-icon-circle.tab-caption-box,
.is-style-tab-caption-icon-bar.tab-caption-box {
  position: relative;
}

.is-style-tab-caption-inside .tab-caption-box-label,
.is-style-tab-caption-overlap .tab-caption-box-label,
.is-style-tab-caption-overlap-round .tab-caption-box-label,
.is-style-tab-caption-icon-circle .tab-caption-box-label,
.is-style-tab-caption-icon-bar .tab-caption-box-label {
  position: absolute;
}

/* 共通：box-content */
.is-style-tab-caption-outside .tab-caption-box-content,
.is-style-tab-caption-inside .tab-caption-box-content,
.is-style-tab-caption-overlap .tab-caption-box-content,
.is-style-tab-caption-overlap-round .tab-caption-box-content,
.is-style-tab-caption-wide .tab-caption-box-content,
.is-style-tab-caption-icon-circle .tab-caption-box-content,
.is-style-tab-caption-icon-bar .tab-caption-box-content {
  border-width: 1px;
}


/* ---------------------------------------------------------
  枠外
--------------------------------------------------------- */
.is-style-tab-caption-outside .tab-caption-box-content {
  padding: 1.5em 2em;
  margin-top: -1px;
  border-radius: 0;
}
.is-style-tab-caption-outside .tab-caption-box-label {
  padding: 0 1em;
  border-radius: 2px 2px 0 0;
}


/* ---------------------------------------------------------
  枠内
--------------------------------------------------------- */
.is-style-tab-caption-inside .tab-caption-box-content {
  padding: 2.5em 2em 1.5em;
  border-radius: 0;
}
.is-style-tab-caption-inside .tab-caption-box-label {
  padding: 0 1em;
  border-radius: 0 0 1px 0;
  top: 0;
  left: 0;
}


/* ---------------------------------------------------------
  枠上（重ね / 丸）
--------------------------------------------------------- */
.is-style-tab-caption-overlap .tab-caption-box-content,
.is-style-tab-caption-overlap-round .tab-caption-box-content {
  padding: 2em;
  border-radius: 3px;
}
.is-style-tab-caption-overlap .tab-caption-box-label,
.is-style-tab-caption-overlap-round .tab-caption-box-label {
  top: -0.8em;
  left: 1em;
}
.is-style-tab-caption-overlap .tab-caption-box-label {
  padding: 0 1em;
  border-radius: 3px;
}
.is-style-tab-caption-overlap-round .tab-caption-box-label {
  padding: 0 1.2em;
  border-radius: 30px;
}


/* ---------------------------------------------------------
  幅広
--------------------------------------------------------- */
.is-style-tab-caption-wide .tab-caption-box-content {
  padding: 1.5em 2em 1.5em;
  border-radius: 0;
}
.is-style-tab-caption-wide .tab-caption-box-label {
  padding: 0.5em 1em;
  border-radius: 0;
  width: 100%;
  text-align: center;
}


/* ---------------------------------------------------------
  アイコン共通（円/バー）
--------------------------------------------------------- */
.is-style-tab-caption-icon-circle .tab-caption-box-label,
.is-style-tab-caption-icon-bar .tab-caption-box-label {
  display: grid;
  place-content: center;
  line-height: 2em;
}
.is-style-tab-caption-icon-circle .tab-caption-box-label::before,
.is-style-tab-caption-icon-bar .tab-caption-box-label::before {
  margin-right: 0;
}
.is-style-tab-caption-icon-circle .tab-caption-box-label-text,
.is-style-tab-caption-icon-bar .tab-caption-box-label-text {
  display: none;
}


/* アイコン（円） */
.is-style-tab-caption-icon-circle .tab-caption-box-content {
  padding: 1.5em 2em;
  border-radius: 4px;
  border-width: 2px;
}
.is-style-tab-caption-icon-circle .tab-caption-box-label {
  width: 2em;
  height: 2em;
  padding: 0;
  border-radius: 99px;
  top: -0.9em;
  left: 1em;
  box-shadow: 0 0 0 2px;
  font-size: 1em;
}


/* アイコン（縦バー） */
.is-style-tab-caption-icon-bar .tab-caption-box-content {
  padding: 1.5em 1.5em 1.5em 3.5em;
  border-radius: 0;
}
.is-style-tab-caption-icon-bar .tab-caption-box-label {
  padding: 0;
  border-radius: 0;
  top: 0;
  left: 0;
  height: 100%;
  width: 2.2em;
}


/* ---------------------------------------------------------
  ラベルテキストの省略（三点リーダー）
  ※ アイコン系以外に適用
--------------------------------------------------------- */
.is-style-tab-caption-outside .tab-caption-box-label,
.is-style-tab-caption-inside .tab-caption-box-label,
.is-style-tab-caption-overlap .tab-caption-box-label,
.is-style-tab-caption-overlap-round .tab-caption-box-label {
  display: flex;
  max-width: calc(100% - 2em);
}
.is-style-tab-caption-outside .tab-caption-box-label-text,
.is-style-tab-caption-inside .tab-caption-box-label-text,
.is-style-tab-caption-overlap .tab-caption-box-label-text,
.is-style-tab-caption-overlap-round .tab-caption-box-label-text {
  min-width: 0;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-style-tab-caption-outside .tab-caption-box-label::before,
.is-style-tab-caption-inside .tab-caption-box-label::before,
.is-style-tab-caption-overlap .tab-caption-box-label::before,
.is-style-tab-caption-overlap-round .tab-caption-box-label::before {
  flex-shrink: 0;
}

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

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

/* タブ幅均等配置（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;
}

/* タブ折り返し（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:before {
   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%);
   bottom: -7px;
   height: 8px;
   width: 16px;
   z-index: 1;
}

/* 下線タブ */
[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);
}

/* コンテンツ部分（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;
}

/* コンテンツ部分（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;
}

/* ウィジェットカード設定（Grid）---------------------------------------------- */

/* カード内の画像リンク最大幅を600pxに制限（横幅100%で拡縮対応） */
[class*="is-style-column-"] .widget-entry-cards.card-large-image .a-wrap {
   max-width: 600px;
   width: 100%;
}

/* 大きなサムネイル画像を中央寄せ */
[class*="is-style-column-"] .widget-entry-cards.large-thumb {
   justify-items: center; /* Gridのアイテムを水平方向に中央配置 */
}

/* 各カラム数に応じたグリッド表示 */
[class*="is-style-column-2"] .widget-entry-cards,
[class*="is-style-column-3"] .widget-entry-cards,
[class*="is-style-column-4"] .widget-entry-cards {
   display: grid;
}

/* 2カラム表示 */
[class*="is-style-column-2"] .widget-entry-cards {
   grid-template-columns: repeat(2, 1fr);
}

/* 3カラム表示 */
[class*="is-style-column-3"] .widget-entry-cards {
   grid-template-columns: repeat(3, 1fr);
}

/* 4カラム表示 */
[class*="is-style-column-4"] .widget-entry-cards {
   grid-template-columns: repeat(4, 1fr);
}

/* モバイル用レスポンシブ設定 */
@media (max-width: 768px) {
   /* column-x-1系：モバイルでは1列 */
   :is(.is-style-column-2-1, .is-style-column-3-1, .is-style-column-4-1) .widget-entry-cards {
   grid-template-columns: 1fr;
   }

   /* column-x-2系：モバイルでは2列 */
   :is(.is-style-column-3-2, .is-style-column-4-2) .widget-entry-cards {
   grid-template-columns: repeat(2, 1fr);
   }
}