/*
Theme Name: Cocoon Child
Description: Cocoon child theme
Author: yhira
Author URI: https://wp-cocoon.com/
Text Domain: cocoon
Template: cocoon-master
Version: 1.1.3
*/

/* ==========================================================================
   コードとカゾク デザイン一新（2026-09-11）
   方向性：清潔・信頼感（白ベース＋紺〜青のアクセント）
   このファイルは Cocoon 子テーマの style.css を丸ごと置き換える前提で書いています。
   Cocoon本体のCSSより後に読み込まれるため、同じ詳細度なら子テーマ側が勝ちます。
   Cocoon設定（管理画面）で色・レイアウトを指定していると、そちらが優先される箇所が
   あるので、README.md の「Cocoon設定」の手順どおりに設定を初期値へ戻してください。
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* --------------------------------------------------------------------------
   1. デザイントークン
   -------------------------------------------------------------------------- */
:root {
  --ck-bg: #f4f6fa;            /* ページ背景 */
  --ck-surface: #ffffff;       /* カード・本文の面 */
  --ck-navy: #17304f;          /* 見出し・ロゴ・フッター */
  --ck-primary: #2563eb;       /* リンク・ボタン・アクセント */
  --ck-primary-dark: #1d4ed8;
  --ck-primary-soft: #e8effc;  /* 薄い青（背景用） */
  --ck-text: #1f2937;
  --ck-muted: #64748b;
  --ck-border: #e3e8ef;
  --ck-radius: 12px;
  --ck-radius-sm: 8px;
  --ck-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
  --ck-shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 32px rgba(15, 23, 42, .10);
  --ck-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  /* Cocoon本体が参照している変数を上書き（これだけで多くの箇所が揃う） */
  --cocoon-default-font: var(--ck-font);
  --cocoon-text-color: var(--ck-text);
  --cocoon-pallid-text-color: var(--ck-muted);
  --cocoon-x-pallid-text-color: #94a3b8;
  --cocoon-basic-border-color: var(--ck-border);
  --cocoon-thin-color: var(--ck-border);
  --cocoon-x-thin-color: #edf1f6;
  --cocoon-xx-thin-color: #f4f6fa;
  --cocoon-xxx-thin-color: #f8fafc;
  --cocoon-middle-thickness-color: var(--ck-primary);
  --cocoon-basic-border-radius: var(--ck-radius);
  --cocoon-middle-border-radius: var(--ck-radius-sm);
  --cocoon-badge-border-radius: 6px;
  --cocoon-current-background-color: var(--ck-navy);
}

/* --------------------------------------------------------------------------
   2. ベース
   -------------------------------------------------------------------------- */
body,
body.body {
  background-color: var(--ck-bg);
  color: var(--ck-text);
  font-family: var(--ck-font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ck-primary);
}

.wrap {
  width: 1200px;
  max-width: 100%;
}

@media screen and (max-width: 1255px) {
  .wrap { width: auto; }
}

/* --------------------------------------------------------------------------
   3. ヘッダー・グローバルメニュー
   -------------------------------------------------------------------------- */
.header-container {
  background: var(--ck-surface);
  border-bottom: 1px solid var(--ck-border);
}

.header-in {
  padding: 0 16px;
}

.tagline {
  font-size: 12px;
  color: var(--ck-muted);
  margin: 12px 0 0;
  letter-spacing: .02em;
}

.logo-text {
  padding: 8px 0 14px;
}

.site-name-text {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ck-navy);
}

.site-name-text-link,
.site-name-text-link:hover {
  color: var(--ck-navy);
  text-decoration: none;
}

/* ヘッダーレイアウト「トップメニュー」(hlt-top-menu) を選んだ場合：ロゴ左・メニュー右 */
.hlt-top-menu .header-in {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.hlt-top-menu .logo-text { padding: 0; }
.hlt-top-menu .tagline { display: none; }

/* メニュー本体 */
.navi {
  background: var(--ck-surface);
}

.navi-in > ul {
  justify-content: center;
  gap: 4px;
}

.navi-in > ul li {
  width: auto;
  height: auto;
}

.navi-in a,
.navi-in > ul li a {
  padding: 14px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ck-navy);
  border-radius: var(--ck-radius-sm);
  line-height: 1.4;
}

