/* editor style */

/* base */
.editor-styles-wrapper {
  --color-main: #6a82f6;
  --half-read: calc((1em - 1lh) / 2);
  font-size: 16px;
  color: #333;
}

/* text link */
.editor-styles-wrapper a {
  color: var(--color-main);
}

@media (any-hover: hover) {
  .editor-styles-wrapper a:hover {
    text-decoration: underline;
  }
}

/* paragraph */
.editor-styles-wrapper p {
  line-height: 2;
  margin: var(--half-read) 0 calc(40px + var(--half-read));
}

@media (max-width: 767px) {
  .editor-styles-wrapper p {
    line-height: 1.8;
    margin: var(--half-read) 0 calc(30px + var(--half-read));
  }
}

/* heading */
.editor-styles-wrapper :is(h2, h3, h4) {
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: calc(40px + var(--half-read));
}

@media (max-width: 767px) {

  .editor-styles-wrapper :is(h2, h3, h4) {
    margin-bottom: calc(30px + var(--half-read));
  }
}

/* heading 2 */
.editor-styles-wrapper h2 {
  font-size: 28px;
  border-bottom: 1px solid #aaa;
  padding-bottom: 0.3em;
}

.editor-styles-wrapper *+h2 {
  margin-top: calc(80px + var(--half-read));
}

@media (max-width: 767px) {
  .editor-styles-wrapper h2 {
    font-size: 20px;
  }

  .editor-styles-wrapper *+h2 {
    margin-top: calc(60px + var(--half-read));
  }
}

/* heading 3 */
.editor-styles-wrapper h3 {
  font-size: 22px;
  border-left: 4px solid var(--color-main);
  padding-left: 15px;
  box-sizing: border-box;
}

.editor-styles-wrapper *+h3 {
  margin-top: calc(70px + var(--half-read));
}

@media (max-width: 767px) {
  .editor-styles-wrapper h3 {
    font-size: 18px;
  }

  .editor-styles-wrapper *+h3 {
    margin-top: calc(40px + var(--half-read));
  }
}

/* heading 4 */
.editor-styles-wrapper h4 {
  font-size: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5em;
  box-sizing: border-box;
}

.editor-styles-wrapper *+h4 {
  margin-top: calc(50px + var(--half-read));
}

@media (max-width: 767px) {
  .editor-styles-wrapper h4 {
    font-size: 16px;
  }

  .editor-styles-wrapper *+h4 {
    margin-top: calc(30px + var(--half-read));
  }
}

/* list */
.editor-styles-wrapper :is(ul, ol) {
  line-height: 1.6;
  margin-bottom: 40px;
}

.editor-styles-wrapper li+li {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .editor-styles-wrapper :is(ul, ol) {
    margin-bottom: 30px;
  }

  .editor-styles-wrapper li+li {
    margin-top: 5px;
  }
}

/* ul */
.editor-styles-wrapper ul {
  list-style: disc;
  padding-left: 20px;
  background: rgb(0 0 0 / 3%);
  padding: calc(30px + var(--half-read)) 50px;
}

.editor-styles-wrapper ul ul {
  padding: 0 0 0 20px;
  margin: 10px 0 0;
  background: none;
}

.editor-styles-wrapper ul ul li+li {
  margin-top: 5px;
}

@media (max-width: 767px) {
  .editor-styles-wrapper ul {
    padding: calc(15px + var(--half-read)) 30px;
  }
}

/* ol */
.editor-styles-wrapper ol {
  counter-reset: item;
  list-style-type: none;
  padding: 0;
}

.editor-styles-wrapper ol li {
  display: flex;
  gap: 10px;
}

.editor-styles-wrapper ol li:before {
  counter-increment: item;
  content: counter(item);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 1.8em;
  height: 1.8em;
  border-radius: 50%;
  color: #fff;
  background: var(--color-main);
  line-height: 1;
}

@media (max-width: 767px) {
  .editor-styles-wrapper ol li {
    gap: 5px;
  }

  .editor-styles-wrapper ol li:before {
    font-size: 12px;
  }
}

/* ボタン */
.editor-styles-wrapper .wp-block-buttons {
  margin-bottom: 40px;
}

