/* ============================
   Buttons
============================ */
/* 塗り・線ボタン */
.btn-purple-large a,
.wp-block-button.is-style-btn-purple-large .wp-block-button__link {
  margin-block: 0.5rem;
  background: #8052CB;
  color: #fff;
  padding: 19px 60px;
  font-size: 1.15rem;
  transition: all 0.3s;
}

@media (any-hover: hover) {
  .btn-purple-large a:hover,
  .wp-block-button.is-style-btn-purple-large .wp-block-button__link:hover {
    opacity: 0.8;
    text-decoration: none;
  }
}

.btn-line-pink-large a,
.wp-block-button.is-style-btn-line-pink-large .wp-block-button__link {
  margin-block: 0.5rem;
  background: #fff;
  color: #d9799f;
  border: 1px solid currentColor;
  padding: 19px 60px;
  font-size: 1.15rem;
  transition: all 0.3s;
}

@media (any-hover: hover) {
  .btn-line-pink-large a:hover,
  .wp-block-button.is-style-btn-line-pink-large .wp-block-button__link:hover {
    border-color: #d9799f;
    background: #d9799f;
    color: #fff;
    text-decoration: none;
  }
}

.btn-line-purple-large a,
.wp-block-button.is-style-btn-line-purple-large .wp-block-button__link {
  margin-block: 0.5rem;
  background: #fff;
  color: #8052CB;
  border: 1px solid currentColor;
  padding: 19px 60px;
  font-size: 1.15rem;
  transition: all 0.3s;

}

@media (any-hover: hover) {
  .btn-line-purple-large a:hover,
  .wp-block-button.is-style-btn-line-purple-large .wp-block-button__link:hover {
    border-color: #8052CB;
    background: #8052CB;
    color: #fff;
    text-decoration: none;
  }
}

/* small */
.btn-purple-small a,
.wp-block-button.is-style-btn-purple-small .wp-block-button__link {
  margin-block: 0.5rem;
  background: #8052CB;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s;
}

@media (any-hover: hover) {
  .btn-purple-small a:hover,
  .wp-block-button.is-style-btn-purple-small .wp-block-button__link:hover {
    opacity: 0.8;
    text-decoration: none;
  }
}

.btn-pink-small a,
.wp-block-button.is-style-btn-pink-small .wp-block-button__link {
  margin-block: 0.5rem;
  background: #F78DA7;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s;

}

@media (any-hover: hover) {
  .btn-pink-small a:hover,
  .wp-block-button.is-style-btn-pink-small .wp-block-button__link:hover {
    opacity: 0.8;
    text-decoration: none;
  }
}

.btn-line-pink-small a,
.wp-block-button.is-style-btn-line-pink-small .wp-block-button__link {
  margin-block: 0.5rem;
  background: #fff;
  color: #d9799f;
  border: 1px solid currentColor;
  font-size: 16px;
  transition: all 0.3s;
}

@media (any-hover: hover) {
  .btn-line-pink-small a:hover,
  .wp-block-button.is-style-btn-line-pink-small .wp-block-button__link:hover {
    border-color: #d9799f;
    background: #d9799f;
    color: #fff;
    text-decoration: none;
  }
}

.btn-line-purple-small a,
.wp-block-button.is-style-btn-line-purple-small .wp-block-button__link {
  margin-block: 0.5rem;
  background: #fff;
  color: #8052CB;
  border: 1px solid currentColor;
  font-size: 16px;
  transition: all 0.3s;
}

@media (any-hover: hover) {
  .btn-line-purple-small a:hover,
  .wp-block-button.is-style-btn-line-purple-small .wp-block-button__link:hover {
    border-color: #8052CB;
    background: #8052CB;
    color: #fff;
    text-decoration: none;
  }
}


@media screen and (max-width: 640px) {
 
}

/* ============================
   見出し
============================ */

.wp-block-heading[class*="is-style-heading"]{
  margin: 0 0 2rem;
  line-height: 1.2;
  text-transform: none;
}

/* ============= heading1
   大きめ・英字は大文字・広めの字間  */