.navi-in a:hover {
  background: var(--ck-primary-soft);
  color: var(--ck-primary-dark);
}

.navi-in > ul > li.current-menu-item > a,
.navi-in > ul > li.current-menu-parent > a,
.navi-in > ul > li.current_page_item > a {
  color: var(--ck-primary-dark);
  box-shadow: inset 0 -3px 0 var(--ck-primary);
  border-radius: 0;
}

.navi-in > ul .sub-menu {
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-sm);
  box-shadow: var(--ck-shadow);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. レイアウト（メイン・サイドバー）
   -------------------------------------------------------------------------- */
.content {
  margin-top: 32px;
}

.main {
  width: 800px;
  padding: 32px 32px 40px;
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  box-shadow: var(--ck-shadow);
}

/* トップページ（記事一覧）は白い箱に入れず、カードをそのまま並べる */
.home.blog .main,
.archive .main,
.search .main {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.sidebar {
  width: 360px;
  padding: 0;
  background: transparent;
  border: 0;
}

@media screen and (max-width: 1255px) {
  .main { width: auto; }
  .sidebar { width: auto; }
}

@media screen and (max-width: 834px) {
  .content { margin-top: 16px; }
  .main { padding: 20px 16px 28px; border-radius: var(--ck-radius-sm); }
}

/* --------------------------------------------------------------------------
   5. 記事カード（トップ・カテゴリー・検索結果の一覧）
      Cocoonの横長カード(.entry-card)を、2列の縦型カードに組み替える
   -------------------------------------------------------------------------- */
.list.ect-entry-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.list .entry-card-wrap {
  display: block;
  margin: 0;
  padding: 0;
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  box-shadow: var(--ck-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}

.list .entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--ck-shadow-hover);
}

.list .entry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.list .entry-card-thumb {
  float: none;
  width: 100% !important;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.list .entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.list .entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.03);
}

.list .entry-card-content {
  margin-left: 0 !important;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.list .entry-card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ck-navy);
  margin: 0 0 8px;
}

.list .entry-card-snippet {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ck-muted);
  -webkit-line-clamp: 2;
  margin-bottom: 12px;
}

.list .entry-card-meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--ck-muted);
}

.list .entry-card-categorys {
  display: none; /* カテゴリーはサムネイル上のラベルで表示するので下段は消す */
}

/* サムネイル上のカテゴリーラベル（全カード共通） */
.cat-label {
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(23, 48, 79, .9);
  border: 0;
  border-radius: 999px;
  line-height: 1.6;
}

@media screen and (max-width: 640px) {
  .list.ect-entry-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ページネーション */
.pagination {
  gap: 6px;
}

.page-numbers {
  width: 42px;
  height: 42px;
  line-height: 42px;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-sm);
  background: var(--ck-surface);
  font-size: 14px;
}

.pagination .current {
  background: var(--ck-navy);
  color: #fff;
  border-color: var(--ck-navy);
}

.pagination-next-link {
  border-radius: var(--ck-radius-sm);
  background: var(--ck-surface);
}

/* --------------------------------------------------------------------------
   6. 記事ページ
   -------------------------------------------------------------------------- */
.breadcrumb {
  margin: 0 0 16px;
  font-size: 12px;
}

.entry-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ck-navy);
  margin: 0 0 14px;
}

.date-tags,
.entry-meta {
  font-size: 13px;
  color: var(--ck-muted);
}

.eye-catch-wrap {
  margin: 16px 0 24px;
}

.eye-catch img {
  border-radius: var(--ck-radius);
}

.entry-content {
  font-size: 16.5px;
  line-height: 1.95;
}

.article p {
  margin-bottom: 1.6em;
}

/* 本文中のテキストリンクだけを青＋下線にする（.article a にするとSNSシェアボタン等まで青くなる） */
.entry-content a {
  color: var(--ck-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.entry-content a:hover {
  color: var(--ck-primary-dark);
}

/* 見出し */
.article h2 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ck-navy);
  background: none;
  padding: 0 0 10px 18px;
  margin: 2.6em 0 1.1em;
  border-left: 5px solid var(--ck-primary);
  border-bottom: 1px solid var(--ck-border);
  border-radius: 0;
}

.article h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ck-navy);
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ck-primary-soft);
  padding: 0 0 8px;
  margin: 2em 0 1em;
}

