@charset "UTF-8";
/* CSS Document */

/*下層MV*/
#company-equipment #lower_mv {
    background: url("../../assets/img/company/equipment/mv.webp") no-repeat;/*各ページごとに変更*/
    background-size: cover;
    background-position: center;
}
#company-equipment main {
    margin-top: 80px;/*各ページごとに変更*/
}
#company-equipment section:nth-of-type(n + 2) {
    margin-top: 64px;
}

@media (max-width: 768px) {
    #company-equipment section:nth-of-type(n + 2) {
        margin-top: 48px;
    }
}

/*アンカーリンク*/
#anchor_link ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
#anchor_link ul li {
    width: calc((100% - 48px) / 4);
    max-width: 255px;
    transition: 0.3s;
    background: rgb(48, 188, 235);
    background: linear-gradient(120deg, rgba(48, 188, 235, 1) 0%, rgba(22, 86, 164, 1) 58%);
    background-size: 100%;
}
#anchor_link ul li a {
    color: #FFFFFF;
    font-weight: 300;
    letter-spacing: 1.4px;
    padding: 16px 20px;
    display: inline-block;
    width: 100%;
    height: 100%;
    text-align: center;
}
#anchor_link ul li:hover {
    background-size: 150%;
    background-position: 5% 50%;
}

@media (max-width: 960px) {
    #anchor_link ul li a {
        padding: 16px 12px;
    }
}
@media (max-width: 768px) {
    #anchor_link ul {
        gap: 12px;
    }
    #anchor_link ul li {
        width: calc((100% - 24px) / 3);
    }
    #anchor_link ul li a {
        padding: 14px 8px;
    }
}
@media (max-width: 480px) {
    #anchor_link ul li {
        width: calc((100% - 16px) / 2);
    }
}


/*アコーディオンテーブル*/
.accordion_table {
    margin-top: 80px;
}
.accordion_table h2 {
    position: relative;
    margin-bottom: 16px;
}
.accordion_table h2::after {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 19px;
    background: var(--LB-color);
    top: 0;
    right: 0;
    transition: 0.5s;
}
.accordion_table h2 span.accordion_btn {
    display: block;
    width: 38px;
    height: 38px;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    z-index: 2;
}
.accordion_table h2 span.accordion_btn:hover {
    cursor: pointer;
}
.accordion_table h2 span.accordion_btn::after {
    content: '';
    width: 11px;
    height: 11px;
    border-left: 2px solid #FFFFFF;
    border-top: 2px solid #FFFFFF;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 52%;
    left: 10px;
    z-index: 3;
    transition: 0.2s;
}
.accordion_table h2 span.accordion_btn.closed::after{
    transform: rotate(-135deg) translateY(-50%);
    top: 19%;
    left: 45%;
}
.accordion_table h2 span.accordion_btn::before {
    content: '閉じる';
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: block;
    width: 40px;
    text-align: center;
    position: absolute;
    top: -18px;
    color: var(--LB-color);
    transition: 0.2s;
}
.accordion_table h2 span.accordion_btn.closed::before {
    content: '開く';
} 


@media (max-width: 768px) {
    .accordion_table h2 {
        padding-right: 28px;
    }
    .accordion_table h2::after {
        width: 32px;
        height: 32px;
        border-radius: 16px;
    }
    .accordion_table h2 span.accordion_btn {
        width: 32px;
        height: 32px;
    }
    .accordion_table h2 span.accordion_btn::after {
        content: '';
        width: 10px;
        height: 10px;
        border-left: 2px solid #FFFFFF;
        border-top: 2px solid #FFFFFF;
        top: 52%;
        left: 7.5px;
    }
    .accordion_table h2 span.accordion_btn::before {
        content: '閉じる';
        font-size: 1rem;
        width: 36px;
        top: -16px;
        left: -1px;
    }
}


/*テーブル*/
.accordion_table table {
    margin-bottom: 16px;
    overflow-x: scroll;
}
.accordion_table table:last-of-type {
    margin-bottom: 0;
}

.accordion_table table tr {
    border-top: 1px solid #B2B2B2;
}
.accordion_table table tr:first-of-type {
    background: #E4F5FB;
    font-weight: 600;
    border-top: none;
}
.accordion_table table tr th {
    width: 31%;
    padding: 8px;
    min-width: 15em;
    font-weight: 400;
}
.accordion_table table tr th:nth-of-type(4) {
    width: 7%;
    min-width: 3em;
}
.accordion_table table tr td {
    padding: 8px;
    font-weight: 300;
}
.accordion_table table tr th:nth-of-type(n + 2) {
    border-left: 1px solid #B2B2B2;
}
.accordion_table table tr td:nth-of-type(n + 2) {
    border-left: 1px solid #B2B2B2;
}

.accordion_table table tr td.border-right {
    border-right: 1px solid #B2B2B2;
}

/*テーブル非表示*/
.table_wrap {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    overflow-x: scroll;/*テーブルスクロール*/
}
/*画像の場合*/
.accordion_table > *:not(h2) {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.accordion_table img {
  display: block;
  margin: 0;
}


/* スクロールバー */
.table_wrap::after {
    content: "";
    display: block;
    height: 15px;
}
.table_wrap::-webkit-scrollbar {
  display: none;
}
@media (max-width: 768px) {
    .table_wrap::-webkit-scrollbar {
        display: block;
        height: 10px;
    }
    /* スクロールバーの背景部分 */
    .table_wrap::-webkit-scrollbar-track {
        background: #F6F6F6;
        border-radius: 20px;
    }

    /* スクロールバーの操作部分 */
    .table_wrap::-webkit-scrollbar-thumb {
        background: #DDD; 
        border-radius: 5px;
    }
}





/*事業内容一覧*/
.company-list {
    padding: 80px 0;
    background: #F2F2F2;
}
.company-list h2 {
    text-align: left;
    margin-bottom: 40px;
}

.company-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
}
.company-list ul li {
    width: calc((100% - 128px) / 3);
}
.company-list ul li > div {
    display: flex;
    gap: 24px;
    align-items: center;
    width: 100%;
}
.company-list ul li > div a {
    display: block;
    font-size: 1.6rem;
    font-weight: 400;
    padding-bottom: 16px;
    border-bottom: 1px solid #A0A0A0;
    width: 60%;
    padding-right: 24px;
    position: relative;
    transition: 0.3s;
}
.company-list ul li > div a::after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--LB-color);
    border-right: 2px solid var(--LB-color);
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 30%;
    right: 12px;
    border-radius: 1px;
    transition: 0.25s ease-in-out;
}
.company-list ul li > div img {
    max-width: 116px;
    width: 40%;
}

.company-list ul li > div a:hover {
    color: #5C5C5C;
}
.company-list ul li > div a:hover::after {
    right: 9px;
}

@media (max-width: 1200px) {
    .company-list ul {
        gap: 32px 40px;
    }
    .company-list ul li {
        width: calc((100% - 80px) / 3);
    }
}
@media (max-width: 1100px) {
    .company-list ul {
        gap: 32px;
    }
    .company-list ul li {
        width: calc((100% - 64px) / 3);
    }
}
@media (max-width: 1080px) {
    .company-list ul {
        gap: 24px 32px;
    }
    .company-list ul li {
        width: calc((100% - 32px) / 2);
    }
}
@media (max-width: 700px) {
    .company-list ul {
        gap: 24px;
    }
    .company-list ul li {
        width: 100%;
    }
    .company-list ul li > div img {
        max-width: inherit;
        width: 35%;
    }
    .company-list ul li > div a {
        width: 65%;
    }
}
