/* ------------------------------
    COMPANY
--------------------------------*/
html {
    background-color: var(--color-gray02);
}

.mo-company .c-hdg-section--highlighted .c-hdg-section__main {
    display: flex;
    margin: 5px 0 0 0;
}

@media (min-width: 768px) {
    .mo-company .c-hdg-section--highlighted .c-hdg-section__main {
        margin: 0 0 0 -12px;
    }
}

.mo-company .p-company {
    margin: 135px 0 0;
}

@media (min-width: 768px) {
    .mo-company .p-company {
        margin: 140px 0 0;
    }
}

.mo-company .p-company .p-company__container {
    margin: 69px 0 0;
}

@media (min-width: 768px) {
    .mo-company .p-company .p-company__container {
        margin: 173px 0 0;
    }
}

/* kv */
.mo-company .l-mv {
    display: block;
    width: 100%;
    margin-top: 18px;
}

@media (min-width: 768px) {
    .mo-company .l-mv {
        margin-top: 86px;
    }
}

/* p-company__navList */
.p-company__navList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
    max-width: 500px;
    width: 100%;
    margin: 60px auto 0;
    padding-inline: 20px;
}

.p-company__navList a {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 38px;
    border-bottom: 1px solid var(--color-black02-04);
    font-size: 14px;
    letter-spacing: 0.01em;
}

.p-company__navList a .c-chevron-down,
.p-company__navList a .c-btn-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 5px;
    width: 1em;
    height: 1em;
    opacity: .8;
    transform: translateY(-50%)
}

.p-company__navList a>.c-chevron-down::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--color-black02);
    mask: url(/wp-content/themes/mecdesign/assets/images/pages/icons/icon_arw-link.svg) no-repeat center/contain
}

.p-company__navList a>.c-btn-link__icon::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--color-black04);
    mask: url(/wp-content/themes/mecdesign/assets/images/pages/icons/icon_btn-blank-arw.svg) no-repeat center/contain
}

@media (min-width: 768px) {
    .p-company__navList {
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        gap: 30px;
        width: fit-content;
        max-width: unset;
        margin: 131px auto 0;
    }

    .p-company__navList a {
        width: 250px;
        height: 67px;
        font-size: 18px;
        letter-spacing: 0.01em;
    }

    .p-company__navList a .c-chevron-down,
    .p-company__navList a .c-btn-link__icon {
        top: 50%;
        right: 15px;
        width: 1.1em;
        height: 1.1em;
        opacity: .8;
        transform: translateY(-50%)
    }

    .p-company__navList a>.c-chevron-down {
        right: 18px;
        width: 1.1em;
        height: 1.1em;
        transform: translateY(-50%) rotate(135deg);
        -webkit-mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        -webkit-mask-size: 100% 300%;
        mask-size: 100% 300%;
        -webkit-mask-position: 0% 0%;
        mask-position: 0% 0%;
        transition: mask-position .5s var(--ease-out-sine);
    }

    .p-company__navList a>.c-btn-link__icon {
        right: 18px;
        width: 1.1em;
        height: 1.1em;
        transform: translateY(-50%) rotate(45deg);
        -webkit-mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        -webkit-mask-size: 100% 300%;
        mask-size: 100% 300%;
        -webkit-mask-position: 0% 0%;
        mask-position: 0% 0%;
        transition: mask-position .5s var(--ease-out-sine);
    }
}

@media (min-width: 768px) {
    .p-company__navList a .c-chevron-down::before {
        width: 17px;
        height: 17px;
        transform: rotate(-45deg)
    }

    .p-company__navList a .c-btn-link__icon::before {
        width: 14px;
        height: 14px;
        transform: rotate(-45deg)
    }
}

@media (hover: hover) and (pointer: fine) {
    .p-company__navList a:hover .c-chevron-down {
        -webkit-mask-position: 0% 150%;
        mask-position: 0% 150%;
    }

    .p-company__navList a:hover .c-btn-link__icon {
        -webkit-mask-position: 0% 150%;
        mask-position: 0% 150%;
    }
}


/* subtitle */
.c-hdg-section {
    flex-direction: column;
    align-items: center;
}

.p-profile__container .c-hdg-section__sub {
    letter-spacing: 0.01em;
}

.c-subhdg-section .c-hdg-section__inner::after {
    display: none;
}

@media (min-width: 768px) {
    .p-profile__container {
        margin: 104px auto 0;
    }

    .p-profile__container .c-hdg-section__sub {
        letter-spacing: 0;
    }

    .p-profile__container .c-hdg-section__main {
        margin-top: 6px;
    }
}

/* profile */
.p-profile__container {
    padding: 65px 20px 0;
}

@media (min-width: 768px) {
    .p-profile__container {
        padding: 104px 2.5% 0;
    }
}

