/* モーダルの背景 */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* 半透明の黒い背景 */
}

/* モーダルのコンテンツ部分 */
.modal-content {
    width: 80%;
    margin:20% auto; /* 上下15%、左右中央に配置 */
    padding:8vw 5%;
    background-color: #fefefe;
    border: 1px solid #888;
    /* max-width: 400px; */
    position: relative;
    border-radius:2.5vw;
}
.modal-content h3{margin:0;font-size:4.5vw;}

/* 閉じるボタン */
.close-btn {
    color: #aaa;
    position: absolute;
    top: 5vw;
    right: 8vw;
    font-size: 8vw;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
}

/* ▼▼▼ ここから追記 ▼▼▼ */
/* モーダル内の入力エリア */
.input-area {
    display: flex; /* 横並びにする */
    margin-bottom:5vw;
}

.input-area input {
    flex-grow: 1; /* 入力欄ができるだけ幅をとるように */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 8px;
}

.input-area button {
    padding: 8px 16px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.input-area button:hover {
    background-color: #0056b3;
}
/* ▲▲▲ ここまで追記 ▲▲▲ */


/* 選択肢のリスト */
#modal-item-list{
	display:flex;flex-wrap:wrap;
    margin:4vw 0 0 0;
    list-style:none;
    padding: 0;
}
#modal-item-list li{
	width:35%;padding:1rem 0;margin:.5rem 0 0 3%;
	font-size:3.5vw;
	text-align:center;
    border:1px solid #ddd;
	border-radius:.3rem;
    cursor: pointer;
}
#modal-item-list li:hover {
    background-color: #f2f2f2;
}