@charset "UTF-8";

:root {
  --coop-b: #1e51a2;
  --coop-b-l: #d3e5ff;
  --reddish: #ff0000;
  --line: #aaa;
  --th-back: #eee;
}
#base * {
  box-sizing: border-box;
}
.ohtomo {
  width: 900px;
  margin: 40px auto;
  text-align: left;
}
.red {
  color: var(--reddish);
}
span.kome {
  display: block;
  margin-left: 1em;
  text-indent: -1em;
}
.formbox {
  border: solid 4px var(--coop-b);
  margin-bottom: 30px;
  padding: 0;
  border-radius: 20px;
}
.formbox h4 {
  position: relative;
  font-size: 22px;
  background-color: var(--coop-b-l);
  color: var(--coop-b);
  margin: 0;
  padding: 10px;
  padding-right: 5em;
  line-height: 1.2;
  border-radius: 16px 16px 0 0;
}
.formbox h4 span {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-block;
  padding: 5px 10px;
  color: #fff;
  background-color: var(--reddish);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
}
.formbox > div {
  margin: 20px;
  font-size: 18px;
}
.formbox > div.th {
  background-color: var(--th-back);
  padding: 10px;
  border-radius: 10px;
  font-size: 18px;
  margin-bottom: 0;
}
.formbox > div.th + div {
  margin-top: 5px;
}
textarea,
input[type="email"],
input[type="tel"],
input[type="text"] {
  border: solid 1px var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 18px;
  width: 100%;
}
input[name="coopno"] {
  width: 150px;
}
input[name="zip1"],
input[name="zip2"] {
  width: 100px;
  margin: 0 5px;
}
select {
  border: solid 1px var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 18px;

  width: 100px;
}
input[type="radio"],
input[type="checkbox"] {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.3em;
}
input[type="radio"],
input[type="checkbox"],
input[type="submit"],
label:has(input[type="radio"]),
label:has(input[type="checkbox"]),
select {
  cursor: pointer;
}
label {
  display: inline-block;
  margin: 5px 0;
}
input[name="other"] {
  width: 500px;
}
textarea.message {
  width: 100%;
}
.fontred {
  font-size: 20px;
  font-weight: bold;
}
div.th {
  position: relative;
}
div.th span {
  display: inline-block;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--reddish);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 6px;
}
.ninzu span {
  margin-right: 10px;
}
.ninzu {
  display: none;
  opacity: 0;
  transition: 0.5s;
}
.ninzu.vew {
  display: block;
  opacity: 1;
}

/* SP */
@media screen and (max-width: 679px) {
  .ohtomo {
    width: 100%;
    margin: 20px 15px;
  }
  .formbox {
    border: solid 3px var(--coop-b);
  }

  .formbox h4 {
    padding-right: 4em;
    border-radius: 17px 17px 0 0;
    font-size: 16px;
  }
  .formbox:first-child h4 {
    padding: 10px;
  }
  .formbox h4 span {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    line-height: 1;
    font-size: 14px;
    color: #fff;
    background-color: var(--reddish);
  }
  .formbox > div {
    margin: 10px;
    font-size: 16px;
  }
  .formbox > div.th {
    font-size: 16px;
  }
  textarea,
  input[type="email"],
  input[type="tel"],
  input[type="text"] {
    font-size: 16px;
  }
  input[name="other"] {
    width: calc(100% - 5em);
  }
  .ninzu span:first-child {
    padding: 2px;
    border-radius: 6px;
    background-color: var(--th-back);
  }
  .ninzu span {
    display: block;
    margin: 5px 0;
  }
  .ninzu {
    display: none;
    opacity: 0;
    transition: 0.5s;
  }
}
