/* =========================================
   POPコンテスト 応募フォーム スタイル
   キリスト教書店向け：清潔感・誠実さ・温かみ
   ========================================= */

:root {
  --navy: #1a2e4a;
  /* メインカラー：深い紺 */
  --gold: #b8860b;
  /* アクセント：ゴールド（十字架・聖書の金箔） */
  --cream: #faf8f4;
  /* 背景：温かみのあるクリーム */
  --sand: #f0ebe1;
  /* サブ背景 */
  --text: #2c2c2c;
  /* 本文 */
  --muted: #6b6b6b;
  /* サブテキスト */
  --border: #d8d0c4;
  /* ボーダー */
  --red: #c0392b;
  /* エラー */
  --green: #27ae60;
  /* 成功 */
  --radius: 6px;
  --shadow: 0 2px 12px rgba(26, 46, 74, .08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

/* ========== ページラッパー ========== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== ヘッダー ========== */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 20px 24px;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cross {
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

.store-name {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .08em;
}

.contest-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
}

.contest-title span {
  color: var(--gold);
}

/* ========== メインコンテンツ ========== */
.main-content {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 32px auto;
  padding: 0 20px 60px;
}

/* ========== 締め切り・完了・エラー ========== */
.closed-notice,
.success-notice {
  text-align: center;
  padding: 60px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.closed-icon,
.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.success-icon {
  color: var(--gold);
}

.closed-notice h2,
.success-notice h2 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 16px;
}

.entry-info {
  margin: 24px auto;
  padding: 16px 24px;
  background: var(--sand);
  border-radius: var(--radius);
  display: inline-block;
}

.error-banner {
  background: #fdf0ef;
  border: 1px solid #e74c3c;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  color: var(--red);
}

/* ========== フォームイントロ ========== */
.form-intro {
  margin-bottom: 32px;
}

.deadline-badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.deadline-badge strong {
  color: var(--gold);
}

/* ========== ステップインジケーター ========== */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 64px;
}

.step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  transition: background .25s, color .25s;
}

.step.active span,
.step.done span {
  background: var(--navy);
  color: #fff;
}

.step.active {
  color: var(--navy);
  font-weight: 700;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 18px;
}

/* ========== フォームステップ ========== */
.form-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* 汎用非表示ユーティリティ（method-section, upload-preview等で使用） */
.hidden {
  display: none !important;
}

.form-step.hidden {
  display: none;
}

.step-heading {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sand);
}

.step-heading span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 4px;
}

/* ========== 応募方法カード ========== */
.method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.method-card {
  display: block;
  cursor: pointer;
}

.method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}

.card-body {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .2s, box-shadow .2s;
  background: var(--cream);
  height: 100%;
}

.method-card input:checked+.card-body {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 46, 74, .12);
  background: #fff;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.card-specs {
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}

.card-specs li::before {
  content: '・';
}

/* ========== フィールド ========== */
.field-group {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.field-label.required::after {
  content: '必須';
  font-size: 10px;
  font-weight: 400;
  background: var(--red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 46, 74, .1);
}

textarea {
  resize: vertical;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.char-count {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  float: right;
}

/* ========== 郵便番号 ========== */
.zip-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zip-input-row input {
  max-width: 160px;
}

.btn-zip {
  padding: 9px 16px;
  font-size: 13px;
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}

.btn-zip:hover {
  background: var(--border);
}

/* ========== アップロードエリア ========== */
.upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.upload-area:hover {
  border-color: var(--navy);
  background: var(--sand);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-placeholder {
  text-align: center;
  pointer-events: none;
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.upload-preview {
  text-align: center;
  padding: 16px;
}

.upload-preview img {
  max-height: 160px;
  max-width: 100%;
  border-radius: 4px;
  object-fit: contain;
}

.upload-preview p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.btn-remove {
  margin-top: 8px;
  padding: 4px 12px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  color: var(--muted);
}

.btn-remove:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ========== テンプレートグリッド ========== */
.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.template-card {
  cursor: pointer;
  display: block;
}

.template-card input {
  position: absolute;
  opacity: 0;
}

.template-thumb {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--sand);
  transition: border-color .2s;
}

.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card input:checked~.template-thumb {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 46, 74, .15);
}

.template-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
  color: var(--navy);
}

.template-type {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

/* ========== エディター ========== */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.editor-inputs {
  display: flex;
  flex-direction: column;
}

.editor-preview {
  display: flex;
  flex-direction: column;
}

.preview-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.svg-preview-container {
  flex: 1;
  background: var(--sand);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
  padding: 12px;
}

.svg-preview-container svg {
  width: 100%;
  height: auto;
}

.preview-placeholder {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.preview-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* ========== 確認テーブル ========== */
.confirm-table {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.confirm-table dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
}

.confirm-table dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.confirm-table dd {
  font-size: 14px;
  color: var(--text);
}

.confirm-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ========== ボタン ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: #0f1d30;
  border-color: #0f1d30;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-secondary {
  background: var(--sand);
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-submit {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  font-size: 16px;
  padding: 14px 40px;
}

.btn-submit:hover {
  background: #9a7209;
  border-color: #9a7209;
}

.step-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--navy);
}

/* ========== フッター ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .5);
  text-align: center;
  padding: 16px;
  font-size: 12px;
}

/* ========== レスポンシブ ========== */
@media (max-width: 640px) {
  .form-step {
    padding: 24px 18px;
  }

  .method-cards {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .confirm-table dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .confirm-table dt {
    color: var(--navy);
  }

  .step-indicator {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .step {
    min-width: 54px;
    font-size: 10px;
  }

  .step-nav {
    flex-direction: column-reverse;
  }

  .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


.teaser {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.teaser img{
  width: 100%;
}
/* == カウンター == */
.countdown {
  padding: 30px;
  margin: 40px 0;
  text-align: center;

}

.countdown-label {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.countdown-date {
  font-size: 28px;
  color: #E84850;
  font-weight: 700;
  margin-bottom: 20px;
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.time-unit {
  background: var(--cream);
  padding: 15px 10px;
  border-radius: 10px;
  border: 2px solid var(--border);

}

.time-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
}

.time-label {
  font-size: 12px;
  color: var(--navy);
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 600;
}

.notification {
  margin-bottom: 2em;
}