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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* 2026-12-03 トップページ追加調整（決定版） */
/* ※ 2026-12-04 リフレッシュ：診断用テストルール・重複ルールを整理。表示は変更なし。 */

/* 診断用アウトライン・赤帯テストの解除（リンクのフォーカス枠消しのため残す） */
html body.home #header, html body.home #main, html body.home #container, html body.home .article, html body.home .entry-content, html body.home .popular-entry-cards, html body.home a.popular-entry-card-link, html body.home .popular-entry-card { outline: none!important; }
html body.home .popular-entry-card-thumb { background: transparent!important; }
html body.home .popular-entry-card-content { background: transparent!important; }

/* ① ヘッダー直下の空白を詰める（※ #header・#container・#content・#main・.article・.entry-content・.entry-header は追加CSS「セクション1」に集約） */
html body.home .navi, html body.home #header-nav, html body.home .header-nav, html body.page-id-333 .navi, html body.page-id-333 #header-nav, html body.page-id-333 .header-nav { margin-top: 0!important; margin-bottom: 0!important; padding-top: 0!important; padding-bottom: 0!important; }
html body.home .entry-title, html body.home .page-title, html body.home .entry-meta, html body.home .entry-date, html body.home .post-date, html body.home .sns-share, html body.home .sns-share-buttons, html body.home .breadcrumb, html body.home .breadcrumb-wrap, html body.page-id-333 .entry-title, html body.page-id-333 .page-title, html body.page-id-333 .entry-meta, html body.page-id-333 .entry-date, html body.page-id-333 .post-date, html body.page-id-333 .sns-share, html body.page-id-333 .sns-share-buttons, html body.page-id-333 .breadcrumb, html body.page-id-333 .breadcrumb-wrap { display: none!important; height: 0!important; min-height: 0!important; margin: 0!important; padding: 0!important; }

/* ② ヒーロー（※ padding・margin は追加CSSのセクション4／strong overrides に集約） */
html body.home .home-hero h1, html body.page-id-333 .home-hero h1 { font-size: 22px!important; line-height: 1.4!important; margin: 0 0 6px!important; letter-spacing: 0!important; }
html body.home .home-hero p, html body.page-id-333 .home-hero p { margin: 0 0 10px!important; line-height: 1.5!important; }
html body.home .home-hero-btn, html body.page-id-333 .home-hero-btn { box-sizing: border-box!important; height: 45px!important; line-height: 45px!important; padding: 0 24px!important; border-radius: 8px!important; display: inline-flex!important; align-items: center!important; justify-content: center!important; }

/* ③ 全体の余白（※ .entry-content の左右padding と .home-sec-head のmargin は追加CSSに集約） */
html body.home .entry-content h2, html body.page-id-333 .entry-content h2 { font-size: 18px!important; line-height: 1.5!important; margin: 0 0 9px!important; }
html body.home .home-sec-head h2, html body.page-id-333 .home-sec-head h2 { margin: 0!important; }
html body.home .entry-content > .home-roadmap, html body.home .entry-content > .home-purpose, html body.home .entry-content > .home-worries-chips { margin-bottom: 18px!important; }

/* ④ ロードマップカード（※ img の max-height/object-fit と > div のpadding は追加CSSに集約） */
html body.home .home-roadmap h3, html body.page-id-333 .home-roadmap h3 { margin: 0 0 2px!important; }
html body.home .home-roadmap p, html body.page-id-333 .home-roadmap p { margin: 0!important; }

/* ⑤ 目的カード */
html body.home .home-purpose, html body.page-id-333 .home-purpose { gap: 7px!important; }
html body.home .home-purpose-card, html body.page-id-333 .home-purpose-card { box-sizing: border-box!important; height: 76px!important; min-height: 76px!important; padding: 8px 4px!important; gap: 2px!important; }
html body.home .home-purpose-icon svg, html body.page-id-333 .home-purpose-icon svg { width: 20px!important; height: 20px!important; }
html body.home .home-purpose-card span:not(.home-purpose-icon), html body.page-id-333 .home-purpose-card span:not(.home-purpose-icon) { line-height: 1.3!important; }

/* ⑥ お悩みチップ */
html body.home .home-worries-chips, html body.page-id-333 .home-worries-chips { display: grid!important; grid-template-columns: repeat(3, 1fr)!important; gap: 7px!important; }
html body.home .home-worries-chips a, html body.page-id-333 .home-worries-chips a { box-sizing: border-box!important; font-size: 11px!important; line-height: 1.3!important; min-height: 38px!important; height: 38px!important; padding: 4px 2px!important; letter-spacing: 0!important; }

