@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;
  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;
  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;
    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;
    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.9;
}

.post p 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: inline-block;
  width: auto;
  margin: 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: #0f70c3;
}

.post h1:before {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  width: 4px;
  height: 100%;
  background-color: #0f70c3;
  content: "";
} */

.post h2 {
  margin: 1em 0 1em 0;
  padding: 10px 20px 8px 20px;
  border-left: 9px var(--c-blue) solid;
  background: #e5ebef;
}

.post h3 {
  margin: 1em 0 1em 0;
  padding-bottom: 4px;
  border-bottom: 2px var(--c-blue) solid;
}

.post h4 {
  margin: 1em 0 1em 0;
  font-size: var(--fs-20);
  font-weight: bold;
}

.post h5 {
  margin: 1em 0 1em 0;
  font-size: var(--fs-18);
}

.post h6 {
  margin: 1em 0 1em 0;
  color: var(--c-blue);
}

@media screen and (max-width: 767px) {
  .post h4 {
    font-size: var(--fs-18);
  }
  .post h5 {
    font-size: var(--fs-16);
  }
}

.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: var(--c-blue);
  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: var(--c-blue);
  font-weight: bold;
  color: #fff;
}
.post a {
  position: relative;
  text-decoration: underline;
  color: var(--c-blue);
}

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

@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;
    line-height: 1.4;
  }
  .post h2,
  .post h3,
  .post h4,
  .post h5,
  .post h6 {
    line-height: 1.4;
  }
}

/*パスワード保護*/

.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;
  }
}
