@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
*/

/* 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;
  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;
}

/* ▓▓▓ ekplabz linkcard ▓▓▓ */

.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;
  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;
  }
}

/* 訪問済みリンク色 */
.ekplabz-related-content a,
.ekplabz-related-content a:visited {
  color: #0066cc;
}

.ekplabz-related-content a:hover {
  text-decoration: underline;
}

/* ==========================================
   脱SWELL：極小ミニマル・ハイエンド（現代風）
   ========================================== */
/* ==========================================
   H2：SWELL装飾を完全解除 → 下線のみ
   ========================================== */

.post_content h2 {
  background: none !important;
  background-image: none !important;

  border: none !important;
  border-bottom: 2px solid #2563eb !important;

  box-shadow: none !important;

  padding: 0 0 0.6em 0 !important;
  margin-top: 3em !important;
  margin-bottom: 1.2em !important;

  color: #111827 !important;
  font-size: 1.6em !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* SWELL等が疑似要素で付けている線・装飾を消す */
.post_content h2::before,
.post_content h2::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* H3：装飾なし・絶妙なフォントサイズとウェイトのみで存在感を出す */
.post_content h3 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 2.4em !important;
  margin-bottom: 0.8em !important;
  color: #18181b !important;
  font-size: 1.3em !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.4 !important;
}

/* H4：文字色をわずかに落とし、大文字のアクセント（//）を添えてテック感を強調 */
.post_content h4 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 2em !important;
  margin-bottom: 0.6em !important;
  color: #3f3f46 !important;
  font-size: 1.05em !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* H4の頭に控えめなスラスラ記号を配置（不要なら削除可） */
.post_content h4::before {
  content: "// ";
  color: #a1a1aa;     /* 主張しすぎないニュートラルグレー */
  font-weight: 400;
  margin-right: 0.2em;
}