/* --------------------------------
 * 記事ページのスタイル
 * -------------------------------- */
.p-article {
  margin-bottom: 5rem;
}

/* ----文字スタイルー---- */
.p-article > .entry-content > p,
.p-article > .entry-content > .p-article__box p,
.p-article > .entry-content > .ads-component .p-article__box p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 4rem;
}
.p-article > .entry-content > .p-article__box p,
.p-article > .entry-content > .ads-component .p-article__box p {
  margin-bottom: 2rem;
}
.p-article > .entry-content > p > a,
.p-article > .entry-content blockquote a,
.p-article > .entry-content > .p-article__box a,
.p-article > .entry-content > .ads-component .p-article__box a {
  color: #0073aa;
}

.has-text-align-left {
  text-align: left;
}

.entry-content blockquote {
  box-sizing: border-box;
  position: relative;
  margin: 1.5em 0;
  padding: 13px 15px 13px 50px;
  border: solid 2px #464646;
  color: #464646;
}

.entry-content blockquote:before {
  display: inline-block;
  position: absolute;
  top: 20px;
  left: 15px;
  font-family: "Material Icons";
  font-size: 25px;
  vertical-align: middle;
  line-height: 1;
  content: "\e244";
}

.p-article img {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}
.p-article__tit {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}
.p-article h2 {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 0.5rem;
  border-bottom: solid 3px #c4c4c4;
  margin-bottom: 2rem;
}
.p-article h3 {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 0.5rem;
  border-left: solid 3px #c4c4c4;
  padding-left: 1rem;
  margin-bottom: 2rem;
}
.p-article h4 {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.p-article h5 {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 0.5rem;
  margin-bottom: 1.4rem;
}
.p-article h6 {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 0.5rem;
  margin-bottom: 1.3rem;
}

.p-article b,
.p-article strong {
  font-weight: bold;
}

.p-article span.bold_red {
  font-weight: bold;
  color: #eb3e23;
}

.p-article span.marker.keiko_red,
.p-article span.kasen_red {
  border-bottom: solid;
  border-color: #eb3e23;
  border-width: 2px; /*5ピクセルの太さにする*/
}

.p-article small {
  font-size: 10px;
}

.p-article__heading {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 0.5rem;
  border-bottom: solid 3px #c4c4c4;
  margin-bottom: 2rem;
}

/* ----文字スタイル スマホーー---- */
@media (max-width: 767px) {
  .p-article > .entry-content > p,
  .p-article > .entry-content > .p-article__box p,
  .ads-component .p-article__box p {
    font-size: 1.4rem;
  }
  .p-article__tit {
    font-size: 2.2rem;
  }
  .p-article__heading {
    font-size: 1.8rem;
    letter-spacing: 0;
  }
}

/* ----目次ー---- */
.p-article__topic--top,
.p-article__topic--second,
.ez-toc-list-level-1,
.ez-toc-list-level-2,
.ez-toc-list-level-3 {
  counter-reset: item;
}
.p-article__topic--top,
.ez-toc-list-level-1 > li > a {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.8;
}
.p-article__topic--top,
.ez-toc-list-level-1 > li > a,
.p-article__topic--second,
.ez-toc-list-level-2 > li > a,
.ez-toc-list-level-3 > li > a,
.ez-toc-list-level-4 > li > a,
.ez-toc-list-level-5 > li > a,
.ez-toc-list-level-6 > li > a {
  display: block;
}
.p-article__topic--top,
.ez-toc-list-level-1 > li > a::before,
.p-article__topic--second,
.ez-toc-list-level-2 > li > a::before,
.ez-toc-list-level-3 > li > a::before,
.ez-toc-list-level-4 > li > a::before,
.ez-toc-list-level-5 > li > a::before,
.ez-toc-list-level-6 > li > a::before {
  content: counters(item, ".") ". ";
  counter-increment: item;
}
.p-article__topic--second,
.ez-toc-list-level-2,
.ez-toc-list-level-3,
.ez-toc-list-level-4,
.ez-toc-list-level-5,
.ez-toc-list-level-6 {
  margin: 3px 1.5rem;
}
.p-article__topic--second,
.ez-toc-list-level-2 > li > a,
.ez-toc-list-level-3 > li > a,
.ez-toc-list-level-4 > li > a,
.ez-toc-list-level-5 > li > a,
.ez-toc-list-level-6 > li > a {
  line-height: 1.8;
}

/* ----要素を囲むボックスー---- */
.p-article__box,
div#ez-toc-container {
  border-radius: 10px;
  padding: 0 3rem;
  border: solid 2px #000;
  margin-bottom: 3rem;
}
div#ez-toc-container > nav > ul {
  margin-bottom: 3rem;
}
.p-article__box .material-icons {
  color: #eb3e23;
  vertical-align: text-bottom;
}
.p-article__box .tit,
.ez-toc-title {
  margin-top: 3rem;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 0.5rem;
  border-bottom: solid 3px #c4c4c4;
  margin-bottom: 1.5rem;
}

/* ----要素を囲むボックス スマホーー---- */
@media (max-width: 767px) {
  .p-article__box,
  div#ez-toc-container {
    padding: 0 2rem;
  }
  div#ez-toc-container > nav > ul {
    margin-bottom: 2rem;
  }
  .p-article__box .tit,
  .ez-toc-title {
    margin-top: 2rem;
    font-size: 1.8rem;
  }
}

