/*
  WP block editor styles for Front side
*/

/* Block - Group */
.wp-block-group {
  margin-bottom: 40px;
  padding: 30px;
  background-color: #efefef;
}
@media (max-width: 899px) {
  .wp-block-group {
    flex-wrap: wrap !important;
    margin-bottom: 32px;
    padding: 20px;
  }
}

/* H2 */
h2.wp-block-heading {
  position: relative;
  margin-bottom: 20px;
  padding-left: 20px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 120%;
}
h2.wp-block-heading::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: currentColor;
}
@media (max-width: 899px) {
  h2.wp-block-heading {
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 15px;
  }
}

/* H3 */
h3.wp-block-heading {
  margin-bottom: 20px;
  padding: 16px;
  background-color: #efefef;
  font-size: 18px;
  font-weight: 500;
  line-height: 120%;
}
@media (max-width: 899px) {
  h3.wp-block-heading {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* H4 - H6 */
h4.wp-block-heading,
h5.wp-block-heading,
h6.wp-block-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: #393939;
  font-size: 18px;
  font-weight: 500;
  line-height: 120%;
}
h4.wp-block-heading::before,
h5.wp-block-heading::before,
h6.wp-block-heading::before {
  content: "";
  display: block;
  flex-shrink: 0;
  rotate: 45deg;
  width: 6px;
  height: 6px;
  background-color: currentColor;
}
@media (max-width: 899px) {
  h4.wp-block-heading,
  h5.wp-block-heading,
  h6.wp-block-heading {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* 通常テキスト - p */
.ad-detail__article-body > p,
.ad-detail__article-body > pre {
  margin-top: 0;
  margin-bottom: 20px;
  color: #393933;
  font-size: 18px;
  line-height: 28.8px;
}
@media (max-width: 899px) {
  .ad-detail__article-body > p,
  .ad-detail__article-body > pre {
    font-size: 16px;
    margin-bottom: 15px !important;
    line-height: 25.6px;
  }
}

/* 整形済みテキスト - pre */
.ad-detail__article-body > pre {
  margin-top: 0;
}

/* Table */
.wp-block-table {
  margin-top: 0;
  padding: 0;
  margin-bottom: 40px;
}
.wp-block-table table {
  width: auto !important;
  border-style: solid;
  border-color: transparent;
  border-width: 1px;
}
.wp-block-table td {
  /* padding: 24px; */
  /* border-style: solid;
  border-color: #ddd;
  border-width: 1px; */
  color: #000;
  font-size: 18px;
  font-weight: 500;
}
.wp-block-table td:first-child {
  display: flex;
  align-items: center;
  gap: 15px;
  width: auto;
  min-width: 200px;
}
.wp-block-table td:first-child:before {
  content: "";
  display: block;
  rotate: 45deg;
  width: 6px;
  min-width: 6px;
  height: 6px;
  min-height: 6px;
  background-color: currentColor;
}
@media (max-width: 899px) {
  .wp-block-table tr {
    padding: 20px;
  }
  .wp-block-table tr:nth-child(n+2) {
    margin-top: 0;
    padding-top: 0;
  }
  .wp-block-table td {
    padding: 0;
  }
}

/* Oorder List and Unorder list */
.wp-block-list {
  list-style: none;
}
.wp-block-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  color: #393933;
  font-size: 18px;
  line-height: 28.8px;
}
.wp-block-list li + li {
  margin-top: 20px;
}
@media (max-width: 899px) {
  .wp-block-list li {
    font-size: 16px;
    line-height: 25.6px;
  }
  .wp-block-list li + li {
    margin-top: 15px;
  }
}

/* Oorder List */
ol.wp-block-list li {
  counter-increment: num;
}
ol.wp-block-list li::before {
  content: counter(num)".";
  display: block;
  flex-shrink: 0;
}

/* Unorder List */
ul.wp-block-list li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  translate: 0 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Image */
.wp-block-group .wp-block-image {
  /* max-width: 50%; */
  margin: 1em;
  padding: 0;
}
.wp-block-group .wp-block-image + p {
  max-width: 50%;
}
@media (max-width: 899px) {
  .wp-block-group .wp-block-image,
  .wp-block-group .wp-block-image + p {
    max-width: 100%;
    width: 100%;
  }
}

/* Figcaption */
.wp-element-caption {
  margin: 0;
  width:100%;
}

/* Hrorizon */
.wp-block-separator {
  border-top: 1px solid;
}

/* サイドバーのaタグ */
.ad-detail__column--right a {
  text-decoration: none;
}

/* グループの枠線の色 */
.has-color-1-border-color {
  border-color: #ddd !important;
}
.u-wmax {
  max-width: 100% !important;
}
.u-wmax img{
  width: 100% !important;
}

.is-style-width100 img {
  width: 100%;
}
.is-style-width80 img {
  width: 80%;
}
.is-style-width60 img {
  width: 60%;
}
.wp-block-image.alignleft{
  padding-right:1em;

}
.wp-block-image.alignright{
  padding-left:1em;
}
