/* 
 * 銭辰堂 葬儀費用シミュレーター カスタムスタイル
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

/* --- アニメーション --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
.animate-scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cursor-zoom-in {
  cursor: zoom-in;
}
.w-60px {
  width: 60px;
}
.h-60px {
  height: 60px;
}
.simulator-header-logo {
  width: 100px;
}

/* --- ライトボックス用 --- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 10000;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.zoom-icon-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(34, 77, 136, 0.8);
  color: white;
  padding: 3px;
  border-bottom-left-radius: 4px;
  line-height: 0;
  pointer-events: none;
}

/* --- 初期読み込み・Noscript --- */
.noscript-banner {
  padding: 20px;
  text-align: center;
  background-color: #fef2f2;
  color: #991b1b;
  font-weight: bold;
}

.loading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: sans-serif;
}

.loading-container {
  text-align: center;
}

.loading-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #224d88;
}

.loading-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.seo-content {
  display: none;
}

/* --- 印刷用スタイル (handlePrintで使用) --- */
.print-body {
  font-family: 'Noto Sans JP', sans-serif;
  padding: 40px;
  color: #333;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
}

.print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #224d88;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.print-header img {
  height: 60px;
  margin-bottom: 0;
}

.print-header-title-wrap {
  text-align: right;
}

.print-header h1 {
  color: #224d88;
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.05em;
  font-weight: 900;
}

.print-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  align-items: flex-end;
}

.print-info-right {
  text-align: right;
}

.print-info-tel {
  font-size: 18px;
  font-weight: 900;
  color: #224d88;
  margin-top: 5px;
  display: block;
}

.print-table-container {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.print-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.print-row:last-child {
  border-bottom: none;
}

.print-row.header-row {
  background: #dedede;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

.print-price {
  font-weight: bold;
  text-align: right;
  min-width: 120px;
}

.print-subtotal {
  background: #eaf2ff;
  font-weight: bold;
  color: #224d88;
}

.print-subtotal-pretax {
  font-weight: bold;
  color: #224d88;
  border-top: 2px solid #eee;
}

.print-tax-row {
  background: #fff5f5;
  color: #dc2626;
  font-weight: bold;
}

.print-cremation-row {
  color: #dc2626;
  font-weight: bold;
  border-top: none;
}

.print-total-box {
  background: #224d88;
  color: white;
  padding: 24px;
  border-radius: 6px;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.print-total-label {
  font-size: 16px;
  font-weight: bold;
}

.print-total-amount {
  font-size: 32px;
  font-weight: 900;
}

.print-footer {
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.print-footer p {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
}

.print-btn-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.print-btn-close, .print-btn-print {
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
  font-size: 16px;
}

.print-btn-close { background: #888; }
.print-btn-print { background: #224d88; }
.print-btn-close:hover, .print-btn-print:hover { opacity: 0.8; }

/* ユーティリティ */
.text-emerald-600 {
  color: #059669;
}
.text-red-600 {
  color: #dc2626;
}
.font-black {
  font-weight: 900;
}

/* プラン内包項目 */
.print-included-items {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-weight: normal;
}

.print-included-items .label {
  flex-shrink: 0;
  font-weight: bold;
}

.print-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

@media print { 
  .no-print { display: none !important; } 
  .print-body { padding: 0; } 
  .print-total-box { background: #eee !important; color: #000 !important; border: 1px solid #000; }
  .print-total-amount { color: #000 !important; }
}
