@charset "utf-8";

/*----------------------------------
ブロックエディタ想定/「デフォルト記事生成CSS
見出し
リスト
画像／ギャラリー
カラム
ボタン
引用・コード
テーブル
文字サイズ
---------------------------------*/

.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #222;
}

.entry-content > * {
  margin-bottom: 1.8em;
}
.entry-content .has-text-align-left {
  text-align: left;
}

.entry-content .has-text-align-center {
  text-align: center;
}

.entry-content .has-text-align-right {
  text-align: right;
}
.entry-content .has-text-align-center > * {
  margin-left: auto;
  margin-right: auto;
}
/*----- 見出し -----*/
.entry-content h2 {
  font-size: 28px;
  margin: 2.5em 0 1em;
  padding-left: 12px;
  border-left: 4px solid #000;
}

.entry-content h3 {
  font-size: 24px;
  margin: 2em 0 0.8em;
}

.entry-content h4 {
  font-size: 20px;
  margin: 1.8em 0 0.6em;
}
.entry-content h5 {
  font-size: 18px;
  margin: 1.8em 0 0.6em;
}
.entry-content h6 {
  font-size: 16px;
  margin: 1.8em 0 0.6em;
}
.wp-block-column > h2:first-child {
  margin-top: 0;
}

.wp-block-column > h3:first-child {
  margin-top: 0;
}

.wp-block-column > h4:first-child {
  margin-top: 0;
}
.entry-content p {
  margin: 0 0 1.6em;
}

.entry-content strong {
  font-weight: 700;
}

/*------ リスト  ------*/
.entry-content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 1.6em 0;
}

.entry-content ul li {
  margin-bottom: 0.6em;
list-style: disc;
}
.entry-content ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin: 1.6em 0;
}

.entry-content ol li {
  margin-bottom: 0.6em;
list-style: decimal;
}
/*入れ子対応（よくある事故防止）*/
.entry-content ul ul {
  list-style: circle;
  margin-top: 0.6em;
}

.entry-content ol ol {
  list-style: lower-alpha;
  margin-top: 0.6em;
}
/*ブロックエディタ（wp-block-list）対応*/
.wp-block-list {
  padding-left: 1.5em;
}

.wp-block-list li {
  list-style-position: outside;
}
/*----- 画像 -----*/
.entry-content img {/*画像*/
  max-width: 100%;
  height: auto;
}

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

.entry-content figcaption {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 0.5em;
}
.entry-content .has-text-align-center figure {
  margin-left: auto;
  margin-right: auto;
}

.entry-content .has-text-align-right figure {
  margin-left: auto;
  margin-right: 0;
}

.entry-content .has-text-align-left figure {
  margin-left: 0;
  margin-right: auto;
}
/*----- ギャラリー -----*/
.wp-block-gallery {
  display: grid;
  gap: 16px;
}

.wp-block-gallery.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wp-block-gallery img {
  width: 100%;
  height: auto;
}
/*------ カラム  ------*/
.wp-block-columns {
  display: flex;
  gap: 24px;
  margin: 2.5em 0;
}
@media screen and (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column;
  }
}
.wp-block-column {
  flex: 1;
}

.wp-block-columns.is-vertically-aligned-center {
  align-items: center;
}
.wp-block-column.is-vertically-aligned-top {
  align-self: flex-start;
}

.wp-block-column.is-vertically-aligned-center {
  align-self: center;
}

.wp-block-column.is-vertically-aligned-bottom {
  align-self: flex-end;
}
/*カラム幅指定（管理画面の％指定対応）*/
.wp-block-column[style*="flex-basis"] {
  max-width: 100%;
}

.wp-block-column.has-background {
  padding: 24px;
}
/* 背景色ありカラムの余白調整*/
@media screen and (max-width: 768px) {
  .wp-block-column.has-background {
    padding: 16px;
  }
}
/*2〜4カラム時の最小幅制御（崩れ防止）*/
.wp-block-columns {
  flex-wrap: wrap;
}

.wp-block-column {
  min-width: 240px;
}
/*カラム間余白バリエーション*/

.wp-block-columns.is-style-narrow {
  gap: 16px;
}

.wp-block-columns.is-style-wide {
  gap: 48px;
}

/*SPで2カラム維持したい場合*/
@media screen and (max-width: 768px) {
  .wp-block-columns.keep-2col {
    flex-wrap: nowrap;
  }

  .wp-block-columns.keep-2col .wp-block-column {
    width: 50%;
  }
}

.entry-content .alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/*alignwide / alignfull 対応*/
.entry-content .alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
/*枠線付きカラム*/
.wp-block-column.is-style-bordered {
  border: 1px solid #ddd;
  padding: 24px;
}

/*画像＋テキスト用プリセット　横並び・中央揃え（基本形）*/
.wp-block-columns.is-style-media-text {
  align-items: center;
  gap: 40px;
}

@media screen and (max-width: 768px) {
  .wp-block-columns.is-style-media-text {
    gap: 24px;
  }
}
/*画像をはみ出させたい場合（デザイン用）*/
.wp-block-columns.is-style-media-overflow .wp-block-column:first-child img {
  max-width: 120%;
}

@media screen and (max-width: 768px) {
  .wp-block-columns.is-style-media-overflow .wp-block-column:first-child img {
    max-width: 100%;
  }
}

