/*+CSV取込（商品ＣＳＶ取込）CSS*/
table,ul, ul li{
    color: black;
    padding: 0;
    margin: 0;
}

table .div_flex{
    width: 100%;
}

.button{
    all: unset;
}

.button:hover{
    background-color: unset;
}


/*+h1:商品ＣＳＶ取出・取込*/
/*+商品ＣＳＶ取出*/
/**商品情報CSVの出力（ダウンロード） csv_export*/
.csv_export .div_1{
    width: 100%;
    margin-bottom: 2em;
}

.csv_export .div_1 p{
    width: 95%;
    margin: 0 auto;
    margin-bottom: 0.5em;
}

/*出力アイコン*/
.csv_export .div_1 p .fa-file-text-o{
    font-size: 25px;
    margin: 0.3em;
}

/*img 商品リスト画面のCSVダウンロードアイコン*/
#img_csv_export_1{
    width: 98%;
}

.csv_export .div_2{
    width: 95%;
    margin: 0 auto;
}

.csv_export .div_2 p{
    width: 30%;
}

/*img ダウンロードしたファイルは「GM+日付.csv」のファイル名で保存されます。*/
#img_csv_export_2{
    flex: 0.95;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

/*+商品ＣＳＶ取込*/
/**CSV取込前の準備 csv_import_preparation*/
.csv_import_preparation > p:first-of-type{
    width: 95%;
    margin: 0 auto;
    margin-bottom: 1.5em;
}

/*//GoogleスプレッドシートでCSVファイルを編集・保存する手順 g_spread_sheet*/
.g_spread_sheet h4{
    width: 95%;
    font-size: 20px;
    color: black;
    margin: 0 auto;
    margin-bottom: 1em;
}

.g_spread_sheet h4 span{
    display: inline-block;
    font-size: 16px;
    font-weight: normal;
}

/*縦の区切り線*/
.divider{
    display: inline-block;
    width: 1.5px;
    border: 1.5px dashed #D8DCDE;
}

/*==① ② csv_import_preparation div_1*/
.csv_import_preparation .div_1{
    width: 95%;
}

.csv_import_preparation .div_1 p{
    margin-bottom: 0.5em;
}

/*① Googleスプレッドシートを開きます。 g_spread_sheet d_1*/
.g_spread_sheet .div_1 .d_1 img{
    width: 90%;
}


/*② ［ファイル］ → ［インポート］ を選択します。g_spread_sheet d_2*/
.g_spread_sheet .div_1 .d_2 img{
    width: 35%;
}

/*==③ ④ csv_import_preparation div_2*/
.csv_import_preparation .div_2{
    width: 95%;
}

.csv_import_preparation .div_2 p{
    margin-bottom: 0.5em;
}

/*③ 初期表示では［マイドライブ］が選択されています。g_spread_sheet div_2 d_1*/
.csv_import_preparation .div_2 .d_1 img{
    width: 90%;
}

/*④ 中央の参照をクリックすると、～ g_spread_sheet div_2 d_2*/
/*参照*/
.csv_import_preparation .div_2 .d_2 .button_1{
    display: inline-block;
    width: 4.5em;
    height: 35px;
    line-height: 35px;
    font-size: 15px;
    text-align: center;
    color: white;
    background-color: #0B57D0;
    border-radius: 20px;
    margin: 0 0.3em;
}

/*開く*/
.csv_import_preparation .div_2 .d_2 .button_2{
    display: inline-block;
    width: 7em;
    height: 30px;
    line-height: 30px;
    font-size: 15px;
    text-align: center;
    border: 1px solid #006BBE;
    border-radius: 5px;
    margin-right: 0.3em
}

.csv_import_preparation .div_2 .d_2 img{
    width: 95%;

}

.csv_import_preparation .div_2 .d_2 .img_zoom {
    display: block;
    border: none;
    box-shadow: none;
}

.csv_import_preparation .div_2 .d_2 .img_zoom:hover {
    outline: 2px solid #78D1F3;
    box-shadow: none;
}

/*==⑤ 「テキストを数値、日付、数式に変換する」のチェックを外し～ g_spread_sheet div_3*/
.g_spread_sheet .div_3 p{
    width: 50%;
}

/*データをインポート*/
.g_spread_sheet .div_3 p .button{
    display: inline-block;
    width: 12.5em;
    height: 35px;
    line-height: 35px;
    font-size: 15px;
    text-align: center;
    letter-spacing: 0.05em;
    font-weight: 900;
    color: white;
    background-color: #146C2E;
    border-radius: 3px;
    margin-right: 0.3em;
}

.g_spread_sheet .div_3 img{
    width: 37.5%;
    margin-left: 2.5%;
}

/*==⑥ インポートしたCSVファルを編集します。 g_spread_sheet div_4*/
.g_spread_sheet .div_4{
    width: 95%;
    margin: 0 auto;
}

.g_spread_sheet .div_4 > p:first-of-type{
    margin-bottom: 1em;
}

.g_spread_sheet .div_4 .div_flex{
    width: 100%;
    justify-content: space-between;
}

.g_spread_sheet .div_4 div{
    width: 29%;
    text-align: center;
}

.g_spread_sheet .div_4 div p{
    font-size: 15px;
}

/*右向き矢印*/
.g_spread_sheet .div_4 div .arrow{
    flex: 1;
    display: flex;
    align-items: center;
}

.g_spread_sheet .div_4 div .arrow::before{
    content: "→";
    font-size: 30px;
    font-weight: 900;
    color: #4F4F4F;
    margin: 0 auto;
}

