@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){
  /*必要ならばここにコードを書く*/
}

#navi .navi-in > ul li {
  height: 80px;       /* お好みの高さ（例: 50px） */
  line-height: 80px;  /* heightと同じ値を指定 */
}

/*--------------------------------------
  白抜きボックス共通設定
----------------------------------------*/

/* 共通 */
.blank-box[class*="is-style-cstm-blank-"]{
  padding:1.5em 2em;
  border-radius:0;
}

/* 角丸 */
.is-style-cstm-blank-solid-thin-rounded,
.is-style-cstm-blank-solid-bold-rounded,
.is-style-cstm-blank-dashed-thin-rounded{
  border-radius:7px;
}

/*--------------------------------------
  各スタイル定義
----------------------------------------*/

/* 二重線枠 */
.blank-box.is-style-cstm-blank-double {
  border: 4px double;
}

/* 実線（細線） */
.blank-box[class*="is-style-cstm-blank-solid-thin"] {
  border-width: 1px;
}

/* 実線（太線） */
.blank-box[class*="is-style-cstm-blank-solid-bold"] {
  border-width: 3px;
}

/* 破線（細線） */
.blank-box[class*="is-style-cstm-blank-dashed-thin"] {
  border: 1px dashed;
}

/* 付箋風（上ライン） */
.blank-box.is-style-cstm-blank-sticky-top {
  border-width: 3px 0 0 0;
  background-color: #fafafa;
}

/* 付箋風（左ライン） */
.blank-box.is-style-cstm-blank-sticky-left {
  border-width: 0 0 0 3px;
  background-color: #fafafa;
}

/* ストライプ柄 */
.blank-box.is-style-cstm-blank-stripe {
  border: 0;
  background: repeating-linear-gradient(
    -45deg,
    #f8f8f8 0,
    #f8f8f8 3px,
    transparent 3px,
    transparent 6px
  );
}

/* 方眼柄 */
.blank-box.is-style-cstm-blank-grid {
  border: 0;
  background:
    linear-gradient(0deg, transparent 19px, #ddd 20px),
    linear-gradient(90deg, transparent 19px, #ddd 20px);
  background-size: 20px 20px;
}

/* 紙風デザイン（折り返し付き） */
.blank-box.is-style-cstm-blank-paper {
  border: 0;
  position: relative;
  background-color: #fafafa;
  padding: 2em;
}

.blank-box.is-style-cstm-blank-paper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border: solid;
  border-width: 0 20px 20px 0;
  border-color: #ccc #fff #ccc;
  box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15);
}

/* ノート風デザイン */
.blank-box.is-style-cstm-blank-note {
  border: 0;
  position: relative;
  background: #efeeed;
  padding: 2.5em 2em 2em;
}

/* ノート風：ドットライン */
.blank-box.is-style-cstm-blank-note::before {
  content: '';
  position: absolute;
  top: 0.5em;
  inset-inline: 1em;
  border-top: dotted 10px #fff;
  pointer-events: none;
}

/* ステッチ枠 */
.blank-box[class*="is-style-cstm-blank-stitch"] {
  border: none;
  padding: 2em;	
  position: relative;
}

.blank-box[class*="is-style-cstm-blank-stitch"]::before {
  border-radius: 6px;
  content: '';
  display: block;
  position: absolute;
  height: calc(100% - 10px);
  left: 5px;
  top: 5px;
  width: calc(100% - 10px);
  pointer-events: none;
  box-sizing: border-box;
}

.blank-box.is-style-cstm-blank-stitch {
  background-color: #f7f7f7;
}

.blank-box.is-style-cstm-blank-stitch::before {
  border: 1px dashed #ccc;
}

.blank-box.is-style-cstm-blank-stitch-white {
  background-color: #efeeed;
}

.blank-box.is-style-cstm-blank-stitch-white::before {
  border: 1px dashed #fff;
}

/* 影付き枠 */
.is-style-cstm-blank-shadow {
  border: none;
  box-shadow: 1px 1px 3px rgb(0 0 0 / 0.3);
}

