@charset "UTF-8";
/* CSS Document */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
  line-height: 1.6;
  color: #333;
}

#wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px 40px;
}

.required:before,
.required::before {
  content: "【必須】 ";
  color: #dc3545;
  font-weight: bold;
}

.optional:before,
.optional::before {
  content: "【任意】 ";
  color: #28a745;
  font-weight: bold;
}

.footer-note {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  color: #6c757d;
  font-size: 0.85rem;
}

.card-inner {
  display: flex;
  flex-wrap: wrap;
}

.card-label {
  width: 100%;
  background: #e9ecef;
  font-weight: bold;
  padding: 14px 16px;
  border-right: none;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-break: strict;
}

.card-content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card-label,
.card-label *,
.card-content,
.card-content *,
.custom-control-label,
.form-text,
p,
label {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .card-inner {
    flex-wrap: nowrap;
  }

  .card-label {
    width: 420px;
    flex: 0 0 420px;
    padding: 16px 16px;
    border-right: 1px solid #dee2e6;
    border-bottom: none;
  }

  .card-content {
    width: auto;
  }
}

@media (max-width: 767px) {
  #wrap {
    padding: 16px 12px 32px;
  }

  .card-inner {
    flex-direction: column;
  }

  .card-content {
    width: 100%;
    padding: 14px 16px;
  }

  .required:before,
  .required::before,
  .optional:before,
  .optional::before {
    display: inline;
    margin-right: 0.35em;
  }
}