/* Builelib stylesheet layer: 90-overrides.css */

/* 青系インターフェイスと可読性の強化 */
header {
  height: 80px;
  border-bottom-color: #dce7f0;
  box-shadow: 0 2px 10px rgba(17, 68, 104, 0.04);
}

.header-spacer {
  height: 80px;
  flex-basis: 80px;
}

header a.header {
  padding: 10px 15px;
  color: #075f91;
  font-size: 14px;
  font-weight: 600;
}

header a.header:hover,
header a.header.is-current {
  color: var(--brand-dark);
  background: var(--brand-pale);
}

header a.nav-github,
header a.nav-github:hover {
  color: #075f91;
  background: transparent;
}

.language-switch {
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border-color: #cfdde9;
  border-radius: 7px;
}

.language-switch button {
  min-width: 54px;
  min-height: 38px;
  padding: 7px 13px;
  color: #263b50;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
}

.language-switch button + button {
  border-left: 1px solid #d7e3ee;
}

.language-switch button.active {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: none;
}

.brand-logo {
  filter: none;
}

.brand {
  width: 235px;
  height: 62px;
  position: relative;
  overflow: visible;
}

.brand-logo-frame {
  width: 235px;
  height: 62px;
}

.brand-logo {
  width: 330px;
  left: -45px;
  top: -4px;
}

.report-toolbar-brand,
.report-toolbar-brand .brand-logo-frame {
  width: 200px;
  height: 50px;
}

.report-toolbar-brand .brand-logo {
  width: 275px;
  left: -35px;
  top: 0;
}

.workspace {
  padding-top: 18px;
}

.container .top-row {
  gap: 16px;
}

.container .top-row > .tile {
  min-height: 366px;
}

.tile,
body #result-zone,
.comparison-zone {
  border-color: #d9e5ef;
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(18, 71, 108, 0.055);
}

body #drop-zone {
  padding: 30px 34px 24px;
  justify-content: center;
  gap: 19px;
  background: #fff;
  border: 1.5px dashed #74add0 !important;
  border-radius: 12px;
}

body #drop-zone:hover,
body #drop-zone:focus-visible,
body #drop-zone.highlight {
  border-color: var(--brand) !important;
  background: #f4faff;
  box-shadow: 0 12px 30px rgba(0, 107, 155, 0.12);
}

.upload-heading {
  text-align: center;
}

.upload-heading h1 {
  margin: 0;
  color: #0d1727;
  font-size: clamp(24px, 2vw, 29px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.upload-purpose {
  margin-top: 9px;
  color: #173e72;
  font-size: 14px;
  font-weight: 500;
}

#drop-message {
  margin: 0;
}

.upload-icon {
  width: 78px;
  height: 78px;
  color: var(--brand-dark);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.upload-icon svg {
  width: 72px;
  height: 72px;
  display: block;
  overflow: visible;
}

.upload-icon .excel-sheet {
  fill: #fff;
  stroke: #075f91;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.upload-icon .excel-fold,
.upload-icon .excel-line {
  fill: none;
  stroke: #075f91;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-icon .excel-badge {
  fill: #107c41;
}

.upload-icon .excel-x {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
}

.upload-icon.calculating {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  animation: none !important;
}

.calculation-loader {
  width: 66px;
  height: 66px;
  position: relative;
  display: grid;
  place-items: center;
}

.calculation-loader::before,
.calculation-loader::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid #168bb4;
  border-radius: 50%;
  opacity: 0;
  animation: calculation-pulse 1.8s ease-out infinite;
}

.calculation-loader::after {
  animation-delay: 0.6s;
}

.calculation-loader i {
  width: 23px;
  height: 34px;
  display: block;
  background: linear-gradient(160deg, #19b6c1, #075f91 72%);
  clip-path: polygon(56% 0, 12% 57%, 46% 57%, 34% 100%, 88% 42%, 55% 42%);
  filter: drop-shadow(0 0 7px rgba(20, 162, 184, 0.45));
  animation: calculation-glow 1.2s ease-in-out infinite alternate;
}

@keyframes calculation-pulse {
  0% { transform: scale(0.46); opacity: 0; }
  25% { opacity: 0.72; }
  100% { transform: scale(1.08); opacity: 0; }
}

@keyframes calculation-glow {
  from { transform: scale(0.92); opacity: 0.72; }
  to { transform: scale(1.06); opacity: 1; }
}

#drop-message strong,
#drop-message .upload-button {
  min-width: 240px;
  margin-top: 18px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(0, 89, 131, 0.18);
}

#drop-message > span:not(.upload-icon) {
  margin-top: 10px;
  color: #173e72;
  font-size: 13px;
  font-weight: 500;
}

.upload-template-link {
  color: #00689a;
  font-size: 13px;
  font-weight: 600;
}

body #history-zone {
  padding: 20px 22px;
}

