body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #f4f7f6; /* 非常に薄いグレー */
    color: #333333; /* 濃いグレー */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #ffffff; /* 純粋な白 */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* シャドウを調整 */
    width: 800px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

h1 {
    color: #0056b3; /* プロフェッショナルな深い青 */
    margin-bottom: 10px; /* マージンを調整 */
    font-size: 2.2em; /* h1のフォントサイズ調整 */
}

.app-description {
    font-size: 1em; /* 基本フォントサイズ */
    color: #6c757d; /* セカンダリテキスト色 */
    margin-bottom: 20px;
    line-height: 1.5;
}

.section-title {
    color: #333333; /* 濃いグレー */
    font-size: 1.5em; /* フォントサイズを調整 */
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: left;
}

#code-input {
    width: calc(100% - 20px);
    height: 200px;
    background-color: #f8f9fa; /* オフホワイト */
    border: 1px solid #dee2e6; /* 薄いグレー */
    color: #333333;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    resize: vertical;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
}

#scan-button,
#import-button {
    background-image: linear-gradient(to bottom, #007bff, #0056b3); /* 青系のグラデーション */
    color: white;
    padding: 12px 25px;
    border: 1px solid #004085; /* ボーダー */
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* シャドウ */
    transition: all 0.3s ease;
    width: 150px;
}

#scan-button:hover,
#import-button:hover {
    background-image: linear-gradient(to bottom, #0056b3, #003f80); /* ホバー時のグラデーション */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* ホバー時のシャドウ */
    transform: translateY(-2px);
}

#generate-button {
    background-image: linear-gradient(to bottom, #6c757d, #5a6268); /* 灰色系のグラデーション */
    color: white;
    padding: 12px 25px;
    border: 1px solid #495057; /* 灰色系のボーダー */
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* シャドウ */
    transition: all 0.3s ease;
    width: 150px;
}

#generate-button:hover {
    background-image: linear-gradient(to bottom, #5a6268, #495057); /* ホバー時のグラデーション */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* ホバー時のシャドウ */
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* 動的に追加されるマスクボタンのスタイル */
.mask-button-dynamic {
    background-image: linear-gradient(to bottom, #fd7e14, #e66a00); /* オレンジ系のグラデーション */
    color: white;
    padding: 12px 25px;
    border: 1px solid #b35900; /* オレンジ系のボーダー */
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* シャドウ */
    transition: all 0.3s ease;
    display: block;
    margin: 10px auto;
    width: 150px;
}

.mask-button-dynamic:hover {
    background-image: linear-gradient(to bottom, #e66a00, #cc5500); /* ホバー時のグラデーション */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* ホバー時のシャドウ */
    transform: translateY(-2px);
}

.export-button {
    background-image: linear-gradient(to bottom, #28a745, #218838); /* 緑系のグラデーション */
    color: white;
    padding: 10px 20px;
    border: 1px solid #1e7e34;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.export-button:hover {
    background-image: linear-gradient(to bottom, #218838, #1e7e34);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.results-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

#post-mask-actions button {
    background-image: linear-gradient(to bottom, #17a2b8, #138496); /* ティール系のグラデーション */
    color: white;
    padding: 12px 25px;
    border: 1px solid #117a8b;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 10px;
}

#post-mask-actions button:hover {
    background-image: linear-gradient(to bottom, #138496, #117a8b);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

#results-area {
    background-color: #ffffff; /* 純粋な白 */
    border: 1px solid #dee2e6; /* 薄いグレー */
    color: #333333;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: left;
    min-height: 200px;
    overflow-y: auto;
}

#results-area p {
    margin: 0;
    padding-bottom: 5px;
    font-size: 15px;
}

#results-area ul {
    list-style-type: none;
    padding: 0;
}

#results-area li {
    background-color: #e9ecef; /* 非常に薄いグレー */
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 3px;
    word-break: break-all;
    font-size: 15px;
}
