/* =========================
   全体設定
========================= */

body{

    margin: 0;

    font-family: sans-serif;

    background-color: #f7f3ec;

    color: #4b3d32;

}



/* =========================
   ヘッダー
========================= */

header{

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 40px;

    background-color: #fffdf8;

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

}



.logo h1{

    margin: 0;

    font-size: 32px;

}

.logo a{

    text-decoration: none;

    color: inherit;

}

.logo h1{

    color: #4b3d32;

}

.logo p{

    color: #7b6d62;

}


.logo p{

    margin-top: 5px;

    font-size: 14px;

    color: #7b6d62;

}


.logo a{

    text-decoration: none;

    color: inherit;

}


/* =========================
   ナビゲーション
========================= */

nav ul{

    display: flex;

    gap: 25px;

    list-style: none;

    padding: 0;

    margin: 0;

}



nav a{

    text-decoration: none;

    color: #4b3d32;

    font-weight: bold;

    transition: 0.3s;

}



nav a:hover{

    color: #8aa66d;

}



/* =========================
   ≡メニュー
========================= */

.menu-button{

    font-size: 32px;

    cursor: pointer;

    display: none;

}

/* =========================
   ページ下部ボタン
========================= */

.page-buttons{

    display: flex;

    justify-content: center;

    gap: 20px;

    margin: 60px 0;

    flex-wrap: wrap;

}



.page-buttons a{

    text-decoration: none;

    padding: 14px 28px;

    border-radius: 30px;

    font-weight: bold;

    transition: 0.3s;

}



/* レシピ一覧へ戻る */

.back-button{

    background-color: white;

    color: #8aa66d;

    border: 2px solid #8aa66d;

}



.back-button:hover{

    background-color: #8aa66d;

    color: white;

}



/* 上へ戻る */

.top-button{

    background-color: #8aa66d;

    color: white;

    opacity: 0;

    visibility: hidden;

}



.top-button:hover{

    background-color: #6f8857;

}



/* 表示時 */

.top-button.show{

    opacity: 1;

    visibility: visible;

}

/* =========================
   メイン画像
========================= */

.main-visual{

    position: relative;

}



.main-visual img{

    width: 100%;

    height: 500px;

    object-fit: cover;

}



.main-text{

    position: absolute;

    top: 50%;

    left: 10%;

    transform: translateY(-50%);

    background-color: rgba(255,255,255,0.8);

    padding: 40px;

    border-radius: 20px;

}



.main-text h2{

    font-size: 45px;

    margin-bottom: 20px;

}



.main-text p{

    font-size: 18px;

    line-height: 1.8;

}



/* =========================
   ボタン
========================= */

.recipe-button{

    display: inline-block;

    margin-top: 20px;

    padding: 15px 30px;

    background-color: #8aa66d;

    color: white;

    text-decoration: none;

    border-radius: 50px;

    transition: 0.3s;

}



.recipe-button:hover{

    background-color: #6f8857;

}



/* =========================
   セクション共通
========================= */

section{

    padding: 80px 10%;

}



section h2{

    text-align: center;

    font-size: 36px;

    margin-bottom: 50px;

}



/* =========================
   レシピカード
========================= */

.recipe-list{

    display: flex;

    gap: 30px;

    justify-content: center;

    flex-wrap: wrap;

}



.recipe-card{

    width: 320px;

    background-color: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition: 0.3s;

}



.recipe-card:hover{

    transform: translateY(-8px);

}



.recipe-card img{

    width: 100%;

    height: 220px;

    object-fit: cover;

}



.recipe-card h3{

    padding: 20px 20px 10px;

    margin: 0;

}



.recipe-card p{

    padding: 0 20px 25px;

    line-height: 1.7;

}



/* =========================
   特産品
========================= */

.food-icons{

    display: flex;

    flex-wrap: wrap;

    gap: 30px;

    justify-content: center;

}



.food-item{

    text-align: center;

}



.food-item img{

    width: 100px;

    height: 100px;

    object-fit: cover;

    border-radius: 50%;

    background-color: white;

    padding: 10px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);

}



.food-item p{

    margin-top: 10px;

    font-weight: bold;

}



/* =========================
   このサイトについて
========================= */

.about-mini{

    background-color: #efe6d7;

    border-radius: 30px;

    margin: 50px 10%;

    text-align: center;

}



.about-mini p{

    line-height: 2;

    font-size: 17px;

}



/* =========================
   フッター
========================= */

footer{

    background-color: #8aa66d;

    color: white;

    padding: 40px;

    text-align: center;

}



footer ul{

    display: flex;

    justify-content: center;

    gap: 20px;

    list-style: none;

    padding: 0;

}



footer a{

    color: white;

    text-decoration: none;

}



footer p{

    margin-top: 20px;

}



/* =========================
   スマホ対応
========================= */

@media screen and (max-width: 768px){

    nav{

        display: none;

    }



    .menu-button{

        display: block;

    }



    .main-text{

        left: 5%;

        right: 5%;

        padding: 25px;

    }



    .main-text h2{

        font-size: 32px;

    }



    .recipe-card{

        width: 100%;

    }

}

/* =========================
   メニュー開閉
========================= */

nav.active{

    display: block;

    position: absolute;

    top: 90px;

    right: 20px;

    background-color: white;

    padding: 20px;

    border-radius: 20px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

}



nav.active ul{

    flex-direction: column;

}



/* =========================
   ふわっと表示
========================= */

.recipe-card{

    opacity: 1;

    transform: translateY(0px);

}



.recipe-card.show{

    opacity: 1;

    transform: translateY(0);

    transition: 1s;

}

@media screen and (max-width: 600px) {
  .hero {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero img {
    width: 100%;
    height: 900px; /* 縦長の写真感は残す */
    object-fit: cover;
    display: block;
  }

  .hero-content {
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 600px) {
  main,
  .container,
  .main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
}