/* -------------------------------
   タイムライン共通設定
---------------------------------*/

/* カスタム変数（サイズ・線幅を一元管理） */
.timeline {
  /* --- シンプル用 --- */
  --timeline-dot-size: 10px; /* 丸の直径 */
  --timeline-dot-border-width: 2px; /* 丸の枠線 */
  --timeline-simple-line-width: 2px; /* 縦線の太さ */
  --timeline-dot-outer: calc(var(--timeline-dot-size) + var(--timeline-dot-border-width) * 2); /* 外径 */
  --timeline-simple-line-offset: calc(var(--timeline-dot-outer) / 2 - var(--timeline-simple-line-width) / 2); /* 中央補正 */

  /* --- ステップ（番号）用 --- */
  --timeline-number-size: 25px; /* 番号丸の直径 */
  --timeline-number-line-width: 3px; /* 縦線の太さ */
  --timeline-number-line-offset: calc(var(--timeline-number-size) / 2 - var(--timeline-number-line-width) / 2); /* 中央補正 */

  /* --- ステップ（丸型）用 --- */
  --timeline-label-size: 46px; /* 円ラベルの直径 */
  --timeline-label-line-width: 1px; /* 縦線の太さ */
  --timeline-label-radius: calc(var(--timeline-label-size) / 2); /* 半径 */
  --timeline-label-line-offset: calc(-1 * var(--timeline-label-radius) - var(--timeline-label-line-width) / 2); /* 中央補正 */
}

/* スマホ時はラベル円をやや縮小 */
@media screen and (max-width: 480px) {
  .timeline {
    --timeline-label-size: 38px;
  }
}


/* -------------------------------
   基本レイアウト
---------------------------------*/

/* タイムラインボックス共通 */
.timeline-box[class*="is-style-cstm-timeline"] {
  border: none;         /* 枠線リセット */
  overflow-x: hidden;   /* 横スクロール防止 */
  padding: 1em 0;
}

/* 背景付きボックスは内側余白を広めに */
.timeline-box.has-background[class*="is-style-cstm-timeline"] {
  padding: 2em;
}

/* タイトル共通 */
[class*="is-style-cstm-timeline"] .timeline-title {
  position: relative;
  padding-bottom: 0.8em; /* 下線スペース */
}

/* スタイル別タイトル余白 */
.is-style-cstm-timeline-simple .timeline-title,
.is-style-cstm-timeline-step-vertical .timeline-title {
  margin-bottom: 1em;
}

.is-style-cstm-timeline-number .timeline-title,
.is-style-cstm-timeline-step-circle .timeline-title,
.is-style-cstm-timeline-step-bordered .timeline-title {
  margin-bottom: 2em;
}

