/*+基本設定：商品画像CSS*/
/*//設定リセット*/
/*main.css labelのチェックボックスを見えなくす*/
input[type="checkbox"]+label:before{
    display: none;
}

/*main.css labelのpadding消す*/
input[type="checkbox"]+label, input[type="radio"]+label{
    padding: 0;
}

/*+商品画像 product_image*/
/**基本設定にて設定を変更する product_image div_1*/
.product_image .div_1 p{
    width: 100%;
    padding-left: 1em;
    margin-bottom: 1em;
}

.product_image .div_1 .d_1 .img_flex{
    width: 95%;
    position: relative;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_1.png"]{
    width: 57%;
    height: fit-content;
}

/*疑似右向き矢印*/
.product_image .div_1 .d_1 .img_flex::before{
    content: "→";
    display: inline-block;
    font-size: 40px;
    font-weight: bold;
    color: #FF0000;
    position: absolute;
    top: -2.5%;
    left: 32%;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_2.png"]{
    width: 25%;
    border: 4px solid #FF0000;
    position: absolute;
    left: 37%;
}

.product_image .div_1 .d_2 p{
    width: 100%;
    margin: 1em 0;
}

.product_image  .div_1 .d_2 img{
    width: 85%;
}

/**画像URLを設定する product_image div_2*/
.product_image .div_2 > p:first-of-type{
    width: 100%;
    padding-left: 1em;
    margin-bottom: 1em;
}

/*プレビュー*/
.product_image .div_2 > p:first-of-type span {
    display: inline-block;
    width: 6em;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-family: "ＭＳ Ｐゴシック", sans-serif;;
    background-color: #EFEFEF;
    border: 2px solid #B5B5B5;
    border-radius: 4px;
    margin: 0 0.3em;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_4.png"]{
    width: 85%;
}

/*__トグルメニュー toggle_1*/
.product_image .div_2 .d_1{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    margin-top: 1em;
    margin-bottom: 2em;
}

.product_image .div_2 .d_1 p{
    width: 40%;
    padding-left: 2em;
}

.product_image .div_2 .d_1 img{
    width: 53%;
}

.product_image .div_2 .d_2{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    margin-bottom: 2em;
}

.product_image .div_2 .d_2 p{
    width: 35%;
    padding-left: 2em;
}

.product_image .div_2 .d_2 img{
    width: 40%;
    margin-left: 8.5%;
}

/*線 幅 位置*/
.product_image .div_2 .com_border{
    width: 95%;
    padding-bottom: 0;
    margin: 0 auto;
    margin-bottom: 2em;
}

.product_image .div_2 .com_h5{
    border-bottom: none;
}

/*不足分border*/
.product_image .div_2 h4{
    position: relative;
}

.product_image .div_2 h4::before{
    content: "";
    display: inline-block;
    width: 100.05%;
    height: 0;
    border-top: 1px solid #D8DCDE;
    position: absolute;
    bottom: -1px;
    left: -0.05%;
}

/* チェックが入ったら（クリックしたら）開く*/
.product_image .div_2 .toggle_1:checked ~ .div_toggle {
    max-height: 1100px; /* table全体表示 pxじゃないと滑らかに動かない*/
}

/*メニュー上下の速さ*/
.product_image .div_2 .div_toggle{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out;
}

/* h4をクリック可能にする*/
.product_image .div_2 .label_h4{
    cursor: pointer;
    display: block;
    width: auto;
}

.product_image .div_2 .label_h4 h4{
    background-color: #78d1f3;
    margin-bottom: 0;
}

/* ▼ ▲ の切り替え */
.product_image .div_2 .toggle_1 + .label_h4 h4::after {
    content: " ▼";
    font-size: 25px;
}

.product_image .div_2 .toggle_1:checked + .label_h4 h4::after {
    content: " ▲";
    font-size: 25px;
}

.product_image .div_2 .d_3 p{
    width: 100%;
    padding-left: 1em;
}

.product_image .div_2 .d_3 img{
    width: 95%;
    margin: 1em auto;
}

/*登録*/
.product_image .div_2 .d_3 .spa_1{
    display: inline-block;
    width: 5em;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-family: "ＭＳ Ｐゴシック", sans-serif;;
    background-color: #EFEFEF;
    border: 2px solid #B5B5B5;
    border-radius: 4px;
    margin: 0 0.3em; 
}

/*編集ボタン*/
.product_image .div_2 .d_3 .spa_2{
    display: inline-block;
    line-height: 0;
    margin-right: 0.3em;
    margin-left: 0.2em;
}