.article h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ck-navy);
  border: 0;
  padding: 0;
  margin: 1.6em 0 .8em;
}

.article h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--ck-primary);
  border-radius: 2px;
  vertical-align: middle;
}

/* 強調・リスト・表・引用 */
.article strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, #dbeafe 62%);
}

.article ul,
.article ol {
  padding-left: 1.6em;
  margin: 0 0 1.6em;
}

.article ul li,
.article ol li {
  margin: .35em 0;
}

.article ul li::marker {
  color: var(--ck-primary);
}

.article ol li::marker {
  color: var(--ck-primary);
  font-weight: 700;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 1.8em;
  border: 1px solid var(--ck-border);
}

.article th,
.article td {
  border: 1px solid var(--ck-border);
  padding: 10px 12px;
  vertical-align: top;
}

.article th {
  background: #f1f5f9;
  color: var(--ck-navy);
  font-weight: 700;
  text-align: left;
}

.article blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--ck-border);
  border-radius: var(--ck-radius-sm);
  padding: 14px 18px;
  color: var(--ck-muted);
}

/* 目次 */
.toc {
  display: block;
  width: auto;
  background: #f8fafc;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
}

.toc-title {
  text-align: left;
  font-weight: 700;
  color: var(--ck-navy);
  padding: 0;
  margin-bottom: 8px;
  font-size: 15px;
}

.toc-title::after {
  color: var(--ck-muted);
  font-weight: 400;
}

.toc .toc-list li {
  margin: .3em 0;
}

.toc a {
  color: var(--ck-text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ck-primary);
  text-decoration: underline;
}

/* SNSシェア・フォローボタン：色付き背景の上は白文字・下線なし */
.sns-share-message,
.sns-follow-message {
  font-size: 13px;
  color: var(--ck-muted);
}

.sns-share-buttons a {
  border-radius: var(--ck-radius-sm);
}

.article .sns-share-buttons a,
.article .sns-share-buttons a:hover,
.article .sns-share-buttons a .button-caption,
.article .sns-share-buttons a .share-count,
.article .sns-follow-buttons a,
.article .sns-follow-buttons a:hover {
  color: #fff;
  text-decoration: none;
}

/* 前後の記事・関連記事・目次のリンクも本文リンクの装飾を引き継がない */
.article .pager-post-navi a,
.article .related-entry-card-wrap,
.article .toc a,
.article .breadcrumb a {
  text-decoration: none;
}

/* 前後の記事 */
.pager-post-navi a {
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  background: var(--ck-surface);
  text-decoration: none;
  transition: box-shadow .2s ease;
}

.pager-post-navi a:hover {
  box-shadow: var(--ck-shadow);
}

.pager-post-navi .iconfont {
  color: var(--ck-primary);
}

/* 関連記事 */
.related-entry-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ck-navy);
  border: 0;
  padding: 0 0 8px;
  margin: 40px 0 16px;
  border-bottom: 2px solid var(--ck-primary);
  display: inline-block;
}

.related-entry-heading::before { content: none; }

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-entry-card-wrap {
  display: block;
  margin: 0;
  padding: 0;
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.related-entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--ck-shadow-hover);
}

.related-entry-card {
  display: flex;
  flex-direction: column;
}

.related-entry-card-thumb {
  float: none;
  width: 100% !important;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-entry-card-content {
  margin-left: 0 !important;
  padding: 12px 14px 14px;
}

.related-entry-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ck-navy);
}

.related-entry-card-snippet {
  display: none;
}

@media screen and (max-width: 640px) {
  .related-list { grid-template-columns: 1fr; }
}

.author-box {
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
}

/* --------------------------------------------------------------------------
   7. サイドバー
   -------------------------------------------------------------------------- */
.sidebar .widget {
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  box-shadow: var(--ck-shadow);
  padding: 18px 20px 16px;
  margin-bottom: 20px;
}

.sidebar h2,
.sidebar h3,
.sidebar .wp-block-heading,
.sidebar .widget-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ck-navy);
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ck-primary);
  padding: 0 0 8px;
  margin: 0 0 12px;
  border-radius: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--ck-border);
  font-size: 14px;
  line-height: 1.6;
}

.sidebar ul li:last-child {
  border-bottom: 0;
}

.sidebar ul li a {
  color: var(--ck-text);
  text-decoration: none;
}

