/*---------------------------------------
  商品一覧ページ
---------------------------------------*/
/*切り替えタブ修正*/
.nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding-top: 20px;
    background-color: white;
    z-index: 1000;
    outline: 10px solid white;
}

.nav-tabs .nav-link {
    border-bottom: none;
    background-color: #bebebe;
    color: black;
    padding: 7px 0 6px 0;
}

.nav-link.active {
    background-color: white !important;
    border-bottom: none;
    font-weight: bold;
}

.nav-item {
    margin: 0 5px;
}

.nav-item:nth-child(2) {
    margin: 0;
}

/*お気に入りボタン*/
.item_img {
    display: block;
    position: relative;
}

/*SOLD OUT オーバーレイ*/
.sold-out-container {
    position: relative;
    cursor: default;
}

/* ハンドケア・接着剤用のSOLD OUT */
.handcare-list .sold-out-container {
    width: 50%;
    height: auto;
    flex-shrink: 0;
    position: relative;
}

.sold-out-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #dc3545;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ハンドケア・接着剤用のSOLD OUT オーバーレイ */
.handcare-list .sold-out-overlay {
    top: 8px;
    left: 8px;
    background-color: #dc3545;
    padding: 5px 10px;
    border-radius: 4px;
}

.sold-out-text {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 0;
    text-shadow: none;
}

.sold-out-img {
    opacity: 1;
}

/* ハンドケア・接着剤用のSOLD OUT画像 */
.handcare-list .sold-out-container .sold-out-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

/* スマホ用の調整 */
@media (max-width: 768px) {
    .sold-out-text {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .sold-out-overlay {
        padding: 4px 8px;
    }

    /* ハンドケア・接着剤カテゴリのSOLDOUT文字 */
    .handcare-list .sold-out-text {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .handcare-list .sold-out-overlay {
        padding: 4px 8px;
    }
}

.favorite-container {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.favoriteButton,
.guestfavoriteButton {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.heart-icon {
    width: 20px;
    height: 20px;
}

.favorite-count {
    color: black;
    font-size: 10px;
    font-weight: bold;
    color: #DD2626;
    line-height: 1;
    padding-bottom: 2px;
}

.d-none {
    display: none;
}

/*ハンドケア商品一覧見出し*/
.narrow,
#handcare,
#glue {
    scroll-margin-top: 55px;
}

.heading-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.handcare-sub {
    display: inline-block;
    font-style: normal;
    font-size: 16px;
    position: relative;
    padding: 0 55px;
    margin: 40px 0 10px 0;
    font-family: "Shippori Mincho B1", serif;
    text-align: center;
    font-weight: 500;
    max-width: 320px;
    width: 80vw;
}

.handcare-sub::before,
.handcare-sub::after {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    width: 50px;
    height: 1px;
    background-color: #EDC3C1;
}

.handcare-sub::before {
    left: 0px;
}

.handcare-sub::after {
    right: 0px;
}

.handcare-heading {
    text-align: center;
    padding: 0 20px;
    font-size: 20px;
    font-family: "Shippori Mincho B1", serif;
    font-weight: 500;
    font-style: normal;
}

.handcare-heading .title {
    display: block;
    font-weight: 500;
    color: var(--bs-body-color);
}

@media screen and (min-width:768px) {

    .narrow,
    #handcare,
    #glue {
        width: 70vw;
        min-width: 768px;
        max-width: 1200px;
        margin: auto;
        box-sizing: border-box;
    }

    .handcare-sub {
        font-size: 20px;
        margin: 50px 0 10px 0;
        max-width: none;
        width: 500px;
        box-sizing: border-box;
    }

    .handcare-sub::before,
    .handcare-sub::after {
        width: 120px;
    }

    .handcare-heading {
        font-size: 24px;
        padding-bottom: 30px;
        max-width: 700px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .handcare-heading br {
        display: none;
    }
}

/*ハンドケア商品一覧*/
.hand-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.handcare-list {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.handcare-list .product-img {
    display: flex;
    justify-content: center;
    align-items: stretch;
    text-decoration: none;
    color: black;
    border-radius: 8px;
}

.handcare-list .product-img img {
    width: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
}

.handcare-list .product-img .txt {
    flex: 1;
    background-color: #ebebeb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    border-radius: 0 8px 8px 0;
}

.handcare-list .product-img .txt .p-name {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 500;
}

.handcare-list .product-img .txt .amount {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.7px;
}

.handcare-list .product-img .txt .amount em {
    padding-left: 5px;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
}

.handcare-list .link-container .sub-heading {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
}

.handcare-list .link-container .sub-heading em {
    font-style: normal;
    font-weight: 500;
    color: #EDC3C1;
    padding-right: 5px;
}

.handcare-list .link-container .link-bunner {
    border: 1px solid #EDC3C1;
    color: black;
    padding: 10px;
    display: block;
    text-decoration: none;
    background: url(../img/arrow_right_pink.svg)no-repeat right 10px center;
}

.handcare-list .link-container .link-bunner span {
    font-size: 16px;
    font-weight: 500;
}

.handcare-list .link-container .link-bunner .font-s {
    font-size: 13px;
    padding-left: 10px;
}

.handcare-list .btn-cart-in {
    margin-top: 10px;
}

@media screen and (min-width:768px) {
    .hand-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .handcare-list {
        margin-bottom: 40px;
    }

    .handcare-list .product-img img {
        width: 50%;
        aspect-ratio: 1;
    }

    .handcare-list .sold-out-container {
        width: 50%;
        height: auto;
    }

    /* ハンドケア・接着剤カテゴリのSOLDOUT文字 */
    .handcare-list .sold-out-text {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }

    .handcare-list .sold-out-overlay {
        padding: 8px 14px;
    }

    .handcare-list .link-container .link-bunner {
        padding: 5px 10px;
    }

    .handcare-list .link-container .link-bunner span {
        font-size: 14px;
    }
}

@media screen and (min-width:1300px) {
    .hand-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .handcare-list .product-img img {
        width: 50%;
        height: 180px;
    }

    .handcare-list .product-img .txt {
        height: 180px;
    }

    .handcare-list .sold-out-container {
        width: 50%;
        height: auto;
    }

    .handcare-list .sold-out-container .sold-out-img {
        height: 180px;
        aspect-ratio: unset;
    }

    .handcare-list .product-img .txt .p-name {
        font-size: 14px;
    }

    .handcare-list .product-img .txt .amount {
        font-size: 18px;
    }
}

/*---------------------------------------
  商品詳細ページ
---------------------------------------*/
/* ヘッダー */
.top-fixed {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    z-index: 100;
    /*↓250616謎の余白出現につき調整*/
    /* padding: 2px 10px 15px 10px; */
    padding: 15px 10px;
}

.top-fixed .back-btn-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 28px;
}

.top-fixed .back-btn-container .page-back {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: absolute;
    /* left: 20px; */
    z-index: 1;
}

.top-fixed .back-btn-container .page-back .back-text {
    padding-left: 6px;
    font-size: 16px;
    display: block;
    color: #C58480;
    margin-right: 10px;
    /* 右側の余白を追加 */
}

.top-fixed .product-name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0 auto;
    width: 85%;
    position: relative;
}

.top-fixed .review-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-top: 8px;
}

.top-fixed .review-link .r-btn {
    border: 1px solid #EDC3C0;
    padding: 3px 10px 2px 10px;
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    font-size: 12px;
    background: url(../img/arrow_right_pink.svg)no-repeat right 10px center;
}

.top-fixed .review-link .r-btn:hover {
    color: #6c757d;
}

@media screen and (min-width:768px) {
    .pc-width {
        width: 750px;
        margin: auto;
    }
}

.hc-contents {
    padding: 0;
    margin-bottom: 25px;
}

.payment-method-info {
    overflow-wrap: anywhere;
}

.payment-method-info .payment-method-label {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    color: inherit;
}

.payment-method-info .credit-brand-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
}

