/* ============================================
   wp-content: ビジュアルエディター出力スタイル
   使い方: the_content() を <div class="wp-content"> で囲む
============================================ */

/* ----------------------------------------
   見出し
---------------------------------------- */
.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
  font-weight: 700;
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.75em;
	position:relative;
}

.wp-content h1 {
	font-size: 28px;
	border-left:4px solid #3c3c3c;
	padding-left:1em;
}
@media screen and (max-width: 768px) {
	.wp-content h1 {
	font-size: 20px;
	padding-left:0.5em;
}
}
.wp-content h2 {
	font-size: 24px;
	border-left:2px double #3c3c3c;
	padding-left:1em;
}
@media screen and (max-width: 768px) {
	.wp-content h2 {
	font-size: 18px;
	padding-left:0.5em;
}
}
.wp-content h3 {
	font-size: 20px;
	border-left:4px dashed #3c3c3c;
	padding-left:1em;
}
@media screen and (max-width: 768px) {
	.wp-content h3 {
	font-size: 16px;
	padding-left:0.5em;
}
}
.wp-content h4 {
	font-size: 18px;
	border-bottom:1px solid #3c3c3c;
	padding-bottom:0.4em;
}
@media screen and (max-width: 768px) {
	.wp-content h4 {
	font-size: 16px;
}
}
.wp-content h5 {
	font-size: 16px;
	border-bottom:1px dashed #3c3c3c;
	padding-bottom:0.4em;
}
.wp-content h6 {
	font-size: 16px;
}

/* ----------------------------------------
   本文
---------------------------------------- */
.wp-content p {
  margin-bottom: 1.75em;
  line-height: 1.9;
}

.wp-content strong { font-weight: 700; }
.wp-content em     { font-style: italic; }
.wp-content u      { text-decoration: underline; }

.wp-content s,
.wp-content del {
  text-decoration: line-through;
  opacity: 0.6;
}

/* ----------------------------------------
   リンク
---------------------------------------- */
.wp-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-content a:hover {
  opacity: 0.7;
}

/* ----------------------------------------
   リスト
---------------------------------------- */
.wp-content ul,
.wp-content ol {
  padding-left: 1.75em;
  margin-bottom: 1.75em;
  line-height: 1.9;
}

.wp-content ul { list-style-type: disc; }
.wp-content ol { list-style-type: decimal; }

.wp-content ul ul { list-style-type: circle; }
.wp-content ul ul ul { list-style-type: square; }

.wp-content li {
  margin-bottom: 0.4em;
}

/* ----------------------------------------
   引用
---------------------------------------- */
.wp-content blockquote {
  border-left: 4px solid #ccc;
  padding: 16px 20px;
  margin: 2em 0;
  color: #666;
  font-style: italic;
  background: #f9f9f9;
}

.wp-content blockquote p:last-child {
  margin-bottom: 0;
}

.wp-content blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 13px;
  font-style: normal;
  color: #999;
}

/* ----------------------------------------
   コード
---------------------------------------- */
.wp-content code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875em;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
}

.wp-content pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  background: #f0f0f0;
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.75em;
  line-height: 1.7;
  white-space: pre;
}

.wp-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* ----------------------------------------
   区切り線
---------------------------------------- */
.wp-content hr,
.wp-content .wp-block-separator {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2.5em 0;
}

.wp-content .wp-block-separator.is-style-wide {
  border-top-width: 2px;
}

.wp-content .wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
}

.wp-content .wp-block-separator.is-style-dots::before {
  content: '···';
  font-size: 20px;
  letter-spacing: 0.5em;
  color: #ccc;
}

/* ----------------------------------------
   画像
---------------------------------------- */
.wp-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wp-content figure {
  margin: 2em 0;
}

.wp-content figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 8px;
}

/* 画像の配置 */
.wp-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.wp-content .alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.wp-content .alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.wp-content .alignnone {
  margin-bottom: 16px;
}

.wp-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-content .alignwide {
  width: calc(100% + 80px);
  max-width: calc(100% + 80px);
  margin-left: -40px;
}

/* ----------------------------------------
   テーブル
---------------------------------------- */
.wp-content table,
.wp-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75em;
  font-size: 14px;
  line-height: 1.7;
}

.wp-content th,
.wp-content td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.wp-content th {
  background: #f5f5f5;
  font-weight: 700;
}

.wp-content .wp-block-table.is-style-stripes tr:nth-child(odd) {
  background: #f9f9f9;
}

.wp-content .wp-block-table.is-style-stripes td {
  border-color: #e0e0e0;
}

/* ----------------------------------------
   ギャラリー
---------------------------------------- */
.wp-content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.75em;
  padding: 0;
  list-style: none;
}

.wp-content .wp-block-gallery .wp-block-image {
  margin: 0;
  flex: 1 1 calc(33.333% - 8px);
  min-width: 150px;
}

.wp-content .wp-block-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ----------------------------------------
   ボタン
---------------------------------------- */
.wp-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.75em;
}

.wp-content .wp-block-button__link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #333;
  color: #fff;
  transition: opacity 0.2s;
}

.wp-content .wp-block-button__link:hover {
  opacity: 0.75;
}

.wp-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  color: #333;
}

/* ----------------------------------------
   カラム
---------------------------------------- */
.wp-content .wp-block-columns {
  display: flex;
  gap: 32px;
  margin-bottom: 1.75em;
}

.wp-content .wp-block-column {
  flex: 1;
  min-width: 0;
}

/* ----------------------------------------
   プルクオート
---------------------------------------- */
.wp-content .wp-block-pullquote {
  border-top: 4px solid #333;
  border-bottom: 4px solid #333;
  padding: 32px 0;
  margin: 2.5em 0;
  text-align: center;
}

.wp-content .wp-block-pullquote blockquote {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: 22px;
  font-style: italic;
}

.wp-content .wp-block-pullquote cite {
  font-size: 13px;
  color: #888;
}

/* ----------------------------------------
   詩（Verse）
---------------------------------------- */
.wp-content .wp-block-verse {
  font-family: inherit;
  font-size: inherit;
  white-space: pre-wrap;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 1.75em;
}

/* ----------------------------------------
   メディアとテキスト
---------------------------------------- */
.wp-content .wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 1.75em;
}

.wp-content .wp-block-media-text.has-media-on-the-right {
  direction: rtl;
}

.wp-content .wp-block-media-text.has-media-on-the-right > * {
  direction: ltr;
}

.wp-content .wp-block-media-text__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ----------------------------------------
   カバー
---------------------------------------- */
.wp-content .wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px;
  margin-bottom: 1.75em;
  color: #fff;
  background: #333;
  overflow: hidden;
}

.wp-content .wp-block-cover__image-background,
.wp-content .wp-block-cover__video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-content .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

/* ----------------------------------------
   グループ / スペーサー
---------------------------------------- */
.wp-content .wp-block-group {
  margin-bottom: 1.75em;
}

.wp-content .wp-block-spacer {
  display: block;
}

/* ----------------------------------------
   文字色・背景色（エディター共通カラー）
---------------------------------------- */
.wp-content .has-text-align-left   { text-align: left; }
.wp-content .has-text-align-center { text-align: center; }
.wp-content .has-text-align-right  { text-align: right; }

.wp-content .has-small-font-size  { font-size: 13px; }
.wp-content .has-normal-font-size { font-size: 16px; }
.wp-content .has-large-font-size  { font-size: 22px; }
.wp-content .has-x-large-font-size { font-size: 30px; }

/* clearfix */
.wp-content::after {
  content: '';
  display: block;
  clear: both;
}
