.mainSection{
  width:95%;
  margin:0 auto 40px;
}

.downButtonWrapper {
  text-align: right;
  position: relative;
  margin-top: 5px;
}
h1#positionOfH1{
  position: absolute;
  margin-top: 40px;
  font-size: clamp(14px,5vw,24px);
  text-align: left !important;
}
.downButton {
  padding: 3px 10px;
  border: 1px solid red;
  border-radius: 8px;
  color: red;
  /* 県名右隣に配置 */
  position: absolute;
  white-space: nowrap;
  right: -125px;
}

.itemNameWrapper{
  position: relative;
  padding: 10px 0;
  margin-bottom: 100px;
  /* top: 30px; */
  top: 50px;
  width:100%;
  text-align:center;
  height: 30px;
  margin-bottom: 100px;
}

/* 生産者名 */
.memberName {
  position: absolute;
  display: block;
  font-size: 20pt;
}

/* 所在地 */
.perfecture {
  position: absolute;
  display: block;
  font-size: 14pt;
  margin-top: 40px;
  margin-bottom: 10px;
}

/* 商品コメント */
.comment {
  position: absolute;
  display: block;
  top:65px;
  margin-top: 20px;
  margin: 20px 15vw;
  width: 100%;
  font-size: 16pt;
  background-color: #EBEBEB;
  padding: 5px 10px 5px 10px;
}

.productSlideWrappre{
  width:100%;
}

/* 商品画像表示
 
共通部分
画像表示部、お気に入り登録/検討リストに追加アイコン、説明文を

フレックス表示する

====================================================*/

.productPictureWrapper {
  text-align: left;
  margin: 50px auto 0;
  max-width: 968px;
  display: flex;
  position: relative;
  margin-top: 130px;
}

/* --- 画像の配置位置を設定 --- */
.pictureFavFlex {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: auto;
} 
.main-img {
  height: 700px;
  align-items: center;
  display: flex;
}
.main-img img {
  height: auto;
  width: 95%;
  margin-left: 10px;
  height: 600px;
  max-height: 600px;
  background-color: #EBEBEB;
  object-fit: contain;
}
.sub-img {
  display: flex;
  flex-wrap: wrap;
  margin-left: 25px;
  height: auto;
}
.sub-img li {
  margin-right: 2%;
  width: calc(96% / 6);
}
.sub-img li:nth-child(3n) {
  margin-right: 10px;
  margin-right: 2%;
  width: calc(96% / 6);
}
.sub-img li img {
  border: 2px solid transparent;
  transition: border .5s;
  height: 100px;
  width: 100%;
  object-fit: cover;
}
.sub-img img {
  cursor: pointer;
  height: 100px;
  width: 100%;
  object-fit: cover;
}
/* アクティブな画像の枠線を変更 */
.sub-img li.current img {
  border: 2px solid red;
  transition: border .5s;
  height: 100px;
  width: 100%;
  object-fit: cover;
}

.commentWrapper{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  padding:5px 0;
  text-align:center;
  color:#FFF;
  background-color:rgba(0,0,0,0.7);
  overflow-x:hidden;
  display:inline-block;
  z-index:2;
}

.orangeButton{
  height: 40px;
  width: 260px;
  color: black;
  background: white;
  border:solid;
  border-width: 1px;
  white-space: nowrap;
}

/* お気に入り登録、検討リストに追加部
 
favAndUnderReviewWrapper

====================================================*/

.favAndUnderReviewWrapper{
  width:95%;
  margin:0 auto 20px;
  font-size:0;
  position:absolute;
}
.iconWrapper{
  width:calc(100% / 2);
  text-align:left;
  display:inline-block;
  margin: 15px 5px 30px 150px;
}
.favIcon{
  margin-right:20px;
  margin-bottom: 10px;
  display:inline-block;
  color: #000;
  font-size: 14px;
}
.underReviewIcon{
  margin-right:20px;
  margin-bottom: 10px;
  display:inline-block;
  color: #000;
  font-size: 14px;
}
.favAndReviewIcon{
  text-decoration: none;
  display: inline-block;
  height: 20px;
  margin-left: 10px;
  margin-bottom: 5px;
}
.iconAboutWrapper{
  text-align:right;
  font-size:16px;
}
.iconAboutWrapper img{
  height:14px;
  width:14px;
}

/* ============================================== 

生産者お問い合わせボタン
 
buttonSpace

====================================================*/

