/*全体*/
.container {
  border: none;
  font-family: "Clarimo UD PE Regular", "Gothic MB101 Regular JIS2004", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #333333;
  font-size: 16px;
  line-height: 1.7;
  padding: 30px 15px 50px;
}

/*form-new*/
.form-column {
  display: flex;
  align-items: center;
  /*  justify-content: space-between;*/
  border-bottom: none;
  margin-top: 40px;
  gap: 30px;
}

@media (width < 768px) {
  .form-column {
    flex-direction: column;
    margin-block: 20px 0;
    gap: .5rem;
  }
}

.label {
  position: relative;
  width: 250px;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.16em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1;
  margin-bottom: 0;
}

/* 補足文がある場合 */
.form-column:has(.description-block) {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: 1fr .5fr;
  row-gap: 0;
}

@media (width < 768px) {
  .form-column:has(.description-block) {
    display: flex;
    gap: .5rem;
  }
}

.form-column:has(.description-block) .label {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

.form-column:has(.description-block) .label+* {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  width: 100%;
  max-width: 100%;
}

.form-column:has(.description-block) .description-block {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
  margin-top: 0;
  width: 100%;
  font-size: 14px;
  margin-bottom:0;
}

/* アップロード */
.label:has(.restriction-max-file-size) {
  display: block;
}

.label:has(.restriction-max-file-size) .badge-required {
  display: inline-block;
  float: right;
  margin-top: -10px;
}

.restriction-max-file-size {
  margin-left: 0;
  line-height: 1.6;
  display: inline-block;
}

@media (width < 768px) {
  .label {
    width: 100%;
    background-color: #eeeeee;
    justify-content: center;
    padding: 1rem;
    gap: 2rem;
  }
}

.badge-required {
  font-size: 14px;
  color: #fff;
  background: #666;
  padding: .5rem .8rem;
  display: block;
  margin-left: 0;
}

@media (width < 768px) {
  .label:has(.restriction-max-file-size) {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
  }

  .label:has(.restriction-max-file-size) .badge-required {
    float: none;
    margin-top: 0;
    margin-left: 1em;
  }
}

.form-column.form-column-file {
  align-items: flex-start;
}

input[type="file"] {
  field-sizing: content;
  word-break: break-all;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  width: calc(100% - 250px - 30px);
  padding: 1rem 1.5rem;
  font-size: 16px;
  border: 1px solid #cccccc;
}
select {
  border: 1px solid #cccccc;
}

@media (width < 768px) {

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cccccc;
  }

  select {
    width: 100%;
  }
}


/*button-new*/
.button-group {
  margin-inline: auto;
  display: flex;
  gap: 38px;
  justify-content: center;
  padding-top: 32px;
}

@media (width < 768px) {
  .button-group {
    flex-direction: column;
    width: 100%;
    margin-inline: auto;
    gap: 8.5333vw;
    align-items: center;
  }
}

.button {
  width: 50vw;
  max-width: 420px;
  height: 70px;
  font-size: 4.26vw;
  line-height: 2em;
  background-color: #333333;
  color: #ffffff;
  font-family: "Clarimo UD PE Medium", "Gothic MB101 Medium JIS2004", sans-serif;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.1em;
  position: relative;
  border: none;
  cursor: pointer;
  transition: filter 0.3s, opacity 0.3s;
  font-size: 16px;
  margin-right: 0;
}

@media (width < 768px) {
  .button {
    max-width: initial;
    width: 100%;
  }
}

.button:hover {
  filter: contrast(60%);
  opacity: 0.8;
}

/*確認画面*/
..message-block-confirmation {
  margin-block: 1.5em;
}

.content-confirmation .form-column {
  justify-content: left;
  gap: 30px;
}

.content-confirmation .form-column:has(.description-block) {
  row-gap: 0;
}

@media (width < 768px) {
  .content-confirmation .form-column {
    gap: 0;
  }
}

.content-confirmation .form-column.form-column-recaptcha {
  justify-content: center;
  margin-top: 70px;
}

.preview-block {
  width: calc(100% - 250px - 30px);
  background: #eee;
  padding: 1rem 1.5rem;
}

@media (width < 768px) {
  .preview-block {
    width: 100%;
    background: none;
  }
}

.content-confirmation .button-group {
  flex-wrap: wrap;
}

@media (width < 768px) {
  .content-confirmation .button-group {
    gap: 4vw;
  }
}

.content-confirmation .button-group .button {
  width: 40%;
  margin-right: 0px;
}

@media (width < 768px) {
  .content-confirmation .button-group .button {
    width: 100%;
  }
}

.help-block {
  color: #999999;
  flex-basis: 100%;
  text-align: center;
}

.content-confirmation .button[disabled] {
  background-color: #cccccc;
}