/* ----引用テキスト---- */
.p-article__quote {
  border-left: solid 5px #c4c4c4;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.p-article__quote p {
  margin-bottom: 0;
  font-size: 1.4rem;
}

/* ----この記事を書いた人---- */
.p-article__author {
  padding: 2rem 0;
}
.p-article__author .avatar-container {
  border: solid 3px #000;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  overflow: hidden;
}
.p-article__author .avatar-container img {
  object-fit: contain;
  margin-bottom: 0;
  height: 94px;
  width: 94px;
}
.p-article__author .contents {
  width: calc(100% - 120px);
}
.p-article__author .contents h4 {
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.p-article__author .contents p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.p-article__author ul.sns-links {
  display: flex;
  flex-wrap: wrap;
}
.p-article__author .sns-links li {
  margin-right: 1rem;
  margin-bottom: 1rem;
}
.p-article__author .sns-links li a {
  margin: 1.5rem;
  display: flex;
}
.p-article__author .sns-links li.twitter {
  background-color: #3ab4ff;
}
.p-article__author .sns-links li.facebook {
  background-color: #4267b2;
}
.p-article__author .sns-links li.line {
  background-color: #06c755;
}
.p-article__author .sns-links li.instagram {
  background-color: #e1306c;
}
.p-article__author .sns-links li.youtube {
  background-color: #ff0000;
}
.p-article__author .sns-links li.website {
  border: solid 0.2rem #000;
}
.p-article__author .sns-links li.website a {
  margin: 1.3rem;
}

/* ----この記事を書いた人 スマホーー---- */
@media (max-width: 767px) {
  .p-article__author {
    padding: 0;
  }
  .p-article__author .avatar-container {
    border: solid 2px #000;
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
  }
  .p-article__author .avatar-container img {
    height: 80px;
    width: 80px;
  }
  .p-article__author .contents {
    width: 100%;
  }
  .p-article__author .contents h4 {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  .p-article__author .contents p {
    font-size: 1.2rem;
    line-height: 1.8;
  }
}

/* ----この記事に関連するタグ---- */
.p-article__tag li a {
  display: block;
  padding: 0 1rem;
  line-height: 28px;
  background: #fff;
  border: solid 2px #000;
  border-radius: 17px;
  font-weight: bold;
  margin: 0 0.8rem 0.8rem 0;
}
.p-article__tag li a:before {
  content: "#";
  display: inline-block;
  margin-right: 2px;
}
.p-article__tag li a:hover {
  opacity: 1;
  background: #c4c4c4;
}

/*表*/
.entry-content table {
  width: 100%;
  margin-bottom: 1.5em;
  border: 3px solid #000;
}

.entry-content tr:not(:last-child) {
  border-bottom: 3px solid #000;
}
.entry-content td {
  padding: 7px;
  border-right: 3px solid #000;
  word-break: break-all;
}
.entry-content td:last-child,
.entry-content th:last-child {
  border-right: 0;
}
.entry-content th {
  font-weight: bold;
  padding: 7px;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
}
.entry-content table.is-style-stripes {
  border: none;
}

/*リスト*/
.entry-content > ul,
.entry-content > ol,
.cc-sc-list > ul,
.cc-sc-list > ol {
  margin-bottom: 1.5em;
  padding: 1em 1em 1em 2.5em;
  border: 3px solid #000;
  border-radius: 3px;
}
.entry-content > ul,
.cc-sc-list ul {
  list-style-type: disc;
}
.entry-content > ul li,
.entry-content > ul li,
.cc-sc-list ul li,
.cc-sc-list ol li {
  padding: 5px 0;
}
.entry-content > ul li ul li,
.entry-content > ul li ol li,
.entry-content > ol li ul li,
.entry-content > ol li ol li {
  padding: 0;
}
.entry-content > ol,
.cc-sc-list ol {
  list-style-type: decimal;
}
.entry-content > ol li ul,
.entry-content > ul li ul {
  list-style-type: disc;
  margin: 0;
  padding: 0.5em 0 0.5em 1.3em;
  border: none;
}

.entry-content > ul li ol,
.entry-content > ol li ol {
  list-style-type: decimal;
  margin: 0;
  padding: 0.5em 0 0.5em 1.3em;
  border: none;
}

.entry-content > .p-article__box ul li {
  line-height: 1.8;
}

/* ショートコード用 */
.p-article__box.cc-sc-box.memo {
  border-color: #e8ae3f;
}

.p-article__box.cc-sc-box.memo .tit {
  color: #e8ae3f;
}

.p-article__box.cc-sc-box.alert {
  border-color: #eb3e23;
}

.p-article__box.cc-sc-box.alert .tit {
  color: #eb3e23;
}

.cc-sc-list .tit {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* 広告リンクボタン */
.p-article > .entry-content > .ads-component a.ads-link-button {
  color: white;
  font-weight: bold;
  display: block;
  margin-top: 2rem;
  text-align: center;
  background-color: #28b201;
  border: 0;
  border-bottom: 0.5rem solid #176900;
}
.p-article > .entry-content > .ads-component a.ads-link-button .material-icons {
  color: white;
  margin-right: 5px;
  font-size: 1.7rem;
}
.ads-component a.ads-link-button:hover {
  margin-top: 2.2rem;
  color: #000;
  background: #28b201;
  border-bottom: 0.3rem solid #176900;
}
.ads-component img {
  margin-bottom: 0;
  width: 1px;
  height: 1px;
}
