/* ============================================================
   common/modal.css — モーダル / ボトムシート / トースト
   ============================================================ */

/* ---- モーダルオーバーレイ ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: flex-end;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(2px);
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---- ボトムシート ---- */
.modal-sheet {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 20px 16px 32px;
  width: 100%;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.25,.46,.45,.94);
}
.modal-overlay.show .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 0 auto 14px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
  text-align: center;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---- スタンプアイコン（打刻確認モーダル用） ---- */
.stamp-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

/* ---- モーダルボタン群 ---- */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* ---- センターモーダル ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 0 24px;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 360px;
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header .modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  text-align: left;
  margin-bottom: 0;
}

.close-btn {
  font-size: 20px;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.rename-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---- トースト通知 ---- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(200px);
  background: rgba(30,30,30,.92);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 20px;
  white-space: nowrap;
  transition: transform .3s, opacity .3s;
  z-index: 400;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
