:root{
    --card-title-font: 1.3rem;
    --card-header-font:1.3rem;
    --card-footer-font:1.3rem;
    --font-body: clamp(12px, 12px + 0.25vw, 16px);
}
#target_price{
    background-image: url(/wp-content/themes/ebisuya/img/bg.webp);
}

.purchase_category_label{
    background-color: #262626;
    color: white;
    padding: 4px 12px;
    margin-right: 1px;
    /* line-height: 50%; */
}
.purchase_price {
    color: #ff0000;
}

.swiper-wrapper{
    margin-bottom:15px;
}
.achievement_new {
    max-width:1200px;
    margin: 0 auto; 
    padding: 0 0 20px;
    position:relative;
    padding-bottom:100px;
}

.achievement_new .swiper-pagination {
    bottom:12%;

}
.achievement_new .swiper-pagination-bullet {
  background: #333 !important;
}
.achievement_new .see-more-link{
    position: absolute;
    bottom:8%;
    right:12%;
    text-decoration: underline;
    color: #333;
    font-weight: bold;
    font-size: 18px;
}
.achievement_new .see-more-link:hover {
  color: #777;
}
.achievement_new_title {
    font-size: 20px;
    font-family: yu-mincho-pr6, sans-serif;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.2rem;
    padding: 40px 16px;
    padding-bottom:0;
    text-align: center;
}
.achievement_new {

    /* Swiperのデフォルトアイコンを非表示 */
    .swiper-button-prev::after,
    .swiper-button-next::after {
        display: none !important;
    }

    /* Font Awesomeアイコンを追加 */
    .swiper-button-prev::before,
    .swiper-button-next::before {
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        font-size: 5rem !important;
        color: #333;
    }

    .swiper-button-prev::before{
        content: "\f137";
    }
    .swiper-button-next::before {
        content: "\f138";
    }

    .swiper-button-prev { 
        left: 2% !important;
    }
    .swiper-button-next { 
        right: 2% !important;
    }

    @media screen and (max-width: 767.8px) {
      .swiper-button-prev::before,
      .swiper-button-next::before {
        font-size: 4rem !important;
      }
    }
}


.achievement_new_title span {
    font-size: 12px;
    display: block;
}


.purchase_related {
    background: rgba(0, 0, 0, 0.1);
    /* z-index: 1; */
    margin-top: 50px;
    /* padding: 20px 40px; */
    padding: 20px 6vw;
    text-align: center; 
    margin-bottom: 0;
}

.purchase_related h3 {
    font-size: 1.3rem;
    margin-bottom: 20px; /* タイトルの下に余白を追加 */
}

.purchase_related_slider{
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

/* .swiper-slide{ */
/*     opacity: 1 !important; */
/* } */

.purchase_card {
    width: 100%;
    max-width:300px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s all ease;
    overflow: hidden;
    padding: 16px 20px;
    opacity: 1 !important;
}

.purchase_card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.22);
}


.purchase_card a {
    text-decoration: none; /* 下線を消す */
    color: inherit; /* 親要素の色を継承 */
}

.purchase_card a:hover {
    color: inherit; /* ホバー時も色を変えない */
    text-decoration: none; /* ホバー時も下線を出さない */
}

/* カードのヘッダー部分 */
.purchase_card_header {
    margin-top: 10px;
    font-size: var(--card-header-font);
}

.purchase_card .purchase_card_category {
    width: fit-content;
}

/* 日付（右寄せ） */
.purchase_card .purchase_card_date {
    text-align: right;
    line-height: 1.2;
    margin-top: .5em;
}
.purchase_card_container{
    margin-inline: 10px;
    display:flex;
    justify-content: center;
    flex-direction: column;
}
/* カード内の画像 */
.purchase_card_container img {
    width:100%;
    /* max-width:280px; */
    /* max-height:200px; */
    object-fit: cover;
    object-position: center;

    margin-top: 10px;
    aspect-ratio:  9 / 10;
    margin-block-end: 16px;
    overflow: hidden;
}


.purchase_card_title {
    text-align: center;
    /* margin-bottom: 5px; */
    margin-bottom: 24px;  /* マージンを増やす */
    line-height: 1.4;
    font-size: var(--card-title-font);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase_card_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;  /* マージントップを0に */
    color: black;
    font-size: var(--card-footer-font);
    border-bottom: 1px solid #ccc;
}






@media screen and (min-width:768px){
    .achievement_new_block{

        max-width: 1024px;
        margin: 0 auto;
        list-style-type: none;
        padding: 0;
    }

    .achievement_new_title {
        font-size: 24px;
        font-family: yu-mincho-pr6, sans-serif;
        font-weight: 700;
        font-style: normal;
        letter-spacing: 0.2rem;
        padding: 40px 16px;
        text-align: center;
    }
}


