/*
Theme Name: BlueBean365 Promotion Site Theme
Description: BlueBean365 Promotion Site Theme
Author: © SOFTSU Co.,Ltd
Author URI: https://www.softsu.co.jp/
Version: 0.1
Tested up to: 6.7.1
Requires PHP: 0.0
*/

header {
    .offcanvas {
        height: 100vh;
    }
    .dropdown-toggle {
        &:after {
            content: url("./assets/images/icons/caret-down-fill.svg");
            border: 0px;
            margin-left: 5px;
            font-size: 8px;
            line-height: 1.5rem;
            transition: 0.5s;
        }
        &[aria-expanded="true"]:after {
            transform: rotate(180deg);
        }
    }
    @media(prefers-reduced-motion: reduce) {
        .dropdown-toggle:after {
            transition: none;
        }
    }
    .nav-item {
        > .nav-link {
            &:focus-visible {
                box-shadow: none;
            }
        }
    }
    .dropdown-menu {
        margin-top: 0 !important;
        > .dropdown-item {
            &:active {
                background-color: var(--wp--preset--color--bluebean-365-4);
            }
            > a {
                display: inline-block;
                width: 100%;
                padding: 10px;
            }
        }
    }
}

footer {
    .has-bluebean-365-16-color a:hover,
    .has-white-color a:hover
    {
        text-decoration: underline;
    }
}

a[data-bs-toggle="collapse"] {
    p.caret {
        transition: 0.5s;
    }
    &[aria-expanded="true"] p.caret {
        transform: rotate(180deg);
    }
}
@media(prefers-reduced-motion: reduce) {
    a[data-bs-toggle="collapse"] p.caret {
        transition: none;
    }
}

mark, .mark {
    padding: 0;
    color: var(--wp--preset--color--bluebean-365-3);
    background-color: unset;
}