.p-profile__table {
    border-collapse: collapse;
    max-width: 1280px;
    width: 100%;
    margin: 68px auto 0;
    border-top: 1px solid var(--color-gray05);
    font-size: 12px;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .p-profile__table {
        font-size: 16px;
    }
}

.p-profile__table tr {
    border-bottom: 1px solid var(--color-gray05);
}

.p-profile__table th {
    display: block;
    width: 100%;
    padding: 20px 20px 0 0;
    text-align: left;
    font-weight: 500;
    line-height: 1.7;
}

.p-profile__table th {
    font-size: 14px;
}

.p-profile__table-inner th {
    font-size: 12px;
}

.p-profile__table td {
    display: block;
    width: 100%;
    padding: 10px 0 21px;
    font-weight: 400;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .p-profile__table th {
        display: table-cell;
        vertical-align: top;
        max-width: 300px;
        width: 25%;
        padding: 40px 20px 41px 0;
        text-align: left;
        font-weight: 500;
    }

    .p-profile__table th {
        font-size: 16px;
    }

    .p-profile__table-inner th {
        font-size: 16px;
    }

    .p-profile__table td {
        display: table-cell;
        width: 75%;
        padding: 41px 0 42px;
        font-weight: 400;
        line-height: 1.7;
    }
}

.p-profile__table td .p-profile__table-data-main {
    margin-bottom: 8px;
}

.p-profile__table .link {
    display: inline-block;
    position: relative;
    border-bottom: 2px solid var(--color-black02-04);
    line-height: 1.5;
}

.p-profile__table .link a {
    position: relative
}

.p-profile__table .link a .c-btn-link__icon {
    position: absolute;
    top: 52%;
    right: -1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    opacity: .8;
    transform: translateY(-50%)
}

@media (min-width: 768px) {
    .p-profile__table td .p-profile__table-data-main {
        margin-bottom: 15px;
    }

    .p-profile__table .link a .c-btn-link__icon {
        right: -1.4em;
        width: 17px;
        height: 17px;
        transform: translateY(-50%) rotate(45deg);
        -webkit-mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        -webkit-mask-size: 100% 300%;
        mask-size: 100% 300%;
        -webkit-mask-position: 0% 0%;
        mask-position: 0% 0%;
        transition: mask-position .5s var(--ease-out-sine)
    }
}

.p-profile__table .link a .c-btn-link__icon::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--color-black02-04);
    mask: url(/wp-content/themes/mecdesign/assets/images/pages/icons/icon_link.svg) no-repeat center/contain
}

@media (min-width: 768px) {
    .p-profile__table .link a .c-btn-link__icon::before {
        width: 13px;
        height: 13px;
        transform: rotate(-45deg)
    }
}

@media (hover: hover) and (pointer: fine) {
    .p-profile__table .link:hover a .c-btn-link__icon {
        -webkit-mask-position: 0% 150%;
        mask-position: 0% 150%
    }
}

.p-profile__table td .p-profile__table-data-text {
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.p-profile__table td .p-profile__table-data-text {
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.p-profile__table td dl {
    padding-bottom: 14px;
}

.p-profile__table td dl:first-child {
    border-top: none;
}

.p-profile__table td dl+dl {
    padding-top: 21px;
    border-top: 1px solid var(--color-gray05);
}

@media (min-width: 768px) {
    .p-profile__table td dl {
        padding-bottom: 29px;
    }

    .p-profile__table td dl:first-child {
        border-top: none;
    }

    .p-profile__table td dl+dl {
        padding-top: 42px;
    }

    .p-profile__table td dl:last-child {
        padding-bottom: 0;
    }
}

/* 中teble */
.p-profile__table-inner {
    width: 100%;
    border-collapse: collapse;
}

.p-profile__table-inner tr {
    border-bottom: none;
}

.p-profile__table-inner th,
.p-profile__table-inner td {
    display: table-cell;
    vertical-align: top;
    padding-top: 0;
    font-weight: 400;
    line-height: 2.1;
}

.p-profile__table-inner th {
    width: 30%;
    padding-right: 0.5em;
    font-weight: 400;
    padding-bottom: 9px;
}

.p-profile__table-inner td {
    width: calc(70% - 1em);
    padding-bottom: 9px;
}

@media (min-width: 768px) {
    .p-profile__table-inner th {
        width: 26%;
        padding-right: 0.5em;
    }

    .p-profile__table-inner td {
        width: calc(74% - 1em);
    }
}

/* cell-2column */
.p-profile__table td.cell-2column {
    display: grid !important;
    grid-template-columns: 6em auto;
    align-items: start;
    row-gap: 0.5em;
    width: 100%;
}

@media (min-width: 768px) {
    .p-profile__table td.cell-2column {
        grid-template-columns: 1fr 2.5fr;
    }
}

.p-profile__table .public-notice .link {
    display: block;
    width: fit-content;
    border-bottom: 2px solid var(--color-black02-04);
}


/* movie */
.p-profile__movie {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin: 30px auto 0;
    background-color: #000;
}

.p-profile__movie>div {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.p-profile__movie>div iframe {
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
}

@media screen and (min-width: 768px) {
    .p-profile__movie {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 1280px;
        margin-top: 69px;
    }
}

/* history */
.p-profile__container#history {
    padding: 65px 20px 0;
}

@media (min-width: 768px) {
    .p-profile__container#history {
        padding: 104px 2.5% 0;
    }
}

.p-history__container {
    max-width: 1280px;
    margin: 28px auto 0;
}

@media (min-width: 768px) {
    .p-history__container#history {
        margin-top: 56px;
    }
}

