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




/* ============================================================
   SATO SELECT ─ カスタムCSS（統合版 v3 / 2026-11-12）

   これ1本で完結します。
   前の satoselect.css は削除して、これに置き換えてください。

   貼り付け先:
     外観 → テーマファイルエディター → cocoon-child-master/style.css
     （または 外観 → カスタマイズ → 追加CSS）
   ※置き換える前に現在の style.css のバックアップを取ってください

   v3の変更点:
     ・記事下の著者プロフィールを整えた（12章）
     ・重複していたフォローボタンを1か所に整理（12章）

   ── 目次 ─────────────────────────────
   0. 調整用の値
   1. フォント
   2. レイアウト（本文幅・左右の余白）
   3. サイト名（ヘッダー）
   4. アイキャッチ
   5. 本文タイポグラフィ・記事タイトル
   6. 見出し
   7. 目次
   8. 商品画像・商品リンク
   9. 早見表（テーブル）
  10.【PR】表記
  11. SNSシェアボタン
  12. 著者プロフィール（記事下）
  13. サイドバー（復活させたとき用・いまは効きません）
  14. スマホ調整
   ────────────────────────────────── */


/* ============================================================
   0. 調整用の値
   ============================================================ */
:root {
  --ss-main:    840px;   /* 本文カラムの最大幅。広くしたいなら 900〜960 */
  --ss-logo:    30px;    /* サイト名の大きさ */
  --ss-title:   24px;    /* 記事タイトルの大きさ */
  --ss-avatar:  76px;    /* プロフィール画像の大きさ */
  --ss-accent:  #c8a96b; /* 見出しのアクセント色 */
  --ss-text:    #2d3138; /* 本文の文字色 */

  /* 0-B. 本文フォント
     メイリオはWindows専用です。Mac・iPhoneには入っていないので
     そこでは次の候補（ヒラギノ）が使われます。
     全端末でそろえたい場合は、ファイル末尾の付記を参照。     */
  --ss-font: "Meiryo", "メイリオ",
             "Hiragino Kaku Gothic ProN", "Hiragino Sans",
             "Yu Gothic", "YuGothic", sans-serif;
}


/* ============================================================
   1. フォント
   ============================================================ */
body[class] {
  font-family: var(--ss-font);
}
.entry-content,
input, button, select, textarea {
  font-family: inherit;
}

/* サイト名だけ明朝のまま残しています。
   本文と同じにしたいときは次の2行のコメントを外す */
/*
.site-name-text { font-family: var(--ss-font) !important; }
*/


/* ============================================================
   2. レイアウト ─ 本文幅と左右の余白
   ============================================================ */
#main,
.main {
  max-width: var(--ss-main);
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  box-shadow: none;
}

#content,
#content-in { background: #fff; }

body.public-page { background: #fff; }

.article { padding: 0 4px; }


/* ============================================================
   3. サイト名（ヘッダー）
   ============================================================ */
.logo-header { padding: 8px 0; }

.logo-header a,
.site-name,
.site-name-text-link {
  color: #1c1f24;
  text-decoration: none;
}
.logo-header .site-name-text,
.site-name-text {
  font-size: var(--ss-logo);
  font-weight: 400;
  letter-spacing: .22em;
  color: #1c1f24;
}


/* ============================================================
   4. アイキャッチ
   ============================================================ */
.eye-catch { margin: 0 auto 1.8em; }
.eye-catch img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}


/* ============================================================
   5. 本文タイポグラフィ・記事タイトル
   ============================================================ */
.entry-content {
  font-size: 17px;
  line-height: 2.0;
  letter-spacing: 0.02em;
  color: var(--ss-text);
}

.entry-content p { margin: 1.6em 0; }

