@charset "utf-8";

/* ==========================================================================
   基本設定・変数・リセット
   ========================================================================== */
:root {
  --primary-teal: #04a597;
  --bg-light: #fdfdfd;
  /* body背景色が指定されていた変数がなかったので仮定義、もしくは #fdfdfd */
}

/*

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  background-color: var(--bg-light);  変数が未定義の場合は具体的な色コードに変更してください 
  line-height: 1.6;
  color: #35380A;
}
*/

/* ==========================================================================
   メインレイアウト (商品画像とフォームの2カラム)
   ========================================================================== */
.item-main-flex {
  display: flex;
  flex-wrap: wrap;
  /*gap: 30px;*/
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.item-image-side {
  flex: 1;
  min-width: 300px;
}

.item-select-side {
  flex: 1;
  min-width: 300px;
}

.item-select-side .model {
  font-size: 1.2em;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

.item-select-side .product-title {
  margin-bottom: 1em;
  padding: 20px;
}

.item-select-side .product-title .product {
  font-size: 1.2em;
}

.item-select-side .product-title .postage-free {
  font-size: 1.2em;
}

/* ==========================================================================
   購入タイプ選択カード (2つの独立したボックス)
   ========================================================================== */
#apicart-area #api_product_target_normal form.api_product_form {
  padding: 0;
}

.purchase-type-selector {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  min-height: 250px;
}

.purchase-type-selector.is-ready {
  opacity: 1;
  visibility: visible;
}

/* カード本体 */
.order-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f9f9f9;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.order-card.subsc-card {
  margin-bottom: 5px;
}

/* 選択時の強調 */
.order-card:has(input[type="radio"]:checked) {
  border: 2px solid #1a237e;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-card input[type="radio"] {
  display: none;
}

small.select.annotation {
  font-size: 14px;
}

small.aroma.annotation {
  display: block;
  padding: 0 1em;
  font-size: 14px;
  text-align: center;
}

@media screen and (min-width: 769px) {

  small.select.annotation,
  small.aroma.annotation {
    font-size: 1em;
  }
}

small.delivery.annotation {
  padding: .5em 0 0;
  display: block;
  font-size: 14px;
}

.purchase-type-selector p.about {
  display: none;
  padding: 0 20px;
}

.purchase-type-selector p.about a {
  text-decoration: underline;
  color: #0900E8;

}

/* ラベルエリア */
.order-label {
  display: block;
  padding: 20px;
  cursor: pointer;
  position: relative;
}

/* ヘッダー部分 */
.order-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 12px;
}

.order-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-title {
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

/* ラジオボタンの装飾 */
.radio-mark {
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: #fff;
}

input[type="radio"]:checked+.order-label .radio-mark {
  border-color: #1a237e;
}

input[type="radio"]:checked+.order-label .radio-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  background: #1a237e;
  border-radius: 50%;
}

/* カートの中身（選択時のみ表示） */
.selection-content {
  display: none;
  padding: 0 20px;
}

p+.cycle-list {
  margin-top: 1em;
}

p.delivery-date.api-onetime {
  font-size: 1em;
  width: 100%;
  text-align: center;
  border: solid 1px #000000;
  padding: 5px 0;
  border-radius: 3px;
  margin-top: 10px;
  font-size: 1.1em;
  font-weight: bold;
}

input[type="radio"]:checked~.selection-content {
  display: block;
}

/* 追加の見出し調整 */
.order-card_addindex {
  font-weight: bold;
}

/* カートボタンアイコン調整 */
.cart-btn-wrap input[type="submit"] {
  padding-left: 30px !important;
}

.cart-btn-wrap {
  display: flex;
  position: relative;
}

.cart-btn-wrap img {
  position: absolute;
  width: 30px;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 0.5em - 65.5px), -40%);
  display: none;
}

/* ==========================================================================
   1. 左右のアライメント調整（ヘッダーと中身をピタッと揃える）
   ========================================================================== */