.p-history__container h4 span.en {
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-en);
}

.p-history__container h4 span.numb {
    display: inline-block;
    margin-left: 0.3em;
    font-size: 32px;
    font-weight: 400;
    font-family: var(--font-num);
    letter-spacing: 0;
}

.p-history__container ul {
    width: 100%;
    margin-top: 25px;
    border-bottom: 1px solid var(--color-gray05);
}

.p-history__container ul li.p-history__item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: auto;
    column-gap: 10px;
    position: relative;
    padding: 20px 0 24px;
    letter-spacing: 0.13em;
    line-height: 2;
}

.p-history__container ul li.p-history__item::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    width: 100%;
    height: 1px;
    background-color: var(--color-gray05);
}

.p-history__container ul li span.date {
    display: block;
    width: 100%;
}

.p-history__container ul li span.event {
    display: block;
    width: 100%;
}

.p-history__container ul li div {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: fit-content;
}

.p-history__container ul li div figure+figure {
    margin-top: calc(50px + 20vw);
}

@media (min-width: 768px) {
    .p-history__container {
        column-gap: 80px;
        max-width: 1280px;
        margin: 56px auto 0;
    }

    .p-history__container h4 span.en {
        font-size: 25px;
    }

    .p-history__container h4 span.numb {
        font-size: 50px;
    }

    .p-history__container ul {
        width: auto;
        margin-top: 50px;
    }

    .p-history__container ul li.p-history__item {
        grid-template-columns: 0.9fr 2fr 1.1fr;
        column-gap: 80px;
        padding: 31px 0 35px;
        line-height: 1.5;
    }

    .p-history__container ul li.p-history__item::before {
        max-width: 900px;
        width: 70%;
    }

    .p-history__container ul li div {
        display: block;
        max-width: 300px;
        width: auto;
        height: fit-content;
    }

    .p-history__container ul li div figure+figure {
        margin-top: 70px;
    }
}



/* group */
.p-profile__group-lead {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1280px;
    width: 95%;
    margin: 20px auto 0;
    font-size: 14px;
    text-align: center;
}

.p-profile__container#group .c-btn-primary {
    position: relative;
    margin: 25px auto 0;
}

.p-profile__container#group .c-btn-primary .c-btn-link__icon {
    position: absolute;
    top: 50%;
    right: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    opacity: .8;
    transform: translateY(-50%)
}

.p-profile__container#group .c-btn-primary .c-btn-link__icon::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    mask: url(/wp-content/themes/mecdesign/assets/images/pages/icons/icon_link.svg) no-repeat center/11px;
}

@media screen and (min-width: 768px) {
    .p-profile__group-lead {
        margin-top: 40px;
        font-size: 18px;
    }

    .p-profile__container#group .c-btn-primary {
        margin-top: 50px;
    }

    .p-profile__container#group .c-btn-primary .c-btn-link__icon {
        width: 21px;
        height: 21px;
        transform: translateY(-50%) rotate(45deg);
        -webkit-mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        -webkit-mask-size: 100% 300%;
        mask-size: 100% 300%;
        -webkit-mask-position: 0% 0%;
        mask-position: 0% 0%;
        transition: mask-position .5s var(--ease-out-sine)
    }

    .p-profile__container#group .c-btn-primary .c-btn-link__icon::before {
        mask-size: 15px;
        transform: rotate(-45deg);
    }
}

@media (hover: hover) and (pointer: fine) {
    .p-profile__container#group .c-btn-primary:hover .c-btn-link__icon::before {
        background-color: var(--color-white01);
    }

    .p-profile__container#group .c-btn-primary:hover .c-btn-link__icon {
        -webkit-mask-position: 0% 150%;
        mask-position: 0% 150%;
    }
}



/* breadcrumb調整 */
@media (min-width: 768px) {
    .breadcrumb {
        padding-block: 119px 20px;
    }
}