.payment-method-info .konbini-brand-image {
    width: 100%;
    max-width: 420px;
    height: auto;
}

@media (max-width: 767.98px) {
    .payment-method-info .credit-brand-image {
        max-width: 320px;
    }
}

.hc-contents h2 {
    font-size: 16px;
    font-weight: 600;
}

.hc-contents .con-body {
    text-align: justify;
    font-size: 15px;
    margin-bottom: 0;
}

.hc-contents .sup {
    font-size: 13px;
}

/*医療者のコメント*/
.comment-list {
    padding: 0;
    margin-bottom: 0;
}

.comment-list li {
    list-style: none;
    border: 1px solid #EDC3C0;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-list li:last-child {
    margin-bottom: 0;
}

.comment-list h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-list h3 em {
    font-style: normal;
    color: #EDC3C0;
    padding-right: 5px;
}

.comment-list .comment-body {
    display: flex;
}

.comment-list .comment-body .comment-img {
    width: 70px;
    height: 70px;
    background-color: #a1a1a1;
    flex-shrink: 0;
    margin-top: 5px;
    padding-right: 15px;
}

.comment-list .comment-body .comment-txt {
    flex: 1;
    font-size: 15px;
    transition: max-height 0.3s ease-in;
    max-height: 3em;
    overflow: hidden;
}

.comment-list .comment-body .comment-txt.expanded {
    max-height: 1000px;
    overflow: visible;
}

.comment-sup {
    font-size: 13px;
    color: #525252;
    padding-top: 10px;
}

/*利用者の評価*/
.review-about {
    padding-bottom: 10px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.review-list li {
    background-color: #FFEBEA;
    padding: 20px;
}

.review-list li p {
    margin-bottom: 5px;
}

.review-list li .star {
    font-size: 20px;
    margin-bottom: 0;
}

.review-list li .stage {
    font-size: 13px;
    color: #474747;
}

.review-list li .review-txt {
    font-size: 15px;
    margin-bottom: 15px;
}

/* ページ内リンクの際の上部余白 */
#MSComments,
#UserReviews {
    scroll-margin-top: 100px;
}

/* 役に立ったボタンまわり（共通）*/
.hc-contents .btn-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hc-contents .btn-flex button {
    border: none;
}

.hc-contents .btn-flex .comment-like-btn,
.review-list .btn-flex .review-like-btn {
    background-color: #EBEBEB;
    border-radius: 20px;
    padding: 3px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.review-list .btn-flex .review-like-btn {
    background-color: white;
}

.hc-contents .btn-flex .toggle-btn {
    padding: 0;
    color: #EDC3C0;
    background-color: white;
}

.liked {
    background: #616161 !important;
    color: white;
}

.liked .like-icon img {
    filter: brightness(0) invert(1);
    /* SVGを白色に変換 */
}

/* 開閉機能 */
.review-list li .review-txt {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease-in;
    max-height: 1.5em;
    margin-bottom: 15px;
}

.review-list li .review-txt.expanded {
    max-height: 500px;
}

/* 「続きを見る」ボタン */
.review-list .btn-flex .toggle-btn {
    padding: 0;
    color: #a1a1a1;
    background-color: #FFEBEA;
    border: none;
    cursor: pointer;
}

.no-review p {
    margin-bottom: 0;
}