.editor-styles-wrapper .wp-block-button {
  max-width: 100%;
}

.editor-styles-wrapper .wp-block-button>.wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: 280px;
  height: 50px;
  padding: 0 20px;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
}

.editor-styles-wrapper .wp-block-button__link {
  color: #fff;
  background: var(--color-main);
}

@media (any-hover: hover) {
  .editor-styles-wrapper .wp-block-button__link:hover {
    text-decoration: none;
    background: color-mix(in srgb, var(--color-main) 70%, black);
  }
}

@media (max-width: 767px) {
  .editor-styles-wrapper .wp-block-buttons {
    margin-bottom: 30px;
  }

  .editor-styles-wrapper .wp-block-button__link {
    width: 240px;
    font-size: 14px;
  }
}

/* image */
.editor-styles-wrapper .wp-block-image {
  margin-bottom: 40px;
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: 5px;
  overflow: hidden;
}

.editor-styles-wrapper .wp-block-image figcaption {
  margin: 0;
  padding: 15px;
  text-align: center;
  font-size: 0.8em;
  border-top: 1px solid rgb(0 0 0 / 10%);
}

@media (max-width: 767px) {
  .editor-styles-wrapper .wp-block-image {
    margin-bottom: 30px;
  }
}

/* table */
.editor-styles-wrapper .wp-block-table {
  line-height: 1.6;
  margin-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}

.editor-styles-wrapper .wp-block-table table {
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
}

.editor-styles-wrapper .wp-block-table tr+tr {
  border-top: solid 3px #fff;
}

.editor-styles-wrapper .wp-block-table :is(td, th) {
  padding: 1.3em 1.5em 1.1em;
  background: rgb(0 0 0 / 3%);
  border: none;
}

.editor-styles-wrapper .wp-block-table th {
  color: #fff;
  background: var(--color-main);
}

.editor-styles-wrapper .wp-block-table th+th,
.editor-styles-wrapper .wp-block-table td+td {
  border-left: solid 3px #fff;
}

.editor-styles-wrapper .wp-block-table thead {
  text-align: left;
  border-bottom: solid 3px #fff;
}

.editor-styles-wrapper .wp-block-table thead th {
  padding: 1em 1.5em 0.9em;
  font-weight: 600;
}

.editor-styles-wrapper .wp-block-table td:first-of-type {
  white-space: nowrap;
  font-weight: 600;
}

.editor-styles-wrapper .wp-block-table figcaption {
  font-size: 14px;
  color: rgb(0 0 0 / 50%);
  text-align: center;
  margin-top: 10px;
}

.editor-styles-wrapper .wp-block-table thead+tbody td:first-of-type {
  font-weight: normal;
}

@media (max-width: 767px) {
  .editor-styles-wrapper .wp-block-table {
    margin-bottom: 30px;
  }

  .editor-styles-wrapper .wp-block-table table {
    font-size: 12px;
  }
}

/* Quote */
.editor-styles-wrapper .wp-block-quote {
  padding: 30px;
  position: relative;
  margin-bottom: 40px;
  background: color-mix(in srgb, var(--color-main) 5%, white);
  border-left: 3px solid var(--color-main);
}

.editor-styles-wrapper .wp-block-quote p {
  margin-bottom: 15px;
}

.editor-styles-wrapper .wp-block-quote cite {
  display: block;
  color: #999;
  text-align: right;
}

.editor-styles-wrapper .wp-block-quote:before {
  content: '';
  display: block;
  font-size: 28px;
  width: 1em;
  height: 1em;
  background-color: var(--color-main);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m280.46-297.69 78.77-136.93q-6.92 3.85-16.15 5.39-9.23 1.54-18.46 1.54-56 0-94.16-38.93-38.15-38.92-38.15-93.38 0-56 38.15-94.15 38.16-38.16 94.16-38.16 54.46 0 93.38 38.16Q456.92-616 456.92-560q0 19.15-4.73 35.96-4.73 16.81-13.42 31.73L314.85-277.69q-2.7 4.38-7.08 7.19-4.39 2.81-10 2.81-11.46 0-17.19-10t-.12-20Zm350.77 0L710-434.62q-6.92 3.85-16.15 5.39-9.23 1.54-18.47 1.54-56 0-94.15-38.93-38.15-38.92-38.15-93.38 0-56.77 38.15-94.54t94.15-37.77q54.47 0 93.39 38.16Q807.69-616 807.69-560q0 19.15-4.73 35.96-4.73 16.81-13.42 31.73L665.62-277.69q-2.7 4.38-7.08 7.19-4.39 2.81-10 2.81-11.46 0-17.19-10t-.12-20Z"/></svg>') no-repeat center / contain;
  margin: -10px -0.2em 20px;
}

