#at-web-quote {
	box-sizing: border-box;
	font-size: 16px;
	line-height: normal;
	--ink: #17313d;
	--muted: #65767e;
	--line: #d4dfe3;
	--soft: #f0f4f5;
	--accent: #3b7f9c;
	--accent-dark: #285e75;
	--navy: #173e4c;
	--green: #28785f;
	--amber: #8b6418;
	--danger: #a63d3d;
	--white: #fff;
	--shadow: 0 8px 22px rgba(23, 62, 76, .06);
	color: var(--ink);
	background: #fff;
	font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

/* 共通テーマの header h2 などの明朝指定を、見積画面内だけで上書きする。 */
#at-web-quote * { box-sizing: border-box; font-family: inherit; }

#at-web-quote button, #at-web-quote input, #at-web-quote select, #at-web-quote textarea { font: inherit; }
#at-web-quote button { cursor: pointer; }
#at-web-quote button:disabled { cursor: not-allowed; opacity: .48; }
#at-web-quote .atwq-hidden { display: none !important; }
#at-web-quote .atwq-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#at-web-quote { max-width: 1200px; margin: 0 auto; padding: 42px 24px 72px; }
#at-web-quote .atwq-intro { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
#at-web-quote .atwq-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 18px; letter-spacing: .06em; }
#at-web-quote .atwq-intro h1 { margin: 0 0 10px; color: var(--navy); font-size: clamp(27px, 4vw, 38px); letter-spacing: .06em; }
#at-web-quote .atwq-intro-copy > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
#at-web-quote .atwq-scope-note { margin-bottom: 24px; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
#at-web-quote .atwq-text-button { padding: 4px 0; border: 0; background: transparent; color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#at-web-quote .atwq-mode-bar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--navy); }
#at-web-quote #mode-label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
#at-web-quote .atwq-mode-company { padding: 6px 12px; border-radius: 4px; background: var(--accent-dark); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.5; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
#at-web-quote .atwq-mode-status { line-height: 1.6; }
#at-web-quote .atwq-mode-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; max-width: 100%; }
#at-web-quote .atwq-mode-actions .atwq-mode-action { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--accent-dark); font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: none; white-space: nowrap; }
#at-web-quote .atwq-mode-actions .atwq-mode-action:hover { border-color: var(--accent); background: #eef5f7; }
#at-web-quote .atwq-mode-actions .atwq-mode-history { border-color: var(--accent-dark); background: var(--accent-dark); color: var(--white); }
#at-web-quote .atwq-mode-actions .atwq-mode-history:hover { border-color: var(--navy); background: var(--navy); }
#at-web-quote .atwq-mode-actions .atwq-mode-logout { color: var(--muted); }
@media (max-width: 768px) {
	#at-web-quote .atwq-mode-actions { width: 100%; margin-left: 0; }
	#at-web-quote .atwq-mode-actions .atwq-mode-action { flex: 1 1 auto; }
}
#at-web-quote .atwq-dealer-panel { max-width: 700px; margin: 0 auto; padding: 30px; }
#at-web-quote .atwq-dealer-panel h2 { margin: 0 0 16px; color: var(--navy); }
#at-web-quote .atwq-dealer-panel p { line-height: 1.8; }
#at-web-quote .atwq-prototype-note { padding: 12px; background: var(--soft); color: var(--muted); font-size: 13px; }
#at-web-quote button:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }

#at-web-quote .atwq-primary, #at-web-quote .atwq-secondary { min-height: 44px; padding: 11px 20px; border: 1px solid transparent; border-radius: 0; font-weight: 800; transition: background .18s ease, color .18s ease; }
#at-web-quote .atwq-primary { color: #fff; background: var(--accent); }
#at-web-quote .atwq-primary:hover { background: var(--accent-dark); }
#at-web-quote #login-submit[aria-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: wait; opacity: 1; }
#at-web-quote #login-submit[aria-busy="true"]::before { width: 16px; height: 16px; flex: 0 0 16px; content: ""; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: atwq-login-spin .75s linear infinite; }
#at-web-quote #password-reset-submit[aria-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: wait; opacity: 1; }
#at-web-quote #password-reset-submit[aria-busy="true"]::before { width: 16px; height: 16px; flex: 0 0 16px; content: ""; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: atwq-login-spin .75s linear infinite; }
#at-web-quote #login-panel.atwq-session-checking #login-status::before { width: 18px; height: 18px; flex: 0 0 18px; content: ""; border: 2px solid rgba(23, 72, 91, .25); border-top-color: var(--accent-dark); border-radius: 50%; animation: atwq-login-spin .75s linear infinite; }
@keyframes atwq-login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	#at-web-quote #login-submit[aria-busy="true"]::before, #at-web-quote #password-reset-submit[aria-busy="true"]::before, #at-web-quote #login-panel.atwq-session-checking #login-status::before { animation: none; }
}
#at-web-quote .atwq-secondary { color: var(--accent-dark); background: #fff; border-color: var(--accent); }
#at-web-quote .atwq-secondary:hover { background: #edf4f6; }
#at-web-quote .atwq-full { width: 100%; }

