@charset "utf-8";

.pageCompany .section {
    padding-top: 0;
    margin-top: 100px;
}

/*==========================
article__header
==========================*/
.article__header--company {
    margin-bottom: 25px;
}

/* companyNav */
.companyNav {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    overflow-x: auto;
}

.companyNav__list {
    display: flex;
    height: 55px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-whiteLow);
    min-width: 440px;
}

.companyNav::-webkit-scrollbar {
    opacity: 0;
    height: 2px;
    width: 15px;
}

.companyNav::-webkit-scrollbar-thumb {
    border: 2px solid var(--primary-gray);
    border-radius: 20px;
    background-color: var(--primary-gray);
}

.companyNav__item {
    color: var(--primary-grayLow);
    line-height: 0.9;
}

.companyNav__link {
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 7px;
    /*  */
    color: var(--primary-grayLow);
    text-decoration: none;
}

.companyNav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 15px);
    height: 2px;
    background-color: var(--primary-black);
    width: 0;
    /* 初期状態で幅を0に設定 */
    transition: width 0.3s ease;
    /* 幅の変化でスライドインを表現 */
}

.companyNav__link.is-active::after {
    width: 30px;
    /* ホバー時に拡大してスライドイン */
}

@media screen and (min-width: 1100px) {

    .companyNav__link:hover::after {
        width: 30px;
        /* ホバー時に拡大してスライドイン */
    }
}

.companyNav__link:hover {
    color: var(--primary-black);
}


.companyNav__link:active {
    color: var(--primary-black);
}

.companyNav__link.is-active {
    color: var(--primary-black);
}

/*==========================
greeting
==========================*/
.greeting {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

.greeting__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.greeting__img {
    width: 280px;
    height: 280px;
}

.greeting__name {
    margin-top: 25px;
}

.greeting__txt {
    margin-top: 32px;
}

.greeting__txt p {
    line-height: 1.8;
}

.greeting__txt p:not(:first-of-type) {
    margin-top: 10px;
}

/*==========================
philosophy
==========================*/
.philosophy__txt {
    margin-top: 32px;
}

.philosophy__txt p {
    line-height: 1.8;
}

/*==========================
"table" companyOverview affiliatedCompany 
==========================*/
.table__container {
    margin-top: 32px;
}

.table {
    border-collapse: collapse;
    width: 100%;
}

.table tr {
    border-bottom: 2px solid var(--primary-lightGray);
}

.table th,
.table td {
    padding: 0;
    text-align: left;
}

.table th {
    white-space: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--primary-grayLow);
    font-weight: 500;
    width: 100px;
}

.table td {
    padding-left: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: none;
}

.wp-block-table.is-style-regular td:nth-child(1) {
    color: var(--primary-grayLow);
    font-weight: 500;
    width: 100px;
    padding-left: 0;
}

/*==========================
affiliatedCompany 
==========================*/
.affiliatedCompany-address__list li {
    display: flex;
}

.affiliatedCompany-address__list li::before {
    content: "・";
    width: 1em;
    height: 1em;
}

/*==========================
history
==========================*/
.tableHistory__year {
    position: relative;
}

.tableHistory__year::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    /* 縦線の位置 */
    width: 5px;
    height: 105%;
    background-color: var(--primary-gray);
}

.tableHistory__year::after {
    content: '';
    position: absolute;
    top: 23px;
    left: -10px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--primary-orange);
    border-radius: 50%;
}

/* wp */
.wp-block-group.table__container.table__container--history td:nth-child(1) {
    color: var(--primary-grayLow);
    font-weight: 500;
    width: 100px;
    padding-left: 0;
}

.wp-block-group.table__container.table__container--history .wp-block-table table td {
    position: relative;
}

.wp-block-group.table__container.table__container--history .wp-block-table table td:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    /* 縦線の位置 */
    width: 5px;
    height: 105%;
    background-color: var(--primary-gray);
}

.wp-block-group.table__container.table__container--history .wp-block-table table td:nth-child(1)::after {
    content: '';
    position: absolute;
    top: 23px;
    left: -10px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--primary-orange);
    border-radius: 50%;
}

.wp-block-table {
    overflow-x: initial;
}

/*==========================
access 
==========================*/
.access__txt {
    margin-top: 32px;
}

.access__txt p:nth-of-type(2) {
    margin-top: 10px;
}

.access__txt_tel {
    margin-top: 15px;
}

.access__map {
    margin-top: 25px;
    width: 100%;
    height: 400px;
}

.access__map iframe {
    width: 100%;
    height: 400px;
}

.access__txt p:first-of-type {
    font-size: 18px;
    font-weight: 500;
}

.access__txt p:nth-of-type(3) {
    white-space: nowrap;
}

.access__img {
    margin-top: 50px;
}

.yohaku {
    margin-left: 10px;
}

/*------pc 1100------*/
@media screen and (min-width: 1100px) {

    /* article__header */
    .article__header--company {
        margin-bottom: 50px;
    }

    /* companyNav */
    .companyNav__list {
        display: flex;
        height: 55px;
        gap: 50px;
    }

    /* greeting */
    .greeting {
        flex-direction: row-reverse;
        margin-top: 50px;
        gap: 80px;
        align-items: flex-start;
    }

    .greeting__txt {
        margin-top: 0;
    }

    .greeting__txt p {
        line-height: 2;
    }

    .greeting__txt p:not(:first-of-type) {
        margin-top: 24px;
    }

    /* philosophy */
    .philosophy__txt {
        margin-top: 50px;
    }

    .philosophy__txt p {
        line-height: 2;
    }

    /* "table" companyOverview affiliatedCompany */
    .table__container {
        margin-top: 50px;
    }

    .table th {
        white-space: nowrap;
        padding-top: 30px;
        padding-bottom: 30px;
        color: var(--primary-grayLow);
        font-weight: 500;
    }

    .table td {
        padding-left: 30px;
        padding-top: 30px;
        padding-bottom: 30px;

    }

    .wp-block-group.table__container.table__container--history .wp-block-table table td:nth-child(1)::after {
        top: 43px;
    }

    /* access */
    .access__container {
        display: flex;
        height: 400px;
        justify-content: space-between;
        align-items: flex-start;
        gap: 70px;
        margin-top: 50px;
    }

    .access__txt {
        margin-top: 0;
        width: 400px;
    }

    .access__map {
        margin-top: 0;
    }

    /*  */
    .tableHistory__year::after {
        top: 43px;
    }
}