/*CP、SRPセミナー、お問合せに適用中*/

.editor-styles-wrapper {
  max-width: 840px;
  margin-inline: auto;
}

#content-wrapper,
.editor-styles-wrapper {
  * {
    font-family: YakuHanJP, Manrope, Noto Sans JP, sans-serif;
  }

  *:first-child {
    margin-top: 0;
  }

  p {
    font-size: 1rem;
    line-height: 1.5em;
    margin-bottom: 0.75em;
  }

  a {
    text-decoration: underline;
    text-decoration-color: #34A394;
    text-underline-offset: 0.25rem;
  }

  a:not(.wp-block-button__link):hover {
    color: #34A394;
  }

  .has-background:not(.wp-block-button__link) {
    padding: 1rem 1.5rem;
    border-radius: 0.125rem;
    margin-bottom: 1rem;
  }

  .wp-block-button__link.has-background:hover {
    filter: saturate(2);
  }

  .has-background .wp-block-group__inner-container>*:first-child {
    margin-top: 0rem;
  }

  .has-background .wp-block-group__inner-container>*:last-child {
    margin-bottom: 0rem;
  }

  h2 {
    border-left: 4px #34A394 solid;
    font-size: 1.5rem;
    line-height: 1.375rem;
    margin-top: 3.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0.375rem;
    font-weight: 500;
  }

  h3 {
    border-bottom: 2px #34A394 solid;
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }

  h4 {
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem !important;
    margin-top: 2.5rem;
  }

  h4:not(.has-background) {
    background-color: #34a394;
  }

  h4:not(.has-text-color){
    color: white;
  }

  h5 {
    font-weight: 500;
    font-size: 1rem;
    display: inline-block;
    padding: 0.125rem 0.75rem !important;
    border-radius: 9999px;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
  }

  h5:not(.has-background) {
    background-color: #34a394;
  }

  h5:not(.has-text-color){
    color: white;
  } 

  mark.has-inline-color {
    background: linear-gradient(#fff 60%, transparent 60%);
    padding: 0 0.125rem;
    font-weight: 600;
  }

  a:not(.wp-block-button__link) {
    color: #078cd3;
    text-decoration-style: solid;
    text-underline-offset: 4px;
    text-decoration-line: underline;
  }

  a:not(.wp-block-button__link):hover {
    color: #34a394;
  }

  .wp-block-table table {
    border-collapse: separate !important;
    border-spacing: 0;
    background-color: #ebf6f4;
    padding: 0.5rem 1rem;
  }

  .wp-block-table table td {
    border: none;
    vertical-align: top;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #9ca3af;
  }

  .wp-block-table table td:first-child {
    width: 20%;
    color: #34A394;
    font-weight: 500;
  }
  
  .wp-block-table table tr:last-child td {
    border-bottom: none;
  }

  @media (width < 40rem /* 640px */ ) {
    .wp-block-table table {
      display: block;
    }

    .wp-block-table table tbody {
      display: block;
    }

    .wp-block-table table tr {
      display: block;
    }

    .wp-block-table table td {
      display: block;
    }

    .wp-block-table table td:first-child {
      width: 100%;
      padding-bottom: 0.125rem;
      border-bottom: none;
    }

    .wp-block-table table td:last-child {
      padding-top: 0.125rem;
    }
  }

  ul {
    padding-left: 1.25rem;
    list-style-type: disc;
    list-style-position: outside;
  }

  li:not(:last-child) {
    margin-bottom: 0.25rem;
  }

  ul>li::marker {
    color: #34A394;
  }

  ol {
    padding-left: 1.25rem;
    list-style-type: decimal;
    list-style-position: outside;
  }

  ol>li::marker {
    color: #34A394;
    font-weight: 700;
  }

  hr {
    border-width: 1px;
    border-color: #e5e7eb;
    margin: 2rem auto;
  }

  .wp-block-embed-youtube {
    aspect-ratio: 16/9;
  }

  .wp-block-embed-youtube>.wp-block-embed__wrapper,
  .wp-block-embed-youtube>.wp-block-embed__wrapper>iframe {
    width: 100%;
    height: 100%;
  }
}