/* ==========================================================================
   大口注文ファイル受付サイト スタイルシート (左右カード高さ完全同期)
   ========================================================================== */

:root {
  --primary-color: #E2962D;
  --primary-hover: #c27e1d;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --border-color: #cbd5e1;
  --required-color: #dc2626;
  --success-color: #10b981;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}


/* ヘッダー */


.header-container {
  max-width: 1100px;
  margin: 0 auto;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.site-subtitle {
  font-size: 15px;
  color: #cbd5e1;
}

/* メインコンテナ */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* カードコンポーネント */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 展開するヘルプパーツ */
.help-card {
  padding: 18px 24px;
  background-color: #ffffff;
  border: 2px solid var(--primary-color);
}

.help-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 6px 0;
  text-align: left;
}

.help-btn-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.help-icon {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.help-icon.open {
  transform: rotate(180deg);
}

.help-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--border-color);
}

/* STEP ボックス */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px 22px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.step-badge {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 14px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.step-desc {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
}

.step-list {
  font-size: 16px;
  margin-left: 24px;
  margin-top: 8px;
  line-height: 1.8;
}

.step-list li {
  margin-bottom: 6px;
}

/* 注意事項ボックス */
.notice-box {
  background-color: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
}

.notice-title {
  font-size: 16px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 10px;
}

.notice-list {
  font-size: 15px;
  color: #7f1d1d;
  margin-left: 22px;
  line-height: 1.8;
}

.notice-list li {
  margin-bottom: 6px;
}

/* 2カラム横並びレイアウト (左右高さ完全同期) */
.grid-layout-2col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
  /* 左右のカードの高さを100%揃える */
}

@media (max-width: 900px) {
  .grid-layout-2col {
    grid-template-columns: 1fr;
  }
}

/* 左右カード共通設定 */
.col-download,
.col-upload {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

/* 左カラム: ダウンロード欄コンテンツの高さ均等配置 */
.download-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 10px 0 0 0;
}

.download-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon-large {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.download-icon-img {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.download-desc {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: left;
  line-height: 1.7;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: var(--primary-color);
  color: #fff !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(226, 150, 45, 0.3);
  transition: all 0.25s ease;
  margin-bottom: 20px;
}

.btn-download:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 126, 29, 0.4);
}

.download-memo {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.7;
  width: 100%;
}

.download-memo p {
  margin-bottom: 6px;
}

/* フォーム要素 (基本 16px 以上) */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.badge-required {
  background-color: var(--required-color);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 6px;
  line-height: 30px;
}

.badge-optional {
  background-color: #64748b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(226, 150, 45, 0.2);
}

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

/* ファイル添付ドラッグ＆ドロップゾーン */
.drop-zone {
  border: 2.5px dashed #94a3b8;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--primary-color);
  background-color: #fff9f0;
}

.drop-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.drop-text {
  font-size: 16px;
  font-weight: 700;
}

.drop-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.file-input {
  display: none;
}

.file-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 15px;
  color: #166534;
}

.btn-remove-file {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
}

/* 送信ボタン */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(226, 150, 45, 0.35);
  transition: all 0.25s ease;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 126, 29, 0.45);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* スピナー */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* モーダル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 36px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-icon {
  font-size: 50px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.btn-modal-close {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}