/* モバイルファースト方式 */
.buttonSpace{
  position: relative;
  margin-top: 1130px;
}
.buttonWrapper{
  width: auto;
  margin-left: calc(100% / 3);
}
.iconWrapper{
  width: 100%;
  margin-top: 20px;
}
.optionSectionFlex{
  margin-top: 150px;
}
.stockInfoSection{
  display: block;
}
.commonPropertyInfo{
  margin-bottom: 10px;
}
.propertyCharSet{
  font-weight: bold;
}
.optionSectionFlex{
  height: 300px;
  margin-bottom: 480px;
}
.stockInfoListWrapper{
  width: 480px;
}

/***
  樹形・仕立
  出荷状態
  目的・条件
***/
th {
  color: #241613;
  font-weight: normal;
  text-align: center;
  border-collapse: collapse;
  border: solid 1px #CDCDCD;
  border-width: 0px;
  padding-bottom: 14px;
}
td {
  text-align: center;
  border-collapse: collapse;
  border: solid 1px #CDCDCD;
  border-width: 1px 0px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.border-none0{
  border-width: 0px;
}
.treeInformation{
  background-color: #EBEBEB;;
  width: 480px;
  height: 323px;
  margin-left: 15px;
}
.treePropertyInfo{
  margin: 30px;
}
.propertySpace{
  height: 100px;
}
/* 生産者情報タブ */
.optionSection{
  border-top:solid 1px #B8B8B8;
  border-bottom:solid 1px #B8B8B8;
  font-size:0;
  text-align:center;
  margin-top: 520px;
  margin-left: 104px;
}
.stockInfoLabel{
  width: calc((100% / 3) - 1px);
  padding: 10px 0;
  cursor: default;
  font-size: 16px;
  display: inline-block;
}
.producerInfoLabel{
  width: calc((100% / 3) - 1px);
  padding: 10px 0;
  cursor: default;
  font-size: 16px;
  display: inline-block;
}
.wholeSellerInfoLabel{
  width: calc((100% / 3) - 1px);
  padding: 10px 0;
  cursor: default;
  font-size: 16px;
  border-left: solid 0.5px #B8B8B8;
  display: inline-block;
}
.label2{
  width: calc((100% / 2) - 1px);
}
.label3{
  width: calc((100% / 2) - 1px);
}
input[name="tab"]{
  display:none;
}
#stockInfoRadio:checked ~ .stockInfoLabel,
#producerInfoRadio:checked ~ .producerInfoLabel,
#wholeSellerInfoRadio:checked ~ .wholeSellerInfoLabel{
  border-bottom:none;
}
#stockInfoRadio:checked ~ .stockInfoSection,
#producerInfoRadio:checked ~ .producerInfoSection,
#wholeSellerInfoRadio:checked ~ .wholeSellerInfoSection{
  display:block;
}
.producerInfoSection,
.customerInfoSection{
  font-size:16px;
  display: none;
  width: 100%;
  margin-left: 64px;
}
.slideshow{
  height: auto;
  max-height: 256px;
  min-height: 100px;
  width: 100%;
  text-align: center;
  margin-left: calc(100% / 6);
}
.stockDisplayChangeWrapper{
  width:95%;
  margin:10px auto;
  text-align:right;
}
.stockNone{
  display:none;
}
.stockInfoList{
  font-size:16px;
}
.stockInfo{
  width:95%;
  margin:20px auto;
  border-width: 0px;
}
.stockInfoLeft{
  width:80%;
  display:inline-block;
}
.stockInfoRight{
  width:20%;
  text-align:right;
  display:inline-block;
}
.stockInfo p{
  width:50%;
  display:inline-block;
}
.stockInfo .stock{
  width:auto;
  text-align:right;
}
.stockInfo .stock:nth-child(1){
  margin-right:10px;
}
.stockInfo p:nth-child(2n){
  text-align:left;
}
.tileSlideshowArrowWrapperLeft {
  position: relative;
  top: 65px;
  right: 10px;
  height: 80px;
  width: 20px;
  margin-right: -20px;
  margin-bottom: -80px;
  display: inline-block;
  vertical-align: bottom;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s;
  transform: translateY(calc(-150% - 40px));
  -webkit-transform: translateY(calc(-150% - 40px));
  -ms-transform: translateY(calc(-150% - 40px));
  z-index: 2;
}

