@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");

:root {
  --font-base: "Noto Sans JP", sans-serif;
  --color-brand: #171c61;
  --color-main: #06c755;
  --color-text: #121926;
  --color-sub: #364152;
  --color-disabled: #697586;
  --color-bg: #f4f6f8;
  --color-panel: #ffffff;
  --color-border: #e3e5e8;
  --color-danger: #e0483e;
  --color-muted: #f5f6f7;
  --max-width: 640px;
  --content-width: auto;
}

/* ──────── リセット・ベース ──────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

sub {
  vertical-align: baseline;
  font-size: 12px;
  margin: 0 0.2rem 0 0.1rem;
  font-weight: 900;
}

a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.page-bg {
  min-height: 100vh;
  background: var(--color-bg);
}
.site-wrap {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--color-panel);
}
.page-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content {
  width: 100%;
  max-width: var(--content-width);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.content > form {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.kv {
  width: 100%;
  background: #e8edf3;
}
.kv__img {
  display: block;
  width: 100%;
}
.main-content {
  flex: 1 0 auto;
  width: 100%;
  padding: 24px;
}
.section {
}
.section:last-child {
}
.section-title {
  margin: 0 0 16px;
  text-align: center;
  line-height: 1;
}
.section-title img {
  display: block;
  width: 100%;
}


/* ──────── セクション見出し＋キャプション ──────── */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading--image {
  gap: 16px;
}

.section-heading .heading,
.section-heading .section-title {
  margin: 0;
}

.section-heading__caption {
  margin: 0;
  color: var(--color-sub);
  font-size: 14px;
  line-height: 1.7;
}
.section-heading + * {
  margin-top: 16px;
}
.section-heading + form {
  margin-top: 22px;
}
.heading {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 900;
}
.text {
  margin: 0;
  color: var(--color-sub);
  font-size: 14px;
}
.note {
  margin-top: 10px;
  color: var(--color-sub);
  font-size: 12px;
}
.form-block {
  margin-bottom: 32px;
}
.form-block:last-child {
  margin-bottom: 0;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
}
.required {
  position: relative;
  top: -2px;
  display: inline-block;
  margin-left: 6px;
  background: var(--color-danger);
  font-size: 12px;
  color: white;
  margin-top: -3px;
  padding: 4px 6px 5px;
  line-height: 1;
  border-radius: 4px;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 12px;
  border: 1px solid #c9cdd2;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.2);
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.select-wrap {
  position: relative;
}

.select-wrap::before,
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-sub);
  pointer-events: none;
}

.select-wrap::before {
  right: 24px;
  transform: translateY(-50%) rotate(45deg);
}

.select-wrap::after {
  right: 18px;
  transform: translateY(-50%) rotate(-45deg);
}

.select-wrap .select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  background-image: none;
}
.radio-list,
.checkbox-list {
  display: grid;
  gap: 8px;
}

.checkbox-list--vertical {
  grid-template-columns: 1fr;
}

.radio-item,
.checkbox-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}

.radio-item input,
.checkbox-item input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-main);
}

.form-error {
  margin-top: 6px;
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 700;
}

.choice {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}
.choice input {
  cursor: pointer;
}

.choice input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice input[type="checkbox"] + span {
  position: relative;
  display: block;
  min-height: 24px;
  padding-left: 34px;
}

.choice input[type="checkbox"] + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #8f98a7;
  border-radius: 4px;
  background: #fff;
  transform: translateY(-50%);
  transition:
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}

.choice input[type="checkbox"] + span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 8px;
  height: 13px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  opacity: 0;
  transform: translateY(-62%) rotate(45deg);
  transition: opacity 0.15s;
}

.choice input[type="checkbox"]:checked + span::before {
  border-color: #0d6efd;
  background: #0d6efd;
}

.choice input[type="checkbox"]:checked + span::after {
  opacity: 1;
}

.choice input[type="checkbox"]:focus-visible + span::before {
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.2);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: var(--color-main);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.btn:hover {
  opacity: 0.9;
}
.btn:disabled,
.btn.is-disabled {
  background: #cfd3d8;
  cursor: not-allowed;
}
.btn--outline {
  border: 1px solid #c9cdd2;
  background: #fff;
  color: #444;
}
.btn-row {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}
.fixed-cta {
  position: sticky;
  bottom: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}
.prize-image,
.step-image {
  margin: 14px 0;
  text-align: center;
}
.prize-image img,
.step-image img {
  display: block;
  width: 100%;
}
.prize-list,
.step-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.prize-card,
.step-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  background: var(--color-muted);
}
.badge {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  font-weight: 800;
}
.terms-box,
.caution-box {
  max-height: 220px;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fafafa;
  color: #555;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.terms-box p {
  margin: 0;
}

.terms-box ul,
.caution-list,
.custom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.terms-box li,
.caution-list li,
.custom-list li {
  position: relative;
  padding-left: 1.35em;
  line-height: 1.8;
}

.terms-box li::before,
.caution-list li::before,
.custom-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.18em;
  width: 0.44em;
  height: 0.44em;
  border-radius: 50%;
  background: currentColor;
}


