/* ============================================================
   電子印鑑スタイル
   ============================================================ */
.seal {
  --seal-size: 52px;
  --seal-color: #cc0000;
  width: var(--seal-size);
  height: var(--seal-size);
  border: 2px solid var(--seal-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.seal::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--seal-color);
  border-radius: 50%;
}

.seal-text {
  color: var(--seal-color);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 16px;
  font-weight: bold;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  line-height: 1;
}

/* 文字数別サイズ調整 */
.seal-text.seal-text-2 { font-size: 16px; letter-spacing: 2px; }
.seal-text.seal-text-3 { font-size: 13px; letter-spacing: 1px; }
.seal-text.seal-text-4 { font-size: 10px; letter-spacing: 1px; }
.seal-text.seal-text-5 { font-size: 8px; letter-spacing: 0; }

.seal-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.seal-timestamp {
  font-size: 10px;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}

.seal-role-label {
  font-size: 10px;
  color: #64748b;
  text-align: center;
}

/* 承認エリア（横並び） */
.seal-area {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 12px 0;
}

.seal-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* 押印アニメーション */
@keyframes stamp {
  0% {
    transform: scale(1.3) translateY(-8px);
    opacity: 0;
  }
  50% {
    transform: scale(0.95) translateY(1px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.seal--animate {
  animation: stamp 0.35s ease-out forwards;
}

/* インク広がりエフェクト */
@keyframes inkSpread {
  0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.3); }
  100% { box-shadow: 0 0 10px 3px rgba(204, 0, 0, 0); }
}

.seal--stamped::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: inkSpread 0.5s ease-out 0.2s forwards;
}

/* 確認モーダル内の大きな印鑑プレビュー */
.seal-preview {
  --seal-size: 80px;
  margin: 20px auto;
}

.seal-preview .seal-text {
  font-size: 24px;
  letter-spacing: 4px;
}

.seal-preview .seal-text.seal-text-2 { font-size: 24px; letter-spacing: 4px; }
.seal-preview .seal-text.seal-text-3 { font-size: 19px; letter-spacing: 2px; }
.seal-preview .seal-text.seal-text-4 { font-size: 15px; letter-spacing: 1px; }
.seal-preview .seal-text.seal-text-5 { font-size: 12px; letter-spacing: 0; }

/* 押印確認ボタン */
.btn-stamp {
  background: #cc0000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  min-height: 48px;
  width: 100%;
  transition: opacity 0.2s;
}

.btn-stamp:active {
  opacity: 0.8;
}