@media (max-width: 767px) {
  .editor-styles-wrapper .wp-block-quote {
    padding: 20px;
    margin-bottom: 30px;
  }

  .editor-styles-wrapper .wp-block-quote:before {
    margin-top: 0;
  }
}

/* caution */
.editor-styles-wrapper .is-style-caution {
  padding: calc(70px - 0.5em) 30px calc(30px - 0.5em);
  background: rgb(241 63 36 / 5%);
  border-left: 3px solid #f13f24;
  position: relative;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.editor-styles-wrapper .is-style-caution:before,
.editor-styles-wrapper .is-style-caution:after {
  color: #f13f24;
  font-weight: 600;
}

.editor-styles-wrapper .is-style-caution:before {
  content: '';
  display: block;
  position: absolute;
  top: 29px;
  left: 30px;
  font-size: 24px;
  width: 1em;
  height: 1em;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M480.17-420q-51.86 0-97.05 23.31-45.2 23.31-73.04 66.38-8.69 12.92-2.04 25.46 6.65 12.54 21.19 12.54 5.95 0 10.78-2.73 4.84-2.73 8.68-7.81 23-32.54 57.39-51 34.38-18.46 73.92-18.46t73.92 18.46q34.39 18.46 57.39 51 3.23 5.08 8.06 7.81 4.84 2.73 10.78 2.73 14.54 0 21.2-13.04 6.65-13.04-2.04-26.19Q621.46-374 576.27-397q-45.19-23-96.1-23Zm136.07-107.69q21.84 0 37.03-15.29 15.19-15.28 15.19-37.11t-15.28-37.02q-15.28-15.2-37.12-15.2-21.83 0-37.02 15.29-15.19 15.28-15.19 37.11t15.28 37.02q15.28 15.2 37.11 15.2Zm-272.3 0q21.83 0 37.02-15.29 15.19-15.28 15.19-37.11t-15.28-37.02q-15.28-15.2-37.11-15.2-21.84 0-37.03 15.29-15.19 15.28-15.19 37.11t15.28 37.02q15.28 15.2 37.12 15.2ZM480.07-100q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100ZM480-480Zm0 320q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Z"/></svg>') no-repeat center / contain;
  background-color: currentColor;
}

.editor-styles-wrapper .is-style-caution:after {
  content: '注意点';
  line-height: 1;
  display: block;
  position: absolute;
  top: 33px;
  left: 60px;
}

@media (max-width: 767px) {
  .editor-styles-wrapper .is-style-caution {
    padding: calc(50px - 0.5em) 20px calc(20px - 0.5em);
  }

  .editor-styles-wrapper .is-style-caution:before {
    top: 15px;
    left: 20px;
  }

  .editor-styles-wrapper .is-style-caution:after {
    top: 20px;
    left: 50px;
  }
}

/* box */
.editor-styles-wrapper .is-style-box {
  background: #f2f2f2;
  padding: calc(30px - 0.5em) 30px;
  font-size: 0.8em;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .editor-styles-wrapper .is-style-box {
    padding: calc(20px - 0.5em) 20px;
  }
}

/* 関連記事カードリンク */
.editor-styles-wrapper .c-cardlink {
  margin-bottom: 40px;
  background: #fff;
}

.editor-styles-wrapper .c-cardlink__link {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid #ddd;
  text-decoration: none;
}

.editor-styles-wrapper .c-cardlink__image-wrap {
  box-shadow: 0px 0px 16px -6px rgb(0 0 0 / 10%);
}

.editor-styles-wrapper .c-cardlink__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 15px;
}

