/* ローマ字変換ツール WordPressプラグイン用CSS */

.romaji-converter-wrapper {
    font-family: 'Meiryo', 'Yu Gothic', sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.romaji-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.romaji-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

.romaji-step {
    background: #e8f4f8;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.romaji-step-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.romaji-step-number {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.romaji-textarea {
    width: 100%;
    height: 120px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-sizing: border-box;
    font-family: 'Consolas', 'Monaco', monospace;
    resize: vertical;
}

.romaji-textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.romaji-example {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-family: 'Consolas', 'Monaco', monospace;
}

.romaji-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.romaji-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.romaji-select,
.romaji-btn {
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 5px;
    border: 2px solid #ddd;
}

.romaji-select {
    background: white;
    min-width: 200px;
}

.romaji-btn {
    background: #3498db;
    color: white;
    border: 2px solid #3498db;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.romaji-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
    color: white;
    text-decoration: none;
}

.romaji-convert-btn {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    font-size: 18px;
    padding: 15px 30px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
}

.romaji-convert-btn:hover {
    background: #229954 !important;
    border-color: #229954 !important;
}

.romaji-radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.romaji-radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.romaji-radio-label input[type="radio"] {
    transform: scale(1.2);
}

.romaji-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    background: white;
}

.romaji-table th {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.romaji-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.romaji-table tr:nth-child(even) {
    background: #f8f9fa;
}

.romaji-table .warning {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.romaji-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-weight: bold;
}

.romaji-instruction {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 15px 0;
    line-height: 1.6;
}

.romaji-highlight {
    background: #fff3cd;
    padding: 2px 5px;
    border-radius: 3px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .romaji-container {
        padding: 20px;
    }
    
    .romaji-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .romaji-control-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .romaji-radio-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .romaji-table {
        font-size: 12px;
    }
    
    .romaji-table th,
    .romaji-table td {
        padding: 8px 4px;
    }
}

/* WordPress管理画面での表示調整 */
.wp-admin .romaji-converter-wrapper {
    background-color: white;
}

.wp-admin .romaji-container {
    box-shadow: none;
}