/*---------------------------------
    自由記入欄
---------------------------------*/

.contents.free_input {
  padding-top: 20px;  padding-bottom: 20px;  letter-spacing: .1em;border-bottom: 1px solid; 
}

.contents.free_input p {
  font-size: 14px;
  line-height: 1.8;
}

.contents.free_input.clearfix:after {
  font-size: 0;

  display: block;
  visibility: hidden;
  clear: both;

  height: 0;

  content: '.';
}

@media screen and (max-width: 767px) {
  .contents.free_input {
    padding: 15px 10px;
  }
}

@media screen and (max-width: 767px) {
  .contents.free_input .product_detail:nth-child(n+2) {
    margin-top: 14px;
  }
}


.contents.free_input h3 {
  font-size: 24px;  font-weight: bold;  line-height: 180%;  width: 100%;  margin-bottom: 10px;text-align: left;  color: #333; 
}

.contents.free_input h3:after {
  display: none;
}

.contents.free_input h4 {
  font-size: 18px;  font-weight: bold;  line-height: 140%;  display: block;  margin: 4px auto 0;  padding-bottom: 0;  text-align: left;  border-bottom: none;
}

.contents.free_input:last-of-type {
  margin-bottom: 60px;
}

.contents.free_input * {
  text-align: left;  overflow-wrap: break-word;
}

.contents.free_input p {
  margin-bottom: 20px;
}

.contents.free_input img {
  max-width: 100%;
}

@media screen and (max-width: 767px) {
  .contents.free_input p,
  .contents.free_input span {
    font-size: 14px;
  }
}

/*---------------------------------
    自由記入欄A
---------------------------------*/

.free_inputA {
  text-align: center;
}

/*---------------------------------
    自由記入欄B
---------------------------------*/

.free_inputB .product_detail {
  float: left;  box-sizing: border-box;  width: 30%;  margin-right: 5%;
}

.free_inputB .product_detail:last-of-type {
  margin-right: 0;
}

@media screen and (max-width: 767px) {
  .free_inputB .product_detail {
    width: 100%;  padding: 0;
  }
}

/*---------------------------------
    自由記入欄C
---------------------------------*/
.free_inputC {
  display: flex;  flex-wrap: wrap;  justify-content: space-between;
}

.free_inputC .product_detail {
  box-sizing: border-box;  width: 25%;  padding: 0 20px;
}

@media screen and (max-width: 767px) {
  .free_inputC .product_detail {
    width: 100%;  padding: 0;
  }
}

/*---------------------------------
    自由記入欄D
---------------------------------*/
.free_inputD {
  display: flex;  flex-wrap: wrap;  justify-content: space-between;
}

.free_inputD .product_detail {
  box-sizing: border-box;  width: calc(100% / 6);  padding: 0 8px;
}

@media screen and (max-width: 992px) {
  .free_inputD .product_detail {
    width: calc(100% / 3);
  }
}

@media screen and (max-width: 767px) {
  .free_inputD .product_detail {
    width: 100%;  padding: 0;
  }
}

.free_inputD .product_detail h4 {
  font-size: 16px;
}

.free_inputD .product_detail p {
  font-size: 14px;
}

/*---------------------------------
    自由記入欄E,F
---------------------------------*/

.free_inputE .product_detail img,
.free_inputF .product_detail img {
  float: left;  width: 40%;
}

@media screen and (max-width: 767px) {
  .free_inputE .product_detail img,
  .free_inputF .product_detail img {
    float: inherit;  width: auto;
  }
}

.free_inputE .product_detail_text,
.free_inputF .product_detail_text {
  float: left;  box-sizing: border-box;  width: 60%;  padding: 0 1%;
}

@media screen and (max-width: 767px) {
  .free_inputE .product_detail_text,
  .free_inputF .product_detail_text {
    float: inherit;  width: auto;
  }
}


/*---------------------------------
    自由記入欄F
---------------------------------*/
.free_inputH h3 {
  margin-bottom: 0;  color: #333;
}

.free_inputH h3:after {
  display: none;
}

.free_inputH.text-left h3 {
  text-align: left;
}

.free_inputH.text-center h3 {
  text-align: center;
}

.free_inputH.text-right h3 {
  text-align: right;
}

/*---------------------------------
    自由記入欄G
---------------------------------*/

.free_input.free_inputG {
  padding-top: 0;  padding-bottom: 0;
}

/*---------------------------------
    自由記入欄J
---------------------------------*/
.contents.free_input.free_inputJ {
  overflow: hidden;
}

.contents.free_input.free_inputJ table {
  float: left;  width: auto;  margin: 0 16px 16px 0;
}

.free_input.free_inputJ .inputJImg {
  float: left;
}

.free_input.free_inputJ.sample_inputJ table tbody th,
.free_input.free_inputJ.sample_inputJ table tbody td {
  font-size: 16px;  padding: 10px 15px;  border-collapse: collapse;  text-align: center;  vertical-align: top;
}

.free_input.free_inputJ.sample_inputJ table tbody th {
  border: #ccc solid 1px;  background: #f7f7f7;
}

.free_input.free_inputJ.sample_inputJ table tbody td {
  border: #ccc solid 1px;  background: #fff;
}

@media screen and (max-width: 767px) {
  .contents.free_input.free_inputJ table tbody th,
  .contents.free_input.free_inputJ table tbody td {
    display: table-cell;
  }

  .contents.free_input.free_inputJ table tbody td:before {
    content: none;
  }
}
