/**
 * フォーム2用スタイルシート
 * index.htmlの下部エリアのフォーム（form2）用CSS
 */
@charset "utf-8";
:root {
  --color-main: #2c3e50;
  --color-label: #fff;
  --color-check: #e74c3c;
  --color-required: #e74c3c;
  --color-no-required: #2c3e50;
  --color-placeholder: #cccccc;
  --color-border: #cccccc;
  --color-input: #fafafa;
}
.form2-form-ttl {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-main);
}
@media screen and (max-width: 768px) {
  .form2-form-ttl {
    font-size: 3rem;
    line-height: 1.4;
  }
}
.form2-table {
  margin: 0 auto;
  padding: 0;
}
.form2-table tr {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  margin-bottom: 1.75em;
  gap: 2em;
}
@media screen and (max-width: 768px) {
  .form2-table tr {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 0em;
  }
}
.form2-table th,
.form2-table td {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}
.form2-table th {
  flex-basis: 35%;
  flex-shrink: 0;
}
.form2-table th label,
.form2-table th span.required-label,
.form2-table th span.optional-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 0;
  width: 100%;
  gap: 0.5em;
}
.form2-table th label.required-label::before,
.form2-table th span.required-label::before {
  content: "必須";
  display: inline-block;
  color: var(--color-label);
  padding: 0.25em;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.25rem;
  background-color: var(--color-required);
  flex-shrink: 0;
  line-height: 1.2;
}
@media screen and (max-width: 768px) {
  .form2-table th label.required-label::before,
  .form2-table th span.required-label::before {
    font-size: 1.75rem;
  }
}
.form2-table th label.optional-label::before,
.form2-table th span.optional-label::before {
  content: "任意";
  display: inline-block;
  color: var(--color-label);
  padding: 0.25em;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.25rem;
  background-color: var(--color-no-required);
  flex-shrink: 0;
  line-height: 1.2;
}
@media screen and (max-width: 768px) {
  .form2-table th label.optional-label::before,
  .form2-table th span.optional-label::before {
    font-size: 1.75rem;
  }
}
.form2-table th label.required-label > span,
.form2-table th span.required-label > span,
.form2-table th label.optional-label > span,
.form2-table th span.optional-label > span {
  flex: 1;
  min-width: 0;
}
.form2-table td {
  flex-basis: 65%;
  flex-grow: 1;
}
@media screen and (max-width: 768px) {
  .form2-table th,
  .form2-table td {
    font-size: 2rem;
    width: 100%;
  }
  .form2-table th {
    flex-basis: 100%;
    flex-shrink: 0;
  }
  .form2-table td {
    flex-basis: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media screen and (max-width: 768px) {
  .form2-table th label.required-label::before,
  .form2-table th span.required-label::before,
  .form2-table th label.optional-label::before,
  .form2-table th span.optional-label::before {
    font-size: 1.75rem;
  }
}
.form2-table input {
  margin: 0;
}
.form2-table input[type="text"],
.form2-table input[type="tel"],
.form2-table input[type="email"],
.form2-table textarea {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.5em;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  background-color: var(--color-input);
  -webkit-appearance: none;
  font-weight: 600;
  font-family: inherit;
  line-height: normal;
}
@media screen and (max-width: 768px) {
  .form2-table input[type="text"],
  .form2-table input[type="tel"],
  .form2-table input[type="email"] {
    font-size: 2rem;
  }
}
.form2-table textarea {
  display: block;
  resize: vertical;
}
.form2-table input::placeholder,
.form2-table textarea::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}
@media screen and (max-width: 768px) {
  .form2-table textarea {
    font-size: 2rem;
  }
}
.form2-table input[type="checkbox"],
.form2-table input[type="radio"] {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  accent-color: var(--color-check);
  margin: 0 0.5rem;
}
.form2-table td .radio-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-right: 0;
  margin-bottom: 0.5em;
}
.form2-table td .radio-option:last-of-type {
  margin-bottom: 0;
}
@media screen and (max-width: 768px) {
  .form2-table td .radio-option {
    display: flex;
    justify-content: flex-start;
    margin-right: 0;
    margin-bottom: 0.5em;
  }
  .form2-table td .radio-option:last-of-type {
    margin-bottom: 0;
  }
}
.form2-privacy-check {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}
@media screen and (max-width: 768px) {
  .form2-privacy-check {
    font-size: 1.75rem;
  }
}
.form2-privacy-check label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.form2-privacy-check input[type="checkbox"] {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  accent-color: var(--color-check);
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}
.form2-submit-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.form2-submit-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.form2-submit-btn img {
  display: block;
  max-width: 100%;
  height: auto;
}
.form2-memo {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 0.25em;
}
@media screen and (max-width: 768px) {
  .form2-memo {
    font-size: 1.5rem;
  }
}
