/* デフォルトのブロックのCSSを上書きするためのもの */

/* h2 */
.block_editor_area h2.wp-block-heading{
  font-size: 28px;
  font-weight: 700;
  line-height: 44.8px;
  border-bottom: 3px solid #3599e8;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  padding-bottom: 4px;
}

@media screen and (max-width: 769px) {
  .block_editor_area h2.wp-block-heading{
    margin-bottom: 24px;
    max-width: 100%;
    font-size: 20px;
    line-height: 32px;
    padding-bottom: 3px;
  }
}

/* h3 */
.block_editor_area h3.wp-block-heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 42px;
  padding-left: 16px;
  border-left: 6px solid #3599e8;
  margin-bottom: 40px;
}

@media screen and (max-width: 769px) {
  .block_editor_area h3.wp-block-heading {
    margin-bottom: 24px;
    max-width: 100%;
    font-size: 18px;
    font-weight: 700;
    line-height: 28.8px;
    padding-left: 8px;
  }
}

/* h4 */
.block_editor_area h4.wp-block-heading{
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  padding-left: 31px;
  position: relative;
  margin-bottom: 24px;
}

@media screen and (max-width: 769px) {
  .block_editor_area h4.wp-block-heading{
    margin-bottom: 24px;
    max-width: 100%;
    font-size: 16px;
    line-height: 25.6px;
    padding-left: 22px;
  }
}

.block_editor_area h4.wp-block-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #3599e8;
  border-radius: 50%;
  margin-top: 15px;
}
@media screen and (max-width: 769px) {
  .block_editor_area h4.wp-block-heading::before {
    margin-top: 12px;
  }
}

/* 画像 */
.block_editor_area .wp-block-image {
  max-width: 764px;
  width: 100%;
  margin-bottom: 40px;
}

.block_editor_area .wp-block-image img{
  object-fit: contain;
  width: 100%;
  height: auto;
}

/* 画像縦幅が473pxを超える場合には以下のスタイルを適応 */
.block_editor_area .wp-block-image img.cover-style{
  aspect-ratio: 764/473.91;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 769px) {
  .block_editor_area .wp-block-image {
    margin-bottom: 24px;
  }
}