/* タイトル下線（中央配置） */
[class*="is-style-cstm-timeline"] .timeline-title::after {
  content: "";
  background-color: var(--cocoon-text-color, #333);
  position: absolute;
  bottom: 0;
  left: calc(50% - 1.25rem);
  width: 2.5rem;
  height: 1px;
  border-radius: 10px;
}

/* タイトル未入力時は完全非表示 */
[class*="is-style-cstm-timeline"] .timeline-title:empty {
  display: none;
  position: static;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ラベル・本文のfloatリセット */
[class*="is-style-cstm-timeline"] .timeline-item-label,
[class*="is-style-cstm-timeline"] .timeline-item-content {
  float: none;
}

[class*="is-style-cstm-timeline"] .timeline-item-label {
  text-align: initial;
}


/* -------------------------------
   共通ステップ番号処理
---------------------------------*/

/* カウンター初期化 */
[class*="is-style-cstm-timeline-step"] .timeline,
.is-style-cstm-timeline-number .timeline {
  counter-reset: step;
}

/* ラベル内テキスト非表示（疑似要素で生成） */
[class*="is-style-cstm-timeline-step"] .timeline-item-label {
  font-size: 0;
  display: flex;
  justify-content: center;
}

/* STEP + 番号を自動生成 */
[class*="is-style-cstm-timeline-step"] .timeline-item-label::before {
  content: "STEP";
  display: block;
}

[class*="is-style-cstm-timeline-step"] .timeline-item-label::after,
.is-style-cstm-timeline-number .timeline-item:before {
  content: counter(step);
  counter-increment: step;
}

/* 左ボーダー無効化（スタイル別で再定義） */
[class*="is-style-cstm-timeline-step"] .timeline-item-content {
  border-left: none;
}


/* -------------------------------
   タイプ別スタイル
---------------------------------*/

/* コンテンツ幅調整 */
.is-style-cstm-timeline-simple .timeline-item-content,
.is-style-cstm-timeline-number .timeline-item-content,
.is-style-cstm-timeline-step-circle .timeline-item-content {
  width: auto;
}


/* -------------------------------
   シンプル
---------------------------------*/

/* ラベル位置調整 */
.is-style-cstm-timeline-simple .timeline-item-label {
  width: auto;
  padding-left: calc(1.4rem + var(--timeline-simple-line-offset));
}

/* 縦線（中央基準） */
.is-style-cstm-timeline-simple .timeline-item-content {
  border-left: var(--timeline-simple-line-width) solid #ccc;
  margin-left: var(--timeline-simple-line-offset);
  padding: 0 1em 1em 1.4rem;
}

/* 丸（before） */
.is-style-cstm-timeline-simple .timeline-item:before {
  top: 22px;
  left: 0;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border: var(--timeline-dot-border-width) solid var(--cocoon-custom-point-color);
}

/* 背景なしでは丸の色は白 */
.is-style-cstm-timeline-simple.has-point-color > .timeline > .timeline-item:before {
  background: #fff;
}

/* 背景付き時はカスタム背景色 */
.is-style-cstm-timeline-simple.has-background > .timeline > .timeline-item:before {
  background: var(--cocoon-custom-background-color);
}


/* -------------------------------
   ステップ式（番号）
---------------------------------*/

/* ラベル非表示 */
.is-style-cstm-timeline-number .timeline-item-label {
  display: none;
}

.is-style-cstm-timeline-number .timeline > li.timeline-item:not(:last-child) {
  margin-bottom: 1em;
}

/* 番号 */
.is-style-cstm-timeline-number .timeline-item:before {
  width: var(--timeline-number-size);
  height: var(--timeline-number-size);
  line-height: 1;
  left: 0;
  top: 0;
  display: grid;
  place-content: center;
  color: #fff;
}

/* 縦線 */
.is-style-cstm-timeline-number .timeline-item-content {
  border-left: var(--timeline-number-line-width) solid #eee;
  margin-left: var(--timeline-number-line-offset);
  padding: 0 1em 1em 1.4rem;
}


/* -------------------------------
   ステップ（丸型）
---------------------------------*/

/* 各ステップを横並びレイアウトに */
.is-style-cstm-timeline-step-circle .timeline .timeline-item {
  display: flex;
}

/* 円ラベル（STEP＋番号） */
.is-style-cstm-timeline-step-circle .timeline-item-label {
  flex-direction: column; /* STEPと番号を縦並び */
  align-items: center; /* 中央揃え */
  flex-shrink: 0; /* 円を縮ませない */
  width: var(--timeline-label-size);
  height: var(--timeline-label-size);
  border-radius: 50%;
  background: var(--cocoon-custom-point-color);
  color: #fff;
  padding: 0;
  line-height: 1.2;
  z-index: 2; /* 縦線より前面に表示 */
}

/* STEP文字サイズ */
.is-style-cstm-timeline-step-circle .timeline-item-label::before {
  font-size: 10px;
  margin-top: 3px; /* 上余白微調整 */
}

/* 番号サイズ */
.is-style-cstm-timeline-step-circle .timeline-item-label::after {
  font-size: 16px;
  font-weight:700;
}

/* 本文エリア */
.is-style-cstm-timeline-step-circle .timeline-item-content {
  margin-top: 0.5em;
  padding: 0 0.6em 2em;
  position: relative;
  flex: 1 1 auto;
  min-width: 0; /* 長文時の見切れ防止 */
}

/* Cocoon既存の丸を無効化 */
.is-style-cstm-timeline-step-circle .timeline-item:before {
  display: none;
}

/* タイトル下余白 */
.is-style-cstm-timeline-step-circle .timeline-item-title {
  margin-bottom: 0.5em;
}

/* ラベルから伸びる縦線 */
.is-style-cstm-timeline-step-circle .timeline-item .timeline-item-content::before {
  content: "";
  position: absolute;
  left: var(--timeline-label-line-offset); /* 円の中心に合わせる */
  width: var(--timeline-label-line-width);
  height: 100%;
  background: var(--cocoon-custom-point-color);
  opacity: 0.5;
  z-index: 1;
}


/* -------------------------------
   ステップ（縦型）
---------------------------------*/

/* 各ステップの基準位置（疑似要素配置用） */
.is-style-cstm-timeline-step-vertical .timeline .timeline-item,
.is-style-cstm-timeline-step-bordered .timeline .timeline-item {
  position: relative;
  overflow: visible; /* 下向き三角をはみ出させるため */
}

/* 内側余白 */
.is-style-cstm-timeline-step-vertical .timeline .timeline-item {
  padding: 1em;
}

/* ステップ間の区切り線 */
.is-style-cstm-timeline-step-vertical .timeline .timeline-item:not(:last-child) {
  border-bottom: 1px dashed var(--cocoon-custom-point-color);
}

/* 下向き三角（次ステップへの接続装飾） */
.is-style-cstm-timeline-step-vertical .timeline-item::before,
.is-style-cstm-timeline-step-bordered .timeline-item::before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 10px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 0;
}

/* 最終ステップでは三角非表示 */
.is-style-cstm-timeline-step-vertical .timeline-item:last-child::before,
.is-style-cstm-timeline-step-bordered .timeline-item:last-child::before {
  display: none;
}

/* ラベル縦並び */
.is-style-cstm-timeline-step-vertical .timeline-item-label {
  flex-direction: column;
  align-items: center;
}

/* タイトル中央配置 */
.is-style-cstm-timeline-step-vertical .timeline-item-title,
.is-style-cstm-timeline-step-bordered .timeline-item-title {
  text-align: center;
  color: var(--cocoon-custom-point-color);
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

/* コンテンツ幅リセット */
.is-style-cstm-timeline-step-vertical .timeline-item-content,
.is-style-cstm-timeline-step-bordered .timeline-item-content {
  width: 100%;
  padding: 0;
}

/* ラベル共通スタイル */
.is-style-cstm-timeline-step-vertical .timeline-item-label,
.is-style-cstm-timeline-step-bordered .timeline-item-label {
  width: auto;
  color: var(--cocoon-custom-point-color);
  line-height: 1.2;
  padding: 0;
}

/* STEP文字サイズ */
.is-style-cstm-timeline-step-vertical .timeline-item-label::before {
  font-size: 12px;
}

/* 番号サイズ */
.is-style-cstm-timeline-step-vertical .timeline-item-label::after {
  font-size: 20px;
}


/* -------------------------------
   ステップ（枠線）
---------------------------------*/

/* 枠付きカード風レイアウト */
.is-style-cstm-timeline-step-bordered .timeline .timeline-item {
  border: 2px solid color-mix(in srgb, var(--cocoon-custom-point-color) 30%, white);
  padding: 2em;
  border-radius: 7px;
}

/* ステップ間の余白 */
.is-style-cstm-timeline-step-bordered .timeline .timeline-item:not(:last-child) {
  margin-bottom: 30px !important;
}

/* 三角の位置微調整 */
.is-style-cstm-timeline-step-bordered .timeline-item::before {
  margin-top: 10px;
}

/* ラベル横並び */
.is-style-cstm-timeline-step-bordered .timeline-item-label {
  flex-direction: row;
  align-items: baseline;
  gap: 2px;
}

/* STEP文字サイズ */
.is-style-cstm-timeline-step-bordered .timeline-item-label::before {
  font-size: 12px;
}

/* 番号サイズ */
.is-style-cstm-timeline-step-bordered .timeline-item-label::after {
  font-size: 1rem;
}


/* -------------------------------
   レスポンシブ（480px以下）
---------------------------------*/

@media screen and (max-width: 480px) {

  .timeline-box.has-background[class*="is-style-cstm-timeline"] {
    padding: 2em 1em;
  }

  /* シンプル */
  .is-style-cstm-timeline-simple .timeline > li.timeline-item {
    border: none;
  }

  /* ステップ（丸型） */
  .is-style-cstm-timeline-step-circle .timeline-item-label {
    line-height: 1;
  }

  .is-style-cstm-timeline-step-circle .timeline-item-label::before,
  .is-style-cstm-timeline-step-circle .timeline-item-label::after {
    transform: scale(0.8);
  }

  .is-style-cstm-timeline-step-circle .timeline-item-content {
    margin-top: 0.25em;
  }

  /* リセット */
  .is-style-cstm-timeline-number .timeline,
  .is-style-cstm-timeline-step-circle .timeline,
  .is-style-cstm-timeline-step-vertical .timeline,
  .is-style-cstm-timeline-step-bordered .timeline {
    padding-left: 0;
  }

  .is-style-cstm-timeline-number .timeline > li.timeline-item,
  .is-style-cstm-timeline-step-circle .timeline > li.timeline-item,
  .is-style-cstm-timeline-step-vertical .timeline > li.timeline-item {
    border-left: none;
  }
}

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

/* タブラベル共通 */
[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);
}

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

/* 共通：position基準 */
[class*="is-style-tab-caption-inside"].tab-caption-box,
[class*="is-style-tab-caption-overlap"].tab-caption-box,
[class*="is-style-tab-caption-icon"].tab-caption-box {
  position: relative;
}

[class*="is-style-tab-caption-inside"] .tab-caption-box-label,
[class*="is-style-tab-caption-overlap"] .tab-caption-box-label,
[class*="is-style-tab-caption-icon"] .tab-caption-box-label {
  position: absolute;
}

/* 共通：box-content */
[class*="is-style-tab-caption"] .tab-caption-box-content {
  border-width: 1px;
}

/* 共通：ラベル太字 */
[class*="is-style-tab-caption"] .tab-caption-box-label {
  font-weight: bold;
}

/* ---------------------------------------------------------
   枠外
--------------------------------------------------------- */
.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;
}

