@charset "UTF-8";

:root {
  /* しが */
  --coopBlue: #1e51a2;
  --coopBlueH: #19458b;
  --coopSky: #009bc2;

  /* ぎふ */
  --coopGreen: #009b74;
  --coopGreenH: #007759;
  --coopOrange: #ed6d00;

  /* エラー用 */
  --formRed1: #ff2222;
  --formRed2: #ff5252;
  --formRed3: #ffe7e7;

  /* トランジション */
  --transTime: 0.2s ease;
}

/* 全体 */
html {
  scroll-behavior: smooth;
}
#contents {
  width: max(60%, 600px);
}
#contents-in {
  padding-top: 2.5rem;
}

/* 枠 */
.tr {
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 0.2rem;
}
.tr.notTr p {
  font-weight: normal;
}

/* 入力欄 */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
  width: 100%;
  height: 2.5rem;
  margin: 0;
  padding: 0.1rem 0.35rem;
  font-size: 1.05rem;
  line-height: 1rem;
  border: solid 1px #a8a8a8;
  border-radius: 0.5rem;
  box-sizing: border-box;
}
textarea {
  width: 100%;
  height: auto;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  line-height: 1.3;
  text-align: justify;
  box-sizing: border-box;
}
input[type="radio"],
input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: -0.4rem;
}
input[type="radio"],
input[type="checkbox"],
input[type="submit"],
label,
label:has(input[type="radio"]),
label:has(input[type="checkbox"]),
select {
  cursor: pointer;
}
select {
  transition: var(--transTime);
}
select:hover {
  background-color: #f4f4f4;
}
fieldset {
  padding: 0;
  border: none;
  box-sizing: border-box;
}
legend {
  font-weight: bold;
  font-size: 1rem;
}
label,
.tr p {
  display: block;
  margin: 0;
  font-weight: bold;
  cursor: default;
}
label:has(input[type="radio"]),
label:has(input[type="checkbox"]) {
  font-weight: normal;
}

/* エラー表示 */
p.errorText {
  padding: 1rem 0;
  line-height: 1.6;
  font-size: 1.1rem;
  text-align: center;
  font-weight: bold;
  color: var(--formRed1);
  background-color: var(--formRed3);
}
.tr span.errText {
  display: none;
}
.tr span.errText.is_checked {
  color: var(--formRed1);
  background-color: var(--formRed3);
  display: block;
  line-height: 1;
  font-size: 15px;
  font-weight: bold;
  border-radius: 0.3rem;
  margin-top: 0.2rem;
  padding: 0.25rem;
}
input.is_checked,
textarea.is_checked,
select.is_checked {
  border-color: var(--formRed2);
}
input.is_checked:focus,
textarea.is_checked:focus,
select.is_checked:focus {
  outline: solid 1px var(--formRed2);
}

/* flex */
.formFlex {
  display: flex;
  gap: 1rem;
}
.formFlex select:nth-of-type(1) {
  width: calc(100% * 0.15);
}
.formFlex select:nth-of-type(2) {
  width: calc(100% * 0.1);
}
.formFlex select:nth-of-type(3) {
  width: calc(100% * 0.1);
}

/* 必須・任意 */
.required,
.noneRequired {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: bold;
  margin-left: 0.3rem;
  padding: 0.2rem 0.4rem;
  border-radius: 1rem;
  line-height: 1;
  color: #fff;
  box-sizing: border-box;
  vertical-align: 0.1rem;
}
.required {
  background-color: var(--formRed1);
}
.noneRequired {
  background-color: #808080;
}
p:has(a.blank) {
  margin-top: 3rem;
}
.agree {
  border: solid 1px var(--formRed1);
  padding: 0.4rem 0.8rem;
}

/* Submitボタン */
.submitBtn {
  text-align: center;
}
.submitBtn input[type="submit"] {
  border: none;
  width: 20rem;
  height: fit-content;
  text-align: center;
  border-radius: 0.5rem;
  margin: 4rem auto;
  padding: 0.8rem 0;
  font-size: 1.15rem;
  color: #fff;
  background-color: var(--coopBlue);
  transition: var(--transTime);
}
.submitBtn input[type="submit"]:hover {
  background-color: var(--coopBlueH);
}

/* 確認画面 */
p.checkField {
  width: 100%;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: normal;
  margin: 0;
  padding: 0.8rem 1rem;
  background-color: #e7e7e7;
  box-sizing: border-box;
}
.checkTable .submitBtn input[type="submit"] {
  margin-bottom: 1.5rem;
}
.submitBtn.gray input[type="submit"] {
  margin: 0 auto;
  background-color: #929292;
}
.submitBtn.gray input[type="submit"]:hover {
  background-color: #aaa;
}

/* 送信完了画面 */
.thanks p {
  text-align: center;
  font-size: 20px;
  margin: 50px;
}

/* -------------------------------- */

/* SP */
@media screen and (max-width: 679px) {
  /* 全体 */
  #contents {
    width: calc(100% - 20px);
  }
  #contents-in {
    padding-top: 0;
  }

  /* 枠 */
  .tr {
    margin-top: 1.5rem;
  }

  /* 入力欄 */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  textarea,
  select {
    font-size: 1rem;
    border-radius: 0.25rem;
  }
  input[type="radio"],
  input[type="checkbox"] {
    vertical-align: -0.35rem;
  }
  label,
  .tr p {
    font-size: 0.95rem;
  }

  /* エラー表示 */
  .tr span.errText1.is_checked,
  .tr span.errText2.is_checked,
  .tr span.errText3.is_checked,
  .tr span.errText4.is_checked,
  .tr span.errText5.is_checked,
  .tr span.errText6.is_checked,
  .tr span.errText7.is_checked,
  .tr span.errText8.is_checked,
  .tr span.errText9.is_checked {
    padding: 0.25rem;
  }

  /* flex */
  .formFlex select:nth-of-type(1) {
    width: calc(100% * 0.5);
  }
  .formFlex select:nth-of-type(2) {
    width: calc(100% * 0.25);
  }
  .formFlex select:nth-of-type(3) {
    width: calc(100% * 0.25);
  }

  /* 必須・任意 */
  .required,
  .noneRequired {
    padding: 0.25rem 0.4rem;
    vertical-align: text-top;
  }
  p:has(a.blank) {
    margin-top: 2rem;
  }

  /* Submitボタン */
  .submitBtn input[type="submit"] {
    width: 100%;
    border-radius: 0.5rem;
    margin: 4rem auto;
    padding: 0.8rem 2.5rem;
    background-color: var(--coopBlue);
  }
}
