body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

fieldset,
img {
  border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
  font-style: normal;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

caption,
th {
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

q:before,
q:after {
  content: "";
}

abbr,
acronym {
  border: 0;
  font-variant: normal;
}

sup {
  vertical-align: text-top;
}

sub {
  vertical-align: text-bottom;
}

input,
textarea,
select,
button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-size: 100%;
  border-radius: 50px;
  background-color: inherit;
}

input,
textarea,
select {
  font-size: 16px;
}

textarea {
  resize: vertical;
  display: block;
}

button {
  padding: 0;
  cursor: pointer;
}

legend {
  color: #000;
}

main {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

svg {
  display: block;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  font-size: 20px;
  max-width: 1440px;
  margin: auto;
}
@media (max-width: 1023px) {
  body {
    font-size: 15px;
  }
}

.required {
  color: #ff0000;
}

.l-contents {
  width: 80%;
  margin: auto;
  min-width: 880px;
  max-width: 900px;
}
@media (max-width: 1023px) {
  .l-contents {
    width: 100%;
    padding: 0 20px;
    min-width: 0;
  }
}

.l-footer {
  border-top: 1px solid #f4f4f4;
  padding: 30px 0 15px 0;
  clear: both;
}
.l-footer p {
  font-size: 12px;
  font-size: 0.75rem;
  text-align: center;
}

.c-title {
  font-size: 44px;
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  margin: 40px 0;
}
@media (max-width: 1023px) {
  .c-title {
    font-size: 30px;
    font-size: 1.875rem;
  }
}
@media (max-width: 767px) {
  .c-title {
    font-size: 26px;
    font-size: 1.625rem;
  }
}

.c-lead {
  margin-bottom: 60px;
}
@media (max-width: 1023px) {
  .c-lead {
    margin-bottom: 40px;
  }
}
.c-lead-title {
  font-size: 24px;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
}
@media (max-width: 1023px) {
  .c-lead-title {
    margin-bottom: 15px;
  }
}
@media (max-width: 767px) {
  .c-lead-title {
    font-size: 17px;
    font-size: 1.0625rem;
  }
}

.c-button {
  color: #ffffff;
  font-weight: 700;
  background: #934c22;
  border: 10px double #ffffff;
  /* 全ページで応募完了ページと同じ角に統一（buttonの50px指定を上書き） */
  border-radius: 0;
  font-size: 24px;
  font-size: 1.5rem;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: 40%;
  padding: 20px;
  max-width: 580px;
  min-width: 400px;
}
@media (max-width: 1023px) {
  .c-button {
    font-size: 20px;
    font-size: 1.25rem;
  }
}
@media (max-width: 767px) {
  .c-button {
    font-size: 16px;
    font-size: 1rem;
    width: 100%;
    min-width: 0;
  }
}
.c-button__inner {
  text-align: center;
  margin: 30px 0;
}
.c-button__inner__back {
  float: left;
  margin: 20px 0 0;
  width: 48%;
  font-size: 16px;
  font-size: 1rem;
}
.c-button__inner__submit {
  float: right;
  margin: 20px 0 0;
  width: 48%;
  font-size: 16px;
  font-size: 1rem;
}
.c-button:hover {
  background: rgb(117.6, 60.8, 27.2);
  color: #ffffff;
}

.c-button--ghost {
  background: #ffffff;
  color: #2f3a4a;
  border: 1px solid #d6dde5;
  width: auto;
  min-width: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-size: 0.875rem;
  border-radius: 0;
}
.c-button--ghost:hover {
  background: #f6f7f9;
  color: #2f3a4a;
}

.c-form {
  padding: 30px 0;
}
.c-form-last {
  border-bottom: 2px solid #f4f4f4;
  margin-bottom: 70px;
}
@media (max-width: 1023px) {
  .c-form-last {
    margin-bottom: 50px;
  }
}
.c-form-heading {
  font-weight: 700;
  display: block;
  margin-bottom: 0;
  width: 30%;
}

/* 補足テキスト（アップロード説明など） */
.c-form-note {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #5b6677;
}
.c-form-note__count {
  display: inline-block;
  margin-left: 8px;
  font-weight: 700;
  color: #2f3a4a;
}

/* レシートアップロード：選択画像プレビュー */
#thumbnailContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
#thumbnailContainer img.thumbnail {
  width: 160px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  background: #ffffff;
}

/* アップロード画面ではJSで表示制御（画像がある時だけ表示） */
.form2 #thumbnailContainer {
  display: none;
}
.form2 #thumbnailContainer.has-thumbs {
  display: flex;
}

.form1 .c-form-heading {
  margin-bottom: 0.75rem;
  width: 100%;
}

.form1 .c-choice {
  display: block;
  margin: 8px 0;
  line-height: 1.6;
}
.form1 .c-choice input {
  margin-right: 6px;
}

.form1 .c-other-box {
  width: 100%;
  max-width: 720px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid #d6dde5;
  border-radius: 6px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}
.form1 .c-other-box::-webkit-input-placeholder {
  color: #9aa4b2;
}
.form1 .c-other-box::-moz-placeholder {
  color: #9aa4b2;
}
.form1 .c-other-box:-ms-input-placeholder {
  color: #9aa4b2;
}
.form1 .c-other-box::-ms-input-placeholder {
  color: #9aa4b2;
}
.form1 .c-other-box::placeholder {
  color: #9aa4b2;
}
.form1 .c-other-box:focus {
  outline: none;
  border-color: #b9c4d3;
}

