/* Body
------------------------------------------ */

body.complete {
    margin: var(--header-height) 0 0;
}

/* Site Search
------------------------------------------ */
@media screen and (max-width: 59.3125em) {
    .l-section.is-search-result.is-one-column {
        padding-bottom: 0;
    }
}

/* MA Login
------------------------------------------ */
.c-login__error {
    color: #cf1126;
    padding: 0.5em 0;
    font-size: 0.9rem;
}

/* WordPress Gallery
------------------------------------------ */

.gallery:not(body) {
    margin-left: -0.5em;
    margin-right: -0.5em;
}

.gallery:not(body):after {
    display: table;
    content: "";
    clear: both;
}

.gallery-item {
    margin: 0;
    float: left;
    padding: 0.5em;
}

.gallery-item img {
    width: 100%;
}

.gallery-columns-1 .gallery-item {
    width: 100%;
    float: none;
}

.gallery-columns-2 .gallery-item {
    width: 50%;
}

.gallery-columns-3 .gallery-item {
    width: 33.3333%;
}

.gallery-columns-4 .gallery-item {
    width: 25%;
}

.gallery-columns-5 .gallery-item {
    width: 20%;
}

.gallery-columns-6 .gallery-item {
    width: 16.6667%;
}

.gallery-columns-7 .gallery-item {
    width: 14.2857%;
}

.gallery-columns-8 .gallery-item {
    width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    width: 11.1111%;
}

