/* このページ専用。共通ページのレイアウトには影響しません。 */
.quote-page { background:#f8fafc; }
.quote-container { max-width:1000px; }
.quote-hero-title { display:flex; justify-content:space-between; align-items:center; gap:32px; }
.quote-hero-title h1 { margin-top:12px; }
.quote-page .sheet-hero { padding-bottom:36px; }
.quote-preview-note { margin-top:18px; padding:10px 14px; background:#fff; border:1px solid var(--line); border-radius:6px; font-size:13px; color:var(--muted); }
.quote-body { padding-top:32px; padding-bottom:70px; }
.quote-progress { list-style:none; display:grid; grid-template-columns:repeat(var(--quote-step-count,6),minmax(0,1fr)); gap:8px; }
.quote-progress li { display:flex; flex-direction:column; gap:8px; align-items:center; color:#65717e; text-align:center; font-size:12px; }
.quote-progress li>span { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#e8edf2; font-family:'DM Sans',sans-serif; font-weight:800; }
.quote-progress li[aria-current] { color:var(--blue); }
.quote-progress li[aria-current]>span { background:var(--blue); color:#fff; }
.quote-progress li.is-done>span { background:#dbe8f5; color:var(--blue); }
.quote-step-status { margin:26px 0 12px; font-weight:700; color:var(--blue); font-size:14px; }
#quote-form { border:1px solid #dde3ea; border-radius:12px; background:#fff; padding:36px 40px; box-shadow:0 8px 26px #20314706; }
.quote-panel h2 { font-size:clamp(23px,2.8vw,31px); line-height:1.5; margin-top:10px; margin-bottom:12px; }
.quote-panel-lead { color:var(--muted); margin-bottom:26px; }
.quote-field { min-width:0; margin:0 0 26px; padding:0; border:0; }
.quote-label { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:10px; font-size:16px; font-weight:700; }
.quote-badge { font-size:11px; font-weight:700; color:var(--blue); background:#e9f0f8; padding:1px 7px; border-radius:4px; }
.quote-badge.is-optional { color:var(--muted); background:#f0f2f4; }
.quote-page input:not([type=radio]):not([type=checkbox]),.quote-page select,.quote-page textarea { display:block; width:100%; min-width:0; min-height:50px; font:inherit; font-size:16px; color:var(--ink); border:1px solid #b8c3ce; background:#fff; border-radius:6px; padding:12px 14px; }
.quote-page textarea { resize:vertical; line-height:1.7; }
.quote-page input[type=number] { max-width:180px; }
.quote-page input::placeholder,.quote-page textarea::placeholder { color:#697787; }
.quote-page input[aria-invalid=true],.quote-page select[aria-invalid=true],.quote-page textarea[aria-invalid=true] { border-color:#a33636; }
.quote-page input[type=radio] { width:20px; height:20px; margin:0; flex:none; accent-color:var(--blue); }
.quote-choices { display:flex; flex-wrap:wrap; gap:12px; }
.quote-choices label { min-height:52px; padding:13px 18px; display:flex; align-items:center; gap:12px; border:1px solid #bdc8d2; border-radius:6px; cursor:pointer; }
.quote-choices label:has(input:checked) { color:var(--blue); background:#eff5fc; border-color:var(--blue); box-shadow:inset 0 0 0 1px var(--blue); }
.quote-hint { color:var(--muted); font-size:14px; line-height:1.8; margin-top:10px; }
.quote-hint a { text-decoration:underline; text-underline-offset:3px; color:var(--blue); }
.quote-two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.quote-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.quote-product-card { position:relative; display:flex; flex-direction:column; gap:12px; padding:12px; border:1px solid #c4ced8; border-radius:8px; cursor:pointer; }
.quote-product-card img { width:100%; aspect-ratio:1.8; object-fit:cover; border-radius:5px; background:#f1f4f7; }
.quote-product-card>span { display:flex; align-items:center; gap:10px; font-weight:700; line-height:1.5; }
.quote-product-card:has(input:checked) { border:2px solid var(--blue); padding:11px; background:#f0f6fc; }
.quote-product-card:has(input:focus-visible) { outline:3px solid var(--orange); outline-offset:3px; }
.quote-product-card small { color:var(--muted); font-size:13px; }
.quote-product-card.is-inquiry { grid-column:1/-1; flex-direction:row; align-items:center; padding:18px; }
.quote-product-card.is-inquiry:has(input:checked) { padding:17px; }
.quote-product-link { margin:0 0 24px; }
.quote-product-link a,.quote-sample-link:not([data-save-draft]) { display:inline-flex; align-items:center; color:var(--blue); min-height:44px; font-weight:700; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.quote-sample-link[data-save-draft] { display:inline-flex; align-items:center; justify-content:space-between; gap:16px; min-height:50px; max-width:100%; padding:10px 18px; border:1px solid var(--blue); border-radius:9px; background:var(--blue-soft); color:var(--blue); font-size:15px; font-weight:700; line-height:1.6; text-decoration:none; transition:background .2s,border-color .2s; }
.quote-sample-link[data-save-draft] > span { flex:none; }
.quote-sample-link[data-save-draft]:hover { background:#dce8f5; border-color:var(--blue-deep); }
@media(max-width:640px) { .quote-sample-link[data-save-draft] { width:100%; } }
.quote-sample-result { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:-10px 0 26px; }
.quote-color-chip { display:block; width:32px; height:32px; background:#f3f5f7; border:1px solid #bac5cf; border-radius:4px; }
.quote-sample-result>span:nth-child(2) { font-size:14px; }
.quote-font-selected { max-width:400px; margin:16px 0; padding:14px; border:1px solid var(--line); border-radius:6px; }
.quote-font-selected img { max-height:120px; width:100%; object-fit:contain; margin-top:10px; }
.quote-upload-grid { display:grid; gap:0; margin-top:20px; }
.quote-upload-grid .quote-field { background:#f8fafc; border:1px solid #e2e7ed; border-radius:8px; padding:18px; margin-bottom:14px; }
.quote-page input[type=file] { padding:8px; background:#fff; font-size:14px; }
.quote-page input[type=file]::file-selector-button { font:inherit; padding:10px 14px; margin-right:10px; border:1px solid #bfcbd8; border-radius:5px; background:#eef4fa; color:var(--blue); cursor:pointer; }
.quote-file-name { font-size:13px; margin-top:8px; overflow-wrap:anywhere; color:var(--muted); }
.quote-subheading { font-size:19px; margin:20px 0 10px; }
.quote-mii { display:flex; align-items:center; gap:16px; margin:22px 0; width:fit-content; max-width:100%; }
.quote-mii img { width:62px; height:auto; flex:none; }
.quote-mii p { position:relative; border:1px solid #dce3ea; background:#fff; border-radius:9px; padding:12px 16px; font-size:13px; font-weight:700; line-height:1.8; }
.quote-mii p:before { content:''; position:absolute; left:-6px; top:44%; width:10px; height:10px; background:#fff; border-left:1px solid #dce3ea; border-bottom:1px solid #dce3ea; transform:rotate(45deg); }
.quote-mii-hero { margin:0; }
.quote-mii-hero img { width:70px; }
.quote-error { color:#9e3030; font-size:14px; font-weight:600; margin-top:9px; }
.quote-error:before { content:'! '; font-weight:900; }
.quote-error-summary { padding:12px 16px; margin-bottom:24px; border-left:4px solid #a33636; color:#9e3030; background:#fff3f1; }
.quote-notice { padding:14px 18px; border:1px solid #dae3ed; background:#f4f7fb; border-radius:6px; font-size:14px; line-height:1.8; margin:18px 0 24px; }
.quote-actions { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-top:30px; padding-top:24px; border-top:1px solid #e3e8ed; }
.quote-actions .button { margin-left:auto; }
.quote-back { min-height:50px; padding:10px 18px; color:var(--blue); background:#fff; border:1px solid #b6c3d0; border-radius:6px; cursor:pointer; font-weight:700; }
.quote-page button { cursor:pointer; }
.quote-page button:disabled { opacity:.6; cursor:not-allowed; box-shadow:none; }
.quote-bottom-note { text-align:center; color:var(--muted); font-size:13px; margin-top:24px; }
.quote-review-group { border:1px solid #dee5ed; border-radius:8px; padding:20px; margin-top:20px; }
.quote-review-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px solid #e3e8ee; }
.quote-review-heading h3 { font-size:18px; }
.quote-review-edit { border:0; background:#eef4fb; color:var(--blue); border-radius:5px; font-weight:700; min-height:44px; padding:8px 12px; font-size:13px; }
.quote-review-group dl { margin:0; }
.quote-review-row { display:grid; grid-template-columns:160px minmax(0,1fr); gap:18px; padding:14px 0; border-bottom:1px solid #eef1f4; }
.quote-review-row:last-child { border:0; padding-bottom:0; }
.quote-review-row dt { font-weight:700; font-size:14px; }
.quote-review-row dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.quote-page .visually-hidden { position:absolute; width:1px; height:1px; clip:rect(0,0,0,0); overflow:hidden; white-space:nowrap; }
@media(max-width:900px) { .quote-hero-title { align-items:flex-start; gap:20px; } .quote-mii-hero { align-self:center; } .quote-mii-hero p { max-width:160px; } }
@media(max-width:640px) { .quote-container { width:calc(100% - 32px); } .quote-hero-title { display:block; } .quote-hero-title h1 { font-size:34px; } .quote-mii-hero { margin-top:18px; } .quote-mii img,.quote-mii-hero img { width:52px; } .quote-mii-hero p { max-width:none; } .quote-body { padding-top:24px; } .quote-progress { gap:6px; } .quote-progress li strong { display:none; } .quote-progress li>span { width:28px; height:28px; } .quote-step-status { margin-top:18px; } #quote-form { padding:24px 18px; } .quote-panel h2 { font-size:23px; } .quote-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .quote-product-card { padding:9px; gap:9px; } .quote-product-card:has(input:checked) { padding:8px; } .quote-product-card>span { align-items:flex-start; gap:7px; font-size:14px; } .quote-product-card.is-inquiry { display:block; } .quote-product-card small { display:block; margin-top:10px; } .quote-two-col { grid-template-columns:1fr; } .quote-choices { flex-direction:column; gap:10px; } .quote-choices label { padding:13px; } .quote-actions { gap:12px; flex-wrap:wrap; } .quote-actions .button { min-width:0; gap:12px; min-height:52px; padding-inline:16px; font-size:14px; } .quote-back { padding-inline:12px; font-size:14px; } .quote-review-group { padding:16px; } .quote-review-row { grid-template-columns:1fr; gap:4px; } .quote-review-heading h3 { font-size:16px; } .quote-upload-grid .quote-field { padding:12px; } .quote-send { min-width:0; width:100%; white-space:normal; justify-content:center; } }
@media(prefers-reduced-motion:reduce) { .quote-page * { transition:none!important; } }

.quote-file-clear { min-height:44px; margin-top:8px; padding:8px 12px; color:var(--blue); background:#fff; border:1px solid #b6c3d0; border-radius:5px; font-size:13px; }
.quote-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#quote-form[aria-busy="true"] { cursor:progress; }
#quote-complete .button { margin-top:24px; }
#quote-receipt { overflow-wrap:anywhere; }
.quote-size-method { margin-bottom:28px; }
.quote-size-choices,.quote-cut-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.quote-size-choices label,.quote-cut-choices label { align-items:flex-start; min-width:0; }
.quote-size-choices strong,.quote-cut-choices strong { display:block; font-size:15px; }
.quote-size-choices small,.quote-cut-choices small { display:block; margin-top:6px; color:var(--muted); font-size:12px; line-height:1.7; }
.quote-size-choices .quote-size-recommended { border-color:#7597bd; background:#f6f9fd; }
.quote-mm-input { display:flex; align-items:center; gap:12px; }
.quote-mm-input input { max-width:180px; }
.quote-mm-input>span { font-weight:700; }
.quote-size-diagram { width:180px; max-width:100%; padding:12px 20px; margin:0 0 24px; border:1px solid #dde5ee; border-radius:6px; background:#f8fafc; text-align:center; }
.quote-size-diagram>div { display:grid; grid-template-columns:minmax(0,1fr) 28px; grid-template-rows:auto auto; align-items:center; gap:8px 10px; }
.quote-size-diagram strong { grid-column:1; grid-row:2; display:block; min-width:0; color:var(--blue); font-size:36px; line-height:1.2; white-space:nowrap; }
.quote-size-diagram figcaption { margin-top:10px; color:var(--muted); font-size:12px; line-height:1.6; }
.quote-diagram-horizontal { grid-column:1; grid-row:1; color:var(--blue); font-size:14px; line-height:1.4; white-space:nowrap; }
.quote-diagram-vertical { grid-column:2; grid-row:2; color:var(--blue); font-size:24px; line-height:1; }
.quote-diagram-vertical small { display:block; margin-top:4px; font-size:11px; }
.quote-overall-diagram { width:280px; }
.quote-overall-diagram strong { font-size:24px; letter-spacing:3px; }
@media(max-width:640px) {
  .quote-size-choices,.quote-cut-choices { grid-template-columns:1fr; }
  .quote-size-diagram { padding:12px 14px; }
  .quote-size-diagram>div { grid-template-columns:minmax(0,1fr) 26px; gap:10px 12px; }
  .quote-character-diagram strong { font-size:34px; }
  .quote-overall-diagram { width:100%; max-width:280px; }
  .quote-overall-diagram strong { font-size:24px; letter-spacing:1px; }
}

.quote-checkbox { display:flex; align-items:flex-start; gap:10px; font-size:15px; cursor:pointer; }
.quote-checkbox input { width:18px; height:18px; flex:none; margin-top:3px; accent-color:var(--blue); }
.quote-option-card { display:grid; grid-template-columns:160px minmax(0,1fr); gap:22px; padding:20px; border:1px solid #dde5ee; border-radius:8px; background:#f8fafc; margin-bottom:26px; }
.quote-option-image { align-self:start; display:grid; place-items:center; width:160px; min-height:110px; background:#eef2f6; color:var(--muted); font-size:12px; border-radius:6px; }
.quote-option-image img { object-fit:contain; max-width:100%; }
.quote-option-content .quote-subheading { margin-top:0; }
.quote-option-content .quote-field { margin-bottom:14px; }
.quote-option-price,.quote-option-total { font-weight:700; color:var(--blue); margin-bottom:14px; }
.quote-finishing { padding-top:20px; margin-top:24px; border-top:1px solid #dde5ee; }
.quote-plate-dimensions { display:flex; align-items:center; gap:14px; }
.quote-plate-dimensions>.quote-field { flex:1; }
@media(max-width:640px) { .quote-option-card { grid-template-columns:1fr; gap:16px; padding:16px; } .quote-option-image { width:140px; min-height:96px; } .quote-plate-dimensions { gap:8px; } }

.quote-option-word { white-space:nowrap; }

/* 寸法を入力する必要がある場合の案内を強調。 */
.quote-size-notice { padding:12px 16px; border:1px solid #dae3ed; border-left:4px solid var(--blue); border-radius:6px; background:#f4f7fb; color:var(--ink); font-size:15px; font-weight:600; line-height:1.8; margin:16px 0; }

/* カルプ文字：通常はストレート、特殊加工は補助的な選択肢。 */
.quote-standard-cut { grid-template-columns:minmax(0,1fr); }
.quote-standard-cut .quote-badge { display:inline-block; margin-top:8px; }
.quote-cut-selection { margin-top:12px; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.quote-special-cuts { margin-top:14px; min-width:0; border-top:1px solid #dee5ed; }
.quote-special-cuts summary { padding:12px 0; color:var(--muted); font-size:13px; line-height:1.8; cursor:pointer; overflow-wrap:anywhere; }
.quote-special-cuts summary:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.quote-special-cuts .quote-cut-choices { grid-template-columns:minmax(0,1fr); }
.quote-special-cuts .quote-cut-choices label { padding:12px; }
.quote-special-cuts .quote-cut-choices label>span { min-width:0; overflow-wrap:anywhere; }

/* Mii-chan pose layouts. */
.quote-mii img.mii-variation { width:84px; height:auto; object-fit:contain; }
.quote-mii p { min-width:0; }
@media(max-width:640px) { .quote-mii img.mii-variation { width:66px; } }

/* 入力項目を区切り、必要な補足だけ展開できるようにする。 */
.quote-spec-group { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); min-width:0; }
.quote-group-heading { margin:0 0 18px; color:var(--blue); font-size:19px; line-height:1.6; }
.quote-detail-note { margin-top:12px; color:var(--muted); font-size:13px; line-height:1.8; }
.quote-detail-note summary { min-height:44px; padding-block:10px; cursor:pointer; }
.quote-detail-note p { padding:10px 14px; background:#f8fafc; border-radius:6px; }
.quote-detail-note summary:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.quote-review-order-note { margin:18px 0; padding:14px 16px; border-left:3px solid var(--blue); background:#f4f7fb; font-weight:700; line-height:1.8; }
.quote-review-row[data-review-field="product"] dd,
.quote-review-row[data-review-field$="_mm"] dd,
.quote-review-row[data-review-field$="_material"] dd,
.quote-review-row[data-review-field="sheet"] dd,
.quote-review-row[data-review-field="quantity"] dd,
.quote-review-row[data-review-field^="file"] dd,
.quote-review-row[data-review-field="payment"] dd,
.quote-review-row[data-review-field="email"] dd,
.quote-review-row[data-review-field="prefecture"] dd,
.quote-review-row[data-review-field="city"] dd,
.quote-review-row[data-review-field="street"] dd { font-weight:700; }
.quote-draft-note { margin-top:24px; color:var(--muted); font-size:12px; line-height:1.9; }
.quote-page [hidden] { display:none!important; }
@media(max-width:640px) {
  .quote-group-heading { font-size:17px; }
  .quote-spec-group { padding-top:20px; margin-top:24px; }
  .quote-field input[type="file"] { min-width:0; max-width:100%; }
  .quote-field input[type="file"]::file-selector-button { max-width:100%; }
  .quote-mm-input { min-width:0; gap:8px; }
  .quote-mm-input input { min-width:0; }
  .quote-plate-dimensions>.quote-field { min-width:0; }
}
