/* popup中心に全体的な設定 */
.web-widget-text {
  text-align: center;
}
.smp-widget-area img {
  width: 100%;
  height: auto;
}

.smp-widget-button {
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 0.3em 1em;
  text-decoration: none;
  color: #67c5ff;
  border: transparent solid 2px;
  border-radius: 3px;
  transition: 0.4s;
  outline: none;
  font-weight: bold;
}

.smp-widget-button:hover {
  background: #67c5ff;
  color: white;
}
.smp-widget-close-button {
  position: absolute;
  top: 0%;
  right: 0%;
  font-size: 20px;
  font-weight: bold;
  border: 1px solid #999;
  color: #999;
  justify-content: center;
  align-items: center;
  border-radius: 15%;
  width: 1.5em;
  height: 1.5em;
  cursor: pointer;
  transition: 0.1s;
  text-align: center;
}
.smp-widget-close-button:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}
.smp-widget-title-text {
  font-weight: bold;
}
.ss-popup-area {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 90vh;
  min-width: 25%;
  animation: fadeIn 1s ease 0s 1 normal;
  border-radius: 4px;
  z-index: 99999;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/*embed html pc*/
.ss-embed-html-area {
  border-radius: 5px;
  padding: 3%;
}
.ss-embed-html-area .smp-widget-header {
  height: 5vh;
  width: 100%;
  font-size: 2vw;
  display: block;
}
.ss-embed-html-area .smp-widget-title-text {
  font-size: 1.25vw;
  margin-bottom: 5%;
  min-width: 30%;
  vertical-align: middle;
}
.ss-embed-html-area .smp-widget-content {
  display: block;
  border-radius: 5px;
  padding: 2%;
}
.ss-embed-html-area .smp-widget-body-text {
  margin: 0 auto;
  text-align: center;
  vertical-align: middle;
  width: 90%;
}
.ss-embed-html-area .smp-widget-button {
  margin-right: auto;
  margin-left: auto;
  height: 3.75vh;
  font-size: 0.875vw;
}
.ss-embed-html-area .smp-widget-content {
  display: flex;
  flex-wrap: wrap;
}
.ss-embed-html-area .smp-widget-content div:first-of-type {
  width: 45%;
  vertical-align: middle;
  margin-left: 5%;
  margin-bottom: 3%;
}
.ss-embed-html-area .smp-widget-content div:nth-of-type(2) {
  margin-left: auto;
  width: 45%;
  margin-bottom: 3%;
}
.ss-embed-html-area .smp-widget-content button:first-of-type {
  margin-right: auto;
  width: 45%;
  margin-left: 5%;
  margin-bottom: 3%;
  vertical-align: middle;
}
/*popup html*/
.ss-popup-html-area {
  max-width: 35%;
}
.ss-popup-html-area .smp-widget-content {
  padding: 2%;
}
.ss-popup-html-area .smp-widget-header {
  min-height: 15px;
  width: 100%;
  display: block;
}
.ss-popup-html-area .smp-widget-title-text {
  font-size: 1.5vw;
  margin-bottom: 3%;
}
.ss-popup-html-area .smp-widget-body-text {
  margin-bottom: 3%;
  width: 100%;
}
.ss-popup-html-area .smp-widget-image {
  width: 100%;
  margin-bottom: 3%;
}
.ss-popup-html-area .smp-widget-button {
  margin-top: 3%;
  width: 100%;
  height: 5vh;
  font-size: 1.25vw;
}
/*form*/
.ss-popup-form-area {
  background-color: #ffffff;
}
.ss-popup-form-area .smp-widget-header {
  height: 3vh;
}
.smpForm {
  position: relative;
  padding: 0.75vw;
  margin-left: auto;
  margin-right: auto;
}
.smpForm .ss_contents input[type="number"]::-webkit-outer-spin-button,
.smpForm .ss_contents input[type="number"]::-webkit-inner-spin-button,
.smpForm .ss_contents input[type="date"]::-webkit-outer-spin-button,
.smpForm .ss_contents input[type="date"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.smpForm .ss_contents {
  width: 100%;
}
.smpForm .ss_privacy_field {
  background-color: #f9f9f9;
}
.smpForm .ss_privacy_field .ss_grid {
  background-color: #ffffff;
  overflow: auto;
  word-break: break-all;
}
.smpForm .ss_contents fieldset {
  border: solid 1px #d4d4d4;
  border-collapse: collapse;
}
.smpForm .ss_contents fieldset + fieldset {
  background-color: #ffffff;
}
.smpForm .ss_field:nth-child(odd) {
  background-color: #f9f9f9;
}
.smpForm .ss_enquete_field:nth-child(even) {
  background-color: #f9f9f9;
}
.smpForm .ss_field:first-child {
  margin-top: 20px;
}
.smpForm .ss_field:hover,
.smpForm .ss_enquete_field:hover {
  background-color: #f5f5f5;
}
.smpForm .ss_user_notnull {
  color: red;
}
.smpForm .ss_field + .ss_field,
.smpForm .ss_enquete_form fieldset {
  border-top: none;
}
.smpForm .ss_contents input,
.smpForm .ss_contents select {
  border: 1px solid #ccc;
  border-radius: 3px;
}
.smpForm .ss_required_field input {
  border: 1px solid #f0ada8;
}
.smpForm .ss_required_field input:focus {
  border: 1px solid #e3675e;
  -webkit-box-shadow: 0 1px 23px 0 rgb(50 57 66 / 9%);
  box-shadow: 0 1px 23px 0 rgb(50 50 50 / 9%);
  outline: 0;
}
.smpForm .ss_upComment,
.ss_leftComment,
.ss_rightComment {
  margin-left: 3px;
  margin-right: 3px;
  color: #777777;
  font-size: 12px;
}
.smpForm .ss_bottomComment {
  margin-top: 3px;
  color: #777777;
  font-size: 12px;
}
.smpForm .ss_btnArea {
  text-align: center;
}
.smpForm .ss_btnArea input {
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  padding: 0.3em 1em;
  text-decoration: none;
  background-color: #829dc9;
  color: #ffffff;
  border: solid 2px #829dc9;
  border-radius: 3px;
  margin-top: 0.25vh;
  width: 80%;
  height: auto;
  font-size: 22px;
}
.smpForm .ss_warning_label {
  background-color: #f89406;
  border-radius: 3px;
  vertical-align: top;
  display: inline-block;
  padding: 2px 4px;
  font-size: 11.844px;
  line-height: 12px;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.smpForm .ss_error_msg,
.errorMsg {
  vertical-align: top;
  margin-left: 3px;
  font-size: 12px;
  color: #f89406;
}
.smpForm .ss_complete_message {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

/* Spinner */
.smpForm .ss_submit_loader {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.25);
}
.smpForm .spinner::before {
  content: "";
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100px;
  width: 100px;
  margin-top: -50px;
  margin-left: -50px;
  border-radius: 50%;
  border: 0.5em solid #ffffff;
  border-top-color: rgba(0, 0, 0, 0);
  -webkit-animation: spinner 1s infinite infinite;
  animation: spinner 1s linear infinite;
}

@-webkit-keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* IE */
@media all and (-ms-high-contrast: none) {
  .smp-widget-close-button {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 14px;
  }
}
@-moz-document url-prefix() {
  .smp-widget-close-button {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 14px;
  }
}
/*
  Responsive CSS
*/
/* PC */
@media screen and (min-width: 768px) {
  .smpForm .ss_grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}
/* ipad */
@media screen and (max-width: 767px) {
  /*form*/
  .ss-popup-area {
    max-width: 100%;
  }
  .smp-widget-header {
    font-size: 5vw;
  }
  .smp-widget-close-button {
    font-size: 4vw;
  }
  .smpForm {
    font-size: 4vw;
    padding: 0;
    border-radius: 10px;
  }
  .smpForm .ss_rightComment {
    display: block;
    font-size: 3.5vw;
  }
  .smpForm .ss_leftComment {
    display: block;
    font-size: 3.5vw;
  }
  .smpForm .ss_bottomComment {
    display: block;
    font-size: 3.5vw;
  }
  .smpForm .ss_grid {
    word-break: break-all;
    font-size: 4vw;
  }
  .ss-popup-form-area
    .smpForm
    .ss_grid
    input:not([type="checkbox"]):not([type="radio"]):not([type="date"]):not([type="datetime-local"]) {
    width: 100%;
    height: 2.5vh;
    border-radius: 2px;
  }
  .smpForm .ss_btnArea input {
    height: auto;
    width: 100%;
    font-size: 5vw;
    margin: 0;
  }
  /*embed html*/
  .ss-embed-html-area {
    display: block;
    padding: 0;
  }
  .ss-embed-html-area .smp-widget-content {
    display: block;
  }
  .ss-embed-html-area .smp-widget-title-text {
    font-size: 5vw;
  }
  .ss-embed-html-area .smp-widget-body-text {
    width: 100%;
    margin-bottom: 3%;
  }
  .ss-embed-html-area .smp-widget-image {
    width: 100%;
    margin-bottom: 3%;
  }
  .ss-embed-html-area .smp-widget-button {
    width: 100%;
    height: 4.5vh;
    font-size: 5vw;
    margin-bottom: 3%;
    vertical-align: middle;
    padding: 0;
  }
  .ss-embed-html-area .smp-widget-content div:first-of-type {
    width: 100%;
    vertical-align: middle;
    margin-left: 0;
  }
  .ss-embed-html-area .smp-widget-content div:nth-of-type(2) {
    margin-left: 0;
    width: 100%;
    vertical-align: middle;
  }
  .ss-embed-html-area .smp-widget-content button:first-of-type {
    margin-right: 0;
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
  }
  /*popup html*/
  .ss-popup-html-area {
    width: 95%;
  }
  .ss-popup-html-area .smp-widget-content {
    padding: 0;
  }
  .ss-popup-html-area .smp-widget-title-text {
    font-size: 5vw;
  }
  .ss-popup-html-area .smp-widget-image {
    margin-bottom: 0;
  }
  .ss-popup-html-area .smp-widget-button {
    width: 100%;
    height: 6vh;
    font-size: 5vw;
    margin-top: 0;
    border-radius: 0;
  }
}
/* Vertical Screen (Smartphone) */
@media screen and (max-width: 480px) {
  .smpForm .ss_leftComment {
    display: block;
    font-size: 3vw;
  }
  .smpForm .ss_grid input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
  }
}
