@charset "UTF-8";
:root {
  --color-white: #fff;
  --color-contrast: #fbf9f3;
  --color-contrast02: #bee8ff;
  --color-contrast03: #9ad8f7;
  --color-accent: #0057aa;
  --color-accent02: #399fff;
  --color-black: #222;
  --color-link: #00f;
  --color-gray: #ccc;
}

@font-face {
  font-family: noto-sans-jp;
  font-weight: normal;
  src: url("../fonts/Noto-Sans-JP/NotoSansJP-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: noto-sans-jp;
  font-weight: bold;
  src: url("../fonts/Noto-Sans-JP/NotoSansJP-Bold.woff") format("woff");
  font-display: swap;
}
/* ビジュアルエディタのフォント変更 */
#tinymce {
  font-family: noto-sans-jp, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
#tinymce .gallery {
  max-width: 700px;
}

.bl-post-cont > * + .bl-post-h2,
#tinymce > * + .bl-post-h2 {
  margin-top: 2.5454545455em;
}
.bl-post-cont > * + .bl-post-h3,
#tinymce > * + .bl-post-h3 {
  margin-top: 2em;
}
.bl-post-cont > * + *,
#tinymce > * + * {
  margin-top: 1.5em !important;
}
.bl-post-cont a,
#tinymce a {
  color: var(--color-link);
  text-decoration: underline;
}
.bl-post-cont .wp-caption,
#tinymce .wp-caption {
  width: 100%;
  max-width: 700px;
}
.bl-post-cont .wp-caption-text,
#tinymce .wp-caption-text {
  display: flex;
  justify-content: center;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--color-gray05);
}
.bl-post-cont .gallery,
#tinymce .gallery {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.5em;
}
.bl-post-cont .gallery.gallery-columns-2,
#tinymce .gallery.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.bl-post-cont .gallery.gallery-columns-3,
#tinymce .gallery.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.bl-post-cont .gallery > br,
#tinymce .gallery > br {
  display: none;
}
.bl-post-cont .gallery-item,
#tinymce .gallery-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  float: revert !important;
  width: revert !important;
  margin-top: 0 !important;
}
.bl-post-cont .gallery-item img,
#tinymce .gallery-item img {
  width: 100%;
  height: 100%;
}
.bl-post-cont .gallery-caption,
#tinymce .gallery-caption {
  margin-top: 0;
}

.bl-post-box * {
  margin-block: 1em;
}

/* 記事内見出し */
.bl-post-h2 {
  padding: 5px 16px 9px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-accent);
}

/* 記事内小見出し */
.bl-post-h3 {
  position: relative;
  padding: 0 0 8px 18px;
  font-size: 20px;
  font-weight: bold;
  line-height: calc(29/20);
  border-bottom: 1px solid var(--color-accent);
}

.bl-post-h3::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: block;
  width: 7px;
  height: calc(100% - 10px);
  content: "";
  background: var(--color-accent);
}

/* テキスト */
.bl-post-txt--s {
  font-size: 0.8em;
}

.bl-post-txt--l {
  font-size: 1.2em;
}

.bl-post-txt--ll {
  font-size: 1.4em;
}

.bl-post-txt--xl {
  font-size: 1.8em;
}

/* イタリック文字 */
#tinymce em,
.bl-post-cont em {
  font-family: "游ゴシック", "游ゴシック体";
  font-style: italic;
  font-weight: 500;
}

/* 蛍光マーカー */
.underline-red {
  background: linear-gradient(transparent 60%, #ff7f7f 60%);
}

.underline-blue {
  background: linear-gradient(transparent 60%, #6cf 60%);
}

.underline-green {
  background: linear-gradient(transparent 60%, #6fc 60%);
}

.underline-yellow {
  background: linear-gradient(transparent 60%, #ff6 60%);
}

/* マージン */
.m-20 {
  margin-bottom: 20px !important;
}

.m-30 {
  margin-bottom: 30px !important;
}

.m-40 {
  margin-bottom: 40px !important;
}

/* 画像 */
#tinymce img,
.bl-post-cont img {
  display: block;
  float: none !important;
  width: min-content;
  max-width: 100%;
  height: auto;
}

#tinymce img.alignright,
.bl-post-cont img.alignright {
  margin: 0 0 0 auto;
}

#tinymce img.alignleft,
.bl-post-cont img.alignleft {
  margin: 0 auto 0 0;
}

#tinymce img.aligncente,
.bl-post-cont img.aligncenter {
  margin: 0 auto;
}

.bl-post-box {
  padding: 1em 1em calc(1em + 3px);
  background: #bfe8ff;
}

/* テーブル */
#tinymce table,
.bl-post-cont table {
  border: 1px solid #000 !important;
}

#tinymce table th,
#tinymce table td,
.bl-post-cont table th,
.bl-post-cont table td {
  padding: 10px !important;
  background: #fff !important;
  border: 1px solid #000 !important;
}

.c-strong {
  font-size: calc(22/17 * 1em);
  font-weight: 700;
}

.el-btn {
  position: relative;
}
.el-btn.--arrow {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 320px;
  padding: 19px 16px 21px 22px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: calc(26/18);
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  transition: var(--transition);
}
.el-btn.--arrow::after {
  width: 25px;
  height: 10px;
  content: "";
  background-color: var(--color-white);
  -webkit-mask: url("../images/common/btn-arrow.svg") center/cover no-repeat;
  mask: url("../images/common/btn-arrow.svg") center/cover no-repeat;
  transition: var(--transition);
}
.el-btn.--arrow.--reverse {
  color: var(--color-accent);
  background: var(--color-white);
  border: 1px solid var(--color-white);
}
.el-btn.--arrow.--reverse::after {
  background-color: var(--color-accent);
}
@media (hover: hover) {
  .el-btn.--arrow.--reverse:hover {
    color: var(--color-white);
    background: var(--color-accent);
  }
  .el-btn.--arrow.--reverse:hover::after {
    background-color: var(--color-white);
  }
}

@media screen and (max-width: 750px) {
  /* 記事内見出し */
  .bl-post-h2 {
    padding: 7.5px 24px 13.5px;
    font-size: 32px;
  }
  /* 記事内小見出し */
  .bl-post-h3 {
    padding: 0 0 12px 27px;
    font-size: 30px;
    border-width: 2px;
  }
  .bl-post-h3::before {
    top: 4.5px;
    width: 10.5px;
    height: calc(100% - 19.5px);
  }
  .el-btn.--arrow {
    min-width: 500px;
    padding: 22px 16px 24px 28px;
    font-size: 30px;
    line-height: calc(44/30);
  }
  .el-btn.--arrow::after {
    width: 40px;
    height: 14px;
  }
  .wp-caption {
    max-width: 690px;
  }
}