@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* Google Fonts 使用 */
body {
  font-family: 'BIZ UDGothic', sans-serif;
}

/* SWELLテーマでの非公開記事タイトルにスタイルを適用する例 */
.private-label {
  background-color: pink;
  color: red;
  font-weight: bold;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  font-size: 0.8em;
  margin-right: 0.4em;
}


/* <kbd> タグ全体のスタイル */
kbd {
  display: inline-block;
  padding: 5px 10px;
  margin: 2px;
  font-size: 14px;
  font-weight: bold;
  font-family: "Segoe UI", Arial, sans-serif; /* モダンなキーボード風フォント */
  color: #333;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-align: center;
  user-select: none; /* 選択不可にする */
}

/* <kbd> タグ内で太字 (<strong>) を調整 */
kbd strong {
  font-weight: bold;
}


.my-blog-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin: 10px auto; /* 上下にスペースを取り、中央揃え */
    background-color: #f9f9f9;
    font-size: 12px;
    color: #666;
    width: 90%; /* カラム幅の90% */
    box-sizing: border-box; /* パディングを含めた幅を正確に計算 */
    transition: transform 0.2s, box-shadow 0.2s; /* アニメーション効果 */
}

.my-blog-card:hover {
    transform: translateY(-5px); /* 上に少し浮かぶ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加 */
}

.my-blog-card a {
    text-decoration: none;
    color: inherit;
}

.my-blog-card-content {
    display: block;
}

.my-blog-card-title {
    font-size: 16px;
    font-weight: bold;
    color: darkblue;
    margin-bottom: 5px;
}

.my-blog-card-description {
    font-size: 14px;
    color: #666;
}




/* ▓▓▓ TechModula リンクカード v2025.06.1 マギ最適化 ▓▓▓ */

.custom-blog-card {
  display: flex !important;
  flex-direction: row;
  align-items: stretch !important;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-decoration: none !important;
  color: #2d3748;
  margin-bottom: 20px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 120px; /* 高さの最小値を統一 */
}

.custom-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.cbc-thumb {
  width: 180px !important;
  min-width: 180px;
  aspect-ratio: 16 / 9; /* WordPressアイキャッチ基準 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f0f0f0;
  min-height: 100px; /* 万が一に備えた高さ保険 */
}


/* テキスト領域 */
.cbc-content {
  padding: 14px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cbc-title-container {
  margin-bottom: 4px;
}

.cbc-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a202c;
  margin: 0;
}

.cbc-url {
  display: block;
  font-size: 11px;
  color: #718096;
  margin-top: 2px;
}

.cbc-url::before,
.cbc-url::after {
  display: none !important;
}

.cbc-excerpt {
  display: block;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.6;
  margin-top: 6px;
  max-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 外部バッジ */
.cbc-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background-color: #3182ce; /* 濃い青系：目立つが上品 */
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  vertical-align: middle;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* レスポンシブ対策 */
@media screen and (max-width: 768px) {
  .custom-blog-card {
    flex-direction: column;
  }

  .cbc-thumb {
    width: 100% !important;
    min-height: 160px;
    aspect-ratio: unset;
  }

  .cbc-content {
    padding: 12px 14px;
  }
}


