/* ─── OSP Variables ─── */
:root {
  --osp-greige:  #c8b9a8;
  --osp-warm-bg: #f5f0ea;
  --osp-brown:   #6b4f3a;
  --osp-dark:    #2c2118;
  --osp-gold:    #a08060;
  --osp-light:   #ede6dc;
  --osp-text:    #3d2e22;
  --osp-muted:   #8c7b6e;
  --osp-border:  #d5c9bc;
  --osp-white:   #faf7f3;
}

/* ─── セクションヘッダー ─── */
.osp-order-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--osp-border); }
.osp-section-header { text-align: center; margin-bottom: 48px; }
.osp-section-eyebrow { font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--osp-gold); margin-bottom: 12px; }
.osp-section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; font-weight: 300; color: var(--osp-dark); }

/* ─── グリッド ─── */
.osp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ─── オプション選択 ─── */
.osp-options-panel { background: var(--osp-white); border: 1px solid var(--osp-border); padding: 32px; }
.osp-options-panel h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 400; color: var(--osp-dark); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--osp-border); }
.osp-opt-group { margin-bottom: 20px; }
.osp-opt-group-label { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--osp-gold); margin-bottom: 10px; }
.osp-opt-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(213,201,188,0.5); }
.osp-opt-item:last-child { border-bottom: none; }
.osp-opt-item label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--osp-text); flex: 1; }
.osp-opt-item input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1px solid var(--osp-border); background: var(--osp-warm-bg); cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.osp-opt-item input[type=checkbox]:checked { background: var(--osp-brown); border-color: var(--osp-brown); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.osp-opt-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 14px; color: var(--osp-muted); white-space: nowrap; }

/* ─── 価格表示 ─── */
.osp-price-panel { display: flex; flex-direction: column; gap: 24px; }
.osp-price-display { background: var(--osp-dark); color: var(--osp-white); padding: 32px; }
.osp-eyebrow { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--osp-greige); margin-bottom: 20px; }
.osp-price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: rgba(255,255,255,0.5); }
.osp-price-row span:last-child { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 16px; color: rgba(255,255,255,0.7); }
.osp-price-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; margin-top: 4px; }
.osp-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--osp-greige); }
.osp-amount { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 36px; font-weight: 300; color: var(--osp-white); }

/* ─── お客様情報フォーム ─── */
.osp-customer-form { background: var(--osp-white); border: 1px solid var(--osp-border); padding: 32px; }
.osp-customer-form h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 400; color: var(--osp-dark); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--osp-border); }
.osp-field { margin-bottom: 20px; }
.osp-field label { display: block; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--osp-gold); margin-bottom: 8px; }
.osp-required { color: #c0392b; }
.osp-field input, .osp-field select, .osp-field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--osp-border); background: var(--osp-warm-bg); font-size: 13px; color: var(--osp-dark); outline: none; transition: border-color 0.2s; appearance: none; -webkit-appearance: none; box-sizing: border-box; }
.osp-field input:focus, .osp-field select:focus, .osp-field textarea:focus { border-color: var(--osp-gold); background: var(--osp-white); }
.osp-field textarea { height: 80px; resize: none; }
.osp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ─── 支払い切り替え ─── */
.osp-deco-line { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.osp-deco-line::before, .osp-deco-line::after { content: ''; flex: 1; height: 1px; background: var(--osp-border); }
.osp-deco-line span { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; color: var(--osp-gold); font-style: italic; }
.osp-payment-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--osp-border); margin-bottom: 20px; }
.osp-pay-btn { padding: 14px; text-align: center; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; color: var(--osp-muted); background: var(--osp-warm-bg); border: none; transition: all 0.2s; }
.osp-pay-btn.active { background: var(--osp-dark); color: var(--osp-white); }
.osp-bank-info { background: var(--osp-light); border: 1px solid var(--osp-border); padding: 20px; font-size: 12px; line-height: 2; color: var(--osp-muted); display: none; margin-bottom: 20px; }
.osp-bank-info.show { display: block; }

/* Square カード入力欄 */
#card-container { margin-bottom: 20px; min-height: 89px; }
#osp-card-container { margin-bottom: 20px; }

/* ─── 送信ボタン ─── */
.osp-submit-btn { width: 100%; padding: 18px; background: var(--osp-brown); color: var(--osp-white); border: none; font-size: 11px; letter-spacing: 5px; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.osp-submit-btn:hover { background: var(--osp-dark); }
.osp-submit-btn:disabled { background: var(--osp-muted); cursor: not-allowed; }
.osp-note { font-size: 11px; color: var(--osp-muted); text-align: center; margin-top: 12px; letter-spacing: 0.5px; line-height: 1.8; }

/* ─── メッセージ ─── */
.osp-error-msg { background: #fdf0f0; border: 1px solid #f5c6cb; color: #721c24; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.osp-success-msg { background: #f0fdf4; border: 1px solid #86efac; color: #166534; padding: 16px; font-size: 13px; margin-bottom: 16px; line-height: 1.8; }

/* ─── スマホ固定価格バー ─── */
.osp-sticky-bar {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  background: var(--osp-dark);
  color: var(--osp-white);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: bottom 0.3s ease;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.osp-sticky-bar.show { bottom: 0; }
.osp-sticky-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--osp-greige); }
.osp-sticky-amount { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 300; }

/* ─── レスポンシブ ─── */
@media (max-width: 768px) {
  .osp-form-grid { grid-template-columns: 1fr; }
  .osp-field-row { grid-template-columns: 1fr; }
  .osp-section-title { font-size: 24px; }
}
