.blog-special-sidebar-items {
    position: sticky;
    top: 100px;
    margin-top: 40px;
    height: calc(100vh - 100px);
    overflow: scroll;
}
@media (width <= 767px) {
    .blog-special-sidebar-items {
        height: auto;
    }
}
.blog-special-sidebar-items .scroll-wrapper {
    height: max-content;
}
.l-sidebar.is-blog {
    height: 100%;
}

@media (width <= 767px) {
    .l-sidebar-sec-blog-card {
        grid-template-columns: 1fr;
    }
}

.c-form .mwform-radio-field .mwform-radio-field-text::before {
    border: 1px solid var(--mh--color--grayscale-500);
}
.c-form .mwform-radio-field .mwform-radio-field-text::after {
    background: var(--mh--color--grayscale-800);
}
.c-single01__content figure.wp-block-image.c-linkBanner01{
    margin-top: 0;
}

.c-linkBanner01 a {
    display: block;
    overflow: hidden;
    transition: 300ms;
    position: relative;
}
/* .c-linkBanner01 a::before {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    transition: 300ms;
    animation: shinyshiny 2.5s ease-in-out infinite;
} */

@-webkit-keyframes shinyshiny {
    0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
    80% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
    81% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
    100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
}

.l-footer-fixed-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
}

.l-footer-fixed-banner a {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
}

.l-footer-fixed-banner img {
    width: 100%;
    height: auto;
}

@media (width <= 500px) {
    .l-footer-fixed-banner {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        margin-bottom: 10px;
    }

    .l-footer-fixed-banner.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.c-parts01-step .wp-video {
    max-width: 100% !important;
    width: 100% !important;
}

.wp-block-flexible-table-block-table.is-scroll-on-mobile table {
    min-width: 600px;
}

/* 詳細ページ画像モーダル */
.wp-block-image > img {
    cursor: zoom-in;
}
.c-single01__head-thumb > img {
    cursor: zoom-in;
}

#imageModal.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#imageModal.modal.is_active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#imageModal.modal .modal-content {
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    transform: scale(0.2);
    transition: transform 0.3s ease-in-out;
}

@media (width <= 700px) {
    #imageModal.modal .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

#imageModal.modal.is_active .modal-content {
    transform: scale(1);
}

#imageModal.modal img {
    width: 100%;
    height: auto;
    max-height: inherit;
    display: block;
    object-fit: contain;
}


/* モーダルを閉じるボタン */
#imageModal.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* 詳細ページのマーカースタイル */
.c-single01__content p mark {
    background-color: initial;
    background: linear-gradient(to bottom, transparent 0%, transparent 70%, #EDD2E2 75%,  #EDD2E2 100%);
}

.c-single01__content .c-num-list01>li:before,.c-single01__content ol:not([class*=c-])>li:before,.c-num-list01>li:before {
    color: #B74B8A;
    font-weight: 700;
    line-height: var(--mh--line-height--sm);
}

.c-single01__content ol:not([class*=c-]) > li {
    line-height: var(--mh--line-height--sm);
}

/* 引用ブロックのマージン */
.c-single01__content blockquote {
    margin-block: var(--mh--space--xs);
    background: #f5f5f5;
}

/* コードブロックの開閉 */
.wp-block-code {
    max-height: 320px;
    position: relative;
    overflow: hidden;
}

.wp-block-code.is-open {
    max-height: initial;
}

.wp-block-code .code-block-copy {
    position: absolute;
    top: 3px;
    right: 5px;
    width: 25px;
    height: 30px;
    background: url(../img/common/icon_copy.svg) no-repeat center center / contain;
    z-index: 2;
    transition: height 0.3s ease-in-out;
    cursor: pointer;
}

.wp-block-code .code-block-copy-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    font-size: 17px;
    color: #c978A7;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.wp-block-code .code-block-copy-text.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wp-block-code .code-block-toggle {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, #fff 50%, transparent) 100%);
    z-index: 2;
    cursor: pointer;
}

.wp-block-code.is-open .code-block-toggle {
    background: transparent;
}


.wp-block-code .code-block-toggle::before,
.wp-block-code .code-block-toggle::after {
    content: "";
    display: block;
    width: 13px;
    height: 4px;
    background: #c978A7;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
}
.wp-block-code .code-block-toggle::before {
    transform: translate(calc(-50% - 4px), -50%) rotate(45deg);
}
.wp-block-code .code-block-toggle::after {
    transform: translate(calc(-50% + 4px), -50%) rotate(-45deg);
}

.wp-block-code.is-open .code-block-toggle::before {
    transform: translate(calc(-50% - 4px), -50%) rotate(-45deg);
}
.wp-block-code.is-open .code-block-toggle::after {
    transform: translate(calc(-50% + 4px), -50%) rotate(45deg);
}

.wp-block-code code {
    max-height: inherit;
}

/* パンくずリストのスタイル */
.l-breadcrumb-list__item+.l-breadcrumb-list__item {
    margin-left: 6px;
}

.l-breadcrumb-list__item+.l-breadcrumb-list__item:before {
    content: ">";
}

/* simple blog cardレイアウト調整 */
@media (width <= 767px) {
    .simpleblogcard_wrap [class^="simpleblogcard_description"] {
        display: none;
    }
    .simpleblogcard_wrap [class^="simpleblogcard_img_block"] {
        float: none;
    }
    .simpleblogcard_wrap > a {
        display: grid;
        grid-template-columns: max-content 1fr;
    }
}

