/* ==========================================================================
   futureshop 商品ページ用「右側固定カートボタン」スタイル
   --------------------------------------------------------------------------
   アップロー先：ファイル管理 item/css/cart-float-button.css
   読み込み：<link rel="stylesheet" href="https://mikan.itembox.cloud/item/css/cart-float-button.css?日付">
   セット：cart-float-button.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   ▼ デザイン変数（色はサイト既存のトーンに合わせています）
   -------------------------------------------------------------------------- */
.ino-fc {
  --ino-fc-main:      #E2962D;  /* メインカラー（オレンジ） */
  --ino-fc-main-dark: #C27E1D;  /* ホバー時 */
  --ino-fc-text:      #4A4636;  /* 文字色 */
  --ino-fc-sub:       #8C8570;  /* 補助文字色 */
  --ino-fc-bg:        #FFFFFF;  /* パネル背景 */
  --ino-fc-bg-sub:    #FAF9F6;  /* 内側ブロック背景 */
  --ino-fc-border:    #E4E0D6;  /* 罫線 */
  --ino-fc-radius:    14px;

  position: fixed;
  right: 0;
  bottom: 24px;                 /* ← 表示位置（下からの距離） */
  z-index: 9000;                /* ← 他の固定要素より前面に出したい場合は上げる */
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', sans-serif;
  color: var(--ino-fc-text);
  display: none;                /* JSが表示制御 */
  align-items: flex-end;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ino-fc.is-visible { display: flex; }
.ino-fc, .ino-fc * { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   縦書きタブ（格納時のつまみ）
   -------------------------------------------------------------------------- */
.ino-fc__tab {
  writing-mode: vertical-rl;
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--ino-fc-main);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 18px 10px;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 3px 14px rgba(74, 70, 54, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color .25s ease, transform .25s ease;
  white-space: nowrap;
}
.ino-fc__tab:hover { background: var(--ino-fc-main-dark); transform: translateX(-2px); }
/* --------------------------------------------------------------------------
   カートアイコン（SVG）
   線の色はボタンの文字色を継承。大きさは下の width / height で調整します
   -------------------------------------------------------------------------- */
.ino-fc__tab-icon,
.ino-fc__submit-icon { display: inline-flex; line-height: 1; flex-shrink: 0; }

/* タブ（縦書き）の中では文字と向きを揃える */
.ino-fc__tab-icon { writing-mode: horizontal-tb; }

.ino-fc__tab-icon svg    { width: 20px; height: 20px; display: block; }
.ino-fc__submit-icon svg { width: 19px; height: 19px; display: block; }

/* 展開中はタブを隠す */
.ino-fc[data-state="open"] .ino-fc__tab { display: none; }

/* --------------------------------------------------------------------------
   パネル本体
   -------------------------------------------------------------------------- */
.ino-fc__panel {
  display: none;
  width: 300px;
  max-width: calc(100vw - 20px);
  background: var(--ino-fc-bg);
  border: 1px solid var(--ino-fc-border);
  border-right: none;
  border-radius: var(--ino-fc-radius) 0 0 var(--ino-fc-radius);
  box-shadow: -6px 6px 26px rgba(74, 70, 54, 0.22);
  padding: 14px 14px 16px;
  position: relative;
  animation: ino-fc-in .28s cubic-bezier(0.16, 1, 0.3, 1);
}
.ino-fc[data-state="open"] .ino-fc__panel { display: block; }

@keyframes ino-fc-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 閉じるボタン */
.ino-fc__close {
  position: absolute;
  top: 6px;
  right: 8px;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--ino-fc-sub);
  padding: 4px;
}
.ino-fc__close:hover { color: var(--ino-fc-text); }

/* 商品情報 */
.ino-fc__head { display: flex; gap: 10px; align-items: flex-start; padding-right: 20px; }
.ino-fc__thumb {
  width: 54px; height: 54px; flex-shrink: 0;
  object-fit: cover; border-radius: 8px; border: 1px solid var(--ino-fc-border);
  background: var(--ino-fc-bg-sub);
}
.ino-fc__thumb[src=""] { display: none; }
.ino-fc__name {
  margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden;
}
.ino-fc__price { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--ino-fc-main); }
.ino-fc__price small { font-size: 10px; font-weight: 400; color: var(--ino-fc-sub); margin-left: 2px; }