/* ---------------------------------------------------------
   枠上（重ね / 丸吹き出し）
--------------------------------------------------------- */
[class*="is-style-tab-caption-overlap"] .tab-caption-box-label {
  top: -0.8em;
  left: 1em;
}

.is-style-tab-caption-overlap .tab-caption-box-content {
  padding: 2em 2.5em;
  border-radius: 3px;
}

.is-style-tab-caption-overlap .tab-caption-box-label {
  padding: 0 1em;
  border-radius: 3px;
}

/* 丸吹き出し */
.is-style-tab-caption-overlap-round .tab-caption-box-content {
  padding: 3em;
  border-radius: 3px;
}

.is-style-tab-caption-overlap-round .tab-caption-box-label {
  padding: 0.1em 1.2em;
  border-radius: 30px;
}

/* 吹き出しの三角形 */
.is-style-tab-caption-overlap-round .tab-caption-box-label:after {
  background-color: var(--cocoon-custom-border-color);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  height: 8px;
  width: 14px;
}

/* ---------------------------------------------------------
   テープ風
--------------------------------------------------------- */
.is-style-tab-caption-overlap-tape .tab-caption-box-content {
  padding: 2em;
  border-radius: 0;
  border-width: 0;
  box-shadow: 0 0 2px rgba(0,0,0,0.2), 0 2px 3px rgba(0,0,0,0.1);
}

