/* モバイルスタイル */
/* カートアイコン全体 */
.item-container__icon-group {
    position: fixed;
    top: 71px;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 1000;
    display: flex;
    justify-content: right;
}

.item-notification-parent {
    position: relative;
}

.item-notification-group {
    background-color: rgb(255, 0, 0, 0.7);
    width: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -5px;
    left: 35px;
}

/* 通知 */
.item-notification {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
}

.item-link {
    width: 60px;
}

.item-cart-icon-group {
    width: 55px;
    height: 55px;
    margin-right: 8px;
    border: solid 1px #bbbbbb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

/* カートアイコン */
.item-cart-icon {
    height: 30px;
    z-index: 1000;
}

/* ページタイトル */
.item-shop-title {
    text-align: center;
    font-family: Papyrus;
    font-size: 25px;
    margin: 30px 0;
}

.item-container {
    width: 90%;
    margin: 0 auto;
}

/* セクションタイトル */
.item-container__title,
.info-title {
    margin: 20px 0;
    text-align: center;
}

/* メインタイトル */
.item-container__main-title,
.info-main-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

/* サブタイトル */
.item-container__sub-title,
.info-sub-title {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

.item-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.item {
    width: 98%;
    height: 300px;
    position: relative;
    margin-bottom: 20px;
    border: solid 2px #bbbbbb;
}

.item-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background-color: #ffffff;
    padding: 5px;
}

.img-group {
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 5px;
}

.item-stone {
    margin: 0;
    white-space: nowrap; /* 改行しない */
    overflow: hidden; /* 内部の文字がはみ出すのを防ぐ */
    text-overflow: ellipsis; /* ...で省略 */
}

.item-name {
    text-align: center;
    margin: 0 10px;
    white-space: nowrap; /* 改行しない */
    overflow: hidden; /* 内部の文字がはみ出すのを防ぐ */
    text-overflow: ellipsis; /* ...で省略 */
}

.item-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-size {
    margin: 0 10px;
}

.item-size::after {
    content: "㎜";
}

.item-price {
    margin: 0 10px;
    font-weight: 700;
}

.item-price::before {
    content: "￥";
    padding-right: 3px;
}

/* 連絡先枠 */
.contact-info {
    text-align: center;
    background-color: #f8f5cf;
    padding: 20px 0;
}

.contact-info__img {
    width: 280px;
    height: 280px;
    margin: 20px;
    border-radius: 5px;
}

.contact-info__text {
    margin: 0;
}

/* モーダルウィンドゥ */
.item-detail-modal {
    display: none;
    background: linear-gradient(
        to bottom,
        #a59aca,
        #ecc0c0,
        #fcd7a1,
        #fcf5ad,
        #99dbb7,
        #9db8e0,
        #a59aca
    );
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%);
    z-index: 500;
    width: 95%;
}

/* ×ボタン枠 */
.modal-close-button-container {
    text-align: right;
    margin: 15px 10px 0 0;
}

/* ×ボタン */
.close-button {
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    color: #777777;
    font-weight: 700;
    padding: 5px 10px;
}

.item-detail-modal__title {
    text-align: center;
}

/* モーダル内容 */
.item-detail-modal__content {
    width: 95%;
    margin: 20px auto;
    padding-bottom: 20px;
    border-radius: 5px;
    background: #ffffff;
}

.item-detail-modal__item-image-group {
    max-width: 100%;
    padding: 20px;
    text-align: center;
}

.item-detail-modal__item-image {
    max-width: 100%; /* 横幅が親を超えない */
    width: auto;
    height: auto;
    border-radius: 5px;
    border: 1px solid #bbbbbb;
    object-fit: contain; /* 画像比率を保ったまま収める */
}

.item-detail-modal__stone {
    margin: 0;
    text-align: center;
}

.item-detail-modal__item-name {
    text-align: center;
    padding: 0 10px;
}

.item-detail-modal__item-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 20px;
}

.item-detail-modal__size {
    margin: 0 10px;
}

.item-detail-modal__size::after {
    content: "㎜";
}

.item-detail-modal__price {
    margin: 0 10px;
    font-weight: 700;
}

.item-detail-modal__price::before {
    content: "￥";
    padding-right: 5px;
}

.item-detail-modal__price::after {
    content: "税込";
    padding-left: 7px;
    font-size: 12px;
    color: #999999;
}

.item-detail-modal__remarks {
    padding: 0 10px;
}

.item-detail-modal__calculation-group {
    padding: 0 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 40px;
    margin: 0 auto 20px;
}

.item-detail-modal__quantity-group {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-detail-modal__quantity {
    width: 60px;
    height: 40px;
    padding: 0 10px;
    font-size: 20px;
    border: solid 2px #bbbbbb;
    border-radius: 5px;
}

.sub-price {
    width: 50%;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* バリデーションエラー */
.error-message {
    margin: 10px;
    text-align: center;
    color: red;
}

.item-detail-modal__cart-button {
    display: block;
    width: 85%;
    margin: 0 auto;
    padding: 10px 0;
    background: linear-gradient(
        to top,
        #a59aca,
        #cfa7cd,
        #ecc0c0,
        #fcd7a1,
        #fcf5ad,
        #b8da92,
        #a3bce2,
        #a59aca,
        #cfa7cd
    );
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
}

/* タブレットスタイル */
@media screen and (min-width: 768px) {
    .item-notification-group {
        top: 3px;
    }

    .item-cart-icon-group {
        margin-top: 10px;
        margin-right: 10px;
    }

    .item-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .item {
        width: 95%;
    }

    .contact-info__details {
        width: 760px;
        margin: 0 auto;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .item-detail-modal__flex {
        display: flex;
        justify-content: space-between;
    }

    .item-detail-modal__item-image-group {
        width: 50%;
    }

    .item-detail-modal__right-group {
        margin-top: 20px;
        width: 50%;
    }

    .item-detail-modal__calculation-group,
    .item-detail-modal__cart-button {
        width: 600px;
    }
}

/* パソコンスタイル */
@media screen and (min-width: 1024px) {
    .item-container__icon-group {
        top: 0;
    }

    .item-cart-icon-group {
        margin-top: 15px;
    }

    .item-notification-group {
        top: 7px;
    }

    .item-container {
        width: 950px;
    }

    .item-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .item {
        margin: 0 auto 20px;
    }

    /* モーダルウィンドゥ */
    .item-detail-modal {
        width: 950px;
    }
}
