/*====================== BLOG SINGLE POST ======================*/

/* post-title: タイトルと日付を縦並びに */
@media screen and (min-width: 768px) {
  .post-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* CTAリンクをボタン化（段落内に単独で置かれたリンク） */
.post-contents p > a:only-child {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 32px;
  background-color: #c97a50;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.2s;
}
.post-contents p > a:only-child:hover {
  opacity: 0.8;
}
.post-contents .gaikun p > a:only-child {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit !important;
  text-decoration: underline !important;
  border-radius: 0;
  font-size: inherit;
  font-weight: normal;
  transition: none;
}

/* Blockquote: ノート風破線ボックス */
.post-contents blockquote {
  font-size: 13px;
  line-height: 1.7;
  border: 1.5px dashed #bbb;
  background-color: #fff;
  padding: 12px 16px;
  margin: 20px 0;
  border-radius: 3px;
}
.post-contents blockquote::before {
  display: none !important;
}
.post-contents blockquote p {
  margin: 0;
  font-size: 13px;
}

/* H2: 黄色背景帯 ＋ 白文字 */
.post-contents h2 {
  color: #fff !important;
  background-color: #e2ce1e;
  border-radius: 3px;
}
.post-contents h2::before {
  display: none !important;
}

/* H3: 左バーのみ */
.post-contents h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: bold;
  color: #4b4f58;
  padding-left: 0.75em;
  border-left: 3px solid #e2ce1e;
}

@media screen and (min-width: 768px) {
  .post-contents h3 {
    font-size: 18px;
  }
}

/* #content がテーブル幅に引っ張られるのを防ぐ（SP） */
@media screen and (max-width: 767px) {
  #content {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* フレックスアイテムがコンテンツ幅に引っ張られるのを防ぐ */
#primary,
.post-contents {
  min-width: 0;
  overflow-x: hidden;
}

/* テーブル: SP横スクロール */
.post-contents .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.post-contents .table-scroll table {
  white-space: nowrap;
}