.history-header {
  margin-bottom: 12px;
  padding: 0 0 12px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

body #history-zone h3,
body #result-zone h3 {
  position: relative;
  padding-left: 14px;
  color: #111820;
  font-size: 21px;
  font-weight: 700;
}

body #history-zone h3::before,
body #result-zone h3::before {
  content: "";
  width: 5px;
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  background: linear-gradient(180deg, var(--brand-dark), #1598c8);
  border-radius: 999px;
}

.card-kicker,
.section-kicker,
.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.history-actions button,
.history-actionbar button {
  min-height: 31px;
  padding: 6px 11px;
  color: var(--brand-dark);
  background: #fff;
  border-color: #bfd4e3;
  font-size: 11px;
  font-weight: 600;
}

.history-actionbar {
  margin: 0 0 0 auto;
  padding: 0;
  justify-content: flex-end;
  background: transparent;
  border: 0;
}

.history-actionbar > span {
  color: #36556d;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.history-table {
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  font-size: 14px;
}

.history-table th,
.history-table td {
  height: 50px;
  padding: 9px 10px;
  border-bottom-color: #e3ebf2;
}

.history-table thead th {
  height: 37px;
  color: #123f78;
  background: #f5f9fd;
  font-size: 13px;
  font-weight: 600;
}

.history-table .filename {
  color: #0d3c79;
  font-size: 14px;
  font-weight: 600;
}

.history-table .filename small {
  color: #506a80;
  font-size: 11px;
}

.history-table .file-name-only {
  max-width: calc(100% - 48px);
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-table .case-name {
  max-width: calc(100% - 48px);
}

.history-table .bei {
  color: #083b79;
  font-size: 14px;
}

.history-table .datetime {
  color: #304e69;
}

.history-table .status {
  background: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.history-table tbody tr:not(.history-slot-empty):hover,
.history-table tbody tr.selected {
  background: #eaf5fb;
}

.baseline-badge {
  color: #744f00;
  font-size: 9px;
}

body #result-zone {
  padding: 22px 20px 26px;
  background: #fff;
}

.result-heading {
  margin-bottom: 14px;
}

.tabs {
  padding: 0 12px 28px;
  overflow: visible;
  background: #fff;
  border-color: #dbe6ef;
  border-radius: 11px;
}

.tab_item {
  height: 52px;
  line-height: 52px;
  color: #123d77 !important;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
}

.tab_item:hover {
  color: var(--brand-dark) !important;
  background: #f1f8fc;
}

#result-zone .tabs input:checked + .tab_item {
  color: var(--brand-dark) !important;
  background: transparent;
  border-bottom: 4px solid var(--brand);
  box-shadow: none;
}

.tab_content {
  padding: 28px 0 0;
}

.summary-toolbar h4,
.breakdown-heading h4,
.chart-card-heading h4,
.breakdown-chart-card h4 {
  color: #121a24 !important;
  font-size: 18px;
  font-weight: 650;
}

.result-export-link,
.primary-link {
  padding: 9px 14px;
  color: var(--brand-dark);
  background: #edf7fc;
  border: 1px solid #b9d5e6;
  font-size: 12px;
}

.summary-kpi {
  min-height: 128px;
  padding: 20px 24px;
  background: #fff;
  border-color: #8bbbd7;
  border-left: 4px solid var(--brand);
  border-radius: 9px;
  box-shadow: 0 5px 16px rgba(0, 84, 127, 0.08);
}

.summary-kpi-bei {
  background: #fafdff;
  border-left-color: var(--brand-dark);
}

.summary-kpi-label {
  color: #182a3c;
  font-size: 13px;
  font-weight: 600;
}

.summary-kpi strong {
  color: #050b12;
  font-size: 41px;
  font-weight: 700;
}

.summary-kpi-unit,
.chart-card-heading > span {
  color: #304e69;
  font-size: 11px;
  font-weight: 500;
}