/* Youtube埋め込みコンテンツの配置調整 */
.wp-block-embed.wp-block-embed-youtube.aligncenter > .wp-block-embed__wrapper > iframe {
    margin-inline: auto;
}
.wp-block-embed.wp-block-embed-youtube.alignfull > .wp-block-embed__wrapper > iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}
.wp-block-embed.wp-block-embed-youtube.alignright:has(.wp-block-embed__wrapper > iframe) {
    margin-left: auto;
}

.c-parts01-captionbox__head {
    font-size: var(--mh--font-size--md);
}

/* 会社メンバーリストの配置調整 */
@media (min-width: 768px) {
    .company-member-list__item {
        flex-basis: 31.8%;
    }
}

/* シングルページの見出しのスタイル */
.c-single01__content h2:not([class*=c-]) {
    background: #C06299;
    color: #fff;
    padding: 5px 8px 6px;
    font-size: var(--mh--font-size--x2l);
}
@media (width <= 767px) {
    .c-single01__content h2:not([class*=c-]) {
        padding: 6px 8px 7px;
    }
}

.c-single01__content h3:not([class*=c-]) {
    padding-bottom: 8px;
}

/* 検索結果一覧レイアウト */
.c-archive01__item-in:has(.c-archive01__item-thumb) {
    display: grid;
    grid-template-columns: 200px 1fr;
    /* grid-template-rows: 20px 1fr; */
    gap: 0 20px;
    padding-block: 10px;
}

@media (width <= 767px) {
    .c-archive01__item-in:has(.c-archive01__item-thumb) {
        grid-template-columns: 1fr;
        gap: 0;
        padding-block: 20px;
    }
}

.c-archive01__item-in:has(.c-archive01__item-thumb) .c-archive01__item-meta {
    align-items: flex-end;
}

.c-archive01__item-thumb {
    width: 100%;
    aspect-ratio: 281 / 158;
    /* padding: 10px; */
    grid-row: 1 / 3;
}
@media (width <= 767px) {
    .c-archive01__item-thumb {
        padding: 0 0 10px;
        max-width: 500px;
        margin-inline: auto;
    }
}
.c-archive01__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ハンバーガー開閉追加仕様（Androidのみ検索バークリックでjsが解除されるため） */
@media (width <= 767px) {
    .l-header.is-active {
        background-color: var(--mh--color--surface-500);    
    }
    .l-nav-btn.is-active .l-nav-btn__line:nth-child(1) {
        top: 30px;
        transform: rotate(-11deg);
    }
    .l-nav-btn.is-active .l-nav-btn__line:nth-child(2) {
        top: 30px;
        transform: rotate(11deg);
    }
    .l-nav.is-active {
        opacity: 1;
        visibility: visible;
    }
}

.l-header.u-header-hidden {
    display: none;
}

/* 関連記事タイトルURL */
.c-related-article-title-url {
    /* display: flex;
    align-items: center; */
}


/* アーカイブページ */
.c-archive02__item {
    grid-row: span 3;
}

.c-archive02__item-in {
    grid-row: span 3;
}
.c-archive02__item-head {
    border: none;
    margin-bottom: initial;
}

/* シングルページのメインコンテンツの幅調整 PC幅でもテーブルのoverscrollを機能させる*/
.blog-single-column__main {
    min-width: 0;
}

@media (min-width: 768px) {
    .c-single01__inner {
        display: grid;
        grid-template-columns: max-content 1fr;
    }
}

.c-single01__body {
    min-width: 0;
}

/* トップのメインビジュアルの画像 */
.l-main-img__copy-img {
    display: block;
    margin-block-start: 50px;
    padding-inline-end: 25px;
    width: 100%;
    max-width: 550px;

    img {
        width: 100%;
        height: auto;
    }
}

@media (width <= 767px) {
    .l-main-img__copy-img {
        margin-block-start: 30px;
    }
}


/* トップのロゴの画像 */
.home-img-loop-img-wrap {
    margin-block-end: 80px;
}

.home-img-loop-img {
    border-radius: 10px;
    border: 1px solid #ccc;
    
    img {
        width: 100%;
        height: auto;
        border-radius: inherit;
    }
}

@media (width <= 767px) {
    .home-img-loop-img-wrap {
        margin-block-end: 40px;
    }
}

/* 執筆者 * features用 */
.blog-single-profile.is_features {
    border: 1px solid #ccc;
}
.blog-single-profile.is_features .blog-single-profile-set {
    align-items: initial;
    grid-template:
    "img header"
    "img body" / 100px 1fr;
}
.blog-single-profile.is_features .blog-single-profile-set__img {
    width: 100px;
    height: 100px;
}
@media (width <= 767px) {
    .blog-single-profile.is_features .blog-single-profile-set {
        grid-template:
        "img header"
        "img body" / 50px 1fr;
    }
    .blog-single-profile.is_features .blog-single-profile-set__img {
        width: 50px;
        height: 50px;
    }
}
.blog-single-profile.is_features .blog-single-profile-set__header {
    display: block;
}
.blog-single-profile.is_features .blog-single-profile-set__body p {
    font-size: 12px;
}