/* ヘッダーとアコーディオンの中身の横パディングを20pxに統一 */
.order-label,
.selection-content {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 価格プレビューの右余白をゼロにし、右端の境界線に合わせる */
.price-preview-box {
  margin-right: 0 !important;
  text-align: right;
}

/* 境界線（もしある場合）の調整 */
.selection-content {
  padding-bottom: 20px !important;
}

/* ==========================================================================
   2. プルダウンの微調整（文字サイズ・垂直中央・デザイン）
   ========================================================================== */
.api_product_variation_label {
  display: none !important;
}

.api_product_target select.api_product_variation_select {
  width: 100% !important;
  max-width: 100% !important;

  /* 高さとフォントサイズ */
  height: 48px !important;
  font-size: 18px !important;
  font-weight: 500 !important;

  /* 上下中央揃え：ブラウザの癖を殺すためのpaddingとline-heightの組み合わせ */
  padding: 2px 60px 0 15px !important;
  /* 上を2pxに抑え、中央感を出す */
  line-height: 46px !important;

  border: 1px solid #999 !important;
  border-radius: 4px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  background-color: #fff !important;

  /* 背景デザイン（くの字アイコン ＋ ダークグレーボタン） */
  background-image:
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
    linear-gradient(to left, #888 45px, transparent 45px) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center, right center !important;
  background-size: 20px, auto !important;
}

/* プルダウンの親要素も幅100%を強制 */
.api_product_variation_input_wrap {
  width: 100% !important;
  margin-bottom: 12px !important;
}

#cycle-select {
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  padding: 2px 60px 0 15px !important;
  line-height: 46px !important;
  border: 1px solid #999 !important;
  border-radius: 4px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  background-color: #fff !important;
  background-image:
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
    linear-gradient(to left, #888 45px, transparent 45px) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center, right center !important;
  background-size: 20px, auto !important;
  box-sizing: border-box !important;
}

.cycle-list {
  margin-top: 0 !important;
}

.api-onetime {
  display: none;
}

.count-select {
  height: 48px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  padding: 2px 60px 0 15px !important;
  line-height: 46px !important;
  border: 1px solid #999 !important;
  border-radius: 4px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  background-color: #fff !important;
  background-image:
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
    linear-gradient(to left, #888 45px, transparent 45px) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center, right center !important;
  background-size: 20px, auto !important;
  box-sizing: border-box !important;
}

.count-select-wrap {
  display: flex;
  align-items: center;
  gap: 1vw;
  font-weight: bold;
}

/* ==========================================================================
   価格表示・バッジ・プレビュー
   ========================================================================== */

/* 不要な価格表示を消す */
.api_product_form>.api_product_retail_price_wrap,
.api_product_form>.api_product_retail_price_wrap,
.api_product_form>.api_product_retail_price_wrap,
.api_product_form>.api_product_retail_price_wrap,
.api_product_form>.api_product_variation_retail_price_wrap {
  display: none;
}

.api_product_form>.api_product_variation_retail_price_wrap {
  display: block;
}

/* 10%OFFバッジ */
.price-num.highlight-red {
  color: #EF5555;
}

.off-tag::before {
  margin: 0 0 4px;
  content: "10%OFF";
  text-align: center;
  background-color: #EF5555;
  color: #ffffff;
  font-size: 0.6em;
  font-weight: bold;
  padding: 4px 4px;
  border-radius: 4px;
  line-height: 1.2;
  display: block;
  vertical-align: middle;
}

/* 価格プレビュー（右寄せ） */
.order-header .price-preview {
  min-height: auto !important;
  margin-left: auto;
  margin-right: 40px;
  pointer-events: none;
}

.price-preview-box {
  margin-left: auto;
  font-weight: bold;
  display: flex;
  align-items: baseline;
  color: #ef5555;
}

.price-preview .api_product_retail_price_wrap,
.price-preview .api_product_variation_retail_price_wrap {
  font-size: 1.1em;
  font-weight: bold;
  color: #ef5555;
}

.price-num {
  font-size: 1.5em;
  line-height: 1;
}

.price-unit {
  font-size: 0.9em;
  margin-left: 2px;
  display: flex;
  margin: auto 0 0;
}

/* 選択中はプレビューを隠す */
.order-card:has(input[type="radio"]:checked) .price-preview {
  display: none;
}

[class*='_retail_price'] b {
  font-size: 1em !important;
}

.api_product_variation_retail_price {
  color: #d32f2f !important;
  font-size: 1.8rem !important;
  font-weight: bold !important;
  /* 太字で強調 */
}

/* 数量部分レイアウト調整 */
.count-unit,
.count-label {
  font-size: 1.2em;
}

.count-select-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

.count-label {
  margin-right: auto;
}

/* 二重価格 */
.normal-card .strike .fixed_price {
  text-decoration: line-through;
}

.normal-card .strike .taxin {
  font-size: .8em;
  text-decoration: line-through;
}

.normal_price_box {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.normal_price_box .strike {
  text-decoration-color: #ef5555;
  font-weight: 600 !important;
  color: #ef5555;
}

.normal-card .api_product_target [class*='price'] {
  display: none;
}

/* ==========================================================================
   APIコア・フォーム動作・スピナー
   ========================================================================== */
#apicart-area #api_product_target_normal.api_product_target form {
  background: none;
}

.api_product_target {
  position: relative;
  display: block;
}

/* カートの中身が空の時のスピナー */
.api_product_target:empty::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1a237e;
  border-radius: 50%;
  animation: api-spin 0.8s linear infinite;
}

/* ボタン処理中のスタイル */
.api_product_processing_button {
  transition: none !important;
  opacity: 1 !important;
  color: inherit !important;
}

/* 選択されたボタンの文字を消してスピナーを表示 */
.api_product_selected_button.api_product_processing_button {
  color: transparent !important;
  position: relative;
}

.api_product_selected_button.api_product_processing_button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ccc;
  border-top-color: #1a237e;
  border-radius: 50%;
  animation: api-spin 0.8s linear infinite;
}

.api_product_selected_button:before {
  content: none !important;
}

@keyframes api-spin {
  to {
    transform: rotate(360deg);
  }
}

/* スライダー初期化前のチラつき防止 */
/*.api_product_slick {
  visibility: hidden;
}

.api_product_slick.slick-initialized {
  visibility: visible;
}*/
/* --- 画像のチラつき・非表示問題の解決 --- */
/* 強制的に非表示にするのをやめ、読み込み前は透明度を下げる程度に留める */
.api_product_slick {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

/* 初期化されたら、またはAPIから中身が入ったら表示する */
.api_product_slick.slick-initialized,
.api_product_target:not(:empty) .api_product_slick {
  opacity: 1;
  visibility: visible !important;
}

/* 念のため、画像エリア自体が消えないように最小高さを設定 */
#api_product_target_img {
  min-height: 400px;
  display: block;
}

@media screen and (min-width: 769px) {
  #apicart-area .item-image-side #api_product_target_img {
    top: 20px;
  }
}

