.p-single p {
  margin: 0;
}

.p-single .inner,
.p-related-post .inner {
  width: 100%;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .p-single .inner,
  .p-related-post .inner {
    max-width: 1040px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .p-single .inner,
  .p-related-post .inner {
    padding: 0 4rem;
  }
}

.p-single {
  padding-top: 2rem;
  color: #222222;
  font-family: -apple-system, "system-ui", Roboto, arial, helvetica, "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
}

/*==================================================
目次
===================================*/
#ez-toc-container {
  border: unset;
  padding: 1.6rem;
}

#ez-toc-container a {
  color: #666666;
}

.ez-toc-grey {
  position: relative;
  margin-top: 2.4rem;
  padding: 1.6rem;
  background: #f7f7f7;
}

.p-single .ez-toc-title {
  max-width: 100%;
  margin-top: initial;
  margin-inline: auto;
  color: #666666;
  font-weight: 700;
}

.ez-toc-list {
  max-width: 100%;
  margin-top: 0.5rem;
  margin-inline: auto;
}

.ez-toc-list > li {
  padding-bottom: 0.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e7e7e7;
}

.ez-toc-list ul {
  margin-top: 1rem;
  margin-left: 2rem;
}

.ez-toc-list > li:nth-child(n + 2) {
  margin-top: 1rem;
  margin-top: 0.5rem;
}

.ez-toc-list a {
  color: #666666;
  font-size: 1.2rem;
}

