/* ロゴの位置とスタイル */
.logo-top-left {
  position: absolute;
  top: 20px;
  left: 20px;
  opacity: 0.85;
  z-index: 10;
}

.logo-top-left img {
  display: block;
  max-width: 120px;
  height: auto;
}

/* ステップナビゲーションのスタイル */
.step-nav {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 30px 0;
  font-family: "Yu Gothic", "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: #666;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.step::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 8px;
  background-color: #ccc;
  border-radius: 2px; /* ← 四角にする */
}

.step.active::before {
  background-color: #333;
}

.step-nav::after {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(12.5% + 7px);   /* 左端の線を少し内側に */
  right: calc(12.5% + 7px);  /* 右端の線を少し内側に */
  height: 2px;
  background-color: #ddd;
  z-index: -1;
}

/* カートステータスバーのスタイル */
.cart-status-bar {
  background-color: #F2EEE3;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* ← 上揃えに変更 */
  font-size: 13px;
  color: #333;
  font-family: "Yu Gothic", sans-serif;
}
.cart-left {
  flex: 1;
  text-align: left;
}
.cart-right {
  flex: 1;
  text-align: right;
  width: 100%;
}


/* 店舗ごとの商品表示ブロックのスタイル */
.store-block {
  border: 3px solid #ccc;   /* グレーの枠線 */
  border-radius: 10px;         /* 角を丸く */
  padding: 15px;
  margin-bottom: 25px;
  background-color: #fff;      /* 中は白 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* ふんわり影 */
}
/* 店舗ごとに色を変える */
.store-block.LileeCosmatesSis {
  border-color: #E3F2E7;   /* グリーン */
  box-shadow: 0 2px 8px rgba(0, 128, 0, 0.1); /* 緑の影 */
}
.store-block.HandmadeShop {
  border-color: #F2E3EF;   /* ピンク */
  box-shadow: 0 2px 8px rgba(255, 20, 147, 0.1); /* ピンクの影 */
}
.store-block.kirori {
  border-color: #b32425;   /* ウルシレッド */
  box-shadow: 0 1px 4px rgba(179, 36, 37, 0.05); /* 影 */
}
.store-block.branch2 {
  border-color: #32cd32;   /* 緑 */
}
.store-block.branch3 {
  border-color: #ffa500;   /* オレンジ */
}




