/* 基本リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body要素の統一スタイル */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    min-height: 100vh;
}

/* ヘッダー */
header {
    background: linear-gradient(to right, #43a047, #66bb6a);
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* ナビゲーション */
nav {
    background: linear-gradient(to right, #66bb6a, #81c784);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* メインコンテンツ */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* tool-card */
.tool-card {
    background: linear-gradient(135deg, #ffffff, #e8f5e9);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.tool-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2e7d32;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 0.5rem;
}

.tool-card h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #388e3c;
}

.tool-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2e7d32;
}

/* 生成オプション */
.generation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
}

.option-group label {
    font-weight: bold;
    color: #388e3c;
    margin-bottom: 0.8rem;
    display: block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #2c3e50;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.radio-group label:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.radio-group input[type="radio"] {
    margin-right: 0.8rem;
    transform: scale(1.2);
}

/* 数量セクション */
.quantity-section {
    background: rgba(129, 199, 132, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quantity-input label {
    font-weight: bold;
    color: #388e3c;
}

#quantity {
    padding: 0.6rem;
    border: 2px solid #81c784;
    border-radius: 8px;
    font-size: 1rem;
    width: 100px;
    text-align: center;
}

#quantity:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

#type-label {
    font-weight: bold;
    color: #2e7d32;
}

.additional-options {
    margin-top: 1rem;
}

.additional-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.additional-options input[type="checkbox"] {
    margin-right: 0.8rem;
    transform: scale(1.2);
}

/* ボタンセクション */
.button-section {
    text-align: center;
    margin-bottom: 2rem;
}

/* ボタン */
button {
    background: linear-gradient(to right, #4caf50, #45a049);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    margin: 0.5rem;
}

button:hover {
    background: linear-gradient(to right, #45a049, #4caf50);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* 出力セクション */
.output-section {
    margin-top: 2rem;
}

.output-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.format-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.format-options label {
    font-weight: bold;
    color: #388e3c;
}

.format-options select {
    padding: 0.5rem;
    border: 2px solid #81c784;
    border-radius: 6px;
    font-size: 0.9rem;
}

.output-buttons {
    display: flex;
    gap: 0.5rem;
}

.output-buttons button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* テキストエリア */
textarea {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 2px solid #81c784;
    border-radius: 12px;
    resize: vertical;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.8;
}

textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

textarea[readonly] {
    background-color: #f9f9f9;
}

/* 情報セクション */
.info-section {
    margin-top: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #81c784;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.info-card h4 {
    margin-bottom: 1rem;
    color: #2e7d32;
    border-bottom: 1px solid #4caf50;
    padding-bottom: 0.5rem;
}

.info-card p {
    color: #555;
    line-height: 1.6;
}

/* フッター */
footer {
    background: linear-gradient(to right, #43a047, #66bb6a);
    color: white;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .generation-options {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        gap: 0.5rem;
    }
    
    .quantity-input {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .output-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .output-buttons {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}
