@@ -204,135 +204,3 @@ img#後手 {
204204
205205
206206
207- /*チャット*/
208-
209- /* chat-messages */
210- .chat-messages {
211- flex : 1 ;
212- flex-grow : 1 ;
213- padding : 5px ;
214- padding-left : 20px ;
215- overflow-y : auto;/* 縦スクロールを有効 */
216- overflow-x : hidden; /* 横スクロールは無効 */
217- /*background-color: #eef1f5;*/
218- /*display: flex;
219- flex-direction: column;
220- justify-content: flex-end;
221- align-items: flex-start;
222- gap: 1px;*/
223- /* align-items: flex-end; 交差軸(縦方向)の終端に寄せる(右下隅にしたい場合) */
224- /*max-height: 300px;
225- height:100px;*/
226- max-height : calc (100% - 80px ); /* フォームの高さ分を差し引く */
227- }
228- .chat-message {
229- margin-bottom : 0 ; /* gapで間隔を制御するためmarginを削除 */
230- padding : 10px ;
231- border-radius : 5px ;
232- max-width : 80% ; /* メッセージの最大幅を制限 */
233- word-wrap : break-word; /* 長い文字列を折り返し */
234- align-self : flex-start; /* 個別に左寄せを確実にする */
235- flex-shrink : 0 ; /* メッセージが縮まないようにする */
236- }
237- /* chat-form */
238- .chat-form {
239- margin : 0 ;
240- display : flex;
241- padding : 10px ;
242- border-top : 1px solid # ddd ;
243- background-color : # ffffff ;
244- }
245- /* chat-input */
246- .chat-input {
247- flex : 1 ;
248- flex-grow : 1 ;
249- padding : 10px 12px ;
250- border : 1px solid # c9c9c9 ;
251- border-radius : 20px ;
252- font-size : 0.9rem ;
253- margin-right : 10px ;
254- outline : none;
255- }
256-
257- .chat-input ::placeholder {
258- color : # a0a0a0 ;
259- }
260-
261- /* chat-button */
262- .chat-button {
263- padding : 10px 20px ;
264- background-color : # 007bff ;
265- color : white;
266- border : none;
267- border-radius : 20px ;
268- font-size : 1rem ;
269- cursor : pointer;
270- transition : background-color 0.2s ease-in-out;
271- }
272- .chat-button : hover {
273- background-color : # 0056b3 ;
274- }
275- .chat-button : active {
276- background-color : # 004085 ;
277- }
278-
279-
280- /* 非表示時のチャットコンテナのスタイル */
281- .chat-container .closed {
282- transform : translateX (calc (100% - 20px )); /* 右端に隠れるように移動 (ボタンの幅に合わせて調整) */
283- /*opacity: 0.5; 半透明にする */
284- pointer-events : none; /* クリックイベントを無効にする */
285- }
286- /* 開閉ボタンのスタイル */
287- .chat-toggle-button {
288- position : absolute;
289- left : -15px ;
290- width : 32px ;
291- height : 32px ;
292- color : white;
293- border : none;
294- border-radius : 6px ;
295- cursor : pointer;
296- display : flex;
297- align-items : center;
298- justify-content : center;
299- font-size : 16px ;
300- z-index : 10 ; /* メッセージより上に表示 */
301- transition : background-color 0.2s ;
302- /*position: fixed;
303- bottom: 30px;
304- right: 20px;
305- background-color: #007bff;
306- color: white;
307- border: none;
308- border-radius: 50%;
309- width: 40px;
310- height: 40px;
311- font-size: 1.5rem;
312- display: flex;
313- align-items: center;
314- justify-content: center;
315- cursor: pointer;
316- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
317- z-index: 1001;*/ /* チャットコンテナ (z-index: 1000) より手前に */
318- }
319- /* ボタンがチャットコンテナの隣に位置する場合のスタイル調整 */
320- .chat-container .closed + .chat-toggle-button {
321- right : 20px ; /* チャットコンテナが閉じている時はボタンが右端に */
322- }
323- .chat-container : not (.closed ) + .chat-toggle-button {
324- /* チャットコンテナが開いている時はボタンをチャットコンテナの左端近くに */
325- /* chat-containerの幅(20vw)からボタンの幅(40px)を引いて、右端からの位置を計算 */
326- /*right: calc(20vw + 20px);*/
327- right : calc (0vw + 20px );
328- }
329-
330-
331-
332- @keyframes fadeIn {
333- from { opacity : 0 ; transform : translateY (20px ); }
334- to { opacity : 1 ; transform : translateY (0 ); }
335- }
336- .animate-fade-in {
337- animation : fadeIn 0.8s ease-out forwards;
338- }
0 commit comments