/* 強調は黄色マーカー（【PR】は 10章 で除外） */
.entry-content strong {
  font-weight: 600;
  background: linear-gradient(transparent 62%, #ffe9a8 62%);
}

.entry-title,
.article h1.entry-title {
  font-size: var(--ss-title);
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: #22262c;
}


/* ============================================================
   6. 見出し
   ============================================================ */
.entry-content h2 {
  background: none !important;
  border: none !important;
  border-bottom: 1px solid #dfe3e8 !important;
  padding: 0 0 .5em 0 !important;
  margin: 3.2em 0 1.4em !important;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1c1f24;
}

.entry-content h3 {
  background: none !important;
  border: none !important;
  border-left: 3px solid var(--ss-accent) !important;
  padding: 0 0 0 .7em !important;
  margin: 2.6em 0 1.1em !important;
  font-size: 19px;
  font-weight: 600;
  color: #22262c;
}


/* ============================================================
   7. 目次
   ============================================================ */
.toc {
  width: 100%;
  background: #fafbfc;
  border: none;
  border-left: 2px solid #e3e6ea;
  border-radius: 0;
  padding: 1.4em 1.6em;
  font-size: 15px;
}
.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .08em;
  text-align: left;
}
.toc-list { line-height: 1.9; }
.toc a { color: #3f4650; text-decoration: none; }
.toc a:hover { text-decoration: underline; }


/* ============================================================
   8. 商品画像・商品リンク
   ============================================================ */
.entry-content a img {
  max-width: 280px;
  height: auto;
  display: block;
  margin: 1.6em auto .6em;
  padding: 6px;
  border: 1px solid #ebeef2;
  border-radius: 6px;
  background: #fff;
}

.entry-content a[href*="rakuten"] {
  color: #3f4650;
  text-decoration: none;
  border-bottom: 1px solid var(--ss-accent);
  padding-bottom: 1px;
}
.entry-content a[href*="rakuten"]:hover {
  color: #1c1f24;
  border-bottom-color: #1c1f24;
}


/* ============================================================
   9. 早見表（テーブル）
   ============================================================ */
.entry-content table {
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
  border: none;
}
.entry-content table th {
  background: #f7f8fa;
  color: #4b5260;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  border: none;
  border-bottom: 2px solid #dfe3e8;
  padding: .8em .9em;
  text-align: left;
}
.entry-content table td {
  border: none;
  border-bottom: 1px solid #edf0f3;
  padding: .9em;
  vertical-align: top;
}
.entry-content table tr:hover td { background: #fcfcfd; }


/* ============================================================
   10.【PR】表記
   表記は消さない（ステマ規制で必須）。黒太字の圧だけ下げる
   ============================================================ */
.entry-content > p:first-child {
  display: inline-block;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7a818c;
  background: #f5f6f8;
  border: 1px solid #e8ebef;
  border-radius: 4px;
  padding: .45em .8em;
  margin: 0 0 2.2em;
}
.entry-content > p:first-child strong {
  background: none;
  font-weight: 600;
  color: #6b7280;
}


/* ============================================================
   11. SNSシェアボタン
   ============================================================ */
.sns-share.ss-top,
.sns-share-message.ss-top { display: none; }

.sns-share.ss-bottom .sns-buttons a {
  background: #fff !important;
  color: #8a8f98 !important;
  border: 1px solid #e3e6ea;
  box-shadow: none;
}
.sns-share.ss-bottom .sns-buttons a:hover {
  color: #333 !important;
  border-color: #c9ced6;
}


/* ============================================================
   12. 著者プロフィール（記事下）
   Cocoonの [C] 著者紹介ウィジェットを、読み物の署名欄として整える
   ============================================================ */
.widget_author_box {
  margin: 3.6em 0 2.4em;
  padding: 0;
  background: none;
  border: none;
}

/* 見出しラベル。ウィジェットのタイトル欄は空のまま使ってください
   （タイトルを入れると二重に出ます）                        */
.widget_author_box::before {
  content: "この記事を書いた人";
  display: block;
  font-size: 11.5px;
  letter-spacing: .14em;
  font-weight: 600;
  color: #9aa0a8;
  margin-bottom: 1em;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: none !important;
  border: none !important;
  border-top: 1px solid #e8ebef !important;
  border-bottom: 1px solid #e8ebef !important;
  border-radius: 0 !important;
  padding: 1.7em 0 !important;
  box-shadow: none !important;
}

/* プロフィール画像を丸く */
.author-box .author-thumb {
  flex: 0 0 auto;
  width: var(--ss-avatar);
  margin: 0;
  padding: 0;
  float: none;
}
.author-box .author-thumb img {
  width: var(--ss-avatar);
  height: var(--ss-avatar);
  border-radius: 50%;
  object-fit: cover;      /* 縦横比を保ったまま中央で切り抜く */
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.author-box .author-content {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.author-box .author-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 .55em;
}
.author-box .author-name a {
  color: #1c1f24;
  text-decoration: none;
  border: none;
}
.author-box .author-name a:hover { text-decoration: underline; }

.author-box .author-description {
  font-size: 14.5px;
  line-height: 1.9;
  color: #5a616b;
}
.author-box .author-description p { margin: 0; }

/* フォローボタン（著者サイト/feedly/RSS）は記事内に2か所
   出ていたので、どちらも非表示にしています。
   ※Cocoon設定 → SNSフォローボタン からも消せます          */
.author-box .profile-follows,
.sns-follow.sf-bottom {
  display: none;
}


/* ============================================================
   13. サイドバー
   いまは1カラムなので効きません。
   将来サイドバーを戻したときのために残してあります
   ============================================================ */
#sidebar .widget {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 2.6em;
}
#sidebar .widget h2,
#sidebar .widget h2.wp-block-heading,
#sidebar .widget-sidebar-title {
  background: none !important;
  border: none !important;
  border-bottom: 1px solid #e8ebef !important;
  border-radius: 0 !important;
  color: #8a8f98 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: .12em;
  padding: 0 0 .5em !important;
  margin: 0 0 1em !important;
  text-align: left !important;
}
#sidebar .widget a { color: #3f4650; text-decoration: none; }
#sidebar .widget a:hover { text-decoration: underline; }
#sidebar .widget li { line-height: 1.8; font-size: 14px; }

#sidebar .wp-block-search__input {
  border: 1px solid #e3e6ea;
  border-radius: 4px;
  padding: .55em .7em;
}
#sidebar .wp-block-search__button {
  background: #3f4650;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .55em 1.1em;
  font-size: 14px;
}


