/* =========================================================
   HP作成依頼ページ（order.html）専用のスタイル
   共通の色・ボタンは style.css を使っています
   ========================================================= */
.order-page { background: var(--ivory); }
.back-link { font-size: 14px; color: var(--gray); }
.back-link:hover { color: var(--gold); }

.order-main { max-width: 860px; margin: 0 auto; padding: 50px 6% 100px; }

/* 進み具合（1 → 2 → 3） */
.order-steps { list-style: none; padding: 0; margin: 0 0 40px; display: flex; gap: 8px; }
.order-steps li {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; border: 1px solid #dcddd3; padding: 10px 6px; font-size: 13px; font-weight: 700; color: #9a9e94;
}
.order-steps span { width: 22px; height: 22px; border-radius: 50%; background: #dcddd3; color: #fff; display: grid; place-items: center; font: 700 12px "DM Sans", sans-serif; }
.order-steps .is-current { border-color: var(--green); color: var(--green); }
.order-steps .is-current span { background: var(--green); }
.order-steps .is-done { color: var(--green-2); }
.order-steps .is-done span { background: var(--gold); }

.order-intro { text-align: center; margin-bottom: 36px; }
.order-intro h1 { font-size: clamp(28px, 4vw, 40px); color: var(--green); margin: 0 0 14px; }
.order-intro p { margin: 0 0 10px; color: var(--gray); }
.order-intro strong { color: var(--green); }
.order-note { font-size: 13px; }

/* 入力カード */
.o-card { background: #fff; border: 1px solid #e3e3da; padding: 34px 36px; margin-bottom: 24px; }
.o-title { display: flex; align-items: center; gap: 12px; font-size: 20px; color: var(--green); margin: 0 0 22px; }
.o-title span { width: 32px; height: 32px; background: var(--green); color: #fff; display: grid; place-items: center; font: 700 15px "DM Sans", sans-serif; }
.o-lead, .o-hint { font-size: 13px; color: var(--gray); margin: -10px 0 18px; }
.o-hint { margin: 0 0 12px; }
.o-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* 入力欄（style.css の .form-row を流用し、少し調整） */
.order-form .form-row { margin-bottom: 18px; }
.order-form .form-row label small { font-size: 11px; background: #a2a79c; color: #fff; padding: 2px 8px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; font-weight: 500; }
.order-form input[type="file"] { padding: 10px; background: #fafaf6; cursor: pointer; }
.order-form .is-invalid { outline: 2px solid #b4573f; border-color: transparent; }

/* パーツ（チェックで開く） */
.part { border: 1px solid #dcddd3; border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.part-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; background: #fafaf6; }
.part-head input { position: absolute; opacity: 0; pointer-events: none; }
.part-head i { flex: none; width: 24px; height: 24px; border-radius: 4px; border: 2px solid #c3c6ba; background: #fff; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 14px; }
.part-head .no { font: 700 18px "DM Sans", sans-serif; color: #a9ad9f; }
.part-head b { font-size: 16px; }
.part-head small { font-size: 12px; color: #858b81; margin-left: auto; }
.part.is-on { border-color: var(--green-2); }
.part.is-on .part-head { background: #eaf0f9; }
.part.is-on .part-head i { background: var(--green-2); border-color: var(--green-2); }
.part.is-on .part-head i::after { content: "✓"; }
.part.is-on .part-head .no { color: var(--gold); }
.part-head input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.part-body { padding: 20px 18px 6px; border-top: 1px solid #e3e3da; }

/* 選んだ写真のプレビュー */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; border: 1px solid #e3e3da; }

.o-error { color: #b4573f; font-weight: 700; font-size: 14px; margin: 10px 0 0; }

.agree { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-top: 8px; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--green); }
.agree a { color: var(--green-2); text-decoration: underline; }

.o-submit { text-align: center; margin-top: 36px; }
.o-submit .cv-button { display: flex; margin: 0 auto; }
.o-submit .cv-button[disabled] { opacity: .6; cursor: wait; transform: none; }

/* スマホ */
@media (max-width: 700px) {
  .order-main { padding: 30px 5% 70px; }
  .order-steps li { flex-direction: column; font-size: 11px; gap: 4px; }
  .o-card { padding: 24px 16px; }
  .o-grid { grid-template-columns: 1fr; }
  .part-head { padding: 12px 12px; gap: 10px; }
  .part-head small { display: none; }
  .part-body { padding: 18px 12px 4px; }
  .footer { padding-bottom: 24px; }
}

/* 規約・完了ページ */
.legal h1 { font-size: 26px; color: var(--green); margin: 0 0 16px; }
.legal h2 { font-size: 17px; color: var(--green); margin: 28px 0 8px; }
.legal p { margin: 0 0 12px; }
.draft { display: inline-block; background: #fff4e0; color: #9a5b00; font-weight: 700; font-size: 13px; padding: 4px 10px; margin-bottom: 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { border: 1px solid #e3e3da; padding: 12px 14px; text-align: left; vertical-align: top; }
.legal-table th { width: 30%; background: var(--ivory); color: var(--green); }
.legal-table small { color: #8b9087; }
.thanks { text-align: center; }
.thanks .cv-button { margin-top: 20px; }
.footer a { color: inherit; }
.footer a:hover { color: #fff; }
@media (max-width: 700px) { .legal-table th { width: 38%; } }

/* お支払い登録ページ */
.pay-table td { word-break: break-all; }
.pay-plan { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--ivory); padding: 20px 22px; border-left: 4px solid var(--green); }
.pay-name { font-size: 18px; font-weight: 700; color: var(--green); margin: 0; }
.pay-desc { font-size: 13px; color: var(--gray); margin: 4px 0 0; }
.pay-price { white-space: nowrap; color: var(--green); }
.pay-price b { font: 700 34px "DM Sans", sans-serif; }
.pay-price small { font-size: 13px; }
.pay-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.pay-points li { display: flex; gap: 14px; font-size: 15px; padding-bottom: 10px; border-bottom: 1px dashed #e3e3da; }
.pay-points b { flex: none; width: 130px; color: var(--green); font-size: 14px; }
.pay-secure { font-size: 13px; color: var(--gray); margin: 16px 0 0; }
@media (max-width: 700px) {
  .pay-plan { flex-direction: column; align-items: flex-start; }
  .pay-points li { flex-direction: column; gap: 2px; }
  .pay-points b { width: auto; }
}
