﻿@charset "UTF-8";

/* ----商品一覧画面：ぴったり梱包---- */
.page-category,
.page-genre,
.page-event,
.page-brandtop,
.page-search {
  .fixed-shipping {
    transition: 0.3s;
  }
  .fixed-shipping.is-open {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    top: 0;
    left: 0;
  }
  .fixed-shipping.is-open:not(:has(.fixed-shipping-menu-price)) {
    background: rgba(0,0,0,0.4);
  }
  .fixed-shipping-list-btn {
    position: fixed;
    width: 74px;
    height: 64px;
    background: #F8F3ED;
    border-radius: 50% 0 0 50%;
    top: calc(100% - 300px);
    right: 0;
    bottom: initial;
    left: initial;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.11);
    z-index: 100000;
    background-image: url(../../img/sys/icon/icon_package-close.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 35px;
    transition: 0.3s;
    cursor: pointer;
  }
  .fixed-shipping.is-open .fixed-shipping-list-btn {
    background-image: url(../../img/sys/icon/icon_package-open.png);
    right: 380px;
  }
  .fixed-shipping-menu {
    position: fixed;
    background: transparent;
    top: 0;
    right: 0;
    left: initial;
    width: 380px;
    height: 100vh;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .fixed-shipping.is-open .fixed-shipping-menu {
    transform: translateX(0);
  }
  .fixed-shipping-menu-close {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 385px;
    top: 10px;
    cursor: pointer;
  }
  .fixed-shipping-menu-close::before {
    content: "";
    width: 15px;
    height: 1px;
    background: #FFF;
    transform: translate(-50%,-50%) rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
  }
  .fixed-shipping-menu-close::after {
    content: "";
    width: 15px;
    height: 1px;
    background: #FFF;
    transform: translate(-50%,-50%) rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
  }
  .fixed-shipping-menu-inner {
    width: 100%;
    height: 100%;
    background: #FFF;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .fixed-shipping-menu-ttl {
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
  }
  .fixed-shipping-menu-desc {
    background: #EFFAFB;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    letter-spacing: -0.0275em;
  }
  .fixed-shipping-menu-desc-red {
    color: #FF7978;
  }
  .fixed-shipping-menu-desc-attention {
    font-size: 13px;
  }
  .fixed-shipping-menu-list {
    padding-bottom: 60px;
  }
  .fixed-shipping-menu-item {
    border-bottom: 1px solid #DEDBD7;
  }
  .fixed-shipping-menu-info {
    padding: 16px 9px 16px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  .fixed-shipping-menu-info-ttl {
    font-size: 14px;
    font-weight: bold;
    position: relative;
    padding-left: 36px;
    line-height: 1.5;
    width: 55%;
    word-break: break-all;
  }
  .fixed-shipping-menu-info-ttl::before {
    content: "";
    width: 40px;
    height: 40px;
    background: url(../../img/sys/icon/icon_footpoint.png);
    background-size: cover;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .fixed-shipping-menu-info-size {
    font-size: 12px;
  }
  .fixed-shipping-menu-info-bar {
    width: 110px;
    position: relative;
    top: -6px;
  }
  .fixed-shipping-menu-info-bar-check {
    position: relative;
    width: fit-content;
    margin-bottom: 3px;
  }
  .fixed-shipping-menu-info-bar-check::before {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 12px;
    background: #FF7978;
    clip-path: polygon(0 0,100% 0,50% 100%);
    margin-bottom: 4px;
    transform: translateX(-50%);
  }
  .fixed-shipping-menu-info-bar-current-low-num {
    width: fit-content;
    height: 12px;
    line-height: 12px;
    margin-left: 10px;
    color: #624541;
  }
  .fixed-shipping-menu-info-bar-total {
    width: 100%;
    background: #F8F3ED;
    height: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.11);
    overflow: hidden;
  }
  .fixed-shipping-menu-info-bar-current {
    background: #64C9E1;
    height: 20px;
  }
  .fixed-shipping-menu-info-more {
    font-size: 13px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }
  .fixed-shipping-menu-info-more span {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #624541;
    border-radius: 50%;
    position: relative;
  }
  .fixed-shipping-menu-info-more span::before {
    content: "";
    width: 8px;
    height: 1px;
    background: #FFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  .fixed-shipping-menu-info-more span::after {
    content: "";
    width: 8px;
    height: 1px;
    background: #FFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(90deg);
    transition: 0.3s;
  }
  .is-active .fixed-shipping-menu-info-more span::after {
    transform: translate(-50%, -50%);
  }
  .fixed-shipping-menu-info-note {
    color: #EA747C;
    font-size: 13px;
    margin-top: 10px;
    padding-left: 12px;
  }
  .fixed-shipping-menu-info:has(.fixed-shipping-menu-info-bar-current-low-bar) .fixed-shipping-menu-info-note {
    margin-top: 20px;
  }
  .fixed-shipping-menu-content {
    background: #FAF9F6;
    padding: 15px;
    display: none;
  }
  .block-shipping-package-list {
    background: #FFF;
    margin: 0;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 7px 6px rgba(0,0,0,0.11);
  }
  .block-shipping-package-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
  }
  .block-shipping-package-item + .block-shipping-package-item {
    margin-top: 20px;
  }
  .block-shipping-package-item-img {
    width: 120px;
    height: 130px;
    border: 1px solid #DEDBD7;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .block-shipping-package-item-img a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .block-shipping-package-item-img img {
    width: 90%;
    height: 90%;
    max-width: 90%;
    object-fit: contain;
  }
  .block-shipping-package-item-info {
    width: calc(100% - 145px);
  }
  .block-shipping-package-item-name {
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
  }
  .block-shipping-package-item-bar {
    width: 100%;
    height: 20px;
    background: #F8F3ED;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.11);
    overflow: hidden;
  }
  .block-shipping-package-item-bar-current {
    height: 20px;
    background: #64C9E1;
  }
  .block-shipping-package-item-note {
    color: #EA747C;
    font-size: 13px;
  }
  .block-shipping-package-item-input {
    width: auto;
    margin: 9px 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .block-shipping-package-item-qty {
    width: 80px;
    display: table-cell;
    position: relative;
  }
  .block-shipping-package-item-delete {
    margin-left: auto;
    display: block;
    text-align: right;
  }
  .block-shipping-package-item-delete-btn.btn-danger {
    color: #624541;
    font-size: 14px;
    text-decoration: underline;
    letter-spacing: 0.04em;
    padding: 0;
    background: none;
    border: 0;
  }
  .block-shipping-package-more {
    text-align: center;
    margin-top: 14px;
  }
  .block-shipping-package-more a {
    font-size: 16px;
    position: relative;
  }
  .block-shipping-package-more a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1px solid #624541;
    border-right: 1px solid #624541;
    margin-left: 1em;
    position: absolute;
    top: 47.5%;
    right: -12px;
    transform: translateY(-50%) rotate(45deg);
  }
  .fixed-shipping-menu-cart {
    background: #F8F3EC;
    width: 380px;
    min-height: 66px;
    right: 0;
    bottom: 0;
    left: initial;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: bold;
  }
  .fixed-shipping-menu-cart::after {
    content: "";
    width: 24px;
    height: 24px;
    background: url(../../img/sys/icon/icon_cart.png);
    background-size: cover;
  }
}

/* ----商品詳細画面---- */
.page-goods {
  .block-fitpacking {
    width: 100%;
  }
  .block-item-package {
    margin-top:30px;
    margin-bottom: 0px;
  }
  .block-item-package-ttl {
    font-size: 18px;
    font-weight: bold;
  }
  .block-item-package-ttl span {
    font-size: 14px;
  }
  .block-item-package-bar {
    width: 85%;
    max-width: 310px;
    position: relative;
    margin-top: 20px;
  }
  .block-item-package-bar.is-over {
    margin-bottom: 24px;
  }
  .block-item-package-bar-total {
    width: 100%;
    height: 18px;
    background: #F8F3ED;
    border-radius: 9px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.11);
    display: flex;
    position: relative;
    overflow: hidden;
  }
  .block-item-package-bar-current {
    height: 18px;
    background: #64C9E1;
  }
  .block-item-package-bar-add {
    height: 18px;
    background: #CCF0F8;
  }
  .block-item-package-bar.is-over .block-item-package-bar-add {
    background: #FF7978;
  }
  .block-item-package-bar-num {
    font-size: 10px;
    color: #624541;
  }
  .block-item-package-bar-current-num {
    position: absolute;
    transform: translateX(-50%);
    margin-top: 10px;
  }
  .block-item-package-bar-current-num::before {
    content: "";
    width: 1px;
    height: 10px;
    background: #624541;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
  }
  .block-item-package-bar-add-num {
    position: absolute;
    top: -15px;
  }
  .block-item-package-bar-add-num::before {
    content: "";
    width: 10px;
    height: 8px;
    position: absolute;
    background: #FF7978;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateX(-50%);
    top: 5px;
  }
  .block-item-package-bar-add-num span {
    margin-left: 7px;
  }
  .block-item-package-bar.is-over .block-item-package-bar-add-num {
    color: #E52422;
    font-weight: bold;
  }
  .block-item-package-comment {
    font-size: 14px;
    margin-top: 24px;
  }
  .block-item-package-comment-red {
    color: #FF7978;
    font-weight: bold;
  }
  .block-item-package-comment.is-over {
    color: #E52422;
    font-weight: 600;
  }
  .block-item-package-comment.is-over::before {
    content: "!";
    color: #FFF;
    background: #E52422;
    width: 20px;
    height: 20px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
  }
}

