/* ---- order simulation ---- */
.order-page { padding-bottom: 4rem; }

.order-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
}
.order-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  color: var(--ink-soft);
}
.order-h1 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  margin: 1rem 0 1.6rem;
}
.order-lead {
  font-size: 14px;
  line-height: 2.2;
  color: var(--ink-soft);
}

.builder {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
}

.builder-preview { height: 100%; }
.preview-sticky {
  position: sticky;
  top: 90px;
}
.preview-frame {
  aspect-ratio: 1 / 1;
  background: #f4f2ef;
  overflow: hidden;
}
.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}
.preview-caption {
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-top: 0.9rem;
}
.preview-note {
  font-size: 11px;
  line-height: 1.9;
  color: #8a8a8a;
  margin-top: 0.5rem;
}

/* ---- controls ---- */
.ctrl {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
}
.ctrl:first-child { border-top: none; padding-top: 0; }
.ctrl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.ctrl-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}
.ctrl-value {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: right;
}
.ctrl-note {
  font-size: 12px;
  line-height: 1.9;
  color: #8a8a8a;
  margin-bottom: 0.9rem;
}
.ctrl-desc {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-top: 0.8rem;
  min-height: 1.2em;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.swatch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--gothic);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.swatch:hover { border-color: #b5b5b5; }
.swatch.is-active {
  border-color: var(--ink);
  color: var(--ink);
}
.swatch-chip {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.swatch-chip.is-none {
  background: repeating-linear-gradient(45deg, #fff, #fff 3px, #ddd 3px, #ddd 6px);
}

.size-field {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  max-width: 200px;
}
.size-field input {
  flex: 1;
  font-family: var(--gothic);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.6rem 0.1rem;
}
.size-field input:focus { outline: none; border-bottom-color: var(--ink); }
.size-field span { font-size: 13px; color: var(--ink-soft); }

/* ---- spec ---- */
.spec {
  max-width: 720px;
  margin: 4.5rem auto 0;
  padding: 3rem 1.5rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.spec-title {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.4em;
  margin-right: -0.4em;
  margin-bottom: 2rem;
}
.spec-list {
  text-align: left;
  border-top: 1px solid var(--line);
}
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.2rem;
}
.spec-list dt {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.spec-list dd { font-size: 14px; }

.spec-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.4rem 0.2rem 0.4rem;
}
.spec-price-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}
.spec-price-value {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.06em;
}
.spec-price-note {
  font-size: 11px;
  line-height: 1.9;
  color: #8a8a8a;
  text-align: left;
  margin-bottom: 2.4rem;
}

.spec-flow {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-bottom: 2.4rem;
  text-align: left;
}
.spec-flow ol { list-style: none; counter-reset: none; }
.spec-flow li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  padding: 0.4rem 0;
}
.spec-flow li span {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  flex-shrink: 0;
}

.spec-cta {
  width: 100%;
  font-family: var(--gothic);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  color: #ffffff;
  background: var(--band);
  border: 1px solid var(--band);
  padding: 1.05rem 1rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.spec-cta:hover { opacity: 0.75; }
.spec-cta-note {
  font-size: 11px;
  line-height: 1.9;
  color: #8a8a8a;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; gap: 2.4rem; }
  .preview-sticky { position: static; }
}

@media (max-width: 640px) {
  .order-intro { padding: 3rem 1.2rem 2rem; }
  .builder { padding: 0 1.2rem; }
  .spec { padding: 2.5rem 1.2rem 0; }
  .spec-list > div { flex-direction: column; gap: 0.2rem; }
}

/* ---- steps ---- */
.steps {
  max-width: 1160px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2.6rem;
  list-style: none;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #b5b5b5;
  cursor: pointer;
  transition: color 0.3s ease;
}
.step span {
  font-family: var(--serif);
  font-size: 13px;
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border: 1px solid var(--line);
  color: #b5b5b5;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.step.is-done { color: var(--ink-soft); }
.step.is-done span { border-color: var(--ink-soft); color: var(--ink-soft); }
.step.is-current { color: var(--ink); }
.step.is-current span {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.panel[hidden] { display: none; }
.panel { animation: fadeUp 0.5s ease both; }

.panel-actions {
  max-width: 1160px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-ghost,
.btn-solid {
  font-family: var(--gothic);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.btn-ghost {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-solid {
  background: var(--band);
  border: 1px solid var(--band);
  color: #ffffff;
}
.btn-solid:hover { opacity: 0.75; }

/* ---- step1: 商品選択 ---- */
.product-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.6rem 1.8rem;
}
.pcard {
  display: block;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--gothic);
}
.pcard figure {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 1rem;
}
.pcard figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.7s ease;
}
.pcard:hover figure img { transform: scale(1.04); }
.pcard-cat {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #a5a5a5;
  margin-bottom: 0.3rem;
}
.pcard-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.pcard-price {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

/* ---- step3: 確認 ---- */
.confirm {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.confirm-img {
  aspect-ratio: 1 / 1;
  background: #f4f2ef;
  overflow: hidden;
  margin-bottom: 2.4rem;
}
.confirm-img img { width: 100%; height: 100%; object-fit: cover; }
.confirm-note-field { text-align: left; margin: 1.6rem 0 0; }
.confirm-note-field textarea {
  width: 100%;
  font-family: var(--gothic);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem;
  resize: vertical;
}
.confirm-note-field textarea:focus { outline: none; border-color: var(--ink); }
.confirm .spec-list { margin-top: 0; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.2rem; }
  .steps { gap: 1.2rem; font-size: 12px; }
}

@media (max-width: 640px) {
  .steps { gap: 0.8rem; padding: 0 1rem; }
  .step { font-size: 11px; letter-spacing: 0.08em; gap: 0.4rem; }
  .step span { width: 22px; height: 22px; line-height: 20px; font-size: 11px; }
  .product-grid { padding: 0 1.2rem; }
  .confirm { padding: 0 1.2rem; }
}

/* その他の色は見本を出せないので、多色のチップで示す */
.swatch-chip.is-other {
  background: conic-gradient(#1c1c1c, #3f2a1b, #8e2230, #3aa6b9, #d8b483, #1c1c1c);
}

/* 「その他の色」を選んだときだけ出す入力欄 */
.other-field { display: none; margin-top: 0.9rem; }
.other-field.is-open { display: block; }
.other-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.other-field input {
  width: 100%;
  max-width: 320px;
  font-family: var(--gothic);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.5rem 0.1rem;
}
.other-field input:focus { outline: none; border-bottom-color: var(--ink); }
.other-fee {
  font-size: 12px;
  color: var(--ink);
  margin-top: 0.5rem;
}

/* 決済リンクが入っている商品にだけ出る購入ボタン */
.spec-buy[hidden] { display: none; }
.spec-buy {
  display: block;
  width: 100%;
  font-family: var(--gothic);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-align: center;
  color: #ffffff;
  background: var(--band);
  border: 1px solid var(--band);
  padding: 1.05rem 1rem;
  transition: opacity 0.3s ease;
}
.spec-buy:hover { opacity: 0.75; }
.spec-buy-note[hidden] { display: none; }
.spec-buy-note {
  font-size: 11px;
  line-height: 1.9;
  color: #8a8a8a;
  margin: 1rem 0 2rem;
}
/* 購入ボタンが出ているときは、相談ボタンを控えめにする */
.spec-buy:not([hidden]) ~ .spec-cta {
  color: var(--ink);
  background: none;
  border-color: var(--line);
}

/* DMへの送り方。読み飛ばされると仕様書が届かないので、はっきり出す */
.dm-guide {
  border: 1px solid var(--ink);
  padding: 1.2rem 1.3rem;
  margin: 0 0 1.2rem;
  text-align: left;
}
.dm-guide-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  margin-bottom: 0.9rem;
}
.dm-guide-steps { list-style: none; }
.dm-guide-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 13.5px;
  line-height: 1.9;
  padding: 0.25rem 0;
}
.dm-guide-steps li span {
  font-family: var(--serif);
  font-size: 12px;
  color: #ffffff;
  background: var(--ink);
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  flex-shrink: 0;
}
.dm-guide-steps strong { font-weight: 500; border-bottom: 1px solid var(--ink); }

/* プレビューにステッチの色を出す。糸の色は写真では変わらないので、
   選んだ色をチップで明示して仕様の取り違えを防ぐ。 */
.preview-stitch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6a6a6a;
  margin-top: 0.55rem;
}
.preview-stitch.is-center { justify-content: center; margin-top: 1rem; }
.preview-stitch .stitch-chip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex: none;
}
.preview-stitch .stitch-chip.is-other {
  background: conic-gradient(#1c1c1c, #e6dcc8, #3aa6b9, #3f2a1b, #1c1c1c);
}
