/* ==========================================================================
   ブログ本文・ブロックエディタ共通（.nishikaze-entry-content）
   ========================================================================== */

.nishikaze-entry-content,
.editor-styles-wrapper {
  --entry-font-size: 16px;
  --entry-line-height: 2;
  font-size: var(--entry-font-size);
  line-height: var(--entry-line-height);
  color: var(--color-text);
}

.nishikaze-entry-content > *:first-child,
.editor-styles-wrapper > .block-editor-block-list__layout > *:first-child {
  margin-top: 0;
}

.nishikaze-entry-content > *:last-child,
.editor-styles-wrapper > .block-editor-block-list__layout > *:last-child {
  margin-bottom: 0;
}

/* 見出し h2〜h5 */
.nishikaze-entry-content h2,
.editor-styles-wrapper h2.wp-block-heading {
  position: relative;
  font-size: clamp(1.375rem, 3.2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-main);
  margin: 2.75em 0 1.15em;
  padding: 18px 20px 18px 22px;
  background: linear-gradient(105deg, var(--color-sub) 0%, rgba(244, 237, 227, 0.35) 55%, transparent 100%);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-cta);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.03em;
}

.nishikaze-entry-content h2::after,
.editor-styles-wrapper h2.wp-block-heading::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 14px;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-cta), transparent);
  opacity: 0.65;
}

.nishikaze-entry-content h3,
.editor-styles-wrapper h3.wp-block-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.125rem, 2.6vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-main);
  margin: 2.25em 0 0.9em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.nishikaze-entry-content h3::before,
.editor-styles-wrapper h3.wp-block-heading::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--color-cta);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.2);
}

.nishikaze-entry-content h4,
.editor-styles-wrapper h4.wp-block-heading {
  position: relative;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-main);
  margin: 1.85em 0 0.7em;
  padding: 10px 14px 10px 18px;
  background: var(--color-bg-gray);
  border-radius: var(--radius-sm);
}

.nishikaze-entry-content h4::before,
.editor-styles-wrapper h4.wp-block-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  min-height: 18px;
  background: var(--color-main);
  border-radius: 0 2px 2px 0;
}

.nishikaze-entry-content h5,
.editor-styles-wrapper h5.wp-block-heading {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-main);
  margin: 1.5em 0 0.55em;
  padding: 6px 14px 6px 12px;
  letter-spacing: 0.06em;
  background: rgba(242, 140, 40, 0.12);
  border: 1px solid rgba(242, 140, 40, 0.28);
  border-radius: 100px;
}

.nishikaze-entry-content h5::before,
.editor-styles-wrapper h5.wp-block-heading::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 0.1em;
  background: var(--color-cta);
  border-radius: 50%;
}

.nishikaze-entry-content h6,
.editor-styles-wrapper h6.wp-block-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 1.25em 0 0.5em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 段落・リスト */
.nishikaze-entry-content p,
.editor-styles-wrapper p {
  margin-bottom: 1.5em;
}

.nishikaze-entry-content ul,
.nishikaze-entry-content ol,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.nishikaze-entry-content li,
.editor-styles-wrapper li {
  margin-bottom: 0.5em;
}

.nishikaze-entry-content li::marker,
.editor-styles-wrapper li::marker {
  color: var(--color-cta);
}

.nishikaze-entry-content ul ul,
.nishikaze-entry-content ol ol,
.editor-styles-wrapper ul ul,
.editor-styles-wrapper ol ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* 引用 */
.nishikaze-entry-content blockquote,
.nishikaze-entry-content .wp-block-quote,
.editor-styles-wrapper blockquote,
.editor-styles-wrapper .wp-block-quote {
  margin: 1.5em 0;
  padding: 20px 24px;
  background: var(--color-bg-gray);
  border: none;
  border-left: 4px solid var(--color-cta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-muted);
}

.nishikaze-entry-content blockquote cite,
.nishikaze-entry-content .wp-block-quote cite,
.editor-styles-wrapper .wp-block-quote cite {
  display: block;
  margin-top: 0.75em;
  font-size: 13px;
  font-style: normal;
  color: var(--color-text-muted);
}