.ez-toc-counter nav ul li a::before {
  content: counters(item, ".", decimal);
  padding-right: 0.5rem;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.toc-toggle-btn {
  display: inline-block;
  margin-bottom: 10px;
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}

.bg__gray {
  background: #ebebeb;
}

.btn {
  color: #000000;
  text-align: center;
}

.btn a {
  display: grid;
  position: relative;
  place-items: center;
  width: 80%;
  min-height: 5rem;
  margin-inline: auto;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
  border: 3px solid #fff;
  border-radius: 50px;
  background: #000000;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.1em;
  -webkit-filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
  filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
}

.btn a::after {
  position: absolute;
  top: 50%;
  right: 2rem;
  width: 3rem;
  height: 1.5rem;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: url(../img/arrow_btn.png) no-repeat;
  background-size: contain;
  content: "";
}

@media screen and (min-width: 768px) {
  .ez-toc-grey {
    padding: 1.6rem;
  }

  .p-single .toc_title {
    font-size: 1.8rem;
  }

  .ez-toc-list {
    margin-top: 0.8rem;
  }

  .ez-toc-list > li:nth-child(n + 2) {
    margin-top: 0.8rem;
  }
}

/*==================================================
目次 END
===================================*/

/*==================================================
投稿詳細
===================================*/
.outline {
  background: #fff !important;
  border: solid 1px #ddd;
  color: #999 !important;
}

.outline__link {
  color: #428bca !important;
}

.p-single__title {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 2rem;
  line-height: 125%;
  -webkit-font-feature-settings: "palt" 1;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.04em;
}

.p-single__label {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.p-single__category-link {
  display: inline-block;
  width: 7.5rem;
  height: 2.5rem;
  background: #013a73;
  color: #fff;
  font-weight: 400;
  font-size: 1rem;
  line-height: 2.5rem;
  letter-spacing: 0.13em;
  text-align: center;
}

.p-single__time span {
  position: relative;
  padding-left: 1rem;
  color: #8f8f8f;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.p-single__name span {
  position: relative;
  padding-left: 1.2rem;
  color: #8f8f8f;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.p-single__image {
  margin-top: 4rem;
}

.p-single__text {
  margin-top: 3rem;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 2;
}

.p-single__content h2 {
  margin-top: 1em;
  padding: 0.8rem 1.5rem;
  border-left: 4px solid #013a73;
  background: #f4f4f4;
  font-weight: 700;
  font-size: 2rem;
  line-height: 125%;
  -webkit-font-feature-settings: "palt" 1;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.04em;
  color: #222222;
}

.p-single__content h3 {
  margin-top: 1em;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 125%;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.p-single__content p {
  margin-top: 1.2rem;
  color: #313131;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.6428571429;
  line-height: 162.5%;
}

.p-single__content p strong {
  background: #fff5cc;
  background: #fff5cc;
}

.p-single__content figure {
  width: 100%;
  margin-top: 3rem;
  margin-top: 1em;
}

.p-single__btn {
  margin-top: 2.9rem;
  text-align: center;
}

.p-single__btn a {
  display: inline-block;
  position: relative;
  width: 15rem;
  max-width: 100%;
  height: 4rem;
  background: #013a73;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 4rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
}

.p-single__btn a:hover {
  color: #fff;
  opacity: 0.8;
}

.p-single__btn a::after {
  display: block;
  position: absolute;
  top: 50%;
  right: 30px;
  width: 5px;
  height: 5px;
  -webkit-transform: rotate(-45deg) translateY(-50%);
  transform: rotate(-45deg) translateY(-50%);
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  content: "";
}

.p-single .saboxplugin-wrap {
  margin-top: 2rem;
}

.p-single .saboxplugin-wrap .saboxplugin-authorname {
  margin: initial;
  color: #313131;
  font-weight: 700;
  font-size: 1.6rem;
}

.p-single .sab-profile-edit,
.p-single .sab-edit-settings,
.p-single .clearfix {
  display: none;
}

.p-single .saboxplugin-wrap .saboxplugin-gravatar {
  padding: 10px 20px 10px 20px;
}

.p-single .saboxplugin-wrap .saboxplugin-desc pre {
  margin: initial;
  color: #313131;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 150%;
}

.p-single .wp-block-quote {
  position: relative;
  margin: initial;
  margin-top: 2rem;
  padding: 0.4rem 1.2rem 1.2rem;
  border-radius: 5px;
  background: #f4f4f4;
}

.p-single .wp-block-quote p {
  font-size: 1.2rem;
}

.p-single cite {
  position: relative;
  margin-top: 0.5em;
  padding-left: 55px;
  font-size: 1.2rem;
}

.p-single cite::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "引用元：";
  color: #000;
  font-size: 1.2rem;
  pointer-events: none;
}

.p-single .annotation {
  padding: 1.2rem;
  border-radius: 5px;
  background: #f4f4f4;
  font-size: 1.2rem;
}

@media screen and (min-width: 768px) {
  .p-single__title {
    font-size: 3rem;
  }

  .p-single__category-link {
    width: 10.4rem;
    height: 2.9rem;
    font-size: 1.2rem;
    line-height: 2.9rem;
  }

  .p-single__time span {
    font-size: 1.5rem;
  }

  .p-single__name span {
    padding-left: 2rem;
    font-size: 1.4rem;
  }

  .p-single__image {
    margin-top: 8.7rem;
  }

  .p-single__text {
    margin-top: 5rem;
    font-size: 1.5rem;
  }

  .p-single__content h2 {
    padding: 1rem 2.4rem;
    font-size: 2.4rem;
  }

  .p-single__content h3 {
    font-size: 2rem;
  }

  .p-single__btn {
    margin-top: 4.9rem;
  }

  .p-single__btn a {
    width: 21.5rem;
    height: 4.4rem;
    line-height: 4.4rem;
  }

  .p-single__btn a::after {
    right: 35px;
  }

  .p-single .saboxplugin-wrap .saboxplugin-authorname {
    margin: 10px 0 0 20px;
  }

  .p-single .saboxplugin-wrap .saboxplugin-gravatar {
    padding: 0 12px 12px 12px;
  }

  .p-single .wp-block-quote {
    padding: 0.4rem 2.4rem 2rem;
  }

  .p-single cite {
    padding-left: 63px;
  }

  .p-single .annotation {
    padding: 2.4rem;
  }
}

.p-related-post {
  padding-top: 4rem;
  padding-bottom: 4rem;
  font-family: "Noto Sans JP", sans-serif;
}

.p-related-post__head {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 2rem;
  color: #222;
  font-family: "Helvetica Neue", sans-serif;
  padding: 0;
}

.p-related-post__head span {
  margin-left: 1em;
  color: gray;
  font-size: 1.4rem;
}

.p-related-post__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
  gap: 1rem;
}

.p-related-post__item {
  background: #fff;
  -webkit-box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
}

.p-related-post__content {
  position: relative;
  height: 10rem;
  padding: 1rem;
}

.p-related-post__title {
  font-weight: 700;
}

.p-related-post__label {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0 1em;
}

.p-related-post__category {
  color: #013a73;
}

.p-related-post__time {
  color: gray;
}

.archive__items {
  display: grid;
  grid-template-columns: 1fr;
  -webkit-column-gap: 2.7rem;
  -moz-column-gap: 2.7rem;
  column-gap: 2.7rem;
  row-gap: 2.2rem;
}

.archive__item {
  border: 3px solid #f5f5f5;
  background: #fff;
  list-style: none;
}

.archive__item a {
  display: inline-block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #222;
}

.archive__item p {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
}

.archive__image {
  position: relative;
  height: 18rem;
}

.archive__image img {
  width: 100%;
  height: inherit;
  -o-object-fit: cover;
  object-fit: cover;
}

.archive__category {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0.3rem 1.2rem;
  background: #013a73;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.archive__content {
  padding: 10px;
}

.archive__title {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.archive__text {
  margin-top: 5px;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

@media screen and (min-width: 768px) {
  .p-related-post {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .p-related-post__head {
    font-size: 3rem;
  }

  .p-related-post__head span {
    font-size: 1.8rem;
  }

  .p-related-post__items {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .archive__items {
    position: relative;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .archive__image {
    height: 20.6rem;
  }

  .archive__content {
    padding: 1.8rem;
  }

  .archive__title {
    font-size: 2rem;
    line-height: 1.4;
  }

  .archive__text {
    margin-top: 1rem;
    font-size: 1.4rem;
  }
}

/*==================================================
投稿詳細 END
===================================*/