.producerInfoWrapper,
.customerInfoWrapper{
  margin-bottom:40px;
}
.memberLogoWrapper{
  height:50px;
  width:360px;
  margin:0 auto;
  line-height:48px;
  text-align:center;
  border:dotted 1px #000;
}
.memberLogoWrapper img{
  height:100%;
  height:50px;
  width:auto;
  width:360px;
  vertical-align:middle;
  display:inline-block;
  object-fit:contain;
}
.producerInfo,
.customerInfo{
  height: 300px;
  width:100%;
  max-width: 600px;
  text-align:left;
  border-collapse:collapse;
}
.producerInfo th,
.customerInfo th{
  width:40%;
  padding:5px;
  background-color:#EFEFEF;
  color:#4C4C4C;
  font-weight:normal;
  border:solid 1px #D6D6D6;
}
/* 生産者情報の横線 */
.producerInfo td,
.customerInfo td{
  padding:5px;
  color:#4C4C4C;
  border:solid 1px #D6D6D6;
  border-width: 1px 1px;
}

.memberImageSpace{
  width:100%;
  text-align:center;
}
.memberImageWrapper{
  position:relative;
  top:0;
  right:0;
  width:calc(45% - 2px);
  margin:20px 2.5%;
  border:dotted 1px #000;
  display:inline-block;
}
.memberImageWrapper::before{
  content: '';
  display: block;
  padding-top:100%;
}
.memberImageWrapper img{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:100%;
  object-fit:cover;
}
.contactBack{
  position:fixed;
  top:0;
  right:0;
  width:100%;
  height:100%;
  text-align:center;
  background-color:rgba(0, 0, 0, 0.3);
  display:none;
  z-index:10;
}
.contactWrapper{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  left:0;
  height:380px;
  width:320px;
  margin:auto;
  background-color:#e6ecf0;
  border-radius:25px;
}
.close{
  position:absolute;
  top:6px;
  right:12px;
  cursor:default;
  float:right;
}
.contactItemWrapper{
  margin:30px 0;
}
.contactItemNameWrapper{
  width:95%;
  margin:5px auto;
  padding:5px 0;
  background-color:rgba(0,200,230,0.4);
  color:#FFF;
}
.telWrapper a{
  font-size:18px;
}
textarea{
  resize:none;
}
.sendButton{
  height:48px;
  width:80%;
  color:#FFF;
  background-color:#EA341C;
  border:none;
}
.sendButton:disabled{
  color:#444;
  background-color:#CCC;
}
.SCTLTitle{
  text-align: center;
  margin-bottom:20px;
  font-size:18px;
  color:#707070;
}
.SCTLTable{
  width:100%;
  max-width: 600px;
  margin:0 auto 40px;
  text-align:left;
  border-collapse:collapse;
}
.SCTLTable th{
  width:40%;
  padding:5px;
  background-color:#EFEFEF;
  color:#4C4C4C;
  font-weight:normal;
  border:solid 1px #D6D6D6;
}
.SCTLTable td{
  padding:5px;
  color:#4C4C4C;
  border:solid 1px #D6D6D6;
}
.slideshowContentWrapper{
  margin: 0 auto;
}
.tileSlideshowArrowWrapperRight{
  position: relative;
  top: 65px;
  left: -10px;
  height: 80px;
  width: 20px;
  margin-right: -20px;
  margin-bottom: -80px;
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s;
  transform: translateY(calc(-150% - 40px));
  -webkit-transform: translateY(calc(-150% - 40px));
  -ms-transform: translateY(calc(-150% - 40px));
  z-index: 2;
}
.soldOutWrapper{
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  color: #FFF;
  background-color: rgba(0, 0, 0, 0.7);
  display: table;
  z-index: 2;
}
footer {
  margin-top: 20px;
  margin-left: 70px;
  width: 100%;
}
/* 他の生産者の商品へのページ内リンクがずれる問題を修正する
   細川の環境ではズレは確認できなかったため、今後修正する可能性がある
*/
div#slide{
  padding-top: 90.84px;
  margin-top: -90.84px;
}
.protect{   
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  -moz-touch-callout:none;
  -moz-user-select:none;
  /* touch-callout:none; */
  user-select:none;
}

/* ==================================

商品画像のレスポンシブ対応 スマホ最小値

======================================= */

