@charset "utf-8";
/*
  Editor Styles - コンテンツ共通スタイル
  管理画面エディタ (.editor-styles-wrapper)
  フロントエンド (.article__content, .page-content)
*/

:root {
  --ec: .editor-styles-wrapper, .article__content, .page-content;
}


/* ====================================
  Editor Base
==================================== */

.editor-styles-wrapper {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.editor-styles-wrapper .wp-block { max-width: 800px; }
.editor-styles-wrapper .wp-block[data-align="wide"] { max-width: 1000px; }
.editor-styles-wrapper .wp-block[data-align="full"] { max-width: none; }


/* ====================================
  Typography
==================================== */

:is(.editor-styles-wrapper, .article__content, .page-content) h1,
:is(.editor-styles-wrapper, .article__content, .page-content) h2,
:is(.editor-styles-wrapper, .article__content, .page-content) h3,
:is(.editor-styles-wrapper, .article__content, .page-content) h4,
:is(.editor-styles-wrapper, .article__content, .page-content) h5,
:is(.editor-styles-wrapper, .article__content, .page-content) h6 {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-weight: 700;
  color: #111111;
  line-height: 1.4;
}

/* H2 — dark bg + brand accent */
:is(.editor-styles-wrapper, .article__content, .page-content) h2 {
  width: 100%;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 3.5em 0 0.75em;
  padding: 14px 20px;
  background: #111111;
  color: #ffffff;
  border-left: 6px solid #fbbf24;
  border-radius: 4px;
}

/* H3 — brand left border */
:is(.editor-styles-wrapper, .article__content, .page-content) h3 {
  width: 95%;
  font-size: 20px;
  font-weight: 700;
  margin: 2em auto 0.6em;
  padding: 4px 0 4px 10px;
  border-left: 6px solid #fbbf24;
  color: #111111;
}

/* H4–H6 */
:is(.editor-styles-wrapper, .article__content, .page-content) h4,
:is(.editor-styles-wrapper, .article__content, .page-content) h5,
:is(.editor-styles-wrapper, .article__content, .page-content) h6 {
  width: 94%;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 1.75em 0 0.5em;
}

:is(.editor-styles-wrapper, .article__content, .page-content) p {
  width: 94%;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 1.5em;
  color: #111111;
}
:is(.editor-styles-wrapper, .article__content, .page-content) p:last-child {
  margin-bottom: 0;
}

/* リンク */
:is(.editor-styles-wrapper, .article__content, .page-content) a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37,99,235,0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
:is(.editor-styles-wrapper, .article__content, .page-content) a:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}

/* Mark / Highlight */
:is(.editor-styles-wrapper, .article__content, .page-content) mark {
  background: linear-gradient(to bottom, transparent 50%, rgba(251,191,36,0.45) 50%);
  color: inherit;
  padding: 0 2px;
}


/* ====================================
  List
==================================== */

:is(.editor-styles-wrapper, .article__content, .page-content) ul {
  width: 94%;
  margin: 1.5em auto;
  list-style: none;
  padding-left: 0;
}
:is(.editor-styles-wrapper, .article__content, .page-content) ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
  line-height: 1.8;
  font-size: 15px;
  color: #111111;
}
:is(.editor-styles-wrapper, .article__content, .page-content) ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: #fbbf24;
  border-radius: 50%;
}

:is(.editor-styles-wrapper, .article__content, .page-content) ol {
  list-style: none;
  counter-reset: ol-counter;
  padding-left: 0;
  margin-bottom: 1.5em;
}
:is(.editor-styles-wrapper, .article__content, .page-content) ol li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.5em;
  line-height: 1.8;
  font-size: 15px;
  color: #111111;
}
:is(.editor-styles-wrapper, .article__content, .page-content) ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.4em;
  height: 1.4em;
  background: #111111;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4em;
  text-align: center;
  border-radius: 50%;
}


/* ====================================
  Image
==================================== */

:is(.editor-styles-wrapper, .article__content, .page-content) img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
}
:is(.editor-styles-wrapper, .article__content, .page-content) figure {
  margin: 24px 0;
}
:is(.editor-styles-wrapper, .article__content, .page-content) figcaption {
  margin-top: 8px;
  font-size: 12.8px;
  color: #888888;
  text-align: center;
}


/* ====================================
  Blockquote
==================================== */