#at-web-quote .atwq-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
#at-web-quote .atwq-main-column { display: grid; gap: 24px; }
#at-web-quote .atwq-panel { background: var(--white); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); }
#at-web-quote .atwq-search-panel { padding: 28px; }
#at-web-quote .atwq-quote-panel { position: fixed; inset: 0; width: calc(100% - 32px); max-width: 940px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: var(--white); }
#at-web-quote .atwq-quote-panel::backdrop { background: rgba(23, 49, 61, .55); }
#at-web-quote .atwq-quote-panel .atwq-quote-dialog-heading { position: sticky; top: 0; z-index: 1; margin: 0; padding: 24px; border-bottom: 1px solid var(--line); background: var(--white); }
#at-web-quote .atwq-quote-close { flex-shrink: 0; margin-left: auto; min-height: 44px; padding: 8px; white-space: nowrap; }
#at-web-quote .atwq-quote-dialog-content { padding: 24px; }
@media (max-width: 768px) {
	#at-web-quote .atwq-quote-panel .atwq-quote-dialog-heading, #at-web-quote .atwq-quote-dialog-content { padding: 16px; }
	#at-web-quote .atwq-quote-dialog-heading { flex-wrap: wrap; }
	#at-web-quote .atwq-quote-dialog-heading > div { flex: 1; min-width: 140px; }
}
#at-web-quote .atwq-section-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
#at-web-quote .atwq-section-heading.atwq-compact { margin-bottom: 16px; }
#at-web-quote .atwq-section-heading h2 { margin: 0 0 4px; color: var(--navy); font-size: 20px; letter-spacing: .04em; }
#at-web-quote .atwq-section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
#at-web-quote .atwq-step { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--accent); font-size: 13px; font-weight: 900; }

#at-web-quote .atwq-brand-filter { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
#at-web-quote .atwq-brand-filter legend { margin: 0 0 8px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
#at-web-quote .atwq-brand-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
#at-web-quote .atwq-brand-filter-options label { position: relative; display: block; }
#at-web-quote .atwq-brand-filter-options input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#at-web-quote .atwq-brand-filter-options span { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 6px 12px; color: var(--accent-dark); background: var(--white); border: 1px solid var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s ease, color .18s ease; }
#at-web-quote .atwq-brand-filter-options input:checked + span { color: var(--white); background: var(--accent); }
#at-web-quote .atwq-brand-filter-options input:focus-visible + span { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
#at-web-quote .atwq-brand-filter-options input:disabled + span { cursor: wait; opacity: .48; }
#at-web-quote .atwq-search-form { display: flex; gap: 10px; }
#at-web-quote .atwq-search-form input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid #aebdc4; border-radius: 0; }
#at-web-quote .atwq-search-form input:focus, #at-web-quote input:focus, #at-web-quote select:focus { outline: 3px solid rgba(59, 127, 156, .16); border-color: var(--accent); }
#at-web-quote .atwq-status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
#at-web-quote .atwq-status.atwq-error { color: var(--danger); }
#at-web-quote .atwq-status.atwq-success { color: var(--green); font-weight: 700; }