.entry-apply-section {
  padding: 0;
}


.entry-apply-button.is-disabled {
  pointer-events: none;
}

.entry-apply-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry-agree {
  align-items: center;
  font-size: 16px;
  font-weight: 700;
}

.entry-agree input {
  margin-top: 0;
}

.entry-notice {
  padding: 24px;
  border-radius: 12px;
  background: #FCEDB8;
  font-size: 14px;
  color: var(--color-sub);
}

.entry-notice__title {
  margin: 0 0 12px;
  color: var(--color-brand);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

.entry-notice__lead {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.terms-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-box {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.contact-box__title {
  margin: 0 0 12px;
  color: var(--color-brand);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.contact-box__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  line-height: 1.8;
}

.contact-box__body p {
  margin: 0;
}

.contact-box__tel {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.upload-list {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.upload-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.upload-picker {
  display: inline-flex;
}
.upload-trigger {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #2b2b2b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.upload-name {
  min-width: 0;
  color: var(--color-sub);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-preview {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-muted);
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.upload-preview.is-success,
.upload-preview.is-error {
  display: flex;
}

.upload-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview.is-success {
  border-color: var(--color-main);
  background: #fff;
}

.upload-preview.is-error {
  border-color: var(--color-danger);
  background: #fff5f5;
}

.upload-preview.is-error::before,
.upload-preview.is-error::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-danger);
  transform-origin: center;
}

.upload-preview.is-error::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.upload-preview.is-error::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.upload-clear {
  appearance: none;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-sub);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.upload-clear:hover:not(:disabled) {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.upload-clear:disabled {
  border-color: #edf0f3;
  background: #f7f8fa;
  color: #b8bec7;
  cursor: not-allowed;
}

.error-box {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #f6c4bf;
  border-radius: 8px;
  background: #fdecea;
  color: var(--color-danger);
  font-size: 14px;
  font-weight: 700;
}
.error-box.is-show {
  display: block;
}
.error-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.error-list li {
  padding-left: 1.2em;
  position: relative;
}
.error-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}
.link-button {
  appearance: none;
  margin: 12px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #1a73c7;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}
.modal.is-open {
  display: flex;
}
.modal__panel {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 14px;
  background: #fff;
}
.modal__head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  background: #171c61;
  color: #ffffff;
}
.modal__title {
  margin: 0;
  font-size: 18px;
}
.modal__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
}
.ng-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
}
.ng-card {
  text-align: center;
}
.ng-img {
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fafafa;
  color: rgba(224, 72, 62, 0.7);
  font-size: 48px;
  font-weight: 900;
}
.ng-caption {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}
.confirm-list {
  display: grid;
  gap: 1px;
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.confirm-list > .confirm-row {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
}
.confirm-list > .confirm-row:first-child {
  padding-top: 0;
  margin-top: 0;
  border: none;
}
.confirm-row {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 12px;
  background: #fff;
  font-size: 14px;
}
.confirm-row dt {
  color: var(--color-sub);
  font-weight: 700;
  align-self: start;
}
.confirm-row dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}
.receipt-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.receipt-thumb {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-muted);
  font-size: 28px;
  border: 1px solid var(--color-border);
}

.receipt-thumb img {
  display: block;
  max-width: 101%;
  height: 100%;
  object-fit: cover;
}

.receipt-thumb--filled {
  border-color: var(--color-border);
  background: #fff;
}

.receipt-thumb--empty {
  border-color: #edf0f3;
  background: #f8fafc;
  color: #cbd5e1;
}

.receipt-thumb--empty span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.complete {
  text-align: center;
}
.complete-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 32px auto 24px;
  border-radius: 50%;
  background: var(--color-main);
}
.complete-icon::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 16px;
  width: 14px;
  height: 28px;
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(45deg);
  box-sizing: border-box;
}
.footer {
  flex-shrink: 0;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  background: #171c61;
  color: white;
  font-weight: 400;
}


@media (min-width: 768px) {
  .content {
    gap: 4rem;
  }
  .content > form {
    gap: 4rem;
  }
  .main-content {
    padding: 48px;
  }
  .btn-row {
    flex-direction: row;
  }
  .ng-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer {
    padding: 32px;
  }
  .upload-preview {
    right: 58px;
    width: 48px;
    height: 48px;
  }
  .upload-trigger {
    font-size: 16px;
  }
}


/* ──────── 通常配置の送信ボタン ──────── */
.form-submit-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ──────── レシート無効例モーダル ──────── */
.ng-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-bg);
}

.ng-list .ng-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.ng-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-muted);
}

.ng-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-list .ng-caption {
  margin-top: 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

/* ──────── 確認画面タイトル ──────── */
.confirm-hero {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(23, 28, 97, 0.08), rgba(6, 199, 85, 0.08)),
    #fff;
}

.confirm-hero__label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
}

.confirm-hero .heading {
  margin-bottom: 10px;
  color: var(--color-brand);
  font-size: 24px;
  font-weight: 900;
}

@media (max-width: 420px) {
  .ng-list .ng-card {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ng-list .ng-caption {
    font-size: 14px;
  }
}
