@charset "UTF-8";

/* =========================================================
   information index
========================================================= */
/* layout
----------------------------------------------- */
/* PC表示 */
@media only screen and (min-width: 960px),
print {
  #content>.form {
    max-width: 1880px;
    margin: 0 auto;
    padding-right: 200px;
  }
}

/* スマートフォン表示 */
@media only screen and (max-width: 960px) {
  #content>.form {
    padding: 0 10px;
  }
}

/* タブレット縦表示 */
@media only screen and (min-width: 480px) and (max-width: 960px) and (orientation: portrait) {
  #content>.form {
    padding: 0 5vw;
  }
}

/* surveyForm
----------------------------------------------- */
#pageTitle,
.surveyForm>.body,
.submit {
  text-align: center;
}

#pageTitle h1 {
  color: #84c37a;
  letter-spacing: 0.1em;
}

.surveyForm .questions {
  border-top: 1px solid #ddd;
}

.surveyForm .question {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
}

.surveyForm fieldset.question {
  margin: 0;
  padding: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

.question_content {
  background-color: #f7f7f7;
  font-weight: 500;
}

.answer_content input[type="text"],
.answer_content input[type="email"],
.answer_content input[type="tel"],
.answer_content textarea {
  width: 100%;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  font-size: 16px;
  /* iOSでフォーム入力時に画面がズームされる */
}

input[type="checkbox"]+label::after {
  content: "\A";
  white-space: pre;
}

.surveyForm .note {
  display: inline-block;
  margin-left: 0.25em;
  padding: 0 6px;
  border-radius: 4px;
  background-color: #ee0000;
  color: #fff;
}

.submit input[type="submit"] {
  border: 2px solid #84c37a;
  background-color: #84c37a;
  background-repeat: no-repeat;
  color: #fff;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit input[type="submit"][name="edit_answers"] {
  background-color: #fff;
  background-image: none;
  color: #84c37a;
  text-align: center;
}

.submit input[type="submit"]:hover {
  opacity: 0.75;
}

body[id$="-confirmAnswers"] .answer_content .body,
body[id$="-finish"] #pageTitle,
.surveyForm .back {
  display: none;
}

#errorExplanation {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #e00;
}

#errorExplanation h2 {
  padding: 0 0 4px 15px;
  border-radius: 4px;
  background-color: #fff;
  color: #e00;
}

#errorExplanation p {
  margin-left: 15px;
}

#errorExplanation ul {
  list-style-type: square;
  margin-left: 2.5em;
}

#errorExplanation li {
  color: #e00;
}

.surveyForm .message {
  color: #84c37a;
  font-weight: bold;
}

/* PC表示 */
@media only screen and (min-width: 960px),
print {
  #pageTitle {
    margin-bottom: 15px;
  }

  #pageTitle h1 {
    font-size: 175%;
  }

  .surveyForm>.body {
    margin-bottom: 30px;
  }

  .question_content {
    flex-basis: 300px;
    padding: 40px 30px;
  }

  legend.question_content {
    position: absolute;
    width: 300px;
    height: 219px;
    z-index: -1;
  }

  .questions .body {
    margin-bottom: 1em;
  }

  .answer_content {
    flex-basis: calc(100% - 300px);
    margin-left: auto;
    padding: 25px 40px;
  }

  .surveyForm .note {
    font-size: 87.5%;
  }

  .answer_content input[type="text"],
  .answer_content input[type="email"],
  .answer_content input[type="tel"],
  .answer_content textarea {
    padding: 15px;
  }

  .submit input[type="submit"] {
    width: 380px;
    height: 90px;
    line-height: 90px;
    margin: 80px 20px 100px;
    padding-left: 30px;
    background-image: url("./images/icon-button-arrow_w.png");
    background-position: right 30px center;
    background-size: 44px auto;
    font-size: 124%;
  }

  .submit input[type="submit"][name="edit_answers"] {
    padding: 0;
  }

  body[id$="-confirmAnswers"] .question_content {
    padding: 25px 40px;
  }

  .surveyForm .message {
    margin-bottom: 95px;
  }

  .surveyForm .message p:first-child {
    margin-bottom: 40px;
    font-size: 174.625%;
  }

  .surveyForm .message img {
    width: 191px;
    height: auto;
  }
}

/* スマートフォン表示 */
@media only screen and (max-width: 960px) {
  #pageTitle {
    margin-bottom: 10px;
  }

  #pageTitle h1 {
    font-size: 112.5%;
  }

  .surveyForm>.body {
    margin-bottom: 30px;
    font-size: 87.5%;
    text-align: left;
  }

  .questions {
    font-size: 87.5%;
  }

  .question_content {
    flex-basis: 100%;
    padding: 10px 20px;
  }

  legend.question_content {
    width: 100%;
  }

  .questions .body {
    margin-bottom: 1em;
    font-size: 87.5%;
  }

  .answer_content {
    flex-basis: 100%;
    padding: 20px 0 30px;
  }

  .answer_content input[type="text"],
  .answer_content input[type="email"],
  .answer_content input[type="tel"],
  .answer_content textarea {
    padding: 10px;
  }

  .answer_content textarea {
    min-height: 150px;
  }

  .surveyForm .note {
    font-size: 0.875rem;
  }

  .submit {
    margin: 40px 0 40px;
  }

  .submit input[type="submit"] {
    width: calc(100% - 60px);
    height: 60px;
    line-height: 60px;
    margin: 0 0 20px;
    padding-left: 18px;
    background-image: url("./images/icon-button-arrow_sp_w.png");
    background-position: right 10px center;
    background-size: 18.5px auto;
    font-size: 93.75%;
  }

  .submit input[type="submit"][name="edit_answers"] {
    padding: 0;
  }

  body[id$="-confirmAnswers"] .question_content,
  body[id$="-confirmAnswers"] .answer_content {
    padding: 10px 20px;
  }

  .surveyForm .message {
    margin-bottom: 60px;
  }

  .surveyForm .message p:first-child {
    margin-bottom: 20px;
    font-size: 112.5%;
  }

  .surveyForm .message img {
    width: calc(100% - 180px);
    height: auto;
  }
}