#at-web-quote .atwq-search-results { display: grid; gap: 10px; }
#at-web-quote .atwq-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; }
#at-web-quote .atwq-pagination button { min-width: 40px; min-height: 44px; padding: 8px 10px; color: var(--accent-dark); border: 1px solid var(--line); background: var(--white); font-size: 14px; }
#at-web-quote .atwq-pagination button[aria-current="page"] { color: var(--white); border-color: var(--accent); background: var(--accent); font-weight: 700; opacity: 1; }
#at-web-quote .atwq-pagination button:not(:disabled):hover { border-color: var(--accent); }
#at-web-quote .atwq-pagination-gap { color: var(--muted); padding: 0 2px; }
#at-web-quote .atwq-product-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 17px; border: 1px solid var(--line); border-left: 4px solid var(--accent); }
#at-web-quote .atwq-product-card h3 { margin: 3px 0 6px; font-size: 16px; }
#at-web-quote .atwq-sku { color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .07em; }
#at-web-quote .atwq-product-identifiers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#at-web-quote .atwq-brand { color: var(--muted); font-size: 12px; }
#at-web-quote .atwq-product-category { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); background: var(--soft); font-size: 11px; line-height: 1.5; }
#at-web-quote .atwq-product-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
#at-web-quote .atwq-price { font-size: 14px; }
#at-web-quote .atwq-price strong { color: var(--navy); font-size: 14px; font-weight: 600; }
#at-web-quote .atwq-price small, #at-web-quote .atwq-inventory small { display: block; margin-top: 3px; color: var(--muted); }
#at-web-quote .atwq-price small { font-size: 12px; }
#at-web-quote .atwq-price strong { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
#at-web-quote .atwq-price .atwq-price-tax { display: inline; margin-top: 0; font-weight: 400; }
#at-web-quote .atwq-price-public { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
#at-web-quote .atwq-price .atwq-price-secondary { margin-top: 0; white-space: nowrap; }
#at-web-quote .atwq-inventory { color: var(--green); font-size: 14px; font-weight: 600; }
#at-web-quote .atwq-inventory.atwq-pending { color: var(--muted); }

#at-web-quote .atwq-cart { position: sticky; top: var(--atwq-cart-top, 18px); padding: 22px; display: flex; flex-direction: column; max-height: calc(100vh - var(--atwq-cart-top, 18px) - 18px); max-height: calc(100dvh - var(--atwq-cart-top, 18px) - 18px); }
#at-web-quote .atwq-cart > :not(.atwq-cart-items) { flex-shrink: 0; }
#at-web-quote .atwq-cart-items { display: grid; gap: 12px; margin: 8px 0 20px; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
#at-web-quote .atwq-cart-items:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
#at-web-quote .atwq-cart-stock-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
#at-web-quote .atwq-empty { padding: 18px 0; color: var(--muted); font-size: 13px; text-align: center; }
#at-web-quote .atwq-cart-row { padding-top: 12px; border-top: 1px solid var(--line); }
#at-web-quote .atwq-cart-row:first-child { border-top: 0; }
#at-web-quote .atwq-cart-name { margin-bottom: 8px; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
#at-web-quote .atwq-cart-controls { display: flex; gap: 8px; align-items: center; }
#at-web-quote .atwq-cart-controls input { width: 82px; padding: 8px; border: 1px solid #aebdc4; border-radius: 0; }
#at-web-quote .atwq-remove { margin-left: auto; color: #8c4a4a; background: transparent; border: 0; font-size: 12px; }
#at-web-quote .atwq-destination { display: grid; gap: 7px; margin: 18px 0 8px; font-size: 13px; font-weight: 700; }
#at-web-quote .atwq-destination select { width: 100%; margin-bottom: 0 !important; padding: 10px; background: white; border: 1px solid #aebdc4; border-radius: 0; }
#at-web-quote .atwq-destination + .atwq-cart-stock-note { margin: 0 0 20px; }

