#sm {
    position: relative;
    width: 90%;
    margin: 100px auto;
}

.kv-section {
    margin: 0 auto;
    position: relative;
    max-width: 1400px;
}

.sm-section {
    margin: 0 auto;
    position: relative;
    max-width: 1200px;
    flex: 1 1 auto;
}

article {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
}


table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    empty-cells: hide;
}


/*--サイドメニュー--*/
.sm-sidemenu {
    position: relative;
    flex: 0 0 35rem;
    margin-top: 80px;
}


@media(max-width: 1024px) {
    article {
        flex-direction: column-reverse;
    }

    .sm-sidemenu {
        margin: 0px auto;
        align-content: center;
        width: 80%;
    }
}


/*--KV--*/

.kv {
    position: relative;
    margin: 30px 0;
    display: flex;
    flex-direction: row;
}

.kv img {
    width: 45%;
    object-fit: cover;
    overflow: hidden;
}

.kv_text {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kv_text h2 {
    margin: 0;
    background-image: linear-gradient(to right,
            rgb(57, 185, 121) 60%, transparent);
    color: var(--color-white);
    padding: 10px;
    width: 60%;
}

.kv_text>p {
    font-size: 2.4rem;
    margin: 15px 0;
}

.kv_text>ul {
    list-style: none;
    font-size: 2.8rem;
    padding: 10px;
    background-color: var(--color-palegray);
    margin: 0;
}

.kv_text>ul>li {
    margin: 10px;
    padding: 8px;
    background-color: var(--color-white);
}

.kv_text>ul>li::before {
    position: relative;
    font-family: FontAwesome;
    content: "\f00c";
    color: var(--color-skyblue);
    font-size: 1.8rem;
    margin-right: 10px;
    padding: 0 1.5px;
    border: solid 2px var(--color-skyblue);
    border-radius: 3px;
    top: -4px;
}

@media(max-width: 1024px) {
    .kv {
        flex-direction: column;
    }

    .kv img {
        width: 80%;
        margin: 0 auto 30px;
    }
}


.kv-youtube-box {
    display: flex;
}

.youtube-text-content {
    display: flex;
    flex-direction: column;
    width: 800px;
    margin-right: 20px;
}

.youtube-text-box {
    background-color: var(--color-palegray);
    padding: 25px;
}

.youtube-text1,
.youtube-text2,
.youtube-text3 {
    width: 100%;
}

.youtube-text1 {
    display: flex;
    font-size: 2.6rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.youtube-text1>p {
    background-color: var(--color-white);
    border: 8px solid var(--color-green);
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    margin: 0;
}

.youtube-text2 {
    background-color: var(--color-white);
    padding: 15px;
    text-align: center;
    font-size: 2.8rem;
}

.youtube-text3 {
    text-align: right;
    margin: 10px 0;
}

.youtube-text3>a {
    color: var(--color-black);
    text-decoration: none;
    transition: all 0.2s;
}

.youtube-text3>a:hover {
    color: var(--color-yellow);
}

.youtube-text1>span {
    background-color: var(--color-green);
    align-content: center;
    margin: auto 0;
    height: 10px;
    width: 30px;
}

.kv-youtube {
    width: 600px;
    aspect-ratio: 16/9;
    display: flex;
}

.kv-youtube iframe {
    border-radius: 5px;
    width: 100%;
    height: auto;
}

@media(max-width: 1024px) {

    .kv-youtube-box {
        flex-direction: column;
        align-items: center;
    }

    .youtube-text3 {
        text-align: left;
    }

    .youtube-text3>a>i {
        transform: rotate(90deg);
    }

    .kv-youtube {
        width: 90%;
        margin-bottom: 30px;
    }
}






/*--ラインナップ--*/

.text1 {
    margin: 10px 0;
    font-size: 1.8rem;
}

.lineup-label {
    display: inline-block;
    background-image: linear-gradient(to right,
            rgb(107, 197, 167) 60%, transparent);
    padding: 10px;
    margin: 20px 0 10px;
    color: var(--color-white);
}

.lineup-label::before {
    content: "●";
}

.lineup-label::after {
    content: "";
    margin: 0 60px;
}

.lineup-box {
    display: flex;
    margin: 10px auto 20px;
    padding: 18px;
    width: 95%;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-palegray);
}

.item_box {
    box-sizing: border-box;
}

.item_box {
    position: relative;
    width: 45%;
}

.item_link {
    display: block;
}

.item_content {
    position: relative;
    overflow: hidden;
    height: 280px;
    background-color: var(--color-white);
}

.item_image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.item_image img {
    height: 100%;
    width: 100%;
}

.item_mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
}

.item_mask-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    font-size: 2rem;
    text-align: center;
    color: var(--color-white);
    transform: translateY(-50%);
}

.item_text {
    margin-top: 10px;
    text-align: center;
}

.item_box .item_link:hover .item_mask {
    opacity: 1;
}

/* -mask-from-left */
.item_box.-mask-from-left .item_mask {
    left: -100%;
    transition: left 0.4s ease, opacity 0.4s ease;
}

.item_box.-mask-from-left .item_link:hover .item_mask {
    left: 0;
}


.lineup-box table {
    border-collapse: collapse;
    height: 280px;
    width: 56%;
    text-align: center;
}

.lineup-box th {
    padding: 0 5%;
}

.lineup_title > th:nth-child(2)  {
    text-align: right;
} 

.lineup_title {
    background-color: var(--color-mosgreen);
    color: var(--color-white);
}

.lineup_sub>th {
    background-color: var(--color-white);
}

