@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Decol&display=swap');
.kaisei-decol-regular {
  font-family: "Kaisei Decol", serif;
  font-weight: 400;
  font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');
.shadows-into-light-regular {
  font-family: "Shadows Into Light", cursive;
  font-weight: 400;
  font-style: normal;
}
#hero{
  position: relative;
  background:url(../img/food-01.jpg) no-repeat center center / cover;
  height: 600px;
  width: 100%;
}
#hero h2{
position: absolute;
  z-index: 1;
  font-size: 2.2rem;
  color: #FFF;
    top:50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  text-align: center;
}
header{
  background-color:#fff;
  color:#000;
  padding: 20px;
}
.top-bar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
}
/*---------hederのnav-----------*/
.menu{
  margin-top: 10px;
  width: 100%;
  text-align: center;  

}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center; 
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color:#000;
  font-size: 18px;
}

.nav-links li a:hover {
  text-decoration: underline;
}
/*---------------------------------------------------*/
.text-center{
  padding-top:30px;
}
main{
  background-color:#e5f7ab;
}
.index-img img{
  width: 100%;
  height: auto; 
}
/*--------料理別レシピと目的別レシピ---------*/
.category h3{
  font-size: 18px;
  color: #fff;
  background-color: #44e02f;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 10px;
  list-style-type: none;
}
.category ul{
background-color: #f7f7f7;
  border-radius: 6px;
  padding: 10px;
  list-style: none;
  margin-bottom: 40px;
}
.category li{
margin-bottom: 8px;
}
.category li a{
  text-decoration: none;
   font-size: 16px;
  color: #555;
}
.category li a:hover{
  text-decoration: underline;
}
/*----------新着レシピ 人気ランキング　簡単レシピ----------*/
.new-recipe-ranking{
  background-color: #f7f7f7;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 30px;
}
.new-recipe-ranking h3{
   font-size: 22px;
  color: #fff;
  background-color: #44e02f;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 20px;
}
.recipe-name{
  font-size: 15px;
}
.easy-resipe p{
  font-size: 16px;
 line-height: 2.5;
}
.easy-resipe a {
    position: absolute;
  bottom: 0;          
  right: 15px;   
  text-decoration: none;
   font-size: 16px;
  color: #ffcb0d;      
}
.easy-resipe a:hover{
  text-decoration: underline;
}
.easy-resipe {
  position: relative; 
  margin-bottom: 15px;
}
i{
  font-size: 15px;
}
footer{
  background-color:fff;
  color:#000;
  padding: 30px 30px;
}
/*----------------------ingredients.htmlとseasonal-dishes.html------------------------*/
.heading{
  background-color: #f5f5f5;
}
.heading-inner{
  width: 100%;
  margin: 0 auto;
  padding:20px 0px 20px 20px;
}
.heading__title {
  font-size: 3rem;
  font-weight: 500;
    }
.Main__content {
  max-width: 1260px;
  padding: 3.5rem 30px 13.2rem;
  width: 100%;
  margin: 0 auto;
    }
.anchor-list {
  display: flex; 
  list-style: none;
  padding: 0;
  margin: 20px 0px 50px 20px;
  gap: 50px; 
}

.anchor-list li {
  margin: 0; 
}

.anchor-list a {
  text-decoration: none; 
  color: #000;
}
.anchor-list a:hover{
  text-decoration: underline;
  }
.heading1{
  padding-bottom: 0.6em;
  margin: 2em 0px 0px;
  position: relative;
}
.heading1-title {
  border-bottom: 2px solid #abcbf7; 
  padding-bottom: 10px; 
  margin-left:20px ;
}
.ingredients-card-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  grid-auto-rows: auto; 
  gap: 10px;
  margin-left: 20px;
  margin-right:20px ;
}
.ingredients-card-typ a:active,a:hover,a:link,a:visited{
  color: #000;
  text-decoration: none;

}
.ingredients-card-typ {
    display: flex; 
    align-items: center;
    gap: 0.5em; 
    text-decoration: none; 
}