/* ==========================================================================
   フォーム要素・ボタンデザイン
   ========================================================================== */
#apicart-area .selection-content .api_product_variation_input_wrap {
  justify-content: space-between;
  margin: .6em auto 0;
}

/* サイクル選択ボタン */
.cycle-list {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}

.cycle-list button {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.cycle-list button.api_product_selected_button {
  background: #1a237e;
  color: #fff;
  border-color: #1a237e;
}

/* カートに入れるボタン（Submit） */
.api_product_form input[type="submit"] {
  background: #217a4b !important;
  color: #fff;
  width: 100%;
  padding: 16px !important;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 50px !important;
  cursor: pointer;
  margin-top: 15px;
  border-bottom: .3em solid #084024 !important;
}

.cart-btn-wrap:hover input[type="submit"] {
  background: #ffffff !important;
  border-bottom: none !important;
  color: #000000 !important;
  border: solid 1px #000000 !important;
}

/* 特定のコンテキストでのボタン調整 */
#apicart-area .item-select-side #api_product_target_teiki input[value='カートに入れる'] {
  border-bottom-color: #084024;
  border-radius: 50px;
}

/* ==========================================================================
   商品説明・FAQエリア (#description)
   ========================================================================== */
#description {
  margin: 0 auto;
  max-width: 750px;
}

/* コンテナ */
#description #subscription-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


/* トップラベル */
#description .top-label {
  background-color: var(--primary-teal);
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

/* 画像 */
#description .content-image {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQセクション全体 */
#description #faq {
  background-color: #f8fbfa;
  padding: 60px 20px;
}

#description .faq-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-teal);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

#description .faq-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background-color: var(--primary-teal);
}

/* FAQアイテム */
#description .faq-item {
  background: #fff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #eee;
}

/* 質問ボタン */
#description .faq-question {
  width: 100%;
  padding: 20px;
  font-weight: normal;
  color: var(--primary-teal);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  outline: none;
}

#description .faq-question span:first-child::before {
  content: 'Q.';
  margin-right: 12px;
  font-size: 1.4rem;
  font-weight: normal;
}