.editor-styles-wrapper .c-cardlink__desc {
  --line-clamp: 2;
  --line-clamp-h: auto;
  font-size: 14px;
  line-height: 1.6;
  color: rgb(0 0 0 / 60%);
}

@media (any-hover: hover) {
  .editor-styles-wrapper .c-cardlink__link:hover {
    text-decoration: none;
  }
}

@media (max-width: 767px) {


  .editor-styles-wrapper .c-cardlink {
    margin-bottom: 30px;
  }

  .editor-styles-wrapper .c-cardlink__link {
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding: 15px;
  }

  .editor-styles-wrapper .c-cardlink__title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .editor-styles-wrapper .c-cardlink__desc {
    font-size: 12px;
  }
}

/* 横スクロール画像 */
.editor-styles-wrapper figure.is-style-scroll {
  flex-wrap: nowrap;
  overflow: scroll hidden;
  padding: 1.3em;
  background: #e2e2e2;
  border: 1px solid #aaa;
  margin-bottom: 40px;
  background-image: repeating-linear-gradient(-45deg, #fff, #fff 1px, transparent 0, transparent 3px);
}

.editor-styles-wrapper figure.is-style-scroll figure {
  min-width: 60%;
  box-shadow: 0px 0px 12px -6px rgb(0 0 0 / 50%);
}

.editor-styles-wrapper figure.is-style-scroll figure figcaption {
  background: #fff !important;
  padding: 10px 0 !important;
  color: #333 !important;
  font-size: 12px !important;
  font-weight: 600;
  text-shadow: initial !important;
}

@media (max-width: 768px) {
  .editor-styles-wrapper figure.is-style-scroll {
    margin-bottom: 30px;
  }
}

@media (max-width: 599px) {
  .editor-styles-wrapper figure.is-style-scroll {
    width: calc(100% + 40px);
    margin-left: -20px;
    border-left: none;
    border-right: none;
  }

  .editor-styles-wrapper figure.is-style-scroll figure {
    min-width: 85%;
  }
}

/* ステップカラム */
.editor-styles-wrapper .wp-block-columns.is-style-step {
  flex-wrap: nowrap !important;
}

.editor-styles-wrapper .wp-block-columns.is-style-step:last-of-type {
  margin-bottom: 2em;
}

.editor-styles-wrapper .wp-block-columns.is-style-step:not(:last-of-type) {
  margin-bottom: 0;
}

.editor-styles-wrapper .wp-block-columns.is-style-step .wp-block-column:first-of-type {
  flex-basis: 50px;
  flex-grow: 0;
}

.editor-styles-wrapper .wp-block-columns.is-style-step:not(.is-last) .wp-block-column:first-of-type:after {
  content: '';
  display: block;
  width: 0px;
  height: calc(100% - 50px);
  margin: 0 auto;
  border-right: 1px dashed #B3B3B3;
}

.editor-styles-wrapper .wp-block-columns.is-style-step .wp-block-column:first-of-type p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  background: var(--color-main);
  color: #fff;
  text-align: center;
  line-height: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 1.2em;
}

.editor-styles-wrapper .wp-block-columns.is-style-step .wp-block-column:first-of-type p:before {
  content: 'STEP';
  display: block;
  font-size: 0.5em;
  margin: 0.3em 0;
  font-weight: 500;
}

.editor-styles-wrapper .wp-block-columns.is-style-step .wp-block-column:last-of-type h3 {
  padding-left: 0;
  border-left: none;
  margin-top: 0.3em;
}

@media (max-width: 768px) {
  .editor-styles-wrapper .wp-block-columns.is-style-step {
    gap: 1em;
  }

  .editor-styles-wrapper .wp-block-columns.is-style-step .wp-block-column:first-of-type {
    flex-basis: 40px;
    margin-left: -1em;
  }

  .editor-styles-wrapper .wp-block-columns.is-style-step .wp-block-column:first-of-type p {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }

  .editor-styles-wrapper .wp-block-columns.is-style-step .wp-block-column:last-of-type h3 {
    margin-top: 0.4em;
  }
}