/* フォントインポート */ @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&family=Noto+Sans:wght@400;700&family=Noto+Color+Emoji&display=swap'); /* カスタムスタイル */ .fancy-card { padding: 1.2rem; border-radius: 10px; background-color: #ffffff; border: 1px solid #e9ecef; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); margin-bottom: 1.5rem; height: 100%; position: relative; transition: all 0.2s ease; } .fancy-card:hover { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transform: translateY(-3px); } .fancy-text { font-family: 'Arial', 'Hiragino Sans', 'Meiryo', 'Noto Sans JP', 'Noto Color Emoji', sans-serif; font-size: 1.3rem; word-wrap: break-word; padding: 1rem; margin: 0.8rem 0; border-radius: 8px; background-color: #f8f9fa; min-height: 120px; border: 1px dashed #e0e0e0; display: block; /* flexからblockに変更 */ text-align: center; line-height: 1.6; color: #000000; overflow: visible; /* autoからvisibleに変更 */ max-height: none; /* 最大高さ制限を削除 */ unicode-bidi: isolate; word-break: break-word; white-space: pre-wrap; margin: 0; /* pre要素のデフォルトマージンを削除 */ } .fancy-title { font-weight: bold; margin-bottom: 0.8rem; font-size: 1.1rem; color: #333; text-align: center; border-bottom: 2px solid #f0f0f0; padding-bottom: 0.5rem; } .copy-button { position: absolute; bottom: 0.8rem; right: 0.8rem; padding: 0.3rem 0.7rem; border-radius: 20px; border: 1px solid #007bff; background-color: #007bff; color: white; cursor: pointer; font-size: 0.85rem; transition: all 0.2s ease; } .copy-button:hover { background-color: #0069d9; color: white; border-color: #0062cc; } /* カスタムコンテナのスタイル */ .stApp { max-width: 1200px; margin: 0 auto; } /* ヘッダースタイル */ .app-header { text-align: center; margin-bottom: 2.5rem; padding: 1.5rem; background: linear-gradient(135deg, #6e8efb, #a777e3); border-radius: 15px; color: white; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } .app-header h1 { margin-bottom: 0.5rem; font-size: 2.2rem; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); } /* フッタースタイル */ .app-footer { text-align: center; margin-top: 3rem; padding: 1.2rem; font-size: 0.9rem; color: #6c757d; border-top: 1px solid #f0f0f0; } /* プログレスバースタイル */ .stProgress > div > div { background-color: #a777e3; } /* 入力エリアのスタイル改善 */ textarea.stTextArea { border-radius: 8px; border: 2px solid #e0e0e0; padding: 10px; font-size: 1.1rem; } textarea.stTextArea:focus { border-color: #a777e3; box-shadow: 0 0 0 2px rgba(167, 119, 227, 0.2); } /* ボタンスタイルの改善 */ .stButton > button { border-radius: 8px; font-weight: bold; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; } .stButton > button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } /* サイドバースタイル */ .css-1d391kg, .css-163ttbj { background-color: #f8f9fa; border-right: 1px solid #e9ecef; } /* iOSでの特殊文字サポート強化 */ @supports (-webkit-touch-callout: none) { .fancy-text { /* iOS特有のフォントファミリー */ font-family: 'Arial', 'Hiragino Sans', 'Meiryo', 'Noto Sans JP', 'Apple Color Emoji', sans-serif; } } /* デバッグ用スタイル */ .debug-text { font-family: monospace; background-color: #f8f9fa; padding: 10px; border-radius: 5px; border: 1px solid #e0e0e0; white-space: pre-wrap; word-break: break-all; font-size: 0.9rem; }