/* UG Heading 1.1.0 - 見出しデザイン43種 */

/* 共通：文字色（設定で指定した場合のみ変化） */
.ug-heading {
  color: var(--ug-h-color, currentColor);
}

/* 1. 下線 */
body .wp-block-heading.is-style-ug-underline {
  padding-bottom: .35em !important;
  border-bottom: 3px solid var(--ug-h-accent, #2b6cb0) !important;
}

/* 2. 二重下線 */
body .wp-block-heading.is-style-ug-underline-double {
  padding-bottom: .3em !important;
  border-bottom: 6px double var(--ug-h-accent, #2b6cb0) !important;
}

/* 3. 点線下線 */
body .wp-block-heading.is-style-ug-underline-dotted {
  padding-bottom: .3em !important;
  border-bottom: 3px dotted var(--ug-h-accent, #2b6cb0) !important;
}

/* 4. 左ライン */
body .wp-block-heading.is-style-ug-left-border {
  padding-left: .6em !important;
  border-left: 6px solid var(--ug-h-accent, #2b6cb0) !important;
}

/* 5. 左グラデーションライン */
body .wp-block-heading.is-style-ug-left-gradient {
  padding-left: .7em !important;
  background: linear-gradient(to bottom, var(--ug-h-accent, #2b6cb0), var(--ug-h-accent2, #d69e2e)) left center / 6px 100% no-repeat !important;
}

/* 6. 帯（塗りつぶし） */
body .wp-block-heading.is-style-ug-band {
  padding: .4em .8em !important;
  border-radius: 4px !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
  color: #fff !important;
}

/* 7. マーカー */
body .wp-block-heading.is-style-ug-marker {
  padding: 0 .2em !important;
  background: linear-gradient(transparent 60%, var(--ug-h-accent2, #d69e2e) 60%) !important;
}

/* 8. 枠線ボックス */
body .wp-block-heading.is-style-ug-box {
  padding: .5em .8em !important;
  border: 2px solid var(--ug-h-accent, #2b6cb0) !important;
}

/* 9. 角丸ピル */
body .wp-block-heading.is-style-ug-rounded {
  display: inline-block !important;
  padding: .3em 1.1em !important;
  border: 2px solid var(--ug-h-accent, #2b6cb0) !important;
  border-radius: 999px !important;
}

/* 10. 影付きカード */
body .wp-block-heading.is-style-ug-shadow-card {
  padding: .6em .9em !important;
  background: #fff !important;
  border-top: 4px solid var(--ug-h-accent, #2b6cb0) !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12) !important;
}

/* 11. ドット */
body .wp-block-heading.is-style-ug-dot::before {
  content: "" !important;
  display: inline-block !important;
  width: .55em !important;
  height: .55em !important;
  margin-right: .5em !important;
  border-radius: 50% !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
  vertical-align: middle !important;
}

/* 12. チェックマーク */
body .wp-block-heading.is-style-ug-check::before {
  content: "\2714" !important;
  margin-right: .4em !important;
  color: var(--ug-h-accent, #2b6cb0) !important;
}

/* 13. リボン */
body .wp-block-heading.is-style-ug-ribbon {
  display: inline-block !important;
  position: relative !important;
  padding: .3em 1.2em .3em .8em !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
  color: #fff !important;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 50%, 100% 100%, 0 100%) !important;
}

/* 14. 吹き出し */
body .wp-block-heading.is-style-ug-bubble {
  position: relative !important;
  margin-bottom: .9em !important;
  padding: .5em .9em !important;
  background: #f1f5f9 !important;
  border-radius: 8px !important;
}
body .wp-block-heading.is-style-ug-bubble::after {
  content: "" !important;
  position: absolute !important;
  left: 1.2em !important;
  bottom: -10px !important;
  border: 10px solid transparent !important;
  border-top-color: #f1f5f9 !important;
  border-bottom: 0 !important;
}

/* 15. 両側ライン */
body .wp-block-heading.is-style-ug-side-lines {
  text-align: center !important;
}
body .wp-block-heading.is-style-ug-side-lines::before,
body .wp-block-heading.is-style-ug-side-lines::after {
  content: "" !important;
  display: inline-block !important;
  width: 2.5em !important;
  height: 2px !important;
  margin: 0 .7em !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
  vertical-align: middle !important;
}

/* 16. 上下ライン（中央） */
body .wp-block-heading.is-style-ug-top-bottom {
  padding: .4em 0 !important;
  text-align: center !important;
  border-top: 3px solid var(--ug-h-accent, #2b6cb0) !important;
  border-bottom: 3px solid var(--ug-h-accent, #2b6cb0) !important;
}

/* 17. テキストシャドウ */
body .wp-block-heading.is-style-ug-shadow-text {
  text-shadow: 3px 3px 0 var(--ug-h-accent, #2b6cb0) !important;
}

/* 18. グラデーション文字 */
body .wp-block-heading.is-style-ug-gradient-text {
  background: linear-gradient(90deg, var(--ug-h-accent, #2b6cb0), var(--ug-h-accent2, #d69e2e)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* 19. タグ風（大文字） */
body .wp-block-heading.is-style-ug-tag {
  display: inline-block !important;
  padding-bottom: .2em !important;
  font-size: .8em !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  color: var(--ug-h-accent, #2b6cb0) !important;
  border-bottom: 1px solid var(--ug-h-accent, #2b6cb0) !important;
}

/* 20. ダブル枠 */
body .wp-block-heading.is-style-ug-frame {
  padding: .5em .8em !important;
  border: 4px double var(--ug-h-accent, #2b6cb0) !important;
}

body .wp-block-heading.is-style-ug-wavy {
  text-decoration: underline wavy var(--ug-h-accent, #2b6cb0) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 6px !important;
}

body .wp-block-heading.is-style-ug-sticky-note {
  display: inline-block !important;
  padding: 4px 14px !important;
  background: #fff3a3 !important;
  color: #3d3500 !important;
  transform: rotate(-1deg) !important;
}

body .wp-block-heading.is-style-ug-tape {
  position: relative !important;
  display: inline-block !important;
  padding: 2px 16px !important;
  background: #fff !important;
}

body .wp-block-heading.is-style-ug-tape::before,
body .wp-block-heading.is-style-ug-tape::after {
  content: "" !important;
  position: absolute !important;
  width: 40px !important;
  height: 14px !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
  opacity: .35 !important;
}

body .wp-block-heading.is-style-ug-tape::before {
  top: -8px !important;
  left: -6px !important;
  transform: rotate(-6deg) !important;
}

body .wp-block-heading.is-style-ug-tape::after {
  bottom: -8px !important;
  right: -6px !important;
  transform: rotate(-6deg) !important;
}

body .wp-block-heading.is-style-ug-quote-brackets::before {
  content: "\300C" !important;
  color: var(--ug-h-accent, #2b6cb0) !important;
  margin-right: 2px !important;
}

body .wp-block-heading.is-style-ug-quote-brackets::after {
  content: "\300D" !important;
  color: var(--ug-h-accent, #2b6cb0) !important;
  margin-left: 2px !important;
}

body .wp-block-heading.is-style-ug-stripe-band {
  display: inline-block !important;
  padding: 6px 12px !important;
  color: #fff !important;
  background: repeating-linear-gradient(45deg, var(--ug-h-accent, #2b6cb0) 0 8px, #3d7fc4 8px 16px) !important;
}

body .wp-block-heading.is-style-ug-arrow-tab {
  display: inline-block !important;
  padding: 6px 28px 6px 12px !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
  color: #fff !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%) !important;
}

body .wp-block-heading.is-style-ug-neon-glow {
  display: block !important;
  padding: 10px 14px !important;
  background: #0f1f33 !important;
  color: #7fd3ff !important;
  border-radius: 8px !important;
  text-shadow: 0 0 6px #33b5ff, 0 0 14px #33b5ff !important;
}

body .wp-block-heading.is-style-ug-block-3d {
  display: inline-block !important;
  padding: 6px 12px !important;
  background: #fff !important;
  border: 2px solid var(--ug-h-accent, #2b6cb0) !important;
  box-shadow: 4px 4px 0 var(--ug-h-accent, #2b6cb0) !important;
}

body .wp-block-heading.is-style-ug-folded-corner {
  display: inline-block !important;
  padding: 6px 14px !important;
  background: #fff !important;
  border: 0.5px solid #d0d7de !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%) !important;
}

body .wp-block-heading.is-style-ug-diamond-divider {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--ug-h-accent, #2b6cb0) !important;
}

body .wp-block-heading.is-style-ug-diamond-divider::before,
body .wp-block-heading.is-style-ug-diamond-divider::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
}

body .wp-block-heading.is-style-ug-number-badge {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  counter-increment: ug-h !important;
}

body .wp-block-heading.is-style-ug-number-badge::before {
  content: counter(ug-h, decimal-leading-zero) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

body .wp-block-heading.is-style-ug-hand-circle {
  display: inline-block !important;
  padding: 6px 18px !important;
  border: 2px solid var(--ug-h-accent, #2b6cb0) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
}

body .wp-block-heading.is-style-ug-notebook-lines {
  display: inline-block !important;
  line-height: 28px !important;
  padding: 0 8px !important;
  background: repeating-linear-gradient(to bottom, transparent 0 27px, #bcd6f0 27px 28px) !important;
}

body .wp-block-heading.is-style-ug-star-mark::before {
  content: "\2726" !important;
  color: var(--ug-h-accent, #2b6cb0) !important;
  margin-right: .4em !important;
}

body .wp-block-heading.is-style-ug-ticket {
  display: inline-block !important;
  position: relative !important;
  padding: 6px 18px !important;
  background: #fff !important;
  border: 2px dashed var(--ug-h-accent, #2b6cb0) !important;
  border-radius: 6px !important;
}

body .wp-block-heading.is-style-ug-ticket::before,
body .wp-block-heading.is-style-ug-ticket::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #fff !important;
  transform: translateY(-50%) !important;
}

body .wp-block-heading.is-style-ug-ticket::before {
  left: -8px !important;
}

body .wp-block-heading.is-style-ug-ticket::after {
  right: -8px !important;
}

body .wp-block-heading.is-style-ug-ghost-number {
  position: relative !important;
  padding-left: 2px !important;
  counter-increment: ug-h !important;
}

body .wp-block-heading.is-style-ug-ghost-number::before {
  content: counter(ug-h, decimal-leading-zero) !important;
  position: absolute !important;
  left: -2px !important;
  top: -14px !important;
  font-size: 44px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: var(--ug-h-accent, #2b6cb0) !important;
  opacity: .14 !important;
  pointer-events: none !important;
}

body .wp-block-heading.is-style-ug-split-band {
  display: flex !important;
  align-items: stretch !important;
  padding: 6px 12px 6px 0 !important;
  background: #e8f0fa !important;
  color: #0c447c !important;
  counter-increment: ug-h !important;
}

body .wp-block-heading.is-style-ug-split-band::before {
  content: counter(ug-h, decimal-leading-zero) !important;
  display: flex !important;
  align-items: center !important;
  margin-right: 12px !important;
  padding: 6px 12px !important;
  background: var(--ug-h-accent, #2b6cb0) !important;
  color: #fff !important;
}

body .wp-block-heading.is-style-ug-folder-tab {
  display: inline-block !important;
  position: relative !important;
  margin-top: 12px !important;
  padding: 6px 14px !important;
  border: 2px solid var(--ug-h-accent, #2b6cb0) !important;
  border-radius: 6px !important;
}

body .wp-block-heading.is-style-ug-folder-tab::before {
  content: "" !important;
  position: absolute !important;
  top: -13px !important;
  left: -2px !important;
  width: 45% !important;
  height: 10px !important;
  border: 2px solid var(--ug-h-accent, #2b6cb0) !important;
  border-bottom: 0 !important;
  border-radius: 6px 6px 0 0 !important;
  background: #fff !important;
}

body .wp-block-heading.is-style-ug-antique-frame {
  display: inline-block !important;
  padding: 6px 14px !important;
  border: 4px double #8a6d3b !important;
  background: #fbf5e6 !important;
  color: #4a3815 !important;
}

body .wp-block-heading.is-style-ug-retro-pop {
  display: inline-block !important;
  padding: 6px 12px !important;
  background: #ffd23f !important;
  border: 2px solid #111 !important;
  box-shadow: 4px 4px 0 #111 !important;
  color: #111 !important;
  transform: rotate(-2deg) !important;
}

body .wp-block-heading.is-style-ug-slash-bar::before {
  content: "//" !important;
  margin-right: 8px !important;
  color: var(--ug-h-accent, #2b6cb0) !important;
  font-weight: 500 !important;
}

body .wp-block-heading.is-style-ug-pin-memo {
  position: relative !important;
  display: inline-block !important;
  margin-top: 6px !important;
  padding: 12px 14px 6px !important;
  background: #fff !important;
  border: 0.5px solid #d0d7de !important;
  border-radius: 4px !important;
}

body .wp-block-heading.is-style-ug-pin-memo::before {
  content: "" !important;
  position: absolute !important;
  top: -6px !important;
  left: 50% !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #d64545 !important;
  transform: translateX(-50%) !important;
}

body .wp-block-heading.is-style-ug-double-vline {
  padding-left: 12px !important;
  border-left: 3px double var(--ug-h-accent, #2b6cb0) !important;
}

.entry-content,
.post_content,
.wp-block-post-content,
.editor-styles-wrapper {
  counter-reset: ug-h;
}