.lineup_sub2 td {
    height: 35px;
    background-color: var(--color-palegreen);
    border-left: solid 1px var(--color-white);
    text-align: center;
}

.lineup_data td {
    height: 55px;
    background-color: var(--color-white);
    border-left: solid 1px var(--color-whiteline);
}

.lineup_data td:nth-of-type(1),
.lineup_sub2 td:nth-of-type(1) {
    border: none;
}

.lineup_sub,
.lineup_sub2,
.lineup_data {
    border-right: 1px solid var(--color-whiteline);
}

.lineup_title>th,
.lineup_sub>th {
    font-size: 2.6rem;
}

.lineup_sub2>td,
.lineup_data>td {
    font-size: 2.2rem;
}

@media(max-width: 1024px) {
    .lineup-box {
        flex-direction: column-reverse;
        width: 80%;
    }

    .lineup-box>table {
        width: 100%;
    }

    .item_box {
        width: 100%;
    }

    .item_content {
        height: 370px;
    }

}



/*--スクリュー径ごとの能力試算--*/

.screw-ability {
    background-color: var(--color-palegray);
    margin-top: 30px;
    padding: 20px;
}

.ability-title {
    font-size: 2.4rem;
    margin-bottom: 5px;
}

.ability-title>span {
    font-size: 1.5rem;
    margin: 0 10px;
}

.screw-ability th,
.screw-ability td {
    text-align: center;
    padding: 20px;
}

.screw-ability th {
    background-color: var(--color-mosgreen);
    color: var(--color-white);
}

.ability-size td {
    background-color: var(--color-palegreen);
    border-left: solid 1px var(--color-white);
}

.ability-power td {
    background-color: var(--color-white);
    border-left: solid 1px var(--color-whiteline);
}

.space-row td {
    padding: 0px;
    height: 10px;
}


.ability-size td:nth-of-type(1),
.ability-power td:nth-of-type(1) {
    font-weight: 600;
    border: none;
}





/*--取り扱いのある原料--*/

.materials {
    background-color: var(--color-palegray);
    margin-top: 30px;
    padding: 20px;
}

.materials table {
    border-collapse: collapse;
}

.materials table th:first-child {
    width: 100px;
}

.materials>table>tbody:not(:first-of-type)::before {
    content: " ";
    display: block;
    height: 3px;
}

.material-title>th,
.material-title>td,
.material-data>th,
.material-data>td {
    text-align: center;
    padding: 3px 10px;
    height: 60px;
}

.material-title>th {
    background-color: var(--color-mosgreen);
    border-bottom: solid 1px var(--color-white);
    color: var(--color-white);
}

.material-title>td {
    background-color: var(--color-palegreen);
    border-left: solid 1px var(--color-whiteline);
    font-size: 2rem;
}

.material-data>th {
    background-color: var(--color-mosgreen);
    color: var(--color-white);
}

.material-data>td {
    background-color: var(--color-white);
    border: solid 1px var(--color-whiteline);
    font-size: 1.7rem;
}

/*--モーダル設定--*/
* {
    box-sizing: border-box;
}


/* ボタン */
.open-modal {
    background: transparent;
    width: 100%;
    height: 100%;
}

/*
.material-data td:hover {
    background-color: var(--color-palegray);
}
*/
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* モーダル背景 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(79, 79, 79, 0.5);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* モーダル表示状態 */
.modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* モーダルの中身*/
.modal-content {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    width: 80vw;
    max-width: 1000px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal-content img {
    width: 50%;
}

/* アニメーション*/
.modal.active .modal-content {
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*--ここまでモーダル設定--*/





/*--ユニット構成--*/
.unit {
    position: relative;
}

.unit-title {
    display: inline-block;
    font-size: 3.2rem;
    margin: 15px 0;
    padding: 3px 8px;
    border-bottom: solid 3px var(--color-mosgreen);
}

.unit-title span {
    margin-right: 5px;
    color: var(--color-mosgreen);
    font-size: 2.6rem;
}

.unit_screw {
    position: relative;
    margin-bottom: 50px;
}

.unit_screw-data {
    display: flex;
}

.unit_screw-text p {
    border: 2px solid var(--color-mosgreen);
    margin: 10px;
    padding: 10px;
}

.unit_screw-text img {
    width: 500px;
}

.unit_screw-img img {
    width: 750px;
}


.unit_spec {
    position: relative;
    display: flex;
    justify-content: space-between;
}


.unit_spec-data-img {
    position: relative;
    margin-top: 80px;
}

.unit_spec-data-img img {
    display: block;
    width: 480px;
    height: auto;
    flex-shrink: 0;
}

.unit_spec-data {
    position: relative;
    margin-right: 10px;
}

.unit_spec-data table {
    table-layout: fixed;
    border-collapse: collapse;
}

.unit_spec-data td,
.unit_spec-data th {
    border: solid 1px;
    font-size: 2.2rem;
}

.unit_spec-data th {
    width: 190px;
    padding: 5px 10px;
    background-color: var(--color-green);
    color: var(--color-white);
}

.unit_spec-data td {
    padding: 10px;
    border-color: var(--color-gray);
}


@media(max-width: 1024px) {

    .unit_screw-data {
        flex-direction: column;
        align-items: center;
    }

    .unit_screw-text img {
        width: 80%;
        display: block;
        margin: 0 auto;
    }

    .unit_spec {
        flex-direction: column;
    }

    .unit_spec-data-img {
        margin: 30px auto;
    }

    .unit_spec-data-img img {
        width: 90%;
        margin: 10px auto;
    }
}