/* 遷移無しカートイン start（PC版：中央モーダル） */
#ajc-loading,
#ajc-modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);

    /* 固定フッターより上 */
    z-index: 109991;
    transform: translateZ(5px);
}

.ajc-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin-top: -40px;
    margin-left: -40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3E%3Cg transform='translate(50,50)'%3E%3Cg transform='rotate(0)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='1'/%3E%3C/g%3E%3Cg transform='rotate(30)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.916'/%3E%3C/g%3E%3Cg transform='rotate(60)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.833'/%3E%3C/g%3E%3Cg transform='rotate(90)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.75'/%3E%3C/g%3E%3Cg transform='rotate(120)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.666'/%3E%3C/g%3E%3Cg transform='rotate(150)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.583'/%3E%3C/g%3E%3Cg transform='rotate(180)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.5'/%3E%3C/g%3E%3Cg transform='rotate(210)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.416'/%3E%3C/g%3E%3Cg transform='rotate(240)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.333'/%3E%3C/g%3E%3Cg transform='rotate(270)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.25'/%3E%3C/g%3E%3Cg transform='rotate(300)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.166'/%3E%3C/g%3E%3Cg transform='rotate(330)'%3E%3Ccircle cx='0' cy='-38' r='8' fill='%23ffffff' fill-opacity='0.083'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    animation: ajc-spin 1s steps(12) infinite;
}

@keyframes ajc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.ajc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
        width: 525px;
    max-width: 90vw;
    max-height: 85vh;
    background: #fff;
    border-radius: 14px;
    padding: 12px 0 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 105;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* 中央にフェード＋拡大で表示する設定 */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    animation: ajc-fade-in-scale 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ajc-fade-in-scale {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.ajc-header {
    position: relative;
    text-align: center;
    flex: 0 0 auto;
}

 .ajc-title {
    color: #16a34a;
    margin: 0 0 5px 0;
    padding-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
    border-bottom: 2px solid #f3f3f3;
}

.ajc-title:before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url(/img/icon/check.webp);
    margin-right: 5px;
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.ajc-close {
    position: absolute;
    right: 15px;
    top: 0px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ajc-container {
    padding: 10px 0px 0;
}

.ajc-body {
       display: flex;
    /* background: #e9e9e9; */
    padding: 12px;
    border-radius: 8px;
    margin: 0 25px 15px;
    text-align: left;
    border: 1px solid #eae8e8;
}

.ajc-image-wrapper {
    width: 80px;
    flex-shrink: 0;
    margin-right: 12px;
}

.ajc-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ajc-info-wrapper {
    flex-grow: 1;
}

.ajc-name {
 font-weight: bold;
    margin: 0 0 7px 0;
    font-size: 17px;
}
.ajc-capa{
  background: #eeeeee;
    display: inline-block;
    padding: 5px 10px 5px;
    box-sizing: border-box;
    border-radius: 5px;
}
.ajc-capa, .ajc-qty {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 9px 0;
}

.ajc-red-ship {
    margin: 0;
    font-size: .9em;
    font-weight: bold;
    color: #d0021b;
}

.ajc-subtotal-area {

    border: 1px solid #000;
    padding: 12px;
    border-radius: 8px;
    margin: 0 25px 15px;
}
.ajc-flex p {
    font-size: 18px;
}
p.ajc-subtotal-ttl {
     font-weight: bold;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 13px;
    font-size: 16px;
        display: flex;
    align-items: center;
}
span.en_icon {
    width: 35px;
    height: 35px;
    display: block;
    background: #0090f0;
    margin-right: 5px;
    border-radius: 50%;
    position: relative;
}
span.en_icon:before{
content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(/img/icon/cart2.webp);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.ajc-flex {
    display: flex;
    justify-content: space-between;
    margin: 5px 15px 15px;
    font-size: 12px;
}
.ajc-subtotal-text {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.ajc-subtotal-price {
    /* font-size: 18px;
    font-weight: bold;
    color: #333; */
    margin: 0;
    font-weight: bold;
    font-size: 20px !important;
}

.ajc-note-area {
    padding: 0 0px 0px;
}

.ajc-note {
    color: #d0021b;
    font-size: 0.9em;
    margin: 0;
}

.ajc-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 15px 15px 0;
    flex: 0 0 auto;
}

.ajc-btn-cart, .ajc-btn-continue {
    padding: 12px 0;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    width: 50%;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

a.ajc-btn-cart {
    background: #ffb700;
    color: #333333;
    border: none;
        display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
a.ajc-btn-cart:after{
     content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url(/img/icon/migi_y01.webp);
   background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
      margin-right: 6px;
      background-repeat: no-repeat;
          position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
      
}
a.ajc-btn-cart::before{
     content: '';
  display: inline-block;
 width: 16px;
    height: 16px;
  background-image: url(/img/icon/cart3.webp);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
      margin-right: 6px;
}
.ajc-btn-continue {
background: #fff;
    color: #0090f0;
    border: 1px solid #0090f0;
     position: relative;
}
.ajc-btn-continue:after{
     content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url(/img/icon/migi_y02.webp);
   background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
      margin-right: 6px;
      background-repeat: no-repeat;
          position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}

.ajc-free-shipping-wrapper {
    position: relative;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    /* width: 100%; */
    margin: 0 25px;
    line-height: 0;
}

.ajc-red-text {
    color: #d0021b;
}

.ajc-info-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.ajc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #999;
    border-radius: 50%;
    color: #999;
    font-size: 11px;
    font-family: serif;
    cursor: pointer;
}

.ajc-tooltip {
    display: none;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4a4a4ad6;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    text-align: left;
    width: 200px;
    z-index: 100000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ajc-tooltip::after {
    content: "";
    position: absolute;
    top: 99%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #4a4a4ad6 transparent transparent transparent;
}

.ajc-tooltip-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
}

.ajc-tooltip-desc {
    margin: 0;
    line-height: 1.4;
    font-weight: normal;
}

/* 閉じる処理用：中央モーダルはフェード＋縮小で消える */
.ajc-modal.is-closing {
    animation: ajc-fade-out-scale 0.2s ease forwards;
}

@keyframes ajc-fade-out-scale {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
}
.ajc-header-scroll{
    flex: 1 1 auto;
    overflow-y: auto;
}
#ajc-free-shipping-banner {
      margin-top: 10px;
    padding-top: 0px;
    border-top: 2px solid #f3f3f3;
}
#ajc-free-shipping-banner:empty {
    border-top: none;
    padding: 0;
    margin: 0;
}
#ajc-free-shipping-banner-h {
    font-weight: 600;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 0.5em;
}
#ajc-free-shipping-banner-h::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  /* ▼ 縦長でオレンジの三角形に調整 ▼ */
  border-top: 15px solid #fa5901;      /* 高さ（大きめ）とオレンジ色 */
  border-left: 8px solid transparent;  /* 左側の幅（小さめ） */
  border-right: 8px solid transparent; /* 右側の幅（小さめ） */
  margin: 6px auto 0; /* 中央寄せと、上のテキストとの余白 */
}
#ajc-free-shipping-banner-img {
    width: 80%;
  max-width:300px;
    margin: 0 auto;
}
#ajc-free-shipping-banner img {
    width: 100%;
    height: auto;
}
/* 遷移無しカートイン end */