/* ============================================================
   14. スマホ調整
   ============================================================ */
@media screen and (max-width: 834px) {
  .logo-header .site-name-text,
  .site-name-text { font-size: 24px; }

  .entry-title,
  .article h1.entry-title { font-size: 20px; }

  .entry-content {
    font-size: 16px;
    line-height: 1.95;
  }

  .entry-content h2 { font-size: 20px; margin-top: 2.6em !important; }
  .entry-content h3 { font-size: 17.5px; }

  .entry-content a img { max-width: 100%; }

  /* プロフィールは少し詰める */
  .author-box { gap: 14px; padding: 1.4em 0 !important; }
  .author-box .author-thumb,
  .author-box .author-thumb img { width: 64px; }
  .author-box .author-thumb img { height: 64px; }
  .author-box .author-description { font-size: 14px; line-height: 1.85; }

  /* 早見表が右端で切れて見えるので、横スクロールできることを示す */
  .entry-content figure.wp-block-table,
  .entry-content .scroll-table,
  .entry-content .scrollable-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 40px 100% no-repeat,
      linear-gradient(to left,  #fff 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat;
  }
  .entry-content table { font-size: 14px; min-width: 560px; }
}


/* ============================================================
   付記：Webフォントで全端末の見え方をそろえたい場合

   このファイルのいちばん上（:root より前）に次の1行を置き、

     @import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600&display=swap");

   0章の --ss-font を次のように書き換えてください。

     --ss-font: "Noto Sans JP", sans-serif;

   読み込みが増えるぶん表示が重くなるので、必要になってからで十分です。
   ============================================================ */