/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2em;
    text-align: center;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

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

.input-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

#textInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.3s ease;
}

#textInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ボタンスタイル */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-btn {
    background-color: #e74c3c;
    color: white;
}

.clear-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

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

.copy-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 結果セクション */
.results-section {
    margin-top: 30px;
}

.results-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.main-result {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* テーブルスタイル */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-table thead {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.results-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.results-table tbody tr:hover {
    background-color: #f8f9fa;
}

.results-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.results-table td:last-child {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
}

/* 通知スタイル */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hidden {
    transform: translateX(100%);
    opacity: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .input-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        margin-bottom: 10px;
    }
    
    .main-result {
        font-size: 1.4em;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification.hidden {
        transform: translateY(-100%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .description {
        font-size: 1em;
    }
    
    #textInput {
        min-height: 150px;
        padding: 12px;
    }
    
    .main-result {
        font-size: 1.2em;
        padding: 15px;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px;
        font-size: 0.8em;
    }
} 
/* ホームボタンのスタイル */
.home-header {
    background-color: #4CAF50;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000;
    margin-bottom: 20px;
}

.home-button {
    display: inline-block;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* PC表示時のスタイル */@media (min-width: 768px) {    .home-header {        text-align: right;        padding: 10px 20px;        background-color: transparent;        box-shadow: none;    }        .home-button {        display: inline-block;        background-color: #4CAF50;        border-radius: 5px;        box-shadow: 0 2px 4px rgba(0,0,0,0.2);        margin-right: 10px;    }        .home-button:hover {        background-color: #45a049;        box-shadow: 0 4px 8px rgba(0,0,0,0.3);        transform: translateY(-2px);    }}