/* ============================================
   送料無料までの進捗バー（#ajc-free-shipping-text 内に
   JSが差し込む .ajc-ship-progress-box 用のスタイル）
   ============================================ */

.ajc-ship-progress-box {
    background: #fdf7e8;
    border: 1px solid #f0e2b8;
    border-radius: 12px;
    padding: 14px 16px 16px;
    text-align: center;
    box-sizing: border-box;
}

.ajc-ship-progress-title {
    margin: 0 0 8px;
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
}

.ajc-ship-progress-amount {
    font-size: 14px;
    font-weight: bold;
    color: #0068d1;
    margin: 0 1px;
}

.ajc-ship-progress-unit {
    font-size: 14px;
    font-weight: bold;
    color: #0068d1;
}

.ajc-ship-progress-track {
    position: relative;
    width: 78%;
    height: 10px;
    background: #e2e2e2;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.ajc-ship-progress-fill {
    height: 100%;
    border-radius: 999px;
    background-color: #f5a623;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35) 0,
        rgba(255, 255, 255, 0.35) 6px,
        transparent 6px,
        transparent 12px
    );
    transition: width 0.4s ease;
}

.ajc-ship-progress-sub {
     margin: 0px 0 0;
    font-size: 14px;
    color: #333333;
}

.ajc-ship-progress-current,
.ajc-ship-progress-threshold {
    color: #0068d1;
    font-weight: bold;
}

/* ============================================
   送料無料達成時の表示（緑のカード：トラック＋￥0＋キラキラ）
   ============================================ */

.ajc-ship-free-box {
    background: #eefaf0;
    border: 1px solid #cdeccf;
    border-radius: 12px;
    padding: 18px 16px 16px;
    text-align: center;
    box-sizing: border-box;
}

.ajc-ship-free-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 10px; */
    margin-bottom: 8px;
}

.ajc-ship-free-truck {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

span.ajc-ship-free-truck img {
    max-width: 35%;
}
.ajc-ship-free-truck svg {
    display: block;
}

.ajc-ship-free-sparkle {
    font-size: 18px;
    line-height: 1;
    color: #ffb300;
}

.ajc-ship-free-sparkle--left {
    transform: translateY(-4px);
}

.ajc-ship-free-sparkle--right {
    transform: translateY(4px);
}

.ajc-ship-free-text {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    color: #16a34a;
}

.ajc-subtotal-mfee.is-free {
    color: #e2001b;
    font-weight: bold;
}