.wp-block-heading.is-style-heading1{
  font-family: "Barlow Condensed", sans-serif;
  color: #1d2333;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 1;
  margin-bottom: 0;
}
.wp-block-heading.is-style-heading1 + p,
.editor-styles-wrapper .wp-block-heading.is-style-heading1 + .wp-block-paragraph {
  color: #9197A5;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1;
  margin-top: 7px;
  
}

/* ============= heading2
   ピンク枠の角丸ラベル（背景なし） */
.wp-block-heading.is-style-heading2{
  font-family: "Barlow Condensed", sans-serif;
  color: #1d2333;
  font-size: 30px;
  font-weight: 700;
  border: 2px solid #F78DA7;
  border-radius: 10px;
  padding: 10px 18px;
  background: #fff; /* 背景を白にしたくなければ transparent に */
}

/* ============= heading3
   下線タイプ（淡いピンクのライン） */
.wp-block-heading.is-style-heading3{
  font-family: "Barlow Condensed", sans-serif;
  color: #1d2333;
  font-size: 26px;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid #F78DA7;
}

/* ============= heading4
   ピンク塗りつぶしバッジ（白文字） */
.wp-block-heading.is-style-heading4{
  font-family: "Barlow Condensed", sans-serif;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  background: #F78DA7;
  border-radius: 10px;
  padding: 9px 18px;
}

/* ============= heading5
   左アクセントバー（縦棒） */
.wp-block-heading.is-style-heading5{
  font-family: "Barlow Condensed", sans-serif;
  color: #1d2333;
  font-size: 22px;
  font-weight: 700;
  position: relative;
  padding-left: 18px;
}
.wp-block-heading.is-style-heading5::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 100%;          /* 文字高さに追従する縦棒 */
  transform: translateY(-50%);
  background: #F78DA7;
  border-radius: 10px;     /* 端を丸く */
}

/* ============= heading6
   小さめ・シンプル */
.wp-block-heading.is-style-heading6{
  font-family: "Barlow Condensed", sans-serif;
  color: #1d2333;
  font-size: 20px;
  font-weight: 700;
}
/* ============================
   注意書き
============================ */
/* 重要項目　大 */
.wp-block-group.is-style-panel-important-large {
  background: #FFF3F6;
  margin-top: 2rem;
  padding: clamp(20px, calc(50 / 1440 * 100vw), 50px);

}
.wp-block-group.is-style-panel-important-large .wp-block-heading {
  color: #1d2333;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  margin-bottom: 22px;
  padding-bottom: 10px;
  margin-top: 0;
  border-bottom: 1px solid #F78DA7;
}
.wp-block-group.is-style-panel-important-large p { 
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 0;
}
.wp-block-group.is-style-panel-important-large p + p { margin-top: 1rem; }

/* 重要項目　小 */
.wp-block-group.is-style-panel-important-small {
  background: #FFF3F6;
  margin-top: 2rem;
  padding: 32px clamp(32px, calc(50 / 1440 * 100vw), 50px);

}
.wp-block-group.is-style-panel-important-small .wp-block-heading {
  color: #1d2333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  margin-bottom: 16px;
  margin-top: 0;
}
.wp-block-group.is-style-panel-important-small p { 
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 0;
}
.wp-block-group.is-style-panel-important-small p + p { margin-top: 1rem; }
/* 注記項目　大 */
.wp-block-group.is-style-panel-note-large {
  background: #fff;
  margin-top: 2rem;
  padding: clamp(20px, calc(50 / 1440 * 100vw), 50px);
  border-radius: 6px;
  border: 1px solid #E32A2A;

}
.wp-block-group.is-style-panel-note-large .wp-block-heading {
  color: #E32A2A;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  margin-bottom: 22px;
  padding-bottom: 10px;
  margin-top: 0;
  border-bottom: 1px solid #E32A2A;
}
.wp-block-group.is-style-panel-note-large p { 
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 0;
}
.wp-block-group.is-style-panel-note-large p + p { margin-top: 1rem; }