.product_image .div_2 .d_3 .spa_2::after{
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url(img/product_image_8.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
}

/*//画像URL登録時のエラーについて*/
.product_image .div_3 > p:first-of-type{
    width: 100%;
    padding-left: 1em;
    margin-bottom: 1em;
}

.product_image .div_3 table{
    width: 95%;
    margin: 0 auto;
}

.product_image .div_3 table th{
    width: 28%;
}

/*テキスト左寄せ*/
.product_image .div_3 table .tr_3 th,
.product_image .div_3 table .tr_6 th,
.label_th,
.td_toggle_div p{
    text-align: left;
}

.product_image .div_3 table .tr_3 th,
.product_image .div_3 table .tr_6 th{
    padding: 0 0.3em;
}

/*__トグルメニュー toggle_2*/
/* thをクリック可能にする*/
.label_th {
    width: auto;
    display: block;
    cursor: pointer;
}

/* チェックが入ったら（クリックしたら）開く*/
.toggle_2:checked ~ table .td_toggle_div {
    max-height: 2100px;
}

/*初期状態：閉じる メニュー上下の速さ*/
.td_toggle_div {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/*不要な余白と線*/
.product_image .div_3 table .tr_4 th{
    border-bottom: none;
}

.td_toggle{
    border-top: none;
    border-bottom: none;
    padding-top: 0;
    padding-bottom: 0;
}

/* ▼ ▲ 切り替え */
.label_th::after {
    content: " ▼";
    font-size: 16px;
}

.toggle_2:checked ~ table .label_th::after {
    content: " ▲";
}

/* 開いているときだけtdに線 */
.toggle_2:checked ~ table .td_toggle {
    border-top: 1px solid #D8DCDE;
}

/*th装飾*/
.label_th {
    font-size: unset;
    font-weight: normal;
    color: black;
    background-color: #78d1f3;
    padding-left: 2em;
}

/*td内装飾*/
.td_toggle_div div{
    width: 95%;
    margin: 0 auto;
}

.td_toggle_div .d_1{
    display: flex;
    margin-top: 1em;
    margin-bottom: 2em;
}

.td_toggle_div .d_1 p{
    width: 34%;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_9.png"]{
    width: 40%;
    margin-left: 16%;
}

.td_toggle_div .d_2{
    display: flex;
    margin-bottom: 2em;
}

.td_toggle_div .d_2 p{
    width: 50%;
    margin-bottom: 1em;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_10.png"]{
    margin-left: 0;
}

/*クリックで画像拡大*/
.img_zoom {
    cursor: zoom-in;/*カーソルのデザイン*/
    max-width: 500px;/*拡大前のサイズ*/
}

/* 画像の背景 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 拡大画像 */
.modal img {
    max-width: 90%;
    max-height: 90%;
}

.td_toggle_div .d_3 > p:first-of-type{
    padding-left: 1em;
    margin-bottom: 1em;
}

.td_toggle_div .d_3 .img_flex{
    width: 95%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2em;
    position: relative;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_11.png"]{
    width: 42%;
    height: fit-content;
    margin-left: 0;
}

/*疑似右向き矢印*/
.td_toggle_div .d_3 .img_flex::before{
    content: "→";
    display: inline-block;
    font-size: 50px;
    font-weight: bold;
    color: #FF0000;
    position: absolute;
    top: 13%;
    left: 44%;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_12.png"]{
    width: 50%;
    height: fit-content;
    margin-right: 0;
}

.td_toggle_div .d_3 .div_flex{
    width: 95%;
    display: flex;
    justify-content: space-between;
    padding-bottom: 2em;
}

.product_image .div_3 table .tr_6 th span{
    display: block;
}

.product_image .div_3 table .tr_6 .div_flex{
    display: flex;
    justify-content: space-between;
    margin: 0.5em 0;
}

.product_image .div_3 table .tr_6 .div_flex p{
    width: 59%;
    margin-top: 1em;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_14.png"]{
    width: 35%;
}

/**帳票から画像を登録する product_image div_4*/
.product_image .div_4 .d_1{
    width: 95%;
    display: flex;
    margin: 0 auto;
    margin-bottom: 2em;
}

.product_image .div_4 .d_1 p{
    width: 45%;
}

.product_image .div_4 .d_1 img{
    width: 40%;
    margin-left: 2em;
}

.product_image .div_4 .d_2{
    width: 95%;
    display: flex;
    margin: 0 auto;
}

.product_image .div_4 .d_2 p{
    width: 42%;
}

img[data-original="../../../8-settings/8-1-001/8-1-001-5/img/product_image_16.png"]{
    margin-left: 2%;
}

/*登録 プレビュー*/
.product_image .div_4 .d_2 span{
    display: inline-block;
    width: 6em;
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-family: "ＭＳ Ｐゴシック", sans-serif;
    border: 2px solid #BABABA;
    border-radius: 4px;
    background-color: #EFEFEF;
}
