/* 基本スタイル */
body {
    font-family: Arial, sans-serif; /* bodyの2つ目の定義で上書き */
    margin: 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.container {
    max-width: 800px; /* より大きい値を採用 */
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* セクションとコンテナ要素 */
section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 10px;
}

.wallet-info {
    margin-top: 10px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
}

.contract-buttons {
    margin-top: 10px;
}

.description {
    margin-top: 20px;
    text-align: left;
}

.result {
    margin: 20px 0;
    overflow-wrap: break-word;
}

/* フォーム要素 */
label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"], 
select, 
input[type="file"], 
textarea, 
button {
    padding: 8px; /* 共通の最小値を採用しつつ調整 */
    border: 1px solid #ddd; /* button以外に適用 */
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="text"], 
select {
    width: calc(100% - 12px);
}

input[type="file"], 
textarea, 
button {
    width: 100%;
    margin: 10px 0;
}

textarea {
    resize: both;
}

button {
    padding: 10px 15px; /* より具体的な値を優先 */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px; /* 元のスタイルを保持 */
}

button:hover {
    background-color: #0056b3;
}

/* テキストとラッピング */
p, 
th, 
td, 
.result {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* テーブル関連 */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

table, 
th, 
td {
    border: 1px solid #ddd;
}

th, 
td {
    padding: 8px;
    text-align: left;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background-color: #f2f2f2;
}

/* ボタン関連 */
.copy-btn {
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
}

/* ドロップゾーン */
#dropZone {
    width: 400px;
    height: 300px;
    border: 3px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    color: #666;
    background-color: #f9f9f9;
    margin: 20px auto;
    transition: all 0.3s;
}

#dropZone.dragover {
    border-color: #007bff;
    background-color: #e6f0ff;
    color: #007bff;
}