.editor-styles-wrapper.block-editor-writing-flow {
  background-color: rgb(219, 219, 219);
}

.is-style-link a {
  display: inline-block;
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  padding: 3px 23px 3px 8px;
  border: 1px solid var(--wp--preset--color--secondary);
}

.is-style-link a:after {
  position: absolute;
  content: '';
  width: 11px;
  height: 9px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("../img/organization/img2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.is-style-box-info {
  width: 370px;
  height: 325px;
  margin-inline: auto; 
}

.is-style-pagelink-blue {

  width: 400px;
  color: var(--wp--preset--color--tertiary);
  border: 1px solid var(--wp--preset--color--tertiary);
  border-radius: 10px;
  background-color: white;
  text-align: center;

  
  a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5em;

    &:before {
      content: '';
      width: 18px;
      height: 18px;
      background-color: var(--wp--preset--color--tertiary);
      border-radius: 50%;
      position: absolute;
      top: 50%;
      right: 30px;
      transform: translateY(-50%);
    }
    &:after {
      content: '';
      width: 10px;
      height: 6px;
      position: absolute;
      top: 55%;
      right: 34px;
      transform: translateY(-55%);
      background-color: white; /* 初期色 */
      -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'><path d='M11 0.5L6 5.5L1 0.5' stroke='black' stroke-width='1' stroke-miterlimit='10' fill='none'/></svg>");
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-size: contain;
    }
  }

  &:hover {
    background-color: var(--wp--preset--color--tertiary);
    a {
      color: white;

      &:before {
        background-color: white;
      }
      &:after {
        background-color: var(--wp--preset--color--tertiary);
      }
    }
  }
}

.is-style-pagelink-green {

  width: 400px;
  color: var(--wp--preset--color--quaternary);
  border: 1px solid var(--wp--preset--color--quaternary);
  border-radius: 10px;
  background-color: white;
  text-align: center;

  
  a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5em;

    &:before {
      content: '';
      width: 18px;
      height: 18px;
      background-color: var(--wp--preset--color--quaternary);
      border-radius: 50%;
      position: absolute;
      top: 50%;
      right: 30px;
      transform: translateY(-50%);
    }
    &:after {
      content: '';
      width: 10px;
      height: 6px;
      position: absolute;
      top: 55%;
      right: 34px;
      transform: translateY(-55%);
      background-color: white; /* 初期色 */
      -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'><path d='M11 0.5L6 5.5L1 0.5' stroke='black' stroke-width='1' stroke-miterlimit='10' fill='none'/></svg>");
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-size: contain;
    }
  }

  &:hover {
    background-color: var(--wp--preset--color--quaternary);
    a {
      color: white;

      &:before {
        background-color: white;
      }
      &:after {
        background-color: var(--wp--preset--color--quaternary);
      }
    }
  }
}

.is-style-pagelink-red {

  width: 400px;
  color: var(--wp--preset--color--fifth);
  border: 1px solid var(--wp--preset--color--fifth);
  border-radius: 10px;
  background-color: white;
  text-align: center;
  
  a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5em;

    &:before {
      content: '';
      width: 18px;
      height: 18px;
      background-color: var(--wp--preset--color--fifth);
      border-radius: 50%;
      position: absolute;
      top: 50%;
      right: 30px;
      transform: translateY(-50%);
    }
    &:after {
      content: '';
      width: 10px;
      height: 6px;
      position: absolute;
      top: 55%;
      right: 34px;
      transform: translateY(-55%);
      background-color: white; /* 初期色 */
      -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'><path d='M11 0.5L6 5.5L1 0.5' stroke='black' stroke-width='1' stroke-miterlimit='10' fill='none'/></svg>");
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-size: contain;
    }
  }

  &:hover {
    background-color: var(--wp--preset--color--fifth);
    a {
      color: white;

      &:before {
        background-color: white;
      }
      &:after {
        background-color: var(--wp--preset--color--fifth);
      }
    }
  }
}


.is-style-h-underline {
  width: 70px;
  margin-left: unset !important;
  border-top-color: white;
}

@media screen and (max-width: 768px) {
  .is-style-box-info {
    width: 300px;
    height: 200px;

    * {
      margin-block-start: 0 !important;
    }

    h4 {
      font-size: 18px !important;
    }

    p {
      font-size: 12px !important;
    }
  }

  .is-style-h-underline {
    width: 25px;
  }
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-dotted {
  border-style: dotted;
}

.wp-block-image .components-resizable-box__container {
  min-height: unset !important;
}

.device-visibility-wrapper {
  position: relative;
  border: none !important;
  background-color: unset !important;
}
.device-visibility-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #fff000;
  color: #333;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 2px;
  z-index: 10;
  pointer-events: none;
  width: max-content;
}

/* デフォルト: 両方／PC向け */
.device-desktop { display: block !important; }
.device-mobile  { display: none !important; }

/* スマホ（768px 以下）では */
@media (max-width: 768px) {
  .device-desktop { display: none !important; }
  .device-mobile  { display: block !important; }
}
