/**
 * sobagni_novelty_site addon styles
 * novelty/view 専用スタイル（この画面だけで読み込む）
 */
/**
 * ノベルティサイトアドオンの共通スタイル（フロントの全画面で読み込み）
 * 各画面のルートにベースフォントサイズを指定
 */
body,
p,
div,
li,
a,
.ty-btn {
  font-size: 16px !important;
}
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  font-size: 16px !important;
}
#sn-validation-errors .ty-messages,
#sn-validation-errors .ty-messages__item-text {
  font-family: inherit;
}
.sn-novelty-view {
  /* ==============================
     インライン style="..." 置換分
     ============================== */
  /* ロゴアップロード: .ai 選択時のプレビュー用テキスト */
  /* フォント選択 */
  /* 配置: ボタン + プレビュー（カルーセル廃止） */
  /* 包装カルーセル */
  /* カード内の子要素も確実にクリック可能にする */
  /* 念のため：空のカラムが当たり判定にならないようにする */
  /* ==============================
     旧 <style> 移植分（スコープ付き）
     ============================== */
  /* 画像アップロード */
  /* 商品画像カルーセル（1枚表示＋左右中央ナビ） */
  /* 数量電卓 */
}
.sn-novelty-view .sn-selected-product {
  margin-bottom: 15px;
}
.sn-novelty-view .sn-selected-product__box {
  padding: 10px;
  background: #eee;
}
.sn-novelty-view .sn-selected-product__title {
  margin-bottom: 3px;
}
.sn-novelty-view .sn-selected-product__meta {
  display: flex;
  gap: 6px;
  font-size: 0.9em;
  margin-bottom: 6px;
}
.sn-novelty-view .sn-link-sm {
  font-size: 0.8em;
}
.sn-novelty-view .sn-variation-carousel-wrap {
  height: 130px;
}
.sn-novelty-view .sn-carousel-label-wrap {
  width: 100%;
  text-align: center;
}
.sn-novelty-view .sn-text-xs {
  font-size: 0.6em;
}
.sn-novelty-view .sn-text-sm {
  font-size: 0.8em;
}
.sn-novelty-view .sn-feature-tags {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}
.sn-novelty-view .sn-feature-tag {
  background-color: #eee;
  padding: 3px;
  border-color: #bbb;
}
.sn-novelty-view .sn-price-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 15px;
}
.sn-novelty-view .sn-right-panel {
  background-color: #f0f0f0;
  padding: 24px;
}
@media (max-width: 767px) {
  .sn-novelty-view .sn-right-panel {
    padding: 10px;
  }
}
.sn-novelty-view .sn-box-pad10 {
  padding: 10px;
}
.sn-novelty-view .sn-box-pad10 a {
  color: #666464;
  text-decoration: underline;
}
.sn-novelty-view .ty-control-group__label {
  white-space: nowrap;
}
.sn-novelty-view .image-upload-ai-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 10px;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: 4px;
  font-size: 0.9em;
  color: #333;
  text-align: center;
}
.sn-novelty-view .sn-note-right-sm {
  font-size: 0.8em;
  text-align: right;
}
.sn-novelty-view .sn-input-full {
  width: 100%;
}
.sn-novelty-view .sn-font-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
  max-width: 543px;
}
.sn-novelty-view .sn-font-option {
  flex: 1 1 0;
  min-width: 100px;
  position: relative;
  margin-right: 0;
}
.sn-novelty-view .sn-font-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sn-novelty-view .sn-font-radio:focus + .sn-font-button {
  outline: 2px solid #666464;
  outline-offset: 2px;
}
.sn-novelty-view .sn-font-radio:checked + .sn-font-button {
  background: #666464;
  color: #fff;
  border-color: #666464;
  box-shadow: none;
}
.sn-novelty-view .sn-font-button {
  background: #fff;
  border: 1px solid #333;
  color: #333;
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  padding-top: 6px;
  padding-bottom: 6px;
  min-height: 34px;
  box-sizing: border-box;
  margin-right: 0;
}
.sn-novelty-view .sn-font-option .sn-font-button {
  width: 100%;
  box-sizing: border-box;
}
.sn-novelty-view .sn-font-sample-img {
  margin-top: 16px;
  display: block;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 1200 / 197;
  background-image: url(../../../media/images/addons/sobagni_novelty_site/novelty/font-sample.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 543px) {
  .sn-novelty-view .sn-font-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sn-novelty-view .sn-font-option {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
}
.sn-novelty-view .sn-logo-carousel-wrap {
  height: 250px;
}
.sn-novelty-view .sn-packaging-option__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border-radius: 10px;
}
.sn-novelty-view .sn-placement-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.sn-novelty-view .sn-placement-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 320px;
}
.sn-novelty-view .ty-button.sn-placement-button {
  background: #fff;
  border: 1px solid #333;
  color: #333;
  text-align: center;
  padding: 6px 12px;
  line-height: 1.4;
  white-space: normal;
  box-shadow: none;
  outline: none;
}
.sn-novelty-view .ty-button.sn-placement-button.active {
  background: #666464;
  color: #fff;
  border-color: #666464;
  box-shadow: none;
}
.sn-novelty-view .sn-placement-preview {
  flex: 0 1 auto;
  width: 240px;
  max-width: 240px;
  position: relative;
}
.sn-novelty-view .sn-placement-preview__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 240px;
  border-radius: 4px;
}
.sn-novelty-view .sn-placement-preview__label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 8px;
  border-radius: 4px;
}
.sn-novelty-view .sn-placement-notes {
  margin-top: 12px;
  width: 100%;
  padding: 8px 16px 8px 12px;
  list-style-position: inside;
  list-style: disc;
  font-family: fot-tsukuaoldmin-pr6n, serif !important;
  box-sizing: border-box;
}
.sn-novelty-view .sn-placement-notes li {
  margin-bottom: 4px;
  font-family: fot-tsukuaoldmin-pr6n, serif !important;
  line-height: 1.4;
  font-size: 14px !important;
}
@media (max-width: 767px) {
  .sn-novelty-view .sn-placement-content {
    flex-direction: column;
  }
  .sn-novelty-view .sn-placement-buttons {
    width: 100%;
  }
  .sn-novelty-view .sn-placement-preview {
    max-width: 100%;
  }
}
.sn-novelty-view #wrapping_option_carousel {
  position: relative;
}
.sn-novelty-view #wrapping_option_carousel .owl-stage-outer {
  overflow: hidden;
}
.sn-novelty-view #wrapping_option_carousel .owl-wrapper {
  margin-left: 0;
}
.sn-novelty-view #wrapping_option_carousel .owl-item {
  padding-right: 0;
}
.sn-novelty-view #wrapping_option_carousel .owl-item:first-child {
  margin-left: 0;
}
.sn-novelty-view #wrapping_option_carousel .sn-wrapping-item {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 5px;
  transition: all 0.3s ease;
}
.sn-novelty-view #wrapping_option_carousel .sn-wrapping-item:hover {
  border-color: #ddd;
  background-color: #f9f9f9;
}
.sn-novelty-view #wrapping_option_carousel .sn-wrapping-item.active {
  border-color: #007bff;
  background-color: #e7f3ff;
}
.sn-novelty-view .sn-estimate-fixed {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}
.sn-novelty-view .sn-estimate-fixed__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.sn-novelty-view .sn-estimate-fixed__row {
  /* 行全体が透明な当たり判定になって下のUIを塞がないようにする  */
  pointer-events: none;
}
.sn-novelty-view .sn-estimate-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  background-color: #fff;
  cursor: grab;
  /* 固定バー内でクリック可能なのはカード内だけに限定 */
  pointer-events: auto;
}
.sn-novelty-view .sn-estimate-card__header {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
}
.sn-novelty-view .sn-estimate-card__header a {
  color: #666464;
  text-decoration: underline;
}
.sn-novelty-view .sn-estimate-card__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sn-novelty-view .sn-estimate-card__content--hidden {
  display: none;
}
.sn-novelty-view .sn-estimate-card * {
  pointer-events: auto;
}
.sn-novelty-view .sn-estimate-fixed__row .span9 {
  pointer-events: none;
}
.sn-novelty-view .sn-estimate-actions {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: center;
}
.sn-novelty-view .sn-estimate-actions .ty-btn__secondary {
  background-color: #fff;
  color: #666464;
  border: 1px solid #666464;
}
.sn-novelty-view .image-upload-preview {
  width: 150px;
}
.sn-novelty-view .image-upload-input {
  display: none;
}
.sn-novelty-view .image-upload-area {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.sn-novelty-view .image-upload-placeholder {
  color: #888;
  font-size: 13px;
  padding: 8px;
}
.sn-novelty-view .image-upload-preview-img {
  display: none;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sn-novelty-view #product_images_carousel {
  position: relative;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  /* Owl側のouter（画像領域）ははみ出さない */
  /* グローバルの「チラ見」補正を無効化（商品画像は中央揃えでOK） */
  /* OwlCarousel v1 */
}
.sn-novelty-view #product_images_carousel .owl-wrapper-outer,
.sn-novelty-view #product_images_carousel .owl-stage-outer {
  overflow: hidden;
}
.sn-novelty-view #product_images_carousel .owl-wrapper {
  margin-left: 0;
}
.sn-novelty-view #product_images_carousel .owl-item {
  padding-right: 0;
}
.sn-novelty-view #product_images_carousel .owl-item:first-child {
  margin-left: 0;
}
.sn-novelty-view #product_images_carousel .owl-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.sn-novelty-view #product_images_carousel .owl-buttons .owl-prev,
.sn-novelty-view #product_images_carousel .owl-buttons .owl-next {
  pointer-events: all;
  color: #ddd;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.sn-novelty-view #product_images_carousel .owl-buttons .owl-prev {
  position: absolute;
  left: 0;
}
.sn-novelty-view #product_images_carousel .owl-buttons .owl-next {
  position: absolute;
  right: 0;
}
.sn-novelty-view #product_images_carousel .owl-buttons .owl-prev:hover,
.sn-novelty-view #product_images_carousel .owl-buttons .owl-next:hover {
  color: #eee;
}
.sn-novelty-view #product_images_carousel .novelty-carousel-arrow {
  font-size: 26px;
  /* 矢印だけ大きく */
  line-height: 1;
  color: inherit;
  display: block;
  transform: scale(3, 5);
  transform-origin: center;
}
.sn-novelty-view .quantity-calculator {
  width: 90px;
  font-family: sans-serif;
}
.sn-novelty-view .quantity-display {
  width: 150px;
  height: 90px;
  font-size: 1em;
  text-align: center;
  line-height: 90px;
}
.sn-novelty-view .calculator-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.sn-novelty-view .calculator-keys button {
  padding: 1px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.sn-novelty-view .calculator-keys button:hover {
  background: #f0f0f0;
}
.sn-novelty-view .key-func {
  background: #f8f8f8;
}
.sn-novelty-view .key-zero {
  grid-column: 1 / 2;
}
.sn-novelty-view .key-backspace {
  position: relative;
  font-size: 0;
  /* 元の X を消す */
}
.sn-novelty-view .key-backspace::before {
  content: "⌫";
  /* バックスペース記号 */
  font-size: 18px;
  line-height: 1;
}
.sn-novelty-view .ty-btn.ty-btn__primary {
  background-color: #666464;
  border-color: #666464;
}
.sn-novelty-view .ty-btn.ty-btn__primary:hover {
  background-color: #555353;
  border-color: #555353;
}

/* ロゴ「注意事項」モーダル（共通明朝フォント） */
.sn-novelty-view .sn-logo-notes-open {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-family: fot-tsukuaoldmin-pr6n, serif !important;
  font-size: inherit;
}
.sn-novelty-view .sn-logo-notes-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.sn-novelty-view .sn-logo-notes-modal[hidden] {
  display: none !important;
}
.sn-novelty-view .sn-logo-notes-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.sn-novelty-view .sn-logo-notes-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.sn-novelty-view .sn-logo-notes-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.sn-novelty-view .sn-logo-notes-modal__title {
  margin: 0;
  font-size: 1.1em;
  font-weight: normal;
  font-family: fot-tsukuaoldmin-pr6n, serif !important;
}
.sn-novelty-view .sn-logo-notes-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  font-family: fot-tsukuaoldmin-pr6n, serif !important;
}
.sn-novelty-view .sn-logo-notes-modal__body {
  padding: 20px;
  line-height: 1.75;
  font-family: fot-tsukuaoldmin-pr6n, serif !important;
}
.sn-novelty-view .sn-logo-notes-modal__body p {
  margin: 0 0 1em;
  font-family: fot-tsukuaoldmin-pr6n, serif !important;
}
.sn-novelty-view .sn-logo-notes-modal__body p:last-child {
  margin-bottom: 0;
}