/*画像右・テキスト左（逆配置）*/
.wp-block-columns.is-style-media-reverse {
  flex-direction: row-reverse;
}

@media screen and (max-width: 768px) {
  .wp-block-columns.is-style-media-reverse {
    flex-direction: column;
  }
}
/*画像フル幅＋テキスト枠付き（コーポレート向け）*/
.wp-block-columns.is-style-media-card .wp-block-column {
  padding: 24px;
}

.wp-block-columns.is-style-media-card .wp-block-column:last-child {
  background: #f7f7f7;
}
/*画像の余白事故防止*/
.wp-block-column img {
  display: block;
}

/*------ ボタン  ------*/
.wp-block-button__link {
  display: inline-block;
  padding: 12px 32px;
  background: #323232;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: opacity 0.3s;
}
.wp-block-button.has-custom-width {
  margin-left: auto;
  margin-right: auto;
}

.wp-block-button.has-custom-width .wp-block-button__link {
  width: 100%;
  display: block;
  text-align: center;
}

.wp-block-button__width-25 { width: 25%; }
.wp-block-button__width-50 { width: 50%; }
.wp-block-button__width-75 { width: 75%; }
.wp-block-button__width-100 { width: 100%; }

@media screen and (max-width: 768px) {
  .wp-block-button.has-custom-width {
    width: 100%;
  }
}
.wp-block-button__link:hover {
  opacity: 0.8;
}

.entry-content .has-text-align-center .wp-block-button {
  justify-content: center;
}

.entry-content .has-text-align-right .wp-block-button {
  justify-content: flex-end;
}


.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.wp-block-button {
  margin: 0.5em 0;
}

/* 左寄せ（デフォルト） */
.wp-block-buttons.is-content-justification-left {
  justify-content: flex-start;
}

/* 中央寄せ */
.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

/* 右寄せ */
.wp-block-buttons.is-content-justification-right {
  justify-content: flex-end;
}

/*------ 引用 ・コード ------*/
.entry-content blockquote {
  padding: 1.5em;
  background: #f5f5f5;
  border-left: 4px solid #000;
}
.entry-content pre {
  padding: 1.2em;
  background: #f4f4f4;
  overflow-x: auto;
}
.entry-content code {
  background: #eee;
  padding: 0.2em 0.4em;
}

/*------ テーブル ------*/
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 14px 16px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.entry-content th {
  background: #f7f7f7;
  font-weight: 600;
  text-align: left;
}
/*SP対応（横スクロール）*/
.entry-content .wp-block-table {
  overflow-x: auto;
}

.entry-content .wp-block-table table {
  min-width: 600px;
}

.entry-content td p:last-child {/*セル内テキスト調整*/
  margin-bottom: 0;
}
.entry-content table:last-child {/*表の上下余白事故防止*/
  margin-bottom: 0;
}

.entry-content thead th {/*テーブル見出し行（thead対応）*/
  background: #eee;
}

.entry-content table.is-style-vertical th {/*縦型テーブル（FAQ・会社概要向け）*/
  width: 30%;
  background: #f5f5f5;
}
.entry-content td.is-align-right {/*右寄せ*/
  text-align: right;
}

/*------ 文字サイズ ------*/
.entry-content .has-x-large-font-size {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.6;
  font-weight: 600;
}

.entry-content .has-large-font-size {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.7;
  font-weight: 500;
}

.entry-content .has-medium-font-size {
  font-size: 16px;
  line-height: 1.8;
}

.entry-content .has-small-font-size {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.entry-content .has-background {
  padding: 1.4em 1.6em;
}

.entry-content [class*="has-"][class*="-font-size"].has-background {
  border-radius: 4px;
}

.entry-content [class*="has-"][class*="-font-size"] > *:last-child {
  margin-bottom: 0;
}
/*背景色用クラス*/
.has-black-background-color { background-color: #000000; }
.has-cyan-bluish-gray-background-color { background-color: #abb8c3; }
.has-white-background-color { background-color: #ffffff; }
.has-pale-pink-background-color { background-color: #f78da7; }
.has-vivid-red-background-color { background-color: #cf2e2e; }
.has-luminous-vivid-orange-background-color { background-color: #ff6900; }
.has-luminous-vivid-amber-background-color { background-color: #fcb900; }
.has-light-green-cyan-background-color { background-color: #7bdcb5; }
.has-vivid-green-cyan-background-color { background-color: #00d084; }
.has-pale-cyan-blue-background-color { background-color: #8ed1fc; }
.has-vivid-cyan-blue-background-color { background-color: #0693e3; }
.has-vivid-purple-background-color { background-color: #9b51e0; }

/*キストカラー用クラス*/
.has-black-color { color: #000000; }
.has-cyan-bluish-gray-color { color: #abb8c3; }
.has-white-color { color: #ffffff; }
.has-pale-pink-color { color: #f78da7; }
.has-vivid-red-color { color: #cf2e2e; }
.has-luminous-vivid-orange-color { color: #ff6900; }
.has-luminous-vivid-amber-color { color: #fcb900; }
.has-light-green-cyan-color { color: #7bdcb5; }
.has-vivid-green-cyan-color { color: #00d084; }
.has-pale-cyan-blue-color { color: #8ed1fc; }
.has-vivid-cyan-blue-color { color: #0693e3; }
.has-vivid-purple-color { color: #9b51e0; }

.entry-content .has-background {
  padding: 1.4em 1.6em;
}