.is-style-tab-caption-overlap-tape .tab-caption-box-label {
  padding: 0 1em;
  border-radius: 1px;
  z-index:1;
}

.is-style-tab-caption-overlap-tape .tab-caption-box-label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, #fff 0 4px, transparent 4px 8px);
  opacity: 0.1;
  z-index: 0; /* 背景層 */
  pointer-events: none; /* クリックや選択をブロックしない */
}

/* ---------------------------------------------------------
   幅広
--------------------------------------------------------- */
.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: 2em;
  border-radius: 4px;
  border-width: 1px;
}

.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;
}

/* ---------------------------------------------------------
   480px以下
--------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .is-style-tab-caption-outside .tab-caption-box-content,
  .is-style-tab-caption-wide .tab-caption-box-content,
  .is-style-tab-caption-icon-circle .tab-caption-box-content {
    padding: 2em;
  }

  .is-style-tab-caption-overlap-round .tab-caption-box-content {
    padding: 3em 2em 2em;
  }

  .is-style-tab-caption-inside .tab-caption-box-content {
    padding: 2.5em 1.5em 1.5em;
  }

  .is-style-tab-caption-overlap .tab-caption-box-content {
    padding: 2em 1.5em 1.5em;
  }

  .is-style-tab-caption-icon-bar .tab-caption-box-content {
    padding: 1em 1.5em 1em 3em;
  }
}

/* ---------------------------------------------------------
   ラベルテキストの省略（三点リーダー）
   ※ アイコン系以外に適用
--------------------------------------------------------- */
.is-style-tab-caption-outside .tab-caption-box-label,
.is-style-tab-caption-inside .tab-caption-box-label,
[class*="is-style-tab-caption-overlap"] .tab-caption-box-label {
  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,
[class*="is-style-tab-caption-overlap"] .tab-caption-box-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* リストマーカー色をボーダー色に合わせる ----------------------------------- */
[class*="is-style-tab-caption"].tab-caption-box ul li::marker {
  color: var(--cocoon-custom-border-color);
}

/* ---------------------------------------------------------
   アコーディオン（トグルボックス）共通デザイン
--------------------------------------------------------- */

/* トグルボタン（共通） ---------------------------- */
[class*="is-style-cstm-toggle"] .toggle-button {
  border: none;
  border-radius: 0;
  padding: 0.8em 1em;
  font-weight: bold;
  color: var(--cocoon-dark-grey-color);
}

[class*="is-style-cstm-toggle"] .toggle-button::before,
[class*="is-style-cstm-toggle"] .toggle-button:hover {
  opacity: 1;
}

/* 白抜き／下線デザイン ------------------------------ */
[class*="is-style-cstm-toggle-outline"] .toggle-button,
[class*="is-style-cstm-toggle-underline"] .toggle-button {
  background: none;
}

/* 外枠あり（シンプル／白抜き） */
.toggle-box[class*="is-style-cstm-toggle-simple"],
.toggle-box[class*="is-style-cstm-toggle-outline"] {
  border: 1px solid var(--cocoon-custom-border-color);
}

/* 下線のみ */
.toggle-box[class*="is-style-cstm-toggle-underline"] {
  border-bottom: 1px solid var(--cocoon-custom-border-color);
}

/* 左寄せボタン（-left系） ------------------------- */
[class*="is-style-cstm-toggle"][class*="-left"] .toggle-button {
  padding: 0.8em 2em 0.8em 1em;
  text-align: left;
}

/* チェック時の装飾 -------------------------------- */
/* 白抜き：開閉時に下線を破線に */
[class*="is-style-cstm-toggle-outline"] .toggle-checkbox:checked ~ .toggle-button {
  border-bottom: 1px dashed var(--cocoon-custom-border-color);
}

/* 開閉コンテンツ：境界線リセット */
[class*="is-style-cstm-toggle"] .toggle-checkbox:checked ~ .toggle-content {
  border: none;
  border-radius: 0;
}

/* コンテンツ余白（シンプル／白抜き） ---------------- */
[class*="is-style-cstm-toggle-simple"].toggle-wrap .toggle-content,
[class*="is-style-cstm-toggle-outline"].toggle-wrap .toggle-content {
  padding: 0 2em;
}

[class*="is-style-cstm-toggle-simple"] .toggle-checkbox:checked ~ .toggle-content,
[class*="is-style-cstm-toggle-outline"] .toggle-checkbox:checked ~ .toggle-content {
  padding: 2em;
}

@media screen and (max-width: 480px) {
  [class*="is-style-cstm-toggle-simple"].toggle-wrap .toggle-content,
  [class*="is-style-cstm-toggle-outline"].toggle-wrap .toggle-content {
    padding: 0 1.5em;
  }

  [class*="is-style-cstm-toggle-simple"] .toggle-checkbox:checked ~ .toggle-content,
  [class*="is-style-cstm-toggle-outline"] .toggle-checkbox:checked ~ .toggle-content {
    padding: 1.5em;
  }
}

/* ボタン風デザイン ------------------------------- */
.is-style-cstm-toggle-button .toggle-button {
  width: fit-content;
  border: 1px solid var(--cocoon-custom-border-color);
  border-radius: 99px;
  padding: 0.3em 1.5em;
  margin: 0 auto;
}

.is-style-cstm-toggle-button .toggle-checkbox:checked ~ .toggle-button {
  border-radius: 99px;
}

/* 背景色なしの場合 */
[class*="is-style-cstm-toggle-underline"]:not(.has-background).toggle-wrap .toggle-content,
.is-style-cstm-toggle-button:not(.has-background).toggle-wrap .toggle-content {
  padding: 0;
}

[class*="is-style-cstm-toggle-underline"]:not(.has-background) .toggle-checkbox:checked ~ .toggle-content {
  padding:1em 0;
}

.is-style-cstm-toggle-button:not(.has-background) .toggle-checkbox:checked ~ .toggle-content {
  padding-top: 2em;
}


/* ---------------------------------------------------------
   アコーディオン共通：アイコン回転方式
--------------------------------------------------------- */

/* 共通：アイコンの初期状態 */
[class*="is-style-cstm-toggle"] .toggle-button::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  transition: transform 0.3s ease; /* 回転アニメーション */
}

