/* =========================================================================
   新デザイン ブロックスタイル用CSS
   register_block_style() で登録したスタイルの見た目定義。
   エディタ・フロント両方で読み込まれるため、色は変数に頼らずリテラル値で
   指定している（プロトタイプの :root 変数と同じ値）。
   ========================================================================= */

/* ---- セクション背景 ---- */
.is-style-nd-bg-footer { background: #d3e9f2; }
.is-style-nd-bg-tint   { background: #e8f5fa; }
.is-style-nd-bg-blue   { background: #eef3fb; }
.is-style-nd-bg-pink   { background: #fdf1f6; }
.is-style-nd-bg-dark   { background: #1d2333; color: #ffffff; }
.is-style-nd-bg-dark a { color: #ffffff; }

.is-style-nd-card-white {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(29, 35, 51, .05);
  padding: 26px 32px;
}

/* ---- 見出し ---- */
.is-style-nd-kicker {
  font-family: "Caprasimo", serif;
  font-size: .82rem;
  letter-spacing: .04em;
  color: #35558c;
  text-align: center;
}

.is-style-nd-footer-heading {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  color: #1d2333;
  font-size: .88rem;
  margin-bottom: 6px;
}

.is-style-nd-section-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  text-align: center;
  color: #1d2333;
}

/* ---- ボタン ---- */
.is-style-nd-btn-outline-blue .wp-block-button__link {
  background: transparent;
  color: #35558c;
  border: 2px solid #35558c;
  box-shadow: none;
  padding: 14px 26px;
  font-size: .92rem;
}

.is-style-nd-btn-outline-gray .wp-block-button__link {
  background: transparent;
  color: #5c6478;
  border: 2px solid #d9dfe9;
  box-shadow: none;
  padding: 14px 26px;
  font-size: .92rem;
}

.is-style-nd-btn-blue .wp-block-button__link {
  background: #35558c;
  color: #ffffff;
}

.is-style-nd-btn-lg .wp-block-button__link {
  padding: 19px 60px;
  font-size: 1.15rem;
}

/* ---- 記事下部の案内ボックス ---- */
.is-style-nd-promo-box {
  box-sizing: border-box;
  /* margin-block: 28px; */
  padding: 26px 28px;
  border: 0;
  border-radius: 8px;
  background: #e8f5fa;
  color: #1d2333;
}

.is-style-nd-promo-box > :first-child {
  margin-top: 0;
}

.is-style-nd-promo-box > :last-child {
  margin-bottom: 0;
}

.is-style-nd-promo-box .wp-block-heading {
  margin: 0 0 16px;
  color: #1d2333;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 900;
  line-height: 1.6;
  text-align: left;
}

.is-style-nd-promo-box p {
  margin-block: 0 14px;
  line-height: 1.9;
}

.is-style-nd-promo-box .wp-block-buttons {
  justify-content: flex-start;
  margin-top: 14px;
}

/* ---- 記事下部のお申し込みテキストリンク ---- */
.wp-block-button.is-style-nd-promo-link .wp-block-button__link {
  display: inline-block;
  width: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #b65f86 !important;
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.7;
  text-align: left;
}

.wp-block-button.is-style-nd-promo-link .wp-block-button__link:hover,
.wp-block-button.is-style-nd-promo-link .wp-block-button__link:focus {
  background: transparent !important;
  color: #8f4067 !important;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .is-style-nd-promo-box {
    /* margin-block: 22px; */
    padding: 22px 20px;
  }
}

/* ---- 画像付き案内・記事下部一覧 ---- */
.is-style-nd-promo-box.nd-promo-media > .wp-block-columns {
  gap: clamp(22px, 4vw, 48px);
  margin: 0;
}

.is-style-nd-promo-box .nd-app-stores {
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
  max-width: 520px;
}

.is-style-nd-promo-box .nd-app-stores .wp-block-image {
  margin: 0;
}

.is-style-nd-promo-box .nd-app-stores img {
  display: block;
  width: 100%;
  height: auto;
}

.is-style-nd-promo-box.nd-promo-media > .wp-block-columns > .wp-block-column:last-child .wp-block-image {
  margin: 0 auto;
}

.is-style-nd-promo-box.nd-promo-book-list .wp-block-separator {
  margin-block: 28px;
  border-color: rgba(53, 85, 140, .18);
}

.is-style-nd-promo-box.nd-promo-book-list .wp-block-image {
  margin-inline: auto;
}

@media (max-width: 781px) {
  .is-style-nd-promo-box.nd-promo-media > .wp-block-columns {
    flex-direction: column;
  }

  .is-style-nd-promo-box.nd-promo-media > .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }

  .is-style-nd-promo-box.nd-promo-media > .wp-block-columns > .wp-block-column:last-child {
    order: -1;
  }

  .is-style-nd-promo-box.nd-promo-media > .wp-block-columns > .wp-block-column:last-child img {
    max-height: 300px;
    width: auto !important;
  }
}

/* ---- 案内ボックス見出し ---- */
.prose .wp-block-heading.is-style-nd-promo-heading,
.wp-block-heading.is-style-nd-promo-heading {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: #1d2333;
  font-weight: 900;
  line-height: 1.6;
  text-align: left;
}

.prose .wp-block-heading.is-style-nd-promo-heading::before,
.prose .wp-block-heading.is-style-nd-promo-heading::after,
.wp-block-heading.is-style-nd-promo-heading::before,
.wp-block-heading.is-style-nd-promo-heading::after {
  content: none;
  display: none;
}

h2.wp-block-heading.is-style-nd-promo-heading {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

h3.wp-block-heading.is-style-nd-promo-heading {
  font-size: 1.05rem;
}

h4.wp-block-heading.is-style-nd-promo-heading,
h5.wp-block-heading.is-style-nd-promo-heading {
  font-size: .95rem;
}

/* ---- 新デザイン見出しスタイルのデフォルト装飾リセット ---- */
.prose .wp-block-heading.is-style-nd-kicker,
.prose .wp-block-heading.is-style-nd-footer-heading,
.prose .wp-block-heading.is-style-nd-section-title,
.editor-styles-wrapper .wp-block-heading.is-style-nd-kicker,
.editor-styles-wrapper .wp-block-heading.is-style-nd-footer-heading,
.editor-styles-wrapper .wp-block-heading.is-style-nd-section-title {
  padding: 0;
  border: none;
  background: transparent;
}

.prose .wp-block-heading.is-style-nd-kicker::before,
.prose .wp-block-heading.is-style-nd-kicker::after,
.prose .wp-block-heading.is-style-nd-footer-heading::before,
.prose .wp-block-heading.is-style-nd-footer-heading::after,
.prose .wp-block-heading.is-style-nd-section-title::before,
.prose .wp-block-heading.is-style-nd-section-title::after,
.editor-styles-wrapper .wp-block-heading.is-style-nd-kicker::before,
.editor-styles-wrapper .wp-block-heading.is-style-nd-kicker::after,
.editor-styles-wrapper .wp-block-heading.is-style-nd-footer-heading::before,
.editor-styles-wrapper .wp-block-heading.is-style-nd-footer-heading::after,
.editor-styles-wrapper .wp-block-heading.is-style-nd-section-title::before,
.editor-styles-wrapper .wp-block-heading.is-style-nd-section-title::after {
  content: none;
  display: none;
}


/* ---- 受講生の声リスト ---- */
.is-style-voice-grid { display: block; width: 100%; }

.is-style-voice-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.is-style-voice-grid > .wp-block-group__inner-container > p {
  position: relative; margin: 0; padding: 14px 0 14px 18px;
  border: 0; border-top: 1px solid #d0e8f1; border-radius: 0;
  background: transparent; box-shadow: none; color: #1d2333;
  font-size: .96rem; font-weight: 700; line-height: 1.85;
}

.is-style-voice-grid > .wp-block-group__inner-container > p::before {
  content: ""; position: absolute; top: 1.5em; left: 0;
  width: 7px; height: 1px; background: #eeadc9;
}

.is-style-voice-grid > .wp-block-group__inner-container > p:nth-child(-n + 2) { border-top: 0; }

.editor-styles-wrapper .is-style-voice-grid > .block-editor-block-list__layout {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px;
}

.editor-styles-wrapper .is-style-voice-grid > .block-editor-block-list__layout > .wp-block-paragraph {
  position: relative; margin: 0; padding: 14px 0 14px 18px;
  border: 0; border-top: 1px solid #d0e8f1; border-radius: 0;
  background: transparent; box-shadow: none; color: #1d2333;
  font-size: .96rem; font-weight: 700; line-height: 1.85;
}

.editor-styles-wrapper .is-style-voice-grid > .block-editor-block-list__layout > .wp-block-paragraph::before {
  content: ""; position: absolute; top: 1.5em; left: 0;
  width: 7px; height: 1px; background: #eeadc9;
}

.editor-styles-wrapper .is-style-voice-grid > .block-editor-block-list__layout > .wp-block-paragraph:nth-child(-n + 2) { border-top: 0; }

@media (max-width: 900px) {
  .is-style-voice-grid > .wp-block-group__inner-container,
  .editor-styles-wrapper .is-style-voice-grid > .block-editor-block-list__layout { grid-template-columns: 1fr; }

  .is-style-voice-grid > .wp-block-group__inner-container > p:nth-child(2),
  .editor-styles-wrapper .is-style-voice-grid > .block-editor-block-list__layout > .wp-block-paragraph:nth-child(2) { border-top: 1px solid #d0e8f1; }
}


/* ---- リスト左寄せ ---- */
.is-style-list-left,
.home .is-style-media-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px 24px;
  width: 100%;
}

.is-style-list-left > li,
.home .is-style-media-list > li {
  flex: none;
  width: auto;
}


.is-style-list-left > li {
  position: relative;
  padding-left: 18px;
}

.is-style-list-left > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .9em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #eeadc9;
}