/* テーブル */
.nishikaze-entry-content table,
.nishikaze-entry-content .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 14px;
}

.nishikaze-entry-content th,
.nishikaze-entry-content td,
.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table td {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.nishikaze-entry-content th,
.editor-styles-wrapper .wp-block-table th {
  background: var(--color-bg-gray);
  font-weight: 700;
  color: var(--color-main);
}

/* 画像・メディア */
.nishikaze-entry-content img,
.nishikaze-entry-content .wp-block-image img,
.editor-styles-wrapper .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.nishikaze-entry-content figcaption,
.nishikaze-entry-content .wp-block-image figcaption,
.editor-styles-wrapper .wp-block-image figcaption {
  margin-top: 0.5em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  text-align: center;
}

.nishikaze-entry-content .wp-block-image.alignwide,
.editor-styles-wrapper .wp-block-image.alignwide {
  max-width: var(--container-narrow, 950px);
}

/* リンク */
.nishikaze-entry-content a:not(.wp-block-button__link),
.editor-styles-wrapper a:not(.wp-block-button__link) {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nishikaze-entry-content a:not(.wp-block-button__link):hover,
.editor-styles-wrapper a:not(.wp-block-button__link):hover {
  color: var(--color-cta-hover);
}

/* 区切り・ボックス */
.nishikaze-entry-content hr,
.nishikaze-entry-content .wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
  margin: 2.5em auto;
  border: none;
  border-top: 1px solid var(--color-border);
  max-width: 100%;
}

.nishikaze-entry-content .wp-block-group.has-background,
.editor-styles-wrapper .wp-block-group.has-background {
  padding: 24px;
  border-radius: var(--radius-md);
}

/* ボタン（ブロックスタイル） */
.nishikaze-entry-content .wp-block-buttons,
.editor-styles-wrapper .wp-block-buttons {
  gap: 12px;
  margin: 1.75em 0;
}

.nishikaze-entry-content .wp-block-button .wp-block-button__link,
.editor-styles-wrapper .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.nishikaze-entry-content .wp-block-button .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button .wp-block-button__link:hover {
  transform: translateY(-1px);
}

/* デフォルト・塗りつぶし＝メイン（オレンジ） */
.nishikaze-entry-content .wp-block-button:not(.is-style-outline):not(.is-style-line):not(.is-style-ghost) .wp-block-button__link,
.nishikaze-entry-content .wp-block-button.is-style-fill .wp-block-button__link,
.editor-styles-wrapper .wp-block-button:not(.is-style-outline):not(.is-style-line):not(.is-style-ghost) .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
}

.nishikaze-entry-content .wp-block-button:not(.is-style-outline):not(.is-style-line):not(.is-style-ghost) .wp-block-button__link:hover,
.nishikaze-entry-content .wp-block-button.is-style-fill .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button:not(.is-style-outline):not(.is-style-line):not(.is-style-ghost) .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-white);
}

/* 枠線 */
.nishikaze-entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-main);
  border-color: var(--color-main);
}

.nishikaze-entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--color-main);
  color: var(--color-white);
}

/* LINE */
.nishikaze-entry-content .wp-block-button.is-style-line .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-line .wp-block-button__link {
  background: var(--color-line);
  color: var(--color-white);
  border-color: var(--color-line);
}

/* ゴースト（暗背景向け） */
.nishikaze-entry-content .wp-block-button.is-style-ghost .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent;
  color: var(--color-main);
  border-color: var(--color-border);
}

.nishikaze-entry-content .wp-block-button.is-style-ghost .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button.is-style-ghost .wp-block-button__link:hover {
  background: var(--color-bg-gray);
}

/* コード・pre */
.nishikaze-entry-content code,
.editor-styles-wrapper code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--color-bg-gray);
  border-radius: 4px;
}

.nishikaze-entry-content pre,
.nishikaze-entry-content .wp-block-code,
.editor-styles-wrapper pre,
.editor-styles-wrapper .wp-block-code {
  margin: 1.5em 0;
  padding: 16px 18px;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}

/* 目次ブロック（プラグイン等） */
.nishikaze-entry-content .blog-toc {
  margin-bottom: 32px;
}