.gallery-columns-2 .gallery-item:nth-of-type(2n + 1),
.gallery-columns-3 .gallery-item:nth-of-type(3n + 1),
.gallery-columns-4 .gallery-item:nth-of-type(4n + 1),
.gallery-columns-5 .gallery-item:nth-of-type(5n + 1),
.gallery-columns-6 .gallery-item:nth-of-type(6n + 1),
.gallery-columns-7 .gallery-item:nth-of-type(7n + 1),
.gallery-columns-8 .gallery-item:nth-of-type(8n + 1),
.gallery-columns-9 .gallery-item:nth-of-type(9n + 1) {
    clear: left;
}

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*固定ページのクラシック版段落ブロックで画像を張り替えた際のマージン防止*/
body.page img.alignnone {
    margin: 0;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    white-space: nowrap;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

.logged-in.admin-bar .l-header,
.logged-in.admin-bar .c-slidebar-button {
    margin-top: var(--wp-admin--admin-bar--height) !important;
}

.logged-in.admin-bar .l-section.is-sticky {
    transform: translateY(var(--wp-admin--admin-bar--height)) !important;
}

.logged-in.admin-bar .l-header.is-home:not(.is-active) {
    margin-top: 0 !important;
}

.wp-embedded-content {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* フォーム共通
-------------------------------------------------------------- */

.c-forms__radio.is-column-02 .error,
.c-forms__checkbox.is-column-02 .error {
    grid-column: 1 / -1;
}

.c-forms__file {
    position: relative;
}

.wpcf7-list-item {
    margin-left: 0;
}

.c-forms__select .wpcf7-not-valid-tip,
.c-forms__radio .wpcf7-not-valid-tip,
.c-forms__checkbox .wpcf7-not-valid-tip {
    font-size: 0;
}

.c-forms__select .wpcf7-not-valid-tip {
    white-space: nowrap;
}

/* 疑似要素でエラーメッセージをリライト表示 */
.c-forms__select .wpcf7-not-valid-tip::before,
.c-forms__radio .wpcf7-not-valid-tip::before,
.c-forms__checkbox .wpcf7-not-valid-tip::before {
    content: "選択してください。";
    font-size: 0.75rem;
}

.cf7-repeater {
    padding: 0 !important;
}

.repeater-field-header-acctions-toogle {
    display: none;
}

.repeater-field-header-title {
    visibility: hidden;
}

.repeater-field-footer .repeater-field-button-add {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    color: inherit;
    text-decoration: underline !important;
}

.repeater-field-footer .repeater-field-button-add:hover {
    color: inherit;
    opacity: 0.5;
}

.c-forms__content.is-registration .c-forms__checkbox {
    width: 38%;
    padding-left: 1rem;
}

.c-forms__content.is-registration .c-forms__checkbox span,
.c-forms__content.is-registration .c-forms__checkbox .wpcf7-list-item {
    width: 100%;
}

@media screen and (max-width: 46.8125em) {
    .c-forms__content.is-registration .c-forms__checkbox {
        width: 100%;
        padding-left: 0;
        margin-top: 0.375rem;
    }
}

.cf7-validation-error-message {
    display: inline-block;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #cc2919;
}

/* MW WP Form
-------------------------------------------------------------- */

.mw_wp_form_input .u-hidden-mw-wp-input,
.mw_wp_form_confirm .u-hidden-mw-wp-confirm,
.mw_wp_form_complete .u-hidden-mw-wp-complete {
    display: none !important;
}

.mw_wp_form_confirm .c-forms__privacy {
    display: none !important;
}

.mw_wp_form_confirm #zipauto,
.mw_wp_form_confirm .c-forms__note,
.mw_wp_form_confirm .c-forms__block.is-privacy-policy {
    display: none !important;
}

.mw_wp_form_confirm .c-forms__privacy a,
.mw_wp_form_confirm .c-forms__block a {
    text-decoration: none !important;
    color: inherit !important;
    pointer-events: none !important;
}

.c-forms__privacy-button-wrapper .mwform-checkbox-field.horizontal-item {
    width: 1.5rem;
}

.mw_wp_form .horizontal-item + .horizontal-item {
    margin-left: 0;
}

.mwform-file-delete {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

/* CF7
-------------------------------------------------------------- */

.wpcf7-list-item {
    margin-left: 0;
}

.c-forms__radio .wpcf7-not-valid-tip,
.c-forms__checkbox .wpcf7-not-valid-tip {
    font-size: 0;
}

/* 疑似要素でエラーメッセージをリライト表示 */
.c-forms__radio .wpcf7-not-valid-tip::before,
.c-forms__checkbox .wpcf7-not-valid-tip::before {
    content: "選択してください。";
    font-size: 1rem;
}

.wpcf7-form.submitting .wpcf7-submit {
    opacity: 0.5;
    filter: grayscale(1);
    pointer-events: none;
}

.c-forms__error {
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.7;
    color: #cc2919;
}

.c-forms__block.is-error input,
.c-forms__block.is-error select,
.c-forms__block.is-error textarea {
    background-color: rgba(204, 41, 25, 0.05);
    color: #cc2919;
    border-color: #cf1126;
}

.c-forms__submit__submit:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wpcf7-form-control:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.c-forms__checkbox.is-design input[type="checkbox"]:checked::after {
    background-color: #cf1126;
}

#registration .repeater-field-item-1 .repeater-field-header-acctions-remove {
    display: none !important;
}

/* Comment
-------------------------------------------------------------- */

.comment-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.comment {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f5f6fa;
}

.comment-author {
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 0.8em;
    color: #666;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
}

.comment-form textarea,
.comment-form input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.comment-reply-link {
    margin-top: 10px;
}

.comment-reply-link.c-button.is-sm {
    padding: 0.3rem 1.1rem;
    font-size: 0.75rem;
}

.comment-reply-link:after {
    display: none;
}

.comment-notes {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.comment-form .required {
    color: #ba0000;
}

.comment-form .logged-in-as {
    display: none;
}

.comment-form-cookies-consent {
    margin: 15px 0;
    display: flex;
}

.comment-form-cookies-consent > input {
    margin-top: 2px;
    margin-right: 5px;
}

#cancel-comment-reply-link {
    font-size: 1rem;
    margin-left: 1rem;
}

/* Breadcrumb
-------------------------------------------------------------- */

.c-breadcrumb__inner {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PageHeader
-------------------------------------------------------------- */

.l-page-header__buttons {
    max-width: 40rem;
    padding: 0.625rem 0;
}

@media screen and (max-width: 59.3125em) {
    .l-page-header__buttons {
        max-width: 100%;
        padding: 0;
    }
}

/* Products
-------------------------------------------------------------- */

.c-block-modal-image__link,
#growp-editor-wrapper .c-block-modal-image__link {
    display: block;
    width: 100%;
    aspect-ratio: 448 / 278;
}

.c-block-modal-image__link img,
#growp-editor-wrapper .c-block-modal-image__link img {
    width: 100%;
    height: 100%;
    max-width: initial;
    -o-object-fit: cover;
    object-fit: cover;
}

.c-product-discontinued.is-white .c-product-discontinued__box,
#growp-editor-wrapper .c-product-discontinued.is-white .c-product-discontinued__box {
    background-color: #fff;
}

.p-history-block__box.is-2030s::after {
    content: "’30s";
}

.p-history-block__box.is-2040s::after {
    content: "’40s";
}

.p-history-block__box.is-2050s::after {
    content: "’50s";
}

/* News
-------------------------------------------------------------- */

.c-single-header__sup {
    margin-bottom: 2rem;
}

