/* body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    font-family: sans-serif;
}

form {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 320px;
    align-items: center;
}

input[type="file"] {
    padding: 10px;
    font-size: 16px;
}

button[type="submit"] {
    background: #FF9800;  
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
    background: #F57C00;
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

p {
    margin-top: 20px;
    text-align: center;
}

a {
    color: #FF9800;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
} */

/* 全体 */
body {
    font-family: "Segoe UI", sans-serif;
    background-color: #fffaf5;
    margin: 0;
    padding: 20px;
    color: #333;
    text-align: center;
}

/* 各セクションをカード風に */
.registration, .confirmation, .revise {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* 見出し */
h2 {
    margin-bottom: 15px;
    color: #FF9800; /* オレンジ */
}

/* ファイル選択や入力 */
input[type="file"], input[type="text"] {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #f39c12;
    border-radius: 8px;
    font-size: 14px;
}

/* ボタン */
button, input[type="submit"] {
    background-color: #FF9800;
    color: white;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 90%;
}

button:hover, input[type="submit"]:hover {
    background-color: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 管理画面に戻るリンク */
a {
    color: #FF9800;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

#thumbnailContainer{
    display: flex; flex-wrap: wrap;
}
#thumbnailContainer2{
    display: flex; flex-wrap: wrap;
}
.content-item {
  border: 2px solid transparent;
  padding: 5px;
  cursor: pointer;
}

.content-item.selected {
  border: 2px solid red;
  background-color: #ffeaea;
  position: relative;
  overflow: visible; 
}

.content-item.selected::before {
  /* content: attr(data-order); */
  content: 1;
  position: absolute;
  top: -6px;    /* 枠の外に少し出すと潰れにくい */
  left: -6px;
  display: inline-block;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;

  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;  /* 丸いバッジ風 */
  box-shadow: 0 0 2px rgba(0,0,0,0.3);

  z-index: 10;
}
