@charset "UTF-8";

/*
ブログの記事部分のCSS
表画面：.p-details-contents
管理画面：.editor-styles-wrapper
の配下にのみ効くようにする
*/

/* 全体 */
.p-details-contents{
    margin-top: calc(50 * var(--px));
}
.editor-styles-wrapper{
    font-family: var(--main-font-family);
}
.p-details-contents,
.editor-styles-wrapper{
    font-size: var(--fs-base);
    line-height: var(--lh-base);
}
.p-details-contents iframe,
.editor-styles-wrapper iframe{
    max-width: 100%;
}
.p-details-contents p a,
.editor-styles-wrapper p a{
    color: var(--brand-color);
    text-decoration: underline;
    text-underline-offset: calc(3 * var(--px));
}
.p-details-contents .toc_toggle a,
.editor-styles-wrapper .toc_toggle a{
    color: inherit;
    text-decoration: none;
}
.p-details-contents .wp-block-image,
.editor-styles-wrapper .wp-block-image,
.p-details-contents .wp-block-embed,
.editor-styles-wrapper .wp-block-embed{
    margin-bottom: calc(40 * var(--px));
}
.p-details-contents .wp-block-image + .wp-block-heading,
.editor-styles-wrapper .wp-block-image + .wp-block-heading,
.p-details-contents .wp-block-embed + .wp-block-heading,
.editor-styles-wrapper .wp-block-embed + .wp-block-heading{
    margin-top: calc(50 * var(--px));
}
.p-details-contents img,
.editor-styles-wrapper img{
    border-radius: var(--radius-base);
}
@media screen and (max-width: 767px){
    .p-details-contents{
        margin-top: calc(30 * var(--px));
    }
    .p-details-contents p a,
    .editor-styles-wrapper p a{
        text-underline-offset: calc(1 * var(--px));
    }
    .p-details-contents .wp-block-image,
    .editor-styles-wrapper .wp-block-image,
    .p-details-contents .wp-block-embed,
    .editor-styles-wrapper .wp-block-embed{
        margin-bottom: calc(30 * var(--px));
    }
    .p-details-contents .wp-block-image + .wp-block-heading,
    .editor-styles-wrapper .wp-block-image + .wp-block-heading,
    .p-details-contents .wp-block-embed + .wp-block-heading,
    .editor-styles-wrapper .wp-block-embed + .wp-block-heading{
        margin-top: calc(30 * var(--px));
    }
}

/* 目次 */
.p-details-contents #toc_container,
.editor-styles-wrapper #toc_container {
    width: 100% !important;
    padding: calc(20 * var(--px)) calc(30 * var(--px));
    background: var(--gray-color-lighter);
    border: 1px solid var(--gray-color);
    margin-bottom: calc(50 * var(--px));
    border-radius: var(--radius-light);
}
.p-details-contents .toc_title,
.editor-styles-wrapper .toc_title {
    display: flex;
    gap: calc(16 * var(--px));
    align-items: center;
    color: var(--text-color);
    font-weight: 600;
    font-size: var(--fs-small-title);
    margin-bottom: calc(10 * var(--px));
}
.p-details-contents #toc_container.contracted .toc_title,
.editor-styles-wrapper #toc_container.contracted .toc_title{
    margin-bottom: 0;
}
.p-details-contents .toc_title::before,
.editor-styles-wrapper .toc_title::before{
    font-family: var(--icon-font-family);
    content: "\f03a";
    font-weight: 600;
    font-size: var(--fs-large-title);
    color: var(--brand-color);
}
.p-details-contents .toc_toggle,
.editor-styles-wrapper .toc_toggle{
    font-size: var(--fs-base);
    font-weight: normal;
}
.p-details-contents .toc_list,
.editor-styles-wrapper .toc_list{
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--text-color);
}
.p-details-contents .toc_list>li>a,
.editor-styles-wrapper .toc_list>li>a{
    font-weight: bold;
    font-size: var(--fs-small-title);
}
.p-details-contents .toc_list>li>ul,
.editor-styles-wrapper .toc_list>li>ul{
    margin-left: calc(15 * var(--px));
}
.p-details-contents .toc_number,
.editor-styles-wrapper .toc_number{
   margin-right: calc(5 * var(--px));
}
@media screen and (max-width: 767px){
    .p-details-contents #toc_container,
    .editor-styles-wrapper #toc_container {
        padding: calc(20 * var(--px));
        margin-bottom: calc(30 * var(--px));
    }
}

