html, body {
  font-family: Arial, sans-serif;
  width: 100%;
  height: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

/* 透かし画像 */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 800px;          /* 画像サイズ */
  height: 800px;
  background-image: url("../img/splash.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: grayscale(100%) brightness(1.2) contrast(0.8);
  opacity: 0.08;          /* 透かし感 */
  transform: translate(-50%, -50%);
  pointer-events: none;  /* クリックを邪魔しない */
  z-index: 0;
}


.delete-btn {
  white-space: nowrap;
}

    body {
      font-size: 1.15rem; /* 既存 */
    }

    /* 操作ボタン共通 */
    .action-btn {
      height: 6rem; /* 高さを大きく（約2倍） */
      font-size: 3rem;
    }

    /* ボタン間の余白 */
    .action-btn + .action-btn {
      margin-left: 0.5rem;       /* 横の隙間 */
    }

    /* 押した感を強く */
    .action-btn:active {
      transform: scale(0.98);
    }

    .form-control, #savedNames {
      font-size: 2rem; /* または 18px, 14px など */
    }

    /* 編集ロック */
    .locked {
      opacity: 0.4;
      pointer-events: none;
    }

#splash {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ふわっと浮かび上がる */
#splash img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  animation: fadeUp 1.5s ease forwards;
}

#startBtn {
  margin-top: 850px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* シャッフルアニメーション */
.shuffle-move {
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.shuffle-out {
  transform: translateY(var(--offset));
  opacity: 0.3;
}

/* シャッフル用 */
.shuffle-item {
  transition:
    transform 0.35s cubic-bezier(.34,1.56,.64,1),
    box-shadow 0.35s ease,
    opacity 0.25s ease;
}

.shuffle-out {
  opacity: 0.5;
  box-shadow: 0 1rem 2rem rgba(0,0,0,.25);
}

/* ちょい浮く感じ */
.shuffle-out {
  transform:
    translate(var(--x), var(--y))
    rotate(var(--r))
    scale(1.05);
}

#addBtn,
#shuffleBtn,
#confirmBtn {
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  line-height: 1.2;
}

/* 右→左へスライドアウト */
#pageWrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-out-left {
  animation: slideOutLeft 0.2s ease-in forwards;
  pointer-events: none; /* クリック無効化 */
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(-100%) scale(0.98);
    opacity: 0.7;
  }
}