@media screen and (min-width:600px) {
  .productPictureWrapper {
    text-align: left;
    margin: 50px auto;
    max-width: 500px;
    display: flex;
    position: relative;
  }
  
  /* --- 画像の配置位置を設定 --- */
  .pictureFavFlex {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: auto;
  }
  .sub-img {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    height: auto;
  }
  .commentWrapper{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:5px 0;
    text-align:center;
    color:#FFF;
    background-color:rgba(0,0,0,0.7);
    overflow-x:hidden;
    display:inline-block;
    z-index:2;
  }

/* 商品問い合わせボタン */
  .buttonSpace{
    position: relative;
    margin: 0 auto;
    margin-bottom: 10px;
    margin-top: 1100px;
    max-width: 500px;
  }
  .buttonWrapper{
    width: auto;
    margin-left: 0;
  }
  .iconWrapper{
    width: 100%;
    margin-top: 20px;
  }
  .optionSectionFlex{
    margin-top: 150px;
  }
  .stockInfoSection{
    display: block;
  }
  .stockInfoListWrapper{
    width: 500px;
    margin: 0 auto;
  }
  .treeInformation {
    width: 500px;
    height: 300px;
    margin: 0 auto;
  }
  .treePropertyInfo{
    margin: 30px;
  }
  .propertySpace{
    height: 100px;
  }
  .slideshow {
    height: auto;
    max-height: 256px;
    min-height: 100px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .tileSlideshowArrowWrapperRight {
    position: relative;
    top: 30px;
    left: -10px;
    height: 80px;
    width: 20px;
    margin-right: -20px;
    margin-bottom: -80px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
    transform: translateY(calc(-150% - 40px));
    -webkit-transform: translateY(calc(-150% - 40px));
    -ms-transform: translateY(calc(-150% - 40px));
    z-index: 2;
  }
  .tileSlideshowArrowWrapperLeft {
    position: relative;
    top: 30px;
    right: 10px;
    height: 80px;
    width: 20px;
    margin-right: -20px;
    margin-bottom: -80px;
    display: inline-block;
    vertical-align: bottom;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
    transform: translateY(calc(-150% - 40px));
    -webkit-transform: translateY(calc(-150% - 40px));
    -ms-transform: translateY(calc(-150% - 40px));
    z-index: 2;
}
.optionSection{
  border-top:solid 1px #B8B8B8;
  border-bottom:solid 1px #B8B8B8;
  font-size:0;
  text-align:center;
  margin-top: 650px;
  margin-left: 0px;
}
}


/* ==================================

商品画像のレスポンシブ対応 タブレット最小値

======================================= */
@media screen and (min-width:768px) {

/* 商品コメント */
.comment {
  position: absolute;
  display: block;
  top:65px;
  left: 50px;
  margin-top: 20px;
  margin: 20px 0px;
  /* width: inherit; */
  font-size: 16pt;
  padding: 5px 10px 5px 10px;
}
  .productPictureWrapper {
    position: relative;
    text-align: left;
    margin: 50px auto 0;
  }
  
  /* --- 画像の配置位置を設定 --- */
  .pictureFavFlex {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: auto;
  }
  .commentWrapper{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:5px 0;
    text-align:center;
    color:#FFF;
    background-color:rgba(0,0,0,0.7);
    overflow-x:hidden;
    display:inline-block;
    z-index:2;
  }
  .sub-img {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    height: auto;
  }

  /* 商品問い合わせボタン */
  .buttonSpace{
    position: relative;
    margin: 50 auto;
    margin-bottom: 10px;
    margin-top: 1130px;
  }
  .buttonWrapper{
    width: auto;
    margin: 0 auto;
  }
  .iconWrapper{
    width: 100%;
    margin-top: 20px;
  }
  .optionSectionFlex{
    margin-top: 150px;
  }
  .stockInfoSection{
    display: block;
  }
  .stockInfoListWrapper{
    width: 500px;
    margin: 0 auto;
  }
  .treeInformation{
    width: 500px;
    height: 300px;
    margin: 24px auto;
  }
  .treePropertyInfo{
    margin: 30px;
  }
  .propertySpace{
    height: 100px;
  }
  .slideshow {
    height: auto;
    max-height: 256px;
    min-height: 100px;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  /* 生産者情報タブ */
.optionSection{
  border-top:solid 1px #B8B8B8;
  border-bottom:solid 1px #B8B8B8;
  font-size:0;
  text-align:center;
  margin-top: 650px;
  margin-left: 0px;
}
  .tileSlideshowArrowWrapperRight {
    position: relative;
    top: 0px;
    left: -10px;
    height: 80px;
    width: 20px;
    margin-right: -20px;
    margin-bottom: -80px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
    transform: translateY(calc(-150% - 40px));
    -webkit-transform: translateY(calc(-150% - 40px));
    -ms-transform: translateY(calc(-150% - 40px));
    z-index: 2;
  }
  .tileSlideshowArrowWrapperLeft {
    position: relative;
    top: 0px;
    right: 10px;
    left: -21px;
    height: 80px;
    width: 20px;
    margin-right: -20px;
    margin-bottom: -80px;
    display: inline-block;
    vertical-align: bottom;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
    transform: translateY(calc(-150% - 40px));
    -webkit-transform: translateY(calc(-150% - 40px));
    -ms-transform: translateY(calc(-150% - 40px));
    z-index: 2;
}
  footer{
    margin-top: 100px;
  }
}

/* ==================================

レスポンシブ対応(1080px~)

======================================= */

@media screen and (min-width:1080px) {
  .downButtonWrapper{
    display: flex;
    margin-top: 5px;
  }
  .downButton {
    padding: 3px 10px;
    border: 1px solid red;
    border-radius: 8px;
    color: red;
    /* 県名右隣に配置 */
    position: absolute;
    white-space: nowrap;
    right: 0px;
  }
  h1#positionOfH1{
    position: static;
    width: auto;
    margin-left: 0px;
  }
  .imageAndButton{
    display: inline-block;
  }
  .itemNameWrapper {
    display: flex;
    position: relative;
    margin-top: -40px;
    margin-bottom: 20px;
}
  .memberName{
    position: static;
    text-align-last: left;
    width: fit-content;
    font-size: 20pt;
    white-space: nowrap;
    left: 50px;
    top: 60px;
  }
  .perfecture{
    position: static;
    width: fit-content;
    white-space: nowrap;
    margin: 10px 0px 0px 30px;
    font-size: 14pt;
  }
  .comment{
    position: static;
    width: max-content;
    height: fit-content;
    text-align: left;
    margin: 0px 0px 0px 30px;

  }
  .productPictureWrapper {
    position: absolute;
    text-align: left;
    height: 1200px;
  }
  
  /* --- 画像の配置位置を設定 --- */
  .pictureFavFlex {
    position: absolute;
    top: 0;
    width: 800px;
    height: auto;
  }
  .main-img {
    height: 600px;
    align-items: center;
    display: flex;
    max-width: 95%;
  }
  .sub-img {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    height: auto;
  }
  
  .commentWrapper{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:5px 0;
    text-align:center;
    color:#FFF;
    background-color:rgba(0,0,0,0.7);
    overflow-x:hidden;
    display:inline-block;
    z-index:2;
  }

  /* 商品問い合わせボタン */
  .buttonSpace{
    width:95%;
    position: relative;
    margin:0 auto;
    font-size:0;
    text-align:center;
    margin-top: 550px;
    margin-left: 650px;
  }
  .favAndUnderReviewWrapper{
    margin: 0 150px 20px;
    font-size: 0;
  }
  .buttonWrapper{
    width: auto;
    margin-left: auto;
  }
  .iconWrapper{
    width: 100%;
    margin-top: 20px;
    margin-left: 20px;
  }
  .stockInfoSection{
    display: flex;
    margin: 0 auto;
  }
  td{
    text-align: center;
    border-collapse: collapse;
    border: solid 1px #CDCDCD;
    border-width: 1px 0px;
    padding: 15px;
  }
  .treeInformation{
    width: 500px;
    height: 360px;
  }
  .treePropertyInfo{
    margin: 30px;
  }
  .propertySpace{
    height: 100px;
  }
  .tileSlideshowArrowWrapperRight{
    top: 0;
    left: 0;
  }
  .slideshow {
    height: auto;
    max-height: 256px;
    min-height: 100px;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  .optionSection {
    border-top: solid 1px #B8B8B8;
    border-bottom: solid 1px #B8B8B8;
    font-size: 0;
    text-align: center;
    margin-top: 400px;
    margin-left: 0px;
    width: 100%;
}
.producerInfoSection,
.customerInfoSection{
  width: 100%;
  margin-left: 0px;
  font-size:16px;
  display: none;
}
.producerInfo{
  width: 100%;
  max-width: 600px;
}
.SCTLTitle{
  text-align: center;
  margin-bottom:20px;
  font-size:18px;
  color:#707070;
}
.SCTLTable{
  width: 100%;
  max-width: 600px;
}
  footer{
    margin: 30px 0 0 0;
  }
}