/* ----カート画面：ぴったり梱包---- */
.page-cart {
  .block-shipping-note {
    padding: 14px 14px 20px;
    margin-bottom: 30px;
    background: #EFFAFB;
  }
  .block-shipping-note-text {
    font-size: 16px;
    line-height: 1.3;
  }
  .block-shipping-note-red {
    color: #FF7978;
  }
  .block-shipping-note-attention {
    font-size: 13px;
  }
  .block-cart--wrapper form {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 80px;
    padding: 20px 18px 50px;
    background: #FAF9F6;
    border: 2px solid #624541;
    border-radius: 30px;
    box-shadow: 0 5px 8px rgba(0,0,0,0.2);
  }
  .block-cart--container {
    margin-bottom: 0px;
  }
  .block-cart--contents {
    width: 800px;
    background: transparent;
  }
  .block-shipping-package {
    padding: 30px 16px 10px;
    display: flex;
    position: relative;
  }
  .block-cart--goods-list li.block-shipping-package {
    padding: 30px 16px;
    display: flex;
    position: relative;
    border-bottom: none;
    border-top: none !important;
  }
  .block-cart--goods-list li.block-cart--item-list {
    background: #FFF;
    padding: 20px;
  }
  .block-shipping-package-ttl {
    font-size: 22px;
    font-weight: bold;
    padding-left: 40px;
    position: relative;
  }
  .block-shipping-package-ttl::before {
    content: "";
    width: 40px;
    height: 40px;
    background: url(../../img/sys/icon/icon_footpoint.png);
    background-size: cover;
    position: absolute;
    top: 16px;
    left: 0;
    transform: translateY(-50%);
  }
  .block-shipping-package-ttl .block-shipping-package-size {
    font-size: 14px;
    display: block;
  }
  .block-shipping-package-bar {
    display: inline-block;
    width: 320px;
    margin-top: 0;
    margin-left: 30px;
    position: relative;
    top: -8px;
  }
  .block-shipping-package-bar-check {
    position: relative;
    width: fit-content;
    margin-bottom: 3px;
  }
  .block-shipping-package-bar-check::before {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 12px;
    background: #FF7978;
    clip-path: polygon(0 0,100% 0,50% 100%);
    margin-bottom: 4px;
    transform: translateX(-50%);
  }
  .block-shipping-package-bar-current-low-num {
    width: fit-content;
    height: 12px;
    line-height: 12px;
    margin-left: 10px;
    color: #624541;
  }
  .block-shipping-package-bar-total {
    width: 320px;
    height: 28px;
    background: #FFF;
    border-radius: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.11);
    overflow: hidden;
  }
  .block-shipping-package-bar-current {
    height: 28px;
    background: #64C9E1;
  }
  .block-shipping-package-bar-comment {
    background: #64C9E1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 32px;
    margin: 10px 0 0 auto;
    color: #FFF;
    border-radius: 16px;
    box-shadow: 3px 3px #5DA8C2;
    position: relative;
    padding: 0 16px 0 20px;
  }
  .block-shipping-package-bar-comment::before {
    content: "";
    width: 10px;
    height: 8px;
    position: absolute;
    top: -7px;
    right: 20px;
    background: #64C9E1;
    clip-path: polygon(50% 0,100% 100%,0 100%);
  }
  .block-shipping-package-search {
    position: absolute;
    top: 40px;
    right: 1.5em;
    padding-right: 1.5em;
    font-size: 16px;
    font-weight: bold;
    text-align: right;
  }
  .block-shipping-package-search::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1px solid #624541;
    border-right: 1px solid #624541;
    margin-left: 1em;
    position: absolute;
    top: 50%;
    right: 3px;
    transform: translateY(-47%) rotate(45deg);
  }
  .block-shipping-package-item-bar {
    width: 240px;
    height: 20px;
    background: #F8F3ED;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.11);
    overflow: hidden;
  }
  .block-shipping-package-item-bar-current {
    background: #64C9E1;
    height: 20px;
  }
  .block-shipping-package-item-note {
    font-size: 13px;
    color: #EA747C;
  }
}