#at-web-quote .atwq-quote-lines { overflow: hidden; border: 1px solid var(--line); }
#at-web-quote .atwq-quote-line { display: grid; grid-template-columns: minmax(0, 1fr) 80px 120px; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
#at-web-quote .atwq-quote-line:first-child { border-top: 0; }
#at-web-quote .atwq-quote-line .atwq-line-name { font-weight: 700; }
#at-web-quote .atwq-quote-line .atwq-line-name, #at-web-quote .atwq-quote-line .atwq-line-sku { overflow-wrap: anywhere; }
#at-web-quote .atwq-quote-line .atwq-line-sku { display: block; color: var(--muted); font-size: 11px; }
#at-web-quote .atwq-quote-line .atwq-line-qty { text-align: center; }
#at-web-quote .atwq-quote-line .atwq-line-price { text-align: right; font-weight: 800; }
#at-web-quote .atwq-totals { max-width: 360px; margin: 20px 0 0 auto; }
#at-web-quote .atwq-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
#at-web-quote .atwq-totals dt, #at-web-quote .atwq-totals dd { margin: 0; }
#at-web-quote .atwq-totals .atwq-grand-total { margin-top: 5px; padding-top: 11px; color: var(--navy); border-top: 2px solid var(--navy); font-size: 19px; font-weight: 900; }
#at-web-quote .atwq-quote-note { max-width: 42em; margin: 14px 0 0; padding-inline-start: 1.25em; list-style: disc; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: left; }
#at-web-quote .atwq-quote-note li + li { margin-top: 4px; }
#at-web-quote #dealer-prototype-note:empty { display: none; }

