:root{--ink:#293b33;--muted:#7b847e;--green:#385848;--line:#e2e6df;--paper:#f5f6f1;--white:#fff;--warm:#b3996a;--red:#a34339;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.65}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}header{height:94px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 5.5vw}.brand{text-decoration:none;color:var(--ink);font-family:Georgia,serif;letter-spacing:1px;font-size:26px;line-height:1.1}.brand span{color:var(--warm);font-style:italic;margin:0 3px}.brand small{display:block;font-family:Arial,sans-serif;letter-spacing:3px;font-size:9px;margin-top:9px}#userbar{display:flex;align-items:center;gap:18px}#username{color:var(--muted);font-size:12px}main{max-width:1440px;padding:0 5.5vw;margin:auto}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:550;letter-spacing:.035em;line-height:1.6}h2{font-size:18px;font-weight:600}h3{font-size:14px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.7px;color:var(--muted)}.muted{color:var(--muted)}.tiny{font-size:11px}.intro{display:flex;align-items:center;justify-content:space-between;padding:43px 0 26px;gap:20px}.intro h1{margin:8px 0}.intro .muted{font-size:13px}.notice{display:flex;align-items:center;gap:12px;background:#e9eee6;border:1px solid #dce4d6;border-radius:8px;padding:14px 18px;margin-bottom:26px;font-size:11px}.notice p{flex:1}.notice small{display:block;color:var(--muted);margin-top:3px}.notice b{font-weight:500;margin-left:16px}.dot{width:7px;height:7px;border-radius:50%;background:#6d8b64}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:28px;align-items:start}.card{background:var(--white);border:1px solid var(--line);border-radius:12px}.form-section{padding:25px 28px;margin-bottom:19px}.section-heading{display:flex;gap:14px;align-items:center;margin-bottom:22px}.section-heading p{color:var(--muted);font-size:11px;margin-top:3px}.section-heading .text-button{margin-left:auto;font-size:11px;white-space:nowrap}.step{border:1px solid #d5ddd3;display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:50%;color:#688060;font-family:Georgia,serif;font-size:13px}label{display:block;font-size:12px;font-weight:500;margin-bottom:15px}input:not([type=checkbox]),select,textarea{width:100%;display:block;border:1px solid #dce1d9;background:#fafbf8;border-radius:6px;padding:10px 12px;color:var(--ink);margin-top:7px;font-size:13px;min-height:42px;transition:border-color .15s}input::placeholder,textarea::placeholder{color:#afb5ae;font-size:12px}input:focus,select:focus,textarea:focus{outline:2px solid #d4e0cd;border-color:#859d79}select{padding-right:25px}input[type=checkbox]{width:16px;height:16px;accent-color:var(--green);flex:none}.check{display:flex;align-items:center;gap:8px;font-weight:400}.check input{margin:0}em{font-style:normal;font-size:9px;font-weight:400;color:#9d8569;margin-left:5px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.unit{position:relative}.unit input{padding-right:34px}.unit span{position:absolute;right:12px;top:11px;font-size:11px;color:var(--muted)}details{border-top:1px solid var(--line);padding:14px 0 0;margin:3px 0 17px}summary{cursor:pointer;color:#5b6d61;font-size:12px;list-style:none}summary:before{content:'＋';display:inline-block;margin-right:8px;color:#96a590}details[open]>summary:before{content:'−'}details[open]>summary{margin-bottom:13px}.hint{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:14px}.subheading{font-size:12px;color:#607058;margin:18px 0 10px}.channel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.channel-title label{margin:0}.amazon-title{border-top:1px solid var(--line);padding-top:21px;margin-top:23px}.pill{display:inline-block;background:#eff2eb;border:1px solid #e1e6dc;color:#738268;border-radius:4px;padding:3px 8px;font-size:10px;font-weight:400}.primary,.secondary{border-radius:6px;padding:11px 16px;display:inline-flex;justify-content:space-between;align-items:center;gap:18px;font-size:12px;font-weight:500}.primary{background:var(--green);border:1px solid var(--green);color:#fff}.primary:hover{background:#294636}.secondary{border:1px solid #d7ded1;background:#fff;color:var(--ink)}.secondary:hover{background:#f0f4ea}.text-button{background:none;border:0;padding:5px;color:#6e7e66;font-size:12px;text-decoration:none}.text-button:hover{color:#273f2a;text-decoration:underline}.results-column{position:sticky;top:20px}.result-panel{border:1px solid #d9e1d4;border-top:3px solid #718469;border-radius:10px;background:#fff;padding:24px}.result-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.result-panel h2{font-size:21px;margin-bottom:5px}.calculate-btn{width:100%;margin-top:22px}.empty-result{text-align:center;padding:44px 0 40px}.empty-result>span{font-family:Georgia,serif;font-size:47px;color:#c6d0c0}.empty-result p{font-size:11px;color:var(--muted);margin-top:8px}.disclaimer{border-top:1px solid var(--line);padding-top:16px;font-size:10px;color:var(--muted);line-height:1.8;margin-top:12px}.guide-card{padding:25px 24px}.guide-card>div{display:flex;align-items:center;gap:22px;margin-top:20px}.guide-card strong{font-family:Georgia,serif;font-weight:400;font-size:33px;color:#7c8b70;min-width:85px}.guide-card strong span{font-family:inherit;font-size:13px;margin-left:3px}.guide-card p{font-size:11px}.guide-card small{font-size:10px;color:var(--muted)}.channel-result{padding:20px 0 17px;border-bottom:1px solid var(--line)}.channel-result h3{display:flex;align-items:center;justify-content:space-between}.big-margin{font-size:43px;letter-spacing:-1px;font-family:Georgia,serif;font-weight:400;line-height:1.4;margin:9px 0 0}.big-margin small{font-size:19px;margin-left:3px}.profit-line{font-size:12px;margin-bottom:15px}.profit-line b{font-size:17px;font-weight:500;margin-left:8px}.status-standard,.status-ideal{color:#4a6b3b;background:#edf3e5}.status-review{color:#977022;background:#f9f1df}.status-below{color:#a05246;background:#fbede7}.negative{color:#a35244}.data-line{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:6px 0}.data-line strong{color:var(--ink);font-weight:500;text-align:right}.target-prices{padding:12px 14px;background:#f6f8f2;border-radius:7px;margin-top:13px}.payback{margin-top:12px}.mini-label{font-size:10px;color:var(--muted)}#startupResults{padding:15px 0}.warning-list{font-size:10px;color:#95773f;padding-left:17px}.warning-list li{margin:5px 0}.result-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:18px}.result-actions .secondary{font-size:11px}.error{font-size:12px;color:var(--red);margin:12px 0;white-space:pre-wrap}.error:empty{display:none}.mobile-actions{display:none}footer{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;padding:26px 0 30px;margin-top:20px;border-top:1px solid var(--line)}.login-layout{min-height:calc(100vh - 94px);display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:8%;padding:50px 0}.login-copy h1{font-size:32px;margin:20px 0}.login-copy>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:2}.login-note{display:flex;gap:24px;margin-top:40px;font-size:10px;color:#8b9b7d}.login-card{padding:35px;max-width:430px;width:100%;justify-self:end}.login-card h2{margin:10px 0}.login-card>.muted{font-size:12px;margin-bottom:27px}.login-card .primary{width:100%;margin:10px 0 18px}.login-card>.tiny{margin:0;text-align:center}dialog{border:1px solid var(--line);border-radius:12px;padding:28px;width:620px;max-width:calc(100vw - 32px);max-height:85vh;color:var(--ink)}dialog::backdrop{background:#29392b55;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.dialog-head button{font-size:24px}dialog>.muted{font-size:12px;margin-bottom:22px}.history-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:14px;align-items:center;justify-content:space-between}.history-row small{font-size:10px;color:var(--muted);display:block}.history-row strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#2d4639;color:white;padding:12px 22px;border-radius:8px;box-shadow:0 5px 20px #0002;z-index:10;font-size:12px;max-width:90vw}#copyDialog textarea{min-height:320px}button:focus-visible,summary:focus-visible{outline:3px solid #adbd9f;outline-offset:3px}
@media(min-width:1500px){main{padding:0 70px}}@media(max-width:1050px){main{padding:0 4vw}.workspace-grid{gap:18px;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr)}.form-section{padding:21px}.fields.three{grid-template-columns:repeat(2,minmax(0,1fr))}.notice b{display:block;margin:0}.login-layout{gap:35px}.login-copy h1{font-size:27px}}
@media(max-width:780px){header{height:79px;padding:0 5vw}.brand{font-size:20px}.brand small{font-size:7px}.workspace-grid{display:flex;flex-direction:column}.workspace-grid>form,.results-column{width:100%}.results-column{position:static}.intro{padding-top:28px;align-items:flex-start}.intro h1{font-size:23px}.intro .muted{font-size:11px}.intro>.secondary{font-size:10px;padding:8px;white-space:nowrap}.notice{padding:12px;align-items:flex-start}.notice .dot{margin-top:6px}.form-section{padding:20px}.section-heading p{font-size:10px}.section-heading h2{font-size:16px}.fields{gap:0 12px}#userbar{gap:8px}#username{display:none}.login-layout{display:flex;flex-direction:column;align-items:stretch;padding:30px 0;gap:25px}.login-copy h1{font-size:25px;margin:12px 0}.login-copy p{font-size:12px}.login-note{display:none}.login-card{max-width:none;padding:26px}.mobile-actions{display:block;margin:0 0 20px}.mobile-actions button{width:100%}.guide-card{display:none}.result-panel{padding:24px}.channel-result .big-margin{font-size:48px}.notice button{white-space:nowrap}.result-actions{justify-content:flex-start;gap:20px}}
@media(max-width:420px){.fields,.fields.three{grid-template-columns:1fr}.intro{display:block}.intro>.secondary{margin-top:14px}.brand{font-size:17px}.text-button{font-size:11px}.section-heading{gap:9px}.login-copy h1{font-size:23px}}
@media print{header,#calculator,.notice,.intro button,.guide-card,.result-actions,.calculate-btn,.mobile-actions,footer,#userbar{display:none!important}.workspace-grid{display:block}.results-column{position:static}.result-panel{border:0}.intro{padding:10px 0}.result-panel details{display:block}.workspace{display:block}main{padding:0}.channel-result{break-inside:avoid}}

.mode-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 3px 20px}.mode-bar b{font-size:13px}.mode-bar p{font-size:11px;color:var(--muted);margin-top:3px}.mode-bar label{min-width:170px;font-size:10px;margin:0}.mode-bar select{background:white;font-size:11px;padding:8px;min-height:36px}.simple-notice{background:#f3f6ee;border:1px solid #e2e8da;border-radius:7px;padding:14px 16px;margin:5px 0 22px;font-size:11px}.simple-notice>b{font-weight:500;color:#657a58}.simple-notice p{font-size:11px;color:var(--muted);margin-top:4px}.simple-notice details{margin:10px 0 0;padding-top:10px}.simple-notice summary{font-size:11px}.profile-settings{border-top:1px solid var(--line);padding-top:12px;margin-top:10px}.profile-settings h3{margin-bottom:10px}#settingsDialog{width:740px}@media(max-width:780px){.mode-bar{align-items:flex-start;flex-direction:column}.mode-bar label{width:100%}.simple-notice{padding:12px}}
.duty-tools{display:flex;gap:12px;align-items:center;margin-bottom:12px}.duty-results{max-height:560px;overflow-y:auto;overscroll-behavior:contain}.duty-candidate{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.duty-candidate strong,.official-candidate strong{font-size:12px;font-weight:600}.duty-candidate small{display:block;color:var(--muted);font-size:11px}.duty-candidate button{flex:none;font-size:11px}.official-candidate{padding:18px 14px;border:1px solid var(--line);border-radius:8px;background:#fafbf8;margin-bottom:14px}.official-candidate>a{font-size:11px;color:var(--green);display:inline-block;margin:8px 0 12px}.official-candidate .check{font-size:11px;line-height:1.8;align-items:flex-start}.official-candidate .check input{margin-top:3px}.tariff-conditions{font-size:11px;line-height:1.8;margin:10px 0;color:#617060}.tariff-conditions p{margin:6px 0;padding-left:10px;border-left:2px solid #d8e0d0}.tariff-conditions .leaf{font-weight:600;color:var(--ink)}.selected-duty{font-size:12px;background:#edf2e7;padding:13px;border-radius:6px;overflow-wrap:anywhere;margin:12px 0}.duty-search-panel>.hint{margin-bottom:0}#dutySearchStatus{margin-top:10px}@media(max-width:480px){.duty-candidate{align-items:flex-start;flex-direction:column}.duty-tools{flex-wrap:wrap}}

.tariff-info{font-size:11px;color:var(--muted);line-height:1.8}.tariff-source{display:inline-block;color:var(--green);font-size:11px;margin:3px 0 18px}.duty-tools{flex-wrap:wrap}

.registered-candidate{border:1px solid var(--line);border-radius:8px;margin:10px 0;padding:16px;background:#fff;align-items:flex-start}.registered-candidate:first-child{background:#f4f7ef;border-color:#b8c9ac}.duty-candidate-info{min-width:0}.registered-candidate strong{display:block;font-size:14px;margin:5px 0}.duty-rank{color:#607653;font-size:10px}.duty-match{margin-top:5px}.duty-condition{font-size:11px;line-height:1.8;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}.duty-candidate-action{display:flex;flex:none;flex-direction:column;align-items:flex-end;gap:10px}.duty-candidate-action b{font-size:12px;white-space:nowrap;font-weight:500}.duty-search-panel .official-search-details{margin:18px 0 0}.official-search-details .tariff-source{margin-bottom:0}@media(max-width:480px){.duty-candidate-action{width:100%;flex-direction:row;justify-content:space-between;align-items:center}.registered-candidate{gap:12px}}

.master-note{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:12px;background:#f6f5f1;padding:16px;border-radius:10px}.master-preview{width:100%;font-size:12px;border-collapse:collapse}.master-preview td,.master-preview th{padding:6px;border-bottom:1px solid #ddd;text-align:left}.history-row small{display:block}.result-actions{flex-wrap:wrap}
.input-guide{padding:13px 16px;margin:0 0 18px;background:#f3f6ee;border:1px solid #dce5d5;border-radius:7px;color:#52624c;font-size:12px;line-height:1.8}.input-guide p{margin:4px 0}.input-guide .text-button{display:block;margin-top:7px}em.required-badge,label>em:not(.optional-badge):not(.submit-badge){color:#9b4f35;background:#faf0e8;padding:2px 5px;border-radius:3px}em.submit-badge{color:#866521;background:#fbf2d9;padding:2px 5px;border-radius:3px}em.optional-badge{color:#697565;background:#eff2ed;padding:2px 5px;border-radius:3px}.status-priority{color:#3d6738;background:#edf3e5}.status-conditional{color:#866521;background:#fbf2d9}.research-dialog{width:1180px}.research-filters{display:flex;gap:14px;align-items:flex-end;margin:15px 0}.research-filters label{flex:1;margin:0}.research-filters button{margin-bottom:1px}.table-scroll{overflow:auto}.research-table{width:100%;border-collapse:collapse;margin-bottom:16px;font-size:12px;min-width:760px}.research-table th{background:#f3f6ee;text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:11px;font-weight:500}.research-table td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top}.research-table td:first-child{min-width:180px;max-width:260px;overflow-wrap:anywhere}.research-table small{display:block;color:var(--muted);font-size:10px;margin:5px 0 10px}.research-table .research-actions{min-width:150px}.research-actions button,.research-actions a{display:block;margin-bottom:8px;font-size:11px}.research-table .hint{font-size:10px;max-width:210px}.research-table .pill{white-space:nowrap}.research-table strong{font-weight:500}#submissionReadiness{padding:10px;background:#f3f6ee;border-radius:6px}#approvalChecks{font-size:11px}@media(max-width:780px){.research-filters{flex-wrap:wrap}.research-filters label{min-width:42%}.input-guide{font-size:11px}.research-dialog{padding:18px}.research-table{font-size:11px}}

/* 計算直後の次の操作を、結果の先頭に表示する。 */
.save-next-step{margin:20px 0 22px;padding:18px;border:2px solid #b8caa9;border-radius:10px;background:#f0f5e9}
.save-next-step .save-step-label{font-size:11px;font-weight:700;color:#526c42;letter-spacing:.08em;margin-bottom:4px}
.save-next-step h3{font-size:17px;line-height:1.5;margin-bottom:7px}
.save-next-step #saveHelp{font-size:12px;line-height:1.7;color:#55634e;margin-bottom:14px}
.save-main-button{width:100%;min-height:58px;justify-content:center;text-align:center;font-size:15px;font-weight:700;line-height:1.6;padding:14px 10px;box-shadow:0 3px 0 #203b2b}
#saveFeedback:empty{display:none}#saveFeedback{font-size:13px;font-weight:600;color:#355830;margin-top:13px}
.saved-list-button{width:100%;justify-content:center;margin-top:12px;font-size:13px;min-height:46px}
@media print{.save-next-step{display:none!important}}
