@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
*/

/* ==========================================================================
   ai-kansya.com カスタムスタイル
   方針: Cocoon独自ブロックに依存せず、汎用クラス + CSS変数で構成する。
         将来テーマを移行しても記事本文が壊れにくいようにするため。
   ========================================================================== */

/* --------------------------------------------------
   0. デザイントークン（色を変えたいときはここだけ触る）
   -------------------------------------------------- */
:root{
  --ink:       #1b2733;
  --ink-sub:   #5d6b7a;
  --line:      #e4e9f0;
  --bg:        #ffffff;
  --bg-soft:   #f5f7fa;
  --accent:    #1e6fd9;
  --accent-dk: #11498f;
  --accent-bg: #eaf2fd;
  --cta:       #f2660a;
  /* ヘッダー背景（青×ティールの光） */
  --hdr-blue:  #a5cdf4;
  --hdr-teal:  #a8e6da;
  --hdr-base:  #f4fbfa;
  --cta-dk:    #cf5100;
  --radius:    10px;
  --shadow:    0 1px 2px rgba(27,39,51,.06), 0 8px 24px rgba(27,39,51,.06);
}

/* --------------------------------------------------
   1. ベース
   -------------------------------------------------- */
body{
  color: var(--ink);
  background: var(--bg-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
#content, .content{ margin-top: 1.4em; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-dk); text-decoration: underline; }
.main, .sidebar{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.main{ padding: 2.2em 2em; }
.sidebar{ padding: 1.6em 1.4em; }

/* --------------------------------------------------
   2. ヘッダー / ナビ
   -------------------------------------------------- */
#header-container, .header-container{
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-in{ padding: .6em 0; }
.logo-header, .logo{ margin: 0; }
.site-name-text{
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.tagline{
  color: var(--ink-sub);
  font-size: .8em;
  letter-spacing: .04em;
  margin-top: .2em;
}
#navi, .navi{
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
#navi .navi-in > ul > li > a{
  color: var(--ink);
  font-weight: 600;
  font-size: .92em;
  height: auto;
  line-height: 1.4;
  padding: 1.05em .9em;
  transition: color .15s, box-shadow .15s;
}
#navi .navi-in > ul > li > a:hover{
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
  text-decoration: none;
}
#breadcrumb, .breadcrumb{
  font-size: .78em;
  color: var(--ink-sub);
  padding: 0 0 .4em;
}

/* --------------------------------------------------
   3. 記事一覧カード
   -------------------------------------------------- */
.entry-card-wrap{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1em;
  margin-bottom: 1.1em;
  background: var(--bg);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.entry-card-wrap:hover{
  transform: translateY(-2px);
  border-color: #cbd7e6;
  box-shadow: var(--shadow);
  background: var(--bg);
}
.entry-card-thumb img{ border-radius: 6px; }
.entry-card-title{
  font-size: 1.06em;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: .45em;
}
.entry-card-wrap:hover .entry-card-title{ color: var(--accent); }
.entry-card-snippet{ color: var(--ink-sub); font-size: .88em; line-height: 1.8; }
.entry-card-meta, .entry-card-info{ font-size: .78em; color: var(--ink-sub); }
.cat-label{
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  font-size: .72em;
  letter-spacing: .04em;
  padding: .2em .6em;
}

/* --------------------------------------------------
   4. 記事タイトル・見出し
   -------------------------------------------------- */
.entry-title, .article h1{
  font-size: 1.62em;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 .5em;
  padding: 0;
  border: 0;
}
.date-tags{ font-size: .8em; color: var(--ink-sub); margin-bottom: 1.6em; }
.entry-content h2{
  position: relative;
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-soft);
  border: 0;
  border-left: 5px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: .75em .9em;
  margin: 2.8em 0 1.2em;
}
.entry-content h3{
  font-size: 1.14em;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  background: none;
  border: 0;
  border-left: 4px solid var(--accent);
  padding: .1em 0 .1em .7em;
  margin: 2.2em 0 .9em;
}
.entry-content h4{
  font-size: 1.04em;
  font-weight: 700;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 .4em;
  margin: 1.9em 0 .8em;
}
.entry-content p{ margin: 0 0 1.5em; }
.entry-content strong{ font-weight: 700; }

/* 文中マーカー: <span class="mk">…</span> */
.mk{ background: linear-gradient(transparent 62%, #ffe08a 62%); font-weight: 600; }

/* --------------------------------------------------
   5. 目次
   -------------------------------------------------- */
.toc{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 1.3em 1.5em;
  margin: 2em 0;
  width: 100%;
  font-size: .94em;
}
.toc-title{
  font-weight: 700;
  font-size: 1em;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
  padding-bottom: .6em;
  margin-bottom: .8em;
  text-align: left;
}
.toc-content a{ color: var(--ink); text-decoration: none; }
.toc-content a:hover{ color: var(--accent); text-decoration: underline; }
.toc-list > li{ margin-bottom: .45em; }

/* --------------------------------------------------
   6. 比較表  <div class="cmp"><table>…</table></div>
      ・スマホは横スクロール
      ・1列目（ツール名）を左に固定
      ・推し行は <tr class="pick">
   -------------------------------------------------- */
.cmp{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0 .6em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.cmp table{
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 620px;
  margin: 0;
  font-size: .9em;
  line-height: 1.7;
}
.cmp th, .cmp td{
  padding: .8em .9em;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  background: var(--bg);
}
.cmp thead th{
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .03em;
}
.cmp tbody th{
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 1px 0 0 var(--line);
}
.cmp thead th:first-child{ position: sticky; left: 0; z-index: 3; }
.cmp tr:last-child th, .cmp tr:last-child td{ border-bottom: 0; }
.cmp th:last-child, .cmp td:last-child{ border-right: 0; }
.cmp tbody tr:hover td{ background: #fafcff; }
.cmp tr.pick th, .cmp tr.pick td{ background: var(--accent-bg); }
.cmp .o{ color: #1e9e5a; font-weight: 700; }
.cmp .t{ color: #d8951f; font-weight: 700; }
.cmp .x{ color: #b9c2cc; }
.cmp-note{
  font-size: .78em;
  color: var(--ink-sub);
  margin: 0 0 2em;
  text-align: right;
}

/* --------------------------------------------------
   7. CTA  <a class="cta-btn" href="…">無料で試す</a>
   -------------------------------------------------- */
.cta-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  max-width: 420px;
  margin: 1.6em auto .5em;
  padding: 1.05em 1.4em;
  background: var(--cta);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.04em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(242,102,10,.32);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.cta-btn:hover{
  background: var(--cta-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(242,102,10,.4);
}
.cta-btn::after{ content: "→"; font-weight: 400; }
.cta-sub{ text-align: center; font-size: .8em; color: var(--ink-sub); margin: 0 0 2.4em; }

.cta{
  margin: 2.4em 0;
  padding: 1.6em 1.4em 1.1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.cta .cta-ttl{
  margin: 0 0 .7em;
  font-size: 1.08em;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}

/* --------------------------------------------------
   8. ランキングボックス  <div class="rank" data-rank="1位">…</div>
   -------------------------------------------------- */
.rank{
  position: relative;
  margin: 2.8em 0 2em;
  padding: 1.8em 1.3em 1.2em;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
}
.rank::before{
  content: attr(data-rank);
  position: absolute;
  top: -.95em;
  left: 1.2em;
  padding: .25em 1em;
  background: var(--accent);
  color: #fff;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 999px;
}
.rank > *:first-child{ margin-top: 0; }
.rank > *:last-child{ margin-bottom: 0; }

/* --------------------------------------------------
   9. 補足ボックス  <div class="note"> / <div class="warn">
   -------------------------------------------------- */
.note, .warn{
  margin: 1.8em 0;
  padding: 1.1em 1.2em;
  border-left: 4px solid var(--accent);
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .94em;
}
.warn{ border-left-color: #e8a33d; background: #fff7e8; }
.note > *:first-child, .warn > *:first-child{ margin-top: 0; }
.note > *:last-child, .warn > *:last-child{ margin-bottom: 0; }

/* --------------------------------------------------
   10. サイドバー / フッター / ページャー
   -------------------------------------------------- */
.sidebar h3, .widget-sidebar-title{
  font-size: .95em;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 0 0 .5em;
  margin: 0 0 1em;
  text-align: left;
}
.sidebar .widget{ margin-bottom: 2.2em; }

.pagination .page-numbers{
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--bg);
  min-width: 2.4em;
}
.pagination .current{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer{ background: var(--ink); color: #c7d2de; border: 0; margin-top: 2.5em; }
.footer a{ color: #fff; }
.footer-bottom{ font-size: .8em; }

/* フッターモバイルボタン */
.mobile-menu-buttons{
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(27,39,51,.06);
}
.mobile-menu-buttons .menu-button a{ color: var(--ink); }
.mobile-menu-buttons .menu-button .menu-icon{ font-size: 1.25em; }
.mobile-menu-buttons .menu-button .menu-caption{ font-size: .62em; letter-spacing: .02em; }

/* --------------------------------------------------
   11. レスポンシブ
   -------------------------------------------------- */
@media screen and (max-width: 1023px){
  .main{ padding: 1.8em 1.4em; }
}

@media screen and (max-width: 834px){
  body{ font-size: 16px; line-height: 1.85; }
  #content, .content{ margin-top: .8em; }
  .main, .sidebar{ border-radius: 0; border-left: 0; border-right: 0; }
  .main{ padding: 1.4em 1.1em; }
  .entry-title, .article h1{ font-size: 1.32em; }
  .entry-content h2{ font-size: 1.16em; margin: 2.2em 0 1em; padding: .65em .8em; }
  .entry-content h3{ font-size: 1.06em; margin: 1.8em 0 .8em; }
  .cta-btn{ max-width: none; font-size: 1em; padding: 1em 1.2em; }
  .rank{ padding: 1.7em 1.1em 1.1em; }
}

@media screen and (max-width: 480px){
  .cmp table{ min-width: 540px; font-size: .86em; }
  .cmp th, .cmp td{ padding: .65em .7em; }
}


/* --------------------------------------------------
   12. 執筆中メモ  <div class="todo">…</div>
       公開前に必ず削除する。赤い点線枠で目立たせている。
   -------------------------------------------------- */
.todo{
  display: block;
  margin: 1.4em 0;
  padding: .9em 1.1em;
  background: #fff0f0;
  border: 2px dashed #e03131;
  border-radius: 6px;
  color: #c92a2a;
  font-size: .88em;
  font-weight: 700;
  line-height: 1.8;
}


/* --------------------------------------------------
   13. お問い合わせフォーム（Contact Form 7）
   -------------------------------------------------- */
.wpcf7{ margin: 2em 0; }
.wpcf7 label{
  display: block;
  font-weight: 700;
  font-size: .94em;
  margin-bottom: 1.5em;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select{
  display: block;
  width: 100%;
  margin-top: .5em;
  padding: .75em .9em;
  box-sizing: border-box;
  font-size: 1em;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.wpcf7 textarea{ min-height: 200px; resize: vertical; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item{ margin: 0; }
.wpcf7 .wpcf7-acceptance label{
  display: flex;
  align-items: center;
  gap: .5em;
  font-weight: 400;
  font-size: .9em;
  margin-bottom: 0;
}
.wpcf7 input[type="checkbox"]{ width: auto; margin: 0; }
.wpcf7 input[type="submit"]{
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 1.8em auto 0;
  padding: 1em 1.4em;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.02em;
  font-family: inherit;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30,111,217,.28);
  transition: background .15s, transform .15s;
}
.wpcf7 input[type="submit"]:hover{
  background: var(--accent-dk);
  transform: translateY(-2px);
}
.wpcf7-not-valid-tip{
  color: #c92a2a;
  font-size: .84em;
  font-weight: 400;
  margin-top: .4em;
}
.wpcf7-response-output{
  border-radius: 6px;
  padding: .9em 1.1em !important;
  font-size: .92em;
}


/* --------------------------------------------------
   14. ヘッダーのサイト名（ロゴ組み）
       画像ロゴではなく文字で組む。色を変えたくなったら
       :root の --accent を変えるだけで追従する。
   -------------------------------------------------- */
.logo-header .site-name-link,
.site-name-link{ text-decoration: none !important; }

.site-name-text{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: 1.5em;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.2;
  color: var(--ink);
  transition: color .15s;
}
/* 名前の前に置く菱形のマーク */
.site-name-text::before{
  content: "";
  flex: none;
  width: .5em;
  height: .5em;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 0 .16em var(--accent-bg);
  transition: transform .25s ease, box-shadow .15s;
}
.site-name-link:hover .site-name-text{ color: var(--accent-dk); }
.site-name-link:hover .site-name-text::before{
  transform: rotate(135deg);
  box-shadow: 0 0 0 .22em var(--accent-bg);
}

/* キャッチフレーズ */
.tagline{
  margin-top: .55em;
  font-size: .72em;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--ink-sub);
  text-indent: .18em;   /* letter-spacing 分の右寄りを打ち消す */
}

@media screen and (max-width: 834px){
  .site-name-text{ font-size: 1.24em; letter-spacing: .08em; }
  .tagline{ font-size: .64em; letter-spacing: .12em; }
}

/* Cocoonの初期状態ではキャッチフレーズがサイト名の「上」に出るので、下に回す */
.header-in{ flex-direction: column; }
.header-in .logo-header{ order: 1; margin: 0; }
.header-in .tagline{ order: 2; }


/* --------------------------------------------------
   16. ヘッダーの背景（青×ティールの光のグラデーション）
       画像は使わない。body を付けているのは、Cocoonが
       head内に後から出す白背景の指定に勝たせるため。
   -------------------------------------------------- */
#header-container, body .header-container{
  background:
    radial-gradient(70% 150% at 8% -15%,  var(--hdr-blue) 0%, transparent 64%),
    radial-gradient(62% 130% at 92% 5%,   var(--hdr-teal) 0%, transparent 68%),
    var(--hdr-base);
  border-bottom: 1px solid var(--line);
}
body .header-in{ padding: 2.7em 0 2.3em; }


/* --------------------------------------------------
   17. 引用ブロック  <blockquote class="quote-src"> + <cite>
       他社のキャッチコピーや公式文を引く用。
       「これは自分の言葉ではない」と一目で分かる見た目にする。
   -------------------------------------------------- */
.entry-content blockquote.quote-src{
  position: relative;
  margin: 1.6em 0 2em;
  padding: 1.2em 1.3em 1em 2.6em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-sub);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: .96em;
}
.entry-content blockquote.quote-src::before{
  content: "\201C";
  position: absolute;
  left: .5em;
  top: .12em;
  font-size: 2.6em;
  line-height: 1;
  color: #c3cdd9;
  font-family: Georgia, serif;
}
.entry-content blockquote.quote-src p{ margin: 0 0 .5em; }
.entry-content blockquote.quote-src cite{
  display: block;
  font-size: .82em;
  font-style: normal;
  color: var(--ink-sub);
  text-align: right;
}
.entry-content blockquote.quote-src cite::before{ content: "— "; }

/* ============================================
   18. 記事一覧のサムネイル（2026-11-06）
   - カテゴリラベルを画像に重ねず、画像の上に出す
   - 白いアイキャッチが背景に溶けないよう、薄い枠線
   ============================================ */
.e-card-thumb .cat-label{
  position: static;
  display: inline-block;
  margin: 0 0 6px;
}
.e-card-thumb-image,
.card-thumb-image{
  border: 1px solid var(--line);
  box-sizing: border-box;
}
