.editor-styles-wrapper {
  padding-left: var(--wp--custom--gutter);
  padding-right: var(--wp--custom--gutter);
}


.u-h2,
h2.is-style-default {
  font-size: 30px;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 50px;
}

.u-h2::before,
h2.is-style-default::before {
  content: "";
  background: #333;
  width: 30px;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.u-h3,
h3.is-style-default {
  border-bottom: 3px solid #eee;
  font-size: 22px;
  padding-bottom: 10px;
  margin-bottom: 30px;
  position: relative;
}

.u-h3::before,
h3.is-style-default::before {
  content: "";
  background: #333;
  width: 50px;
  height: 3px;
  position: absolute;
  left: 0;
  bottom: -3px;
}

h3.is-style-default {
  margin-bottom: 25px;
}

.u-h4,
h4.is-style-default {
  font-size: 18px;
  padding-left: 25px;
  margin-bottom: 15px;
  position: relative;
}

.u-h4::before,
h4.is-style-default::before {
  content: "";
  background: #333;
  width: 8px;
  height: 60%;
  position: absolute;
  left: 0;
  top: 7.5px;
}

@media (max-width:800px) {

  h2.is-style-default,
  .u-h2 {
    font-size: 25px;
    padding-bottom: 20px;
    margin-bottom: 30px;
  }

  h3.is-style-default,
  .u-h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  h4.is-style-default,
  .u-h4 {
    font-size: 18px;
    padding-left: 20px;
  }
}

:root .before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 5%;
}

.before-after .item {
  text-align: center;
  position: relative;
}

.before-after .wp-block-image {
  display: grid;
  place-items: center;
  height: 300px;
  position: relative;
}

.before-after .wp-block-image img {
  object-fit: contain;
  object-position: center;
  max-height: 300px;
}

.before-after p {
  font-family: var(--font_jp);
}

.before-after p::before,
.before-after p::after {
  content: "-";
  margin: 0 5px;
}

@media (max-width:800px) {
  :root .before-after {
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }

  :root .before-after>figure {
    height: auto;
  }
}


.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table.custom-table>table {
  border: 1px solid var(--wp--preset--color--border);
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table.custom-table>table tr th,
.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table.custom-table>table tr td {
  border: 1px solid var(--wp--preset--color--border);
  line-height: 1.5;
  font-size: 15px;
  padding: 15px;
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table.custom-table>table tr th {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-text);
  vertical-align: top;
  text-align: left;
  width: 25%;
}


@media (max-width:800px) {

  .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table.custom-table>table tr th,
  .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table.custom-table>table tr td {
    width: 100%;
    display: block;
    padding: 10px;
    font-size: 14px;
  }
}

h2.is-style-case-title {
  font-family: var(--font_jp);
  letter-spacing: 0.15em;
  border-bottom: 1px solid #333;
  font-size: 18px;
  position: relative;
  padding: 0 0 12px;
  margin: 0 0 25px;
}

h3.is-style-case-title {
  font-size: 17px;
}

.wp-block-media-text {
  gap: 20px;
}

.wp-block-media-text>.wp-block-media-text__content {
  padding: 0;
}