:is(.editor-styles-wrapper, .article__content, .page-content) blockquote {
  position: relative;
  border-left: 4px solid #fbbf24;
  background: #f9f9f9;
  padding: 1.25em 1.5em 1.25em 1.75em;
  margin: 2em 0;
  border-radius: 0 6px 6px 0;
}
:is(.editor-styles-wrapper, .article__content, .page-content) blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 14px;
  font-size: 56px;
  color: #fbbf24;
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.6;
}
:is(.editor-styles-wrapper, .article__content, .page-content) blockquote p {
  color: #444444;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.9;
}


/* ====================================
  Separator
==================================== */

/* --- デフォルト: 中央グラデーション線 --- */
:is(.editor-styles-wrapper, .article__content, .page-content) hr,
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator {
  border: none;
  height: 1px;
  width: 60%;
  margin: 3em auto;
  background: linear-gradient(to right, transparent, #e5e5e5 20%, #fbbf24 50%, #e5e5e5 80%, transparent);
  position: relative;
}

/* --- Wide: 全幅ライン --- */
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator.is-style-wide,
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator[data-align="wide"] {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin: 3em 0;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator.is-style-wide::after,
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator[data-align="wide"]::after {
  content: none;
}

/* --- Dots: ◆ 中央装飾 --- */
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator.is-style-dots {
  background: none;
  border: none;
  height: auto;
  width: auto;
  text-align: center;
  line-height: 1;
  margin: 3em auto;
  overflow: visible;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator.is-style-dots::before {
  content: '◆ ◆ ◆';
  font-size: 10px;
  color: #fbbf24;
  letter-spacing: 0.7em;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator.is-style-dots::after {
  content: none;
}

/* --- デフォルト中央ダイヤモンドアクセント --- */
:is(.editor-styles-wrapper, .article__content, .page-content) hr::after,
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-separator:not(.is-style-dots):not(.is-style-wide)::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 6px;
  background: #fbbf24;
}


/* ====================================
  Table
==================================== */

:is(.editor-styles-wrapper, .article__content, .page-content) table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
}
:is(.editor-styles-wrapper, .article__content, .page-content) th,
:is(.editor-styles-wrapper, .article__content, .page-content) td {
  padding: 16px;
  border: 1px solid #e5e5e5;
  text-align: left;
}
:is(.editor-styles-wrapper, .article__content, .page-content) th {
  background: #f5f5f5;
  font-weight: 700;
  color: #111111;
  border-top: 2px solid #fbbf24;
}
:is(.editor-styles-wrapper, .article__content, .page-content) tr:nth-child(even) td {
  background: #f5f5f5;
}


/* ====================================
  Code
==================================== */

:is(.editor-styles-wrapper, .article__content, .page-content) code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.875em;
  background: #f0f4ff;
  color: #2563eb;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  border: 1px solid #dbeafe;
}
:is(.editor-styles-wrapper, .article__content, .page-content) pre {
  background: #1e1e2e;
  padding: 1.4em 1.6em;
  overflow-x: auto;
  margin: 1.75em 0;
  border-radius: 8px;
  border-left: 4px solid #fbbf24;
}
:is(.editor-styles-wrapper, .article__content, .page-content) pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.8;
}


/* ====================================
  WordPress Blocks
==================================== */

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-button__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: all 0.25s ease;
}

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-button.is-style-fill .wp-block-button__link,
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: #fbbf24;
  color: #111111;
  border: none;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: #facc15;
}

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #111111;
  border: 2px solid #e5e5e5;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #111111;
  color: #ffffff;
}

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-group.has-background {
  padding: 32px;
  border-radius: 8px;
}

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-columns {
  gap: 32px;
  margin-bottom: 24px;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-column {
  margin-bottom: 0;
}

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-cover {
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-cover p {
  color: #ffffff;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-cover h2 {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.4);
}

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-media-text {
  gap: 32px;
  margin: 32px 0;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-media-text__media img {
  border-radius: 8px;
}

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-gallery {
  gap: 16px;
  margin: 24px 0;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-gallery .wp-block-image {
  border-radius: 8px;
  overflow: hidden;
}

:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-embed {
  margin: 32px 0;
}
:is(.editor-styles-wrapper, .article__content, .page-content) .wp-block-embed__wrapper {
  border-radius: 8px;
  overflow: hidden;
}
