/* 音声テキスト申込システム：チャコール×アンバーテーマ */
:root {
  --navy: #25292d;
  --blue: #d0820d;
  --light: #f6f4ef;
  --bg: #f6f4ef;
  --line: #d9d4c9;
  --text: #303438;
  --muted: #6c7175;
  --green: #56795d;
  --orange: #d0820d;
}

body {
  background: #f6f4ef;
}

.site-header {
  border-top: 4px solid #d99518;
  border-bottom-color: #d9d4c9;
  box-shadow: 0 2px 10px rgba(37, 41, 45, .05);
}

.brand,
h1,
h2,
.selection-table .line-total,
.selection-table tbody > tr:not(.recipient-row) > td:nth-child(2),
.summary-bar strong {
  color: #25292d;
}

h2 {
  border-left-color: #d99518;
}

.card,
.panel,
.filter-card,
.login-card,
.summary-card,
.table-wrap {
  border-color: #ded9cf;
  box-shadow: 0 8px 24px rgba(52, 58, 64, .07);
}

.product-table th,
.recipient-confirm th,
.confirm-list dt,
.success dt,
th {
  background: #ece7da;
  color: #25292d;
}

.product-table tr.selected td,
tbody tr:hover {
  background: #faf7ef;
}

.steps .active:before,
.btn.primary,
.button.primary,
.pagination a.current {
  background: #d0820d;
  border-color: #d0820d;
  color: #fff;
  box-shadow: 0 5px 14px rgba(208, 130, 13, .25);
}

.btn.primary:hover,
.button.primary:hover {
  background: #ad6906;
  border-color: #ad6906;
}

.steps .active {
  color: #25292d;
}

.steps .done:before,
.steps .done:after,
.steps .active:after {
  background: #687d69;
}

select:focus,
input:focus,
textarea:focus,
.flag-select-button:focus {
  border-color: #d0820d;
  outline-color: rgba(217, 149, 24, .22);
}

.recipient-group {
  border-left-color: #d99518;
}

.image-modal-close,
.admin-header {
  background: #343a40;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
  background: #202428;
}

.admin-header {
  border-bottom: 4px solid #d99518;
}

.back-link,
.id-list span {
  color: #a96508;
}

.button {
  border-color: #bdb6a8;
}

.button.muted,
.btn.secondary {
  background: #eeeae1;
}

.field em {
  background: #a93d32;
}

/* 申込者向け画面のヘッダー */
.site-header {
  background: #343a40;
  color: #fff;
}

.site-header .brand {
  color: #fff;
}

.site-header .header-note {
  color: #fff;
  border-left-color: #d99518;
}

/* 管理画面の文字色は従来どおり維持 */
.admin-header .brand,
.admin-header nav a,
.admin-header .link-button {
  color: #fff !important;
}

.site-header .container {
  display: flex;
  align-items: center;
}

.site-header .header-note {
  font-size: 22px;
  font-weight: 800;
}

.header-logo {
  display: block;
  width: auto;
  height: 44px;
  margin-right: 14px;
  flex: 0 0 auto;
  object-fit: contain;
}

.admin-header .brand {
  display: inline-flex;
  align-items: center;
}

.admin-header .admin-header-logo {
  height: 38px;
  margin-right: 12px;
}

@media (max-width: 700px) {
  .header-logo {
    height: 36px;
    margin-right: 9px;
  }

  .site-header .brand {
    font-size: 16px;
    line-height: 1.35;
  }

  .admin-header .admin-header-logo {
    height: 34px;
  }
}

.customer-code-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 2px;
}

.customer-code-button {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #d0820d;
  border-radius: 7px;
  background: #d0820d;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.customer-code-button:hover {
  background: #ad6906;
  border-color: #ad6906;
}

.customer-code-button:disabled {
  opacity: .65;
  cursor: wait;
}

#customer-code-status {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.privacy-consent {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 30px 0 4px;
  padding: 18px 20px;
  border: 1px solid #d9d4c9;
  border-left: 5px solid #d99518;
  border-radius: 9px;
  background: #faf7ef;
  color: #303438;
  cursor: pointer;
  font-weight: 700;
}

.privacy-consent input {
  width: 21px;
  height: 21px;
  min-height: 0;
  margin: 0;
  accent-color: #d0820d;
  flex: 0 0 auto;
}

.privacy-consent:focus-within {
  outline: 3px solid rgba(217, 149, 24, .22);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .privacy-consent {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 15px;
  }
}
