﻿img {
  vertical-align: bottom;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #707070;
  text-align: center;
  margin-bottom: 3rem;
}
@media screen and (min-width: 750px) {
  h2 {
    font-size: 2.5rem;
    margin-bottom: 5rem;
  }
}
.recipe-blog {
  max-width: 1300px;
  margin: 0 auto;
}
.recipe-blog__list {
  margin-bottom: 15rem;
}
.recipe-blog__item-wrapper {
  margin-bottom: 10rem;
}
@media screen and (min-width: 750px) {
  .recipe-blog__item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 1rem;
  }
  .recipe-blog__item:nth-of-type(odd) {
    flex-direction: row-reverse;
  }
}
.recipe-blog__item * {
  color: #333333;
}
.recipe-blog__item-text {
  position: relative;
  background: url('https://cdn.shopify.com/s/files/1/0761/2992/7486/files/recipe-list_bg.jpg?v=1710793672') no-repeat center / cover;
  width: 100%;
  padding-top: 10rem;
}
@media screen and (min-width: 750px) {
  .recipe-blog__item-text {
    position: relative;
    background: url('https://cdn.shopify.com/s/files/1/0761/2992/7486/files/recipe-list_bg.jpg?v=1710793672') no-repeat center / cover;
    width: 50%;
    height: 500px;
    padding-top: 125px;
  }
}
.recipe-blog__item-img {
  aspect-ratio: 1;
  width: 100%;
  height: min-content;
  object-fit: cover;
}
.recipe-blog__item-content {
  width: 80%;
  height: min-content;
  position: relative;
  margin: 0 auto 5rem;
  text-decoration: none;
  color: inherit;
}
@media screen and (min-width: 750px) {
  .recipe-blog__item-img {
    aspect-ratio: 1.5;
    width: 50%;
    height: 500px;
  }
  .recipe-blog__item-content {
    width: 66%;
    margin-bottom: 0;
  }
}
.recipe-blog__item-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0;
}
.recipe-blog__item-desc {
  margin-bottom: 3rem;
  font-size: 1.2rem;
}
@media screen and (min-width: 750px) {
  .recipe-blog__item-desc {
    margin-bottom: 5rem;
    font-size: 1.4rem;
  }
}
.recipe-blog__item:nth-of-type(even) .recipe-blog__item-month {
  display: none !important;
}
.recipe-blog__item-month {
  position: absolute;
  left: 0;
  top: 0;
  width: 75px;
  height: 75px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  font-family: 'Noto Serif JP', sans-serif;
  font-weight: bold;
}
@media screen and (min-width: 750px) {
  .recipe-blog__item-month {
    width: 100px;
    height: 100px;
  }
}
.recipe-blog__item-month-number {
  font-size: 3rem;
  color: #866A2D !important;
}
.recipe-blog__item-month-unit {
  position: relative;
  font-size: 1.5rem;
  color: #866A2D !important;
  right: -1px;
  top: 8%;
}
@media screen and (min-width: 750px) {
  .recipe-blog__item-title {
    font-size: 2rem;
  }
  .recipe-blog__item-month-number {
    font-size: 5rem;
  }
  .recipe-blog__item-month-unit {
    font-size: 2rem;
    right: -1px;
    top: 13%;
  }
}
.recipe-blog__item-cook-info-wrapper {
  display: flex;
  justify-content: space-between;
}
.recipe-blog__item-cook-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.1rem;
}
.recipe-blog__item-created-at {
  font-size: 1.3rem;
}
@media screen and (min-width: 750px) {
  .recipe-blog__item-cook-info-wrapper {
    gap: 40%;
    justify-content: unset;
  }
  .recipe-blog__item-cook-info, .recipe-blog__item-desc {
    font-size: 1.4rem;
  }
  .recipe-blog__item-created-at {
    font-size: 1.7rem;
  }
}
.recipe-blog__item-favorite {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.recipe-blog__item-favorite-icon {
  width: 24px;
  height: 24px;
}
.recipe-blog__item-favorite-count {
  font-size: 1.3rem;
}
@media screen and (min-width: 750px) {
  .recipe-blog__item-favorite-icon {
    width: 36px;
    height: 36px;
  }
  .recipe-blog__item-favorite-count {
    font-size: 1.7rem;
  }
}
.recipe-blog__view-more {
  display: block;
  position: relative;
  width: 200px;
  height: 45px;
  margin: 0 auto;
  padding: 8px 40px;
  background-color: #ffffff;
  border: solid 1px #cfcfcf;
  border-radius: 23px;
  text-decoration: none;
  color: #333333;
  transition: 0.3s;
}
.recipe-blog__view-more-arrow {
  position: absolute;
  display: inline-block;
  width: 30px;
  height: 30px;
  top: 6px;
  right: 20px;
  text-align: center;
  border-radius: 15px;
  background-color: #EEEDDE;
  line-height: 30px;
}
.recipe-blog__view-more:hover {
  opacity: .8
}

/*Pager*/
.pagination__list {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            list-style: none;
            flex-wrap: wrap;
        }

        .pagination__list li {
            display: inline-block;
        }

        .pagination__item {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            text-decoration: none;
            color: #333;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .pagination__item.link:hover {
            background-color: #f0f0f0;
            border-color: #999;
        }

        .pagination__item--current {
            background-color: #333;
            color: #fff;
            border-color: #333;
            font-weight: bold;
            cursor: default;
            pointer-events: none;
        }

        .pagination__item:not(.link):not(.pagination__item--current) {
            border: none;
            background-color: transparent;
            cursor: default;
        }

        .pagination__item-arrow {
            min-width: 40px;
            padding: 0;
        }

        .pagination__item-arrow .icon {
            width: 16px;
            height: 16px;
            transform: rotate(-90deg);
        }

        .pagination__item--prev .icon {
            transform: rotate(90deg);
        }

        .pagination__item-arrow:hover {
            background-color: #333;
            border-color: #333;
        }

        .pagination__item-arrow:hover path {
            fill: #fff;
        }

        /* タブレット */
        @media (max-width: 768px) {
            body {
                padding: 30px 15px;
            }

            .pagination__item {
                min-width: 38px;
                height: 38px;
                padding: 0 11px;
                font-size: 14px;
            }

            .pagination__list {
                gap: 7px;
            }
        }

        /* スマートフォン */
        @media (max-width: 480px) {
            body {
                padding: 20px 10px;
            }

            .pagination__item {
                min-width: 36px;
                height: 36px;
                padding: 0 8px;
                font-size: 13px;
            }

            .pagination__list {
                gap: 5px;
            }

            .pagination__item-arrow .icon {
                width: 14px;
                height: 14px;
            }
        }

        /* 小型スマートフォン */
        @media (max-width: 360px) {
            .pagination__item {
                min-width: 32px;
                height: 32px;
                padding: 0 6px;
                font-size: 12px;
            }

            .pagination__list {
                gap: 4px;
            }

            .pagination__item-arrow .icon {
                width: 12px;
                height: 12px;
            }
        }

        /* タッチデバイス用のホバー調整 */
        @media (hover: none) {
            .pagination__item.link:active {
                background-color: #f0f0f0;
                border-color: #999;
            }

            .pagination__item-arrow:active {
                background-color: #333;
                border-color: #333;
            }

            .pagination__item-arrow:active path {
                fill: #fff;
            }
        }