* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
    padding-top: 5vh;
}

/* ヘッダー */
header {
    height: 5vh;
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

header a span {
    margin-right: 8px;
    font-size: 1.1em;
}

/* メインコンテンツ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* ウェルカムセクション */
.welcome-section {
    text-align: center;
    background: linear-gradient(135deg, #a54040ff 0%, #850909ff 100%);
    color: white;
    padding: 60px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.welcome-section h1 {
    font-size: 3em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.welcome-section p {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

/* ジェネレーターフォーム */
.generator-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    font-size: 16px;
    font-family: inherit;
    background-color: #fafbfc;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    background-color: white;
    transform: translateY(-1px);
}

.form-group input[type="text"]:hover {
    border-color: #bdc3c7;
    background-color: white;
}

/* オプショングリッド */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.option-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.option-group h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.option-group select,
.option-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.option-group select:focus,
.option-group input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* 時間指定の入力欄 */
.time-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-input-group label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.time-fields {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-fields input[type="number"] {
    width: 50px;
    padding: 8px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: all 0.3s ease;
    text-align: center;
}

.time-fields input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
    background-color: #f8f9ff;
}

.time-fields input[type="number"]:hover {
    border-color: #999;
}

.time-fields span {
    color: #666;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.time-inputs .separator {
    color: #666;
    font-weight: 500;
    font-size: 16px;
    margin: 0 8px;
    align-self: flex-end;
    margin-bottom: 8px;
}

/* 追加オプション */
.additional-options {
    margin: 30px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.additional-options h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.checkbox-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #5a6c7d;
}

.checkbox-options input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #3498db;
}

/* 生成セクション */
.generate-section {
    text-align: center;
    margin: 30px 0;
}

.generate-button {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.generate-button:active {
    transform: translateY(0);
}

/* 結果セクション */
.result-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 30px;
    border: 2px solid #27ae60;
}

.result-section h2 {
    color: #27ae60;
    margin: 0 0 20px 0;
    font-size: 1.5em;
}

.command-output {
    position: relative;
    background: #2c3e50;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.command-output pre {
    color: #ecf0f1;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #2980b9;
}

.usage-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.usage-info h3 {
    color: #0c5460;
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.usage-info ol {
    color: #0c5460;
    padding-left: 20px;
}

.usage-info li {
    margin-bottom: 8px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .welcome-section h1 {
        font-size: 2em;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-options {
        grid-template-columns: 1fr;
    }
}

/* コンテンツ */
.content {
    background: transparent;
}

.content h2 {
    color: #2c3e50;
    margin: 30px 0 20px 0;
    font-size: 1.8em;
    border-bottom: 2px solid #c92626;
    padding-bottom: 10px;
}

.content h3 {
    color: #34495e;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
}
