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

/************************************
** ひとり暮らしのクリーニングノート
** 2026-08-09 デザイン適用
** 方針: 明朝の見出し＋罫線のインデックス。比較サイトの武器は
**       「実測の数字と出典」なので、読み物・資料の佇まいに寄せる。
**       配色はアイキャッチ画像と同一トークン。
************************************/

:root {
  --paper:  #F7F6F2;
  --ink:    #21303B;
  --sage:   #3E8E7E;
  --amber:  #E8A33D;
  --line:   #DEDCD4;
  --muted:  #7C858D;
  --serif:  "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans:   "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono:   Menlo, "SF Mono", Consolas, monospace;
}

/* ---- 土台 ---------------------------------------------------- */
body.body,
#container { background: var(--paper); color: var(--ink); }
.body, .content, .main, .sidebar { font-family: var(--sans); }
a { color: var(--sage); }
a:hover { color: #2C6B5D; }

/* ---- マストヘッド：中央寄せをやめて左に寄せる ------------------ */
.header-container, #header-container, .header { background: var(--paper); }
#header-container-in, .header-in { border-bottom: 1px solid var(--line); }
.header .logo-header,
.header .site-name-text {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .06em;
}
.header .tagline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
}
@media screen and (min-width: 835px) {
  .header .logo-header { text-align: left; }
  .header .tagline { text-align: left; }
  .header-in > .header { padding-left: 4px; }
}

/* ---- 記事一覧：カードの箱をやめ、罫線のインデックスにする ------- */
.entry-card-wrap.a-wrap {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 26px 4px 24px;
  margin: 0;
  background: transparent;
  transition: background-color .18s ease;
}
.entry-card-wrap.a-wrap:hover { background: rgba(62, 142, 126, .05); }
.entry-card-thumb img,
.card-thumb img { border-radius: 2px; }
.entry-card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: .01em;
}
.entry-card-snippet {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin-top: 8px;
}
.entry-card-meta .post-date,
.entry-card-meta .post-update {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.no-image, .no-post-date { opacity: .5; }

/* ---- 本文：読む幅と行間 ---------------------------------------- */
.article { font-size: 16.5px; line-height: 1.95; letter-spacing: .012em; }
.article p { margin: 0 0 1.5em; }
.entry-title, .article h1.entry-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: .01em;
  border: 0;
  padding: 0 0 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.article h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.6;
  color: var(--ink);
  background: none;
  border: 0;
  border-left: 4px solid var(--sage);
  padding: 2px 0 2px 16px;
  margin: 3em 0 1.1em;
}
.article h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 9px;
  margin: 2.4em 0 1em;
}
.article ul li, .article ol li { line-height: 1.9; margin-bottom: .5em; }
.article strong { font-weight: 800; }

/* 見出し直後の1段落目は結論。少しだけ強く。 */
.article h2 + p { color: var(--ink); }