.sidebar ul li a:hover {
  color: var(--ck-primary);
}

/* カテゴリー一覧の投稿数を丸いバッジに */
.sidebar .wp-block-categories li,
.sidebar .widget_categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar .post-count,
.sidebar .wp-block-categories li .count {
  font-size: 12px;
  color: var(--ck-navy);
  background: var(--ck-primary-soft);
  border-radius: 999px;
  padding: 0 9px;
  line-height: 1.8;
}

/* 検索フォーム */
.sidebar .wp-block-search__label {
  display: none;
}

.sidebar .wp-block-search__input {
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-sm);
  padding: 8px 12px;
  font-size: 14px;
}

.sidebar .wp-block-search__button {
  background: var(--ck-primary);
  color: #fff;
  border: 0;
  border-radius: var(--ck-radius-sm);
  padding: 8px 14px;
  margin-left: 6px;
  font-size: 14px;
}

.sidebar .wp-block-search__button:hover {
  background: var(--ck-primary-dark);
}

/* --------------------------------------------------------------------------
   8. フッター
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ck-navy);
  color: #cbd5e1;
  margin-top: 56px;
  padding: 36px 0 28px;
}

.footer a,
.footer .site-name-text {
  color: #fff;
}

.footer .site-name-text {
  font-size: 20px;
}

.footer-bottom {
  margin-top: 0;
  padding: 0 16px;
}

.navi-footer-in a {
  color: #e2e8f0;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--ck-radius-sm);
}

.navi-footer-in a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.navi-footer-in > .menu-footer li,
.navi-footer-in > .menu-footer li:last-child {
  border: 0;
  width: auto;
}

.copyright {
  color: #94a3b8;
  font-size: 12px;
}

/* スマホ下部の固定ボタン */
.mobile-menu-buttons {
  box-shadow: 0 -1px 0 var(--ck-border), 0 -6px 20px rgba(15, 23, 42, .06);
}

.mobile-menu-buttons .menu-button > a,
.mobile-menu-buttons .menu-button-in {
  color: var(--ck-navy);
}

/* --------------------------------------------------------------------------
   9. トップページ用パーツ（固定ページ「ホーム」の本文で使うクラス）
      front-page.html と対で使う
   -------------------------------------------------------------------------- */

/* トップページ（固定ページ）では記事っぽい装飾を消す */
.home.page .breadcrumb,
.home.page .date-tags,
.home.page .entry-meta,
.home.page .eye-catch-wrap,
.home.page .sns-share,
.home.page .footer-meta,
.home.page .pager-post-navi,
.home.page .author-box,
.home.page .sns-follow {
  display: none;
}

.home.page .main {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.home.page .entry-content {
  margin-top: 0;
  font-size: 16px;
}

/* 固定ページのタイトル(h1)は ck-hero の見出しと重複するので非表示 */
.home.page .entry-title {
  display: none;
}

/* ヒーロー */
.ck-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef3fc 100%);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  box-shadow: var(--ck-shadow);
  padding: 44px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.ck-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .12) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.ck-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ck-primary-dark);
  background: var(--ck-primary-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 0 14px;
}

.article .ck-hero-title,
.ck-hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ck-navy);
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
}

.ck-hero-lead {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ck-text);
  max-width: 600px;
  margin: 0 0 22px;
}

.ck-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ボタン */
.ck-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.ck-btn-primary {
  background: var(--ck-primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
}

.ck-btn-primary:hover {
  background: var(--ck-primary-dark);
  color: #fff !important;
}

.ck-btn-ghost {
  background: var(--ck-surface);
  color: var(--ck-navy) !important;
  border: 1px solid var(--ck-border);
}

.ck-btn-ghost:hover {
  border-color: var(--ck-primary);
  color: var(--ck-primary-dark) !important;
}

/* セクション */
.ck-section {
  margin-bottom: 44px;
}

.article .ck-section-title,
.ck-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ck-navy);
  margin: 0 0 18px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--ck-border);
  background: none;
  border-radius: 0;
}

.ck-section-title small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ck-muted);
  letter-spacing: .06em;
}