/* 見出し　*/
.p-details-contents h2.wp-block-heading,
.editor-styles-wrapper h2.wp-block-heading{
  background-color: #f4f4f4;
  border-left: solid calc(8 * var(--px)) var(--brand-color);
  font-size: var(--fs-large-title);
  line-height: var(--lh-tighter);
  font-weight: 600;
  padding: calc(10 * var(--px)) calc(20 * var(--px));
  margin-bottom: calc(20 * var(--px));
  color: var(--text-color);
}
.p-details-contents h3.wp-block-heading,
.editor-styles-wrapper h3.wp-block-heading{
  font-size: var(--fs-title);
  line-height: var(--lh-tighter);
  font-weight: 600;
  border-left: solid calc(4 * var(--px)) var(--brand-color);
  padding-left: calc(12 * var(--px));
  align-items: center;
  margin-bottom: calc(20 * var(--px));
  display: flex;
  color: var(--text-color);
}
@media screen and (max-width: 767px){
    .p-details-contents h2.wp-block-heading,
    .editor-styles-wrapper h2.wp-block-heading,
    .p-details-contents h3.wp-block-heading,
    .editor-styles-wrapper h3.wp-block-heading{
        margin-bottom: calc(15 * var(--px));
    }
}

/* 段落 */
.p-details-contents > p,
.editor-styles-wrapper > p{
    margin-bottom: calc(40 * var(--px));
}
@media screen and (max-width: 767px){
    .p-details-contents > p,
    .editor-styles-wrapper > p{
        margin-bottom: calc(30 * var(--px));
    }
}

/* ポイント */
.p-details-contents .point-box,
.editor-styles-wrapper .point-box {
    border-radius: var(--radius-light);
    padding: 0;
    font-family: sans-serif;
    margin-bottom: calc(40 * var(--px));
}
.p-details-contents .point-title,
.editor-styles-wrapper .point-title {
    background: var(--brand-color);
    border-top-right-radius: var(--radius-light);
    border-top-left-radius: var(--radius-light);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(160 * var(--px));
    height: calc(35 * var(--px));
}
.p-details-contents .checkmark-background,
.editor-styles-wrapper .checkmark-background{
    background: #fff;
    display: inline-flex;
    width: calc(16 * var(--px));
    height: calc(16 * var(--px));
    position: relative;
    border-radius: 2px;
    margin-right: calc(10 * var(--px));
}
.p-details-contents .checkmark,
.editor-styles-wrapper .checkmark{
    content: '';
    width: calc(10 * var(--px));
    height: calc(5 * var(--px));
    border-left: 2px solid var(--brand-color);
    border-bottom: 2px solid var(--brand-color);
    transform: rotate(-45deg);
    position: absolute;
    top: calc(4 * var(--px));
    left: calc(3 * var(--px));
}
.p-details-contents .point-content,
.editor-styles-wrapper .point-content {
    border: 1px solid var(--brand-color);
    border-top-right-radius: var(--radius-light);
    border-bottom-left-radius: var(--radius-light);
    border-bottom-right-radius: var(--radius-light);
    padding: calc(20 * var(--px)) calc(20 * var(--px)) calc(20 * var(--px)) calc(10 * var(--px));
    background: var(--section-yellow-color);
}
.p-details-contents .point-content p,
.editor-styles-wrapper .point-content p {
    padding-left: calc(30 * var(--px));
    font-size: var(--fs-base);
    position: relative;
}
.p-details-contents .point-content .wp-block-list,
.editor-styles-wrapper .point-content .wp-block-list{
    padding-left: calc(30 * var(--px));
}
.p-details-contents .point-content .wp-block-list li,
.editor-styles-wrapper .point-content .wp-block-list li{
    list-style-type: disc;
}
@media screen and (max-width: 767px){
    .p-details-contents .point-box,
    .editor-styles-wrapper .point-box {
        margin-bottom: calc(30 * var(--px));
    }
    .p-details-contents .point-title,
    .editor-styles-wrapper .point-title {
        width: calc(135 * var(--px));
        height: calc(30 * var(--px));
    }
    .p-details-contents .checkmark-background,
    .editor-styles-wrapper .checkmark-background{
        margin-right: calc(7 * var(--px));
    }
    .p-details-contents .point-content,
    .editor-styles-wrapper .point-content {
        padding: calc(15 * var(--px)) calc(15 * var(--px)) calc(15 * var(--px)) calc(10 * var(--px));
    }
}

