@charset "utf-8";

/* 基本設定 */
:root {
  --base-bg-color:#E3007F;
  --accent-color: #FFAA33;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  margin-bottom: 3rem;
  background-color: var(--base-bg-color);
  color: #ffffff;
  height: min(10vh, 5rem);
  display: flex;
  align-items: flex-end;
  padding-left: 0.5rem;
  padding-bottom: 0.3rem;
  min-width: 980px;
}

h2 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 0;
}

.h_1 {
  font-size: 2rem;
}

.container {
  min-width: 980px !important;
  max-width: 980px !important;
  margin: 3rem auto;
}

.container ul {
  list-style-type: none;
}

.container ul li::before {
  content: "※";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 1rem;
}

[name *="booth"] {
  display: inline-block;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  height: 3rem;
  color: #495057;
  background-color: #fdfdfd;
  border: 1px solid #ced4da;
  border-radius: 0.4rem;
  margin-right: 1rem;
  width: 390px;
}

.part-err {
  color: #ff0000;
}

.mini-container {
  margin: 1.5rem 0;
}

legend {
  display: flex;
  align-items: center;
}

legend::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  background-image: url(../images/arrow-right.png);
  background-repeat: no-repeat;
  background-size: contain;
  /* background-color: var(--base-bg-color); */
}

legend+div {
  background-color: #eee;
  padding: 1rem 0.5rem 0.5rem;
  border-radius: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

legend+div>div {
  flex-shrink: 0;
}

legend+div label {
  text-align: center;
  flex: 0 0 130px;
}

.form-container {
  display: flex;
  flex-wrap: wrap;
}

.form-container dt {
  width: 30%;
  padding: 2rem 0;
}

.form-container dt.required.required::before {
  content: "必須";
  display: inline-block;
  width: 3rem;
  background-color: var(--accent-color);
  color: #ffffff;
  border-radius: 6px;
  text-align: center;
  margin-right: 1rem;
  font-size: 0.8rem;
  font-weight: normal;
  line-height: 2;
}

.form-container dd {
  width: 70%;
  padding: 1rem 0 1rem 2rem;
}

.form-container dt,
.form-container dd {
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.form-container dd input:not(:first-child) {
  margin-left: 1rem;
}

p.send-btn {
  text-align: center;
}

button {
  border: none;
  background-color: darkcyan;
  color: #ffffff;
  width: 10rem;
  line-height: 3;
  border-radius: 5px;
}

button:hover {
  background-color: var(--accent-color);
}

input {
  width: 80%;
  height: 1.5rem;
  background-color: #eee;
  border: none;
  border-radius: 5px;
  padding: 0 0.8rem;
}

.form-container dd input[type="radio"] {
  height: 1.5rem;
}

textarea {
  border: none;
  background-color: #eee;
  resize: vertical;
  width: 80%;
  min-height: 10rem;
  padding: 0.8rem;
}

.lb-radio {
  text-align: center;
  flex: 0 0 130px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

p.send-btn button {
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
}

.form-container span {
  font-size: min(12px, 16px);
  margin-right: 1rem;
}

.form-container .align-fs {
  display: flex;
  align-items: flex-start;
}

.error {
  display: block;
  color: #ff0000;
  margin-bottom: 1rem;
}

[name="sei"]+.error {
  order: 1;
}

[name="mei"]+.error {
  order: 2;
}

.btn-primary {
  border-color: var(--base-bg-color);
  background-color: var(--base-bg-color) !important;
}

.btn-primary:hover {
  border-color: var(--accent-color) !important;
  background-color: var(--accent-color) !important;
}

.btn-primary:active {
  border-color: var(--accent-color) !important;
  background-color: var(--accent-color) !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  border: 1px solid #ced4da !important;
  background-color: #ced4da !important;
  cursor: not-allowed;
}

.btn-contolor {
  text-align: center;
}

.confirm {
  display: inline;
}

/* 同意チェックボックス */
#consent {
  border: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 0 2rem 1rem;
  margin-bottom: 2rem;
}

#consent h2 {
  font-size: 1rem;
}

#consent p {
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
}

#consent label {
  width: max(200px, 250px);
  font-size: 1.3rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-around;
}

#consent input[type="checkbox"] {
  height: 1.3em;
}

/* confirm.php */
#confirm .btn-contolor {
  display: flex;
  justify-content: center;
}

#confirm .btn-contolor form:first-of-type {
  margin-right: 0.5rem;
}

.btn-success {
  border-color: var(--base-bg-color);
  background-color: var(--base-bg-color) !important;
}

.btn-success:hover {
  border-color: var(--accent-color) !important;
  background-color: var(--accent-color) !important;
}

.btn-success:active {
  border-color: var(--accent-color) !important;
  background-color: var(--accent-color) !important;
}

.sp {
  display: none;
}

.btn-secondary {
  background-color: #6c757d !important;
}

.body,
.body textarea {
  width: 100%;
}

.body textarea {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.375rem 0.75rem;
  min-height: 5rem;
}

.body ul {
  font-size: 0.8rem;
  margin: 1rem auto;
}

/* レスポンシブ */
@media (max-width: 768px) {
  h1 {
    min-width: initial;
  }

  .h_1 {
    font-size: min(2.5rem, 4.5vw);
    margin-bottom: 2rem;
  }

  p {
    font-size: 0.9rem;
  }

  .container {
    min-width: initial !important;
    max-width: initial !important;
  }

  .form-container {
    display: block;
  }

  .form-container dt {
    width: 100%;
    padding: 1rem 0.5rem;
    border-bottom: none;
  }

  .form-container dd {
    width: 100%;
    padding: 0;
  }

  input {
    width: 100%;
    margin-bottom: 1rem;
  }

  legend+div {
    flex-direction: column;
  }

  legend+div label {
    flex: auto;
  }

  [name *="booth"] {
    width: 100%;
    margin-left: 1rem;
  }

  .service {
    margin-top: 2rem;
  }

  .form-container dd input:not(:first-child) {
    margin-left: 0;
  }

  .form-container dd input[name="address"] {
    width: 100%;
  }

  textarea {
    width: 100%;
  }

  p.send-btn {
    margin-top: 2rem;
  }

  dd.dd-radio {
    flex-wrap: nowrap;
  }

  .btn-contolor {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
  }

  .btn-contolor button {
    margin-bottom: 0.5rem;
  }

  .lb-radio {
    font-size: min(14px, 1rem);
    flex: 1;
  }

  #confirm .btn-contolor form:first-of-type {
    margin-right: 0;
  }

  #confirm .form-container dd {
    padding-bottom: 1rem;
  }

  #consent p {
    font-size: 4.5vw;
  }

  #consent input[type="checkbox"] {
    width: 50%;
  }

  .sp {
    display: inline;
  }

  .body {
    flex-direction: column;
  }
}
