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

/* 2026-03-20 「男の設計書」*/

/* ==========================================================
   男の設計書 | トップページ スタイル
   管理ファイル: Cocoon > 追加CSS
   最終更新: 2026
   --------------------------------------------------------
   構成:
   1. トップページ — ヘッダー・フッター非表示
   2. セクション共通
   3. 見出し
   4. リンクボタン
   5. 記事カード
   6. タブ切り替え
   7. モバイル最適化
========================================================== */


/* ----------------------------------------------------------
   トップページのスタイル
---------------------------------------------------------- */
/* トップページのヘッダー・フッター非表示 */
.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;
}

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



/* ==========================================================
   男の設計書 | スタイルシート
   管理ファイル: Cocoon > 追加CSS
   最終更新: 2026
   --------------------------------------------------------
   構成:
   1. 共通変数（カラー管理）
   2. トップページ — ヘッダー・フッター非表示
   3. 見出し — Cocoonリセット・カスタムデザイン
   4. リンクボタン
   5. サイドバー — プロフィールウィジェット
   6. ウィジェット見出し
   7. 画像ズーム
   8. モバイル最適化（768px以下）
========================================================== */


/* ----------------------------------------------------------
   1. 共通変数（カラー管理）
---------------------------------------------------------- */

:root {
  --color-text-main:    #333;
  --color-text-sub:     #666;
  --color-text-light:   #aaa;
  --color-border:       #ccc;
  --color-border-strong:#333;
  --color-border-light: #eee;
  --color-accent:       #a5c9c1;
  --color-hover-bg:     #f5f5f5;
}


/* ----------------------------------------------------------
   2. トップページ — ヘッダー・フッター非表示
---------------------------------------------------------- */

.front-top-page .article-header,
.front-top-page .article-footer {
  display: none;
}


/* ----------------------------------------------------------
   3. 見出し — Cocoonデザインリセット（h2〜h6共通）
---------------------------------------------------------- */

.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}


/* ----------------------------------------------------------
   3-a. 見出し — h2カスタムデザイン（下線 + アクセント）
---------------------------------------------------------- */

.article h2 {
  position: relative;
  margin-left: 0;
  padding: 0 0 2px;
  line-height: 1.3;
  color: var(--color-text-main);
  border-bottom: 3px solid var(--color-border-light);
}

.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 30%;
  border-bottom: 3px solid var(--color-accent);
}


/* ----------------------------------------------------------
   3-b. 見出し — h3カスタムデザイン（ストライプ下線）
---------------------------------------------------------- */

.article h3 {
  --stripe-color: #b2aba1;

  position: relative;
  padding: 0 0 6px;
  color: var(--color-text-main);
  line-height: 1.4;
}

.article h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    135deg,
    transparent 25%,
    var(--stripe-color) 25%,
    var(--stripe-color) 50%,
    transparent 50%,
    transparent 75%,
    var(--stripe-color) 75%,
    var(--stripe-color)
  );
  background-size: 4px 4px;
}



/* ----------------------------------------------------------
   4-a. リンクボタン — サイトマップ用（モディファイア）
---------------------------------------------------------- */

.link-btn--sitemap a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 24px;
  text-align: center;
  border: 1px solid var(--color-border-strong);
}


/* ----------------------------------------------------------
   5. サイドバー — プロフィールウィジェット
---------------------------------------------------------- */

.widget-profile {
  padding: 0;
}

.profile-img-wrap {
  margin-bottom: 14px;
  text-align: center;
}

.profile-img {
  width: 88px;
  height: 88px;      /* モバイルの img { height: auto } に上書きされないよう後述で再指定 */
  object-fit: cover;
  border-radius: 50%;
}

.profile-name {
  margin-bottom: 5px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

.profile-sub {
  margin-bottom: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
}

.profile-bio {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

.profile-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-sub);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.profile-link:hover {
  background: var(--color-hover-bg);
}


/* ----------------------------------------------------------
   6. ウィジェット見出し
---------------------------------------------------------- */

.widget-heading {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.heading-en {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.heading-dots {
  font-size: 13px;
  color: var(--color-text-light);
}


/* ----------------------------------------------------------
   7. 画像ズーム
---------------------------------------------------------- */

.img-zoom {
  position: relative;
}

.img-zoom img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-zoom:hover img {
  transform: scale(1.5);
  z-index: 10;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* ----------------------------------------------------------
   8. モバイル最適化（768px以下）
---------------------------------------------------------- */

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

  .content,
  .main,
  .entry-content {
    padding: 0 16px;
  }

  .article h2 {
    font-size: 20px;
  }

  .article h3 {
    font-size: 18px;
  }

  p {
    font-size: 16px;
    line-height: 1.8;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  /* .profile-img は円形固定のため height: auto を上書きして保護 */
  .profile-img {
    width: 88px;
    height: 88px;
  }

  .link-btn a,
  .profile-link {
    padding: 14px 0;
    font-size: 14px;
  }