/* ハイライトのデザイン */
.block_editor_area mark{
  background-color: #fff !important;
  background: linear-gradient(transparent 50%, #c5e5ff 0%);
  line-height: 1.3em;
}

/* テキスト（段落） */
.block_editor_area p:not(.wp-block-quote p):not(.chat__text):not(.related-content__text):not(.alert__title):not(.alert__message){
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

@media screen and (max-width: 769px) {
  .block_editor_area p:not(.wp-block-quote p):not(.chat__text):not(.related-content__text):not(.alert__title):not(.alert__message){
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 28px;
  }
}

/* 文中リンク */
.block_editor_area a:not(.related-content a){
  color: #3599e8;
  border-bottom: 1px solid #3599e8;
}

.block_editor_area a:hover:not(.related-content a) {
  color: #0056b3;
  border-bottom: 1px solid #0056b3;
}

/* 引用 */
.block_editor_area blockquote {
  position: relative;
  background-color: #e3f2fd;
  padding: 32px 64px;
  border-radius: 8px;
  margin-bottom: 40px;
}
@media screen and (max-width: 769px) {
  .block_editor_area blockquote {
    margin-bottom: 24px;
    padding: 24px 45px;
  }
}

.block_editor_area blockquote p {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  color: #333333;
  letter-spacing: 0.04em;
}
@media screen and (max-width: 769px) {
  .block_editor_area blockquote p {
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 0.04em;
  }
}

.block_editor_area blockquote cite {
  color: #3599e8;
  text-decoration: underline;
  font-size: 14px;
  font-style: oblique;
}

.block_editor_area blockquote cite:hover {
  text-decoration: underline;
}

.block_editor_area blockquote::before, .block_editor_area blockquote::after {
  content: "";
  background-image: url(https://hipster-enterprise.com/tech/wp-content/themes/hipnotech/img/blog/quate-icon.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 32px;
  height: 25px;
  position: absolute;
}

.block_editor_area blockquote::before {
  top: 15px;
  left: 15px;
}

.block_editor_area blockquote::after {
  bottom: 15px;
  right: 15px;
  transform: scale(-1, -1);
}

@media screen and (max-width: 769px) {
  .block_editor_area blockquote::before, .block_editor_area blockquote::after {
    width: 24px;
    height: 24px;
  }
}

/* リストのデザイン */
.block_editor_area > ul, 
.block_editor_area > ol {
  border: 1px solid #3599e8;
  border-radius: 8px;
  margin-bottom: 40px;
  position: relative;
  padding: 30.5px 28px 30.5px 20px;
}

@media screen and (max-width: 769px) {
  .block_editor_area > ul, 
  .block_editor_area > ol {
    margin-bottom: 24px;
    padding: 14px 10px 14px 10px;
  }
}

/* UL（箇条書き）のスタイル */
.block_editor_area ul > li {
  position: relative;
  font-size: 18px;
  font-weight: 400;
  line-height: 28.8px;
  letter-spacing: 0.04em;
  padding-left: 28px;
}

.block_editor_area ul > li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: #3599e8;
  border-radius: 50%;
}

@media screen and (max-width: 769px) {
  .block_editor_area ul > li {
    font-size: 14px;
    line-height: 22.4px;
    padding-left: 20px;
  }
  .block_editor_area ul > li::before {
    left: 5px;
    top: 6px;
  }
}

/* OL（番号付きリスト）のスタイル */
.block_editor_area ol {
  list-style-position: outside; /* 番号を内側に配置 */
  list-style-type: decimal; /* 番号の形式を明示 */
}

.block_editor_area ol > li {
  font-size: 18px;
  font-weight: 400;
  line-height: 28.8px;
  letter-spacing: 0.04em;
  padding-left: 5px; /*数字とテキストの間隔*/
  margin-left: 28px;
}

@media screen and (max-width: 769px) {
  .block_editor_area ol > li {
    font-size: 14px;
    line-height: 22.4px;
  }
}

.wp-block-list li::marker {
  font-weight: 700;
  color: #3599e8;
}


/* ネストされたリスト（ボーダーを除外） */
.block_editor_area ul ul, 
.block_editor_area ul ol, 
.block_editor_area ol ul, 
.block_editor_area ol ol {
  border: none;
  padding: 0;
  margin: 0;
}



/* テーブル */
.block_editor_area .wp-block-table {
  overflow-x: overlay;
  margin-bottom: 40px;
  border: 1px solid #3599e8;
  border-radius: 8px;
}

.block_editor_area .wp-block-table table {
  border-spacing: 0;
  width: 100%;
  min-width: calc(764px - 2px);
  border-collapse: collapse;
  table-layout: auto;
}

@media screen and (max-width: 769px) {
  .block_editor_area .wp-block-table {
    margin-bottom: 24px;
    border-radius: 8px;
  }
}

.block_editor_area .wp-block-table th {
  background-color: #3599e8;
  color: white;
  flex: none;
  font-weight: bold;
  text-align: center;
  border: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  padding: 16px;
  width: 220px;
  min-width: 180px; /* 最小幅を設定 */
  max-width: 200px; /* 最大幅を設定 */
}

@media screen and (max-width: 769px) {
  .block_editor_area .wp-block-table th {
    width: 35.2%;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0.04em;
    padding: 8px;
  }
}

.block_editor_area .wp-block-table tr th:first-child {
  border-radius: 8px 0 0 0;
}

.block_editor_area .wp-block-table tr th:last-child {
  border-radius: 0 8px 0 0;
}

.block_editor_area .wp-block-table tbody tr td {
  padding: 14.2px 14.5px 14px;
  flex: 1;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.04em;
  min-width: 180px; /* 最小幅を設定 */
  max-width: 200px; /* 最大幅を設定 */
}


@media screen and (max-width: 769px) {
  .block_editor_area .wp-block-table tbody tr td {
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0.04em;
    padding: 6px 7px;
  }
}

.block_editor_area .wp-block-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #3599e8;
}

.block_editor_area .wp-block-table td,
.block_editor_area .wp-block-table th {
  border-top: none;
  padding: 15px;
}
@media screen and (max-width: 769px) {
.block_editor_area .wp-block-table td,
.block_editor_area .wp-block-table th {
    padding: 7px;
  }
}

.block_editor_area .wp-element-caption {
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
  font-style: oblique;
}

@media screen and (max-width: 769px) {
.block_editor_area .wp-element-caption {
  font-size: 12px;
}
}


/* 以下未使用 */

/* 太字 */
.article__section .block_editor_area strong{
	font-weight: bold;
}

/* イタリックのデザイン */
.article__section .block_editor_area em{
    font-style: italic;
}

/* ボタンのデザイン */
.article__section .block_editor_area .wp-block-button {
  width: 290px;
  height: 56px;
  margin-bottom: 40px;
  border-radius: 35px;
  background: url(images/icon_allow_02.png) right 20px center no-repeat #FF81A0;
  background-size: 24px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 6px 0 #8B334A;
  vertical-align:middle;
  cursor: pointer;
}

.article__section .block_editor_area .wp-block-button .wp-block-button__link{
  color:white;
  text-decoration:none;
  line-height:56px;
}


.article__section .block_editor_area .wp-block-table td {
  padding: 15px 30px;
  min-width: 100px;
  width: 100px;
}


.article__section .block_editor_area .article__section-box__point p {
	margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .article__section .block_editor_area .wp-block-button {
    transition: 0.3s ease-in-out;
  }
  .article__section .block_editor_area .wp-block-button:hover {
    transform: translateY(6px);
    box-shadow: none;
  }
}

@media screen and (max-width: 767px) {
  .article__section .block_editor_area h2.wp-block-heading {
    font-size: 2rem;
    padding-bottom: 40px;
	margin-top: 72px;
    margin-bottom: 16px;
    background: url(images/background_article.png) right bottom no-repeat;
    background-size: 60px;
    position: relative;
  }

  .article__section .block_editor_area h2.wp-block-heading::after {
    position: absolute;
    bottom: 20px;
    left: 0;
    content: "";
    width: calc(100% - 65px);
    height: 3px;
    border-bottom: 3px dotted #FFB7BB;
  }
	
  .article__section .block_editor_area h3.wp-block-heading {
	margin-top: 64px;
    margin-bottom: 24px;
	font-size: 1.8rem;
  }

  .article__section .block_editor_area h4.wp-block-heading {
    font-size: 1.6rem;
    margin-bottom: 40px;
    padding-left: 25px;
    background: url(images/icon_dotted.png) left 12px no-repeat;
    background-size: 18px;
  }
	
  .article__section .block_editor_area .wp-block-button {
    font-size: 1.5rem;
    width: 78%;
    margin-bottom: 30px;
  }

  .article__section .block_editor_area p:not(.article__section-box__text p):not(.article__section-speech__left p):not(.article__section-speech__right p):not(.article__section-relation p):not(.article__section-box__point p){
    margin-bottom: 24px;
    font-size: 1.4rem;
  }
	
  .article__section .block_editor_area a:not(.article__index a):not(.article__section-relation a):not(.wp-block-button a){
    font-size: 1.4rem;
  }
	
  .article__section .block_editor_area ul:not(.article__index ul) {
    padding: 16px;
    border: 2px dotted #FFB7BB;
	margin-top: 32px;
    margin-bottom: 32px;
    font-size: 1.4rem;
  }
	
  .article__section .block_editor_area li:not(.article__index li)::after {
    top: 10px;
    width: 6px;
    height: 6px;
  }
  .article__section .block_editor_area li:not(.article__index li) + li:not(.article__index li) {
    margin-top: 10px;
  }
	
  .article__section .block_editor_area .wp-block-table table {
    font-size: 1.4rem;
	margin-top: 40px;
    margin-bottom: 40px;
  }
	
  .article__section .block_editor_area .wp-block-table th {
    width: 24%;
    text-align: left;
    padding: 8px;
  }
	
  .article__section .block_editor_area .wp-block-table td {
    padding: 8px;
    width: 68px;
    min-width: 68px;
  }
}