/* 
共通
*/

body {
  font-family: "Noto Sans JP", sans-serif, "Helvetica Neue", "Helvetica",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo",
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #424242;
  letter-spacing: 0.04em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

.button {
  display: block;
  width: 100%;
  padding: 20px;
  margin: 0 auto;
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 8px;
  cursor: pointer; /*hrefが入らない場合*/
  transition-duration: 0.2s;
  white-space: normal !important;
  word-break: break-word;
}

.button-primary {
  color: #fff;
  background-color: #fa8200;
}

@media (hover: hover) {
  .button-primary:hover {
    background-color: #f47100;
  }
}

.button-secondary {
  color: #fa8200;
  background-color: #fff;
  border: #fa8200 1px solid;
}

@media (hover: hover) {
  .button-secondary:hover {
    background-color: #fff4e0;
  }
}

.note {
  font-size: 14px;
  padding-left: 1em;
  text-indent: -1em;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.note > li {
  margin-top: 8px;
}

.sp,
.sp-br {
  display: none;
}

@media only screen and (max-width: 768px) {
  .pc,
  .pc-br {
    display: none;
  }
  .sp,
  .sp-br {
    display: block;
  }
}

/*
フォーム
*/

input[type="text"],
textarea,
select {
  width: 100%;
  height: 56px;
  padding: 16px 12px;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid #1c1c1c;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  outline: solid 2px #0017c1;
}

.input__half {
  max-width: 172px;
}

.input__cap {
  font-weight: 500;
  padding-left: 8px;
}

.select__wrap {
  position: relative;
}

.select__wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 28px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #1a1a1a;
  border-left: 1px solid #1a1a1a;
  transform: translateY(-50%) rotate(-135deg);
  pointer-events: none;
}

/* ラジオボタン */

.value span {
  position: relative;
  display: block;
  height: 56px;
  cursor: pointer;
}

.value span:nth-of-type(n + 2) {
  margin-top: 6px;
}

.value span input {
  position: absolute;
  appearance: none;
}

.value span label {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  border: 1px solid #1a1a1c;
  border-radius: 8px;
  font-weight: 500;
  padding-left: 54px;
}

@media (hover: hover) {
  .value span label:hover {
    background-color: #e8f1fe;
  }
}

.value span label {
  font-weight: 500;
  padding-left: 54px; /* 左側のボタン設置スペース確保のための設定 */
}

.value span label::before,
.value span input:checked + label::before {
  content: "";
  width: 20px; /* 白い丸の横の長さ */
  height: 20px; /* 白い丸の縦の長さ */
  border-radius: 50%; /* 丸くするための設定 */
  border: #1a1a1a 1px solid;
  position: absolute; /* 位置調整の起点をlabelの左上の角とするための設定 */
  top: 50%;
  left: 26px;
  transform: translate(
    -50%,
    -50%
  ); /* topとleftが丸の中心を基準とするための設定 */
}

.value span input:checked + label {
  border: 1px solid #0017c1;
  outline: 1px solid #0017c1;
}

.value span input:focus + label {
  outline: 2px solid #0017c1;
}

.value span input:checked + label::before {
  border: #0017c1 2px solid;
}

.value span input:checked + label::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0017c1;
  position: absolute;
  top: 50%;
  left: 26px;
  transform: translate(-50%, -50%);
}

.value span input:checked + label {
  outline: solid 2px #0017c1;
}

/* チェックボックス */

.checkbox__label {
  display: flex;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  border: 1px solid #1a1a1c;
  border-radius: 8px;
}

@media (hover: hover) {
  .checkbox__label:hover {
    background-color: #e8f1fe;
  }
}

input[type="checkbox"] {
  width: inherit;
  height: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: inherit;
  border: inherit;
  border-radius: inherit;
  box-sizing: inherit;
  min-width: 20px;
  min-height: 20px;
  accent-color: #0017c1;
  cursor: pointer;
  outline: none;
}

.checkbox__label__text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  padding-left: 16px;
}

@media only screen and (max-width: 768px) {
  .checkbox__label {
    padding: 15px 20px;
  }

  .checkbox__label__text {
    font-size: 16px;
  }
}

/* 
入力画面
*/

.form {
  padding: 0 16px;
}

.form-field:not(:first-of-type) {
  margin-top: 24px;
}

.submit {
  margin-top: 52px;
}

.errors {
  font-size: 18px;
  color: #ec0000;
  font-weight: 600;
}

.no-label {
  font-size: 14px;
  color: #ec0000;
  margin-top: 4px;
}

.field-label {
  font-size: 17px;
  font-weight: 600;
}

.required > .field-label::after {
  content: "必須";
  display: inline-block;
  margin-left: 8px;
  font-size: 16px;
  color: #ec0000;
  font-weight: 400;
}
