@charset "utf-8";
/* ==========================================================
   見積リスト（ECのカート風）2026-10-26  ※ pages.css の後に読み込み
   ヘッダーのアイコン＋バッジ / ドロワー / トースト / SP下部バー / 一覧カード・詳細の追加ボタン / 見積リストページ / フォームの明細
   ========================================================== */
:root{ --q-orange:#f39800; --q-orange-d:#e06a00; --q-err:#d93a3a; }

/* ---------- header icon ---------- */
a.hdQuote, a.hdQuote:link, a.hdQuote:visited{
	position:relative; flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
	width:46px; height:46px; border:1px solid var(--line); border-radius:50%; background:#fff;
	color:var(--navy); text-decoration:none; box-sizing:border-box;
}
a.hdQuote:hover{ border-color:var(--blue); color:var(--blue-d); box-shadow:var(--shadow-h); }
.hdQuoteIco{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hdQuoteTxt{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.hdQuoteBadge{
	position:absolute; top:-5px; right:-6px; min-width:20px; height:20px; padding:0 5px; box-sizing:border-box;
	border-radius:10px; background:var(--q-orange); color:#fff; border:2px solid #fff;
	font-family:var(--en); font-size:11px; font-weight:700; line-height:16px; text-align:center; letter-spacing:0;
}
.hdQuoteBadge[hidden]{ display:none; }
.is-bump .hdQuoteBadge, .qBar.is-bump .qBarTxt b{ animation:qBump .5s ease; }
@keyframes qBump{ 0%{ transform:scale(1); } 35%{ transform:scale(1.45); } 100%{ transform:scale(1); } }
@media (min-width:769px){
	header a.hdQuote, header a.hdQuote:link, header a.hdQuote:visited{ order:5; }
	.is-scrolled header a.hdQuote, .is-scrolled header a.hdQuote:link, .is-scrolled header a.hdQuote:visited{ width:40px; height:40px; }
}
/* アイコン追加分の幅を詰める（TEL表示幅 1241px〜 で溢れないように） */
@media (min-width:769px) and (max-width:1440px){
	header{ gap:14px; }
	header nav.gNav a{ padding-left:8px; padding-right:8px; }
	header nav.gNav a::after{ left:8px; right:8px; }
	a.headTel{ padding-left:14px; }
}
@media (min-width:961px) and (max-width:1120px){
	header ul.subMenu{ display:none; }
}
@media (max-width:768px){
	header{ padding-right:118px!important; }
	header a.hdQuote, header a.hdQuote:link, header a.hdQuote:visited{ position:absolute; right:64px; top:50%; margin-top:-22px; width:44px; height:44px; border-radius:8px; }
	header .hdQuoteIco{ width:21px; height:21px; }
}

/* ---------- toast ---------- */
.qToast{
	position:fixed; left:50%; bottom:24px; z-index:1200; display:flex; align-items:center; gap:12px;
	width:max-content; max-width:calc(100% - 32px); box-sizing:border-box; padding:12px 16px;
	border-radius:12px; background:var(--navy); color:#fff; box-shadow:0 14px 34px -10px rgba(12,34,80,.55);
	font-size:13.5px; line-height:1.6; letter-spacing:.03em;
	transform:translate(-50%,16px); opacity:0; visibility:hidden; transition:opacity .25s,transform .25s,visibility .25s;
}
.qToast.is-show{ transform:translate(-50%,0); opacity:1; visibility:visible; }
.qToast.is-warn{ background:var(--wine); }
.qToast b{ font-family:var(--en); }
.qToast small{ display:block; font-size:11.5px; opacity:.85; }
.qToast a, .qToast a:link, .qToast a:visited{ flex:0 0 auto; padding-left:12px; border-left:1px solid rgba(255,255,255,.35); color:#fff; font-weight:700; white-space:nowrap; }
.qToast a:hover{ color:#ffd9a3; }
.qToastIco{ flex:0 0 22px; width:22px; height:22px; border-radius:50%; background:var(--q-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
body.has-qBar .qToast{ bottom:86px; }

/* ---------- drawer ---------- */
.qOverlay{ position:fixed; inset:0; z-index:1090; background:rgba(12,34,80,.45); opacity:0; visibility:hidden; transition:opacity .3s,visibility .3s; }
.qDrawer{
	position:fixed; top:0; right:0; bottom:0; z-index:1100; display:flex; flex-direction:column;
	width:400px; max-width:92vw; background:#fff; box-shadow:-10px 0 30px rgba(12,34,80,.18);
	transform:translateX(100%); visibility:hidden; transition:transform .3s,visibility .3s;
}
body.qDrawer-open{ overflow:hidden; }
body.qDrawer-open .qOverlay{ opacity:1; visibility:visible; }
body.qDrawer-open .qDrawer{ transform:none; visibility:visible; }
.qDrawerHead{ position:relative; padding:22px 64px 16px 24px; border-bottom:1px solid var(--line); }
.qDrawerEn{ margin:0; font-family:var(--en); font-size:11px; font-weight:600; letter-spacing:.2em; color:var(--blue); }
.qDrawerTitle{ margin:2px 0 0; font-size:18px; font-weight:700; color:var(--ink); letter-spacing:.05em; }
.qDrawerTitle span{ font-size:13px; font-weight:500; color:var(--muted); }
.qDrawerClose{ position:absolute; right:16px; top:20px; width:40px; height:40px; padding:0; border:1px solid var(--line); border-radius:50%; background:#fff; cursor:pointer; }
.qDrawerClose span{ position:absolute; left:11px; top:19px; width:16px; height:2px; background:var(--navy); transform:rotate(45deg); }
.qDrawerClose span + span{ transform:rotate(-45deg); }
.qDrawerBody{ flex:1 1 auto; overflow-y:auto; padding:4px 24px; }
.qDrawerList{ margin:0; padding:0; list-style:none; }
.qDrawerList li{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; padding:14px 0; border-bottom:1px dashed var(--line); background:none; }
.qDrawerList li > div{ min-width:0; }
.qDrawerModel{ margin:0; font-family:var(--en); font-size:16px; font-weight:700; color:var(--navy); word-break:break-all; }
.qDrawerModel a, .qDrawerModel a:link, .qDrawerModel a:visited{ color:var(--navy); text-decoration:none; }
.qDrawerSub{ margin:0; font-size:12px; color:var(--muted); line-height:1.6; }
.qDrawerEmpty{ padding:32px 0; text-align:center; }
.qDrawerEmpty p{ margin:0 0 6px; font-weight:700; color:var(--ink); }
.qDrawerEmpty p.qMuted{ font-weight:400; }
.qDrawerFoot{ display:grid; gap:10px; padding:16px 24px calc(20px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--soft); }
a.qBtn, a.qBtn:link, a.qBtn:visited{ display:flex; align-items:center; justify-content:center; min-height:50px; border-radius:999px; font-size:15px; font-weight:700; letter-spacing:.06em; text-decoration:none; box-sizing:border-box; }
a.qBtn.qBtnMain, a.qBtn.qBtnMain:link, a.qBtn.qBtnMain:visited{ background:var(--wine); color:#fff; box-shadow:0 10px 22px -10px rgba(103,6,12,.6); }
a.qBtn.qBtnMain:hover{ background:var(--wine-2); color:#fff; }
a.qBtn.qBtnLine, a.qBtn.qBtnLine:link, a.qBtn.qBtnLine:visited{ min-height:44px; border:1px solid var(--blue); background:#fff; color:var(--blue-d); font-size:14px; }
a.qBtn.qBtnLine:hover{ background:var(--blue); color:#fff; }
.qMuted{ color:var(--muted); font-size:12.5px; }

button.qDel{ flex:0 0 auto; padding:6px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); font:inherit; font-size:12px; line-height:1.4; cursor:pointer; }
button.qDel:hover{ border-color:var(--wine); color:var(--wine); }

/* ---------- SP 下部固定バー ---------- */
.qBar{ display:none; }
@media (max-width:768px){
	a.qBar, a.qBar:link, a.qBar:visited{
		position:fixed; left:0; right:0; bottom:0; z-index:1000; display:flex; align-items:center; gap:10px;
		padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--navy); color:#fff; text-decoration:none;
		box-shadow:0 -6px 20px rgba(12,34,80,.2); transform:translateY(110%); transition:transform .3s;
	}
	body.has-qBar a.qBar{ transform:none; }
	body.has-qBar{ padding-bottom:68px; }
	body.has-qBar #pageTop{ bottom:80px; }
	body.qDrawer-open a.qBar, body.nav-open a.qBar{ transform:translateY(110%); }
	.qBarIco{ flex:0 0 22px; width:22px; height:22px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat; }
	.qBarTxt{ font-size:14px; font-weight:700; letter-spacing:.04em; white-space:nowrap; }
	.qBarTxt b{ display:inline-block; font-family:var(--en); font-size:17px; color:#ffd08a; }
	.qBarGo{ margin-left:auto; padding:8px 14px; border-radius:999px; background:var(--q-orange); color:#fff; font-size:13px; font-weight:700; white-space:nowrap; }
	.qBarGo::after{ content:" ›"; }
	.qToast{ bottom:16px; }
}

/* ---------- 一覧カード・詳細ヒーローの追加ボタン ---------- */
.pg .pgTcBtns a.is-est.is-added, .pg .pgTcBtns a.is-est.is-added:link, .pg .pgTcBtns a.is-est.is-added:visited{ background:var(--tint); color:var(--blue-d); box-shadow:inset 0 0 0 1px var(--blue); }
.pg .pgTcBtns a.is-est.is-added:hover{ background:var(--blue); color:#fff; }
.pg a.pgBtn.pgBtnMain.is-added, .pg a.pgBtn.pgBtnMain.is-added:link, .pg a.pgBtn.pgBtnMain.is-added:visited{ background:#fff; color:var(--navy); box-shadow:none; }
.pg a.pgBtn.pgBtnMain.is-added:hover{ background:var(--tint); color:var(--navy); }

/* ---------- 詳細ページの追加ボックス ---------- */
.qBox{ padding:16px 16px 14px; border-radius:12px; background:var(--soft); border:1px solid var(--line); }
.qBoxTitle{ margin:0 0 10px; font-size:14px; font-weight:700; color:var(--navy); letter-spacing:.06em; }
.qBoxTitle::before{ content:""; display:inline-block; width:18px; height:18px; margin-right:6px; vertical-align:-4px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C2250' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat; }
.qBoxFields{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:10px; }
.qField{ display:block; margin:0; }
.qField > span{ display:block; margin-bottom:3px; font-size:12px; font-weight:700; color:var(--muted); letter-spacing:.06em; }
.qField input{ display:block; width:100%; height:44px; margin:0; padding:0 12px; box-sizing:border-box; border:1px solid #cdd6e0; border-radius:8px; background:#fff; font:inherit; font-size:15px; color:var(--ink); }
.qField input:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(42,148,226,.18); }
.qField input.is-error, .qAddBy input.is-error{ border-color:var(--q-err); background:#fff7f7; }
.qBox .err, .qItem .err, .qAddBy .err{ margin:6px 0 0; color:var(--q-err); font-size:12.5px; line-height:1.5; }
.qBox .err:empty, .qItem .err:empty, .qAddBy .err:empty{ display:none; }
button.qBoxBtn{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:52px; margin:12px 0 0; padding:0 20px; border:0; border-radius:999px; background:var(--wine); color:#fff; font:inherit; font-size:16px; font-weight:700; letter-spacing:.06em; cursor:pointer; box-shadow:0 10px 22px -10px rgba(103,6,12,.6); transition:background .2s,transform .2s; }
button.qBoxBtn:hover{ background:var(--wine-2); transform:translateY(-1px); }
button.qBoxBtn.is-added{ background:var(--tint); color:var(--blue-d); box-shadow:inset 0 0 0 1px var(--blue); cursor:default; transform:none; }
.qBox a.qBoxLink{ display:none; margin:10px 0 0; text-align:center; font-size:14px; font-weight:700; color:var(--blue-d); }
.qBox.is-added a.qBoxLink{ display:block; }

/* ---------- 見積リストページ ---------- */
.pg .qListCard{ padding-bottom:26px; }
.pg ol.pgFormSteps li a, .pg ol.pgFormSteps li a:link, .pg ol.pgFormSteps li a:visited{ color:inherit; text-decoration:underline; text-underline-offset:3px; }
.pg .ysdForm:has(.stepConfirm:not([hidden])) ol.pgFormSteps.is-4 li:nth-child(2){ background:var(--soft); color:var(--muted); }
.pg .ysdForm:has(.stepConfirm:not([hidden])) ol.pgFormSteps.is-4 li:nth-child(3){ background:var(--navy); color:#fff; }
.qNotice{ margin:0 0 16px; padding:12px 14px; border-radius:8px; background:#fff4e5; color:#7a4300; font-size:13px; line-height:1.7; }
.qListHead{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 6px; padding-bottom:10px; border-bottom:2px solid var(--navy); }
.qListHead p{ margin:0; font-size:15px; font-weight:700; color:var(--ink); }
.qListHead p b{ font-family:var(--en); font-size:24px; color:var(--blue-d); margin-right:2px; }
button.qLinkBtn{ padding:4px 2px; border:0; background:none; color:var(--muted); font:inherit; font-size:12.5px; text-decoration:underline; cursor:pointer; }
button.qLinkBtn:hover{ color:var(--wine); }
ul.qItems{ margin:0; padding:0; list-style:none; }
ul.qItems li.qItem{
	position:relative; display:grid; grid-template-columns:96px minmax(0,1fr) 270px; gap:6px 20px; align-items:start;
	margin:0; padding:18px 0; border-bottom:1px solid var(--line); background:none;
}
.qItemFig{ display:block; width:96px; height:96px; border:1px solid var(--line); border-radius:10px; background:#fff; overflow:hidden; }
.qItemFig img{ display:block; width:100%; height:100%; object-fit:contain; }
.qItemFig.is-none{ display:grid; place-items:center; background:var(--soft); color:var(--muted); font-family:var(--en); font-size:10px; letter-spacing:.1em; }
.qItemMain{ min-width:0; padding-right:70px; }
.qItemNo{ margin:0; font-family:var(--en); font-size:11px; font-weight:600; letter-spacing:.14em; color:var(--blue); }
.qItemModel{ margin:0 0 6px; font-family:var(--en); font-size:20px; font-weight:700; line-height:1.3; word-break:break-all; }
.qItemModel a, .qItemModel a:link, .qItemModel a:visited{ color:var(--navy); text-decoration:none; }
.qItemModel a:hover{ color:var(--blue-d); }
ul.qItemSpec{ display:flex; flex-wrap:wrap; gap:4px 14px; margin:0; padding:0; list-style:none; }
ul.qItemSpec li{ margin:0; padding:0; background:none; font-size:12px; line-height:1.6; color:var(--muted); }
ul.qItemSpec li span{ margin-right:5px; }
ul.qItemSpec li b{ font-family:var(--en); font-size:13px; color:var(--ink); }
.qItemLinks{ margin:6px 0 0; font-size:12.5px; }
.qItemLinks a{ display:inline-block; margin-right:14px; font-weight:700; white-space:nowrap; }
.qItemLinks a[target]::after{ content:"PDF"; margin-left:4px; padding:0 5px; border-radius:3px; background:var(--wine); color:#fff; font-family:var(--en); font-size:9.5px; vertical-align:1px; }
.qItemFields{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:8px; padding-top:22px; }
.qItemFields .err{ grid-column:1 / -1; }
ul.qItems li.qItem > button.qDel{ position:absolute; right:290px; top:18px; }
.qAddBy{ margin:20px 0 0; padding:14px 16px; border-radius:12px; background:var(--soft); }
.qAddBy label{ display:block; margin:0 0 6px; font-size:13px; font-weight:700; color:var(--ink); }
.qAddByRow{ display:flex; gap:8px; }
.qAddByRow input{ flex:1 1 auto; min-width:0; height:44px; margin:0; padding:0 12px; box-sizing:border-box; border:1px solid #cdd6e0; border-radius:8px; background:#fff; font:inherit; font-size:15px; }
button.qBtnSmall{ flex:0 0 auto; height:44px; padding:0 22px; border:0; border-radius:8px; background:var(--navy); color:#fff; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
button.qBtnSmall:hover{ background:var(--navy-2); }
.qNote{ margin:14px 0 0; font-size:12.5px; line-height:1.8; color:var(--muted); }
.pg .qListFoot{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; margin:22px 0 0; }
.pg .qListFoot a.pgBtnMain{ min-width:260px; }
.qEmpty{ padding:20px 0 4px; text-align:center; }
.qEmpty::before{ content:""; display:block; width:72px; height:72px; margin:0 auto 14px; border-radius:50%; background:var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7fc8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/34px no-repeat; }
.qEmptyTitle{ margin:0 0 8px; font-size:19px; font-weight:700; color:var(--navy); letter-spacing:.05em; }
.qEmpty > p{ font-size:14px; }
.qEmpty .qAddBy{ text-align:left; }
.qEmptyAlt{ margin:18px 0 0; font-size:13.5px; }

/* ---------- 見積依頼フォームの明細 ---------- */
.qSumWrap[hidden], [data-quote-manual][hidden]{ display:none!important; }
ol.qSum{ margin:0; padding:0; list-style:none; counter-reset:qs; }
ol.qSum li{ counter-increment:qs; display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 16px; margin:0 0 6px; padding:9px 12px; border-radius:8px; background:var(--soft); font-size:13.5px; line-height:1.6; }
ol.qSum li::before{ content:counter(qs) "."; font-family:var(--en); font-size:12px; color:var(--muted); }
.qSumModel{ font-family:var(--en); font-size:15px; color:var(--navy); }
.qSumFoot{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin:8px 0 0; font-size:13px; }
.qSumFoot span{ color:var(--muted); }
.qSumFoot a{ font-weight:700; }
.qManualNote{ margin:0 0 10px; padding:10px 12px; border-radius:8px; background:var(--tint); font-size:13px; line-height:1.7; color:var(--ink); }

@media (max-width:768px){
	ul.qItems li.qItem{ grid-template-columns:72px minmax(0,1fr); gap:10px 14px; padding:16px 0; }
	.qItemFig{ width:72px; height:72px; }
	.qItemMain{ padding-right:56px; }
	.qItemModel{ font-size:17px; }
	.qItemFields{ grid-column:1 / -1; padding-top:0; }
	ul.qItems li.qItem > button.qDel{ right:0; top:16px; }
	.pg .qListFoot{ flex-direction:column-reverse; }
	.pg .qListFoot a.pgBtn{ width:100%; min-width:0; }
	.qBoxFields{ grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
	.qDrawerHead{ padding:18px 60px 14px 18px; }
	.qDrawerBody{ padding:4px 18px; }
	.qDrawerFoot{ padding-left:18px; padding-right:18px; }
}
@media (prefers-reduced-motion:reduce){
	.qToast, .qDrawer, .qOverlay, a.qBar{ transition:none; }
	.is-bump .hdQuoteBadge, .qBar.is-bump .qBarTxt b{ animation:none; }
}
