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

/* フェーズ3 (2026-11-11) コントラスト・タップ領域のテコ入れ */
/* 白 #fff on #007a82 = 5.11:1 (WCAG AA 4.5:1 合格)。#009ba4 に白文字では 3.37:1 しか出ないため、背景側をキーカラーの濃色 #007a82 にした。元の組み合わせ #007a82 on #009ba4 は 1.52:1 で不合格だった。 */
.article h2 {
  background-color: #007a82 !important;
  color: #ffffff !important;
}
.article h2 a {
  color: #ffffff !important;
}
#footer {
  background-color: #007a82 !important;
  color: #ffffff !important;
}
#footer a,
#footer .copyright,
.footer-bottom a,
.menu-footer a {
  color: #ffffff !important;
}
.menu-footer a {
  display: inline-block;
  padding: 12px 10px;
}
.widget-title {
  background-color: #007a82 !important;
  color: #ffffff !important;
}
.cat-link {
  background-color: #007a82 !important;
  color: #ffffff !important;
}
.item-description,
.breadcrumb-caption {
  color: #595959 !important;
}
.toc a,
.toc-list a {
  display: inline-block;
  padding: 10px 6px;
}

/* ===== ツールミル デザイン型（2026-11-18 デザイン実装パック） ===== */
.tm-conclusion { background: #E6F4F5; border-left: 5px solid #007A82; border-radius: 6px; padding: 18px 20px; margin: 1.2em 0 1.6em; color: #333333; }
.tm-conclusion-label { display: inline-block; background: #007A82; color: #FFFFFF; font-weight: 700; font-size: 15px; line-height: 1.5; padding: 3px 14px; border-radius: 999px; margin: 0 0 10px; }
.tm-conclusion ul { margin: 0; padding-left: 1.3em; }
.tm-conclusion li { margin: 0.35em 0; line-height: 1.8; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.8em 0 1.2em; }
.tm-chip { display: inline-block; border: 1.5px solid #007A82; color: #005F66; background: #FFFFFF; font-size: 15px; line-height: 1.5; padding: 5px 12px; border-radius: 999px; }
.tm-pr-note { font-size: 14px; line-height: 1.6; color: #333333; border-left: 3px solid #007A82; padding-left: 10px; margin: 0.6em 0 1em; }
.tm-pr-head { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 1em; font-size: 15px; line-height: 1.6; color: #333333; }
.tm-pr-badge { background: #007A82; color: #FFFFFF; font-weight: 700; font-size: 13px; line-height: 1.5; padding: 2px 10px; border-radius: 4px; white-space: nowrap; }
.tm-table-caption { font-size: 14px; line-height: 1.6; color: #005F66; margin: 0 0 6px; }
tr.tm-recommend td { background: #E6F4F5; }
.tm-rec-label { display: inline-block; background: #007A82; color: #FFFFFF; font-size: 13px; font-weight: 700; line-height: 1.5; padding: 2px 9px; border-radius: 4px; margin-right: 6px; white-space: nowrap; }
.tm-table-wrap { position: relative; }
.tm-table-wrap::after { content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 100%; pointer-events: none; background: linear-gradient(to right, rgba(255,255,255,0), rgba(0,122,130,0.14)); }
.tm-glance { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 1em 0 1.6em; }
.tm-glance-item { border: 1.5px solid #C7E0E2; border-radius: 8px; padding: 12px 14px; background: #FFFFFF; }
.tm-glance-item.tm-glance-price { background: #E6F4F5; border-color: #007A82; }
.tm-glance-head { display: block; font-size: 14px; font-weight: 700; line-height: 1.5; color: #005F66; margin-bottom: 4px; }
.tm-glance-body { display: block; font-size: 1.12em; font-weight: 700; line-height: 1.5; color: #333333; }
.tm-glance-note { display: block; font-size: 14px; line-height: 1.6; color: #333333; margin-top: 4px; }
@media (max-width: 640px) { .tm-glance { grid-template-columns: 1fr; } }
.tm-figure-caption { font-size: 14px; line-height: 1.6; color: #555555; margin: 8px 0 1.2em; }
.tm-lead { font-weight: 700; line-height: 1.8; margin: 0 0 1em; }
.tm-article-end { border: 1.5px solid #C7E0E2; border-radius: 8px; padding: 16px 20px; margin: 2em 0 1.6em; }
.tm-end-head { font-weight: 700; color: #005F66; margin: 0 0 8px; line-height: 1.6; }
.tm-checklist { list-style: none; margin: 0; padding: 0; }
.tm-checklist li { line-height: 1.8; margin: 0.3em 0; }
.tm-cta { text-align: center; margin: 1.8em 0; }
.tm-cta-button { display: inline-block; background: #007A82; color: #FFFFFF !important; font-weight: 700; line-height: 1.5; text-decoration: none !important; padding: 15px 34px; min-height: 52px; border-radius: 8px; }
.tm-cta-note { font-size: 14px; line-height: 1.6; color: #333333; margin: 8px 0 0; }
/* サイドバーウィジェット見出しのコントラスト修正（2026-11-18） */
.sidebar .widget-title,
.sidebar .widget h2 {
	  background-color: #007A82 !important;  color: #FFFFFF !important;
	
}

/* ==== 表の横スクロール修正 (2026-11-18) ==== */
/* 原因: (1) Cocoonの .scrollable-table は overflow-x:auto だが、iOS Safari 向けの -webkit-overflow-scrolling / touch-action の指定がなく、タッチでの横スクロールがページ全体の横ずれに奪われやすかった。(2) 1列目 sticky のセルが white-space:nowrap のためモバイル幅で約168px(表示幅の約6割)を占め、右列が固定列の陰に隠れた。(3) scroll-hint の暗いアイコン(120x90px)が表の中央を覆い、消えるまで1列目が読めなかった。 */
/* 既存の指定は変更せず、末尾に追記する。 */
@media screen and (max-width: 834px) {
  .article .scrollable-table,
  .entry-content .scrollable-table {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }
  .article .scrollable-table table,
  .entry-content .scrollable-table table {
    width: max-content !important;
    min-width: 100%;
  }
  .article .scrollable-table.stfc-sticky table tr > :first-child,
  .entry-content .scrollable-table.stfc-sticky table tr > :first-child {
    max-width: 132px !important;
    min-width: 88px;
    white-space: normal !important;
    word-break: break-word;
  }
  .article .scrollable-table .tm-rec-label,
  .entry-content .scrollable-table .tm-rec-label {
    white-space: normal;
  }
  .article .scrollable-table .scroll-hint-icon-wrap,
  .entry-content .scrollable-table .scroll-hint-icon-wrap {
    display: none !important;
  }
}