/* 選択中の内容 */
.ino-fc__spec {
  margin-top: 10px; padding: 8px 10px;
  background: var(--ino-fc-bg-sub);
  border: 1px solid var(--ino-fc-border);
  border-radius: 8px;
  font-size: 11px;
}
.ino-fc__spec.is-empty { display: none; }
/* 選択項目が多い商品でもパネルが伸びすぎないようにする */
.ino-fc__speclist { margin: 0; max-height: 132px; overflow-y: auto; }
.ino-fc__specrow { display: flex; gap: 6px; margin: 0 0 3px; }
.ino-fc__specrow:last-child { margin-bottom: 0; }
.ino-fc__spec dt { color: var(--ino-fc-sub); flex: 0 0 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ino-fc__spec dd { margin: 0; flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ino-fc__specrow.is-unset dd { color: #C4453B; }
.ino-fc__change {
  appearance: none; border: none; background: none; cursor: pointer;
  color: var(--ino-fc-main); font-size: 10.5px; font-weight: 700;
  text-decoration: underline; padding: 5px 0 0; font-family: inherit;
}

/* 数量 */
.ino-fc__qtyrow { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ino-fc__qtylabel { font-size: 12px; font-weight: 700; }
.ino-fc__stepper { display: flex; align-items: center; border: 1px solid var(--ino-fc-border); border-radius: 8px; overflow: hidden; }
.ino-fc__stepper button {
  appearance: none; border: none; background: var(--ino-fc-bg-sub); cursor: pointer;
  width: 32px; height: 34px; font-size: 16px; font-weight: 700; color: var(--ino-fc-text);
  font-family: inherit; line-height: 1;
}
.ino-fc__stepper button:hover { background: #F0EDE4; }
.ino-fc__stepper button:disabled { opacity: .35; cursor: default; }
.ino-fc__qty {
  width: 46px; height: 34px; border: none; border-left: 1px solid var(--ino-fc-border);
  border-right: 1px solid var(--ino-fc-border); text-align: center;
  font-size: 14px; font-weight: 700; font-family: inherit; color: var(--ino-fc-text);
  background: #fff; -moz-appearance: textfield;
}
.ino-fc__qty::-webkit-outer-spin-button,
.ino-fc__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* カートに入れるボタン */
.ino-fc__submit {
  appearance: none; border: none; cursor: pointer; width: 100%;
  margin-top: 12px; padding: 13px 10px;
  background: var(--ino-fc-main); color: #fff;
  font-size: 15px; font-weight: 700; font-family: inherit; letter-spacing: .06em;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(226, 150, 45, .35);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ino-fc__submit:hover { background: var(--ino-fc-main-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(194, 126, 29, .4); }
.ino-fc__submit:disabled { background: #C9C5B8; box-shadow: none; cursor: default; transform: none; }

/* --------------------------------------------------------------------------
   ご購入手続きへ（カートページへのリンク）
   -------------------------------------------------------------------------- */
.ino-fc__checkout {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 8px; padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--ino-fc-main);
  border-radius: 999px;
  color: var(--ino-fc-main);
  font-size: 13px; font-weight: 700; font-family: inherit; letter-spacing: .04em;
  text-decoration: none; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ino-fc__checkout:hover,
.ino-fc__checkout:focus {
  background: #FFF6E9;
  color: var(--ino-fc-main-dark);
  border-color: var(--ino-fc-main-dark);
  text-decoration: none;
}
.ino-fc__checkout-arrow { font-size: 17px; line-height: 1; margin-top: -2px; }

/* 補助メッセージ */
.ino-fc__note { margin: 8px 0 0; font-size: 10.5px; color: var(--ino-fc-sub); text-align: center; min-height: 1em; }
.ino-fc__note.is-alert { color: #C4453B; font-weight: 700; }

/* 選択項目へ誘導した際のハイライト */
.ino-fc-highlight { animation: ino-fc-flash 1.6s ease 2; border-radius: 6px; }
@keyframes ino-fc-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 150, 45, 0); }
  40%      { box-shadow: 0 0 0 4px rgba(226, 150, 45, .55); }
}

/* --------------------------------------------------------------------------
   スマートフォン
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .ino-fc { bottom: 70px; }
  .ino-fc__tab { font-size: 13px; padding: 14px 8px; }
  .ino-fc__panel { width: 290px; padding: 12px 12px 14px; }
  .ino-fc__submit { padding: 12px 10px; font-size: 14px; }
}

/* 印刷時は非表示 */
@media print { .ino-fc { display: none !important; } }
