body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.search-bar input[type="text"] {
    padding: 15px; /* パディングを大きくしました */
    border: 2px solid #ff4081;
    border-radius: 25px;
    width: 400px; /* 幅を広げました */
    font-size: 1.2em; /* フォントサイズを大きくしました */
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input[type="text"]:focus {
    border-color: #ff80ab;
}

.search-bar input[type="submit"] {
    background-color: #ff4081;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px; /* フォントサイズを大きくしました */
    cursor: pointer;
    padding: 15px; /* パディングを大きくしました */
    margin-left: 15px; /* マージンを広げました */
    transition: background-color 0.3s;
}

.search-bar input[type="submit"]:hover {
    background-color: #ff80ab;
}

.section {
    margin: 50px 0; /* マージンを広げました */
}

.h2-size {
    color: #ff4081;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(255, 64, 129, 0.5);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 30rem;
}

.recipes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.recipe-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin: 15px; /* マージンを広げました */
    padding: 15px; /* パディングを大きくしました */
    width: 350px; /* 幅を広げました */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.recipe-card:hover {
    transform: scale(1.05);
}

.image-container {
    text-align: center;
}

.dish-image {
    width: 100%;
    border-radius: 10px;
}

.title-container {
    text-align: center;
    margin-top: 15px; /* マージンを広げました */
}

.recipe-title {
    font-size: 1.5em; /* タイトルサイズを大きくしました */
    color: #333;
}


/* スマホ対応のためのメディアクエリ */
@media (max-width: 768px) {
    .search-bar input[type="text"] {
        width: 80%; /* スマホでは幅を80%に設定 */
        font-size: 1em; /* フォントサイズを小さく */
    }

    .search-bar input[type="submit"] {
        font-size: 20px; /* フォントサイズを小さく */
        padding: 10px; /* パディングを調整 */
    }

    .h2-size {
        font-size: 15rem; /* フォントサイズを調整 */
    }

    .recipe-card {
        width: 90%; /* 幅を90%に設定 */
        margin: 10px; /* マージンを調整 */
    }

    .recipe-title {
        font-size: 1.2em; /* タイトルサイズを調整 */
    }
}