@charset "UTF-8";

/* 変数 */
:root {
  --coop-blue: #1e51a2;
  --coop-blue-h: #123f88;
  --error-red1: #ff3636;
  --error-red2: #ff5252;
  --error-red3: #ffe7e7;
  --img-green: #208023;
  --img-green-h: #166b19;

  --transTime: 0.1s;
}

/* 全体 */
* {
  margin: 0;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
#contents {
  width: min(100%, 1000px);
}
#contents-in {
  padding-top: 50px;
  padding-left: 120px;
  padding-right: 120px;
}
.hidden,
.dellno {
  display: none;
}

/* フォーム */
span.warnText {
  color: var(--error-red1);
}
.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;
  padding: 0.1rem 0.35rem;
  border: solid 1px #a8a8a8;
  border-radius: 0.4rem;
  line-height: 1rem;
  font-size: 1.05rem;
  background-color: #f7f7f7;
}
input[type="radio"],
input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.25rem;
  vertical-align: -0.4rem;
  accent-color: var(--coop-blue);
}
input[type="radio"],
input[type="checkbox"],
input[type="submit"],
label,
label:has(input[type="radio"]),
label:has(input[type="checkbox"]),
select,
button,
.btn,
.photodell > div {
  cursor: pointer;
}
textarea {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  height: auto;
  line-height: 1.3;
  text-align: justify;
}
input#u_part {
  width: 20%;
}
select {
  transition: var(--transTime);
}
@media screen and (min-width: 680px) {
  select:hover {
    background-color: #f4f4f4;
  }
}
fieldset {
  padding: 0;
  border: none;
}
legend {
  font-weight: bold;
  font-size: 1rem;
}
label,
.tr p {
  display: block;
  margin: 0;
  margin-bottom: 0.15rem;
  font-weight: bold;
  line-height: 1.5rem;
  cursor: default;
}
label:has(input[type="radio"]),
label:has(input[type="checkbox"]) {
  display: inline-block;
  font-weight: normal;
}
.label:has(+ .label) {
  margin-bottom: 0.5rem;
  margin-right: 1rem;
}
.tr fieldset:has(+ fieldset) {
  margin-bottom: 0.75rem;
}
.tr fieldset span {
  display: block;
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
  background-color: #eeeeee;
}

/* 画像アップロード */
.photobox > div {
  display: flex;
  gap: 2rem;
  margin-top: 0.2rem;
}
.area {
  width: 15rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #eee;
}
.file-drop-area {
  text-align: center;
}
.btn,
.photodell > div {
  width: 100%;
  border-radius: 0.2rem;
  margin: 0.5rem 0;
  padding: 0.6rem 0;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.04rem;
  color: #ffffff;
  background-color: var(--img-green);
  transition: var(--transTime);
}
@media screen and (min-width: 680px) {
  .btn:hover,
  .photodell > div:hover {
    background-color: var(--img-green-h);
  }
}
.btn + p {
  font-weight: normal;
  font-size: 0.9rem;
}

p.errorText {
  color: var(--error-red1);
  background-color: var(--error-red3);
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 1rem 0;
}

/* エラー表示 */
.tr span.errText,
span.zen {
  display: none !important;
}
.tr span.errText.is_checked,
span.zen.is_checked {
  display: block !important;
  margin-top: 0.2rem;
  padding: 0.5rem;
  border-radius: 0.3rem;
  line-height: 1;
  font-size: 1rem;
  font-weight: bold;
  color: var(--error-red1);
  background-color: var(--error-red3);
}
.tr:has(.required) input.is_checked,
.tr:has(.required) textarea.is_checked,
.tr:has(.required) select.is_checked {
  border-color: var(--error-red2);
}
.tr:has(.required) input.is_checked:focus,
.tr:has(.required) textarea.is_checked:focus,
.tr:has(.required) select.is_checked:focus {
  outline: solid 1px var(--error-red2);
}
.formFlex {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
}
.formFlex > * {
  min-width: 0;
}
.formFlex select:nth-of-type(1) {
  width: calc(100% * 0.15) !important;
}
.formFlex select:nth-of-type(2) {
  width: calc(100% * 0.1) !important;
}
.formFlex span {
  display: inline-block;
  margin-right: 0.7rem;
}
label > span:not(.required),
.tr p > span:not(.required) {
  display: inline-block;
  font-weight: normal;
  font-size: 0.9rem;
}
.required,
.noneRequired {
  display: inline-block;
  font-size: 0.8rem !important;
  font-weight: bold !important;
  margin-left: 0.3rem;
  padding: 0.2rem 0.4rem;
  border-radius: 1rem;
  line-height: 1;
  color: #fff;
  vertical-align: 0.15rem;
}
.required {
  background-color: var(--error-red1);
}
.noneRequired {
  background-color: #555;
}
p:has(a.blank) {
  margin-top: 3rem;
}
.agree {
  border: solid 1px var(--error-red1);
  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(--coop-blue);
  transition: var(--transTime);
}
@media screen and (min-width: 680px) {
  .submitBtn input[type="submit"]:hover {
    background-color: var(--coop-blue-h);
  }
}

/* 確認画面 */
p.checkField {
  width: 100%;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: normal !important;
  text-align: justify;
  margin: 0 !important;
  padding: 0.8rem 1rem;
  background-color: #e7e7e7;
}
.checkField img {
  width: 15rem;
  height: auto;
  vertical-align: middle;
  margin-right: 2rem;
}
.checkTable .submitBtn input[type="submit"] {
  margin-bottom: 1.5rem !important;
}
.submitBtn.gray input[type="submit"] {
  margin: 0 auto;
  background-color: #929292;
}
@media screen and (min-width: 680px) {
  .submitBtn.gray input[type="submit"]:hover {
    background-color: #aaa;
  }
}

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

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

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

  /* フォーム */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  textarea,
  select {
    font-size: 1rem !important;
  }
  input[type="radio"],
  input[type="checkbox"] {
    vertical-align: -0.35rem;
  }
  label,
  .tr p {
    font-size: 0.95rem;
  }
  .label:has(+ .label) {
    margin-bottom: 0.25rem;
  }
  .tr fieldset:has(+ fieldset) {
    margin-bottom: 0.8rem;
  }
  .tr fieldset span {
    padding: 0.1rem 0;
    border-radius: 0.15rem;
  }

  /* 画像アップロード */
  .photobox > div {
    display: block;
  }
  .area {
    width: 100%;
  }
  .area:not(:first-of-type) {
    margin-top: 0.6rem;
  }
  .btn,
  .photodell > div {
    width: 60%;
    margin: 0.5rem auto;
    padding: 0.75rem 0;
  }
  .btn + p {
    font-weight: normal;
    font-size: 0.9rem;
  }

  /* エラー表示 */
  .tr span.errText.is_checked span.zen.is_checked {
    padding: 0.25rem;
  }
  .formFlex {
    gap: 0.5rem;
  }
  .formFlex select:nth-of-type(1) {
    width: calc(100% * 0.3) !important;
  }
  .formFlex select:nth-of-type(2) {
    width: calc(100% * 0.2) !important;
  }
  span.caution {
    line-height: 1.4;
  }
  .required,
  .noneRequired {
    vertical-align: text-top;
  }
  p:has(a.blank) {
    margin-top: 2rem !important;
  }

  /* Submitボタン */
  .submitBtn input[type="submit"] {
    width: 100%;
    padding: 0.8rem 2.5rem;
  }
}
