@charset "utf-8";
/*===============================
追加したクラス一覧
.requiredErr （ <p style="color:red">必ず入力してください。</p> の style="color:red" を削除して、このクラス名を追加　赤いエラー文字の時に使用）
.icon_required （<span>必須</span> に、このクラス名を追加）
.icon_optional （<span>任意</span> に、このクラス名を追加）
.notes　（添付ファイルのMAXサイズは～のところ 黒い注釈文に使用）
.form_row　（checkboxとradioを横並びにしたいときに使用 縦並びにしたいときはこのクラスを外すだけ）
html変更点　プライバシーポリシーをかこっているtdと次へボタンのtdにcolspan="2"をつけた
=================================*/
p{margin: 0;padding: 0;font-size: 16px;}
div.form-content{width: 100%;max-width: 1000px;margin: 0 auto;}
html,
input,
input[type="text"]::placeholder,
::file-selector-button,
button{
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', arial, helvetica, sans-serif;
  box-sizing: border-box;
}

/*----------------------------------------------
  table
---------------------------------------------*/
.form-content {
  padding: 50px;
  background: #fafafa;
  display: none;
}
#form-content-top {
  padding-top: 90px;
}
/*----------------------------------------------
  a
---------------------------------------------*/
.form-content a {
  color: #00A4BD;
}

/*----------------------------------------------
  必須・任意アイコン
---------------------------------------------*/
.form-content .icon_required,
.form-content .icon_optional {
  margin: 0 0 auto 50px;
  padding: 1px 10px;
  border-radius: 100px;
  color: #fff;
  white-space: nowrap;
}
.icon_required {
  background: #BD0000;
}
.icon_optional {
  background: #ccc;
}

/*----------------------------------------------
  td
---------------------------------------------*/
/* 左側 */
.form-content td:nth-child(1):not(:only-child) {
  display: flex;
  justify-content: space-between;
  margin-right: 10px;
  font-size: 14px;
}

/* 右側 */
.form-content td:nth-child(2) {
  vertical-align: top;
  width: 65%;
  padding-bottom: 30px;
}

/* プライバシーポリシー */
.form-content td:only-child {
  padding-bottom: 30px;
  text-align: center;
  color: #333;
}

/* label */
.form-content label {
  color: #808080;
}

/* 必須エラー */
.requiredErr,.checkboxErr{
  margin-top: 5px;
  color: #BD0000;
  font-size: 12px;
}

/* 注釈文 */
.notes,.explanation {
  margin-top: 5px;
  color: #333;
  font-size: 12px;
}


/*----------------------------------------------
  input（全体）
---------------------------------------------*/
.form-content input:not(.file_name,[type="checkbox"],[type="radio"]) {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
.form-content input:focus {
  outline: none;
}
.form-content ::placeholder {
  color: #ccc;
}

/*----------------------------------------------
  input（ファイルを選択）
---------------------------------------------*/
.form-content input[type="file"] {
  display: none;
}
.file_btn {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 5px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: #00A4BD;
  cursor: pointer;
  color: #fff;
  text-align: center;
}
.file_btn:hover {
  opacity: 0.8;
}
.file_name{
  width: 85%;
  padding: 5px 5px;
  border: none;
  background: none;
  cursor: default;
  color: #fff;
}
.file_wrap:has(.file_name:placeholder-shown) {
  display: none!important;
  -webkit-display: none;
}
.file_wrap {
  position: relative;
  padding: 0px 20px;
  border-radius: 4px;
  border: none;
  background: #ccc;
}
.file_wrap::before {
  content: "";
  background-image: url(./icon_link.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  padding: 8px;
}
.file_delete {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 8px;
  transform: translateY(-50%);
  background-image: url(./icon_delete.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  cursor: pointer;
}

/*----------------------------------------------
  checkbox
---------------------------------------------*/
.checkbox.form_row {
  display: flex;
}
.checkbox li {
  display: flex;
  align-items: center;
  margin: 0 15px 10px 0;
  color: #333;
}
.form-content input[type="checkbox"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
  width: 26px;
  height: 26px;
  margin-right: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}
.form-content input[type="checkbox"]:checked {
  border: 1px solid #00A4BD;
  background: #00A4BD;
}
.form-content input[type="checkbox"]::after {
  content: none;
}
.form-content input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: inline-block;
  width: 14px;
  height: 13px;
  background-image: url(./icon_check.png);
  background-size: cover;
}

/*----------------------------------------------
  radio
---------------------------------------------*/
.radio.form_row {
  display: flex;
}
.radio li {
  display: flex;
  align-items: center;
  margin: 0 15px 10px 0;
  color: #333;
}
.form-content input[type="radio"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 0 5px 0 0;
  border: 1px solid #ccc;
  border-radius: 100px;
  background: #fff;
}
.form-content input[type="radio"]:checked {
  border: 1px solid #00A4BD;
}
.form-content input[type="radio"]::before {
  position: absolute;
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  place-content: center;
  background-color: #fff;
  border-radius: 100px;
}
.form-content input[type="radio"]:checked::before {
  color: #00A4BD;
  background-color: #00A4BD;
}
label{
  display: flex;
  align-items: center;
}

/*----------------------------------------------
  select
---------------------------------------------*/
.form-content select {
  box-sizing: border-box;
  width: 100%;
  padding: 0.6rem 1rem;
  background-image: url(./arrow.png), linear-gradient(90deg, #00A4BD, #00A4BD);
  background-position: right 7px top 50%, right;
  background-size: 10px, 1.5em 3.5em;
  background-repeat: no-repeat;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  color: #333;
  font-size: 16px;
  appearance: none;
}
.form-content select:hover {
  opacity: 0.8;
}

.form-content select:focus {
  outline: none;
}

/*----------------------------------------------
  textarea
---------------------------------------------*/
.form-content textarea {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  resize: none;
}

/*----------------------------------------------
  button
---------------------------------------------*/
.form-content tr:last-child td {
  display: table-cell;
  text-align: center;
}

.form-content button {
  display: block;
  width: 100%;
  padding: 20px 0;
  border: 1px solid #00A4BD;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  background: #00A4BD;
  font-size: 20px;
}
.form-content button:not(button:disabled):hover {
  opacity: 0.8;
}

.form-content button:disabled {
  border: 1px solid #ccc;
  cursor: default;
  color: #fff;
  background: #ccc;
}

/*----------------------------------------------
  レスポンシブ
---------------------------------------------*/
@media (max-width: 768px){
  table {
    padding: 50px 5%;
    background: #fafafa;
  }

  .form-content tr {
    display: grid;
  }
  .form-content td:nth-child(1) {
    justify-content: flex-start;
    margin: 0 0 5px 0;
  }
  .form-content td:nth-child(2) {
    width: 100%;
  }
  .form-content td:nth-child(1):not(:only-child) {
    display: flex;
    justify-content: flex-start;
    margin-right: 0;
  }
  
  .form-content .icon_required,
  .form-content .icon_optional {
    margin: auto 0 auto 15px;
    padding: 1px 10px;
    border-radius: 100px;
    color: #fff;
    white-space: nowrap;
  }
}
