/* ===========================================
 * グローバル
 * ======================================== */
.mt8 {
    margin-top: 8px;
}

.mt16 {
    margin-top: 16px;
}

.mt32 {
    margin-top: 32px;
}


/* メインビジュアル
-------------------------*/
.top-visual-download-product-document .top-visual {
  margin-bottom: 100px;
}
.top-visual-download-product-document .tp-ttl-02 {
  margin-bottom: 1em;
}

@media screen and (max-width: 640px) {
  .top-visual-download-product-document .tp-ttl-02:first-child {
    margin-bottom: 0;
  }
}

/* ポップアップ
-------------------------*/
#download-product-document_howto_btn.open {
  background: #d9492b;
  color: #fff;
  border-radius: 5px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0.8em 1em;
  width: 10em;
}
#download-product-document_howto_btn.open img {
  margin-right: 4px;
  height: auto;
  width: 20px;
}
#download-product-document_howto_btn.open:hover {
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  filter: alpha(opacity = 70);
  opacity: 0.7;
}
.popup {
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999999;
}
.popup.view {
  display: flex;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}
.popup_inner {
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(0,0,0,.25);
  display: inline-block;
  padding: 3em;
  position: relative;
  width: 60%;
}
.popup_title {
  color: #d9492b;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
}
.popup_body .txt_indent {
  text-indent: -1em;
  margin: 0.5em 0 0.5em 1em;
}
.close {
  background: #d9492b;
  color: #fff;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 0;
  top: 0;
  height: 40px;
  width: 40px;
}
.close img {
  height: 20px;
  width: 20px;
}
.close:hover {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  filter: alpha(opacity = 70);
  opacity: 0.7;
}

@media screen and (max-width: 640px) {
  #download-product-document_howto_btn.open {
    font-size: 12px;
  }
  #download-product-document_howto_btn.open img {
    width: 18px;
  }
  .popup_inner {
    padding: 1.5em;
    width: 80%;
  }
  .popup_title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .popup_body {
    font-size: 14px;
  }
  .close {
    height: 30px;
    width: 30px;
  }
  .close img {
    height: 20px;
    width: 20px;
  }
}


