* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --line: #e7e9ee;
  --line-strong: #d8dde6;
  --text: #202b35;
  --text-soft: #68747f;
  --text-faint: #8b959e;
  --brand: #102a43;
  --brand-soft: #f3f7fc;
  --radius: 10px;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.site-header::before,
.site-header::after {
  content: none !important;
}

.header-inner {
  width: min(1140px, calc(100% - 40px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand img {
  display: block;
  width: 134px;
  height: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  font-size: 11px;
  color: var(--text-faint);
}

.breadcrumbs a { color: var(--text-soft); }

.hero {
  padding: 26px 0 20px;
  border-bottom: 1px solid #f0f2f6;
}

.hero-inner {
  max-width: 900px;
}

.eyebrow,
.step-heading > span {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero h1 .title-main {
  display: block;
  font-weight: 600;
}

.hero h1 .title-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.66em;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-break-mobile {
  display: none;
}

.lead {
  margin: 0;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.8;
  color: #374454;
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: pretty;
}

.hero-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-soft);
}

.step-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
}

.step-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.step-nav b {
  color: #2b3442;
  font-size: 11px;
}

.section { padding: 58px 0; }
.input-section { padding-top: 48px; }
.comparison-section {
  background: var(--bg-soft);
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
}
.result-section { padding-top: 52px; }
.knowledge-section { padding-top: 54px; }

.step-heading { margin-bottom: 18px; }

.step-heading > span {
  display: block;
  margin-bottom: 4px;
}

.step-heading h2 {
  margin: 0;
  font-size: clamp(25px, 2.8vw, 33px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.input-shell {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.field-block {
  margin: 0;
  border: 0;
  padding: 0;
  max-width: 760px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
}

.field-helper {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

select:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid #8ea9cb;
  outline-offset: 2px;
}

.divider {
  border-top: 1px solid var(--line);
  margin: 18px 0 16px;
}

.selection-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #202939;
}

.selection-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr 1fr;
  gap: 14px;
}

.selection-item small {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  color: var(--text-soft);
}

.selection-item strong {
  display: block;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.input-status {
  margin: 10px 0 0;
  min-height: 22px;
  font-size: 12px;
  color: #2a4469;
}

.comparison-flow {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 10px;
}

.flow-card {
  padding: 12px 0 14px;
  border-bottom: 1px solid #ecf0f4;
}

.flow-card:last-of-type { border-bottom: 0; }

.flow-card .tag {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.flow-card h3 {
  margin: 5px 0 2px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.flow-card .capacity {
  margin: 0;
  font-size: 16px;
  color: #2e3847;
  font-weight: 600;
}

.flow-card .muted {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.flow-arrow {
  height: 14px;
  color: #8a95a6;
  font-size: 15px;
  line-height: 1;
}

.result-panel {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.result-empty {
  font-size: 15px;
  color: var(--text-soft);
}

.result-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.result-head small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.result-head strong {
  font-size: clamp(20px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.result-col {
  padding: 0;
}

.result-col .label {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.result-col h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.result-col .ah {
  margin-top: 4px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.result-col .muted {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.result-subtitle {
  margin: 18px 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.around-table {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.around-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  border-top: 1px solid #edf1f6;
}

.around-row:first-child { border-top: 0; }

.around-key {
  padding: 8px 8px 8px 0;
  font-size: 11px;
  color: var(--text-soft);
}

.around-val {
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.badge-pick {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #d8e4f5;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  color: #2a4f82;
  background: #f3f7fd;
}

.candidate-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe2ec;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  color: #273142;
}

.notice {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-soft);
}

.consult-link-wrap {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #dde4ee;
  border-radius: 8px;
  background: #f7f9fc;
}

.consult-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #31445c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.consult-link:hover {
  color: #1f3147;
}

.result-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.button.primary {
  background: #183151;
  color: #fff;
}

.button.primary:disabled {
  background: #b7c1ce;
  cursor: not-allowed;
}

.button.ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: #2f3948;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.k-num {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.knowledge-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.45;
}

.knowledge-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.site-footer {
  min-height: 62px;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-soft);
}

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 35, 0.44);
}

.modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 24px));
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.modal-head {
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 0;
  font-size: 16px;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#pdfFrame {
  width: 100%;
  height: min(74vh, 760px);
  border: 0;
}

.modal-actions {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  justify-content: flex-end;
}

.pdf-source {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 1080px;
  background: #fff;
  color: #111827;
  padding: 32px;
}

.pdf-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid #e8edf4;
  padding-bottom: 14px;
}

.pdf-logo { width: 152px; }

.pdf-header p {
  margin: 0;
  font-size: 11px;
  letter-spacing: .12em;
  color: #6b7280;
}

.pdf-header h1 {
  margin: 6px 0 0;
  font-size: 30px;
  letter-spacing: -.02em;
}

.pdf-section {
  margin-top: 16px;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 14px;
}

.pdf-section h2 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .1em;
  color: #4b5563;
}

.pdf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pdf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.pdf-box {
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  padding: 10px;
  min-height: 84px;
}

.pdf-box small {
  display: block;
  font-size: 11px;
  color: #6b7280;
}

.pdf-box strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.pdf-list { display: grid; gap: 8px; }

.pdf-item {
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.pdf-item b {
  font-size: 12px;
  color: #6b7280;
  margin-right: 6px;
}

.selection-grid-spec {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.selection-grid-spec .selection-item {
  grid-column: span 2;
}

.selection-grid-spec .selection-item-half {
  grid-column: span 3;
}

.selection-subtitle {
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #4f5b6c;
}

.selection-extra {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.extra-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfc;
  padding: 10px 12px;
}

.extra-block small {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--text-soft);
}

.extra-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #2d3644;
}

.result-head-sub {
  margin: 7px 0 0;
  font-size: 12px;
  color: #4b5564;
}

.result-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.result-col-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf1f6;
}

.result-col .label {
  margin: 0;
}

.result-status {
  margin: 4px 0 0;
  font-size: 12px;
  color: #4e5868;
}

.candidate-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.candidate-card {
  border: 1px solid #dde4ee;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  min-height: 228px;
  display: grid;
  grid-template-rows: auto auto minmax(54px, auto) auto minmax(34px, auto);
  align-content: start;
}

.candidate-card.is-main {
  border-color: #b8c7dd;
  box-shadow: 0 8px 20px rgba(28, 55, 90, 0.12);
  background: #fff;
}

.candidate-card.is-muted {
  border-color: #e4e8ef;
  background: #f6f8fb;
}

.candidate-role {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #768295;
  text-transform: uppercase;
}

.candidate-brand {
  margin: 5px 0 1px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #4d5867;
  text-transform: uppercase;
}

.candidate-card h4 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  display: flex;
  align-items: flex-start;
}

.candidate-capacity {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.candidate-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: #5f6978;
  line-height: 1.5;
}

.candidate-note.is-empty {
  visibility: hidden;
}

.candidate-card.is-muted .candidate-role,
.candidate-card.is-muted .candidate-brand,
.candidate-card.is-muted h4,
.candidate-card.is-muted .candidate-capacity,
.candidate-card.is-muted .candidate-note {
  color: #8a93a1;
}

.pdf-grid-spec {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pdf-grid-spec .pdf-box {
  grid-column: span 2;
}

.pdf-grid-spec .pdf-box-half {
  grid-column: span 3;
}

.pdf-subinfo {
  margin-top: 10px;
}

.pdf-subinfo .pdf-box strong {
  font-size: 14px;
  line-height: 1.5;
}

.pdf-around-wrap {
  display: grid;
  gap: 12px;
}

.pdf-around-line {
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: 10px;
}

.pdf-around-title {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.pdf-candidate-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.pdf-candidate-card {
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  min-height: 170px;
  display: grid;
  grid-template-rows: auto auto minmax(44px, auto) auto minmax(30px, auto);
  align-content: start;
}

.pdf-candidate-card.is-muted {
  border-color: #e5e9f0;
  background: #f5f7fb;
}

.pdf-candidate-card.is-main {
  border-color: #b6c6dd;
}

.pdf-candidate-role,
.pdf-candidate-brand {
  margin: 0;
  font-size: 10px;
  letter-spacing: .11em;
  color: #6f7b8c;
  text-transform: uppercase;
}

.pdf-candidate-brand {
  margin-top: 4px;
}

.pdf-candidate-card h4 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.pdf-candidate-capacity {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.pdf-candidate-note {
  margin: 5px 0 0;
  font-size: 11px;
  color: #5f6978;
  line-height: 1.45;
}

.pdf-candidate-note.is-empty {
  visibility: hidden;
}

.pdf-candidate-card.is-muted .pdf-candidate-role,
.pdf-candidate-card.is-muted .pdf-candidate-brand,
.pdf-candidate-card.is-muted h4,
.pdf-candidate-card.is-muted .pdf-candidate-capacity,
.pdf-candidate-card.is-muted .pdf-candidate-note {
  color: #8f99a7;
}

@media (max-width: 1024px) {
  .wrap { width: min(1140px, calc(100% - 30px)); }
  .input-grid { grid-template-columns: 1fr; }
  .selection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-grid-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-grid-spec .selection-item,
  .selection-grid-spec .selection-item-half { grid-column: span 1; }
  .result-columns { grid-template-columns: 1fr; gap: 18px; }
  .candidate-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdf-grid-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdf-grid-spec .pdf-box,
  .pdf-grid-spec .pdf-box-half { grid-column: span 1; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap,
  .header-inner { width: min(1140px, calc(100% - 24px)); }

  .site-header { position: static; }

  .brand img { width: 122px; }

  .fx-back-link {
    margin: 0.75rem 0 0 0.75rem;
    font-size: 1.05rem;
  }

  .breadcrumbs {
    padding-top: 8px;
    font-size: 9px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hero {
    padding: 16px 0 12px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .hero h1 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: clamp(33px, 9.8vw, 38px);
    line-height: 1.13;
    letter-spacing: -0.02em;
  }

  .hero h1 .title-main {
    font-weight: 600;
  }

  .hero h1 .title-sub {
    margin-top: 7px;
    font-size: 0.74em;
    font-weight: 500;
  }

  .hero-break-mobile {
    display: inline;
  }

  .lead {
    font-size: 14px;
    line-height: 1.72;
  }

  .hero-note {
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.6;
  }

  .step-nav {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .section { padding: 36px 0; }
  .step-heading { margin-bottom: 14px; }
  .step-heading h2 { font-size: 24px; line-height: 1.28; }

  .selection-grid { grid-template-columns: 1fr; gap: 10px; }
  .selection-grid-spec { grid-template-columns: 1fr; }
  .selection-grid-spec .selection-item,
  .selection-grid-spec .selection-item-half { grid-column: span 1; }
  .selection-extra { grid-template-columns: 1fr; gap: 8px; }

  .selection-item strong { font-size: 20px; }

  .comparison-flow {
    padding: 15px;
    gap: 8px;
  }

  .flow-card h3 {
    font-size: clamp(24px, 8.8vw, 30px);
    line-height: 1.1;
  }

  .flow-card .capacity { font-size: 14px; }

  .candidate-track {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .candidate-card h4 {
    font-size: clamp(21px, 7.5vw, 28px);
  }

  .around-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 7px 0;
  }

  .around-key,
  .around-val {
    padding: 0;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    justify-content: center;
    min-height: 44px;
  }

  .consult-link-wrap {
    margin-top: 14px;
    padding: 10px;
  }

  .consult-link {
    min-height: 44px;
    font-size: 15px;
  }

  .knowledge-grid { grid-template-columns: 1fr; }

  .knowledge-card {
    padding: 11px;
  }

  .knowledge-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .knowledge-card p {
    font-size: 11px;
    line-height: 1.55;
  }

  .site-footer {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
}

/* =========================================================
   ALKALI CAPACITY CONVERSION — FINAL DESIGN SYSTEM
   Screen + PDF visual refinement. Logic is intentionally untouched.
   ========================================================= */
:root {
  --color-navy: #102a43;
  --color-navy-deep: #071d31;
  --color-navy-soft: #294863;
  --color-text: #202b35;
  --color-muted: #68747f;
  --color-subtle: #8b959e;
  --color-border: #d9dfe3;
  --color-border-strong: #aeb8c0;
  --color-background: #f4f3f0;
  --color-surface: #fffefb;
  --color-accent: #c92838;
  --font-sans: "Helvetica Neue", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", Georgia, serif;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background: rgba(255,254,251,.96);
}

.header-inner {
  min-height: 76px;
  width: min(1180px, calc(100% - 48px));
}

.brand img { width: 132px; }

.hero {
  padding: clamp(54px, 7vw, 92px) 0 clamp(42px, 5vw, 68px);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
}

.hero-inner { max-width: 1180px; }

.eyebrow,
.step-heading > span {
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}

.hero h1 {
  color: var(--color-navy-deep);
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .015em;
  margin: 12px 0 18px;
}

.hero h1 .title-main { font-weight: 500; }
.hero h1 .title-sub { display:none; }

.lead {
  max-width: 760px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-note {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 16px;
}

.step-nav {
  border-top: 0;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,254,251,.96);
}

.step-nav a {
  min-height: 58px;
  color: var(--color-subtle);
  font-size: 10px;
  letter-spacing: .18em;
}

.step-nav a:first-child b,
.step-nav a:first-child span { color: var(--color-navy); }

.section { padding: clamp(54px, 7vw, 88px) 0; }
.input-section { padding-top: clamp(52px, 6vw, 76px); }
.comparison-section { background: #eef1f3; }

.wrap {
  width: min(1180px, calc(100% - 48px));
}

.step-heading {
  align-items: baseline;
  border-bottom: 1px solid var(--color-border-strong);
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
}

.step-heading > span { margin: 0; }

.step-heading h2 {
  color: var(--color-navy-deep);
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: .01em;
}

.input-shell,
.result-panel {
  border-top: 0;
  padding-top: 0;
}

.input-shell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(16,42,67,.06);
  padding: clamp(24px, 4vw, 44px);
}

.field-block { max-width: none; }
.field-label {
  color: var(--color-navy-soft);
  font-size: 12px;
  letter-spacing: .1em;
}

select {
  min-height: 56px;
  border-color: var(--color-border-strong);
  border-radius: 2px;
  background: #fff;
  font-size: 16px;
}

.divider { margin: 28px 0 24px; }
.selection-label { font-size: 15px; }
.selection-grid-spec { gap: 0 28px; }
.selection-item {
  padding: 14px 0;
  border-bottom: 1px solid #e7eaed;
}
.selection-item strong {
  color: var(--color-navy-deep);
  font-family: var(--font-sans);
  font-weight: 600;
}
.selection-subtitle { margin-top: 28px; }
.selection-extra { gap: 14px; }
.extra-block {
  background: #f7f8f7;
  border: 1px solid #e1e5e7;
  border-radius: 2px;
  padding: 14px 16px;
}

.comparison-flow {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 0;
}

.flow-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 12px 34px rgba(16,42,67,.05);
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-border);
}

.flow-card h3 { font-family: var(--font-serif); }
.flow-arrow { text-align:center; color: #8a949d; font-size: 20px; }

.result-head {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--color-border-strong);
  margin-bottom: 28px;
}
.result-head strong {
  font-family: var(--font-serif);
  color: var(--color-navy-deep);
}
.result-head-sub { color: var(--color-muted); }

.result-columns { gap: 24px; }
.result-col {
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 20px;
  background: var(--color-surface);
  box-shadow: 0 14px 40px rgba(16,42,67,.05);
}
.result-col.mse { border-top: 3px solid #2e6fb0; }
.result-col.cl { border-top: 3px solid var(--color-accent); }
.result-col-head { margin-bottom: 16px; }
.result-col .label {
  color: var(--color-navy-deep);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
}
.result-status { color: var(--color-muted); }

.candidate-track { gap: 8px; }
.candidate-card {
  min-height: 248px;
  border-radius: 2px;
  border: 1px solid #dfe4e8;
  padding: 14px;
  background: #fff;
  box-shadow: none;
}

.candidate-card.is-muted {
  background: #e9ecee;
  border-color: #d9dee1;
  opacity: .86;
}

.candidate-card.is-main {
  border: 2px solid #315f8f;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,42,67,.10);
}

.result-col.cl .candidate-card.is-main { border-color: var(--color-accent); }

.candidate-role {
  color: #5f6b75;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.candidate-card.is-muted .candidate-role::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #7f8991;
  vertical-align: 1px;
}
.candidate-card.is-main .candidate-role { color: #24558b; }
.result-col.cl .candidate-card.is-main .candidate-role { color: #a72d3a; }

.candidate-brand { color: #69737d; }
.candidate-card h4 {
  color: var(--color-navy-deep);
  font-family: var(--font-sans);
  font-weight: 700;
}
.candidate-card.is-muted h4 { color: #68737c; }
.candidate-capacity { color: #2d3944; }
.candidate-card.is-muted .candidate-capacity { color: #68737c; }
.candidate-note { color: #67727c; }

.notice {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border-strong);
  background: #f8f9f9;
}

.consult-link-wrap {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}
.consult-link {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #b9c5d0;
  border-radius: 2px;
  background: #fff;
  color: var(--color-navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16,42,67,.05);
}
.consult-link:hover {
  border-color: var(--color-navy);
  background: #f8fafc;
}

.result-actions {
  margin-top: 18px;
  justify-content: space-between;
}
.button { border-radius: 2px; min-height: 48px; }
.button.primary { background: var(--color-navy); }

.knowledge-grid { gap: 14px; }
.knowledge-card {
  border-radius: 2px;
  padding: 18px;
  background: var(--color-surface);
}
.knowledge-card h3 { font-family: var(--font-serif); font-weight: 500; }

.site-footer {
  min-height: 80px;
  background: var(--color-background);
}

/* ---------- PDF ---------- */
.pdf-source {
  width: 1120px;
  padding: 48px 54px 40px;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-sans);
}

.pdf-header {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--color-navy);
}
.pdf-logo { width: 150px; }
.pdf-header p {
  margin: 0 0 7px;
  color: #7b8791;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.pdf-header h1 {
  margin: 0;
  color: var(--color-navy-deep);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: .01em;
}

.pdf-section {
  margin-top: 24px;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.pdf-section h2 {
  margin: 0 0 12px;
  color: var(--color-navy-deep);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .01em;
  padding-bottom: 8px;
  border-bottom: 1px solid #cfd6dc;
}

.pdf-grid-spec { gap: 0; border-top: 1px solid #dfe4e8; border-left: 1px solid #dfe4e8; }
.pdf-grid-spec .pdf-box,
.pdf-grid-spec .pdf-box-half {
  grid-column: span 2;
  min-height: 70px;
  border: 0;
  border-right: 1px solid #dfe4e8;
  border-bottom: 1px solid #dfe4e8;
  border-radius: 0;
  padding: 12px 14px;
  background: #f7f8f8;
}
.pdf-grid-spec .pdf-box-half { grid-column: span 3; background:#fff; }
.pdf-box small { color: #78838d; font-size: 10px; letter-spacing: .06em; }
.pdf-box strong { color: var(--color-navy-deep); font-size: 15px; }
.pdf-subinfo .pdf-box { background:#fff; }

#pdfCompare .pdf-grid-2 { gap: 16px; }
#pdfCompare .pdf-box {
  min-height: 128px;
  border-radius: 0;
  border: 1px solid #dfe4e8;
  padding: 16px 18px;
  background: #f7f9fb;
  border-left: 5px solid #2e6fb0;
}
#pdfCompare .pdf-box:last-child { border-left-color: var(--color-accent); background:#fcf9f9; }
#pdfCompare .pdf-box strong {
  display:block;
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
}

.pdf-conclusion {
  padding: 18px 20px;
  border: 1px solid #cfded8;
  border-left: 5px solid #2f6b57;
  background: #f1f7f4;
}
.pdf-conclusion strong {
  display:block;
  color: #173f34;
  font-size: 16px;
  margin-bottom: 5px;
}
.pdf-conclusion p { margin: 8px 0 0; color:#586a65; font-size:12px; }

.pdf-item {
  border: 0;
  border-bottom: 1px solid #e1e5e8;
  border-radius: 0;
  padding: 8px 0;
  font-size: 11px;
  color: #59656f;
}

.pdf-footer {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #cfd6dc;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #7b8791;
  font-size: 9px;
  letter-spacing: .04em;
}
.pdf-footer strong { color: var(--color-navy-deep); letter-spacing:.16em; }

@media (max-width: 760px) {
  .header-inner, .wrap { width: min(1180px, calc(100% - 28px)); }
  .hero { padding: 40px 0 34px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); line-height:1.22; }
  .lead { font-size: 14px; line-height:1.8; max-width:none; }
  .step-heading { gap: 10px; align-items: baseline; }
  .step-heading h2 { font-size: 28px; }
  .input-shell { padding: 22px 18px; }
  .comparison-flow { grid-template-columns: 1fr; gap: 8px; }
  .flow-arrow { transform: rotate(0); height:auto; }
  .result-col { padding: 14px; }
  .candidate-track { grid-template-columns: 1fr; gap: 8px; }
  .candidate-card { min-height: 0; }
  .candidate-card.is-before { order: 1; }
  .candidate-card.is-main { order: 2; }
  .candidate-card.is-after { order: 3; }
  .consult-link { width:100%; justify-content:center; }
  .result-actions { display:grid; grid-template-columns:1fr; }
}

/* Final layout adjustment: keep the four-step navigation aligned to the same centered content width as the input section. */
.step-nav {
  width: min(1180px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  .step-nav {
    width: min(1180px, calc(100% - 28px));
    overflow-x: hidden;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* PDF比較結果：構成情報は容量・時間率の次の行へ固定表示 */
#pdfCompare .pdf-comparison-composition {
  display: inline-block;
  margin-top: 4px;
  font-size: .78em;
  line-height: 1.45;
  font-weight: 600;
  white-space: nowrap;
}


/* =========================================================
   FACILINEX HEADER ALIGNMENT
   Match the Battery Capacity Calculation page: centered
   logo, same scale, same header height and back-link position.
   ========================================================= */
.site-header.app-header {
  align-items: center;
  background: rgba(255, 254, 251, 0.94);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  min-height: 7rem;
  padding: 1rem max(1.5rem, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header.app-header .app-brand {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  margin: 0 auto;
  padding: 0;
}

.site-header.app-header .app-brand img {
  display: block;
  height: auto;
  width: 15rem;
}

.site-header.app-header .back-link {
  color: var(--color-navy-soft);
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 500;
  left: 1rem;
  line-height: 1.5;
  margin: 0;
  position: absolute;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
}

.site-header.app-header .back-link:hover,
.site-header.app-header .back-link:focus-visible {
  color: var(--color-navy);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .site-header.app-header {
    min-height: 7rem;
    padding: 1rem;
  }

  .site-header.app-header .app-brand img {
    width: 12rem;
  }

  .site-header.app-header .back-link {
    left: 0.9rem;
    font-size: 0.8rem;
  }
}


/* =========================================================
   PDF PREVIEW MODAL
   Match the Battery Capacity Calculation preview UI.
   Scope is limited to the PDF preview modal only.
   ========================================================= */
body.pdf-modal-open { overflow: hidden; }

.modal {
  padding: 0;
  align-items: center;
  justify-items: center;
}

.modal-backdrop {
  background: rgba(16, 31, 48, 0.50);
}

.modal-dialog {
  width: min(980px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 60px rgba(16, 31, 48, 0.18);
  display: flex;
  flex-direction: column;
}

.modal-head {
  min-height: 0;
  padding: 30px 30px 26px;
  border-bottom: 1px solid #dfe4e8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 auto;
}

.modal-title-wrap { min-width: 0; }

.modal-eyebrow {
  margin: 0 0 10px;
  color: #c7353d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .20em;
  line-height: 1.3;
}

.modal-head h2 {
  margin: 0;
  color: #102a43;
  font-family: var(--font-serif, "Noto Serif JP", serif);
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.modal-filename {
  margin: 8px 0 0;
  color: #74808b;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-close {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin: 0;
  border: 5px double #d7dde1;
  border-radius: 50%;
  background: #fff;
  color: #102a43;
  font-family: Arial, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close:hover { background: #f8fafb; }

.pdf-frame-wrap {
  min-height: 0;
  padding: 0;
  background: #dfe5e9;
  border-bottom: 1px solid #dfe4e8;
  overflow: hidden;
  flex: 1 1 auto;
}

#pdfFrame {
  display: block;
  width: 100%;
  height: min(68vh, 900px);
  border: 0;
  background: #fff;
}

.modal-body {
  padding: 24px 30px 28px;
  background: #fff;
  flex: 0 0 auto;
}

.modal-help {
  margin: 0 0 22px;
  color: #74808b;
  font-size: 15px;
  line-height: 1.8;
}

.modal-actions {
  border-top: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-actions .button {
  width: 100%;
  min-height: 62px;
  justify-content: center;
  border-radius: 2px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
}

.modal-actions .button.ghost {
  background: #fff;
  border: 1px solid #d5dce1;
  color: #102a43;
}

.modal-actions .button.primary {
  background: #102a43;
  border: 1px solid #102a43;
  color: #fff;
}

@media (max-width: 760px) {
  .modal {
    align-items: center;
  }

  .modal-dialog {
    width: calc(100% - 34px);
    max-height: calc(100vh - 34px);
  }

  .modal-head {
    padding: 30px 30px 24px;
  }

  .modal-eyebrow {
    font-size: 11px;
    margin-bottom: 9px;
  }

  .modal-head h2 {
    font-size: 31px;
  }

  .modal-filename {
    font-size: 14px;
  }

  .modal-close {
    width: 68px;
    height: 68px;
    font-size: 40px;
  }

  #pdfFrame {
    height: 61vh;
  }

  .modal-body {
    padding: 22px 30px 28px;
  }

  .modal-help {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .modal-actions {
    gap: 14px;
  }

  .modal-actions .button {
    min-height: 62px;
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .modal-head {
    padding: 25px 24px 20px;
    gap: 14px;
  }

  .modal-head h2 { font-size: 28px; }
  .modal-filename { font-size: 12px; }

  .modal-close {
    width: 60px;
    height: 60px;
    font-size: 35px;
  }

  #pdfFrame { height: 57vh; }

  .modal-body { padding: 18px 24px 24px; }
  .modal-help { font-size: 13px; }
}

/* =========================================================
   PDF REPORT — A4 report design
   PDF専用。アプリ本体のレイアウトには影響しない。
   ========================================================= */
.pdf-source {
  width: 1120px;
  box-sizing: border-box;
  padding: 40px 50px 32px;
  background: #fffefb;
  color: var(--color-text);
  font-family: var(--font-sans);
}

.pdf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--color-border-strong);
}
.pdf-logo { width: 142px; height: auto; }
.pdf-header-title { text-align: right; }
.pdf-header-title p {
  margin: 0 0 3px;
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: .12em;
}
.pdf-header-title h1 {
  margin: 0;
  color: var(--color-navy-deep);
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
}
.pdf-header-title span {
  display: block;
  margin-top: 7px;
  color: var(--color-muted);
  font-size: 10px;
}

.pdf-section { margin-top: 20px; padding: 0; border: 0; }
.pdf-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-strong);
}
.pdf-section-heading .pdf-eyebrow { margin-bottom: 2px; }
.pdf-eyebrow {
  margin: 0 0 5px;
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.1;
}
.pdf-section-heading h2 {
  margin: 0;
  color: var(--color-navy-deep);
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
}
.pdf-section-heading > p {
  margin: 0 0 2px;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.5;
}

/* 01 比較条件 */
.pdf-condition-card {
  display: grid;
  grid-template-columns: 1.45fr .72fr 1.05fr 1.55fr;
  border: 1px solid #dbe1e5;
  background: #fff;
}
.pdf-condition-primary,
.pdf-condition-item {
  min-height: 88px;
  padding: 14px 16px;
  box-sizing: border-box;
}
.pdf-condition-item { border-left: 1px solid #dbe1e5; }
.pdf-condition-card small {
  display: block;
  margin-bottom: 7px;
  color: #7c8992;
  font-size: 9px;
  letter-spacing: .08em;
}
.pdf-condition-primary strong {
  display: block;
  color: var(--color-navy-deep);
  font-family: var(--font-serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.05;
}
.pdf-condition-primary span {
  display: block;
  margin-top: 6px;
  color: var(--color-navy-deep);
  font-size: 12px;
  font-weight: 600;
}
.pdf-condition-item strong {
  display: block;
  color: var(--color-navy-deep);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.pdf-condition-use strong { color: #526574; font-weight: 500; }

/* 02 容量比較 */
.pdf-comparison-flow {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 8px;
  align-items: center;
}
.pdf-flow-card {
  min-height: 92px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #dbe1e5;
  background: #fff;
}
.pdf-flow-card small {
  display: block;
  margin-bottom: 5px;
  color: #7d8991;
  font-size: 9px;
  letter-spacing: .08em;
}
.pdf-flow-card strong {
  display: block;
  color: var(--color-navy-deep);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
}
.pdf-flow-card span {
  display: block;
  margin-top: 6px;
  color: #304254;
  font-size: 11px;
  font-weight: 600;
}
.pdf-flow-existing { border-left: 3px solid #aab4bb; }
.pdf-flow-mse { border-left: 3px solid #2e6fb0; }
.pdf-flow-vision { border-left: 3px solid var(--color-accent); }
.pdf-flow-arrow {
  color: #7e909f;
  font-size: 24px;
  text-align: center;
}

/* 03 選定結果 */
.pdf-brand-grid {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pdf-brand-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe1e5;
  background: #fff;
}
.pdf-brand-mse { border-top: 3px solid #2e6fb0; }
.pdf-brand-vision { border-top: 3px solid var(--color-accent); }
.pdf-brand-head {
  padding: 0 0 8px;
  margin: 0 0 9px;
  border-bottom: 1px solid #e1e5e8;
}
.pdf-brand-head h3 {
  margin: 0;
  color: var(--color-navy-deep);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
}
.pdf-brand-head p {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: 9px;
}
.pdf-candidate-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
}
.pdf-candidate-card {
  min-width: 0;
  min-height: 132px;
  box-sizing: border-box;
  border: 1px solid #dfe4e8;
  padding: 10px 9px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pdf-candidate-card.is-muted { background: #e9edef; border-color: #d9dee1; }
.pdf-candidate-card.is-main {
  border: 2px solid #315f8f;
  box-shadow: 0 7px 16px rgba(16,42,67,.07);
}
.pdf-brand-vision .pdf-candidate-card.is-main { border-color: var(--color-accent); }
.pdf-candidate-role {
  margin: 0;
  color: #5f6b75;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}
.pdf-candidate-card.is-muted .pdf-candidate-role::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #7f8991;
  vertical-align: 1px;
}
.pdf-candidate-card.is-main .pdf-candidate-role { color: #24558b; }
.pdf-brand-vision .pdf-candidate-card.is-main .pdf-candidate-role { color: #a72d3a; }
.pdf-candidate-brand {
  margin: 7px 0 0;
  color: #69737d;
  font-size: 9px;
  letter-spacing: .08em;
}
.pdf-candidate-card h4 {
  margin: 3px 0 0;
  color: var(--color-navy-deep);
  font-size: 19px;
  line-height: 1.08;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pdf-candidate-capacity {
  margin: 9px 0 0;
  color: #2d3944;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}
.pdf-candidate-note {
  margin: 7px 0 0;
  color: #67727c;
  font-size: 8.5px;
  line-height: 1.45;
}
.pdf-candidate-note.is-empty { visibility: hidden; }
.pdf-candidate-card.is-muted .pdf-candidate-brand,
.pdf-candidate-card.is-muted h4,
.pdf-candidate-card.is-muted .pdf-candidate-capacity,
.pdf-candidate-card.is-muted .pdf-candidate-note { color: #7d8790; }
.pdf-candidate-card.is-muted .pdf-candidate-role { color: #879198; }
.pdf-comparison-composition { display: inline-block; margin-top: 3px; font-size: .82em; line-height: 1.4; font-weight: 500; }
.pdf-result-empty {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe4e8;
  background: #f5f6f4;
  color: var(--color-muted);
  font-size: 10px;
}

/* 04 注意 */
.pdf-caution-block {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 13px 15px;
  background: #f2f6f9;
  border: 1px solid #e0e7ec;
}
.pdf-caution-icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #2e6fb0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 27px;
  text-align: center;
}
.pdf-caution-block h2 {
  margin: 0 0 5px;
  color: var(--color-navy-deep);
  font-size: 15px;
  font-weight: 700;
}
.pdf-caution-block p:not(.pdf-eyebrow) {
  margin: 3px 0 0;
  color: #59656f;
  font-size: 9.5px;
  line-height: 1.5;
}
.pdf-caution-block strong { color: var(--color-navy-deep); }

.pdf-note-list {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 11px;
  border-top: 1px solid var(--color-border);
  color: #6a757d;
  font-size: 8.5px;
  line-height: 1.5;
}
.pdf-note-list div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.pdf-note-list strong { color: var(--color-navy-deep); font-size: 9px; }
.pdf-note-list span { display: block; }

.pdf-footer {
  margin-top: 17px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-subtle);
  font-size: 8px;
  letter-spacing: .04em;
}
.pdf-footer strong { color: var(--color-navy-deep); letter-spacing: .16em; }

/* PDFソースのレスポンシブ指定は、PDF生成時の固定幅には影響させない。 */


/* Selection summary refinement: one JIS field removed; keep the remaining four fields balanced. */
.selection-grid-spec {
  grid-template-columns: 1.6fr 1.15fr 1.15fr 1.15fr;
}
.selection-grid-spec .selection-item,
.selection-grid-spec .selection-item-half {
  grid-column: auto;
}


/* JIS/EW display: supplementary text only; existing layout/design is unchanged. */
.selection-ew {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-soft);
}
.selection-ew-note {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-soft);
}


/* =========================================================
   PDF REPORT — BALANCED A4 VERTICAL DISTRIBUTION
   PDF専用。Web画面には影響しない。
   本文5ブロック＋フッターをA4内で自然に均等配置する。
   footer の margin-top:auto は使用しない。
   ========================================================= */
.pdf-source {
  width: 1120px;
  height: 1632px;
  min-height: 1632px;
  box-sizing: border-box;
  padding: 38px 50px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pdf-source > .pdf-header,
.pdf-source > .pdf-section,
.pdf-source > .pdf-footer {
  flex: 0 0 auto;
}

.pdf-source > .pdf-section,
.pdf-source > .pdf-footer {
  margin-top: 0;
}

.pdf-source > .pdf-header {
  margin-bottom: 0;
}

.pdf-footer {
  padding-top: 10px;
}
