@charset "utf-8";

/*ページナビ*/
.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3.8em;
  text-align: center;

  gap: 10px;
}
.wp-pagenavi .current {
  border: solid 1px #333;
  background: #333;
  color: #fff;
}
.wp-pagenavi .pages {
  display: none;
}
.wp-pagenavi a.page {
  border: solid 1px #333;
}
.wp-pagenavi a {
  display: inline-block;
  width: 42px;
  height: 42px;
  font-size: 16px;
  line-height: 42px;
  text-align: center;
  white-space: nowrap;
}
.wp-pagenavi a.last {
  width: auto;
}

.wp-pagenavi span {
  display: inline-block;
  width: 42px;
  height: 42px;
  border: solid 1px #333;
  font-size: 16px;
  line-height: 42px;
  text-align: center;
}
.wp-pagenavi .nextpostslink-span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-top: 16px;
  border: 0;
  border-top: solid 1px #000;
  border-right: solid 1px #000;
  line-height: normal;
  transform: rotate(45deg);
}

@media screen and (max-width: 767px) {
  .wp-pagenavi {
    margin-top: 60px;

    gap: 7px;
  }
  .wp-pagenavi a {
    display: inline-block;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
  }
  .wp-pagenavi a.first {
    width: auto;
  }
  .wp-pagenavi a.last {
    width: auto;
  }
  .wp-pagenavi a.page {
    border: none;
  }
  .wp-pagenavi span {
    display: inline-block;
    width: auto;
    height: 22px;
    border: none;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
  }
  .wp-pagenavi .current {
    width: 22px;
  }
}

/* youtube */
.youtube_iframe {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
}
.youtube_iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ビジュアルエディタでのタグ調整 */

.post p {
  zoom: 1;
  margin: 0 0 1em 0;
  line-height: 1.8;
}

.post a {
  text-decoration: underline;
}

.post p em {
  font-style: italic !important;
}

.post p del {
  text-decoration: line-through;
}

.post p strong,
.post p b {
  font-weight: bold !important;
}

.post img {
  display: block;
  max-width: 100%;
  height: auto;
}

.post .aligncenter {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0.5em auto 0.5em auto;
}

.post .alignleft {
  float: left;
  width: auto;
  max-width: 100%;
  margin: 0.5em 1em 0.5em 0;
}

.post .alignright {
  float: right;
  width: auto;
  max-width: 100%;
  margin: 0.5em 0 0.5em 1em;
}

.post h1 {
  margin: 1em 0 1em 0;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.4;
  color: #3D98D9;
}

/*.post h1:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 100%;
  background-color: #3D98D9;
  position: absolute;
  top: 0;
  left: 0;
}
*/
.post h2 {
  margin: 1em 0 1em 0;
  font-size: 1.8em;
  font-weight: bold;
}

.post h3 {
  margin: 1em 0 1em 0;
  font-size: 1.7em;
  font-weight: bold;
  color: #3D98D9;
}

.post h4 {
  margin: 1em 0 1em 0;
  font-size: 1.6em;
  font-weight: bold;
}

.post h5 {
  margin: 1em 0 1em 0;
  font-size: 1.5em;
  font-weight: bold;
}

.post h6 {
  margin: 1em 0 1em 0;
  font-size: 1.3em;
  font-weight: bold;
}

.post ul {
  margin: 1.5em 0;
}

.post ul li {
  margin: 5px 0 5px 5px;
  padding-left: 1em;
  text-indent: -1em;
}

.post ul li:before {
  margin-right: 0.5em;
  font-size: 60%;
  color: #3D98D9;
  content: "●";
}

.post ol li {
  margin: 5px 0 5px 1em;
  list-style: decimal;
}

.post table {
  margin: 2em 0;
}

.post table th,
.post table td {
  padding: 0.7em 1em;
  border: 1px solid #b7b7b7;
}
.post table th {
  background-color: #3D98D9;
  font-weight: bold;
  color: #fff;
}
.post sup {
  position: relative;
  top: -0.1em;
  font-size: 70%;
  vertical-align: top;
}
.post sub {
  position: relative;
  bottom: -0.1em;
  font-size: 70%;
  vertical-align: bottom;
}

.post a {
  position: relative;
  text-decoration: underline;
  color: #3D98D9;
}

/* 横長のテーブル対応 */

@media screen and (max-width: 767px) {
  /*div.post {
    overflow: scroll;
  }*/
  .post table tbody {
    max-width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
  }
  .post table th,
  .post table td {
    white-space: nowrap;
  }

  .post table {
    overflow-x: auto;
    margin-bottom: 1em;
  }

  .post h1 {
    margin: 1.5em 0;
    font-size: 20px;
    line-height: 1.4;
  }
  .post h2,
  .post h3,
  .post h4,
  .post h5,
  .post h6 {
    line-height: 1.4;
  }
  .post h2 {
    font-size: 18px;
  }
  .post h3 {
    font-size: 17px;
  }
  .post h4 {
    font-size: 16px;
  }
  .post h5 {
    font-size: 15px;
  }
  .post h6 {
    font-size: 13px;
  }
}

/*パスワード保護*/

.post-password-form {
  padding: 50px 0;
  line-height: 3;
  text-align: center;
}

.post-password-form input[type="submit"],
.post-password-form input[type="button"] {
  padding: 3px 10px;
}

/* clearfix */
.post p:before,
.post p:after {
  display: table;
  content: "";
}

.post p:after {
  clear: both;
}

@media screen and (max-width: 767px) {
  .post img {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

/* 画像サイズ調整 */
img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: revert !important;
}

/*===== キャプションの崩れの調整 =====*/

/* Gutenberg対応 */
/*.wp-block-image {
  text-align: left;
}*/

.wp-block-image img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: inline-block;
}

/* クラシックエディタ／WYSIWYG対応 */
.wp-caption {
  /*text-align: left;*/
  max-width: 100%;
  /*width: auto !important;*/
}

.wp-caption img {
  max-width: 100%;
  /*width: auto !important;*/
  height: auto;
  display: inline-block;
}

.wp-caption-text,
.wp-block-image figcaption {
  /*text-align: left;*/
  font-size: var(--fs14);
  padding-top: 0.5em;
}
