.single-eyecatch {
  background: url("../../src/common/img/eyecatch_sub-single.webp") no-repeat center center / cover;
}

.single-post-wrapper {

  >.inner {
    font-family: var(--font-serif);
    letter-spacing: 1px;
    text-align: justify;
    word-break: break-all;

    p {
      margin: 0 auto 32px;
      line-height: 1.8;
      font-family: var(--font-sans);

      >a:not(.single-toc a) {
        color: var(--gold-dark);
        text-decoration: underline;

        &:hover {
          text-decoration: none;
        }
      }
    }

    strong {
      font-weight: 400;
      background: linear-gradient(transparent 60%, var(--gold-opacity) 60%);
    }

    h2,
    h3,
    h4,
    h5,
    h6 {
      font-weight: 400;
      line-height: 1.6;

      +.wp-block-image {
        margin-top: 32px;
      }
    }

    h2 {
      position: relative;
      display: flex;
      font-family: var(--font-serif);
      margin: 96px auto 40px;
      font-size: min(5.33vw, 3rem);

      &::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -16px;
        width: 80px;
        height: 2px;
        background-color: var(--beige);
        z-index: 1;
      }
    }

    h3,
    h4 {
      position: relative;
      display: flex;
      font-family: var(--font-serif);
      margin: 80px auto 40px;
      font-size: min(4.8vw, 2.6rem);
      padding-left: 24px;


      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background-color: var(--beige);
        z-index: 1;
      }
    }

    h4 {
      font-size: min(4.26vw, 2.2rem);

      &::before {
        background-color: var(--gray);
      }
    }

    h5,
    h6 {
      font-size: min(4vw, 1.8rem);
      margin: 80px auto 32px;

      &::before {
        background-color: var(--gray);
      }
    }

    .single-toc,
    .common-accordion {

      +h2,
      +h3,
      +h4,
      +h5,
      +h6 {
        margin-top: 56px;
      }
    }

    table,
    td,
    th {
      border-collapse: collapse;
    }

    table {
      width: 100%;
      line-height: 1.4;
      font-family: var(--font-sans);

      td,
      th {
        border: .5px solid var(--gray);
        padding: 12px 16px;
      }

      td:nth-of-type(odd) {
        background-color: var(--gray-light-very);
        width: 60%;
        font-family: var(--font-serif);
      }
    }

    ul:not(.single-toc ul),
    ol:not(.single-toc ol) {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      padding: 32px 24px;
      margin: 32px auto;
      border-top: .5px solid var(--beige);
      border-bottom: .5px solid var(--beige);

      >li {
        font-family: var(--font-sans);
        font-weight: 500;
        line-height: 1.4;
        padding-left: 28px;
        position: relative;

        >a:not(.single-toc a) {
          color: var(--gold-dark);
          text-decoration: underline;

          &:hover {
            text-decoration: none;
          }
        }
      }
    }

    ul:not(.single-toc ul) {
      >li {
        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: 5px;
          z-index: 1;
          width: 16px;
          height: 8px;
          border-left: 2px solid var(--gold);
          border-bottom: 2px solid var(--gold);
          transform: rotate(-45deg);
        }
      }
    }

    ol:not(.single-toc ol) {
      counter-reset: item;
      list-style-type: none;

      >li {
        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: 0;
          z-index: 1;
          counter-increment: item;
          content: counter(item)'.';
          color: var(--gold);
          font-weight: 500;
        }
      }
    }

    .wp-block-image {
      user-select: none;
      margin: 56px auto;
      max-width: 500px;

      figcaption {
        line-height: 1.4;
        font-size: min(3.73vw, 1.4rem);
        margin-top: 8px;
        display: inline-block;
      }
    }

    .wp-block-image+.wp-block-image {
      margin-top: -40px;
    }

    .wp-block-buttons {
      margin: 40px auto;
    }

    .wp-block-button {
      margin: 0 auto;
    }

    .wp-block-buttons + .wp-block-buttons {
      margin-top: 24px;
    }

  .wp-block-button__link {
  margin: 0 auto;
  max-width: 300px;
  width: 100%;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--black);
  text-decoration: none;
  transition: ease .3s;
  font-weight: 500;
  position: relative;
  color: var(--white);
  font-family: var(--font-serif);
  line-height: 1.4;
  color: var(--white);
  font-size: min(3.73vw, 1.4rem);
  letter-spacing: 1px;
  padding: 4px 32px;
  border-radius: 0;


  &::after {
    content: "〉";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  >span {
    position: relative;
    display: inline-block;
    font-family: var(--font-serif);
    line-height: 1.4;
    color: var(--white);
    font-size: min(3.73vw, 1.4rem);
    letter-spacing: 1px;
  }

  &:hover {
    transition: ease .3s;
    opacity: .7;
  }
}

    .single-toc {
      padding: 54px 24px 40px;
      background-color: var(--gray-light-very);
      max-width: 360px;
      width: 100%;
      position: relative;

      &::before {
        content: "目次";
        position: absolute;
        top: 4px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        font-size: min(4.8vw, 1.8rem);
        font-weight: 500;
        color: var(--gold-dark);
        display: inline-block;
        line-height: 1.4;
        padding: 16px 32px;
        letter-spacing: 3px;
        width: calc(100% - 48px);
      }

      >ol {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 0;

        >li {
          position: relative;
          padding-left: 1.5rem;
          height: 56px;
          justify-content: flex-start;
          align-items: center;
          display: flex;
          border-top: .5px dashed var(--gray-dark);

          &:first-child {
            border-top: 0;
          }

          &::before {
            content: "〉";
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            z-index: 2;
          }

          a {
            color: var(--black);
            font-size: min(3.73vw, 1.5rem);
            text-decoration: none;
            line-height: 1.4;

            &:hover {
              text-decoration: underline;
            }
          }
        }
      }
    }
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .single-post-wrapper {
    >.inner {

      h2,
      h3,
      h4,
      h5,
      h6 {
        font-weight: 500;
      }

      a {

        &:hover {
          text-decoration: underline;
        }

        &:active {
          text-decoration: none;
        }
      }

      table {

        th,
        td {
          display: block;
          width: 100%;
        }

        td:nth-of-type(odd) {
          width: 100%;
          font-weight: 500;
        }
      }

      .wp-block-image {
        margin: 32px auto;
        width: 90%;
      }

      .wp-block-gallery {
        margin: 32px auto;
        width: 100%;
      }

      .wp-block-image+.wp-block-image {
        margin-top: -16px;
      }

      .wp-block-button__link {
        max-width: 240px;

        &:hover {
          transition: ease .3s;
          opacity: 1;
        }

        &:active {
          transition: ease .3s;
          opacity: 1;
        }
      }

      .single-toc {
        width: calc(100% + 5.33vw * 2);
        margin-left: -5.33vw;
        padding: 64px 5.33vw 40px;
        max-width: initial;

        >ol {
          grid-template-columns: repeat(1, 1fr);
          padding: 0;

          >li {

            >a {
              &:hover {
                text-decoration: none;
              }

              &:active {
                text-decoration: underline;
              }
            }
          }
        }
      }
    }
  }
}

