/* ------------------------------
  SWELL 風：記事本文スタイル
  （.single-news-body 内のみ適用）
------------------------------ */

.single-news-body {
  color: #333;
  max-width: 100%;
}

/* 段落 */
.single-news-body p {
  margin: 1.2rem 0;
  letter-spacing: 0;
  line-height: 1.5;
}

/* 最初の p だけ margin なし */
.single-news-body p:first-of-type {
  margin-top: 0;
}

/* 見出し（SWELL の読みやすい余白感） */
/* .single-news-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  border-left: 4px solid #154b5a;
  padding-left: 0.75rem;
} */

/* 記事内のh2（お好みでセレクタ調整） */
.single-news-body h2 {
  position: relative;
  margin: 40px 0 16px;
  padding-left: 18px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
}

/* 左の縦ライン */
.single-news-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 4px;
  background-color: #154b5a;
  /* 濃いブルー */
}


.single-news-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

.single-news-body h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

/* リスト */
.single-news-body ul,
.single-news-body ol {
  margin: 1rem 0 1.25rem 1.25rem;
}

.single-news-body ul li {
  list-style: disc;
}

.single-news-body ol li {
  list-style: decimal;
  margin-bottom: 0.4rem;
}

/* 引用 */
.single-news-body blockquote {
  border-left: 4px solid #ccc;
  padding: 0.5rem 1rem;
  margin: 2rem 0;
  color: #555;
  background: #fafafa;
  border-radius: 4px;
}

/* 画像（SWELL のように中央寄せ & 余白） */
.single-news-body img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* テーブル */
.single-news-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.single-news-body table th,
.single-news-body table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
}

.single-news-body table th {
  background: #f1f1f1;
}

/* リンク */
.single-news-body a {
  color: #154b5a;
  text-decoration: underline;
}

/* コード・整形済みテキスト */
.single-news-body pre,
.single-news-body code {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: #f7f7f7;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* YouTube・埋め込み対応 */
.single-news-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 2rem 0;
  border-radius: 6px;
}

/* 余白調整：最後の要素の margin をなくす */
.single-news-body>*:last-child {
  margin-bottom: 0;
}

.single-news-body .wp-element-caption {
  text-align: right;
  /* 右寄せ */
  color: #999;
  /* 灰色の文字 */
  font-size: 0.85rem;
  /* 少し小さめ（調整可） */
  margin-top: -24px;
  /* 画像との間に余白 */
  line-height: 1.4;
  /* 読みやすく */
  font-style: italic;
  /* 斜体（不要なら削除） */
}

/* 埋め込み用 */

/* ------- ベース ------- */
.simpleblogcard_wrap {
  margin: 2rem 0;
  margin: 30px auto !important;
  border: none !important;
}

.simpleblogcard_wrap>a {
  display: flex;
  flex-direction: row-reverse;
  /* 画像を右側に */
  gap: 24px;
  padding: 24px 28px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* hover */
.simpleblogcard_wrap>a:hover {
  border-color: #0f5b74;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

/* ------- 画像エリア ------- */
.simpleblogcard_wrap figure {
  margin: 0;
  width: 140px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ------- テキストエリア ------- */
.simpleblogcard_inner {
  flex: 1;
  min-width: 0;
}

/* ドメイン + タイトル全体のブロック */
.simpleblogcard_inner [class^="simpleblogcard_border"] {
  position: relative;
  padding-left: 16px;
  border-left: 3px solid #154b5a;
  /* 左のラインだけ残す */
  margin-bottom: 8px;
}

/* ドメイン部分（先頭のテキスト） */
.simpleblogcard_inner [class^="simpleblogcard_border"] {
  font-size: 12px;
  color: #6b7280;
}

/* タイトル */
.simpleblogcard_inner [class^="simpleblogcard_title"] {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
}

/* 説明文 */
.simpleblogcard_inner [class^="simpleblogcard_description"] {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

/* clear用 div は消してよい見た目に */
.simpleblogcard_wrap>a>div[style*="clear"] {
  display: none;
}

/* ------- レスポンシブ（スマホ） ------- */
@media (max-width: 768px) {
  .simpleblogcard_wrap>a {
    flex-direction: column;
    padding: 20px;
  }

  .simpleblogcard_wrap figure {
    width: 100%;
    max-width: 220px;
    align-self: flex-end;
  }
}