/* 全角カナ→半角カナ変換ツール スタイルシート */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ヘッダー */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.description {
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
}

.description p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.description p:last-child {
    margin-bottom: 0;
}

/* メインコンテンツ */
main {
    flex: 1;
}

/* 入出力セクション */
.input-section,
.output-section {
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
}

textarea[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* ボタン */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: #95a5a6;
    color: white;
}

.secondary-btn:hover {
    background-color: #7f8c8d;
}

.copy-btn {
    background-color: #27ae60;
    color: white;
    display: block;
    margin: 10px 0 0 auto;
    position: relative;
}

.copy-btn:hover:not(:disabled) {
    background-color: #229954;
}

.copy-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.copy-btn.copied {
    background-color: #27ae60;
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 変換例セクション */
.example-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.example-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

td {
    font-family: 'Courier New', monospace;
}

tr:last-child td {
    border-bottom: none;
}

/* フッター */
footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    margin-top: 60px;
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .description {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    textarea {
        font-size: 0.9rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .example-section {
        padding: 20px 15px;
    }
    
    th, td {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
}