.summary-kpi-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-size: 10px;
}

.summary-chart-card,
.breakdown-chart-card,
.breakdown-table-card {
  border-color: #d2e1ec;
  border-radius: 9px;
}

.summary-chart {
  height: 330px;
}

.summary-dashboard-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: 260px minmax(300px, 0.95fr) minmax(450px, 1.55fr);
  gap: 12px;
}

.summary-dashboard-grid .summary-kpis {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-dashboard-grid .summary-kpi {
  min-height: 0;
  height: 100%;
  padding: 20px 16px 18px 82px;
  border: 1px solid #78b2d2;
  border-left-width: 1px;
  border-radius: 9px;
}

.summary-kpi-icon {
  width: 56px;
  height: 56px;
  position: absolute;
  left: 16px;
  top: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #0788ba);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 600;
  transform: translateY(-50%);
}

.summary-kpi-icon svg {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.summary-kpi-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.summary-kpi:not(.summary-kpi-bei):not(.summary-kpi-bei-no-pv) .summary-kpi-icon svg path {
  fill: currentColor;
  stroke: none;
}

.summary-kpi-bei-no-pv {
  background: #f6fbff;
  border-color: #88b8d2 !important;
}

.summary-kpi-bei-no-pv .summary-kpi-icon {
  background: linear-gradient(135deg, #08798e, #22a9b2);
}

.summary-dashboard-grid .summary-kpi-label {
  color: #101820;
  font-size: 14px;
}

.summary-dashboard-grid .summary-kpi strong {
  margin-top: 4px;
  font-size: 39px;
  line-height: 1;
}

.summary-dashboard-grid .summary-kpi-bei strong,
.summary-dashboard-grid .summary-kpi-bei-no-pv strong {
  transform: translateY(-4px);
}

.summary-dashboard-grid .summary-kpi:not(.summary-kpi-bei):not(.summary-kpi-bei-no-pv) strong {
  font-size: 31px;
}

.summary-dashboard-grid .summary-kpi-unit {
  right: 15px;
  bottom: 14px;
  color: #1d3347;
  font-size: 12px;
}

.summary-dashboard-grid .summary-kpi-badge {
  right: 14px;
  top: auto;
  bottom: 13px;
  font-size: 10px;
}

.summary-bei-secondary {
  margin-top: 9px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #24455f;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.summary-bei-secondary b {
  color: #07131d;
  font-size: 17px;
  font-weight: 700;
}

.summary-dashboard-grid .summary-chart-card {
  height: 100%;
  margin: 0;
  padding: 14px 14px 7px;
}

.summary-dashboard-grid .chart-card-heading {
  min-height: 47px;
  align-items: flex-start;
  gap: 5px;
  flex-direction: column;
}

.summary-dashboard-grid .chart-card-heading h4 {
  margin: 0;
  font-size: 17px;
}

.summary-dashboard-grid .chart-card-heading > span {
  color: #123f78;
  font-size: 11px;
}

.summary-dashboard-grid .summary-chart {
  height: 310px;
}

.shared-chart-legend {
  width: fit-content;
  margin: 0 0 0 auto;
  padding: 9px 18px;
  flex: 0 1 auto;
  background: #fff;
  border: 0;
  border-radius: 0;
}

#all_content .breakdown-energy-table {
  margin-top: 0;
}

.shared-chart-legend b {
  color: #172b3e;
  font-size: 14px;
  font-weight: 600;
}

.shared-chart-legend i {
  width: 13px;
  height: 13px;
}

.summary-footer-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.summary-footer-row p {
  margin: 0;
  color: #527391;
  font-size: 11px;
}

.summary-footer-row .result-export-link {
  min-width: 205px;
  justify-content: center;
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--brand);
  font-size: 13px;
}

table.result-table,
.breakdown-energy-table,
#result-zone table.ac-detail-table,
#result-zone table.tablesorter {
  font-size: 13px;
}

.summary-chart-card,
.breakdown-chart-card,
.breakdown-table-card {
  border: 1.5px solid #8eaec5;
  box-shadow: 0 4px 14px rgba(18, 63, 120, 0.07);
}

#result-zone .tab_content .table-scroll {
  border: 1px solid #9db7ca;
  border-radius: 8px;
  background: #fff;
}

