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

/* ----------------------------------------------------------
   トップページのスタイル
---------------------------------------------------------- */
/* トップページのヘッダー・フッター非表示 */
.front-top-page .article-header,
.front-top-page .article-footer {
  display: none;
}

/* セクションの余白 */
.section-wrap {
  padding-top: 5em;
  padding-bottom: 5em;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   見出しスタイル
---------------------------------------------------------- */
.heading {
  --heading-color: #7a7a72; /* メインカラー */
  text-align: center; /* 中央揃え */
  font-size: 3em; /* フォントサイズ */
  color: var(--heading-color); /* メイン色を適用 */
  letter-spacing: 2px; /* 字間調整 */
  line-height: 1.4; /* 行の高さ */
  font-weight: bold; /* 太字 */
  position: relative; /* ラインの起点 */
  padding-bottom: 1rem; /* ラインとの距離 */
  margin-bottom: 3rem; /* 下の要素との余白 */
}

@media screen and (max-width: 480px) {
  .heading {
    font-size: 3em; /* SP用フォントサイズ */
  }
}

/* サブ見出し */
.heading span {
  display: block; /* ブロック要素化 */
  font-size: 0.9rem; /* サイズ */
  font-weight: normal; /* 太字を解除 */
}

/* 見出し下のライン */
.heading::after {
  content: ""; /* 疑似要素 */
  position: absolute; /* 絶対配置 */
  bottom: 0; /* 下端に配置 */
  left: 50%; /* 左から50% */
  width: 2.5rem; /* ライン幅 */
  height: 1px; /* ラインの太さ */
  background-color: var(--heading-color); /* ラインの色 */
  transform: translateX(-50%); /* 中央寄せ */
}

/*--------------------------------------
  リンクボタン
---------------------------------------*/

/* ボタン配置コンテナ */
.link-btn {
  text-align: center;
  margin-block: 2em;
}

/* ボタン本体 */
.link-btn a {
  --btn-color: #7a7a72;

  position: relative;
  display: inline-block;
  min-width: 300px;
  padding: .7em 3em .7em 2em;
  border-radius: 2px;
  font-weight: bold;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--btn-color);
  border: 1px solid currentColor;
  background: none;
  transition: .3s ease;
}

/* 右矢印 */
.link-btn a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.2em;
  width: 1em;
  height: 3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-50%) translateX(0) skewX(45deg);
  transition: transform .3s ease;
}

/* hover */
.link-btn a:hover {
  color: #fff;
  background: var(--btn-color);
}

/* hover時の矢印移動 */
.link-btn a:hover::after {
  transform: translateY(-50%) translateX(4px) skewX(45deg);
}

/* スマホ */
@media (max-width: 480px) {
  .link-btn a {
    min-width: 100%;
  }
}

/* ----------------------------------------------------------
   記事カード
---------------------------------------------------------- */
/* グリッドレイアウト */
.widget-entry-cards.large-thumb {
  display: grid;
  justify-items: center;
  gap: 16px;
}

/* 新着記事 */
.new-entry-cards.large-thumb {
  grid-template-columns: repeat(3, 1fr); /* 3列 */
}

/* 人気記事 */
.popular-entry-cards.large-thumb {
  grid-template-columns: repeat(3, 1fr); /* 3列 */
}

/* モバイルレイアウト */
@media screen and (max-width: 834px) {
  .new-entry-cards.large-thumb {
    grid-template-columns: 1fr; /* 1列 */
    gap: 0;
  }

  .cate-area .new-entry-cards.large-thumb,
  .popular-entry-cards.large-thumb {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 0;
  }

  .cate-area .large-thumb .new-entry-card-title,
  .popular-entry-card-title {
    font-size: 14px !important;
  }
}

/* ----------------------------------------------------------
   タブ切り替え
---------------------------------------------------------- */
.tab-switch {
  --active-tab-color: #7a7a72; /* タブの色 */
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
  gap: 10px 5px;
}

/* タブボタン */
.tab-switch label {
  order: -1;
  position: relative;
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--active-tab-color);
  color: var(--active-tab-color);
  text-align: center;
  cursor: pointer;
  transition: 0.3s all;
}

/* ホバー・選択状態 */
.tab-switch label:hover,
.tab-switch label:has(:checked) {
  background-color: var(--active-tab-color);
  color: #fff;
}

/* 吹き出し */
.tab-switch label:has(:checked)::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 18px;
  height: 9px;
  background-color: var(--active-tab-color);
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ラジオボタン非表示 */
.tab-switch input {
  display: none;
}

/* タブ内容 */
.tab-content {
  display: none;
  width: 100%;
  padding: 1.5em 0;
}

/* チェック時に表示 */
.tab-switch label:has(:checked) + .tab-content {
  display: block;
}

/* トップページのスタイルここまで------ */