/* アイコン設定（contentは固定） */
/* 左寄せタイプ（V字型） */
[class*="is-style-cstm-toggle"][class*="-left"] .toggle-button::before {
  content: "\f078"; /* V字型 */
}

/* 開閉時：アイコン180°回転 */
[class*="is-style-cstm-toggle"] .toggle-checkbox:checked ~ .toggle-button::before {
  transform: rotate(180deg);
}

/* 見出しボックス ---------------------------------------------- */

/* 共通 */
[class*="is-style-cstm-caption"] .caption-box-label {
  justify-content: center; /* 中央寄せ */
  font-weight:bold;
  padding:0.5em;
}

[class*="is-style-cstm-caption"] .caption-box-content {
  padding: 2em; /* 内側余白 */
}

.caption-box[class*="is-style-cstm-caption"][class*="-square"] {
  border-radius:0; /* 四角 */
}

.caption-box[class*="is-style-cstm-caption"][class*="-rounded"] {
  border-radius: var(--cocoon-middle-border-radius); /* 角丸 */
  overflow: hidden; /* 子要素のはみ出しを防ぐ */
}
[class*="is-style-cstm-caption"][class*="-rounded"] .caption-box-label {
  border-radius: 0; /* 子要素側では角丸をリセット */
}

/* シンプルスタイル */
.caption-box[class*="is-style-cstm-caption-simple"] {
  border-width:1px;
}

