/* How to Order Page */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 単体ページ(共通レイアウト外)なので、ブラウザ既定の body 余白 8px で背景の
   左右に白い隙間が出て、フッターも既定の明朝体になっていた */
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
}

.hto-page {
  min-height: 100vh;
  background: #eef0f5;
  padding: 40px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1d2e;
}

.hto-container {
  max-width: 680px;
  margin: 0 auto;
}

/* ---- Header ---- */
.hto-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.hto-header-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: #4267f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hto-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1d2e;
  line-height: 1.3;
  margin: 0 0 4px;
}

.hto-header p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* ---- Steps ---- */
.hto-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hto-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e5ee;
}

.hto-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #f0f2f7;
  color: #6b7280;
}

.hto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hto-dot--blue   { background: #4267f6; }
.hto-dot--amber  { background: #f59e0b; }
.hto-dot--green  { background: #10b981; }
.hto-dot--purple { background: #8b5cf6; }
.hto-dot--red    { background: #ef4444; }

.hto-step-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}

.hto-card-body {
  padding: 16px 20px;
}

.hto-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hto-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.hto-badge--blue   { background: #4267f6; }
.hto-badge--amber  { background: #f59e0b; }
.hto-badge--green  { background: #10b981; }
.hto-badge--purple { background: #8b5cf6; }
.hto-badge--red    { background: #ef4444; }

.hto-step-content {
  flex: 1;
  min-width: 0;
}

.hto-step-content h2 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1d2e;
  margin: 0 0 4px;
  line-height: 1.4;
}

.hto-step-content p {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* ---- Link ---- */
.hto-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  background: #eef1fe;
  color: #4267f6;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
  max-width: 100%;
  word-break: break-all;
  box-sizing: border-box;
}

.hto-link:hover {
  opacity: 0.8;
}

/* ---- Chips (payments & carriers) ---- */
.hto-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* 名前列を固定幅にして、PayPal / Wise の説明文の開始位置を揃える */
.hto-chip {
  display: grid;
  grid-template-columns: 8px 4em 1fr;
  align-items: start;
  column-gap: 8px;
  padding: 6px 12px;
  background: #f8f9fc;
  border: 1px solid #e2e5ee;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

/* 1 行目の文字の中央に合わせる（(line-height 21px - 8px) / 2） */
.hto-chip-dot {
  width: 8px;
  height: 8px;
  margin-top: 6.5px;
  border-radius: 50%;
}

.hto-chip-dot--wise   { background: #10b981; }
.hto-chip-dot--paypal { background: #003087; }
.hto-chip-dot--card   { background: #334155; }

.hto-chip-name {
  font-weight: 600;
  color: #1a1d2e;
}

.hto-chip-note {
  color: #6b7280;
}

.hto-carrier {
  display: inline-block;
  padding: 4px 10px;
  background: #f8f9fc;
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

/* ---- Notice bar ---- */
.hto-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  background: #eef1fe;
  border: 1px solid #c7d2fc;
  border-radius: 12px;
  font-size: 14px;
  color: #4267f6;
  line-height: 1.6;
}

.hto-notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Footer (reuse invoice footer styles) ---- */
.inv-footer-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.inv-footer-minimal a {
  color: #64748b;
  text-decoration: none;
}

.inv-footer-minimal a:hover {
  text-decoration: underline;
}

.inv-footer-copy {
  width: 100%;
  text-align: center;
}

@media (min-width: 640px) {
  .inv-footer-copy {
    width: auto;
  }
}

/* ---- Two ways to order (2026-10): website first, DM second ---- */
.hto-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.hto-switch-link {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c7d2fc;
  background: #fff;
  color: #4267f6;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hto-switch-link--primary {
  background: #4267f6;
  border-color: #4267f6;
  color: #fff;
}

.hto-section {
  margin-bottom: 36px;
  scroll-margin-top: 16px;
}

.hto-section-head {
  margin-bottom: 14px;
}

.hto-section-head h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1d2e;
  margin: 0 0 4px;
}

.hto-section-head p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.hto-step-content a:not(.hto-link),
.hto-notice a {
  color: inherit;
  text-decoration: underline;
}
