

/* =========================
   カード全体
========================= */
.card-link {
  margin-bottom: 16px;
}

/* カード本体 */
.card-wrap {
  display: flex;
  height: 160px; /* ←ゆとり持たせる */
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* =========================
   画像
========================= */
.card-image {
  width: 40%;
  height: 100%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   テキストエリア
========================= */
.card-content {
  width: 60%;
  height: 100%;
  padding: 14px;
  color: #fff;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

/* タイトル */
.card-title {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  font-weight: bold;
}

/* 説明 */
.card-desc {
  font-size: 13px;
  margin: 0;
  opacity: 0.95;
}

/* メタ */
.card-meta {
  font-size: 12px;
  opacity: 0.9;
}

/* ボタン */
.card-button {
  margin-top: auto;
  display: inline-block;
  padding: 6px 10px;
  background: #ffffff;
  color: #0f6b6b;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  width: fit-content;
}

/* =========================
   カテゴリカラー
========================= */
.card-seisaku .card-content {
  background: #27ae60;
}

.card-tool .card-content {
  background: #1e73be;
}

.card-other .card-content {
  background: #555;
}

/* =========================
   スマホ対応
========================= */
@media (max-width: 768px) {
  .card-wrap {
    flex-direction: column;
    height: auto;
  }

  .card-image,
  .card-content {
    width: 100%;
  }
}





/* =================================
   投稿ページ共通幅
================================= */

.single .entry-content {

    max-width: 760px !important;

    margin: 0 auto !important;

    padding: 0 !important;
}


/* =================================
   本文
================================= */

.single .entry-content p,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content ul,
.single .entry-content ol {

    padding-left: 20px !important;
    padding-right: 20px !important;

    box-sizing: border-box !important;
}


/* =================================
   先頭画像
================================= */

.single .entry-content > figure.wp-block-image:first-child {

    margin-left: auto !important;
    margin-right: auto !important;

    margin-bottom: 40px !important;
}


/* =================================
   画像本体
================================= */

.single .entry-content > figure.wp-block-image:first-child img {

    width: 100% !important;

    display: block !important;
}