/*==⑦ 編集が完了したら、［ファイル］ → ［ダウンロード］ → ［カンマ区切り形式（.csv）］～ g_spread_sheet div_5*/
.csv_import_preparation .div_5 p{
    width: 50%;
}
.csv_import_preparation .div_5 img{
    width: 35%;
    margin-left: 2.5%;
}

.csv_import_preparation .div_5 .img_zoom {
    display: block;
    border: none;
    box-shadow: none;
}

.csv_import_preparation .div_5 .img_zoom:hover {
    outline: 2px solid #78D1F3;
    box-shadow: none;
}

/**CSV取込設定 specify_import_file*/
/*最初の画像 tr_img td*/
.tr_img td p{
    width: 100%;
    margin-bottom: 0.5em;
}
/*img CSV取込設定画面*/
#img_specify_import_file{
    width: 43%;
    margin-bottom: 1em;
}

.specify_import_file th{
    width: 15%;
}

/*==対象ファイル target_file*/
.target_file td .open_modal{
    color: #3747c2;
    transition: 0.2s;    
}

.target_file td .open_modal:hover{
    color: #72dbfa;
}

/*ファイルを選択*/
.target_file td .button_1{
    display: inline-block;
    width: 8.5em;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-family: FontAwesome;
    background-color: #EFEFEF;
    border: 1px solid #767676;
    border-radius: 3px;
    margin-right: 0.2em;
}

/*開く*/
.target_file td .button_2{
    display: inline-block;
    width: 7em;
    height: 30px;
    line-height: 30px;
    font-size: 15px;
    text-align: center;
    border: 1px solid #006BBE;
    border-radius: 5px;
    margin-right: 0.2em
}

/*==CSVヘッダ csv_header*/
.csv_header td .div_flex{
    width: 95%;
    justify-content: space-between;
    margin: 1em auto;
}

.csv_header td .div_flex div{
    width: 48%;
}

.csv_header td .div_flex h3{
    font-size: unset;
    font-weight: 400;
    margin: 0;
    margin-bottom: 0.5em;
}

/*h3左丸*/
.csv_header td .div_flex h3::before{
    content: "●";
    display: inline-block;
    font-size: 20px;    
}

.csv_header td .div_flex div img{
    width: 100%;
}

/*==商品コード重複時の扱い duplicate_product_code*/
.duplicate_product_code td > p:first-of-type{
    margin-bottom: 1em;
}

.duplicate_product_code td ul{
    width: 97%;
    margin: 0 auto;
}

.duplicate_product_code td ul li{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5em;
}

.duplicate_product_code td ul li .spa_1{
    width: 13.5em;
    display: inline-flex;
    align-items: baseline;
}

/*・*/
.duplicate_product_code td ul li .spa_1::before{
    content: "・";
    font-size: 20px;
    font-weight: 900;
}

/*・・・*/
.duplicate_product_code td ul li .spa_1::after{
    content: "・・・";
    margin: 0 0 0 auto;
}

.duplicate_product_code td ul li p{
    flex: 0.99;
}

.duplicate_product_code td ul li .spa_2{
    text-decoration: underline;
    text-decoration-color: red;
}

/*==エラー以外 non_error*/
.non_error p{
    margin-bottom: 1em;
}

.non_error td ul{
    width: 97%;
    margin: 0 auto;
}

.non_error td ul li{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5em;
}

.non_error td ul li .spa_1{
    width: 11em;
    display: inline-flex;
    align-items: baseline;
}

/*・*/
.non_error td ul li .spa_1::before{
    content: "・";
    font-size: 20px;
    font-weight: 900;
}

/*・・・*/
.non_error td ul li .spa_1::after{
    content: "・・・";
    margin: 0 0 0 auto;
}

.non_error td ul li .spa_2{
    flex: 0.99;
}

/*+CSVフォーマット*/
/**商品ＣＳＶフォーマット csv_format*/
.csv_format{
    width: 100%;
}

.csv_format .com_h4_th{
    font-weight: 400;
}

.csv_format .com_h4_th .spa_1{
    display: inline-block;
    width: fit-content;
}

.csv_format .com_h4_th .spa_2{
    display: inline-block;
    flex: 1;
    padding-left: 2em;
}

/*No*/
.csv_format .th_1{
    width: 5%;
}

/*フィールド名*/
.csv_format .th_2{
    width: 18%;
}

/*桁数*/
.csv_format .th_3{
    width:11%;
}

/*備考*/
.csv_format .th_4{
    width: 66%;
}

/*備考以外中央寄せ*/
.csv_format td:not(.csv_format td:last-of-type){
    text-align: center;
}

/*右向き矢印 right_arrow*/
.right_arrow{
    display: inline-block;
    width: 2em;
    text-align: center;
}

.right_arrow::before{
    content: "→";
    color: black;
    font-size: 16px;
}

/*__拡大画像*/
.modal{
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0,0,0,0.8);

    /* スクロール可能にする */
    overflow: auto;
    padding: 30px;
    box-sizing: border-box;
}

/* 拡大した画像を中央配置 */
.modal div{
    width: fit-content;
    margin: auto;
    text-align: center;
}

.modal img{
    max-width: 85vw;
    max-height: 85vh;
}

/*この画像(#img_g_spread_sheet_2)だけCSSで小さく表示*/
.modal img .small_modal_img{
    max-width: 60vw;
    max-height: 80vh;
}
