.lma-market-analysis{--lma-ink:#0f2540;--lma-border:#e3e3e3;--lma-soft:#f3f5f7;--lma-text:#1c1c1c;--lma-muted:#526168;color:var(--lma-text);font:400 16px/1.8 Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;background:#fdfdfd}
.lma-market-analysis *{box-sizing:border-box}
.lma-app{max-width:1100px;margin:1.5rem auto;padding:clamp(16px,3vw,30px);border:1px solid var(--lma-border);border-radius:16px;background:#fdfdfd}
.lma-head .lma-eyebrow{max-width:640px;margin:0 auto 16px;color:var(--lma-muted);font:400 12px/1.8 Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;letter-spacing:.08em;text-align:center}.lma-head .lma-page-title{margin:0;color:var(--lma-text);font-size:40px;line-height:1.4;font-weight:400;text-align:center;letter-spacing:normal}.lma-head .lma-page-lead{max-width:640px;margin:24px auto 1.2rem;color:var(--lma-muted);font-size:16px;line-height:1.9;font-weight:500;text-align:center;letter-spacing:normal}
.lma-filter-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:12px}.lma-basic-filter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lma-period-note{margin:5px 0 0;color:var(--lma-muted);font-size:.82rem}
.lma-filter,.lma-options{position:relative;min-width:0;margin:0;padding:14px;border:1px solid var(--lma-border);border-radius:12px}
.lma-filter legend,.lma-options legend{padding:0 6px;color:var(--lma-text);font-weight:500}
.lma-filter>label{display:inline-flex;flex-direction:column;width:calc(50% - 7px);gap:4px}.lma-filter>label+label{margin-left:10px}
.lma-filter>label span,.lma-add-row label{font-size:.88rem;color:var(--lma-muted)}.lma-filter input,.lma-add-row select{width:100%;min-height:42px;padding:8px;border:1px solid var(--lma-border);border-radius:5px;background:#fdfdfd;color:var(--lma-text);font:inherit}
.lma-filter select{width:100%;min-height:42px;padding:8px;border:1px solid var(--lma-border);border-radius:5px;background:#fdfdfd;color:var(--lma-text);font:inherit}
.lma-quarter{padding:6px 12px}.lma-quarter-bounds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lma-quarter-bound{display:flex;flex-direction:column;min-width:0;gap:2px;margin:0}.lma-quarter-bound>span:first-child{font-size:.82rem;line-height:1;color:var(--lma-muted)}.lma-quarter-controls{display:flex;min-width:0;gap:4px}.lma-quarter-controls input{flex:0 0 72px;width:72px;max-width:72px;min-width:0;min-height:42px;padding:8px}.lma-quarter-controls select{flex:1 1 auto;width:0;min-width:86px;min-height:42px;padding:8px;border:1px solid var(--lma-border);border-radius:5px;background:#fdfdfd;color:var(--lma-text);font:inherit}
.lma-filter .lma-single{width:calc(100% - 78px);padding-right:8px}.lma-basic-filter-list .lma-single{width:100%;padding-right:0}.lma-filter .lma-single span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.lma-remove{min-height:44px;padding:8px 18px;border:1px solid var(--lma-ink);border-radius:999px;background:#fdfdfd;color:var(--lma-ink);font-family:inherit;font-size:16px;line-height:1.6;font-weight:400;transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease}.lma-filter>.lma-remove{vertical-align:bottom}
.lma-add-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}.lma-add-row label{flex-basis:100%;font-weight:700}.lma-add-row select{width:min(100%,340px);min-height:44px}
.lma-button{min-height:44px;padding:8px 18px;border:1px solid var(--lma-ink);border-radius:999px;background:var(--lma-ink);color:#fff;font-family:inherit;font-size:16px;line-height:1.6;font-weight:400;transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease}
.lma-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));grid-auto-rows:1fr;gap:8px 12px;margin:14px 0}.lma-options legend{grid-column:1/-1}.lma-options label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px}.lma-options input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--lma-ink)}
.lma-submit{margin-top:4px}.lma-help,.lma-small{font-size:.9rem;color:var(--lma-muted)}.lma-status{min-height:1.5em;margin-top:12px}.lma-status.is-error{color:#9b241c;font-weight:700}
.lma-status .lma-fetch-cancel{margin-left:10px;vertical-align:middle}
.lma-result{margin-top:20px}.lma-result h3{margin:1.25rem 0 .5rem;color:var(--lma-text);font-size:24px;line-height:1.4;font-weight:400}.lma-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));grid-auto-rows:1fr;gap:12px}.lma-stat-grid article{padding:14px;border:1px solid var(--lma-border);border-radius:12px;background:var(--lma-soft)}.lma-stat-grid h4{margin:0;color:var(--lma-text)}.lma-stat-grid .lma-small{margin:.2rem 0}.lma-stat-grid dl{margin:.5rem 0 0}.lma-stat-grid dl div{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--lma-border);padding:4px 0}.lma-stat-grid dt{font-weight:600}.lma-stat-grid dd{margin:0;text-align:right}
.lma-range,.lma-notice,.lma-demo,.lma-type-warning{padding:12px;border-radius:6px;background:var(--lma-soft);overflow-wrap:anywhere}.lma-notice,.lma-type-warning{border-left:4px solid var(--lma-muted)}.lma-demo{border-left:4px solid var(--lma-muted);font-weight:500}.lma-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--lma-border);border-radius:6px}.lma-table-wrap table{width:100%;min-width:760px;border-collapse:collapse;font-size:.94rem}.lma-table-wrap th,.lma-table-wrap td{padding:8px 10px;border-bottom:1px solid var(--lma-border);text-align:left;vertical-align:top}.lma-table-wrap th{background:var(--lma-soft);color:var(--lma-muted);white-space:nowrap}.lma-table-wrap tbody tr:last-child td{border-bottom:0}.lma-credit{margin-top:18px;padding-top:12px;border-top:1px solid var(--lma-border);font-size:.82rem;color:var(--lma-muted)}.lma-credit p{margin:.35rem 0}
.lma-chart-choice{display:grid;grid-template-columns:auto minmax(150px,260px);align-items:center;gap:8px;margin:10px 0}.lma-chart-choice select{width:100%;min-height:42px;padding:8px;border:1px solid var(--lma-border);border-radius:5px;background:#fdfdfd;color:var(--lma-text);font:inherit}.lma-charts{display:grid;grid-template-columns:1fr;gap:18px;margin:16px 0}.lma-chart{min-width:0;margin:0}.lma-chart h4{margin:0 0 5px;color:var(--lma-text);font-size:1rem;font-weight:500}.lma-chart svg{display:block;width:100%;height:auto;overflow:visible;color:var(--lma-ink)}.lma-chart text{fill:currentColor;font:12px Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}.lma-chart-axis{stroke:currentColor;stroke-width:1;opacity:.4}.lma-chart-bar{fill:currentColor;opacity:.28}.lma-chart-dot{fill:currentColor}.lma-chart-mean{stroke:currentColor;stroke-width:1.5;stroke-dasharray:3 3}.lma-chart-median{stroke:currentColor;stroke-width:2}.lma-chart-note{margin:5px 0;color:var(--lma-muted);font-size:.9rem}.lma-quarter-table{width:100%;min-width:0!important;border-collapse:collapse}.lma-quarter-table th,.lma-quarter-table td{padding:4px 8px;border-bottom:1px solid var(--lma-border);text-align:left}
@media(max-width:840px){.lma-basic-filter-list,.lma-quarter-bounds{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.lma-quarter{padding:11px}.lma-quarter-bounds{gap:8px}.lma-quarter-controls input{flex:0 0 100px;width:100px;max-width:100px}.lma-quarter-controls select{flex:1 1 auto;min-width:140px}}
@media(max-width:520px){.lma-market-analysis{font-size:15px;line-height:1.8}.lma-app{padding:14px;border-radius:16px}.lma-head .lma-page-title{font-size:32px;line-height:1.4}.lma-head .lma-page-lead{margin-top:16px;font-size:15px;line-height:1.9}.lma-result h3{font-size:20px;line-height:1.4}.lma-filter{padding:11px}.lma-options{gap:8px 12px}.lma-add-row select{flex:1 1 65%}.lma-add-row .lma-button{flex:1}.lma-market-analysis input,.lma-market-analysis select{font-size:16px}}
.lma-result-actions{display:flex;justify-content:flex-end;gap:8px;margin:12px 0}.lma-pdf{min-height:44px;padding:8px 18px}
@media(max-width:520px){.lma-result-actions{justify-content:flex-start}.lma-pdf{width:100%}}

/* Focus uses an inset line so it follows the existing control edge without changing size. */
.lma-button:focus-visible,.lma-remove:focus-visible,.lma-market-analysis input:not([type="checkbox"]):focus-visible,.lma-market-analysis select:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--lma-ink)}
.lma-button:focus-visible{box-shadow:inset 0 0 0 2px #fff}
.lma-options input:focus-visible{outline:none}
.lma-options label{border:1px solid transparent;border-radius:8px;transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease}
.lma-options label.is-selected{background:var(--lma-soft);color:var(--lma-ink);box-shadow:inset 0 0 0 2px var(--lma-ink);transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease,box-shadow 0s}
.lma-options label:has(input:focus-visible){box-shadow:inset 0 0 0 2px var(--lma-ink);text-decoration:underline;text-underline-offset:3px}
@media(hover:hover) and (pointer:fine){.lma-button:not(:disabled):hover{background:#26364b;color:#fff;border-color:#26364b}.lma-remove:not(:disabled):hover{background:var(--lma-soft);color:var(--lma-ink);border-color:var(--lma-ink)}.lma-options label:not(:has(input:disabled)):hover{background:var(--lma-soft);color:var(--lma-ink);border-color:var(--lma-ink)}.lma-options label.is-selected:not(:has(input:disabled)):hover{background:var(--lma-soft);color:var(--lma-ink);border-color:transparent}}
.lma-button:not(:disabled):active{background:#0b1b30;color:#fff;border-color:#0b1b30}.lma-remove:not(:disabled):active,.lma-options label:not(:has(input:disabled)):active{background:#e9edf1;color:var(--lma-ink);border-color:var(--lma-ink)}.lma-options label.is-selected:not(:has(input:disabled)):active{background:#e9edf1;color:var(--lma-ink);border-color:transparent}
.lma-market-analysis input[aria-invalid="true"],.lma-market-analysis select[aria-invalid="true"]{border-color:#9b241c}.lma-market-analysis input[aria-invalid="true"]:focus-visible,.lma-market-analysis select[aria-invalid="true"]:focus-visible{box-shadow:inset 0 0 0 2px var(--lma-ink)}
.lma-filter label:has(input:focus-visible)>span,.lma-quarter-bound:has(input:focus-visible)>span:first-child{ text-decoration:underline;text-underline-offset:3px }
.lma-filter:has(input:focus-visible)>legend,.lma-filter:has(select:focus-visible)>legend,.lma-chart-choice:has(select:focus-visible),.lma-add-row label:has(+select:focus-visible){text-decoration:underline;text-underline-offset:3px}
@media(prefers-reduced-motion:reduce){.lma-button,.lma-remove,.lma-options label,.lma-options label.is-selected{transition:none}}

/* WordPress/SWELL integration for pages that contain the market-analysis shortcode. */
 .lma-host-page .l-content{padding-top:72px!important;margin-bottom:64px!important}
 .lma-host-page .l-mainContent{font-family:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:16px;font-weight:400;line-height:1.8;color:#1c1c1c}
 .lma-host-page .c-pageTitle{margin:0 0 24px!important;padding:0!important;font-family:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:40px!important;font-weight:400!important;line-height:1.4!important;color:#1c1c1c!important;text-align:center!important;letter-spacing:normal!important}
 .lma-host-page .c-pageTitle__inner{padding:0!important;font:inherit!important;color:inherit!important;letter-spacing:normal!important}
 .lma-host-page .c-pageTitle::before, .lma-host-page .c-pageTitle::after, .lma-host-page .c-pageTitle__inner::before, .lma-host-page .c-pageTitle__inner::after{display:none!important;content:none!important}
 .lma-host-page .lma-market-analysis-eyebrow{width:min(100%,640px);margin:0 auto 16px!important;font-family:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:12px;font-weight:400;line-height:1.8;letter-spacing:.08em;text-align:center;color:#526168}
 .lma-host-page .post_content{margin-top:0!important}
 .lma-host-page .post_content>p.wp-block-paragraph:empty{display:none!important;margin:0!important;padding:0!important}
 .lma-host-page .lma-market-analysis{margin:0!important}
 .lma-host-page .lma-app{max-width:none;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
 .lma-host-page .lma-market-analysis[data-show-heading="false"] .lma-app>h2, .lma-host-page .lma-market-analysis[data-show-heading="false"] .lma-head h2{display:none!important}
 .lma-host-page .lma-head .lma-page-lead{max-width:640px;margin:0 auto 24px!important;font-family:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:16px;font-weight:500;line-height:1.9;text-align:center;letter-spacing:normal;color:#526168}
 .lma-host-page .lma-app>[role="status"]{max-width:640px;margin:0 auto 24px!important;font-family:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:16px;font-weight:500;line-height:1.9;text-align:center;color:#526168}
 .lma-host-page .p-breadcrumb{padding-top:16px!important;padding-bottom:16px!important}
@media(max-width:767px){
 .lma-host-page .l-content{padding:48px 24px 0!important;margin-bottom:48px!important}
 .lma-host-page .l-mainContent{font-size:15px;line-height:1.8}
 .lma-host-page .c-pageTitle{margin-bottom:16px!important;font-size:32px!important;line-height:1.4!important}
 .lma-host-page .lma-head .lma-page-lead, .lma-host-page .lma-app>[role="status"]{margin-bottom:16px!important;font-size:15px;line-height:1.9}
}