/* カート内の商品情報のスタイル */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  font-family: "Yu Gothic", sans-serif;
}
.item-name,
.item-code,
.item-variation,
.item-type,
.item-subtotal {
  margin: 4px 0;         /* 上下の余白を半分に（通常は8px〜10px） */
  line-height: 1.2;      /* 行間をやや詰める（通常は1.5前後） */
}
.item-image img {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.item-info {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.item-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.item-code {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
}

.item-quantity {
  display: flex;              /* 子要素を横並びにする（flexbox） */
  align-items: center;        /* 縦方向の中央揃え（高さが違っても揃う） */
  gap: 8px;                   /* 子要素間のすき間を8pxにする */
  margin: 8px 0;              /* 上下に8pxの余白をつける（左右は0） */
}

.item-quantity input[type="number"] {
  width: 50px;
  padding: 4px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.update-btn,
.delete-btn {
  padding: 4px 10px;
  font-size: 13px;
  background-color: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
}
.item-variation {
  font-size: 12px;
  color: #444;
  margin-bottom: 6px;
}

/* カート内の商品数表示のスタイル */
.cart-count {
  font-size: 13px;
  margin-bottom: 10px;
  color: #333;
}

/* カートの合計金額表示のスタイル */
.cart-summary {
  background-color: #F2EEE3;
  padding: 16px;
  margin-top: 20px;
  border-radius: 6px;
  font-family: "Yu Gothic", sans-serif;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.summary-table td {
  padding: 6px 8px;
  font-size: 14px;
  color: #333;
}

.summary-table td:first-child {
  text-align: left;
  width: 50%;
}

.summary-table td:last-child {
  text-align: right;
  font-weight: bold;
}

.summary-comment p {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
  line-height: 1.4;
  text-align: center;  /* ← これが中央揃え */
}

/* カートアクションボタンのスタイル */
.cart-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.action-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f5f5f5;
  border: 2px solid #ccc;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.action-button:hover {
  background-color: #e3f2e7;
  border-color: #a0c8b0;
}

/* 購入手続きへボタン */
.checkout-button {
  background-color: #d0576b;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 auto;           /* 左右中央揃え */
  margin-top: 10px;         /* ボタン自体の上余白（必要なら） */
  display: block;           /* ブロック要素にすることで中央揃え可能に */
  text-align: center;      /* テキストを中央揃え */
  width: 50%; /* ← 横幅を明示的に指定（元が約120pxなら2倍） */
  }
.checkout-button:hover {
  background-color: #9e3c4c;
}

/* 買い物を続けるボタン */
.link-bar {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}
.nav-link {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 6px 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #ccc;
  transition: background-color 0.2s;
}
.nav-link:hover {
  background-color: #e0e0e0;
}

/* 閉じるボタン */
#close-button-area button {
  background-color: #f5f5f5;
  color: #333;
  padding: 12px 12px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  display: block;           /* ブロック要素にすることで中央揃え可能に */
  margin: 0 auto;           /* 左右中央揃え */
  margin-top: 20px;         /* ボタン自体の上余白（必要なら） */
}
#close-button-area button:hover {
  background-color: #AAAAAA;
}

/* 内容確認フォームのスタイル- */
.cart-summary-confirm {
  background-color: #F2EEE3;
  font-size: 14px;
  padding: 16px;
  margin-top: 20px;
  border-radius: 6px;
  font-family: "Yu Gothic", sans-serif;
  line-height: 1.0; /* 行間を狭く */

  /*background-color: #F2EEE3;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 8px;
  max-width: 90%;
  margin-top: 2em;*/
}
/* 情報表示のラベルと値のスタイル */
.info-row {
  display: flex;
  margin-bottom: 10px;
}
.label {
  width: 120px; /* ラベル幅を固定 */
  text-indent: 1em; /* 1文字分のインデント */ 
}  
.value {
  flex: 1;
}


.form-group {
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.3em;
  color: #333;
}
.form-group input {
  width: 90%;
  max-width: 600px;
  padding: 0.5em;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* 郵便番号入力欄とボタンのスタイル */
.zipcode-group {
  margin-bottom: 16px;
}
.zipcode-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.3em;
  color: #333;
}
.zipcode-input-wrapper {
  display: flex;
  gap: 8px; /* 入力欄とボタンの間に余白 */
  align-items: center;
}
.zipcode-input-wrapper input[type="text"] {
  width: 30%;
  max-width: 600px;
  padding: 0.5em;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.zipcode-input-wrapper input::placeholder {
  color: rgba(0, 0, 0, 0.2); /* 黒を30%の濃さで表示 */
}
.zipcode-input-wrapper button {
  padding: 8px 12px;
  font-size: 14px;
  background-color: #d0576b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.zipcode-input-wrapper button:hover {
  background-color: #9e3c4c;
}

/* アコーディオンメニューのスタイル */
.accordion-toggle {
  background-color: #F2EEE3;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 8px;
  max-width: 90%;
  margin-top: 2em;

  border: 1px solid #F2EEE3;
  cursor: pointer;
  text-align: left;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 0; /* 下の余白をなくすことで密着させる */
}
.accordion-content {
  margin-bottom: 1em;
  flex-direction: column;
  align-items: flex-start;

  background-color: #ececec;
  display: none;
  margin-top: 1em;
  border-top: none; /* ボタンと一体化させる */
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 1em;
  max-width: 90%;
}
.accordion-toggle:hover {
  background-color: #ececec;
}

/* 支払い方法セクションのスタイル */
.payment-option {
  margin-top: 1em; /* 1em ≒ 全角1行分の余白 */
}

/* 支払い方法の詳細説明のスタイル */
.payment-details {
  padding: 8px;
  margin-top: 12px;
  border-left: 4px solid #c2a36b;
  font-size: 14px;
  line-height: 1.04; /* 行間をやや詰める */
}
.payment-details ul {
  margin: 8px 0;
  padding-left: 20px;
}



/* レスポンシブデザイン: 画面幅が600px以下の場合、画像サイズを小さくする */
@media (max-width: 600px) {
  .cart-item img {
    width: 80px;
  }
}
