/* WordPress Rich Text Editor Styles */

/* 見出しスタイル */
.content-detail-inner h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  line-height: 1.4;
}

.content-detail-inner h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 4rem 0 0.575rem;
  line-height: 1.4;
  padding-left: 10px;
}

.content-detail-inner h2::before {
  position: relative;
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.25em;
  top: 6px;
  left: -10px;
  background-color: #000;
}

.sell-content-detail.content-detail-inner h2::before {
  background-color: var(--color-sell);
}
.buy-content-detail.content-detail-inner h2::before {
  background-color: var(--color-buy);
}
.toshi-content-detail.content-detail-inner h2::before {
  background-color: var(--color-toshi);
}

.content-detail-inner h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 1.5rem 0 0.35rem;
  line-height: 1.4;
}

.content-detail-inner h4 {
  font-size: 1rem;
  font-weight: bold;
  margin: 1.25rem 0 0.625rem;
  line-height: 1.4;
}

.content-detail-inner h5 {
  font-size: 0.9rem;
  font-weight: bold;
  margin: 1.125rem 0 0.5625rem;
  line-height: 1.4;
}

.content-detail-inner h6 {
  font-size: 0.8rem;
  font-weight: bold;
  margin: 1rem 0 0.5rem;
  line-height: 1.4;
}

.content-detail-inner p {
  line-height: 1.7;
  letter-spacing: 0.06rem;
}

.content-detail-inner li {
  list-style-type: disc;
  line-height: 1.4;
}

.content-detail-inner table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border-muted);
}
.content-detail-inner table th,
.content-detail-inner table td { 
  padding: 0.75rem;
  border: 1px solid var(--color-border-muted);
}
.content-detail-inner table th {
  background-color: #f5f5f5;
  font-weight: bold;
  text-align: left;
} 

.content-detail-inner a {
  color: revert; 
}
/* ----------------------------文章スタイル-------------------------------- */
.single_column span {
  word-break: break-all;
}


/* ----------------------------段落スタイル-------------------------------- */
.wp-block-paragraph {
  font-size: 1rem;
  line-height: 1.8;
  margin: 1rem 0;
  color: var(--color-text);
}

/* リンクスタイル */
.wp-block-paragraph a {
  color: var(--color-sell);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.wp-block-paragraph a:hover {
  opacity: 0.7;
}

/* リストスタイル */
.wp-block-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.wp-block-list li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* テーブルスタイル */
.wp-block-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.wp-block-table table {
  width: 100%;
  border: 1px solid var(--color-border-muted);
}

.wp-block-table th,
.wp-block-table td {
  padding: 0.75rem;
  border: 1px solid var(--color-border-muted);
}

.wp-block-table th {
  background-color: #f5f5f5;
  font-weight: bold;
  text-align: left;
}

/* 引用スタイル */
.wp-block-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-sell);
  background-color: #f9f9f9;
}

.wp-block-quote p {
  margin: 0;
  font-style: italic;
}

/* コードブロックスタイル */
.wp-block-code {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-family: monospace;
  overflow-x: auto;
}

/* 画像スタイル */
.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
}

/* ボタンスタイル */
.wp-block-button {
  margin: 1.5rem 0;
}

.wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-sell);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.wp-block-button__link:hover {
  opacity: 0.8;
}

/* 区切り線スタイル */
.wp-block-separator {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--color-border-muted);
}

/* レスポンシブ対応 */
@media (max-width: 760px) {
  .content-detail-inner h1 {
    font-size: 1.75rem;
  }

  .content-detail-inner h2 {
    font-size: 1.5rem;
  }

  .content-detail-inner h3 {
    font-size: 1.25rem;
  }

  .content-detail-inner h4 {
    font-size: 1.125rem;
  }

  .content-detail-inner h5,
  .content-detail-inner h6 {
    font-size: 1rem;
  }

  .wp-block-paragraph {
    font-size: 0.875rem;
  }

  .wp-block-table {
    font-size: 0.875rem;
  }

  .wp-block-table th,
  .wp-block-table td {
    padding: 0.5rem;
  }
}
