body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  padding-top: 40px;
  margin-bottom: 35px;
}

.app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #edf2f5;
}

@media (min-width: 430px) {
  body {
    background-color: #f0f0f0;
  }
}

header {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 50;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

header h1 {
  color: #004691;
  margin: 0;
  padding: 5px;
  text-align: center;
  font-size: 12px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #004691;
  color: white;
  text-align: right;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 7px 0;
}

footer p {
  margin: 0;
  padding: 0;
  padding-right: 5px;
}

#dateTime {
  font-size: 16px;
  font-weight: bold;
}

#permission {
  font-size: 12px;
}

.footer-url-wrapper {
  display: flex;
  width: 100%;
  padding-top: 10px;
  font-size: 12px;
  justify-content: space-around;
  text-decoration: underline;
}

.footer-url {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 15px;
  box-sizing: border-box;
  background-color: #edf2f5;
}

.fv-container {
  position: relative;
}

.fv {
  width: 100%;
}

.fv-buttons-container {
  position: absolute;
  top: 59%;
  display: flex;
  justify-content: center;
  width: 100%;
}

.fv-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fv-button {
  padding: 2vh 8vw;
  margin-bottom: 2vh;
  border: 1.5px solid lightgrey;
  border-radius: 7px;
  color: white;
  font-size: 5vw;
  text-decoration: none;
  width: 85%;
  max-width: 300px;
  font-weight: bold;
}

#fv-button-now {
  background-color: #ffab40;
}

#fv-button-later {
  background-color: #0097a7;
}

@media (min-width: 430px) {
  body {
    background-color: #f0f0f0;
  }

  .container {
    background-color: #edf2f5;
  }

  .fv-button {
    padding: 20px 40px;
    margin-bottom: 20px;
    font-size: 20px;
  }
}

.submit-button {
  background-color: #ff8c00;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
  position: relative;
}

.submit-button:hover {
  background-color: #ff7300;
}

.submit-button.loading {
  background-color: #888888;
  cursor: not-allowed;
}

#back-guide {
  position: absolute;
  display: none;
  cursor: pointer;
  padding: 10px;
  display: none;
  width: 80vw;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;
}

#phone-error,
#postalcode-error,
#agree-error {
  background-color: red;
  color: white;
  font-weight: bold;
  display: none;
}

.thanks-image {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.step {
  background-color: #edf2f5;
  padding-bottom: 80px;
}

.form-block {
  background-color: white;
  margin: 15px;
  padding: 15px 10px;
}

.steps-image {
  width: 100%;
  margin-top: 15px;
}

.form-block p:not(.input-note) {
  margin: 0;
  display: inline-block;
  font-weight: bold;
  color: #666666;
}

.question {
  font-size: 17px;
  padding-bottom: 5px;
  flex-basis: calc(100% - 26px);
}

.question-note {
  font-size: 14px;
}

.continuing-question {
  padding-top: 20px;
}

.form-buttons {
  display: flex;
  flex-wrap: wrap;
}

.form-button-input {
  display: none;
}

.form-button-label {
  border: 1px solid blue;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2px;
  padding: 10px;
  text-align: center;
  flex-basis: calc(50% - 26px);
  cursor: pointer;
}

.label-large {
  min-height: 50px;
}

.label-small {
  min-height: 25px;
}

.form-button-input:checked + .form-button-label {
  background-color: blue;
}

.form-button-label p {
  color: blue;
  display: block;
}

.form-button-input:checked + .form-button-label p {
  color: white;
}

.form-button-title {
  font-size: 19px;
}

.form-button-note {
  font-size: 14px;
}

.pagenation-buttons {
  display: flex;
  margin: 20px;
  align-items: center;
}

.previous-button {
  background-color: white;
  flex-grow: 1;
  margin-right: 10px;
  padding: 5px 5px;
  text-align: center;
  border: 1px solid black;
  border-radius: 7px;
  cursor: pointer;
}

.next-button {
  background-color: #bbbbbb;
  color: white;
  padding: 15px;
  text-align: center;
  border: 1px solid black;
  border-radius: 10px;
  cursor: not-allowed;
  flex-grow: 5;
  position: relative;
}

.next-button-wrapper {
  flex-grow: 5;
}

.next-button-wrapper-text {
  width: 100%;
  display: flex;
  justify-content: center;
}

.next-button.available {
  background-color: orange;
  cursor: pointer;
}

.text-input {
  flex-basis: calc(100% - 26px);
  font-size: 20px;
  padding: 10px;
  border: 1px solid blue;
  border-radius: 10px;
  background-color: #fceac4;
  text-align: left;
}

.text-input.filled {
  background-color: white;
}

.hidden-input {
  display: none;
}

.job-count-container {
  background-color: white;
  border-radius: 30px;
  margin: 15px;
  padding: 15px;
  text-align: center;
}

.job-count-title-small {
  font-weight: bold;
  color: #666666;
  font-size: 15px;
}

.job-count-title-large {
  font-weight: bold;
  color: #666666;
  font-size: 20px;
}

.job-count-number {
  font-weight: bold;
  font-size: 20px;
  color: #ff007f;
}

.privacy {
  overflow: scroll;
  background-color: white;
  height: 200px;
  margin: 15px;
  padding: 15px;
}

.agree-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 70px;
}

