/* レシピ検索ページ専用スタイル */

/* ページ全体 */
.search-main {
    background-color: #FAF3E8;
    min-height: 100vh;
}

/* ヒーローセクション */
.search-hero {
    text-align: center;
    padding: 120px 20px 100px;
    background: linear-gradient(135deg, #e6f1e6 0%, #9ec49f 50%, #f3eda5 100%);
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 35%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.search-page-title {
    font-family: 'Borel', cursive;
    font-size: 64px;
    color: white;
    margin: 0 auto 20px;
    font-weight: normal;
    letter-spacing: 4px;
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    max-width: 800px;
    line-height: 1.3;
}

.search-subtitle {
    font-size: 22px;
    color: white;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* フィルターセクション */
.search-filter {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.5);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-label {
    font-size: 18px;
    color: #5C4A3C;
    font-weight: bold;
    letter-spacing: 1px;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 30px;
    background-color: white;
    border: 2px solid #7DB88E;
    border-radius: 30px;
    color: #5C4A3C;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Borel', cursive;
}

.filter-btn:hover {
    background-color: #7DB88E;
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #7DB88E;
    color: white;
}

/* レシピグリッド */
.recipe-grid {
    padding: 60px 20px 80px;
}

.recipe-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* レシピカード */
.recipe-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .card-image img {
    transform: scale(1.1);
}

.card-flag {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 45px;
    background-color: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 24px;
    color: #5C4A3C;
    margin-bottom: 8px;
    font-weight: bold;
}

.card-country {
    font-size: 14px;
    color: #7DB88E;
    margin-bottom: 15px;
    font-weight: bold;
}

.card-description {
    font-size: 14px;
    color: #5C4A3C;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 5px 15px;
    background-color: #F5E5A8;
    border-radius: 20px;
    font-size: 12px;
    color: #5C4A3C;
}

.card-button {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    background-color: #FBD864;
    color: #5C4A3C;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Borel', cursive;
    font-size: 16px;
    transition: all 0.3s ease;
}

.card-button:hover {
    background-color: #7DB88E;
    color: white;
    transform: scale(1.05);
}

/* Page Topボタン */
.page-top-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-top-button {
    display: inline-block;
    background-color: #FBD864;
    padding: 12px 60px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.page-top-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-top-button span {
    font-family: 'Borel', cursive;
    font-size: 22px;
    color: #5C4A3C;
    letter-spacing: 2px;
}

.page-top-wrapper .airplane-icon {
    width: 120px;
    height: auto;
    object-fit: contain;
    margin-left: -30px;
    position: relative;
    left: 60px;
    top: 20px;
    filter: brightness(0.6) contrast(1.2);
    z-index: 2;
    animation: fly 3s ease-in-out infinite;
}

@keyframes fly {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-8px) translateX(5px);
    }

    50% {
        transform: translateY(-5px) translateX(10px);
    }

    75% {
        transform: translateY(-8px) translateX(5px);
    }
}

/* ヘッダーのリンクスタイル */
.site-title a {
    color: #5C4A3C;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-title a:hover {
    opacity: 0.7;
}