/* 関連記事 */
.p-details-contents .related-blog-box,
.editor-styles-wrapper .related-blog-box {
    margin-bottom: calc(40 * var(--px));
    background: #fff;
}
.p-details-contents .related-blog-titel,
.editor-styles-wrapper .related-blog-titel {
    background: var(--text-color);
    border-top-right-radius: var(--radius-light);
    border-top-left-radius: var(--radius-light);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(160 * var(--px));
    height: calc(35 * var(--px));
}
.p-details-contents .book-icon,
.editor-styles-wrapper .book-icon{
    height: calc(16 * var(--px));
    margin: calc(2 * var(--px)) calc(10 * var(--px)) 0 0;
}
.p-details-contents .related-blog-content,
.editor-styles-wrapper .related-blog-content {
    display: flex;
    align-items: center;
    border: 1px solid var(--text-color);
    padding: calc(30 * var(--px));
    border-radius: 0 var(--radius-light) var(--radius-light) var(--radius-light);
}
.p-details-contents .related-blog-img,
.editor-styles-wrapper .related-blog-img {
    max-width: calc(160 * var(--px));
    flex-shrink: 0;
    height: auto;
    border-radius: var(--radius-light);
    overflow: hidden;
}
.p-details-contents .related-blog-link,
.editor-styles-wrapper .related-blog-link {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    margin-left: calc(30 * var(--px));
}
@media screen and (max-width: 767px){
    .p-details-contents .related-blog-img,
    .editor-styles-wrapper .related-blog-img {
        max-width: calc(120 * var(--px));
    }
    .p-details-contents .related-blog-titel,
    .editor-styles-wrapper .related-blog-titel {
        width: calc(135 * var(--px));
        height: calc(30 * var(--px));
    }
    .p-details-contents .book-icon,
    .editor-styles-wrapper .book-icon{
        margin-right: calc(7 * var(--px));
    }
    .p-details-contents .related-blog-link,
    .editor-styles-wrapper .related-blog-link {
        margin-left: calc(20 * var(--px));
    }
    .p-details-contents .related-blog-content,
    .editor-styles-wrapper .related-blog-content {
        padding: calc(15 * var(--px));
    }
}

/* キャンペーン */
.p-details-contents .campaign-box,
.editor-styles-wrapper .campaign-box{
    position: relative;
    margin-bottom: calc(40 * var(--px));
}
.p-details-contents .campaign-checkmark,
.editor-styles-wrapper .campaign-checkmark{
    content: '';
    width: calc(16 * var(--px));
    height: calc(8 * var(--px));
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg);
    margin-right: calc(10 * var(--px));
}
.p-details-contents .campaign-title,
.editor-styles-wrapper .campaign-title{
    background: var(--brand-color);
    border-top-right-radius: var(--radius-light);
    border-top-left-radius: var(--radius-light);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(160 * var(--px));
    height: calc(35 * var(--px));
}
.p-details-contents .campaign-content,
.editor-styles-wrapper .campaign-content{
    background: var(--section-yellow-color);
    padding: calc(30 * var(--px));
    border-radius: 0 var(--radius-light) var(--radius-light) var(--radius-light);
    border: 1px solid var(--brand-color);
}
.p-details-contents .campaign-text:empty{
    display: none;
}
.p-details-contents .campaign-text,
.editor-styles-wrapper .campaign-text{
    margin-bottom: calc(20 * var(--px));
}
.p-details-contents .campaign-img,
.editor-styles-wrapper .campaign-img{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-light);
    overflow: hidden;
}
@media screen and (max-width: 767px){
    .p-details-contents .campaign-title,
    .editor-styles-wrapper .campaign-title{
        width: calc(135 * var(--px));
        height: calc(30 * var(--px));
    }
    .p-details-contents .campaign-checkmark,
    .editor-styles-wrapper .campaign-checkmark{
        margin-right: calc(7 * var(--px));
    }
    .p-details-contents .campaign-text,
    .editor-styles-wrapper .campaign-text{
        margin-bottom: calc(15 * var(--px));
    }
    .p-details-contents .campaign-content,
    .editor-styles-wrapper .campaign-content{
        padding: calc(20 * var(--px));
    }
}