@charset "UTF-8";
/* かんたん見積もり(/estimate/)専用スタイル。.est 配下にスコープ済み。
   軸は「見積書」: 白い紙面・細い罫線・数字を主役に。角丸・影・装飾色は使わない。
   配色はサイト共通(base.css)のプライマリ #1e2d48 とグレー背景のみ。 */
.est{
  --navy:#1e2d48; --ink:#222; --mute:#5a5d63; --line:#cfd3da; --hair:#e4e6ea; --paper:#fff; --wash:#f2f2f2;
  font-family:var(--font-base); font-weight:400; font-size:15px; line-height:1.7; color:var(--ink);
  -webkit-font-smoothing:antialiased; word-break:auto-phrase; line-break:strict;
}
.est *,.est *::before,.est *::after{box-sizing:border-box}
.est button{font:inherit;color:inherit;cursor:pointer;border-radius:0}
.est h2,.est b{font-weight:700}
.est :focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.est .ph{display:inline-block}
.est .wrap{max-width:1728px;margin:0 auto;padding:0 18px}
.est-intro{max-width:1728px;margin:0 auto;padding:0 18px 22px}
.est-intro p{margin:0;color:var(--mute);font-size:14.5px;max-width:40em}
@media(min-width:900px){.est-page .top__margin{padding-left:0;padding-right:0}.est .wrap,.est-intro{padding-left:60px;padding-right:60px}}

/* ---- レイアウト ---- */
.est .grid{display:grid;gap:20px}
.est .grid>*{min-width:0}
@media(min-width:900px){
.est .grid{grid-template-columns:minmax(0,1fr) 404px;gap:32px;align-items:start}
.est .previewCol{order:2;position:sticky;top:92px;max-height:calc(100vh - 104px);overflow:auto;scrollbar-width:none}
.est .selCol{order:1}
}