/* Company
-------------------------------------------------------------- */

.p-base-block__item.is-global {
    font-family: "Saira Variable", sans-serif;
}

.p-base-block__item.is-global .p-base-block__content-title {
    font-weight: 500;
}

/* CaseStudy
-------------------------------------------------------------- */

.c-accordion__list-link.is-current {
    opacity: 1;
    color: #fff;
    background-color: #4f4f4f;
    border-color: #4f4f4f;
    pointer-events: none;
}

/* Events
-------------------------------------------------------------- */

@media screen and (min-width: 46.8126em) {
    .p-events-block__block-button {
        margin-top: 1.5rem;
    }

    .p-events-block__block-image {
        min-width: 15rem;
    }
}

@media screen and (max-width: 46.8125em) {
    .p-events-block__block-image {
        min-width: 100%;
    }
}

/* Interviews
-------------------------------------------------------------- */

/*.p-interview-single-block__item-image {*/
/*    background: #f2f2f2;*/
/*}*/

/*.p-interview-single-block__item-image img {*/
/*    -o-object-fit: contain;*/
/*    object-fit: contain;*/
/*}*/

.c-case-studies__content-text {
    padding-right: 24px;
}

.p-search-industry-block__col.is-1col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.p-downloads-block__images {
    margin-top: 2.5rem;
}

.p-downloads-block__content + .p-downloads-block__content {
    margin-top: 4rem;
}

@media screen and (max-width: 46.8125em) {
    .p-downloads-block__content + .p-downloads-block__content {
        margin-top: 2rem;
    }
}

.p-downloads-block__card-image img {
    object-fit: contain;
}

.p-downloads-block__block-button {
    min-width: 162px;
    justify-content: space-between;
}

@media screen and (max-width: 46.8125em) {
    .p-downloads-block__block-button {
        min-width: 156px;
    }
}

.l-page-header-product__content-labels {
    display: flex;
    gap: 0.5rem;
}

.c-card-product__label-wrapper {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.c-card-product__label {
    position: relative;
    top: 0;
    left: 0;
}

.l-page-header-product__bg {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-product-download__block + .p-product-download__block {
    margin-top: 2.5rem;
}

.p-product-download__block-title .is-sub {
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 400;
}

.p-product-download__block-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.p-product-image__item-image img {
    object-fit: contain;
}

.p-product-image__item-image {
    background-color: #fff;
}

.c-block-modal-image__link,
#growp-editor-wrapper .c-block-modal-image__link {
    aspect-ratio: auto;
}

.c-block-2col__image {
    border: none;
}

.c-card-product__slider .c-card-product__label {
    font-size: 11px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.c-card-product__slider .c-card-product__label-wrapper {
    gap: 4px;
}

.l-header {
    z-index: 9999;
}

.c-aside-product.is-sticky {
    position: sticky;
    top: 12.375rem;
}

.hide-on-frontend {
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
    line-height: 0 !important;
    border: none !important;
}

.p-interview-single-block__item-image {
    aspect-ratio: auto;
}

.c-slidebar-button {
    z-index: 99999;
}

.p-video-production-reason__bg,
#growp-editor-wrapper .p-video-production-reason__bg {
    z-index: 0;
}

.p-video-production-reason__top,
.p-video-production-reason__bottom,
#growp-editor-wrapper .p-video-production-reason__top,
#growp-editor-wrapper .p-video-production-reason__bottom {
    position: relative;
}

.c-heading.is-post-heading-level4 {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-top: 3.375rem;
    margin-bottom: 1.5rem;
    padding-top: 0.625rem;
    position: relative;
}

.c-heading.is-post-heading-level4::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 0.0625rem;
    background-color: #cf1126;
    content: "";
    z-index: 1;
}

.c-heading.is-post-heading-level4::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.0625rem;
    background-color: #b0b0b0;
    content: "";
}

.l-post-content table {
    margin-top: 1rem;
}

@media screen and (max-width: 46.8125em) {
    .p-downloads-block__content-titles {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .p-downloads-block__content-name {
        width: 100%;
        padding-top: 8px;
        margin-top: 8px;
        font-size: 14px;
    }

    .p-downloads-block__content-name::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
    }

    .p-product-download__block-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media screen and (min-width: 950px) {
    .c-aside-navs-search-child {
        padding-bottom: 7.5rem;
    }
}

.c-block-page-link__link {
    color: #111;
}

.c-block-video-1col__block {
    position: relative;
}

.l-post-content table tbody td,
#growp-editor-wrapper:is(
        .post-type-post,
        .post-type-faq,
        .post-type-exhibitions,
        .post-type-articles,
        .post-type-products,
        post-type-case_studies,
        .growp-post-content
    )
    :is(.is-root-container, .mce-content-body)
    > :not(.acf-block-component)
    table
    tbody
    td {
    text-align: left;
}