/* ダウンロードボタン
-------------------------*/
.download-btn {
    background: #D9492B;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 1.8;
    outline: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.download-btn:hover {
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    filter: alpha(opacity = 70);
    opacity: 0.7;
}

.download-btn img {
    width: 24px;
    margin-left: 4px;
}

/* ===========================================
 * 全体
 * ======================================== */
.main-group {
    margin-bottom: 0;
}

/* ===========================================
 * メインソート
 * ======================================== */
.main_sort_container ul {
    display: flex;
    align-items: center;
}

.main_sort_container ul li {
    box-sizing: border-box;
    width: calc(100% / 3);
}

.main_sort_container ul li a {
    background: #F8F8F8;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    height: 62px;
    width: 100%;
}

@media screen and (max-width: 640px) {
}

/* ===========================================
 * サブソート
 * ======================================== */
.sub_sort_container {
    background: #F8F8F8;
    width: 90%;
    margin: 0 auto;
    padding: 16px;
    margin-top: 32px;
}

.sub_sort_container p {
    font-weight: bold;
    font-size: 14px;
}

.sub_sort_container .sub_category_list {
    display: none;
    column-gap: 32px;
    margin-top: 8px;
}

.sub_sort_container .sub_category_list li a {
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

/* ===========================================
 * カラム変更
 * ======================================== */
.change_cloumn_container {
    width: 90%;
    margin: 0 auto;
    margin-top: 16px;
    display: flex;
    gap: 32px;
    justify-content: flex-end;
}

.change_cloumn_container p {
    font-weight: bold;
}

.change_cloumn_container ul {
    display: flex;
    gap: 16px;
}

.change_cloumn_container ul li a {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.change_cloumn_container ul li a .icon {
    width: 16px;
    height: 16px;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.change_cloumn_container ul li a .icon span {
    background: #666;
    display: block;
    box-sizing: border-box;
}

/* ===========================================
 * ダウンロード資材一覧
 * ======================================== */

/* ダウンロード資材一覧
-------------------------*/
.otherproducts .main_category {
    display: none;
    width: 100%;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 16px;
}

/* ダウンロード資材
-------------------------*/
.otherproducts__Blk {
    padding: 40px 20px;
    position: relative;
    background: #F8F8F8;
    text-align: center;
    box-sizing: border-box;
}

.otherproducts__Blk img.mt30 {
    margin: 30px auto 42px;
}

/* ダウンロードリストに追加ボタン
-------------------------*/
/*.add-download-list {
    color: #D9492B;
    cursor: pointer;
    background: transparent;
    outline: none;
    font-weight: bold;
}

.add-download-list:hover {
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    filter: alpha(opacity = 70);
    opacity: 0.7;
}*/
.add-download-list {
    background: #D9492B;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 16px;
    line-height: 1.5;
    outline: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.otherproducts.column4 .add-download-list {
    margin: 8px auto 0;
}

.add-download-list:hover {
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    filter: alpha(opacity = 70);
    opacity: 0.7;
}

.add-download-list img {
    width: 5.2vw;
    max-width: 18px;
}

/* ===========================================
 * モーダル（カート）
 * ======================================== */

/* モーダル全体
-------------------------*/
.download-list-modal {
    display: none;
    position: fixed;
    top: 32px;
    right: 32px;
    width: 360px;
    height: 400px;
    border: 2px solid #D9492B;
    border-radius: 4px;
    background: #fff;
    z-index: 1000000;
}

/* モーダルヘッダー
-------------------------*/
.modal-head {
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-head p {
    font-size: 14px;
    color: #D9492B;
    font-weight: bold;
}

/* モーダル開閉選択 */
.modal-allow-icon {
    border-left: 2px #D9492B solid;
    border-bottom: 2px #D9492B solid;
    width: 8px;
    height: 8px;
    transform: translateY(-6px) rotate(-45deg);
    cursor: pointer;
    user-select: none;
}

/* モーダルメイン
-------------------------*/
.modal-body {
    height: 300px;
    background: #F8F8F8;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: scroll;
}

/* ダウンロード資材 */
.download-list-modal-ul li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-list-modal-ul li:not(:first-child) {
    margin-top: 32px;
}

.download-list-modal-li-img {
    width: 20%;
    display: inline-block;
}

.download-list-modal-li-p {
    font-size: 14px;
    width: 60%;
    display: -webkit-box; /* 必須 */
    -webkit-box-orient: vertical; /* 必須 */
    -webkit-line-clamp: 3; /* 行数を制限 */
    overflow: hidden; /* はみ出た部分を非表示 */
}

/* 削除ボタン */
.download-list-delete {
    width: 24px;
    cursor: pointer;
}

/* モーダルフッター
-------------------------*/
.modal-foot {
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-foot span {
    font-size: 14px;
}

.modal-foot span img {
    width: 24px;
    margin-right: 4px;
}

/* すべて削除ボタン */
.download-list-all-delete {
    cursor: pointer;
}

.download-list-all-delete:hover {
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    filter: alpha(opacity = 70);
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .download-list-modal {
        top: 32px;
        right: 10px;
        width: calc(100vw - 24px);
        height: 300px;
    }

    .modal-body {
        height: 200px;
    }
}



/* ===========================================
 * モーダル（資材ページのポップアップ）
 * ======================================== */

/* モーダル全体
-------------------------*/
.product-image-modal {
    place-items: center;
    width: 100vw;
    height: 100vh;
    z-index: 1000002;
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    opacity: 0;
    transition: .2s all;
}

.product-image-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.product-image-modal_container {
    position: relative;
    display: grid;
    place-items: center;
    width: 500px;
    height: 500px;
    background: #F8F8F8;
    border: 1px solid #D9492B;
}

.product-image-modal_close_btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.product-image-modal_close_btn::before {
    position: absolute;
    content: '';
    top: 50%;
    width: 22px;
    height: 1px;
    background: #666;
    transform: rotate(45deg);
}

.product-image-modal_close_btn::after {
    position: absolute;
    content: '';
    top: 50%;
    width: 22px;
    height: 1px;
    background: #666;
    transform: rotate(-45deg);
}

/* ===========================================
 * モーダル（背景）
 * ======================================== */
.modal-bg {
    width: 100vw;
    height: 100vh;
    background: #000;
    opacity: .5;
    z-index: 1000001;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
}

.modal-bg.is-open {
    display: block;
}

/*---------------------------
  
 カラム選択時

---------------------------*/
.otherproducts.column4 .main_category {
    column-gap: calc((100% - (100% / 4 - 16px) * 4) / 3);
}

.otherproducts.column4 .otherproducts__Blk {
    width: calc(100% / 4 - 16px);
    display: flex;
    flex-direction: column;
}

.otherproducts.column4 .otherproducts__Blk .left {
    height: 60%;
}

.otherproducts.column4 .otherproducts__Blk .left:hover {
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    filter: alpha(opacity = 70);
    opacity: 0.7;
}

.otherproducts.column4 .otherproducts__Blk .right {
    height: 40%;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.otherproducts.column2 .otherproducts__Blk {
    width: calc(100% / 2 - 16px);
}

.otherproducts.column1 .otherproducts__Blk {
    width: 100%;
}

.change_cloumn_container ul li a.is-active {
    color: #D9492B;
}

.change_cloumn_container ul li a.is-active .icon span {
    background: #D9492B;
}

@media screen and (max-width: 768px) {
    #column4_square {
        display: none;
    }
}

@media screen and (max-width: 640px) {
    /* .change_cloumn_container {
        display: none;
    } */
}

.otherproducts.column2 .main_category .otherproducts__Blk,
.otherproducts.column1 .main_category .otherproducts__Blk {
    display: flex;
    gap: 32px;
}

.otherproducts.column2 .main_category .otherproducts__Blk .right,
.otherproducts.column1 .main_category .otherproducts__Blk .right {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1 auto;
    align-self: center;
}

.otherproducts.column2 .main_category .otherproducts__Blk .right .form_content,
.otherproducts.column1 .main_category .otherproducts__Blk .right .form_content {
    margin-top: auto;
}

@media screen and (max-width: 768px) {

    .otherproducts.column4 .main_category {
        column-gap: 32px;
    }

    .otherproducts.column4 .otherproducts__Blk {
        width: calc(100% / 2 - 16px);
    }

    .otherproducts.column4 .main_category .otherproducts__Blk {
        display: flex;
        flex-direction: row;
        gap: 32px;
    }

    .otherproducts.column4 .main_category .otherproducts__Blk .right {
        text-align: left;
        display: flex;
        flex-direction: column;
        flex: 1 auto;
        padding-top: 0;
        height: auto;
    }

    .otherproducts.column4 .main_category .otherproducts__Blk .right .form_content {
        margin-top: auto;
    }

    .otherproducts.column4 .otherproducts__Blk .left {
        height: auto;
    }
}

@media screen and (max-width: 640px) {

    /* .otherproducts.column4 .otherproducts__Blk,
    .otherproducts.column2 .otherproducts__Blk {
        width: 100%;
    } */
    .otherproducts.column2 .main_category {
        column-gap: 16px;
    }

    .otherproducts.column2 .otherproducts__Blk {
        padding: 30px 20px;
        width: calc(100% / 2 - 8px);
    }

    .otherproducts.column4 .main_category .otherproducts__Blk,
    .otherproducts.column2 .main_category .otherproducts__Blk,
    .otherproducts.column1 .main_category .otherproducts__Blk {
        display: block;
    }

    .otherproducts.column4 .main_category .otherproducts__Blk .right,
    .otherproducts.column2 .main_category .otherproducts__Blk .right,
    .otherproducts.column1 .main_category .otherproducts__Blk .right {
        margin-top: 16px;
    }

    .otherproducts.column4 .main_category .otherproducts__Blk .right p,
    .otherproducts.column2 .main_category .otherproducts__Blk .right p,
    .otherproducts.column1 .main_category .otherproducts__Blk .right p {
        min-height: 56px;
    }

    .download-btn {
        width: 100%;
    }

    .add-download-list {
        font-size: 3.2vw;
        margin-left: auto;
        margin-right: auto;
        padding: 2vw 2vw;
        width: 80%;
    }


    .otherproducts.column2 .download-btn,
    .otherproducts.column2 .add-download-list {
        /*font-size: 12px;*/
        font-size: 3vw;
    }

    .otherproducts.column2 .download-btn img {
        /*width: 16px;*/
        width: 4.0vw;
        max-width: 16px;
    }
}

/*---------------------------
  
 ダウンロードリストに追加ボタン、活性非活性
 
    1.対象のダウンロード資材が選択された場合、非活性
    2.10件以上選択された場合、非活性
    3.未選択または選択解除された場合、活性

---------------------------*/
.add-download-list.is-disabled {
    pointer-events: none;
    color: #cbcbcb;
    cursor: auto;
}

.add-download-list.is-disabled-all {
    color: #cbcbcb;
}

/*---------------------------
  
 モーダル開閉
 
    1.ダウンロード資材が選択された場合、モーダル表示
    2.ダウンロード資材が選択されていない場合、モーダル非表示

---------------------------*/
.download-list-modal.is-active {
    display: block;
}

/*---------------------------
  
 モーダル内表示非表示
 
    1.モーダルヘッダーの矢印が上向きになる
    2.モーダルメインとモーダルフッターが非表示になる

---------------------------*/
.modal-allow-icon.is-close {
    transform: rotate(135deg);
}

.modal-body.is-close {
    display: none;
}

.download-list-modal.is-close {
    height: 50px;
}

.modal-foot.is-close {
    display: none;
}

/* ===========================================
 * JS適用
 * ======================================== */

/*---------------------------
  
 メインソート選択時

---------------------------*/
.main_sort_container ul li a.is-active {
    background: #D9492B;
    color: #fff;
}

.main_sort_container p {
    font-size: 14px;
    color: #717171;
    margin-top: 8px;
}

.otherproducts .main_category.is-active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.sub_sort_container .sub_category_list.is-active {
    display: flex;
    flex-wrap: wrap;
}

/*---------------------------
  
 サブソート選択時

---------------------------*/
.sub_sort_container .sub_sort_link.is-active {
    color: #D9492B;
}

.otherproducts.column4 .otherproducts__Blk.is-hidden,
.otherproducts.column2 .otherproducts__Blk.is-hidden,
.otherproducts.column1 .otherproducts__Blk.is-hidden {
    display: none;
}