/* ⑦ ランキング */
html body.home .popular-entry-card-thumb, html body.home .popular-entry-card.card-thumb { display: none!important; width: 0!important; height: 0!important; min-width: 0!important; min-height: 0!important; margin: 0!important; padding: 0!important; overflow: hidden!important; }
html body.home .popular-entry-card-thumb img { display: none!important; width: 0!important; height: 0!important; }
html body.home .entry-content .popular-entry-cards { gap: 0!important; margin: 0!important; padding: 0!important; }
html body.home .entry-content .popular-entry-cards > a, html body.home a.popular-entry-card-link { display: flex!important; align-items: center!important; gap: 11px!important; padding: 9px 0!important; border-bottom: 1px solid #eeeeee!important; min-height: 0!important; height: auto!important; margin: 0!important; text-decoration: none!important; }
html body.home .entry-content .popular-entry-cards > a.no-3 { border-bottom: none!important; margin-bottom: 18px!important; }
html body.home .entry-content .popular-entry-cards > a::before, html body.home a.popular-entry-card-link::before { position: static!important; top: auto!important; left: auto!important; transform: none!important; flex: 0 0 27px!important; width: 27px!important; height: 27px!important; min-width: 27px!important; min-height: 27px!important; margin: 0!important; }
html body.home .entry-content .popular-entry-cards > a > div, html body.home .popular-entry-card { display: flex!important; align-items: center!important; gap: 11px!important; flex: 1 1 auto!important; min-width: 0!important; width: auto!important; min-height: 0!important; height: auto!important; margin: 0!important; padding: 0!important; }
html body.home .popular-entry-card-content { flex: 1 1 auto!important; min-width: 0!important; margin: 0!important; padding: 0!important; }
html body.home .entry-content .popular-entry-cards .entry-card-title, html body.home .popular-entry-card-title { font-size: 14.5px!important; font-weight: 700!important; line-height: 1.45!important; margin: 0!important; padding: 0!important; text-align: left!important; }
html body.home .popular-entry-card-meta, html body.home .popular-entry-card-info, html body.home .popular-entry-card-date, html body.home .popular-entry-card-update-date { display: none!important; height: 0!important; margin: 0!important; padding: 0!important; }

/* --- スマホ（480px以下） --- */
@media (max-width: 480px) {
html body.home .home-hero-btn, html body.page-id-333 .home-hero-btn { min-width: 200px!important; }
html body.home .home-worries-chips, html body.page-id-333 .home-worries-chips { grid-template-columns: repeat(3, 1fr)!important; }
}
@media (max-width: 359px) {
html body.home .home-worries-chips, html body.page-id-333 .home-worries-chips { grid-template-columns: repeat(2, 1fr)!important; }
html body.home .home-worries-chips a, html body.page-id-333 .home-worries-chips a { font-size: 12px!important; }
}

/* ===== 残り分の詰め（margin相殺対策）===== */
/* （※ .entry-content > .home-hero の margin-top:0 は追加CSSに集約） */
html body.home #navi ul, html body.home #navi-in ul, html body.page-id-333 #navi ul { margin-bottom: 0!important; }
html body.home #navi .menu, html body.home #navi-in .menu, html body.page-id-333 #navi .menu { margin-bottom: 0!important; }

/* ===== ① ヘッダー直下の空白：原因特定・再修正 ===== */
/* 親テーマの .content { margin-top: 24px; } と .entry-content { margin-top: 1em; } が原因。詰め自体は追加CSS「セクション1」に集約（2026-12-04整理）。 */

/* ===== 診断7除去＋①最終対策（※ outline 除去は診断テスト自体を削除したため不要。残すのは機能ルールのみ） ===== */
html body.home #container .notice, html body.home #container .appeal, html body.home #container .recommended-cards, html body.home #container .carousel, html body.home #container #content-top, html body.home #container #breadcrumb { display: none!important; }
html body.home #main .pr-label, html body.home #main .small-pr-label { display: none!important; }

/* ===== 最終：余白の再確定（ファイル末尾・最優先）===== */
html body.home #container #header-container, html body.home #container #header, html body.home #container #navi, html body.home #container #navi-in { margin-bottom: 0!important; padding-bottom: 0!important; }