.form1 .c-other-inline {
  margin-top: 2px;
  margin-bottom: 0;
  margin-left: 18px;
}
@media (max-width: 767px) {
  .form1 .c-other-inline {
    margin-left: 0;
  }
}

#previewContainer .c-form-heading {
  margin-bottom: 1.5rem;
  width: 100%;
}

/* 確認ページ：各項目を薄いグレーの枠線で区切る */
#previewContainer .c-form {
  padding: 22px 0;
  border-top: 1px solid #e9ecef;
}
#previewContainer .c-form:last-child {
  border-bottom: 1px solid #e9ecef;
}

.form2 .c-form-heading {
  width: 100%;
  margin-bottom: 0.75rem;
}
.form2 .c-form input[type=text],
.form2 .c-form input[type=email],
.form2 .c-form input[type=tel],
.form2 .c-form input[type=number],
.form2 .c-form select,
.form2 .c-form input[type=file] {
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #d6dde5;
  padding: 12px 14px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}
.form2 .c-form input[type=text]::-webkit-input-placeholder, .form2 .c-form input[type=email]::-webkit-input-placeholder, .form2 .c-form input[type=tel]::-webkit-input-placeholder, .form2 .c-form input[type=number]::-webkit-input-placeholder {
  color: #9aa4b2;
}
.form2 .c-form input[type=text]::-moz-placeholder, .form2 .c-form input[type=email]::-moz-placeholder, .form2 .c-form input[type=tel]::-moz-placeholder, .form2 .c-form input[type=number]::-moz-placeholder {
  color: #9aa4b2;
}
.form2 .c-form input[type=text]:-ms-input-placeholder, .form2 .c-form input[type=email]:-ms-input-placeholder, .form2 .c-form input[type=tel]:-ms-input-placeholder, .form2 .c-form input[type=number]:-ms-input-placeholder {
  color: #9aa4b2;
}
.form2 .c-form input[type=text]::-ms-input-placeholder, .form2 .c-form input[type=email]::-ms-input-placeholder, .form2 .c-form input[type=tel]::-ms-input-placeholder, .form2 .c-form input[type=number]::-ms-input-placeholder {
  color: #9aa4b2;
}
.form2 .c-form input[type=text]::placeholder,
.form2 .c-form input[type=email]::placeholder,
.form2 .c-form input[type=tel]::placeholder,
.form2 .c-form input[type=number]::placeholder {
  color: #9aa4b2;
}
.form2 .c-form input[type=text]:focus,
.form2 .c-form input[type=email]:focus,
.form2 .c-form input[type=tel]:focus,
.form2 .c-form input[type=number]:focus,
.form2 .c-form select:focus {
  outline: none;
  border-color: #b9c4d3;
}
.form2 .c-form select {
  min-height: 48px;
}
.form2 .c-form input[name=gender]:not(:first-of-type) {
  margin-left: 25px;
}
.form2 .c-form label:has([name=goods_id]) {
  display: block;
  margin: 8px 0;
  line-height: 1.6;
}
.form2 .c-form .c-choice--form2 {
  display: block;
  margin: 8px 0;
  line-height: 1.6;
}
.form2 .c-form .c-choice--form2 input {
  margin-right: 6px;
}
.form2 .c-form textarea {
  padding: 12px 14px;
  min-height: 80px;
  vertical-align: top;
  field-sizing: content;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #d6dde5;
  font-size: 16px;
  line-height: 1.5;
}
.form2 .c-form textarea:focus {
  outline: none;
  border-color: #b9c4d3;
}

.thumbnail {
  width: 100px;
  height: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 5px;
}
.thumbnail-container {
  display: inline-block;
  margin: 10px;
  text-align: center;
}

#thumbnailContainer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

#deleteButton.c-button--ghost {
  display: block;
  margin: 10px 0 18px;
}

.error-field {
  border: 2px solid #ff0000;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.error-message {
  width: 100%;
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
  margin-left: 30%;
  color: #ff0000;
  font-size: 14px;
  margin-top: 5px;
  font-weight: bold;
}

.form1 .c-form .error-message {
  margin-left: 0;
}

.form2 .c-form .error-message {
  margin-left: 0;
}

.mv {
  position: relative;
}
.mv img {
  width: 100%;
  display: block;
}
.mv .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
}
.mv .overlay .overlay-text {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
  margin: 0;
}
@media (min-width: 768px) {
  .mv .overlay .overlay-text {
    font-size: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .mv .overlay .overlay-text {
    font-size: 5rem;
  }
}

.p-campaign__inner {
  margin-bottom: 40px;
}
.p-campaign__title {
  font-size: 25px;
  font-size: 1.5625rem;
  font-weight: 700;
  border-left: 10px solid #934c22;
  background: #f4f4f4;
  padding: 10px 10px 10px 24px;
}
@media (max-width: 1023px) {
  .p-campaign__title {
    font-size: 16px;
    font-size: 1rem;
    padding: 8px 10px 8px 15px;
  }
}
.p-campaign__text {
  padding: 20px 10px 20px 20px;
  border-bottom: 2px dotted #f4f4f4;
}
@media (max-width: 1023px) {
  .p-campaign__text {
    padding: 15px 10px 15px 15px;
  }
}