.backdrop {
    background-color: var(--bs-white)80;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.drop-shadow {
    box-shadow: var(--wp--preset--shadow--drop-shadow-1);
}
.shadow-transition {
    transition: all 0.15s linear;
}
@media(prefers-reduced-motion: reduce) {
    .shadow-transition {
        transition: none;
    }
}

.text-side-border {
    display: flex;
    align-items: center;
    &:before,
    &:after {
        content: "";
        height: 1px;
        flex-grow: 1;
        background-color: var(--bs-border-color);
    }
    &:before {
        margin-right: 2rem;
    }
    &:after {
        margin-left: 2rem;
    }
}

.text-side-border-half {
    &:before,
    &:after {
        content: "";
        height: 1px;
        width: 25%;
        background-color: var(--bs-border-color);
        margin-top: calc(var(--wp--preset--font-size--normal) * var(--bs-body-line-height) / 2);
    }
    &:before {
        margin-right: 2rem;
    }
    &:after {
        margin-left: 2rem;
    }
}

.loop-slider-wrap {
    overflow: hidden;
    > .loop-slider {
        animation: infinity-scroll-left 50s infinite linear .5s both;
        min-width: max-content;
    }
}
@keyframes infinity-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.grid-gap-h20px-w30px {
    &.is-layout-grid {
        gap: 20px 30px;
    }
}

.text-decoration-none {
    text-decoration: none;
}

.wp-block-post-content {
    overflow-wrap: anywhere;
}

.wp-block-media-text {
    &:not(.has-media-on-the-right) > .wp-block-media-text__content {
        padding: 0px 0px 0px 20px;
    }
    &:not(.has-media-on-the-right) > .wp-block-media-text__media {
        padding: 0px 20px 0px 0px;
    }
    &.has-media-on-the-right > .wp-block-media-text__content {
        padding: 0px 20px 0px 0px;
    }
    &.has-media-on-the-right > .wp-block-media-text__media {
        padding: 0px 0px 0px 20px;
    }
}

.wp-block-button,
.wp-block-button.is-style-outline {
    > a {
        transition: background-color 0.25s;
    }
}
@media(prefers-reduced-motion: reduce) {
    .wp-block-button,
    .wp-block-button.is-style-outline {
        > a {
            transition: none;
        }
    }
}
.wp-block-button {
    > a {
        &:hover {
            background-color: var(--wp--preset--color--bluebean-365-2) !important;
        }
    }
}
.wp-sns-button {
    > a {
        &:hover {
            filter: brightness(0) saturate(100%) invert(41%) sepia(25%) saturate(1887%) hue-rotate(205deg) brightness(102%) contrast(110%);
        }
    }
}
.wp-block-button.is-style-outline {
    > a {
        &:hover {
            background-color: var(--wp--preset--color--bluebean-365-4) !important;
        }
    }
}

.wp-block-table {
    border: var(--bs-border-width) solid var(--bs-border-color);
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    table {
        border-collapse: collapse;
        thead {
            background-color: var(--wp--preset--color--bluebean-365-5);
            color: var(--bs-white);
            border: var(--bs-border-width) solid var(--bs-border-color);
        }
        th, td {
            border: var(--bs-border-width) solid var(--bs-border-color);
            padding: 1em;
            &:first-child {
                border-left: none;
            }
            &:last-child {
                border-right: none;
            }
        }
        tr {
            &:first-child{
                th, td {
                    border-top: none;
                }
            }
            &:last-child{
                th, td {
                    border-bottom: none;
                }
            }
        }
    }
    &.is-style-stripes {
        th, td {
            border-color: #0000 var(--bs-border-color);
        }
    }
    &.cti-list-table {
        display: block;
        border: none;
        overflow: auto hidden;
        table {
            min-width: 1200px;
            thead {
                border: none;
                background-color: var(--wp--preset--color--white);
                color: var(--wp--preset--color--bluebean-365-5);
            }
            tbody {
                tr {
                    &:nth-child(odd) {
                        background-color: #FBFBFB;
                        td:first-child {
                            background-color: #FBFBFB;
                        }
                    }
                    &:nth-child(even) {
                        td:first-child {
                            background-color: var(--wp--preset--color--white);
                        }
                    }
                    td {
                        i.bi-check-lg{
                            font-size: 24px;
                        }
                    }
                }
            }
            th, td {
                border: none;
            }
            th:first-child, td:first-child {
                position: sticky;
                left: 0;
            }
            th:first-child {
                background-color: var(--wp--preset--color--white);
            }
        }
    }
}

.wp-block-query {
    .wp-block-post-template {
        &.faq-list, &.faq-seen-a-lot-list {
            a {
                display: block;
            }
            > .wp-block-post:last-child > .wp-block-separator {
                display: none;
            }
        }
    }
    > ul.manual-toc,
    > ul.api-category-item {
        min-width: 290px;
        > li {
            &.current > .wp-block-group {
                background-color: var(--wp--preset--color--bluebean-365-19);
                color: var(--wp--preset--color--bluebean-365-1);
                a {
                    pointer-events: none;
                }
            }
        }
    }
}

.wp-block-categories-list {
    &.news-category {
        display: flex;
        flex-wrap: wrap;
        > .cat-item {
            list-style: none;
            border-color: var(--wp--preset--color--bluebean-365-16);
            border-width: 1px;
            border-radius: 0.38rem;
            border-style: solid;
            height: 30px;
            line-height: 30px;
            padding: 0 10px;
            > a {
                color: var(--wp--preset--color--bluebean-365-6);
            }
            &.cat-item-all {
                order: -5;
            }
            &:has(a[href$="/info/" i]) {
                order: -4;
            }
            &:has(a[href$="/obstacle/" i]) {
                order: -3;
            }
            &:has(a[href$="/release/" i]) {
                order: -2;
            }
            &:has(a[href$="/features/" i]) {
                order: -1;
            }
            &:has(a[href$="/archive/" i]) {
                order: 99;
            }
            &.current-cat {
                border-color: var(--wp--preset--color--bluebean-365-1);
                background-color: var(--wp--preset--color--bluebean-365-1);
                > a {
                    color: var(--bs-white);
                }
            }
        }
    }
    &.tag {
        > .cat-item {
            list-style: none;
            > a {
                padding: 5px 10px;
                border-radius: var(--bs-border-radius);
                color: var(--wp--preset--color--bluebean-365-3);
                background-color: var(--wp--preset--color--bluebean-365-15);
            }
        }
    }
}

.wp-block-query-pagination {
    .wp-block-query-pagination-numbers > .page-numbers,
    .wp-block-query-pagination-previous,
    .wp-block-query-pagination-next {
        display: inline-block;
        width: 48px;
        height: 48px;
        border-radius: var(--bs-border-radius-pill);
        text-decoration: none;
        text-align: center;
        line-height: 48px;
        &:hover {
            background-color: var(--wp--preset--color--bluebean-365-4);
        }
    }
    .wp-block-query-pagination-numbers > .page-numbers {
        &.dots {
            pointer-events: none;
        }
        &.current {
            color: var(--bs-white);
            background-color: var(--wp--preset--color--bluebean-365-1);
        }
    }
    .wp-block-query-pagination-previous > .wp-block-query-pagination-previous-arrow.is-arrow-arrow,
    .wp-block-query-pagination-next > .wp-block-query-pagination-next-arrow.is-arrow-arrow {
        height: 48px;
        width: var(--bs-body-font-size);
    }
    .wp-block-query-pagination-previous {
        > .wp-block-query-pagination-previous-arrow.is-arrow-arrow {
            content: url("./assets/images/icons/icon-pagination-arrow-left.svg");
            margin-right: 0;
        }
    }
    .wp-block-query-pagination-next {
        > .wp-block-query-pagination-next-arrow.is-arrow-arrow {
            content: url("./assets/images/icons/icon-pagination-arrow-right.svg");
            margin-left: 0;
        }
    }
}

.wp-block-post-terms {
    > a {
        height: 24px;
        line-height: 24px;
        padding: 0 10px;
        border-radius: var(--bs-border-radius);
    }
    &.taxonomy-post_tag,
    &.taxonomy-faq_tag,
    &.taxonomy-case_tag,
    &.taxonomy-blog_tag {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        > .wp-block-post-terms__separator {
            display: none;
        }
        > a {
            background-color: var(--wp--preset--color--bluebean-365-15);
        }
    }
    &.taxonomy-category {
        &.taxonomy-faq_category {
            > a {
                border-width: var(--bs-border-width);
                border-style: var(--bs-border-style);
                border-color: var(--wp--preset--color--bluebean-365-16);
                &.current {
                    background-color: var(--wp--preset--color--bluebean-365-1);
                    color: var(--bs-white);
                }
            }
        }

        &.news-category-badge {
            display: flex;
            gap: 10px;
            > a {
                display: inline-block;
                pointer-events: none;
            }
            > a[href$="/info/" i] {
                background-color: var(--wp--preset--color--bluebean-365-7);
                color: var(--wp--preset--color--bluebean-365-1);
            }
            > a[href$="/obstacle/" i] {
                background-color: var(--wp--preset--color--bluebean-365-9);
                color: var(--wp--preset--color--bluebean-365-8);
            }
            > a[href$="/release/" i] {
                background-color: var(--wp--preset--color--bluebean-365-11);
                color: var(--wp--preset--color--bluebean-365-10);
            }
            > a[href$="/features/" i] {
                background-color: var(--wp--preset--color--bluebean-365-13);
                color: var(--wp--preset--color--bluebean-365-12);
            }
            > a[href$="/archive/" i] {
                background-color: var(--wp--preset--color--bluebean-365-22);
                color: var(--wp--preset--color--bluebean-365-21);
            }
            > .wp-block-post-terms__separator {
                display: none;
            }
        }
    }
}

.wp-block-search {
    .wp-block-search__inside-wrapper {
        border: none;
        position: relative;
        box-shadow: var(--wp--preset--shadow--drop-shadow-1);
        padding: 0;
        &::before {
            content: "\F52A";
            font-family: "bootstrap-icons";
            font-weight: bold;
            color: #90969F;
            width: 22px;
            height: 22px;
            display: inline-block;
            position: absolute;
            top: 20px;
            left: 20px;
        }
        > .wp-block-search__input {
            height: 60px;
            padding-left: 50px;
            &::-webkit-search-cancel-button {
                height: 20px;
                width: 20px;
                -webkit-appearance: none;
                cursor:pointer;
                background-image: url(./assets/images/icons/search-cancel-button.png);
                background-repeat: no-repeat;
                background-size: cover;
                padding-right: 0px;
                margin-right: 135px;
            }
            &:-webkit-autofill {
                box-shadow: 0 0 0 1000px white inset;
            }
            &:hover {
                &::-webkit-search-cancel-button {
                    display: none;
                }
            }
            &:focus {
                ~ .wp-block-search__button,
                &::-webkit-search-cancel-button {
                    display: block;
                }
            }
        }
        > .wp-block-search__button {
            display: none;
            position: absolute;
            width: 84px;
            height: 48px;
            margin-top: 6px;
            right: 10px;
            &:hover {
                display: block;
            }
        }
    }
}

.wp-block-image{
    &.function-section-title-img,
    &.function-section-img,
    &.feature-detail-img,
    &.front-page-title-img {
        > img {
            max-width: none;
        }
    }
}

a[data-bs-toggle="collapse"] {
    p.collapse-txt {
        white-space: nowrap;
    }
}

.guide-question[data-bs-toggle="collapse"] {
    display: block;
    color: var(--wp--preset--color--bluebean-365-5);
    &:after {
        content: "\F282";
        font-family: "bootstrap-icons";
        font-weight: normal;
        float: inline-end;
        transition: 0.5s;
    }
    &[aria-expanded="true"]:after {
        transform: rotate(180deg);
    }
}
@media(prefers-reduced-motion: reduce) {
    .guide-question[data-bs-toggle="collapse"] {
        &:after {
            transition: none;
        }
    }
}

.gap-10px {
    gap: 10px;
}
.gap-20px {
    gap: 20px;
}
.gap-30px {
    gap: 30px;
}
.gap-40px {
    gap: 40px;
}
.gap-50px {
    gap: 50px;
}
.p-20px {
    padding: 20px;
}
.p-30px {
    padding: 30px;
}
.m-0px {
    margin: 0px;
}
.w-100px {
    > a.wp-block-button__link {
        min-width: 100px;
    }
}
.w-140px {
    > a.wp-block-button__link {
        min-width: 140px;
    }
}
.w-170px {
    > a.wp-block-button__link {
        min-width: 170px;
    }
}
.w-900px{
    width: 900px
}

.front-page-case {
    .front-page-case-list {
        grid-template-columns: repeat(5, 370px) !important;
        &::-webkit-scrollbar {
            display: none;
        }
    }

    .carousel {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        anchor-name: --carousel;

        > .wp-block-post {
            scroll-snap-align: center;
            scroll-snap-stop: always;
        }
    }

    .carousel--scroll-buttons {
        &::scroll-button(*) {
            position: absolute;
            position-anchor: --carousel;
            border: 1px;
            border-style: solid;
            border-radius: 100px;
            border-color: var(--wp--preset--color--bluebean-365-16);
            background: none;
            width: 48px;
            height: 48px;
            line-height: 0;
            font-size: var(--wp--preset--font-size--normal);
            fill: var(--wp--preset--color--bluebean-365-1);
            cursor: pointer;
            bottom: calc(anchor(top) + 25px);
        }

        &::scroll-button(right) {
            content: url("./assets/images/icons/carousel-scroll-button-right.svg");
            right: anchor(right);
        }
        &::scroll-button(right):disabled {
            content: url("./assets/images/icons/carousel-scroll-button-right-disabled.svg");
        }

        &::scroll-button(left) {
            content: url("./assets/images/icons/carousel-scroll-button-left.svg");
            right: calc(anchor(right) + 48px + 40px);
        }
        &::scroll-button(left):disabled {
            content: url("./assets/images/icons/carousel-scroll-button-left-disabled.svg");
        }
    }
}

.front-page-partnar {
    background-image: url("./assets/images/recruiting-sales-partner-bg.png");
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: right bottom;
}

.front-page-news-content,
.archive-news-content {
    row-gap: 10px;
}

.archive-news-category-all {
    height: 30px;
    line-height: 30px;
}

.guide-step {
    margin-top: 35px !important;
    .step-number {
        width: 70px;
        height: 70px;
        > p {
            line-height: 70px;
        }
    }
}

.blog-archive-main,
.blog-blog-tag-main {
    > div {
        overflow-wrap: anywhere;
    }
}

.blog-single-side-content,
.blog-archive-side-content,
.blog-blog-tag-side-content {
    max-width: 320px;
}

/*導入事例関連*/
.cases-title {
    color: #313159;
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}
.top-cases {
 	width: 1200px !important;
 	overflow: hidden;
}
.cases {
    .row {
        margin-bottom: 20px;
    }
    .eye-catch-img {
        width: 368px;
	    height: 240px;
    }
    .title {
        text-align: left;
        color: #313159;
        padding-bottom: 10px;
        font-size: 22px;
        font-weight: bold;
    }
    .tag-container {
        text-align: left;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .tag {
        color: #1E72FA !important;
        background-color: #ECF3FE;
        padding-right: 10px;
        width: auto !important;
        margin-right: 10px;
        height: 24px;
        line-height: inherit !important;
        border-radius:4px !important;
        margin-top: 10px;
    }
    .content {
        text-align: left;
        padding-top: 20px;
    }

    nav {
        margin-top: 30px;
        justify-content:center;
    }
    .page-numbers {
        margin-right: 4px;
    }
    .logo {
        margin-top: 15px;
    }
    .logo-img {
        width: 164px;
        height: 60px;
    }
}

/* --bs-breakpoint-xl */
@media screen and (max-width: 1199px) {
    .wp-block-buttons {
        gap: 20px;

        &.front-title-buttons {
            justify-content: center;
            flex-direction: column;
        }
    }
    .wp-block-group {
        &.faq-seen-a-lot-wrap {
            max-width: none;
        }

        &.blog-single-side-content,
        &.blog-archive-side-content,
        &.blog-blog-tag-side-content {
            width: 100%;
            max-width: none;
        }

        &.case-single-main,
        &.blog-single-main,
        &.blog-archive-main,
        &.blog-blog-tag-main {
            justify-content: center;
            gap: 50px;
            .document-download {
                width: 100%;
                img {
                    width: 100% !important;
                    height: auto !important;
                }
            }
        }

        &.front-page-news-content,
        &.archive-news-content {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        &.function-section-title,
        &.case-single-main,
        &.blog-single-main,
        &.blog-archive-main,
        &.blog-blog-tag-main {
            flex-wrap: wrap;
        }

        &.function-section-detail,
        &.feature-detail,
        &.front-title,
        &.front-function-list,
        &.partner-detail,
        &.case-single-company-detail {
            flex-wrap: wrap;
            gap: 40px;
        }

        &.inquiry-new-main,
        &.inquiry-existing-main,
        &.inquiry-partner-main {
            flex-wrap: wrap-reverse;
            gap: 80px;
        }

        &.function-section-detail-reverse,
        &.feature-detail-reverse,
        &.front-function-list-reverse,
        &.partner-detail-reverse {
            flex-wrap: wrap-reverse;
            gap: 40px;
        }

        &.function-section-footer-buttons {
            grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        }

        &.price-cost-down-list,
        &.front-achievements,
        &.guide-api-list,
        &.cti-link-logos {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
    }

    .wp-block-post-template {
        &.faq-more-seen-a-lot-list,
        &.case-more-seen-a-lot-list,
        &.latest-blog-list {
            grid-template-columns: unset;
        }

        &.function-others-list,
        &.function-list {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }

        &.case-list,
        &.front-page-features-list {
            grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        }
    }

    .wp-block-image {
        &.mobile-hr-center {
            margin: auto;
            display: block;
            > img {
                margin: auto;
                display: block;
            }
        }

        &.function-section-title-img,
        &.function-section-img,
        &.feature-detail-img,
		&.front-page-title-img {
            > img {
                max-width: 100%;
            }
        }
    }

    .wp-block-table {
        &.price-basic,
        &.price-disc,
        &.price-option {
            td {
                &:first-child {
                    background-color: var(--wp--preset--color--bluebean-365-5);
                    color: var(--bs-white);
                }
            }
        }
    }

    .wp-block-bluebean365-pr-custom-blocks-case-meta-company-logo img {
        width: 100% !important;
    }

    .front-page-partnar {
        background-image: none;
    }

    .front-page-partnar-mobile-bg {
        background-image: url("./assets/images/recruiting-sales-partner-bg.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: bottom;
    }

    .front-page-case {
        .carousel--scroll-buttons {
            &::scroll-button(right) {
                left: calc(anchor(center) + 20px);
            }

            &::scroll-button(left) {
                right: calc(anchor(center) + 20px);
            }
        }
    }
    .manual-ver9-grid {
        display: grid;
        grid-template-columns: 60% 20% 20%;
        gap: var(--wp--style--block-gap, 20px);
    }

    /* CTI連携-連携で利用できる機能一覧 */
    .scrollable-table-container {
        overflow-x: auto;
    }
    .cti-function-list {
        width: auto;
        min-width: 1200px; 
    }
    .cti-function-list td:first-child,
    .cti-function-list th:first-child {
        width: 200px;
    }
    /* 人気の記事スマホ表示 */
    .blog-content-popular{
        display: block;
        flex-direction: column;
    }
    .blog-popular-content{
        width: 100% !important;
    }
    .blog_tag-popular-article time{
        font-size: 20px;
    }
    /* 最新の記事 */
    .latest-article-post-template{
        gap: 30px;
    }
}

/* --bs-breakpoint-xxl */
@media screen and (max-width: 1399px) {
    header {
        .navbar-nav {
            gap: 25px;
        }
        .dropdown-toggle {
            &:after {
                content: url("./assets/images/icons/chevron-down.svg");
                float: right;
            }
        }
        .dropdown-menu {
            > .dropdown-item {
                font-weight: normal;
            }
        }
    }
}

/* お問い合わせ */
/* ボタン */
.inquiry {
    .wp-block-button {
    width: 540px;
    }
}

/* 最新の記事 */
.latest-article-header
{
    a .bi-arrow-right-short::before {
        position: relative;
        top: 4px;
        font-size: 30px;
        font-weight: 500 !important;
   }
}

/* 各記事カードの基本スタイル */
.latest-articles-list .wp-block-post {
    border-radius: 10px; /* 角丸 */
    background-color: #fff;
    box-shadow: var(--wp--preset--shadow--drop-shadow-2); /* シャドウ効果 */
}

/* 人気の記事 */
.blog-popular-content{
    width: 320px;
}

/* 記事タイトルのスタイル */
.latest-articles-list .wp-block-post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: auto; /* 日時との間隔を自動調整 */
}
.function-table{
    border: none !important;
}

.function-table table td:nth-child(1) {
    width: 300px;
    border: none;
    word-wrap: break-word;
}

.function-table table td:nth-child(2) {
    width: 800px;
    border: none;
    word-wrap: break-word;
}

/* 通常の表示（1401px以上） */
.function-card-content .wp-block-spacer {
    display: block; /* デフォルトは表示 */
}

.bluebean-version-img {
    padding-top: 20px;
}

/* Contact Form 7 */
.wpcf7 {
    input {
        &:-webkit-autofill {
            box-shadow: 0 0 0 1000px white inset;
        }
    }

    input[type="submit"] {
        min-width: 300px;
        background-color: var(--wp--preset--color--bluebean-365-1);
        color: var(--wp--preset--color--white);
        font-style: normal;
        font-weight: bold;
        border-width: 0;
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
        padding: calc(0.667em + 2px) calc(1.333em + 2px);
        align-content: center;
        box-sizing: border-box;
        display: inline-block;
        height: 100%;
        text-align: center;
        width: 100%;
        word-break: break-word;
        border-radius: 9999px;
        box-shadow: none;
        transition: background-color 0.25s;
        &:disabled {
            background-color: var(--wp--preset--color--bluebean-365-6);
        }
        &:hover {
            &:not([disabled]) {
                background-color: var(--wp--preset--color--bluebean-365-2);
            }
        }
    }
    @media(prefers-reduced-motion: reduce) {
        input[type="submit"] {
            transition: none;
        }
    }

    input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--wp--preset--color--bluebean-365-1);
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="url"],
    .wpcf7-select {
        height: 50px;
    }

    input[name='privacy-policy[]'] {
        ~ .wpcf7-list-item-label {
            color: var(--wp--preset--color--bluebean-365-1);
            font-size: 14px;
            font-weight: 500;
        }
    }

    .wpcf7-list-item {
        margin: 0;
        > label {
            display: flex;
            align-items: center;
            gap: 10px;
        }
    }

    .wpcf7-form-control-wrap {
        display: flex;
        flex-direction: column;
        gap: 5px;

        &:has(input[name='privacy-policy[]']) {
            gap: 0px;
            align-items: center;
        }

        > .wpcf7-not-valid-tip {
            font-size: 14px;
            font-weight: 500;
            display: none;
        }

        &.is-show {
            > .wpcf7-not-valid-tip {
                display: block;
            }
        }
    }

    .wpcf7-textarea {
        height: 100px;
        min-height: 100px;
        max-height: 50vh;
    }

    .wpcf7-form-control:has(input[name='privacy-policy[]']) {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    form {
        .wpcf7-spinner,
        .wpcf7-response-output {
            display: none;
        }
    }

    p {
        > .badge {
            display: block;
        }
    }

    .badge {
        &.is-required {
            color: var(--wp--preset--color--bluebean-365-17);
            background-color: var(--wp--preset--color--bluebean-365-18);
            padding: 0;
            height: 20px;
            width: 48px;
            font-size: 14px;
            font-weight: 500;
            line-height: normal;
        }
    }

    .was-validated .form-control:invalid, .form-control.is-invalid {
        background-image: none;
        padding-right: 0.75rem;
    }

    .was-validated .form-select:invalid:not([multiple]):not([size]),
    .was-validated .form-select:invalid:not([multiple])[size="1"],
    .form-select.is-invalid:not([multiple]):not([size]),
    .form-select.is-invalid:not([multiple])[size="1"] {
        --bs-form-select-bg-icon: none;
    }

    .form-control,
    .form-select {
        &:focus {
            border-color: var(--wp--preset--color--bluebean-365-1);
        }
        &.is-invalid:focus {
            border-color: var(--bs-form-invalid-border-color);
        }
    }
    .form-control {
        box-shadow: 0 0 0 1000px white inset;
        &.is-invalid:focus {
            box-shadow: 0 0 0 1000px white inset;
        }
    }
    .form-select {
        box-shadow: 0 0 0 0px white inset;
        &.is-invalid:focus {
            box-shadow: 0 0 0 0px white inset;
        }
    }

    .description {
        background-color: var(--wp--preset--color--bluebean-365-19);
        padding: 10px;
        border-radius: 10px;
        color: var(--wp--preset--color--bluebean-365-1);
        font-size: 14px;
    }
}

/* 他社システム連携（CTI連携） */
.cti-function-list .bi-check-lg {
    color: var(--wp--preset--color--bluebean-365-1);
    font-size: 1.2rem; /* サイズを大きくする */
}

.cti-function-list.is-style-stripes {
    border: none; /* 枠線を完全に削除 */
}

.cti-function-list.is-style-stripes td,
.cti-function-list.is-style-stripes th {
    border: none; /* 枠線を完全に削除 */
}

.cti-function-list th {
    background-color: white;
    color: var(--wp--preset--color--bluebean-365-5);
}

.cti-function-list thead {
    border: none !important;
}

/* スクロール可能なコンテナ */
.scrollable-table-container {
    position: relative; /* 子要素の位置調整の基準とする */
}

/* テーブル全体のスタイル */
.cti-function-list {
    border-collapse: collapse; /* 枠線を統合 */
    table-layout: fixed; /* レイアウトを固定 */
}

/* 1列目のスタイル（固定列） */
.cti-function-list td:first-child,
.cti-function-list th:first-child {
    position: sticky; /* 固定列にする */
    left: 0; /* 左端に固定 */
    z-index: 2; /* 上位に配置 */
    width: 300px; /* 幅を指定 */
}

/* 奇数行の背景色を gray に設定 */
.cti-function-list tr:nth-child(odd) td:first-child {
    background-color: #f0f0f0; /* 奇数行の背景色（薄いグレー） */
}

/* 偶数行の背景色を white に設定 */
.cti-function-list tr:nth-child(even) td:first-child,
.cti-function-list tr:nth-child(even) th:first-child {
    background-color: white; /* 偶数行の背景色（白） */
}

/*CTI連携 Youtube*/
.bb-youtube {
    max-width: none !important;
}

/* お客様ご紹介 */
.bluebean-partner-program-table td:first-child,
.bluebean-partner-program-table th:first-child {
  background-color: #F7F7FF; /* 背景色（薄い紫） */
  width: 150px; /* 固定幅 */
  text-align: left; /* 文字を中央揃え */
}

.bluebean-partner-program-table td:nth-child(2),
.bluebean-partner-program-table th:nth-child(2) {
  width: 500px; /* 残りのスペースを占有 */
  text-align: left; /* 文字を左揃え */
}

/* マニュアル（BlueBeanバージョン９） */
.manual-ver9-grid {
    display: grid;
    grid-template-columns: 70% 15% 15%;
    gap: var(--wp--style--block-gap, 20px); /* デフォルトのギャップも維持 */

    .wp-block-file:not(.wp-element-button) {
        font-size: 16px;
    }

    > .wp-block-group {
        display: flex;
        align-items: center;
    }

    .wp-block-file {
        > a {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: center;

            &::before {
                content: '';
                width: 50px;
                height: 50px;
                display: inline-block;
                vertical-align: middle;
                background-size: contain;
                background-repeat: no-repeat;
            }

            &[href$=".pdf" i]::before {
                background-image: url('./assets/images/icons/icon-pdf.png');
            }
            &[href$=".pptx" i]::before {
                background-image: url('./assets/images/icons/icon-pptx.png');
            }
            &[href$=".docx" i]::before {
                background-image: url('./assets/images/icons/icon-docx.png');
            }
            &[href$=".doc" i]::before {
                background-image: url('./assets/images/icons/icon-doc.png');
            }
        }
    }
}

/* マニュアル詳細 */
.manual-detail {
    color: var(--wp--preset--color--bluebean-365-5);
    font-family: var(--wp--preset--font-family--noto-sans-jp);
    line-height: 1.6;
    word-wrap: break-word;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;

    h1, h2, h3, h4, h5, h6 {
        margin-top: 0px;
    }
    h1 {
        font-size: 32px;
    }
    h2, h3, h4 {
        font-size: 22px;
    }

    b, strong {
        font-weight: bolder;
    }

    p {
        margin-top: 1em;
        margin-bottom: 1em;
        word-wrap: break-word;
    }

    img {
        border-style: none;
        height: auto;
        max-width: 100%;
    }

    ul, ol {
        padding-left: 20px;
        list-style-position: outside;
        margin: 20px 0 20px 20px;
    }
    ul {
        list-style: none;
        list-style-type: disc;
    }

    pre {
        background: #f7f7f7;
        border: 1px solid #ddd;
        border-radius: 3px;
        padding: 10px 15px;
        overflow: auto;
        white-space: pre;
        font-size: 1em;
        margin: 15px 0px;
    }

    thead, tbody, tfoot, tr, td, th {
        border-width: 1px;
    }

    td > p:first-child,
    th > p:first-child {
        margin-top: 0;
    }
    td > p:last-child,
    th > p:last-child {
        margin-bottom: 0;
    }
}

/* 固定ページ BlueBeanの機能一覧 */
#function-list {
    > .list-header {
        container-type: scroll-state;
        > .wp-block-separator {
            transition: 0.25s;
            @container scroll-state(stuck: top) {
                opacity: 1;
                transform: scaleX(1);
            }
            @container not scroll-state(stuck: top) {
                opacity: 0;
                transform: scaleX(0);
            }
        }
    }
}
@media(prefers-reduced-motion: reduce) {
    #function-list {
        > .list-header {
            > .wp-block-separator {
                transition: none;
                transform: none;
            }
        }
    }
}
