/* Element styles */
body {
  background: linear-gradient(#001e64, rgba(0, 0, 0, 0));
  background-size: 100% 552px;
  background-repeat: no-repeat;
  background-color: #00001d;

  color: #ffffff;

  --theme-color: #dabf4a;
  --btn-color: #c5a92e;
  font-size: 15px;
  font-family: "Noto Sans JP", sans-serif;
  font-feature-settings: "palt";
}

h1 {
  color: var(--theme-color);
  text-align: center;

  margin-bottom: 8em;
  font-weight: 700;
}

h2 {
  color: var(--theme-color);
  text-align: center;
  padding-bottom: 1em;
  font-weight: 700;
  font-size: 1.3em;

  max-width: 670px;
  margin: 0 auto;
  border-bottom: 1px solid currentColor;
  margin-bottom: 1.5em;
}

h3 {
  text-align: center;
  font-weight: 700;
  font-size: 1.15em;
  margin-bottom: 1.5em;
}

header {
  padding-left: 2em;
  padding-top: 2em;
  margin-bottom: 3.3em;
}

.container {
  max-width: 979px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: 1em;
  font-weight: 700;
}

input,
select,
textarea {
  color: #000000;
  border: 1px solid #f5de7b;
  background-color: #ffffff;
  padding: 0.5em .25em;
  margin-bottom: 1em;

  width: 300px;
  line-height: 1.2; /*ベースラインの調整*/
}

textarea {
  width: 100%;
}

.select-with-triangle {
  position: relative;
  display: inline-block;
}

.select-with-triangle select {
  padding-right: 3em;
}

.select-with-triangle::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--theme-color);
  border-bottom: 2px solid var(--theme-color);
  transform: rotate(45deg);

  pointer-events: none;
}

/* Form styles */

.form-attentions,
#input-form,
#contact-confirm,
#contact-uncompleted,
#contact-completed {
  max-width: 610px;
  margin: 0 auto;
  margin-bottom: 5em;
}
.form-attentions {
  line-height: 1.6;
}
.form-attentions li::marker {
  content: "・";
  line-height: 1.6;
}
.form-attentions .red {
  color: #ff0000;
}
.invalid-feedback {
  color: #ff0000;
}
.confirm-contact-text{
    white-space: pre-line;
    line-height: 1.25;
}

/* Parts styles */

.btn-return-top {
  color: var(--btn-color);
  transition: color 0.25s;
}
.btn-return-top:hover {
  color: hsl(49, 62%, 38%);
}

.btn-theme {
  color: #ffffff;
  border: 1px solid #f5de7b;
  background-color: var(--btn-color);
  transition: background-color 0.25s;
  padding: .3em .5em;
  min-width: 190px;
  text-align: center;

  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.2; /*ベースラインの調整*/
}
.btn-theme:hover {
  background-color: hsl(49, 62%, 38%);
}

.btn-gray{
  background-color: #00001c;
}
.btn-gray:hover{
  background-color: hsl(240, 100%, 15%);
}

.confirm-text{
    margin-bottom: 2em;
}

#contact-confirm table{
    width: 100%;
    border: 1px solid #ffffff;
    margin-bottom: 2em;
}
#contact-confirm table td,
#contact-confirm table th{
    padding: .5em;
}

/* Utility styles */

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

/* Form UIs */
#contact-confirm,
#contact-uncompleted,
#contact-completed{
    display: none;
}


@media (max-width: 980px) {
    main{
        padding: 0 1.75em;
    }
}