.footer_cp {
    opacity: 1;
    /* 0は透明、1は表示 */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    /* opacityが変化する際に0.3秒かけてアニメーション */
}


#add-button {
    padding: 10px 25px 12px 25px;
    font-size: 1em;
    cursor: pointer;
    /* margin-bottom: 20px; */
    background: rgba(0, 102, 204, 0.5);
    border-radius: 20px;
    color: #fff;
    /* フィールドリストとの間にスペース */
}

/* #add-button:focus, */
#add-button:active {
    /* opacity: 0.8; */
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer
}

#add-button:hover {
    /* opacity: 0.8; */
    background: rgba(0, 102, 204, 0.3);
    cursor: pointer
}


.word-item {
    display: flex;
    /* フィールドとボタンを横並びに */
    align-items: flex-start;
    /* 要素の上端を揃える */
    margin-bottom: 10px;
    gap: 10px;
    /* 要素間の隙間 */
}

.word-item textarea {
    flex-grow: 1;
    /* 利用可能なスペースを埋めるように拡張 */
    padding: 8px;
    border: 1px solid #ccc;
    min-height: 60px;
    /* ある程度の高さを確保 */
    resize: vertical;
    /* 垂直方向のみリサイズ可能に */
    border-radius: 5px;
    /* color: #666; */
    color: #444;

}

.remove-button {
    /* padding: 13px 13px; */
    width: 40px;
    height: 40px;
    /* background: rgba(0, 102, 204, 0.5); */
    background: rgba(204, 102, 102, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    /* font-size: 1em; */
    line-height: 1;
    /* ボタン内のテキストの縦方向の揃え */
    align-self: center;
    /* 親要素の中央に垂直方向に配置 */
    border-radius: 5px;
    /* background-image: url(../../common/img/delete_forever_white.svg); */
    background-repeat: no-repeat;
    background-position: center;
    /* 左中央にアイコンを配置 */
    background-size: 90%;
    /* アイコンのサイズ調整 */
}

.remove-button:hover {
    background-color: #ff9900;
}


#word-list {
    margin: 20px auto;
    /* max-width: 450px; */
    width: 100%;
}


#message-area {
    text-align: center;
    background-color: #ff9900;
    color: #fff;
    /* エラーメッセージの色 */
    /* margin-bottom: 5px; */
    min-height: 1.2em;
    /* メッセージがないときも高さを確保 */
    opacity: 0;
    /* 初期状態は非表示 */
    transition: opacity 0.3s ease-in-out;
    /* フェードアニメーション */
    padding: 3px 0 1px 0;
    margin: 3px 0;
    font-size: 1rem;
    border-radius: 10px;
}

#message-area.visible {
    opacity: 1;
    /* 表示時は不透明 */
}



/* マイワードの編集に「お気に入り」を追加********************************** */
.button-container {
    display: flex;
    flex-direction: column;
    /* ボタンを縦に並べる */
    gap: 5px;
    /* ボタン間のスペース */
    align-self: center;
    /* 上下の位置を中央に */
}

.favorite-button {
    /* padding: 13px 13px; */
    width: 40px;
    height: 40px;
    /* background: rgba(0, 102, 204, 0.5); */
    /* background: rgba(204, 102, 102, 0.9); */
    color: white;
    border: none;
    cursor: pointer;
    /* font-size: 1em; */
    line-height: 1;
    /* ボタン内のテキストの縦方向の揃え */
    align-self: center;
    /* 親要素の中央に垂直方向に配置 */
    border-radius: 5px;
    /* background-image: url(../../common/img/delete_forever_white.svg); */
    background-repeat: no-repeat;
    background-position: center;
    /* 左中央にアイコンを配置 */
    background-size: 90%;
    /* アイコンのサイズ調整 */

    padding: 0px 10px;
    background-color: #f0f0f0;
    color: #555;
    color: #ffc107;
    /* border: 1px solid #ccc; */
    cursor: pointer;
    font-size: 1em;
    /* line-height: 1; */
    margin: 0 0 0.3em 0;
}

.favorite-button.favorited {
    background-color: #ffc107;
    /* お気に入り時の色 */
    color: white;
    border-color: #ffc107;
}




/* ページからこちらに移行********************************** */
.word-item textarea {
    flex-grow: 1;
    /* 利用可能なスペースを埋めるように拡張 */
    padding: 8px;
    border: 1px solid #ccc;
    min-height: 90px;
    /* ある程度の高さを確保 */
    resize: vertical;
    /* 垂直方向のみリサイズ可能に */
    font-size: 100%;
}