/* 影付きスタイル */
.caption-box[class*="is-style-cstm-caption-shadow"] {
  border: none;
  box-shadow: 0 1px 5px rgb(0 0 0 / 0.1);
}

/* テープ風 */
.caption-box[class*="is-style-cstm-caption"][class*="-tape"] {
  position: relative;
  margin-top: 4em;
}

.caption-box[class*="is-style-cstm-caption"][class*="-tape"] .caption-box-label {
  position: absolute;
  top: -1.4em;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  padding: 0.5em 1em;
  z-index: 2; /* ← コンテンツより前面に */
  overflow: hidden; /* はみ出しを隠す */
}
.caption-box[class*="is-style-cstm-caption-shadow"][class*="-tape"] .caption-box-label-text {
  display: inline-block; /* インライン要素をブロック扱いに */
  max-width: 100%;       /* 親の幅に収まるように */
  white-space: nowrap;   /* 折り返さない */
  overflow: hidden;      /* はみ出しを隠す */
  text-overflow: ellipsis; /* はみ出し時に「…」を表示 */
  vertical-align: bottom;  /* 見た目を安定させる */
}

.caption-box[class*="is-style-cstm-caption"][class*="-tape"] .caption-box-content {
  position: relative; /* 重なり順制御のために追加 */
  z-index: 1; /* ← 背景より前、ラベルより後 */
  padding-top: 3.5em;
}

