/* 経費精算代行 LP */

:root {
  --keihi-primary: #ea580c;
  --keihi-primary-soft: #fff7ed;
  --keihi-accent: #166534;
}

.dot-grid {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(148, 163, 184, 0.28) 1px, transparent 1px);
  background-size: 16px 16px;
}

.product-shell {
  width: min(94vw, 920px);
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 20px 36px;
}

.product-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.page-head-copy {
  flex: 1;
  min-width: min(100%, 260px);
}

.page-title {
  margin: 0;
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page-lead {
  margin: 10px 0 0;
  font-size: clamp(13px, 2.8vw, 15px);
  font-weight: 600;
  line-height: 1.55;
}

.head-receipt-stack {
  flex-shrink: 0;
  width: min(160px, 38vw);
  height: 130px;
}

.receipt-stage {
  position: relative;
  height: 120px;
  display: grid;
  place-items: center;
}

.receipt-slip {
  position: absolute;
  width: 72px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--keihi-primary);
}

.receipt-slip--1 {
  transform: rotate(-12deg) translate(-24px, 8px);
  z-index: 1;
}

.receipt-slip--2 {
  transform: rotate(6deg) translate(4px, 0);
  z-index: 2;
  color: #64748b;
}

.receipt-slip--3 {
  transform: rotate(-4deg) translate(28px, -6px);
  z-index: 3;
  color: var(--keihi-accent);
}

.system-prompt-panel {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--keihi-primary-soft), #fff);
  border: 1px solid #fed7aa;
}

.system-prompt-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  font-weight: 600;
}

.t-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 0 0 20px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section {
  padding: 18px 0 20px;
}

.order-form .form-section.card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.section-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sec-step {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--keihi-primary);
}

.sec-title-text {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.sec-lead {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.bank-lead {
  margin-top: -4px;
}

.req {
  color: var(--danger);
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.bank-field {
  margin-bottom: 0;
}

.bank-field--wide {
  grid-column: 1 / -1;
}

.bank-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  word-break: break-all;
}

.bank-hint--loading {
  color: var(--muted);
}

.bank-hint--ok {
  color: var(--keihi-accent);
}

.bank-hint--error {
  color: var(--danger);
}

@media (max-width: 560px) {
  .bank-grid {
    grid-template-columns: 1fr;
  }
}

.lbl {
  font-size: 13px;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 6px;
}

/* 枚数選択 */
.qty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 4px;
  text-align: center;
}

.qty-picks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

@media (max-width: 560px) {
  .qty-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qty-pick--input {
    grid-column: span 3;
  }
}

.qty-pick {
  cursor: pointer;
}

.qty-pick-sr {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qty-pick-body {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  transition: all 0.15s ease;
}

.qty-pick:hover .qty-pick-body {
  border-color: #fdba74;
  background: var(--keihi-primary-soft);
}

.qty-pick-sr:checked + .qty-pick-body {
  border-color: var(--keihi-primary);
  background: linear-gradient(180deg, var(--keihi-primary-soft) 0%, #fff 100%);
  color: var(--keihi-primary);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.15);
}

.qty-pick--input {
  cursor: text;
}

.qty-pick--input .qty-input {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
  transition: all 0.15s ease;
}

.qty-pick--input .qty-input::placeholder {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.qty-pick--input.is-selected .qty-input,
.qty-pick--input .qty-input:focus {
  outline: none;
  border-color: var(--keihi-primary);
  background: linear-gradient(180deg, var(--keihi-primary-soft) 0%, #fff 100%);
  color: var(--keihi-primary);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.15);
}

.price-hint {
  margin: 0;
  font-size: 13px;
}

.price-hint strong {
  color: var(--keihi-primary);
  font-size: 15px;
}

/* 会計ソフト選択 */
.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .choice-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice-card {
  cursor: pointer;
}

.choice-sr {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  transition: all 0.15s ease;
  min-height: 100%;
}

.choice-icon {
  font-size: 32px;
}

.choice-icon--mf {
  color: #2563eb;
}

.choice-icon--yayoi {
  color: #059669;
}

.choice-title {
  font-size: 15px;
  font-weight: 900;
}

.choice-example {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.choice-sr:checked + .choice-body {
  border-color: var(--keihi-accent);
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.12);
}

.choice-sr:checked + .choice-body .choice-title {
  color: var(--keihi-accent);
}

/* 見積り */
.estimate-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--keihi-primary-soft) 0%, #fff 50%, #ecfdf5 100%);
  border: 2px solid #fdba74;
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.1);
}

.estimate-banner-copy {
  flex: 1;
  min-width: 160px;
}

.est-cap {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.estimate-detail {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.estimate-coins-hero {
  margin: 0;
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  color: var(--keihi-primary);
  line-height: 1;
}

.estimate-coins-hero small {
  font-size: 0.45em;
  font-weight: 800;
}

.cta-section {
  padding-top: 4px;
}

.form-error {
  margin: 0 0 12px;
}

.order-btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.22);
}

.ship-notice {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fffbeb;
  border-color: #fde68a;
}

.ship-notice-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ship-notice-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.7;
  color: #78350f;
}

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

.ship-notice-list li:last-child {
  margin-bottom: 0;
}

/* モーダル */
.order-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}

.order-modal-backdrop.open {
  display: flex;
}

.order-modal {
  width: min(640px, 100%);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  padding: 20px 18px 18px;
}

.order-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.order-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-close-btn {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 4px;
}

.inset-card {
  padding: 14px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.summary-card {
  font-size: 13px;
  line-height: 1.65;
}

.summary-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.summary-row {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 8px;
}

.summary-row dt {
  margin: 0;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

.summary-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.estimate-inset .estimate-yen {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 900;
  color: var(--keihi-primary);
}

.estimate-inset .estimate-yen small {
  font-size: 0.55em;
  font-weight: 800;
}

.estimate-fine {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.modal-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.btn-accent {
  border-color: var(--keihi-accent);
  background: var(--keihi-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.complete-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  background: rgba(15, 23, 42, 0.55);
}

.complete-backdrop.open {
  display: flex;
}

.complete-modal {
  width: min(720px, calc(100vw - 24px));
  max-height: min(92vh, 680px);
  padding: 24px 22px 20px;
  overflow-y: auto;
}

.complete-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px 28px;
  align-items: center;
}

.complete-receipt-art {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 52px;
  color: #fff;
  background: linear-gradient(145deg, var(--keihi-primary), var(--keihi-accent));
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.3);
}

.complete-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.complete-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 950;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.complete-lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.complete-email-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--keihi-primary);
  font-weight: 800;
}

.complete-guide {
  margin-top: 14px;
}

.complete-guide-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.complete-address {
  font-style: normal;
  white-space: pre-line;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.complete-actions {
  margin-top: 18px;
}

.complete-close-btn {
  min-width: 120px;
}

@media (max-width: 640px) {
  .complete-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .complete-copy {
    text-align: center;
    align-items: center;
  }

  .complete-title {
    justify-content: center;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