/* WordPressの自動整形(wpautop)が差し込む <br> や空の <p> を、レイアウト用コンテナの中では無効化 */
.ck-hero > br,
.ck-hero-actions > br,
.ck-cats > br,
.ck-cat > br,
.ck-steps > br,
.ck-step > br,
.ck-step-body > br,
.ck-cards > br,
.ck-section > br,
.ck-cats > p:empty,
.ck-steps > p:empty,
.ck-section > p:empty,
.ck-cards > p:empty {
  display: none;
}

/* テーマから探す：カテゴリーカード */
.ck-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ck-cat {
  display: block;
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  padding: 18px 18px 16px;
  text-decoration: none !important;
  color: var(--ck-text) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ck-cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--ck-shadow-hover);
  border-color: var(--ck-primary);
}

.ck-cat-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ck-primary);
  margin-bottom: 6px;
}

.ck-cat-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ck-navy);
  line-height: 1.4;
  margin-bottom: 6px;
}

.ck-cat-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ck-muted);
}

@media screen and (max-width: 834px) {
  .ck-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 480px) {
  .ck-cats { grid-template-columns: 1fr; }
}

/* 新着記事：[new_list] ショートコードの出力（widget-entry-cards）を縦型カードのグリッドに */
.ck-cards .widget-entry-cards,
.ck-cards .new-entry-cards,
.ck-cards .list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Cocoonの大サムネイル系タイプ(large_thumb / large_thumb_on)の指定を打ち消して、
   「画像の下にタイトル」の縦型カードに統一する */
.ck-cards .widget-entry-cards.card-large-image .a-wrap {
  max-width: none;
}

.ck-cards .widget-entry-cards.large-thumb-on .card-content {
  position: static;
  background: var(--ck-surface);
  color: var(--ck-text);
  margin: 0;
}

.ck-cards .widget-entry-cards.large-thumb-on .a-wrap:hover {
  opacity: 1;
}

.ck-cards .widget-entry-cards.large-thumb-on .a-wrap:hover .card-content {
  margin-bottom: 0;
  opacity: 1;
}

.ck-cards .widget-entry-cards.card-large-image .card-content {
  padding: 14px 16px 16px;
}

.ck-cards .a-wrap {
  display: block;
  margin: 0;
  padding: 0;
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  box-shadow: var(--ck-shadow);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ck-cards .a-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--ck-shadow-hover);
}

.ck-cards .e-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.ck-cards .card-thumb {
  float: none;
  width: 100% !important;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.ck-cards .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ck-cards .card-content {
  margin-left: 0 !important;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ck-cards .card-title,
.article .ck-cards .card-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ck-navy);
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
}

.ck-cards .card-snippet {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ck-muted);
  -webkit-line-clamp: 2;
}

.ck-cards .card-meta,
.ck-cards .widget-entry-card-date {
  margin-top: auto;
  font-size: 12px;
  color: var(--ck-muted);
}

.ck-cards .entry-card-categorys {
  display: none;
}

@media screen and (max-width: 640px) {
  .ck-cards .widget-entry-cards,
  .ck-cards .new-entry-cards,
  .ck-cards .list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.ck-more {
  text-align: center;
  margin: 22px 0 0;
}

/* まずはここから：手動で選んだ3記事の番号付きリスト */
.article .ck-steps,
.ck-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ck-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  padding: 16px 18px;
  margin: 0;
}

.ck-step-num {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ck-navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ck-step-body {
  flex: 1;
}

.article .ck-step-body a,
.ck-step-body a {
  font-size: 16px;
  font-weight: 700;
  color: var(--ck-navy);
  text-decoration: none;
}

.ck-step-body a:hover {
  color: var(--ck-primary);
  text-decoration: underline;
}

.article .ck-step-body p,
.ck-step-body p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ck-muted);
  line-height: 1.7;
}

@media screen and (max-width: 640px) {
  .ck-hero { padding: 28px 20px; }
  .article .ck-hero-title,
  .ck-hero-title { font-size: 23px; }
  .article .ck-section-title,
  .ck-section-title { font-size: 19px; }
}

/* --------------------------------------------------------------------------
   10. スマホ用の最終調整（後ろに置いて上のルールより優先させる）
   -------------------------------------------------------------------------- */
@media screen and (max-width: 834px) {
  /* 白い箱を外したページ（トップ・一覧）でも、画面端に余白を残す */
  .home.blog .main,
  .archive .main,
  .search .main,
  .home.page .main { padding: 0 12px; }
  .sidebar { padding: 0 12px; }
}