/* マスキングテープ風 */
.caption-box[class*="is-style-cstm-caption-shadow"][class*="-tapestripe"]
.caption-box-label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, #fff 0 6px, transparent 6px 12px);
  opacity: 0.1;
  z-index: 0; /* 背景層 */
  pointer-events: none; /* ←クリックや選択をブロックしない */
}

/*480px以下*/
@media screen and (max-width: 480px){
  [class*="is-style-cstm-caption"] .caption-box-content {
    padding: 2em 1.5em; /* 内側余白 */
  }
}

/* --------------------------------
  ボックスメニュー：カラム数切り替え
-------------------------------- */

/* grid用のリセット */
[class*="is-style-box-column-"] .box-menus .box-menu {
  width: unset;
}

/* grid化 */
[class*="is-style-box-column-"] .box-menus {
  display: grid;
}

/* gap（余白あり）のみ適用：is-style-box-column- かつ -gap を含むクラスに限定 */
[class*="is-style-box-column-"][class*="-gap"] .box-menus {
  gap: 0.5em;
}

/* --- PC: 列数指定 --- */
/* 2列（PC） */
[class*="is-style-box-column-2-"] .box-menus {
  grid-template-columns: repeat(2, 1fr);
}

/* 3列（PC） */
[class*="is-style-box-column-3-"] .box-menus {
  grid-template-columns: repeat(3, 1fr);
}

/* 4列（PC） */
[class*="is-style-box-column-4-"] .box-menus {
  grid-template-columns: repeat(4, 1fr);
}

/* 5列（PC） */
[class*="is-style-box-column-5-"] .box-menus {
  grid-template-columns: repeat(5, 1fr);
}

/* 6列（PC） */
[class*="is-style-box-column-6-"] .box-menus {
  grid-template-columns: repeat(6, 1fr);
}

/* --- モバイル（834px以下） --- */
@media screen and (max-width: 834px) {

  /* モバイル2列：-m2系は2列に統一 */
  [class*="is-style-box-column-2-"] .box-menus,
  [class*="is-style-box-column-3-"][class*="-m2"] .box-menus,
  [class*="is-style-box-column-4-"][class*="-m2"] .box-menus,
  [class*="is-style-box-column-5-"][class*="-m2"] .box-menus,
  [class*="is-style-box-column-6-"][class*="-m2"] .box-menus {
    grid-template-columns: repeat(2, 1fr);
  }

  /* モバイル3列：-m3系のみ3列 */
  [class*="is-style-box-column-3-"][class*="-m3"] .box-menus,
  [class*="is-style-box-column-5-"][class*="-m3"] .box-menus,
  [class*="is-style-box-column-6-"][class*="-m3"] .box-menus {
    grid-template-columns: repeat(3, 1fr);
  }
