/*=========== CMS向け追加CSS ==========*/
:root {
    --wysiwyg-gap: 1.875rem;
}
.c-wysiwyg p + p {

}

/*----- Blocks -----*/
.alignleft + *,
.alignright + * {
    clear: both;
}

.wp-block-group > * + * {
    margin-top: var(--wysiwyg-gap);
}


/*----- Heading -----*/
.c-wysiwyg h2.wp-block-heading {
    padding: .625rem 1.25rem;
    background-color: #f1f1f1;
    position: relative;
    border-left: .3125rem solid #d80c18;
    border-top: none;
    border-bottom: none;
}

.c-wysiwyg.--type-column h2.wp-block-heading {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: .04em;
    padding: .6875rem 1.25rem;
    background-color: transparent;
    border-left: none;
    border-top: .3125rem solid #d80c18;
    border-bottom: .3125rem solid #d80c18;
}

.c-wysiwyg h3.wp-block-heading {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: .04em;
    padding-bottom: .1875rem;
    border-bottom: .125rem solid #d80c18;
}

.c-wysiwyg h4.wp-block-heading {
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: .04em;
}

.c-wysiwyg h4.wp-block-heading + p {
    margin-top: calc(0.25 * var(--wysiwyg-gap));
}

@media screen and (max-width: 767px) {
    .c-wysiwyg h2.wp-block-heading,
    .c-wysiwyg.--type-column h2.wp-block-heading {
        font-size: 1.125rem;
    }
    .c-wysiwyg h3.wp-block-heading {
        font-size: 1rem;
        padding-bottom: .625rem;
    }
    .c-wysiwyg h4.wp-block-heading {
        font-size: .9375rem;
    }
}


/*----- text -----*/
.c-wysiwyg p + p {
    margin-top: var(--wysiwyg-gap);
}
.c-wysiwyg p a {
    color: inherit;
    overflow-wrap: anywhere;
}
.c-wysiwyg strong:not(.marker) {
    background: none !important;
    font-weight: bold !important;
}
.c-wysiwyg h2.wp-block-heading + p,
.c-wysiwyg h3.wp-block-heading + p {
    margin-top: calc(0.5 * var(--wysiwyg-gap));
}


/*----- Image -----*/
.wp-block-image {
    margin-top: var(--wysiwyg-gap);
}
figcaption.wp-element-caption {
    font-size: 0.85em;
}
.wp-block-image .wp-element-caption,
.wp-block-image.figcaption-center .wp-element-caption {
    text-align: center;
}
.wp-block-image.figcaption-left .wp-element-caption,
.wp-block-gallery.has-nested-images figure.wp-block-image.figcaption-left figcaption {
    text-align: left;
}
.wp-block-image.figcaption-right .wp-element-caption,
.wp-block-gallery.has-nested-images figure.wp-block-image.figcaption-right figcaption  {
    text-align: right;
}

/* 既存の角丸削除 */
.c-wysiwyg img:not(:where(.c-postParts1 *, .c-postParts2 *, .c-postParts3 *, .c-postParts4 *, .c-postParts5 *, .c-postParts6 *, .c-postImg *)) {
    border-radius: 0;
}


/*----- hr -----*/
hr.wp-block-separator {
    margin-block: var(--wysiwyg-gap);
    border-top: 1px;
    height: 1px;
    background-color: #d3d3d3;
}


.c-postParts5 h2 {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: .04em;
    padding: .625rem 1.25rem;
    background-color: #f1f1f1;
    position: relative;
    border-left: .3125rem solid #d80c18;
}
.c-postParts5 p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    margin-top: 1.25rem;
}

/* Table (Gutenberg / Flexible Table) */
.wp-block-table {
    margin-top: 1.25rem;
}
.wp-block-table th {
    min-width: 16.25rem;
    letter-spacing: 0.04em;
    line-height: 1.65;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(204, 204, 204);
    border-image: initial;
    padding: 0.625rem;

    background-color: rgb(239, 239, 239);
    text-align: left;
    font-weight: bold;
}

.wp-block-flexible-table-block-table th,
.wp-block-flexible-table-block-table td {
    box-sizing: border-box;
    word-break: break-word;
}

@media screen and (max-width: 767px) {
    .wp-block-table th {
        padding: 0.4375rem 0.625rem;
    }
}