#result-zone table.result-table,
#result-zone table.ac-detail-table,
#result-zone table.tablesorter {
  width: 100%;
  overflow: hidden;
  color: #14283a;
  background: #fff;
  border: 1px solid #9db7ca;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
}

#result-zone .table-scroll > table.result-table,
#result-zone .table-scroll > table.ac-detail-table,
#result-zone .table-scroll > table.tablesorter {
  border: 0;
  border-radius: 0;
}

#result-zone table.result-table thead th,
#result-zone table.ac-detail-table thead th,
#result-zone table.tablesorter thead th,
#result-zone table.result-table thead td,
#result-zone table.ac-detail-table thead td,
#result-zone table.tablesorter thead td {
  color: #103e72;
  background: #e9f2f8 !important;
  border-bottom: 1px solid #8faec4;
  font-weight: 700;
}

#result-zone table.result-table thead,
#result-zone table.result-table thead tr,
#result-zone table.ac-detail-table thead,
#result-zone table.ac-detail-table thead tr,
#result-zone table.tablesorter thead,
#result-zone table.tablesorter thead tr {
  background: #e9f2f8 !important;
}

#result-zone table.result-table tbody th,
#result-zone table.ac-detail-table tbody th,
#result-zone table.tablesorter tbody th {
  color: #173d5d;
  background: #f3f8fb;
  font-weight: 600;
}

#result-zone table.result-table th,
#result-zone table.result-table td,
#result-zone table.ac-detail-table th,
#result-zone table.ac-detail-table td,
#result-zone table.tablesorter th,
#result-zone table.tablesorter td {
  border-right: 1px solid #c3d3df;
  border-bottom: 1px solid #c3d3df;
}

#result-zone table.result-table tr > :last-child,
#result-zone table.ac-detail-table tr > :last-child,
#result-zone table.tablesorter tr > :last-child {
  border-right: 0;
}

#result-zone table.result-table tbody tr:last-child > *,
#result-zone table.ac-detail-table tbody tr:last-child > *,
#result-zone table.tablesorter tbody tr:last-child > * {
  border-bottom: 0;
}

/* 全設備の詳細表はソート用テーマの余白を消し、角までヘッダー色を通す */
#result-zone .detail-table-scroll table.tablesorter.tablesorter-default,
#result-zone .detail-band-group table.tablesorter.tablesorter-default {
  margin-top: 0;
  margin-bottom: 0;
}

#result-zone .detail-table-scroll table thead tr:first-child > :first-child,
#result-zone .detail-band-group table thead tr:first-child > :first-child {
  border-top-left-radius: 7px;
}

#result-zone .detail-table-scroll table thead tr:first-child > :last-child,
#result-zone .detail-band-group table thead tr:first-child > :last-child {
  border-top-right-radius: 7px;
}

#result-zone .detail-table-scroll table tbody tr:last-child > *,
#result-zone .detail-band-group table tbody tr:last-child > * {
  border-bottom: 1px solid #9db7ca;
}

/* 詳細表群をまとめる外側の枠線は表示しない */
#result-zone .detail-band-group {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* CSV出力ボタンは全設備で表のスクロール枠と分離する */
#result-zone .detail-table-scroll + .csv-actions {
  margin-top: 10px;
  margin-bottom: 18px;
}

#result-zone table.result-table tbody tr:nth-child(even) td,
#result-zone table.ac-detail-table tbody tr:nth-child(even) td,
#result-zone table.tablesorter tbody tr:nth-child(even) td {
  background: #f8fbfd;
}

table.result-table th,
table.result-table td,
#result-zone table.ac-detail-table th,
#result-zone table.ac-detail-table td,
#result-zone table.tablesorter th,
#result-zone table.tablesorter td {
  padding: 10px 12px;
}

.comparison-heading h2 {
  color: #111820;
  font-size: 23px;
}

.comparison-heading > button,
.comparison-loading,
.comparison-error {
  font-size: 12px;
}

.comparison-kpi {
  background: #f8fbfe;
  border-color: #cfdfeb;
}

.comparison-kpi h3 {
  font-size: 14px;
}

.comparison-kpi > div > span,
.comparison-kpi dt,
.comparison-kpi dd small,
.comparison-kpi > p {
  font-size: 10px;
}

.comparison-kpi dd {
  font-size: 25px;
}

.comparison-panel-heading h3 {
  color: #111820;
  font-size: 16px;
}