#at-web-quote .atwq-contact-form { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
#at-web-quote .atwq-contact-form h3 { margin: 0 0 16px; color: var(--navy); }
#at-web-quote .atwq-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
#at-web-quote .atwq-field-grid label { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; line-height: 20px; font-weight: 700; }
#at-web-quote .atwq-field-grid label span { color: var(--danger); font-size: 10px; }
#at-web-quote .atwq-field-grid input, #at-web-quote .atwq-field-grid select { flex: 0 0 100%; min-width: 0; width: 100%; height: 46px; margin: 0; padding: 10px; border: 1px solid #aebdc4; border-radius: 0; }
#at-web-quote .atwq-field-grid input[readonly] { background: #f3f6f7; }
#at-web-quote #destination, #at-web-quote #public-business-type, #at-web-quote #dealer-branch { appearance: none; -webkit-appearance: none; padding-right: 40px; background-color: white; background-image: linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%), linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
@media (forced-colors: active) { #at-web-quote #destination, #at-web-quote #public-business-type, #at-web-quote #dealer-branch { appearance: auto; -webkit-appearance: auto; background-image: none; } }
#at-web-quote #public-business-help { margin: 0; color: var(--muted); font-size: 13px; }
#at-web-quote .atwq-history-dialog { position: fixed; inset: 0; width: calc(100% - 32px); max-width: 940px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: var(--white); }
#at-web-quote .atwq-history-dialog::backdrop { background: rgba(23, 49, 61, .55); }
#at-web-quote .atwq-history-dialog-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--white); }
#at-web-quote .atwq-history-dialog-heading h2 { margin: 0; min-width: 0; font-size: 22px; color: var(--navy); }
#at-web-quote .atwq-history-dialog-close { flex-shrink: 0; white-space: nowrap; }
#at-web-quote .atwq-history-dialog-content { padding: 24px; }
#at-web-quote .atwq-history-intro { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
#at-web-quote .atwq-history-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
#at-web-quote .atwq-history-toolbar .atwq-status { min-width: 0; margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
#at-web-quote .atwq-history-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 20px; }
#at-web-quote .atwq-history-row { min-width: 0; padding: 16px; border: 1px solid var(--line); background: var(--white); }
#at-web-quote .atwq-history-row-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 4px; }
#at-web-quote .atwq-history-row > .atwq-status:empty { display: none; }
#at-web-quote .atwq-history-row > .atwq-status { margin: 8px 0 0; }
#at-web-quote .atwq-history-row .atwq-history-subject { margin-bottom: 0; font-size: 16px; }
#at-web-quote .atwq-history-row .atwq-history-meta { margin-top: 6px; }
#at-web-quote .atwq-history-number { color: var(--accent-dark); font-size: 17px; font-weight: 800; letter-spacing: .03em; overflow-wrap: anywhere; }
#at-web-quote .atwq-history-dialog .atwq-status-pill { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; }
#at-web-quote .atwq-history-dialog .atwq-history-requested { border-color: #c4ddce; background: #edf6f0; color: var(--green); }
#at-web-quote .atwq-history-dialog .atwq-history-unrequested { background: var(--soft); color: var(--muted); }
#at-web-quote .atwq-history-subject { margin: 0 0 8px; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
#at-web-quote .atwq-history-recipient { margin: 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
#at-web-quote .atwq-history-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 0; font-size: 12px; line-height: 1.7; }
#at-web-quote .atwq-history-meta > div { display: flex; flex-wrap: wrap; gap: 4px 8px; }
#at-web-quote .atwq-history-meta dt { margin: 0; color: var(--muted); }
#at-web-quote .atwq-history-meta dd { margin: 0; color: var(--ink); }
#at-web-quote .atwq-history-row-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
#at-web-quote .atwq-history-amount { flex: 1 1 240px; min-width: 0; margin: 0; color: var(--navy); line-height: 1.6; overflow-wrap: anywhere; }
#at-web-quote .atwq-history-amount > span { display: inline-block; margin-right: 12px; color: var(--muted); font-size: 12px; }
#at-web-quote .atwq-history-amount strong { display: inline-block; font-size: 21px; font-weight: 800; }
#at-web-quote .atwq-history-amount small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
#at-web-quote .atwq-history-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#at-web-quote .atwq-history-row-actions button { margin: 0; font-size: 13px; }
#at-web-quote #history-more { width: 100%; }
#at-web-quote .atwq-history-detail-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
#at-web-quote .atwq-history-detail-heading h3 { min-width: 0; margin: 0; color: var(--navy); font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
#at-web-quote .atwq-history-detail-summary { margin: 0 0 20px; padding: 16px; background: var(--soft); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
#at-web-quote .atwq-history-detail-summary p { margin: 0 0 6px; }
#at-web-quote .atwq-history-detail-summary h4 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
#at-web-quote .atwq-history-detail-summary p:last-child { margin-bottom: 0; }
#at-web-quote .atwq-history-detail-summary dt { color: var(--muted); font-size: 12px; }
#at-web-quote .atwq-history-detail-summary dd { margin: 0 0 8px; }
#at-web-quote .atwq-history-detail-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); }
#at-web-quote .atwq-history-detail-table-wrap:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
#at-web-quote .atwq-history-detail-lines { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
#at-web-quote .atwq-history-detail-lines th, #at-web-quote .atwq-history-detail-lines td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
#at-web-quote .atwq-history-detail-lines th { background: var(--soft); color: var(--navy); font-size: 12px; font-weight: 700; }
#at-web-quote .atwq-history-detail-lines th:nth-last-child(-n+2), #at-web-quote .atwq-history-detail-lines td:nth-last-child(-n+2) { text-align: right; white-space: nowrap; }
#at-web-quote .atwq-history-detail-lines td:first-child { overflow-wrap: anywhere; }
#at-web-quote .atwq-history-detail-lines tr:last-child td { border-bottom: 0; }
#at-web-quote .atwq-history-detail-total { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 8px 20px; margin: 20px 0; padding-top: 16px; border-top: 2px solid var(--navy); color: var(--navy); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
#at-web-quote .atwq-history-detail-total strong { font-size: 22px; }
#at-web-quote .atwq-history-detail-notes { display: grid; gap: 4px; margin: 20px 0 16px; text-align: left; }
#at-web-quote .atwq-history-detail-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
#at-web-quote .atwq-history-detail-note:empty { display: none; }
#at-web-quote .atwq-history-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
@media (max-width: 620px) {
	#at-web-quote .atwq-history-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
	#at-web-quote .atwq-history-dialog-heading, #at-web-quote .atwq-history-dialog-content { padding: 16px; }
	#at-web-quote .atwq-history-dialog-heading h2 { font-size: 20px; }
	#at-web-quote .atwq-history-row { padding: 16px; }
	#at-web-quote .atwq-history-row-actions { width: 100%; }
	#at-web-quote .atwq-history-row-actions button { flex: 1 1 auto; }
	#at-web-quote .atwq-history-amount { flex-basis: 100%; }
	#at-web-quote .atwq-history-detail-actions button { width: 100%; }
}
#at-web-quote .atwq-field-grid textarea { flex: 0 0 100%; min-width: 0; width: 100%; padding: 10px; border: 1px solid #aebdc4; border-radius: 0; resize: vertical; }
#at-web-quote textarea:focus { outline: 3px solid rgba(59, 127, 156, .16); border-color: var(--accent); }
#at-web-quote .atwq-application-form, #at-web-quote .atwq-application-review { margin: 22px 0; max-width: 760px; }
#at-web-quote .atwq-application-form { margin-bottom: 18px; }
#at-web-quote .atwq-application-form > .atwq-application-help { margin: 0 0 12px; }
#at-web-quote #application-status:empty { min-height: 0; margin: 0; }
#at-web-quote .atwq-application-steps { color: var(--accent-dark); font-size: 13px; line-height: 1.8; }
#at-web-quote .atwq-application-help { color: var(--muted); font-size: 13px; line-height: 1.8; }
#at-web-quote .atwq-application-consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 10px; font-size: 14px; line-height: 1.7; }
#at-web-quote .atwq-application-consent input { margin-top: 5px; flex-shrink: 0; }
#at-web-quote .atwq-application-summary { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 3fr); margin: 16px 0; border-top: 1px solid var(--line); }
#at-web-quote .atwq-application-summary dt, #at-web-quote .atwq-application-summary dd { margin: 0; padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
#at-web-quote .atwq-application-summary dt { background: var(--soft); font-weight: 700; }
#at-web-quote .atwq-field-grid .atwq-wide { grid-column: 1 / -1; }
#at-web-quote .atwq-final-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
#at-web-quote .atwq-final-actions .atwq-formal-action { font-size: 13px; font-weight: 400; }

#at-web-quote #login-panel { max-width: 440px; margin-inline: auto; }
#at-web-quote #login-panel.atwq-session-checking > :not(#login-content), #at-web-quote #login-panel.atwq-session-checking #login-content > :not(#login-status) { display: none; }
#at-web-quote #login-panel.atwq-session-checking #login-status { display: flex; min-height: 140px; align-items: center; justify-content: center; gap: 10px; margin: 0; color: var(--navy); font-size: 14px; }
#at-web-quote .atwq-login-form { display: grid; gap: 20px; margin: 24px 0 12px; }
#at-web-quote .atwq-login-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
#at-web-quote .atwq-login-form input { min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--line); background: #fff; font: inherit; }
#at-web-quote .atwq-login-form input:disabled { background: var(--soft); }
#at-web-quote .atwq-password-reset-link { display: block; margin: 12px 0; }
#at-web-quote #password-reset-title { margin: 24px 0 12px; font-size: 18px; color: var(--navy); }
#at-web-quote .atwq-password-reset-form { display: grid; gap: 20px; margin: 24px 0 12px; }
#at-web-quote .atwq-password-reset-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
#at-web-quote .atwq-password-reset-form input { min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--line); background: #fff; font: inherit; }
#at-web-quote .atwq-password-reset-form input:disabled { background: var(--soft); }

@media (max-width: 900px) {
	#at-web-quote .atwq-workspace { grid-template-columns: 1fr; }
	#at-web-quote .atwq-cart { position: static; }
}

@media (max-width: 620px) {
	#at-web-quote { padding: 28px 16px 52px; }
	#at-web-quote .atwq-search-panel { padding: 20px; }
	#at-web-quote .atwq-brand-filter-options { display: grid; grid-template-columns: 1fr 1fr; }
	#at-web-quote .atwq-brand-filter-options label:first-child { grid-column: 1 / -1; }
	#at-web-quote .atwq-brand-filter-options span { width: 100%; min-height: 44px; padding-inline: 10px; }
	#at-web-quote .atwq-search-form { display: grid; }
	#at-web-quote .atwq-product-card { grid-template-columns: 1fr; }
	#at-web-quote .atwq-product-card .atwq-primary { width: 100%; }
	#at-web-quote .atwq-field-grid { grid-template-columns: 1fr; }
	#at-web-quote .atwq-field-grid .atwq-wide { grid-column: auto; }
	#at-web-quote .atwq-quote-line { grid-template-columns: minmax(0, 1fr) 50px; }
	#at-web-quote .atwq-quote-line .atwq-line-price { grid-column: 1 / -1; }
	#at-web-quote .atwq-final-actions { display: grid; }
	#at-web-quote .atwq-final-actions button { width: 100%; }
}

/* 高さが足りない画面ではページをスクロールして全操作へ到達できるようにする。 */
@media (max-height: 520px) {
	#at-web-quote .atwq-cart { position: static; max-height: none; }
	#at-web-quote .atwq-cart-items { max-height: 35vh; max-height: 35dvh; }
}