/* トグルアイコン (+/-) */
#description .toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

#description .toggle-icon::before,
#description .toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary-teal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#description .toggle-icon::before {
  width: 16px;
  height: 2px;
}

#description .toggle-icon::after {
  width: 2px;
  height: 16px;
  transition: transform 0.3s ease;
}

#description .faq-question[aria-expanded="true"] .toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* 回答エリア */
#description .faq-answer {
  display: none;
  overflow: hidden;
  transition: height 0.3s ease-out;
  background-color: #fdfdfd;
}

#description .faq-answer-inner {
  padding: 20px 20px 20px 50px;
  color: #555;
  border-top: 1px solid #f0f0f0;
  position: relative;
}

#description .faq-answer-inner::before {
  content: 'A.';
  font-weight: normal;
  color: #f77f00;
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 1.4rem;
}

/* 特定のFAQボタン調整 */
[id*='item-detail'] #faq button {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: auto;
  text-align: left;
  font-size: 1.1em !important;
}

/* その他微調整 */
#itemDetail-wrap.sub-box2 {
  height: 1em;
  line-height: 1em;
  overflow: hidden;
}

/* ==========================================================================
   レスポンシブ (Media Queries)
   ========================================================================== */


@media screen and (min-width: 769px) {
  #apicart-area>div:not([id*='img']) {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .api_product_target input,
  .api_product_target select.api_product_variation_select {
    max-width: 80%;
  }
}

/* PC向け調整 */
@media screen and (min-width: 900px) {

  .api_product_target input,
  .api_product_target select.api_product_variation_select {
    max-width: 100%;
  }
}

/* モバイル向け調整 */
@media (max-width: 768px) {

  /* メインレイアウトの縦並び */
  .item-main-flex {
    max-width: 500px;
    flex-direction: column;
  }

  .item-image-side,
  .item-select-side {
    width: 100%;
  }

  .api_product_target input,
  .api_product_target select.api_product_variation_select {
    max-width: 90%;
  }

  /* Description内の調整 */
  #description .faq-title {
    font-size: 1.4rem;
  }

  #description .faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  #description .faq-answer-inner {
    padding: 15px 15px 15px 45px;
  }

  #description .faq-answer-inner::before {
    left: 15px;
    top: 15px;
  }

  #description .top-label {
    font-size: 0.85rem;
    padding: 10px 0;
  }
}

@media (max-width: 450px) {

  .api_product_target input,
  .api_product_target select.api_product_variation_select {
    max-width: 80%;
  }

  #api_product_target_img {
    min-height: 0;
    display: block;
  }
}

@media (max-width: 350px) {

  .api_product_target input,
  .api_product_target select.api_product_variation_select {
    max-width: 70%;
  }
}

/* --- メタ情報エリア全体の調整 --- */
.repositioned-meta {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 10px 0;
  border-top: 1px dotted #ccc;
  /* 境界線を引いて独立させる */
}

/* --- ポイント還元のバッジ化 --- */
.repositioned-meta .publish_point {
  background: linear-gradient(135deg, #fbc02d 0%, #f9a825 100%);
  /* ゴールド系のグラデーション */
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ブラケット [ ] を消してスッキリさせる（JSで調整するか、CSSで擬似的に隠す） */
.repositioned-meta .publish_point:before {
  content: "★ ";
  /* 星アイコンを添えてお得感を出す */
}

/* --- お気に入りボタン調整 --- */
[class^="sps-wishArea_"] a {
  display: block;
  text-align: center;
  height: fit-content;
  margin-top: 20px;
  width: 100%;
}

[class^="sps-wishArea_"] img {
  width: 20px;
}

.sps-wishAddItem {
  display: flex;
  gap: 5px;
  width: 100%;
  border: solid 1px #006835;
  color: #006835;
  padding: 5px 0;
  border-radius: 3px;
  align-items: center;
  justify-content: center;
}

.sps-wishAddItemOk {
  display: flex;
  gap: 5px;
  width: 100%;
  background-color: #006835;
  border: solid 1px #006835;
  color: #ffffff;
  padding: 5px 0;
  border-radius: 3px;
  align-items: center;
  justify-content: center;
}

.wishBtnHidden {
  display: none !important;
}

/*画像の位置*/
@media screen and (min-width: 769px) {
  #apicart-area #api_product_target_img {
    top: 20%;

  }
}