/*
  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;
  }
}
h1.ad-detail__article-heading-title{
	font-size: 40px;
	font-weight: 600;
}

/* H2 */
h2.wp-block-heading {
  position: relative;
	margin-top: 1.2em;
  margin-bottom: 20px;
  padding-left: 20px;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: .025em;
  line-height: 120%;
	/*text-transform: inherit;*/
	text-transform: none;
}
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: 24px;
    margin-bottom: 15px;
    padding-left: 15px;
  }
}

/* H3 */
h3.wp-block-heading {
  margin-block: 40px 14px;
  /*
	margin-bottom: 20px;
	padding: 16px;
  background-color: #efefef;
	*/
	font-size: 22px;
  font-weight: bold;
  line-height: 120%;
	text-transform: none;
}
@media (max-width: 899px) {
  h3.wp-block-heading {
    font-size: 18px;
    margin-block: 30px 10px;
  }
}

/* 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: 20px;
  font-weight: bold;
  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;
  }
}
.h2-border-box{
  font-weight: bold!important;	
}

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

/* Table */
.wp-block-table {
  margin-top: 0;
  padding: 0;
  margin-block: 15px;
}
.wp-block-table table, .wp-block-table th, .wp-block-table td {
	background: none;
	border: 1px #ddd solid;
	/*text-align: left;*/
	margin: 0;
	font-size: inherit;
}
.wp-block-table table {
	display: table;
	table-layout: auto;
  width: 100% !important;
	word-break: break-all;
	word-wrap: break-word;
	border-spacing: 0;
	border-collapse: collapse;
}
.wp-block-table th {
	/*font-size: 18px;*/
	font-weight: 500;
	padding-inline: 20px;
	padding-block: 14px;
	vertical-align: top;
	background-color: #f5f5f5;	
	color: currentColor;
}
.wp-block-table td {
	padding-inline: 20px;
	padding-block: 14px;
}
.wp-block-table.ad-info-table table > tbody th {
	width: 300px;
}
.wp-block-table thead {
	border-bottom: inherit;
}
.wp-block-table tfoot {
	border-top: 3px double #ddd;
}

@media (max-width: 899px) {
	.wp-block-table th, .wp-block-table td {
		text-align: left;
		padding-inline: 14px;
		padding-block: 6px;
    font-size: 16px;
	}
	.wp-block-table.ad-info-table table th {
		text-align: left;
		width: 100%;
	}
}

/* 既存テーブル　バックアップ
.wp-block-table {
  margin-top: 0;
  padding: 0;
  margin-bottom: 30px;
}
.wp-block-table table {
  width: auto !important;
  border-style: solid;
  border-color: transparent;
  border-width: 1px;
}
.wp-block-table td {
  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%;
  white-space: normal;
  word-break: normal;
  display: block;
}

/* 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;
}

/* Table新 */
.editor-styles-wrapper .wp-block-table {
  margin-top: 0;
  padding: 0;
  margin-bottom: 40px;
}
.editor-styles-wrapper .wp-block-table table {
	display: table;
	table-layout: auto;
  width: 100% !important;
  border-style: solid;
  border-color: transparent;
  border-width: 1px;
	border-spacing: 0;
	border-collapse: collapse;
	margin-block: 15px;
	word-break: break-all;
	word-wrap: break-word;
}
.editor-styles-wrapper .wp-block-table th {
  border-style: solid;
  border-color: #ddd;
  border-width: 1px;
	padding-inline: 20px;
	padding-block: 14px;
	vertical-align: top;
	background-color: #f5f5f5;
}
.editor-styles-wrapper .wp-block-table td {
  border-style: solid;
  border-color: #ddd;
  border-width: 1px;
	padding-inline: 20px;
	padding-block: 14px;
}
.editor-styles-wrapper .wp-block-table thead {
	border-bottom: inherit;
}
.editor-styles-wrapper .wp-block-table tfoot {
	border-top: 3px double #ddd;
}
.editor-styles-wrapper .wp-block-table.ad-info-table > tbody th {
	width: 300px;
}