.statesBox {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.singlePageBox {
  margin: 80px auto 0;
}

.singlePageBox__ul {
  border-top: 0.5px solid var(--black);
  border-bottom: 0.5px solid var(--black);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.singlePagePrev,
.singlePageTop,
.singlePageNext {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  position: relative;
}

.singlePagePrev>a,
.singlePageTop>a,
.singlePageNext>a {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  letter-spacing: 1px;
  line-height: 1;
  color: var(--black);
  text-decoration: none;
}

.singlePagePrev>a:hover,
.singlePageTop>a:hover,
.singlePageNext>a:hover {
  text-decoration: underline;
}

@media (max-width: 867px) {

  .singlePagePrev>a,
.singlePageTop>a,
.singlePageNext>a {
  font-weight: 500;
}

  .singlePagePrev>a>a,
  .singlePageTop>a>a,
  .singlePageNext>a>a {
    font-size: 1.3rem;
  }
}

.singlePagePrev::before,
.singlePageNext::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background-image: url("../../src/common/img/icon_arrowPrev.svg");
  background-size: 5px;
  width: 5px;
  height: 15px;
  z-index: 2;
}

.singlePagePrev::before {
  background-image: url("../../src/common/img/icon_arrowPrev.svg");
  left: 0;
}

.singlePageNext::before {
  background-image: url("../../src/common/img/icon_arrowNext.svg");
  right: 0;
}

/*# sourceMappingURL=single.css.map */


.single-category {
  font-size: min(3.46vw, 1.3rem);
  display: inline-block;
  background-color: var(--gold);
  line-height: 1.4;
  color: var(--white);
  font-family: var(--font-serif);
  padding: 2px 8px;
  border-radius: 40px;
  text-decoration: none !important;
  transition: ease .3s;
  margin-bottom: 4px;

  &:hover {
    opacity: .7;
    transition: ease .3s;
    text-decoration: none !important;
  }
}

/*================================
-250214 add
=================================*/

.single-post-case {

  .wp-block-columns {
    margin-bottom: 56px;

    .wp-block-image {
      margin: 0 auto 16px;
    }

    p {
      margin-bottom: 0;
      font-size: min(3.46vw, 1.4rem);
    }
  }

  table {
    font-size: min(3.73vw, 1.4rem);

    td:nth-of-type(odd) {
      width: 40% !important;
    }
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .single-post-case {
    table {
      td:nth-of-type(odd) {
        width: 100% !important;
      }
    }
  }
}