/* ---- 選択エリア(箱に入れず、グレー地に細い罫線と余白だけで区切る) ---- */
.est .sec{border-top:1px solid var(--navy);padding:18px 0 24px}
.est .sec:first-child{border-top:0;padding-top:4px}
.est .sec h2{font-family:var(--font-accent);font-size:20px;margin:0 0 4px;color:var(--navy)}
.est .sec .sub{font-size:13px;color:var(--mute);margin:0 0 14px}
.est .chips{display:flex;flex-wrap:wrap;gap:8px}
.est .chip{border:1px solid var(--navy);border-radius:4px;background:var(--paper);padding:8px 16px;font-size:14px;line-height:1.4;white-space:nowrap}
.est .chip.on{background:var(--navy);color:#fff}
@media(max-width:640px){
.est .chips{display:grid;grid-template-columns:repeat(3,1fr)}
.est .chip{padding:10px 2px;text-align:center;font-size:13px}
}

/* 機能: 表の行として並べる */
.est .feat{border-top:1px solid var(--navy)}
.est .tile{display:flex;gap:14px;align-items:center;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:12px 10px 12px 8px;position:relative}
.est .tile:hover{background:#e9eaec}
.est .tile .box{width:20px;height:20px;border:1.5px solid var(--navy);flex-shrink:0;position:relative;background:var(--paper)}
.est .tile.on .box{background:var(--navy)}
.est .tile.on .box::after{content:"";position:absolute;left:5.5px;top:1.5px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.est .tile .tx{flex:1;min-width:0}
.est .tile .n{display:block;font-weight:700;font-size:15px;line-height:1.5}
.est .tile .d{display:block;font-size:12.5px;color:var(--mute);line-height:1.5}
.est .tile .p{flex-shrink:0;font-variant-numeric:tabular-nums;font-size:15px;font-weight:600;white-space:nowrap;color:var(--mute)}
.est .tile .p small{font-size:11.5px;margin-left:2px;font-weight:500}
.est .tile.on .p{color:var(--navy)}
.est .tile.on::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--navy)}

/* オプション */
.est .opt{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.est .opt:first-of-type{border-top:1px solid var(--navy)}
.est .opt:last-child{border-bottom:1px solid var(--line)}
.est .opt .l{min-width:0;flex:1}
.est .opt .l b{display:block;font-size:14.5px}
.est .opt .l small{color:var(--mute);font-size:12.5px;line-height:1.5;display:block}
.est .seg{display:flex;border:1px solid var(--navy);flex-shrink:0}
.est .seg button{border:0;background:var(--paper);padding:6px 11px;font-size:13px;white-space:nowrap}
.est .seg button+button{border-left:1px solid var(--navy)}
.est .seg button.on{background:var(--navy);color:#fff}
.est .step{display:flex;align-items:center;border:1px solid var(--navy);flex-shrink:0}
.est .step button{border:0;background:var(--paper);width:34px;height:32px;font-size:18px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;text-align:center}
.est .step button:hover{background:var(--wash)}
.est .step span{min-width:38px;text-align:center;font-weight:700;border-left:1px solid var(--navy);border-right:1px solid var(--navy);line-height:32px;font-variant-numeric:tabular-nums}
.est .note{font-size:12px;color:var(--mute);line-height:1.7;margin:14px 2px 0}
.est .foot{font-size:12px;color:var(--mute);margin:10px 2px 0}

/* ---- 見積書(右カラム) ---- */
.est .quote{display:block}
.est .q-doc{background:var(--paper);border-top:3px solid var(--navy);padding:14px 18px 16px;margin-top:14px}
.est .q-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid var(--navy);padding-bottom:8px}
.est .q-title{font-size:18px;font-weight:700;color:var(--navy)}
.est .q-scr{font-size:12px;color:var(--mute)}
.est .price .base{font-size:.42em;font-weight:600;margin-right:6px;letter-spacing:0}
.est .q-subj{display:flex;gap:14px;margin:8px 0 0;font-size:13px}
.est .q-subj dt{color:var(--mute);flex-shrink:0}
.est .q-subj dd{margin:0;font-weight:700}
.est .q-total{margin:10px 0 10px;padding:8px 0 10px;border-top:1px solid var(--line);border-bottom:1px solid var(--navy)}
.est .q-total small{display:block;font-size:12px;color:var(--mute)}
.est .price{font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2}
.est .price em{font-style:normal;font-size:.42em;font-weight:500;margin-left:4px;font-family:var(--font-base);letter-spacing:0}
.est .q-total .price{font-size:38px;color:var(--navy)}
.est .q-unit{font-size:12px;color:var(--mute);margin:0 0 4px}
.est .q-shot .q-unit{margin-bottom:6px}
.est .q-lines{list-style:none;margin:0;padding:0}
.est .q-lines li{display:flex;align-items:baseline;gap:8px;font-size:13.5px;line-height:1.5;padding:3px 0}
.est .q-lines .nm{min-width:0}
.est .q-lines li::after{content:"";order:2;flex:1;border-bottom:1px dotted #9aa0a8;transform:translateY(-3px);min-width:12px}
.est .q-lines .pc{order:3;font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.est .q-lines li.fresh{animation:fresh .7s ease}
@keyframes fresh{0%{background:var(--navy);color:#fff}100%{background:transparent}}
.est .q-meta{margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--line);font-size:13px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.est .q-meta>div{display:flex;justify-content:space-between;gap:8px}
.est .q-meta dt{color:var(--mute)}
.est .q-meta dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}

/* 画面イメージ(添付資料の扱い) */
.est .q-shot{margin:0}
.est .tabs{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;margin:0 0 6px;border-bottom:1px solid var(--line)}
.est .tabs::-webkit-scrollbar{display:none}
.est .nav{border:0;background:none;padding:6px 10px;font-size:12.5px;white-space:nowrap;flex-shrink:0;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--mute)}
.est .nav.on{border-bottom-color:var(--navy);color:var(--navy);font-weight:700}
.est .nav.new{animation:fresh .7s ease}
.est .shot{position:relative;width:100%;overflow:hidden;border:1px solid var(--line);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.est .shot{cursor:zoom-in}
.est .shot img{display:block;width:100%;height:auto;pointer-events:none}
.est .shot::after{content:"クリックで拡大";position:absolute;right:0;bottom:0;background:var(--navy);color:#fff;font-size:11.5px;line-height:1;padding:6px 9px}
.est .zoom{position:fixed;inset:0;z-index:10010;background:rgba(20,22,26,.86);display:flex;align-items:center;justify-content:center;padding:56px 24px 24px;cursor:zoom-out}
.est .zoom[hidden]{display:none}
.est .zoom img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;aspect-ratio:960/660;object-fit:contain;background:#fff;cursor:default}
.est .zoom-nav{width:100%;max-width:960px;margin:0 0 12px;padding-right:0}
.est .zoom-nav[hidden]{display:none}
.est .zoom-cap{margin:0 0 6px;color:#fff;font-size:12.5px;line-height:1.4;opacity:.85}
.est .zoom-tabs{display:flex;flex-wrap:wrap;gap:6px}
.est .zoom-tab{border:1px solid #fff;background:transparent;color:#fff;font-size:14px;font-weight:700;padding:10px 14px;line-height:1.2}
.est .zoom-tab.on{background:#fff;color:var(--navy)}
.est .zoom.has-tabs{flex-direction:column;justify-content:flex-start;align-items:center}
.est .zoom.has-tabs img{min-height:0;flex:0 1 auto}
.est .zoom-x{position:absolute;top:12px;right:16px;border:1px solid #fff;background:var(--navy);color:#fff;font-size:14px;font-weight:700;padding:8px 16px;line-height:1.2}
@media(max-width:699px){.est .zoom{padding:56px 8px 16px;overflow:auto;align-items:center;justify-content:center;-webkit-overflow-scrolling:touch}.est .zoom.has-tabs{justify-content:flex-start}.est .zoom img{max-width:100%;max-height:none;width:100%;height:auto;flex-shrink:0;margin:auto}.est .shot::after{font-size:11px}}
.est .cta{border:1px solid var(--navy);background:var(--navy);color:#fff;font-weight:700;padding:12px 18px;font-size:14.5px;white-space:nowrap}
.est .cta:hover{background:#2a3e60}
.est .q-cta{display:block;width:100%;margin:16px 0 0;text-align:center;font-size:15px;padding:12px}

/* ---- スマホ: 見積書本体は下部バー+シートに任せ、画面イメージだけ上に出す ---- */
@media(max-width:899px){
.est .q-doc{display:none}
.est .tile{gap:10px;padding:12px 6px 12px 4px;flex-wrap:wrap}
.est .tile .tx{flex:1 1 calc(100% - 34px)}
.est .tile .p{flex-basis:100%;margin-left:30px;margin-top:-4px;font-size:14px}
.est .opt{flex-wrap:wrap;gap:8px}
.est .opt .l{flex:1 1 100%}
}
.est .bar{position:fixed;left:0;right:0;bottom:0;background:var(--navy);color:#fff;z-index:9980;
  padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px))}
.est .bar .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px}
.est .bar small{display:block;font-size:11.5px;opacity:.8}
.est .bar .price{font-size:clamp(20px,6vw,26px)}
.est .bar .cta{background:#fff;color:var(--navy);border-color:#fff}
.est .bar-acts{display:flex;align-items:center;gap:8px}
.est .bar .viewbtn{border:1px solid rgba(255,255,255,.7);background:transparent;color:#fff;font-weight:700;font-size:13px;padding:11px 12px;white-space:nowrap}
@media(max-width:380px){.est .bar .wrap{gap:6px}.est .bar-acts{gap:6px}.est .bar small{font-size:10.5px;white-space:nowrap}.est .bar .price{font-size:19px;white-space:nowrap}.est .bar .cta{font-size:13px;padding:12px 8px}.est .bar .viewbtn{font-size:12px;padding:11px 8px}}
@media(max-width:400px){.est .bar .wrap{gap:8px}.est .bar .cta{font-size:13.5px;padding:12px 12px}.est .bar .viewbtn{font-size:12.5px;padding:11px 9px}}
@media(min-width:900px){.est .bar{display:none}}

/* ---- 見積書シート(開いたとき) ---- */
.est .veil{position:fixed;inset:0;background:rgba(20,22,26,.55);z-index:10000;display:none}
.est .sheet{position:fixed;left:0;right:0;bottom:0;max-height:90%;overflow:auto;background:var(--paper);z-index:10001;
  border-top:3px solid var(--navy);padding:20px 18px calc(24px + env(safe-area-inset-bottom,0px));transform:translateY(105%);transition:transform .28s ease}
@media(min-width:700px){
.est .sheet{left:50%;width:640px;margin-left:-320px;bottom:auto;top:50%;max-height:92%;transform:translateY(-40%);opacity:0;visibility:hidden;transition:opacity .2s ease,transform .2s ease,visibility 0s .2s}
.est.open .sheet{transform:translateY(-50%);opacity:1;visibility:visible;transition:opacity .2s ease,transform .2s ease}
}
.est.open .veil{display:block}
.est.open .sheet{transform:none}
@media(min-width:700px){.est.open .sheet{transform:translateY(-50%)}}
.est .sheet h2{margin:0 0 12px;font-size:18px;color:var(--navy);border-bottom:1px solid var(--navy);padding-bottom:8px}
.est .sum{padding:4px 0 12px;border-bottom:1px solid var(--navy);margin-bottom:12px}
.est .sum small{display:block;font-size:12px;color:var(--mute)}
.est .sum .big{font-size:38px;color:var(--navy);margin:2px 0 8px}
.est .sum .row{display:flex;justify-content:space-between;font-size:13.5px;gap:10px;padding:2px 0}
.est table.bd{width:100%;border-collapse:collapse;font-size:13.5px;margin-bottom:12px}
.est table.bd caption{text-align:left;font-size:12px;color:var(--mute);padding-bottom:4px}
.est table.bd td{padding:7px 0;border-bottom:1px solid var(--hair);vertical-align:top}
.est table.bd td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;padding-left:10px;font-weight:600}
.est .cmp{font-size:13px;color:var(--mute);margin:0 0 6px;line-height:1.7}
.est .cmp b{color:var(--ink);font-variant-numeric:tabular-nums}
.est .acts{display:grid;gap:8px;margin:14px 0}
.est .acts a,.est .acts button{display:block;text-align:center;text-decoration:none;padding:13px;font-weight:700;border:1px solid var(--navy);font-size:15px}
.est .a-line{background:#06C755;border-color:#06C755!important;color:#fff}
.est .a-tel{background:var(--navy);color:#fff}
.est .a-inq{background:var(--navy);color:#fff}
.est .a-inq:hover{background:#2a3e60}
.est .a-inq:disabled{background:var(--line);border-color:var(--line);color:#fff;cursor:not-allowed}
.est [hidden]{display:none!important}
.est .a-copy{background:var(--paper);color:var(--navy)}
.est .close{position:absolute;right:12px;top:12px;border:0;background:none;width:32px;height:32px;font-size:22px;line-height:1}
@media (prefers-reduced-motion:reduce){
.est *{animation:none!important;transition:none!important}
}
@media(max-width:699px){.est-intro p{font-size:14px}.est .q-total .price{font-size:34px}}
body.est-page{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
@media(min-width:900px){body.est-page{padding-bottom:0}}
/* 固定ヘッダー(PC80px/SP60px)の裏にタイトルが隠れないよう余白を確保 */
.est-page .page_top{scroll-margin-top:80px}
@media(max-width:960px){.est-page .page_top{margin-top:0;padding-top:76px}.est .est-anchor,.est [id]{scroll-margin-top:72px}}
/* 背景のRロゴ透かしは、行ごとに地色が変わって見えるため、この画面では出さない */
.est-page .r-mark_gray::before{display:none}

/* LINEアプリ内(LIFF)のみ表示する送信結果の文言 */
.est .liff-note{margin:0;font-size:13px;line-height:1.7;color:var(--navy)}
.est .liff-note:empty{display:none}
.est .liff-note.err{color:#b3261e}
.est .liff-note a{color:var(--navy);font-weight:700;text-decoration:underline}

/* LIFF診断(テスト環境のみ表示) */
.est .liff-diag{margin:12px 0;padding:10px 12px;border:1px solid var(--line);background:var(--wash);font-size:12px;line-height:1.7;color:var(--ink)}
.est .liff-diag b{display:block;margin-bottom:2px}

/* ---- 問い合わせフォーム(見積もりシート内) ---- */
.est .inq,.est .inq-done{margin:14px 0 0}
.est .inq h3,.est .inq-done h3{margin:0 0 6px;font-size:16px;color:var(--navy)}
.est .inq-lead,.est .inq-done p{margin:0 0 14px;font-size:13px;line-height:1.7;color:var(--mute)}
.est .inq-f{display:block;margin:0 0 12px}
.est .inq-f>span{display:block;font-size:13px;font-weight:700;color:var(--ink);margin-bottom:4px}
.est .inq-f em{font-style:normal;font-weight:400;font-size:11px;color:#fff;background:var(--navy);padding:1px 6px;margin-left:8px}
.est .inq-f input,.est .inq-f textarea{display:block;width:100%;padding:10px 12px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:16px;line-height:1.5;border-radius:0;-webkit-appearance:none;appearance:none}
.est .inq-f textarea{resize:vertical;min-height:84px}
.est .inq-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.est .inq-chk{display:flex;align-items:flex-start;gap:8px;margin:4px 0 12px;font-size:13px;line-height:1.6}
.est .inq-chk input{margin-top:4px;flex:none}
.est .inq-chk a{color:var(--navy);text-decoration:underline}
.est .inq-msg{margin:0 0 10px;font-size:13px;line-height:1.7;color:#b3261e}
.est .inq-msg:empty{display:none}
.est .inq-acts{display:grid;gap:8px}
.est .inq-acts button,.est .inq-done button{display:block;width:100%;text-align:center;padding:13px;font-weight:700;border:1px solid var(--navy);font-size:15px}
.est .inq-sum{margin:0 0 10px;padding:8px 0;border-bottom:1px solid var(--hair);font-size:13px;line-height:1.7;color:var(--ink)}
.est .inq-sum b{color:var(--navy);font-size:15px}
.est .inq-chk input[type=checkbox]{-webkit-appearance:checkbox;appearance:auto;opacity:1;position:static;display:inline-block;width:18px;height:18px;margin:2px 0 0;accent-color:var(--navy)}
