/* === Base Reset === */
body.invoice-page {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  color: #333;
  background: #f7f9fc;
  font-size: 1.6rem; /* 1rem = 10px ベース */
  line-height: 1.6;
}
body.invoice-page main {
  min-width: 800px !important;
}
body.invoice-page .wrap {
  min-width: 800px !important;
  width: 1080px;
}

.container {
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 3rem 4rem;
  border-radius: 8px;
  width: 1080px;
}

/* === Invoice Intro === */
/* .invoice-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  background: #f8fafc;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
}

.invoice-intro__icon {
  flex-shrink: 0;
  font-size: 3rem;
  color: #13366d;
}

.invoice-intro__content h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #13366d;
  margin-bottom: 0.5rem;
}

.invoice-intro__content p.lead {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
} */



.invoice-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  background: #f8fbf8;
  border: 1px solid #e2f0e2;
  border-radius: 8px;
  padding: 1.8rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.invoice-intro__icon {
  flex-shrink: 0;
  /* background: #e9f7ec; */
  /* color: #28a745; */
  color: #FFF; /* 柔らかい緑 */
  background: #2ecc71;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.invoice-intro__content {
  flex: 1;
}

.invoice-intro__content .lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}



/* === Headings === */
.invoice-page h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #13366d;
  border-bottom: 3px solid #13366d;
  padding-bottom: 0.6rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.invoice-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #13366d;
  border-bottom: 3px solid #13366d;
  padding-bottom: 0.6rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.invoice-heading i {
  font-size: 2.2rem;
  color: #13366d;
}


.invoice-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: #13366d;
  border-left: 5px solid #13366d;
  padding-left: 0.8rem;
  margin: 3rem 0 1.2rem;
  letter-spacing: 0.03em;
}

/* === Tables === */
.invoice-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.invoice-section th,
.invoice-section td {
  border: 1px solid #d0d5dd;
  padding: 0.9rem 1.2rem;
  vertical-align: top;
  background: #fff;
}

.invoice-section th {
  width: 28%;
  font-weight: 600;
  background: #f5f8fb;
  color: #13366d;
  letter-spacing: 0.03em;
}

.invoice-section td {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.invoice-section td input,
.invoice-section td textarea {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* === Numeric / Price === */
.invoice-section td strong,
.invoice-section td .price {
  /* font-family: 'Roboto Mono', monospace; */
  font-weight: 600;
  color: #13366d;
  font-size: 1.2em;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  letter-spacing: 0.02em;
}

.btn-outline-secondary {
  border: 1px solid #999;
  background: #fff;
  color: #333;
}

.btn-outline-secondary:hover {
  background: #f2f2f2;
}

.btn-outline-primary {
  border: 1px solid #13366d;
  background: #fff;
  color: #13366d;
}

.btn-outline-primary:hover {
  background: #13366d;
  color: #fff;
}

.btn-success {
  background: #198754;
  border: none;
  color: #fff;
}

.btn-success:hover {
  background: #157347;
}

.btn-outline-danger {
  border: 1px solid #dc3545;
  color: #dc3545;
  background: #fff;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: #fff;
}

/* === Signature === */
#signature-area {
  border: 2px dashed #ccc;
  border-radius: 6px;
  background: #fafafa;
  position: relative;
}

#signature-buttons,
#redo-wrapper {
  margin-top: 1rem;
}

/* === Radio group === */
.notify-radio-group label,
.mailing-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 1.4rem;
  font-family: 'Poppins', sans-serif;
}

.notify-radio-group input,
.mailing-radio-group input {
  transform: scale(1.2);
}

/* === Message section === */
.invoice-message textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-family: 'Poppins', sans-serif;
}

.invoice-message button {
  font-size: 1.6rem;
  line-height: 2;
  padding: 1rem 1.8rem;
}

#js-msg-status {
  font-size: 1.3rem;
  color: #198754;
  font-family: 'Poppins', sans-serif;
}


.bank-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.bank-option__content {
  position: relative;
  display: block;
  border: 3px solid #e0e6ee;
  border-radius: 10px;
  padding: 2.4rem 2.4rem 2.4rem 4rem; /* ← 左に余白を多めに確保 */
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bank-option:hover .bank-option__content {
  border-color: #13366d;
  background: #f8fbff;
}

.bank-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* === 選択時のビジュアル強調 === */
.bank-option input[type="radio"]:checked + .bank-option__content {
  background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%);
  border-radius: 10px;
  transform: translateY(-2px);
  border: 3px solid #13366d;
  transition: all 0.3s ease;
}

/* === 左のチェックアイコン === */
.bank-option input[type="radio"]:checked + .bank-option__content::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  background: #13366d;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(19, 54, 109, 0.25);
}

/* === テキストエリア全体 === */
.bank-option__content h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #13366d;
  margin-bottom: 0.6rem;
  margin-top: 0;
}

.bank-option__content .desc {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* === 表のデザイン === */
.bank-details {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  margin-bottom: 0 !important;
}

.bank-details th, .bank-details td {
  border: 1px solid #ddd;
  padding: 0.8rem 1.2rem;
  text-align: left;
  font-size: 1.3rem;
}

.bank-details th {
  width: 30%;
  background: #f5f8fb;
  color: #13366d;
  font-weight: 500;
}

/* === 下部の説明 === */
.bank-note {
  background: #f8fafc;
  border-left: 5px solid #13366d;
  border-radius: 4px;
  padding: 1.6rem 2rem;
  font-size: 1.4rem;
  color: #444;
  line-height: 1.6;
  margin-top: 3rem;
}

.btn-finish {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 40%, #15803d 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 2rem 4rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  transition: .3s;
}

.btn-finish:hover,
.btn-finish:focus {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
  color: #FFF;
}

.btn-finish i {
  margin-right: 0.8rem;
  font-size: 1.8rem;
}

.invoice-complete h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: #13366d;
  font-size: 1.8rem;
}

.invoice-complete .lead {
  color: #444;
  font-size: 1.4rem;
  line-height: 1.7;
}

.txt-counter {
  text-align: right;
  font-size: 1.1rem;
  color: #777;
  margin-top: -5px;
}




/* === Responsive === */
@media (max-width: 768px) {
  body.invoice-page {
    font-size: 1.2rem;
  }
  .container {
    padding: 2rem;
  }
  .invoice-section th {
    width: 40%;
  }
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mt-4 {
  margin-top: 4rem;
}
.mt-5 {
  margin-top: 5rem;
}
.mt-6 {
  margin-top: 6rem;
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-4 {
  margin-bottom: 4rem;
}
.mb-5 {
  margin-bottom: 5rem;
}
.mb-6 {
  margin-bottom: 6rem;
}