.comparison-panel-heading span,
.comparison-energy-row > small {
  color: #405b73;
  font-size: 10px;
}

.comparison-energy-row > strong {
  font-size: 12px;
}

.comparison-energy-row > span {
  font-size: 13px;
}

.comparison-table {
  font-size: 12px;
}

.comparison-table th,
.comparison-table td {
  color: #13283c;
}

.comparison-annual-panel .comparison-kpi-grid {
  padding: 0 18px 0 62px;
  grid-template-columns: repeat(var(--comparison-columns), minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.comparison-annual-panel .comparison-kpi {
  min-width: 0;
  height: 100%;
}

.comparison-annual-panel .comparison-kpi > div {
  min-height: 66px;
  display: block;
}

.comparison-annual-panel .comparison-kpi h3,
.comparison-table thead th {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.comparison-annual-panel .comparison-kpi > div > span {
  margin-top: 6px;
  display: inline-flex;
}

.comparison-kpi-reference {
  background: #edf6fb !important;
  border-top: 3px solid var(--brand) !important;
}

.comparison-table {
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
}

.comparison-table thead th {
  color: #123f78;
  background: #e9f2f8;
  font-size: 13px;
  font-weight: 700;
}

.comparison-table thead th small {
  display: block;
  margin-top: 3px;
  color: #45647d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.comparison-table tbody th,
.comparison-table tbody td {
  font-size: 14px;
}

.case-edit-dialog label:not(.case-baseline-option),
.case-baseline-option,
.case-dialog-actions button {
  color: #243e55;
  font-size: 12px;
}

.case-edit-dialog input[type="text"],
.case-edit-dialog textarea {
  color: #10243a;
  background: #f8fbfe;
  border-color: #bfd3e2;
  font-size: 14px;
}

.footerFixed > p,
.footerFixed > ul,
.footerFixed > ul li,
.about-intro p,
.guide-hero-copy > p,
.page-hero p,
.tool-hero p,
.standard-section p,
.standard-section li {
  color: #304c64;
  font-size: 15px;
}

.standard-page p,
.guide-page p {
  color: #304c64;
  font-size: 15px;
}

.standard-page li,
.guide-page li {
  color: #304c64;
  font-size: 14px;
}

.guide-primary-button,
.guide-secondary-button,
.page-hero-actions a,
.download-card > a,
.subtool-card > a {
  font-size: 14px;
}

.guide-primary-button {
  background: linear-gradient(135deg, var(--brand-dark), #0787b9);
  box-shadow: 0 10px 24px rgba(0, 103, 151, 0.19);
}

.guide-dashboard {
  border-color: #cedfea;
  box-shadow: 0 28px 70px rgba(10, 74, 116, 0.14);
}

.guide-dashboard::before {
  background: rgba(35, 145, 198, 0.13);
}

.guide-dashboard-top,
.guide-dashboard-kpis small,
.guide-dashboard-kpis b,
.use-case-number {
  color: #405b73;
  font-size: 10px;
}

.guide-dashboard-kpis > div,
.use-case-visual {
  background: #f1f8fc;
}

.guide-dashboard-kpis strong {
  font-size: 31px;
}

.use-case-card h3,
.guide-steps h3,
.guide-results-grid h3 {
  font-size: 19px;
}

.guide-flow-section,
.standard-section-soft {
  background: #eef6fb;
  border-color: #d8e6f0;
}

.guide-steps li {
  border-color: #d3e1ec;
}

.guide-steps li > span,
.step-upload i {
  background: var(--brand-dark);
}

.result-tab-sample {
  font-size: 11px;
}

.page-hero::after {
  background: rgba(0, 107, 155, 0.08);
}

.standard-section-heading p,
.tool-side-note p {
  font-size: 15px;
}

.report-body {
  background: #edf4f9;
}

.report-cover-header {
  width: auto;
  height: auto;
  position: static;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.report-toolbar-actions > a,
.report-toolbar-actions > button {
  color: var(--brand-dark);
  background: #f3f8fc;
  border-color: #cbdde9;
  font-size: 12px;
}

.report-toolbar-actions > button {
  color: #fff;
  background: var(--brand);
  white-space: nowrap;
}

.report-cover-header > div small,
.report-cover-header > p small,
.report-meta dt,
.report-section-heading small,
.report-kpis article > span,
.report-kpis small,
.report-shared-legend span,
.report-document-footer p,
.report-document-footer > span {
  color: #405b73;
  font-size: 10px;
}

.report-cover-header > p,
.report-meta dd,
.report-memo-block h2,
.report-memo-block p {
  color: #172b3e;
  font-size: 12px;
}

.report-section-heading h2 {
  color: #111820;
  font-size: 18px;
}

.report-shared-legend span {
  color: #17364d;
  font-size: 13px;
  font-weight: 600;
}

.report-kpis article {
  background: #f3f9fd;
  border-left-color: var(--brand);
}

.report-kpis strong {
  color: #080f18;
  font-size: 30px;
}

.report-energy-table {
  font-size: 13px;
}

.report-energy-table thead th {
  color: #17364d;
  background: #edf5fa;
}

footer {
  margin-top: auto;
  padding: 9px 0;
  color: #fff;
  background: #0b3b54;
  border-top: 1px solid #0b3b54;
}

.footer-inner {
  min-height: 24px;
  align-items: center;
  flex-direction: row;
}

.footer-brand {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

p.footer,
p.footer a.footer {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

@media screen and (max-width: 1160px) {
  .brand,
  .brand-logo-frame { width: 195px; }
  .brand-logo { width: 270px; left: -38px; top: 0; }

  .history-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-actionbar {
    width: 100%;
    margin-left: 0;
    align-items: flex-start;
    justify-content: space-between;
  }

  .summary-dashboard-grid {
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  }

  .summary-dashboard-grid .monthly-chart-card {
    grid-column: 1 / -1;
  }

  .shared-chart-legend {
    width: fit-content;
    margin-left: auto;
  }
}

@media screen and (max-width: 760px) {
  .upload-heading h1 { font-size: 21px; }
  .brand,
  .brand-logo-frame { width: 150px; overflow: hidden; }
  .brand-logo { width: 210px; left: -29px; top: 7px; }
  .tab_item {
    width: calc(100% / 3);
    height: 44px;
    line-height: 44px;
    font-size: 13px;
  }
  .history-actionbar { align-items: flex-start; flex-direction: column; }
  body #history-zone {
    min-height: 510px;
    height: auto;
    padding-bottom: 22px;
    overflow: visible;
  }
  #history-list {
    min-height: 306px;
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: visible;
  }
  .history-table { min-width: 560px; }
  .summary-dashboard-grid { grid-template-columns: 1fr; }
  .summary-dashboard-grid .monthly-chart-card { grid-column: auto; }
  .summary-dashboard-grid .summary-kpis { min-height: 330px; }
  .summary-dashboard-grid .summary-chart { height: 275px; }
  .summary-footer-row { align-items: stretch; flex-direction: column; }
  .summary-footer-row .shared-chart-legend { width: 100%; margin-left: 0; }
  .summary-footer-row .result-export-link { width: 100%; }
  .footer-inner { align-items: center; justify-content: center; flex-direction: row; }
  .comparison-zone { padding: 20px; }
  .comparison-energy-row { grid-template-columns: minmax(0,1fr) 64px; gap: 6px; }
  .comparison-energy-row > strong { grid-column: 1 / -1; }
  .comparison-energy-bar { grid-column: 1; }
  .comparison-energy-row > span { grid-column: 2; }
  .comparison-energy-row > small { display: none; }
  .report-toolbar { height: auto; min-height: 66px; padding: 7px 14px; }
  .report-toolbar-brand { width: 135px; }
  .report-toolbar-brand .brand-logo-frame { width: 150px; }
  .report-toolbar-brand .brand-logo { width: 210px; left: -29px; top: 7px; }
  .report-toolbar-actions > a { display: none; }
  .report-document { width: 100%; margin: 0; padding: 28px 18px; box-shadow: none; }
  .report-meta, .report-kpis { grid-template-columns: 1fr; }
  .report-meta dd { white-space: normal; }
  .report-baseline-badge { position: static; display: inline-flex; margin-bottom: 12px; }
}

@media print {
  @page { size: A4; margin: 8mm; }
  .report-body { background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report-toolbar { display: none !important; }
  .report-document { width: 100%; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  .report-cover-header { padding-bottom: 10px; }
  .report-cover-header > div span { font-size: 20px; }
  .report-cover-header > div small { font-size: 8px; }
  .report-title-section { padding: 15px 0 12px; break-after: avoid; }
  .report-title-section h1 { margin: 2px 0 9px; font-size: 23px; }
  .report-meta { padding: 8px 12px; }
  .report-meta dt { font-size: 8px; }
  .report-meta dd { margin-top: 1px; font-size: 10px; }
  .report-section { break-inside: avoid; }
  .report-performance-section,
  .report-results-section,
  .report-chart-section { padding: 11px 0; }
  .report-section-heading { margin-bottom: 8px; gap: 8px; }
  .report-section-heading > span { width: 23px; height: 23px; font-size: 8px; }
  .report-section-heading h2 { font-size: 14px; }
  .report-kpis { gap: 6px; }
  .report-kpis article { min-height: 78px; padding: 9px 12px; }
  .report-kpis article > span { font-size: 9px; }
  .report-kpis strong { margin-top: 1px; font-size: 24px; line-height: 1.1; }
  .report-kpis small { right: 10px; bottom: 8px; font-size: 8px; }
  .report-energy-table { font-size: 11px; }
  .report-energy-table th,
  .report-energy-table td { padding: 5px 8px; }
  .report-results-section { break-after: page; }
  .report-chart-section { break-before: auto; }
  .report-chart { height: 255px; }
  .report-shared-legend { margin-top: 2px; gap: 3px 10px; }
  .report-shared-legend span { font-size: 9px; }
  .report-shared-legend i { width: 8px; height: 8px; }
  .report-document-footer { margin-top: 10px; }
}

/* フッターと初期画面の案内 */
.empty-result-guide {
  min-height: 420px;
  margin-top: 12px;
  padding: 38px clamp(28px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  column-gap: clamp(34px, 5vw, 76px);
  row-gap: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7fbfc 0%, #fff 52%, #edf7f5 100%);
  border-color: #b9d2d8;
}

.empty-result-guide[hidden] {
  display: none !important;
}

.empty-result-guide-copy {
  position: relative;
  z-index: 1;
}

.empty-result-guide-copy h2 {
  max-width: 650px;
  margin: 9px 0 14px;
  color: #113b4d;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.empty-result-guide-copy p {
  max-width: 650px;
  margin: 0 0 24px;
  padding: 0;
  color: #3d5964;
  font-size: 14px;
  line-height: 1.9;
}

.empty-result-guide-visual {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.empty-result-guide-visual:hover {
  transform: translateY(-3px);
}

.empty-result-guide .guide-dashboard {
  width: 100%;
  min-height: 315px;
  padding: 18px;
  transform: rotate(0.5deg);
  box-shadow: 0 24px 54px rgba(11, 72, 75, 0.14);
}

.empty-result-guide .guide-dashboard-chart {
  height: 142px;
  gap: clamp(36px, 5vw, 64px);
}

.empty-result-guide .guide-chart-reference { height: 115px; }
.empty-result-guide .guide-chart-design { height: 92px; }

.empty-result-updates {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid #c9dce5;
}

.empty-result-updates-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.empty-result-updates-heading h3 {
  margin: 2px 0 0;
  color: #113b4d;
  font-size: 22px;
  font-weight: 650;
}

.empty-result-updates-heading .latest-version {
  margin-left: 0;
  color: #075b7e;
  background: #e1f1f8;
  font-size: 11px;
}

.empty-result-updates-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.empty-result-updates-list article {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d4e3ea;
  border-radius: 10px;
}

.empty-result-updates-list time {
  color: #08769a;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.empty-result-updates-list p {
  margin: 0;
  padding: 0;
  color: #304f60;
  font-size: 14px;
  line-height: 1.7;
}

.empty-result-updates-list article.update-history-extra {
  display: none;
}

.empty-result-updates-list.is-expanded article.update-history-extra {
  display: grid;
}

.update-history-toggle {
  min-height: 42px;
  margin: 16px 0 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #075b7e;
  background: #fff;
  border: 1px solid #9ec5d6;
  border-radius: 8px;
  font: 650 14px/1.4 "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.update-history-toggle:hover {
  color: #fff;
  background: #075b7e;
  border-color: #075b7e;
}

.update-history-toggle:focus-visible {
  outline: 3px solid rgba(8, 118, 154, 0.25);
  outline-offset: 2px;
}

.updates-less-label {
  display: none;
}

.update-history-toggle[aria-expanded="true"] .updates-more-label {
  display: none;
}

.update-history-toggle[aria-expanded="true"] .updates-less-label {
  display: inline;
}

.update-history-toggle-icon {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.update-history-toggle[aria-expanded="true"] .update-history-toggle-icon {
  transform: rotate(180deg);
}

@media screen and (max-width: 900px) {
  .empty-result-guide {
    grid-template-columns: 1fr;
  }

  .empty-result-guide-visual {
    width: min(100%, 590px);
    margin: 0 auto;
  }
}

@media screen and (max-width: 560px) {
  .empty-result-guide {
    min-height: auto;
    padding: 28px 20px;
    gap: 26px;
  }

  .empty-result-guide-copy h2 {
    font-size: 24px;
  }

  .empty-result-guide-copy p {
    font-size: 13px;
  }

  .empty-result-guide .guide-dashboard {
    min-height: 280px;
    transform: none;
  }

  .empty-result-guide .guide-dashboard-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .empty-result-guide .guide-dashboard-kpis > div {
    min-height: 76px;
  }

  .empty-result-guide .guide-dashboard-kpis strong {
    font-size: 22px;
  }

  .empty-result-updates-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .empty-result-updates-list {
    grid-template-columns: 1fr;
  }

  .empty-result-updates-list article {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .update-history-toggle {
    width: 100%;
  }
}

/* 「Builelibとは」の見出しを2行で表示 */
.guide-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: clamp(42px, 5vw, 72px);
}

.guide-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(34px, 3.5vw, 46px);
}

.guide-title-line {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.82em;
}

/* 入力サンプルは読みやすい2列表示 */
.sample-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sample-list a {
  min-height: 72px;
  padding: 14px 18px;
  grid-template-columns: 66px 1fr 24px;
}

.sample-list span {
  font-size: 13px;
}

.sample-list b {
  font-size: 14px;
  font-weight: 600;
}

.sample-list i {
  font-size: 15px;
}

/* 追加したサブツールのイラスト */
.subtool-card-body {
  display: flex;
  flex-direction: column;
}

.subtool-card-body > a {
  margin-top: auto;
  align-self: flex-start;
}

.subtool-graph-visual {
  gap: 13px;
}

.subtool-graph-axis {
  width: 150px;
  height: 112px;
  position: relative;
  border-left: 2px solid #396978;
  border-bottom: 2px solid #396978;
}

.subtool-graph-axis::before {
  content: "";
  position: absolute;
  inset: 10px 8px 7px 8px;
  background: repeating-linear-gradient(to bottom, transparent 0 22px, rgba(57, 105, 120, 0.12) 23px);
}

.subtool-graph-axis i {
  width: 10px;
  height: 10px;
  position: absolute;
  z-index: 1;
  background: #e88033;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(17, 62, 76, 0.22);
}

.subtool-graph-axis i:nth-child(1) { left: 21px; bottom: 20px; }
.subtool-graph-axis i:nth-child(2) { left: 54px; bottom: 48px; }
.subtool-graph-axis i:nth-child(3) { left: 90px; bottom: 38px; }
.subtool-graph-axis i:nth-child(4) { right: 12px; top: 16px; }

.subtool-graph-axis span {
  position: absolute;
  inset: 13px 10px 10px 13px;
  border-top: 3px solid #188aa0;
  transform: skewY(-27deg) translateY(36px);
}

.subtool-graph-visual strong,
.subtool-graph-visual em {
  padding: 7px 9px;
  color: #fff;
  background: #396978;
  border-radius: 7px;
  font-size: 10px;
  font-style: normal;
}

.subtool-graph-visual em { background: #168d82; }
.subtool-graph-visual b { color: #789299; }

.subtool-curve-visual svg {
  width: min(78%, 330px);
  height: auto;
  overflow: visible;
}

.subtool-curve-visual .curve-axis {
  fill: none;
  stroke: #396978;
  stroke-width: 2;
}

.subtool-curve-visual .curve-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.subtool-curve-visual .curve-line-primary { stroke: #168d82; }
.subtool-curve-visual .curve-line-secondary { stroke: #e88033; }
.subtool-curve-visual circle { fill: #fff; stroke: #168d82; stroke-width: 3; }

@media screen and (max-width: 980px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 620px) {
  .sample-list {
    grid-template-columns: 1fr;
  }

  .guide-title-line {
    font-size: 0.76em;
  }
}