/* 注記項目　小 */
.wp-block-group.is-style-panel-note-small {
  background: #fff;
  margin-top: 2rem;
  padding: 32px clamp(32px, calc(50 / 1440 * 100vw), 50px);
  border-radius: 6px;
  border: 1px solid #E32A2A;

}
.wp-block-group.is-style-panel-note-small .wp-block-heading {
  color: #E32A2A;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  margin-bottom: 16px;
  margin-top: 0;
}
.wp-block-group.is-style-panel-note-small p { 
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 0;
}
.wp-block-group.is-style-panel-note-small p + p { margin-top: 1rem; }

/* ============================
   見出しブロックスタイルの優先指定
   .prose のデフォルト装飾をリセット後、
   各スタイルに必要な装飾だけを再適用
============================ */
.prose .wp-block-heading.is-style-heading1,
.prose .wp-block-heading.is-style-heading2,
.prose .wp-block-heading.is-style-heading3,
.prose .wp-block-heading.is-style-heading4,
.prose .wp-block-heading.is-style-heading5,
.prose .wp-block-heading.is-style-heading6,
.editor-styles-wrapper .wp-block-heading.is-style-heading1,
.editor-styles-wrapper .wp-block-heading.is-style-heading2,
.editor-styles-wrapper .wp-block-heading.is-style-heading3,
.editor-styles-wrapper .wp-block-heading.is-style-heading4,
.editor-styles-wrapper .wp-block-heading.is-style-heading5,
.editor-styles-wrapper .wp-block-heading.is-style-heading6 {
  display: block;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.prose .wp-block-heading.is-style-heading1::before,
.prose .wp-block-heading.is-style-heading1::after,
.prose .wp-block-heading.is-style-heading2::before,
.prose .wp-block-heading.is-style-heading2::after,
.prose .wp-block-heading.is-style-heading3::before,
.prose .wp-block-heading.is-style-heading3::after,
.prose .wp-block-heading.is-style-heading4::before,
.prose .wp-block-heading.is-style-heading4::after,
.prose .wp-block-heading.is-style-heading5::before,
.prose .wp-block-heading.is-style-heading5::after,
.prose .wp-block-heading.is-style-heading6::before,
.prose .wp-block-heading.is-style-heading6::after,
.editor-styles-wrapper .wp-block-heading.is-style-heading1::before,
.editor-styles-wrapper .wp-block-heading.is-style-heading1::after,
.editor-styles-wrapper .wp-block-heading.is-style-heading2::before,
.editor-styles-wrapper .wp-block-heading.is-style-heading2::after,
.editor-styles-wrapper .wp-block-heading.is-style-heading3::before,
.editor-styles-wrapper .wp-block-heading.is-style-heading3::after,
.editor-styles-wrapper .wp-block-heading.is-style-heading4::before,
.editor-styles-wrapper .wp-block-heading.is-style-heading4::after,
.editor-styles-wrapper .wp-block-heading.is-style-heading5::before,
.editor-styles-wrapper .wp-block-heading.is-style-heading5::after,
.editor-styles-wrapper .wp-block-heading.is-style-heading6::before,
.editor-styles-wrapper .wp-block-heading.is-style-heading6::after {
  content: none;
  display: none;
}

/* 見出し2：ピンク枠 */
.prose .wp-block-heading.is-style-heading2,
.editor-styles-wrapper .wp-block-heading.is-style-heading2 {
  padding: 10px 18px;
  border: 2px solid #f78da7;
  border-radius: 10px;
  background: #fff;
}

/* 見出し3：ピンク下線 */
.prose .wp-block-heading.is-style-heading3,
.editor-styles-wrapper .wp-block-heading.is-style-heading3 {
  padding-bottom: 14px;
  border-bottom: 1px solid #f78da7;
}

/* 見出し4：ピンク塗り */
.prose .wp-block-heading.is-style-heading4,
.editor-styles-wrapper .wp-block-heading.is-style-heading4 {
  padding: 9px 18px;
  border-radius: 10px;
  background: #f78da7;
}

/* 見出し5：左アクセントバー */
.prose .wp-block-heading.is-style-heading5,
.editor-styles-wrapper .wp-block-heading.is-style-heading5 {
  position: relative;
  padding-left: 18px;
}

.prose .wp-block-heading.is-style-heading5::before,
.editor-styles-wrapper .wp-block-heading.is-style-heading5::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 100%;
  transform: translateY(-50%);
  border-radius: 10px;
  background: #f78da7;
}