.ingredients-card {
    display: flex; 
    align-items: center; 
    gap: 0.5em; 
    background: #fff;
    height: auto;
    border-radius: 10px; 
    padding: 10px;
}
.ingredients-card:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.ingredients-card:nth-child(-n+5) {
  padding-top: 10px;
  padding-bottom: 10px;
}
.ingredients-card:nth-child(n+6) {
  margin-top: 15px;
  padding-bottom: 10px;
}
.ingredients-card-imge img {
    width: 120px;
    height:auto;
}
.ingredients-card-imge {
    flex-shrink: 0;
}
.ingredients-card-title {
    margin: 0; 
    font-size: 1.2em; 
    font-weight: bold; 
    color: #333; 
    padding-left: 20px;

}
/*-----------------privacy-policy.html----------------------*/
.privacy-policy-body{
  padding:20px;
}
.privacy-policy-title{
  border-bottom: 2px solid #abcbf7; 
  padding-bottom: 10px;
}
/*------------------contact.html----------------------*/
.contact main{
  padding-top: 20px;
  padding-bottom: 20px;
}
.contact-main{
    padding: 20px;
    max-width: 600px;
    margin: 0px auto;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
.contact-main form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-main form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.contact-main button {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}
.contact-main button:hover {
    background-color:#F8B26A ;
}
/*-----------------seasonal-dishes-------------------*/
.seasonal-main{
  padding-bottom: 30px;
}
h4{
  padding-left: 20px;
}
.sub-title{
   padding-top: 20px;
}

/*--------------------new-recipes.html----------------------*/
.new-recipes-card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 横4列 */
    gap: 16px; /* カードの間隔 */
    justify-content: center; /* カードを中央揃え */
    padding: 20px;
}

.new-recipes-ingredient-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.new-recipes-ingredient-card:hover {
    transform: scale(1.05);
}

.new-recipes-ingredient-card a {
    display: block;
    text-decoration: none;
}

.new-recipes-ingredient-card img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #ddd;
}

.new-recipes-ingredient-card p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 10px;
}
/*-------------------recipe-festival.html----------------------*/
.recipe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    justify-content: center; 
    align-items: center;
    margin: auto; 

}

.recipe-card {
    width: calc(22% - 15px);
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.recipe-card img {
    width: 100%;
    border-radius: 10px;
}
.recipe-card:hover {
    transform: scale(1.05);
}
/*-----------------------------------------------------*/
.recipes {
    display: flex;
    grid-template-columns: repeat(4, 1fr);
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.recipe {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: calc(25% - 20px); 
    box-sizing: border-box;
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 300px; 
}

.recipe img {
    width: 100%;
    border-radius: 10px;
}

.recipe h3 {
    margin: 10px 0;
    font-size: 20px;
}

.recipe p {
    font-size: 16px;
    color: #666;
    flex-grow: 1; 
}

.recipe .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #f04e30;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    align-self: center; /* ボタンを中央揃え */
}

.recipe .btn:hover {
    background: #d0432b;
}
/*--------------------------food.html-------------------------*/
.food main{
  padding-top: 20px;
  padding-bottom: 20px;
}
.recipe-detail {
  max-width: 850px;
  margin: 40px auto;
  padding: 25px;
  background: #f4e1c1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: "Courier New", monospace;
}

.recipe-title {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  color: #8b4513;
}

.recipe-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.recipe-image {
  width: 80%;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  filter: sepia(30%);
}

.recipe-info {
  font-size: 17px;
  line-height: 1.7;
  color: #5a3e2b;
}

.dish-details{
  font-size: 22px;
  font-weight: bold;
  color: #8b4513;
  border-bottom: 2px dashed #8b4513;
  display: inline-block;
  padding-bottom: 5px;
}
/*------------------------------------back to top-------------------------------*/
#page_top a {
    display: block;
    width: 100px;
    height: 60px;
    position: fixed;
    right: 15px;
    bottom: 100px;
    background: #7b7b7b;
    opacity: 0.6;
    border-radius: 5px;
}