/* ---- 表：比較サイトの主役なので一番手を入れる ------------------ */
.article .wp-block-table { margin: 2em 0; }
.article .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  line-height: 1.75;
  background: #FFF;
}
.article .wp-block-table th,
.article .wp-block-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}
.article .wp-block-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.article .wp-block-table tbody tr:nth-child(even) td { background: #FAF9F6; }
.article .wp-block-table tbody td:first-child { font-weight: 700; white-space: nowrap; }
.article .wp-block-table figcaption {
  font-size: 12.5px; color: var(--muted); margin-top: 8px;
}
/* 数字は等幅にして、桁を見比べられるようにする */
.article .wp-block-table td { font-feature-settings: "tnum"; }

/* ---- 図版 ------------------------------------------------------ */
.article .wp-block-image { margin: 2.2em 0; }
.article .wp-block-image img { border: 1px solid var(--line); border-radius: 2px; }
.article .wp-block-image figcaption {
  font-size: 12.5px; color: var(--muted); text-align: left; margin-top: 10px;
  padding-left: 12px; border-left: 2px solid var(--line);
}

/* ---- signature: 確認日スタンプ ---------------------------------
   比較記事でいちばん価値のある情報は「いつ時点の条件か」。
   それを意匠にする。荷札のイメージ。 */
.fact-stamp {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line);
  background: #FFF;
  margin: 0 0 2em;
  font-size: 12.5px;
  letter-spacing: .04em;
}
.fact-stamp span {
  padding: 9px 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.fact-stamp span:last-child { border-right: 0; }
.fact-stamp span b {
  font-family: var(--mono); font-weight: 700; color: var(--ink);
  margin-left: 7px; letter-spacing: 0;
}
.fact-stamp .k {
  background: var(--ink); color: var(--paper); font-weight: 700; letter-spacing: .12em;
}

/* ---- PR表記：読者が最初に読む文にしない ------------------------ */
.pr-note {
  font-size: 12.5px;
  color: var(--muted);
  background: #FFF;
  border: 1px dashed var(--line);
  padding: 10px 14px;
  margin: 0 0 1.8em;
  line-height: 1.7;
}

/* ---- 記事内リンク・ASP導線 ------------------------------------- */
.article a[rel~="nofollow"] {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 1px;
}
.article a[rel~="nofollow"]:after { content: " ↗"; font-size: .85em; color: var(--muted); }

/* ---- サイドバー ------------------------------------------------ */
/* ブロックウィジェットの見出しは h2.wp-block-heading で出る */
.sidebar h2.wp-block-heading,
.sidebar h3, .sidebar .widget-sidebar-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--muted);
  background: none !important;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 9px;
  margin-bottom: 14px;
}
.sidebar li { line-height: 1.75; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--sage); }

/* ---- フッター -------------------------------------------------- */
.footer { background: var(--ink); color: #C6CBD0; border: 0; }
.footer a { color: #C6CBD0; }
.footer a:hover { color: #FFF; }
.navi-footer-in a { letter-spacing: .06em; }

/* ---- 目次 ------------------------------------------------------ */
.toc { background: #FFF; border: 1px solid var(--line); border-radius: 0; }
.toc-title { font-family: var(--sans); font-weight: 800; letter-spacing: .1em; font-size: 13px; color: var(--muted); }

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .article { font-size: 16px; line-height: 1.9; }
  .entry-title, .article h1.entry-title { font-size: 25px; }
  .article h2 { font-size: 20px; margin-top: 2.4em; }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .entry-card-title { font-size: 18px; }
  /* 表は潰さず、横スクロールで読ませる */
  .article .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article .wp-block-table table { min-width: 620px; }
  .fact-stamp { font-size: 12px; }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .article { font-size: 15.5px; }
  .entry-title, .article h1.entry-title { font-size: 22px; }
  .article h2 { font-size: 18.5px; padding-left: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-card-wrap.a-wrap { transition: none; }
}

/* ---- SNSシェア：ブランドカラーの主張が強すぎるので静かにする ---- */
.sns-share.ss-high-and-low-lc,
.sns-share { margin: 2.4em 0 1.6em; }
.sns-share-message { display: none; }
.sns-share .snsb,
.sns-share a.sns-button {
  background: #FFF !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 12px;
  letter-spacing: .06em;
  transition: color .18s ease, border-color .18s ease;
}
.sns-share a.sns-button:hover {
  color: var(--sage) !important;
  border-color: var(--sage) !important;
}
.sns-share .button-caption { font-size: 11px; }
/* 記事下のフォローボタンも同様に */
.sns-follow a.sns-button {
  background: #FFF !important; color: var(--muted) !important;
  border: 1px solid var(--line) !important; border-radius: 0 !important;
}

/* ---- カテゴリ表示 ---------------------------------------------- */
.entry-categories-tags .cat-link,
.entry-categories .cat-link {
  background: #FFF; color: var(--sage);
  border: 1px solid var(--sage); border-radius: 0;
  font-size: 11.5px; letter-spacing: .1em; font-weight: 700;
  padding: 4px 10px;
}
