/* ----------------------------
    レシピアーカイブページ
---------------------------- */

#recipes-archives {
  margin-bottom: 80px;
}

#recipes-archives h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
}

#recipes-archives .pagenav {
  margin-top: 40px;
  padding: 0;
}


#recipes-search {
  padding: 20px 0;
  background-image: url(../images/recipes/recipes-bg01_top.svg),
                    url(../images/recipes/recipes-bg01_btm.svg);
  background-repeat: no-repeat;
  background-position: center top, center bottom;
  background-size: 1920px 20px;
  margin-bottom: 80px;
}

#recipes-search .search-coverbox {
  background-color: #fff;
  padding: 80px 0;
}

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

  #recipes-archives h2 {
    font-size: 32px;
  }
}


/* ----------------------------
    記事アーカイブ-中身
---------------------------- */

.recipes-listbox {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.recipes-listbox a {
  display: grid;
  grid-template-columns: auto;
}

.recipes-listbox article {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 16px;
  height: max-content;
}

.recipes-listbox img {
  aspect-ratio: 118/79;
  object-fit: cover;
  border-radius: 12px;
  width: 100%;
}

.recipes-listbox h3 {
  font-weight: 700;
  line-height: 1.2;
  padding-left: 32px;
  background-image: url(../images/recipes/icon-arrow-yrw.svg);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 24px 24px;
  min-height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

  .recipes-listbox {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .recipes-listbox {
    grid-template-columns: 1fr;
  }
}


/* ----------------------------
    検索ボックス-中身
---------------------------- */

.search-box h3 {
  font-size: 20px;
  font-weight: 700;
  padding-left: 56px;
  width: fit-content;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url(../images/recipes/icon-search-grn.svg);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 40px 40px;
  min-height: 40px;
}

#kana-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.kana-tab {
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 32px;
  border: 1px solid #006634;
  background-color: #DCF6E9;
  color: #006634;
  border-radius: 8px;
}

.kana-tab.active,
.kana-tab:hover {
  color: #fff;
  background-color: #006634;
}

.kana-content {
  display: none;
}

.kana-content.show {
  display: block;
}

#kana-contents {
  margin-top: 32px;
  border-top: 1px solid #ccc;
  padding-top: 32px;
}

.child-terms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px 40px;
}

.child-terms li {
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 24px;
  background-image: url(../images/recipes/icon-arrow-grn.svg);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 24px 24px;
  height: 100%;
  transition: .3s;
}

.child-terms li:hover {
  opacity: .7;
}

.child-terms li a {
  display: block;
  padding-left: 32px;
  line-height: 1.2;
}

.child-terms li a:hover {
  opacity: 1;
}

.kana-content .none {
  text-align: center;
  font-weight: 700;
}

#foot-content {
  margin-bottom: 40px;
}

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

  .search-box h3 {
    margin-left: 0;
  }

  #kana-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .kana-tab {
    padding: 16px;
    text-align: center;
  }

  .child-terms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .kana-content .none {
    text-align: left;
  }
}

/* ----------------------------
    レシピ固定ページ
---------------------------- */

#recipe-desc {
  margin-bottom: 80px;
}

#recipe-desc h2 {
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

#recipe-in-season {
  background-image: url(../images/img-wave_top1.svg),
                    url(../images/recipes/recipes-bg01_top.svg),
                    url(../images/green_bk.png);
  background-repeat: repeat-x, repeat-x, repeat;
  background-position: center top, center bottom, center;
  background-size: 1920px 20px, 1920px 20px, auto;
  padding: 100px 0;
}

#recipe-in-season h2 {
  font-size: 40px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

#recipe-search {
  background-image: url(../images/recipes/recipes-bg02_btm.svg);
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 1920px 20px;
  padding: 0 0 20px;
  margin-bottom: 80px;
}

#recipe-search .search-coverbox {
  background-color: #fff;
  padding: 80px 0;
}

#recipe-archive {
  margin-bottom: 80px;
}

#recipe-archive h2 {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

#recipe-archive .recipes-listbox {
  margin-bottom: 40px;
}

#recipe-archive .ichiran {
  text-align: center;
}

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

  #recipe-desc h2 {
    font-size: 24px;
  }

  #recipe-in-season h2 {
    font-size: 32px;
  }

  #recipe-search .search-coverbox {
    padding: 40px 0;
  }

  #recipe-archive h2 {
    font-size: 32px;
  }
}