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

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'メイリオ', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fd8850 0%, #ff6b35 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #fd8850, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

/* フィルターセクション */
.filter-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    min-width: 200px;
}

.filter-group > label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: #555;
    font-size: 1.1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    color: #666;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.checkbox-group label:hover {
    color: #fd8850;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    accent-color: #fd8850;
    cursor: pointer;
}

/* 提案セクション */
.suggestion-section {
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.recipe-card.show {
    transform: scale(1);
}

.recipe-card h2 {
    font-size: 2rem;
    background: linear-gradient(45deg, #fd8850, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 600;
}

.recipe-card p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.recipe-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.recipe-link:hover {
    background: #2980b9;
}

.recipe-note {
    margin-top: 5px;
    font-size: 0.1rem;
    color: #ccc;
    opacity: 0.5;
}

/* アクションボタン */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

.btn-primary {
    background: linear-gradient(45deg, #fd8850, #ff6b35);
    color: white;
    box-shadow: 0 4px 15px rgba(253, 136, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #e67739, #e65c2e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 136, 80, 0.4);
}

.btn-secondary {
    background: #27ae60;
    color: white;
}

.btn-secondary:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* 履歴セクション */
.history-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-section h3 {
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.history-item h4 {
    color: #e74c3c;
    margin-bottom: 5px;
}

.history-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.history-item .date {
    color: #999;
    font-size: 0.8rem;
}

.no-history {
    text-align: center;
    color: #999;
    font-style: italic;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .recipe-card {
        padding: 20px;
    }
    
    .recipe-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .recipe-card {
        padding: 15px;
    }
}