/* 2カラムの等高・右画像フィット */
.aj-equalcols .wp-block-columns { display:flex; align-items:stretch; }
.aj-equalcols .aj-equal-target { display:flex; height:100%; overflow:hidden; }
.aj-equalcols .aj-equal-target > .wp-block-group__inner-container { display:flex; flex:1 1 auto; }
.aj-equalcols .aj-equal-target img { width:100%; height:100%; object-fit:cover; }

@media screen and (max-width: 767px) {
    .c-postParts5 h2 {
        font-size: 1.125rem;
    }
}

/* ----- Flexible Table Block ----- */
.wp-block-flexible-table-block-table {
    margin-top: 1.25rem;
}
.wp-block-flexible-table-block-table table {
    display: table !important;
}
.wp-block-flexible-table-block-table thead {
    display: table-header-group !important;
    width: revert !important;
}
.wp-block-flexible-table-block-table tbody {
    display: table-row-group !important;
}
.wp-block-flexible-table-block-table>table td,
.wp-block-flexible-table-block-table>table th {
    border: 1px solid #ccc !important;
    padding: .625rem !important;
    min-width: 16.25rem !important;
    letter-spacing: .04em;
    line-height: 1.65;
}


/* ----- Table Block ----- */
.c-wysiwyg .wp-block-table {
    margin-block: var(--wysiwyg-gap);
}
.c-wysiwyg .wp-block-table > table {
    margin-bottom: 0;
}
.c-wysiwyg .wp-block-table > table thead {
    display: table-header-group;
}
.c-wysiwyg .wp-block-table > table tbody {
    display: table-row-group;
}


/* ----- TOC ----- */
.c-column_contents {
    color: #052b63;
    font-weight: 700;
    position: relative;
    padding: 0 0 30px;
    border-bottom: 2px solid #052b63;
    margin-block: calc(2 * var(--wysiwyg-gap));
}

.c-column_contents-title {
    font-size: 20px;
    padding-left: 35px;
    position: relative;
}

.c-wysiwyg .c-column_contents-title::before {
    position: absolute;
    content: "";
    width: 18px;
    height: 14px;
    background-image: url("../images_theme/columns/column-icon02.svg");
    background-size: cover;
    left: 10px;
    top: 50%;
    -webkit-transform: translateY(-40%);
    transform: translateY(-40%);
}

.c-column_contents-title-box {
    display: flex;
    align-items: center;
}

.c-column_contents-list {
    padding: 30px 0 0;
    border-top: 2px solid #052b63;
    display: block !important;
}

.c-column_contents-list-sub {
    border: none;
    padding: 10px 0;
    display: none;
}

.c-column_contents-item {
    padding-left: 35px;
    position: relative;
}

.c-column_contents-item:not(:last-child) {
    margin-bottom: 10px;
}

.c-wysiwyg .c-column_contents-item::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 19px;
    background-image: url("../images_theme/columns/column-icon01.svg");
    background-size: cover;
    top: 15px;
    left: 8px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.c-column_contents-item:last-child .c-column_contents-list-sub {
    padding-bottom: 0;
}

.c-column_contents-item-sub {
    padding-left: 25px;
    font-weight: 400;
}

.c-column_contents-item-sub::before {
    background-image: none;
}

.c-column_contents-more {
    display: inline-block;
    margin-left: 20px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    margin-top: 0 !important;
}

.c-column_contents-link {
    color: #052b63;
}

.c-column_contents-link.sub {
    margin-bottom: 5px;
    display: inline-block;
}

@media screen and (max-width: 767.98px) {
    .c-column_contents {
        margin: 0 15px;
        padding: 0 0 20px;
    }

    .c-column_contents-list {
        padding: 20px 15px 0 0;
    }

    .c-column_contents-link {
        font-size: 15px;
    }
}


/*---- CTA -----*/
.c-postParts1,
.c-postParts2,
.c-postParts3,
.c-postParts4,
.c-postParts5,
.c-postParts6 {
    margin-bottom: calc(2 * var(--wysiwyg-gap));
}


/* ----- Voice Thumbnail Slider (iOS Safari height fix) ----- */

.p-detail #thumbnail-carousel .splide__list {
    height: auto;
    min-height: 0;
}

.p-detail #thumbnail-carousel .splide__slide {
    height: auto;
}

.p-detail #thumbnail-carousel .splide__slide picture,
.p-detail #thumbnail-carousel .splide__slide img,
.p-detail #thumbnail-carousel .splide__slide video {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/*----- 導入企業の声 -----*/
.p-search .p-search__list {
    gap: 0.5em 0.4em;
}
