/* WEB集客診断（sub-sim.css の後に読む）
   質問カード・結果・フォームの土台は料金シミュレーターと共通。ここでは数字の入力と結果の中身だけ足す。 */

.sim-intro .sd-label { display: inline-block; margin: 0 auto; padding: 4px 12px; background: var(--ink); color: var(--white); border-radius: 2px; font-size: var(--fs-xs); font-weight: 700; }
.sim-intro h1 { margin-top: 16px; }
.sim-intro p { max-width: 40em; }
.sd-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.sd-points li { padding: 6px 14px; background: var(--paper); border-radius: 16px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }

/* 数字の入力 */
.sd-input, .sd-ratio { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; }
.sd-ratio { margin-top: 16px; }
.sd-input-pre { width: 100%; text-align: center; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.sd-input input { width: 200px; min-height: 60px; padding: 8px 16px; border: 1px solid #b5b5b3; border-radius: var(--radius); font: inherit; font-family: var(--font-en); font-size: 1.75rem; font-weight: 700; text-align: right; color: var(--ink); }
.sd-input input:focus { outline: none; border-color: var(--ink); }
.sd-unit { font-size: var(--fs-l); font-weight: 600; }
.sd-ratio-btn { min-width: 88px; min-height: 48px; padding: 0 16px; border: 1px solid #b5b5b3; border-radius: var(--radius); background: var(--white); font: inherit; font-size: var(--fs-s); font-weight: 600; color: var(--ink); cursor: pointer; }
.sd-ratio-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (hover: hover) { .sd-ratio-btn:hover { border-color: var(--ink); } }
.sd-msg { margin: 12px auto 0; text-align: center; font-size: var(--fs-xs); color: #b3261e; }
.sd-msg:empty { display: none; }
.sd-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.sd-next-btn { min-width: 240px; border: 0; cursor: pointer; }
.sd-unknown { padding: 8px; border: 0; background: none; font: inherit; font-size: var(--fs-s); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* 結果 */
#r-body { display: grid; gap: 12px; max-width: 820px; margin: 28px auto 0; }
.sd-block { padding: 28px 32px; background: var(--white); border: 1px solid rgba(17, 17, 17, 0.12); border-radius: var(--radius); }
.sd-block p { max-width: none; }
.sd-block-head { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.sd-big { margin-top: 8px; font-size: var(--fs-l); font-weight: 600; line-height: 1.6; }
.sd-big b { font-weight: 700; border-bottom: 2px solid var(--ink); }
.sd-text { margin-top: 10px; font-size: var(--fs-s); color: var(--ink-2); }
.sd-text b { color: var(--ink); font-weight: 700; }
.sd-note { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.sd-flow-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 16px; }
.sd-flow-row li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
.sd-flow-row li:first-child { grid-template-columns: 0 minmax(0, 1fr); }
.sd-flow-rate { position: relative; text-align: center; font-family: var(--font-en); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); padding-bottom: 14px; }
.sd-flow-rate:not(:empty)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--ink); }
.sd-flow-rate:not(:empty)::before { content: ""; position: absolute; right: 12px; bottom: 1px; width: 7px; height: 7px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.sd-flow-box { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; background: var(--paper); border-radius: var(--radius); }
.sd-flow-box small { font-size: var(--fs-xs); color: var(--ink-2); }
.sd-flow-box b { font-family: var(--font-en); font-size: 1.75rem; font-weight: 700; line-height: 1.3; }
.sd-flow-box em { margin-left: 2px; font-family: var(--font-ja); font-size: var(--fs-s); font-style: normal; font-weight: 600; }
.sd-opts { display: grid; gap: 6px; margin-top: 12px; }
.sd-opts li { padding: 12px 16px; background: var(--paper); border-radius: var(--radius); font-size: var(--fs-s); }
.sd-opts b { font-weight: 700; }

/* 次の一歩 */
.sd-next { max-width: 820px; margin: 12px auto 0; padding: 28px 32px; background: var(--paper); border-radius: var(--radius); }
.sd-next p { max-width: none; }
.sd-next.is-qualified { background: var(--ink); color: var(--white); }
.sd-next.is-qualified .sd-text { color: #d6d6d6; }
.sd-next.is-qualified .btn-primary { background: var(--white); color: var(--ink); }
.sd-next.is-qualified .sd-slots { border-color: rgba(255, 255, 255, 0.3); }
.sd-side { margin-top: 14px; font-size: var(--fs-xs); }
.sd-next.is-qualified a:not(.btn) { color: var(--white); text-underline-offset: 4px; }
.sd-next-head { font-size: var(--fs-l); font-weight: 600; line-height: 1.6; }
.sd-next .btn { margin-top: 20px; }
.sd-next .sd-slots-sm { color: #d6d6d6; }
.sd-nosave { font-size: var(--fs-xs); color: var(--muted); }
.sim-links { max-width: 820px; margin-inline: auto; }

/* 残り枠 */
.sd-slots { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 0; margin-bottom: 40px; padding: 16px 20px; border: 1px solid var(--ink); border-radius: var(--radius); max-width: none; }
.sd-slots-label { font-size: var(--fs-xs); font-weight: 700; }
.sd-slots-num { font-size: var(--fs-l); font-weight: 700; }
.sd-slots-note { flex: 1 1 100%; font-size: var(--fs-xs); color: var(--ink-2); }
/* ボタンのそばの受付表示は、枠なしの小さな注記にする（主役はボタン） */
.sd-slots-sm { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; }
.sd-slots-sm .sd-slots-label, .sd-slots-sm .sd-slots-num { font-size: var(--fs-xs); font-weight: 600; }
.sim-form .sd-slots-sm { justify-content: center; margin: 8px auto 0; color: var(--ink-2); }
.sd-slots.is-full .sd-slots-num { color: var(--muted); }

/* 無料サイト診断の説明 */
.sd-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sd-sample { margin-top: 48px; }
.sd-sample-head { font-size: var(--fs-b); font-weight: 600; }
.sd-sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sd-sample-grid figure { margin: 0; }
.sd-sample-grid img { display: block; width: 100%; height: auto; border: 1px solid rgba(17, 17, 17, 0.12); border-radius: var(--radius); }
.sd-sample-grid figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-2); }
.sd-sample-note { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }
.sd-terms { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
.sd-terms .tile { background: var(--paper); }
.sd-more { margin-top: 12px; }
.sd-carried, .sd-full-note { margin: 10px auto 0; text-align: center; font-size: var(--fs-xs); font-weight: 600; }
.sd-prep { margin-top: 14px !important; font-size: var(--fs-xs) !important; color: var(--muted) !important; }
.sd-direct { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; grid-column: 1 / -1; }
.sd-direct[hidden] { display: none; }
.sd-privacy { margin: 18px auto 0; text-align: center; font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 640px) { .sd-direct { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .sd-sample-grid, .sd-terms, .sd-flow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sd-block, .sd-next { padding: 20px 16px; }
  .sd-flow-row { grid-template-columns: 1fr; gap: 0; }
  .sd-flow-row li, .sd-flow-row li:first-child { grid-template-columns: 1fr; }
  .sd-flow-rate { padding: 10px 0 18px; }
  .sd-flow-rate:not(:empty)::after { left: 50%; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .sd-flow-rate:not(:empty)::before { left: calc(50% - 3px); right: auto; bottom: 6px; transform: rotate(135deg); }
  .sd-flow-rate:not(:empty) { text-indent: 4.5em; }
  .sd-input input { width: 160px; }
  .sd-slots { margin-bottom: 28px; }
}
