/* ==========================================================================
   Editor Styles for dream_school (Gutenberg)
   このCSSはブロックエディタのキャンバス内（.editor-styles-wrapper）だけに効きます
   ========================================================================== */

/* ベース（色・フォント・行間） */
.editor-styles-wrapper {
  color: #010101;
  font-family: "Noto Serif JP", serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 段落・見出しの基本 */
.editor-styles-wrapper p {
  margin: 1em 0;
  font-size: 16px;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
  font-weight: 700;
  line-height: 1.3;
  margin: 1.2em 0 0.6em;
  color: #010101;
}

/* あなたの .c-h2 に寄せる（疑似要素も可） */
.editor-styles-wrapper .c-h2 {
  position: relative;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.08em;
  /* エディタはキャンバス幅に依存するので vw より固定値が安定 */
  font-size: 28px;
}
.editor-styles-wrapper .c-h2::after {
  position: absolute;
  content: "";
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: #010101;
}

/* 画像・動画のリセット */
.editor-styles-wrapper img,
.editor-styles-wrapper video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* リンク */
.editor-styles-wrapper a {
  color: inherit;
  text-decoration: none;
}
.editor-styles-wrapper a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* リスト */
.editor-styles-wrapper ul,
.editor-styles-wrapper ol {
  padding-left: 1.2em;
  margin: 1em 0;
}
.editor-styles-wrapper li { margin: 0.3em 0; }

/* 引用 */
.editor-styles-wrapper blockquote {
  border-left: 3px solid #cfa7cd;
  padding-left: 1em;
  color: #333;
  margin: 1.2em 0;
}

/* 区切り線 */
.editor-styles-wrapper hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}

/* Gutenberg の幅（好みで調整） */
.editor-styles-wrapper .wp-block {
  max-width: 720px;        /* 通常幅 */
}
.editor-styles-wrapper .wp-block[data-align="wide"] {
  max-width: 1100px;       /* 幅広 */
}
.editor-styles-wrapper .wp-block[data-align="full"] {
  max-width: none;         /* 全幅 */
}

/* ボタンブロックを .c-button__square-style 風に */
.editor-styles-wrapper .wp-block-button .wp-block-button__link {
  position: relative;
  display: inline-block;
  text-align: center;
  padding: 14px 28px;
  box-shadow: 8px 8px 0 0 rgba(0,0,0,0.16);
  border: 1px solid #fff;
  background-color: #a64a97;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: 0.3s ease;
}
.editor-styles-wrapper .wp-block-button .wp-block-button__link:hover {
  opacity: 0.9;
}
.editor-styles-wrapper .wp-block-button .wp-block-button__link::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 9px;
  background-image: url('../../top/images/sp_arrow.png'); /* 画像パスはテーマ構成に合わせて変更 */
  background-size: 100% 100%;
}

/* 特色テキスト（改行を <br class="u-sp__non-display"> にしたときの見た目を揃える） */
.editor-styles-wrapper .p-feature__text {
  font-size: 16px;
  line-height: 1.7;
}
.editor-styles-wrapper .p-feature__text br.u-sp__non-display {
  /* エディタ上ではとりあえず通常表示。スマホ/PCで出し分ける場合はメディアクエリを追加 */
  display: inline;
}

/* カードのサンプル（必要なら） */
.editor-styles-wrapper .p-feature__card {
  border: 1px solid #eee;
  padding: 16px;
  margin: 16px 0;
}
.editor-styles-wrapper .p-feature__card-tag {
  display: inline-block;
  background: #cfa7cd;
  color: #fff;
  font-weight: 700;
  padding: 4px 8px;
  margin-bottom: 8px;
}
.editor-styles-wrapper .p-feature__card-image img {
  width: 100%;
  height: auto;
}

/* 便利ユーティリティ（必要なら追加） */
/* .editor-styles-wrapper .u-center { text-align: center; }
.editor-styles-wrapper .u-mb-0 { margin-bottom: 0 !important; }
.editor-styles-wrapper .u-mb-16 { margin-bottom: 16px !important; }
.editor-styles-wrapper .u-mt-16 { margin-top: 16px !important; } */