.agree {
  background-color: #faf9ae;
  border: solid 1px blue;
  border-radius: 10px;
  width: 150px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.agree:checked {
  background-color: white;
}

#agree-input {
  width: 20px;
  height: 20px;
}

.agree-input-label {
  color: blue;
  font-size: 20px;
}

#submit {
  background-color: #bbbbbb;
  color: white;
  padding: 15px;
  text-align: center;
  border: 1px solid black;
  border-radius: 10px;
  cursor: not-allowed;
  flex-grow: 5;
}

#submit.available {
  background-color: orange;
  cursor: pointer;
}

.phone-note-below {
  color: red;
  font-size: 14px;
}

.popup-background {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;

  background-color: gray;
  opacity: 0.5;
}

.popup {
  --height: 90%;
  --width: 90%;
  z-index: 101;
  position: fixed;
  top: calc(50vh - calc(var(--height) / 2));
  left: calc(50vw - calc(var(--width) / 2));
  height: var(--height);
  width: var(--width);

  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 3px 1px gray;
}

.popup > .close-button {
  --size: 20px;
  position: absolute;
  top: 5px;
  right: 5px;
  height: var(--size);
  width: var(--size);

  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: gray;
  font-size: var(--size);
  border-radius: calc(var(--size) / 5);
}

.popup > .close-button:hover {
  cursor: pointer;
}

.popup > .content {
  padding: 10px;
  text-align: center;
  height: var(--height);
  width: var(--width);
  overflow: scroll;
}

.popup-flag {
  display: none;
}

.popup-flag:not(:checked) + .popup-background {
  display: none;
}

.popup-flag:not(:checked) + * + .popup {
  display: none;
}

.content p,
.content h1,
.content h2,
.content a {
  width: 100%;
  text-align: left;
  margin: 0;
  display: block;
}

.content a {
  text-decoration: underline;
  cursor: pointer;
}

.content h1 {
  font-size: 24px;
}

.content h2 {
  font-size: 18px;
}

.input-note {
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  color: red;
  padding-top: 3px;
}

.next-button::after {
  position: absolute;
  font-size: 11px;
  color: gray;
  content: "※ご入力いただいた内容は公開されません";
  left: 10px;
  top: 60px;
}

#terms-link {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}

.last {
  margin-top: 20px;
}

.image-wrapper {
  margin-top: 10px;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  display: block;
}

#name-error {
  color: red;
  font-weight: bold;
  font-size: 12px;
}

.input-note-mini {
  position: absolute;
  top: -10px;
  right: 8px;
  font-size: 14px;
  background-color: lightgray;
  padding: 0 4px;
  font-weight: bold;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 95%;
}