/* Recruit/Internship/
-------------------------------------------------------------- */
.p-internship-block .c-list.is-icon > li {
    font-weight: 600;
}

/* Contacts
-------------------------------------------------------------- */
.c-forms__input input[type="date"] {
    -webkit-appearance: none;
    height: 45px;
}

.c-mm__content {
    padding: 10px;
}

.p-product-image__item-image {
    aspect-ratio: 1/1;
    padding: 10px;
}

.p-product-image__box {
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 46.8125em) {
    .p-product-image__box {
        grid-template-columns: repeat(2, 1fr);
    }
}

.c-block-note-text-none p {
    font-size: 0.6875rem;
    line-height: 1.4;
    position: relative;
    margin: 0;
}

.l-post-content .c-block-note-text-none p {
    margin: 0;
}

.c-search-products__keywords-link {
    color: #4b7ce8;
}

.c-forms__head {
    margin-top: 0;
}

.c-forms__pagetop {
    margin-top: 2rem;
}

/* ===========================
   Box style (PC base)
   =========================== */
.c-forms__notice {
    margin-top: 32px;
}

.c-forms__notice-inner {
    background-color: #f7f7f7;
    border: 1px solid #e2e2e2;
    padding: 32px 40px;
    border-radius: 6px;
}

.c-forms__notice-title {
    font-size: 20px;
    font-weight: 700;
    color: #c00;
    margin-bottom: 20px;
    margin-top: 0;
}

.c-forms__notice-text em {
    font-style: normal;
    font-weight: 700;
    color: #333;
    display: inline-block;
}

.c-forms__notice-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 0;
}

#growp-editor-wrapper .c-forms__notice a,
.c-forms__notice a {
    color: #4b7ce8;
}

/* ===========================
   breakpoint 950px
   =========================== */
@media (max-width: 950px) {
    .c-forms__notice-inner {
        padding: 28px 32px;
    }

    .c-forms__notice-title {
        font-size: 19px;
    }
}

/* ===========================
   breakpoint 750px
   =========================== */
@media (max-width: 750px) {
    .c-forms__notice {
        margin-top: 24px;
    }

    .c-forms__notice-inner {
        padding: 16px 16px;
        border-radius: 6px;
    }

    .c-forms__notice-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
}

.wpcf7-form.sent .wpcf7-response-output {
    display: none !important;
}

table.FloatR + h6 {
    clear: both;
}

[data-class="wpcf7cf_group"] {
    margin-bottom: 1.25rem;
}

#datasign_cmp__host {
    --dialog-background-color: #f2f2f2 !important;
}

.c-forms__box a {
    color: #4b7ce8;
}

.c-forms__label.is-hidden {
    display: none;
}

.repeater-field-item + .repeater-field-item .c-forms__box-note.is-only {
    display: none;
}

.c-table.is-events tbody th span,
.c-table.is-events tbody td span {
    color: inherit;
}

.c-table td a {
    color: #4b7ce8;
}

.l-post-content .MdsH4:has(img) {
    display: flex;
    align-items: center;
}

#growp-editor-wrapper:is(.post-type-post, .growp-post-content)
    :is(.is-root-container, .mce-content-body)
    > :not(.acf-block-component)
    .MdsH4:has(img)::before,
.l-post-content .MdsH4:has(img)::before {
    top: 50%;
    transform: translateY(-50%);
}

.l-page-header-product__content-logo img {
    width: auto;
}

.FloatL img,
.FloatR img {
    width: 100%;
}

.c-card-product-banner__image img {
    object-fit: contain;
}

.p-case-studies-header__buttons {
    flex-shrink: 0;
}

.c-block-video-1col__link {
    position: absolute;
    inset: 0;
}

.c-block-video-1col__modal-inner {
    aspect-ratio: 16 / 9;
    width: 62.5rem;
    max-width: 100%;
}

.c-block-video-1col__modal-inner iframe {
    width: 100%;
    height: 100%;
}

.p-downloads-header__button.is-white {
    background-color: #fff;
    color: #111;
    border-color: #111;
}

.p-downloads-header__button.is-white:hover {
    background-color: #cf1126;
    color: #fff;
    border-color: #cf1126;
}

.c-main-visual__news-meta {
    flex-shrink: 0;
}
