/* オーダーメイドセクション（Figma Design4より・全幅・背景色） */
.l-order {
  background-color: var(--color-bg-cream);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

/* セクションヘッダー */
.l-order .p-section-header {
  padding-top: 80px;
}

/* セクションサブテキスト */
.p-order__sub {
  font-family: var(--font-sans-jp);
  font-size: 14px;
  color: var(--color-text-gray);
  margin-top: 8px;
}

/* 3カラム全体ラッパー（bg-wrapのabsolute基準） */
.p-order__columns {
  position: relative;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
  margin-top: 24px;
  z-index: 1;
}

/* 背景画像（カードと独立してabsolute配置） */
.p-order__bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: -16px;
  width: auto;
  max-width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.p-order__bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* left-wrapはレイアウトに影響しない（削除代替） */
.p-order__left-wrap {
  display: contents;
}

/* 選べる内容（height固定） */
.p-order__select {
  width: 219px;
  height: 325px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* オーダーの流れ（height固定） */
.p-order__flow {
  width: 450px;
  height: 561px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* PRICEカード */
.p-order__price {
  width: 380px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 価格カラムラッパー（CTAボタンとpriceを縦並び） */
.p-order__price-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* CTAボタンエリア */
.p-order__cta {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* フローアイコン（各ステップの絵アイコン） */
.p-order__flow-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-gold);
}

/* ボックス内タイトル（Figma: Noto Serif JP Medium 18px） */
.p-order__box-title {
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-dark);
  white-space: nowrap;
}

/* タイトル下のセパレーター（Figma: #e8e4de, 1px） */
.p-order__divider {
  height: 1px;
  background-color: var(--color-border);
  width: 100%;
  flex-shrink: 0;
}

/* 選択項目リスト */
.p-order__select-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 各選択項目（Figma: flex gap-10px items-center） */
.p-order__select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans-jp);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-gray);
}

/* 丸ドット（Figma: 6px 丸、ゴールド） */
.p-order__select-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-gold);
  flex-shrink: 0;
}

/* フローアイテムリスト（Figma: flex-col gap-8px） */
.p-order__flow-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

/* フローアイテム（Figma: flex gap-8px items-center py-8px） */
.p-order__flow-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  width: 100%;
}

/* ステップ番号（Figma: 32px 丸形・背景なし・数字のみブランドカラー） */
.p-order__flow-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans-jp);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-brand);
  flex-shrink: 0;
}

/* 矢印（Figma: 28px アイコン、下向き） */
.p-order__flow-arrow {
  color: var(--color-border);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  width: 28px;
}

/* フローコンテンツ（タイトル + 区切り + テキスト） */
.p-order__flow-content {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  flex: 1;
  overflow: hidden;
}

/* フロータイトル（Figma: Noto Serif JP Medium 18px, w-96px） */
.p-order__flow-title {
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-dark);
  width: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
  line-height: 1.4;
}

/* 縦区切り線（Figma: #e5e0d8, 2px, h-32px） */
.p-order__flow-sep {
  width: 2px;
  height: 32px;
  background-color: #E5E0D8;
  flex-shrink: 0;
  align-self: center;
}

/* フロー本文（Figma: Noto Sans JP Regular 14px, #666） */
.p-order__flow-text {
  font-family: var(--font-sans-jp);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-gray);
  line-height: 1.6;
  padding-left: 4px;
  flex: 1;
  min-width: 0;
}

/* 価格タイトル（Figma: Cormorant Garamond Medium 18px ls 0.9px） */
.p-order__price-title {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-dark);
  letter-spacing: 0.9px;
}

/* 価格行（Figma: flex justify-between items-start） */
.p-order__price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 332px;
}

/* 価格名称（Figma: Noto Sans JP Regular 13px #1a1a1a） */
.p-order__price-name {
  font-family: var(--font-sans-jp);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-dark);
  flex: 1;
  line-height: 1.5;
}

/* 価格金額カラム */
.p-order__price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

/* 金額（Figma: Noto Sans JP Medium 14px, #1144AA） */
.p-order__price-amount {
  font-family: var(--font-sans-jp);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-brand);
  white-space: nowrap;
  text-align: right;
}

/* 通常価格（Figma: line-through, #999, 12px） */
.p-order__price-original {
  font-family: var(--font-sans-jp);
  font-weight: 400;
  font-size: 12px;
  color: var(--color-text-light);
  text-decoration: line-through;
  white-space: nowrap;
}

/* 注記テキスト（Figma: 11px, #999） */
.p-order__note {
  font-family: var(--font-sans-jp);
  font-size: 11px;
  color: var(--color-text-light);
  line-height: 1.8;
  width: 332px;
}

/* 区切り装飾 */
.p-order__separator {
  width: 330px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 14px;
  letter-spacing: 6px;
}

/* 装飾要素 */
.p-order__deco {
  position: absolute;
  right: 0;
  top: 20px;
  width: 57px;
  height: 56px;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* 3カラムを縦積みに変更（p-order__columnsが横並びコンテナ） */
  .p-order__columns {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }
  /* 各カードを全幅に（.p-order__colは存在しないため個別指定） */
  .p-order__select,
  .p-order__flow,
  .p-order__price {
    width: 100%;
    height: auto;
  }
  /* 価格行を中央寄せ */
  .p-order__price-row {
    margin-left: auto;
    margin-right: auto;
  }
  /* 注記テキストを中央寄せ */
  .p-order__note {
    margin-left: auto;
    margin-right: auto;
  }
  /* セパレーターを全幅に */
  .p-order__separator {
    width: 100%;
  }
}

@media (max-width: 767px) {
  /* セクションヘッダーpadding-top統一 */
  .l-order .p-section-header {
    padding-top: 48px;
  }
  /* SP時の下余白を縮小 */
  .l-order {
    padding-bottom: 24px;
  }
  /* 背景布地写真はSP時も非表示 */
  .p-order__bg-wrap {
    display: none;
  }
  .l-order .l-inner {
    padding-top: 40px;
    padding-bottom: 24px;
    padding-left: 20px;
    padding-right: 20px;
  }
  /* 3カラム→縦積み */
  .p-order__columns {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .p-order__select,
  .p-order__flow,
  .p-order__price {
    width: 100%;
    height: auto;
  }
  .p-order__price-row {
    width: 100%;
  }
  .p-order__note {
    width: 100%;
  }
  /* セパレーターのはみ出し修正 */
  .p-order__separator {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
}