#page_top a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f102';
    font-size: 25px;
    color: #fff;
    position: absolute;
    width: 25px;
    height: 25px;
    top: -35px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}

#page_top a::after {
    content: 'PAGE TOP';
    font-size: 12px;
    color: #fff;
    position: absolute;
    top: 35px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}
/*--------------------------------メディアクエリ------------------------------------ */
@media screen and (max-width: 767px) {
  /* --------------------------------index.html--------------------------------*/
  .container {
    padding: 5px;
  }

  .row {
    flex-direction: column;
  }

  .col-2 {
    display: none;
  }

  .col-10 {
    width: 100%;
  }

  .recipe-name {
    font-size: 1rem;
  }

  #hero {
    height: 300px;
  }

  #hero h2 {
    font-size: 1.6rem;
  }
.new-recipe-ranking .index-img {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
}

.new-recipe-ranking .index-img .col {
  width: 100%; 
  text-align: center; 
}

.new-recipe-ranking .index-img img {
  width: 100%;
  height: auto;
}
.easy-resipe {
    flex-direction: column; 
    text-align: center;
  }

  .easy-resipe .col-6 {
    width: 100%;
  }

  .easy-resipe img {
    width: 100%;
    height: auto;
  }

  .easy-resipe p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .easy-resipe a {
    position: static; 
    display: block;
    margin-top: 10px;
  }
/*----------- new-recipes.html-------------------- */
.new-recipes-card-list {
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
  }

  .new-recipes-ingredient-card p {
    font-size: 1rem;
  }
  /* ---------------ingredients.htmlとseasonal-dishes.html--------------------- */
  .ingredients-card-list {
    grid-template-columns: repeat(2, 1fr); 
  }
  .ingredients-card-title {
    font-size: 1rem; 
  }
  .anchor-list {
    flex-wrap: wrap;
    justify-content: left; 
    gap: 10px; 
  }

  .anchor-list li {
    width: auto;
    font-size: 0.9rem; 
    padding: 5px 8px;
  }
  /*----------- recipe-festival.html-------------------- */
 .recipe-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
    padding-left: 10px;
  padding-right: 10px;
  }
  .recipe-card {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
  }

  .recipe-card img {
    width: 90%;
    height: 150px; 
    object-fit: cover; 
    border-bottom: 2px solid #ddd;
  }

  .recipe-card h3 {
    font-size: 1rem;
  }

  .recipe-card p {
    font-size: 0.9rem;
  }
/*  -----------メディアクエリのハンバーガーメニュー---------------------------------*/
.menu {
        display: none; 
    }
.drawer_open {
    display: flex; 
  }
#drawer_input:checked ~ .menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 200;
  }
.nav-links {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }
.nav-links li {
    margin: 10px 0;
  }
.drawer_open {
  display: flex;
  height: 60px;
  width: 60px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;
  cursor: pointer;
  }
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}
.drawer_open span:before {
  bottom: 8px;
}
.drawer_open span:after {
  top: 8px;
}
#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}

#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
}
#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.menu{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 100%;  
  z-index: 102;
  background: rgba(255, 255, 255, 0.8);
  transition: 0.5s;
}
.nav-links {
  list-style: none;
}
#drawer_input:checked ~ .menu{
  left:0;
  background: rgba(255, 255, 255, 0.8);
}
.close-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}


/*----------------------fooer-menu--------------------*/
.footer-menu {
         column-count: 3; /* 3列にする */
        column-gap: 10px;
    }

.footer-menu li {
  display: inline-block;
        width: 100%;
        text-align: center;
    }
.footer-menu a{
  color: #000;
 text-decoration: none;
    writing-mode: horizontal-tb;
    writing-mode: vertical-lr;
}
}
  
/*------------- ハンバーガーメニューのアイコン------------ */
.drawer_hidden {
  display: none;
}
