:root {
  --fw-normal: 400;
  --fw-bold: 700;
  --color-main: #582bca;
  --color-main-deep: #360d9b;
  --color-red: #f333ad;
  --color-blue: #582bca;
  --color-yellow-light: #ffffe6;
}

body {
  background: #fdf7fc;
  color: #222;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", Meiryo, Osaka, "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic Pro", "メイリオ", "MS PGothic", sans-serif !important;
  -webkit-text-size-adjust: 100%;
  font-size: 19px;
  line-height: 1.8;
}


a {
  color: var(--color-blue);
  text-decoration: underline;
  outline: none;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

.error {
  background-color: #FFFF80 !important;
}

div#container {
  width: 900px;
}

small {
  font-size: 0.9em !important;
}

div#container {
  padding: 15px 25px 50px;
}

table#input_form td.action {
  padding: 20px 0;
}

table#input_form th,
table#input_form td {
  padding: 9px;
  border-color: rgba(88, 43, 202, 0.25);
}

table#input_form.conf td {
  vertical-align: top;
}

input:disabled+label {
  opacity: 0.35;
}

input[type="text"],
select,
textarea {
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(88, 43, 202, 0.75);
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(88, 43, 202, 0.15);
}

input[type="text"]:disabled,
select:disabled,
textarea:disabled {
  background-color: #f5f5f5 !important;
  border-color: #ddd;
  color: #bbb;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23582bca' d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E") !important;
  cursor: pointer;
}

select:disabled {
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23bbbbbb' d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E") !important;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--color-main);
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
}

select:not([name^="birth_"]):not([name$="_num"]):not([name^="group_departure"]) {
  min-width: 50%;
}

select[name^="group_departure"] {
  width: 30%;
}

select[name^="room_"]:not([name^="room_type"]),
input[type="text"][name^="room_"]:not([name^="room_type"]) {
  min-width: calc(100% - 14px);
}

select option:disabled {
  background: #e0e0e0;
  color: #999;
}

[name="agreement"] {
  scale: 1.5;
}

#form_fc_cd,
#form_first_nm,
#form_last_nm,
#form_first_kana,
#form_last_kana {
  width: 37%;
}

#form_birth_year {
  width: 100px;
}

input[type="text"][name^="room_"] {
  width: 50%;
  max-width: 50%;
}

input[type="text"][name^="contact_"] {
  width: 50%;
}

input[type="text"][name^="group_"] {
  width: 30%;
}

input[type="text"][name*="tel"],
input[type="text"][name*="cellphone"] {
  width: 100px;
  max-width: 100px;
}

textarea {
  width: 90% !important;
  height: 6em;
}

#form_fc_email {
  width: 75%;
}

.warning,
.red {
  color: var(--color-red);
}

.blue {
  color: var(--color-blue);
}

.bg_info {
  padding: 5px 15px !important;
  margin: 5px auto 0;
  background: var(--color-yellow-light);
  line-height: 1.65;
}

div#form_title {
  background: var(--color-main-deep);
  color: #fff;
  border: 6px double var(--color-main);
  border-radius: 10px;
}

table#input_form .header_title {
  background: var(--color-main);
  font-size: 1.35em;
  line-height: 1.35em;
}

table#input_form th.input_title {
  background: var(--color-main);
  color: #fff;
}

table#input_form td.action {
  background: var(--color-main);
  color: #fff;
}

table#input_form td.action input[type="submit"],
table#input_form td.action input[type="button"] {
  background: #fff;
  color: var(--color-main-deep);
  border: none;
  border-radius: 100vw;
  font-weight: var(--fw-bold);
  font-size: 1.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

table#input_form td.action input[type="submit"]:hover,
table#input_form td.action input[type="button"]:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.error-msg {
  border: 1px solid var(--color-red);
  padding: 10px;
}

.error-title {
  color: var(--color-red);
  background: #fff;
  font-weight: bold;
  padding: 0 5px;
}

.error-style {
  color: var(--color-red);
}

dl {
  display: flex;
  flex-wrap: wrap;
}

dt {
  width: 28%;
}

dd {
  width: 72%;
}

.group-entry {
  margin: 8px 0;
}

.group-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
}

.group-num {
  width: 20px;
  flex-shrink: 0;
  font-weight: var(--fw-bold);
  text-align: center;
}

.group-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.group-label {
  flex-shrink: 0;
  white-space: nowrap;
}

.group-label-1 {
  width: 70px;
}

.group-label-2 {
  width: 150px;
}

.group-row .group-field select,
.group-row .group-field input[type="text"] {
  flex: 1;
  width: 14em;
  min-width: 0;
}