/* ===== ▼productアーカイブ ===== */
.prducts_arc_title  {
    text-align: center;
}

.slide_product {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px 2%;
}

.product_list {
    position: relative;
}

.product_list_imgbox{
    width: 100%;
    aspect-ratio: 5/4;
}

.top_product_list_title {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2%;
    margin: 0;
    font-weight: 400;
    font-size: 16px;
}

/* ===== ▲productアーカイブ ===== */
/* ===== ▼machineアーカイブ ===== */
/* ==== ▼ページ内リンク ==== */
.machine_link_wrapper {
    width: 90%;
    max-width: 600px;
    margin: 50px auto 0;
}

.machine_link_contain {
    display: flex;
    justify-content: space-around;
}

.machine_link {
    position: relative;
    width: 30%;
    aspect-ratio: 1/1;
    border: #424242 0.5px solid;
    border-radius: 50%;
}

.machine_link::after {
    content: '';
    position: absolute;
    background-color: #e25662;
    width: 10%;
    height: 7%;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
}

.machine_link:hover::after {
    top: 80%;
}

.machine_link_inner {
    position: absolute;
    color: #424242;
    width: 90%;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    font-size: min(3.5vw, 24px);
}

/* ==== ▲ページ内リンク ==== */

.machine_title {
    text-align: center;
}

.machine_list_ul {
    width: 90%;
    margin: 70px auto;
}

.machine_list_content {
    width: 100%;
    margin: 20px auto;
    box-shadow:  20px 20px 60px #d1d1d1,
    -20px -20px 60px #ffffff;
    border-radius: 20px;
    background-color: #fff;
}

.machine_list_content a {
    color: #424242;
}

.machine_img {
    width: 70%;
    margin: 0 auto;
    padding: 20px 0;
}

.machine_list_text {
    width: 80%;
    margin: 0 auto;
    padding: 0 0 60px;
    font-size: 14px;
}

.machine_list_title_wrapper {
    margin: 0 0 10px 0;
    position: relative;
}


.machine_list_title {
    margin: 0;
    font-size: 20px;
}

.machine_sub_title {
    font-size: 18px;
    color: #ababab;
}

.maintenance_wrapper {
    width: 90%;
    max-width: 800px;
    margin: 100px auto;

}

.maintenance_text {
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

/* ===== ▲machineアーカイブ ===== */
/* ===== ▼newsアーカイブ ===== */

/* ==== ▼タブの切り替え ==== */


/*liにactiveクラスがついた時の形状*/
.news_tab li.active a .tab_design {
    display: inline-block;
    border-bottom: #e25662 3px solid;
}

/*エリアの表示非表示と形状*/
.area {
    display: none;
    /*はじめは非表示*/
    opacity: 0;
    /*透過0*/
}

/*areaにis-activeというクラスがついた時の形状*/
.area.is-active {
    display: block;
    /*表示*/
    animation-name: displayAnime;
    /*ふわっと表示させるためのアニメーション*/
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

@keyframes displayAnime {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==== ▲タブの切り替え ==== */
/* ==== ▼レイアウト ==== */
.news_tab {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    margin: 50px auto;
}

.news_tab_li {
    margin: 10px 0;
    width: 50%;
}

.news_tab_li a {
    text-align: center;
    color: #424242;
    padding: 10px;
    transition: all 0.3s;
}

.news_tab_li a:hover {
    color: #e25662;
}

.news_tab_li:nth-of-type(2n-1) a {
    border-right: #424242 1px solid;
}

.news_wrapper {
    width: 90%;
    margin: 0 auto;
}

.arc_news_ul {
    margin-top: 80px;
}

.arc_news_li {
    width: 100%;
    padding: 18px 0;
    border-bottom: 0.5px solid #b1b1b1;
}

.news_link {
    display: flex;
    justify-content: space-between;
    height: 130px;
    font-size: 14px;
    color: #424242;
}

.arc_news_list_img_outer {
    width: 38%;
    overflow: hidden;
}

.arc_news_list_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s;
}

/* ▼hoverで画像拡大 */
.news_link:hover .arc_news_list_img {
    transform: scale(1.2);
}

.news_link:hover .btn_more3 {
	width: 100%;
}

/* ▲hoverで画像拡大 */

.arc_news_content {
    width: 58%;
    position: relative;
}

.arc_news_detail {
    display: flex;
    margin-top: 10px;
}

   .top_news_single_title {
  display: -webkit-box;             /* フレックスボックスの一種を使用 */
  -webkit-line-clamp: 2;            /* 2行まで表示する指定 */
  -webkit-box-orient: vertical;     /* 縦方向にボックスを配置 */
  overflow: hidden;                 /* はみ出した部分を隠す */
  text-overflow: ellipsis;          /* 省略記号「…」を表示 */
  max-height: calc(1.5em * 2);      /* 2行分の高さを計算 */

    }


.arc_news_category {
    background-color: #424242;
    color: #fff;
    padding: 0 10px;
    margin-left: 10px;
}

.arc_news_btn {
    position: absolute;
    bottom: 0;
    left: 0;
}



/* ==== ▲レイアウト ==== */

/* ===== ▲newsアーカイブ ===== */

/* ===== ▼▼▼▼　520px以上　▼▼▼▼ ===== */
@media screen and (min-width: 520px) {
    /* ===== ▼machineアーカイブ ===== */
    .machine_list_ul {
        width: 90%;
        margin: 70px auto;      
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(540px, 1fr));
        column-gap: 2%;
    }

    .machine_list_content a {
        display: flex;
        justify-content: space-between;
        padding: 20px;
    }

    .machine_img {
        width: 32%;
        margin: auto;
    }

    .machine_list_text {
        width: 64%;
        padding: 5%;
    }

    /* ===== ▲machineアーカイブ ===== */
    /* ===== ▼newsアーカイブ ===== */
    .news_tab_li {
        width: calc(100% / 3);
    }

    .news_tab_li a {
        border-right: #424242 1px solid;
    }

    .news_tab_li:nth-of-type(3n) a {
        border-right: none;
    }

    .news_wrapper {
        width: 80%;
        max-width: 1400px;
    }

    .area.is-active {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        column-gap: 5%;
    }

    .arc_news_li {
        border-bottom: inherit;
    }

    .news_link {
        display: block;
        margin-top: 40px;
        height: inherit;
    }

    .arc_news_list_img_outer {
        width: 100%;
    }

    .arc_news_list_img {
        width: 100%;
        aspect-ratio: 5/3;
    }

    .arc_news_content {
        width: 100%;
    }

    .top_news_single_title {
        padding-bottom: 36px;
    }
	
	.arc_news_btn {
		
transform: translateY(40px);
	}

    /* ===== ▲newsアーカイブ ===== */
}

/* ===== ▼▼▼▼　960px以上　▼▼▼▼ ===== */
@media screen and (min-width: 960px) {

    /* ===== ▼machineアーカイブ ===== */
    .machine_link_wrapper {
        max-width: 800px;
        margin-top: 100px;
    }

    .machine_link {
        width: 26%;
    }

    .machine_list_ul {
        max-width: 1600px;
    }


    /* ===== ▲machineアーカイブ ===== */
    /* ===== ▼newsアーカイブ ===== */
    .news_tab {
        width: 80%;
        max-width: 1200px;
        margin-top: 160px;
    }


    .news_tab_li {
        width: calc(100% / 5);
    }

    .news_tab_li a,
    .news_tab_li:nth-of-type(3n) a {
        border-right: #424242 1px solid;
    }

    .news_tab_li:nth-of-type(5n) a {
        border-right: none;
    }
    /* ===== ▲newsアーカイブ ===== */
}