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


/* ur-ds v2｜表・カードの共通デザイン */
/* 0) 色と線：既存の配色に合わせたトークン（teal＝.uk-clean／青系＝.tx/.wt/.su/.lr/.pr/.cc/.urk） */
.entry-content{--ur-accent:#245cb3;--ur-ink:#142b48;--ur-line:#e3ebf4;--ur-soft:#eff5fc}
.entry-content .uk-clean{--ur-accent:#087e8b;--ur-ink:#18313c;--ur-line:#dce8ea;--ur-soft:#f1f7f8}
/* 1) 表：Cocoon の @media(max-width:834px) table th,td 縮小（約10.4px）を打ち消す。
      ページ側で表の文字を決めている所は --ur-cell / --ur-cell-lh で値を渡す（無ければ 14px / 1.7） */
.entry-content th:not(#ur-a):not(#ur-b),.entry-content td:not(#ur-a):not(#ur-b){font-size:var(--ur-cell,14px)!important;line-height:var(--ur-cell-lh,1.7)!important}
.entry-content table{font-variant-numeric:tabular-nums}
.entry-content th{letter-spacing:.02em}
.entry-content caption{font-size:14px;line-height:1.6}
/* 2) カード：タイトル16px／ラベル(dt)14px・太字・アクセント色／値(dd)15px。数字は等幅で揃える */
.entry-content :is(.uk-cmp-title,.tx-cmp-title,.urk-cmp-title){font-size:16px;line-height:1.55;letter-spacing:.01em}
.entry-content :is(.uk-cmp-vals,.tx-cmp-vals,.urk-cmp-vals,.tx-kv,.wt-row) dt{font-size:14px;font-weight:700;line-height:1.55;letter-spacing:.03em;color:var(--ur-accent)}
.entry-content :is(.uk-cmp-vals,.tx-cmp-vals,.urk-cmp-vals,.tx-kv) dt{margin:0 0 4px}
.entry-content :is(.uk-cmp-vals,.tx-cmp-vals,.urk-cmp-vals,.tx-kv,.wt-row) dd{font-size:15px;line-height:1.8;font-variant-numeric:tabular-nums}
.entry-content :is(.uk-cmp-vals,.tx-cmp-vals,.urk-cmp-vals)>div{padding:12px 16px}
/* 3) カード内の最初の見出しは上余白なし（908 の .tx-card h3 など） */
#main .entry-content :is(.tx-card,.uk-cmp-item,.tx-cmp-item,.urk-cmp-item,.su-fix)>:is(h3,h4):first-child,
.entry-content :is(.tx-card,.uk-cmp-item,.tx-cmp-item,.urk-cmp-item,.su-fix)>:is(h3,h4):first-child{margin-top:0!important;padding-top:0!important;line-height:1.45}
/* 4) 小さい補助文字の下限：small は 13px 未満にしない（字間で小見出しらしさを保つ） */
.entry-content small{font-size:max(13px,.8125em)}
/* 5) figcaption：サイト側 13px!important に勝つ */
body.public-page .entry-content figcaption,
.entry-content figcaption{font-size:14px!important;line-height:1.65}

/* 6) WP .has-small-font-size（13px）を本文下限14pxに */
body.public-page .entry-content p.has-small-font-size,.entry-content p.has-small-font-size{font-size:14px!important;line-height:1.7}

/* 7) テーマ差し込みの下限（レイアウトは触らない。font-size / line-height のみ） */
/* 目次 .toc（.toc-title/.toc-content/.toc-list）は既存追加CSSで 15〜16px、affi 広告注記 .uraka-mf-ad>p / .uraka-freee-wiz-ad>p はインライン 13px のため規則なし（2026-11-05 本番計測） */
p.uraka-pr,.uraka-pr{font-size:13px!important;line-height:1.6!important}


/* ==========================================================================
   small_text_floor.css ― 小さい文字の下限（ur_ds_v2_final.css の続き／8〜）
   基準：本文・読める文章 ≥14px ／ ラベル・注記・eyebrow・クレジット・日付・
         パンくず・フッター・ウィジェット・TOC・広告表記・フォーム注記 ≥13px
   変更は font-size / line-height / letter-spacing / color / font-weight のみ。
   display・width・padding・margin は触らない（affi枠・ヘッダー・CF7 のレイアウト保護）。
   区別は「小ささ」ではなく 色・字重・字間 で残す。
   追加CSS（wp-custom-css）は子テーマより後に読まれるため、順序でなく詳細度で勝つ書き方にしている。
   ※ 2026-11-05 本番計測（headless Chrome 390/1280px）の 13px 未満を全件対象。
   ※ AIガイドの SVG 図版内 text は viewBox 縮小で描画 3〜12px。CSS で拡大すると図が崩れるため対象外（記事側で対応）。
   ========================================================================== */

/* 8) サイト共通：ヘッダー・モバイルメニュー ---------------------------------- */
/* 下部固定ボタン・上部ボタンのキャプション 9px → 13px（ボタン枠はそのまま、行高だけ詰める） */
html body .mobile-menu-buttons .menu-caption{font-size:13px!important;line-height:1.15!important;letter-spacing:0!important}
/* グローバルナビ 11〜12px → 13px */
html body #navi .navi-in>ul>li>a,html body.public-page #navi .menu-header>li>a{font-size:13px!important}
/* 390px：ヘッダーCTA「相談・お問い合わせ」は nowrap。13px 化で +18px 要るので、
   ロゴ文字の字間（0.96px）を 0 に、CTA の字間 −0.02em・左右余白 10→8px で吸収（ロゴ欠け防止） */
@media (max-width:480px){
  html body #header .logo-header .site-name-text{letter-spacing:0!important}
  html body.public-page #navi .menu-header>li>a{letter-spacing:-.02em!important;padding-left:8px!important;padding-right:8px!important}
}

/* 9) パンくず・メタ・カテゴリラベル ------------------------------------------- */
html body #breadcrumb,html body #breadcrumb .breadcrumb-caption{font-size:13px!important}
html body .cat-label{font-size:13px!important;line-height:1.4!important;letter-spacing:.02em}
html body .entry-categories .cat-link,html body .entry-tags .tag-link{font-size:13px!important}
/* 投稿タイトル上の eyebrow（header::before「現場の記録」等。既存 html body.public-page.single … 12px!important に勝つ） */
html body.single #main .article-header::before{font-size:13px!important;letter-spacing:.08em}
/* 記事一覧ページの日付 */
html body #main .entry-content .al-list time{font-size:13px!important;font-variant-numeric:tabular-nums}

/* 10) TOC・前後記事ナビ（em 比率は残して下限だけ付ける） ----------------------- */
html body .toc-title::after{font-size:max(13px,.8em)!important}
html body .pager-post-navi a{font-size:max(13px,.8em)}

/* 11) affi カード（カテゴリ一覧・関連記事）：枠はそのまま、文字だけ 13px -------- */
html body .ur-aff-thumb-label{font-size:13px!important;line-height:1.3!important;letter-spacing:.02em!important}
html body .ur-aff-read-hint{font-size:13px!important;line-height:1.4!important}

/* 12) サイドバー・ウィジェット ----------------------------------------------- */
html body .urk-side-panel .urk-side-links a small{font-size:13px!important;line-height:1.5!important}
html body .urk-side-panel .urk-side-cta{font-size:13px!important}

/* 13) フッター・広告表記・コピーライト ---------------------------------------- */
html body .ad-disclosure,html body .ad-disclosure a{font-size:13px!important;line-height:1.7!important}
html body #footer .copyright{font-size:13px!important}
html body p.uraka-amazon,html body p.uraka-amazon a{font-size:13px!important}

/* 14) ホーム（.ur-site）：eyebrow・クレジットは色と字間で副次的に、サイズは 13px ----
   既存 html body.public-page #main .ur-eyebrow{12px!important} に詳細度で勝つ */
html body #main .ur-site .ur-eyebrow,html body.public-page #main .ur-site .ur-eyebrow,
html body.public-page #main .ur-site .ur-eyebrow span{font-size:13px!important;letter-spacing:.06em}
html body.public-page #main .ur-site .ur-photo-credit,html body #main .ur-site .ur-photo-credit{font-size:13px!important;line-height:1.5!important;color:#5b6b7c;letter-spacing:.02em}
html body #main .ur-site .ur-quick-sub{font-size:13px!important;line-height:1.5!important}

/* 15) AIガイド（page_id=370 .aw-guide / .ah-guide）：ラベル・注記 → 13px ----------- */
html body #main .entry-content :is(.aw-eyebrow,.ar-kicker,#aw-ai-compare>.ac-kicker,.ah-step,.ax-label,.ae-prompt-label,.ar-app){font-size:13px!important;line-height:1.45!important}
html body #main .entry-content :is(.ax-request>small,.ac-card-head small,.am-list dt>small,.ae-card>small,.as-card>small,.ab-footer>small,.ad-new>small,.ar-step-link small,.ps-check small,.ps-name small){font-size:13px!important;line-height:1.5!important}
html body #main .entry-content :is(.aw-note,.aw-ad-note,.ac-note,.ac-asset-credit,.ac-asset-credit a,.ae-caption,.am-small,.ab-sub,.ah-form>.ah-small){font-size:13px!important;line-height:1.65!important}
html body #main .entry-content :is(.ad-source,:not(.aw-host)>.aw-source,.ah-source,.as-source,.ab-sources,.ae-links,.am-source),
html body #main .entry-content :is(.ad-source,:not(.aw-host)>.aw-source,.ah-source,.as-source,.ab-sources,.ae-links,.am-source) a{font-size:13px!important;line-height:1.7!important}
html body #main .entry-content :is(.ac-fact>b,.ac-use>b,.ae-deliverable>b){font-size:13px!important;letter-spacing:.04em}
html body #main .entry-content :is(.aw-flow-labels span,.aw-flow-labels b,.aw-example-caption span,.ad-image-notes span,.ae-number){font-size:13px!important;line-height:1.4!important}
/* ヒーローの流れラベル・eyebrow：13px 化で折り返すので字間で吸収（字重はそのまま） */
html body #main .entry-content .aw-flow-labels :is(span,b){letter-spacing:-.02em!important}
html body #main .entry-content .aw-hero .aw-eyebrow{letter-spacing:.03em!important}
@media (max-width:680px){
  html body #main .entry-content :is(.ah-role b,.ah-role span,.ah-photo-tips div,.ah-mini-pills span,.ah-map span,.ah-inline-flow span){font-size:13px!important;line-height:1.45!important}
}

/* 16) AIガイド：読む文章 → 14px ---------------------------------------------- */
html body #main .entry-content :is(.ax-tools,.ax-tools a,.aw-context,.ab-detail>p,.ab-detail>p b,.ab-detail>p a,.ac-fact,.ac-use,.ae-cost,.am-key span,.aw-role p,.aw-publish-flow span){font-size:14px!important;line-height:1.7!important}
html body #main .entry-content :is(summary[id^="am-"],summary[id^="ae-"])>span{font-size:14px!important;line-height:1.6!important}
@media (max-width:680px){
  html body #main .entry-content :is(.aw-tip,.aw-tip strong,.aw-copy-inner pre){font-size:14px!important;line-height:1.7!important}
}
@media (min-width:641px){
  html body #main .entry-content .ae-deliverable{font-size:14px!important;line-height:1.7!important}
}


/* ============================================================
   ur-card tag/note floor (pt99u)
   .ur-card__tag / .ur-card__note 12px -> 13px. layout untouched.
   ============================================================ */
html body #main .entry-content .ur-card__tag,
html body #main .entry-content .ur-card__note,
html body .ur-card__tag,
html body .ur-card__note{
  font-size:13px!important;
  line-height:1.5!important;
  letter-spacing:.02em;
}
