/* ============================================================
   LP Design System — Receipt Service
   ============================================================ */

/* ── Bootstrap変数の上書き（全ページ共通） ────────────────── */
:root {
  --bs-primary:           #2563EB;
  --bs-primary-rgb:       37, 99, 235;
  --bs-link-color:        #2563EB;
  --bs-link-hover-color:  #1D4ED8;
  --bs-body-font-family:  'Inter', 'Hiragino Sans', 'Meiryo', sans-serif;
  --bs-body-color:        #1A1A1A;
  --bs-border-color:      #E0E0E0;
}

.btn-primary {
  --bs-btn-bg:                 #2563EB;
  --bs-btn-border-color:       #2563EB;
  --bs-btn-hover-bg:           #1D4ED8;
  --bs-btn-hover-border-color: #1D4ED8;
  --bs-btn-active-bg:          #1D4ED8;
  --bs-btn-active-border-color:#1D4ED8;
  --bs-btn-focus-shadow-rgb:   37, 99, 235;
}

.btn-outline-primary {
  --bs-btn-color:              #2563EB;
  --bs-btn-border-color:       #2563EB;
  --bs-btn-hover-bg:           #2563EB;
  --bs-btn-hover-border-color: #2563EB;
  --bs-btn-active-bg:          #1D4ED8;
}

.text-primary  { color: #2563EB !important; }
.bg-primary    { background-color: #2563EB !important; }
.border-primary{ border-color: #2563EB !important; }
.alert-primary { background-color: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.badge.bg-primary { background-color: #2563EB !important; }

/* ── LP固有デザイントークン ─────────────────────────────── */
:root {
  --lp-accent:          #2563EB;
  --lp-accent-hover:    #1D4ED8;
  --lp-fg-primary:      #1A1A1A;
  --lp-fg-secondary:    #666666;
  --lp-fg-muted:        #999999;
  --lp-fg-inverse:      #FFFFFF;
  --lp-surface-primary: #E8E9EB;
  --lp-surface-tile:    #F5F5F6;
  --lp-surface-inverse: #1A1A1A;
  --lp-white:           #FFFFFF;
  --lp-border:          #E0E0E0;
}

/* ── Fonts ─────────────────────────────────────────────────── */
.lp-font-serif { font-family: 'Playfair Display', serif; }
.lp-font-mono  { font-family: 'Geist Mono', 'Courier New', monospace; }

/* ── Typography ─────────────────────────────────────────────── */
.lp-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--lp-fg-primary);
}
.lp-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--lp-fg-primary);
}
.lp-h2-inverse { color: var(--lp-fg-inverse); }

.lp-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--lp-fg-secondary);
}
.lp-body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lp-fg-muted);
}

/* ── Tag / Badge ────────────────────────────────────────────── */
.lp-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--lp-accent);
  color: var(--lp-fg-inverse);
  letter-spacing: 0.02em;
}
.lp-tag-amber {
  background: #FEF3C7;
  color: #92400E;
}

/* ── Buttons ────────────────────────────────────────────────── */
.lp-btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 12px;
  background: var(--lp-accent);
  color: var(--lp-fg-inverse);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
}
.lp-btn-primary:hover {
  background: var(--lp-accent-hover);
  color: var(--lp-fg-inverse);
}
.lp-btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 12px;
  background: transparent;
  color: var(--lp-fg-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--lp-border);
  transition: border-color 0.2s, color 0.2s;
}
.lp-btn-outline:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}
.lp-btn-white {
  display: inline-block;
  padding: 18px 48px;
  border-radius: 12px;
  background: var(--lp-white);
  color: var(--lp-accent);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
}
.lp-btn-white:hover {
  opacity: 0.9;
  color: var(--lp-accent);
}

/* ── Sections ───────────────────────────────────────────────── */
.lp-section {
  padding: 100px 0;
}
.lp-section-sm {
  padding: 60px 0;
}
.lp-bg-white    { background: var(--lp-white); }
.lp-bg-surface  { background: var(--lp-surface-primary); }
.lp-bg-inverse  { background: var(--lp-surface-inverse); }
.lp-bg-accent   { background: var(--lp-accent); }

/* ── Navigation ─────────────────────────────────────────────── */
.lp-nav {
  background: var(--lp-white);
  padding: 20px 0;
  border-bottom: 1px solid var(--lp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.lp-nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lp-fg-primary);
  text-decoration: none;
}
.lp-nav-brand:hover { color: var(--lp-accent); }
.lp-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  color: var(--lp-fg-secondary);
  text-decoration: none;
  padding: 0 16px;
  transition: color 0.2s;
}
.lp-nav-link:hover { color: var(--lp-accent); }

/* ── Cards ──────────────────────────────────────────────────── */
.lp-card {
  background: var(--lp-surface-tile);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
}
.lp-card-white {
  background: var(--lp-white);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
}
.lp-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: var(--lp-accent);
}

/* ── Step Numbers ────────────────────────────────────────────── */
.lp-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lp-accent);
  color: var(--lp-fg-inverse);
  font-family: 'Geist Mono', 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* ── Stats ──────────────────────────────────────────────────── */
.lp-stat-num {
  font-family: 'Geist Mono', 'Courier New', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--lp-accent);
  line-height: 1;
}

/* ── Comparison Table ────────────────────────────────────────── */
.lp-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
}
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin: 0;
}
.lp-table thead th {
  background: var(--lp-surface-inverse);
  color: var(--lp-fg-inverse);
  padding: 16px 20px;
  font-weight: 600;
  text-align: center;
}
.lp-table thead th:first-child { text-align: left; }
.lp-table thead th.lp-table-ours { color: #93C5FD; }
.lp-table tbody tr:nth-child(even) td { background: var(--lp-surface-tile); }
.lp-table tbody td {
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid var(--lp-border);
  color: var(--lp-fg-secondary);
}
.lp-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--lp-fg-primary);
}
.lp-table-check { color: var(--lp-accent); font-size: 1.1rem; }
.lp-table-cross { color: var(--lp-fg-muted); }
.lp-table-half  { color: #D97706; }

/* ── Checklist ──────────────────────────────────────────────── */
.lp-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}
.lp-check-item .bi {
  color: var(--lp-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Images ─────────────────────────────────────────────────── */
.lp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.lp-img-tall  { height: 480px; }
.lp-img-mid   { height: 440px; }
.lp-img-step  { height: 200px; object-fit: cover; border-radius: 12px; width: 100%; }
.lp-img-uc    { height: 200px; object-fit: cover; border-radius: 12px 12px 0 0; width: 100%; }
.lp-img-print { width: 100%; border-radius: 16px; }

/* ── Use Case Card ───────────────────────────────────────────── */
.lp-uc-card {
  background: var(--lp-white);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}
.lp-uc-card-body {
  padding: 24px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.lp-footer {
  background: var(--lp-surface-inverse);
  padding: 40px 0;
}

/* ── Divider line in Solution ────────────────────────────────── */
.lp-divider {
  width: 48px;
  height: 3px;
  background: var(--lp-accent);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ── Responsive adjustments ─────────────────────────────────── */
@media (max-width: 768px) {
  .lp-section  { padding: 60px 0; }
  .lp-img-tall { height: 300px; }
  .lp-img-mid  { height: 260px; }
  .lp-btn-primary,
  .lp-btn-outline { width: 100%; text-align: center; }
}
