@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap");

:root {
  --ev-blue-900: #0f4f86;
  --ev-blue-800: #0f6fb3;
  --ev-blue-700: #1688d3;
  --ev-blue-600: #3fa5e8;
  --ev-blue-100: #e4f3fd;
  --ev-blue-050: #f2f9fe;
  --ev-green-800: #1a6144;
  --ev-green-700: #207a56;
  --ev-green-100: #e9f7ef;
  --ev-yellow-100: #fff8df;
  --ev-text: #1d2730;
  --ev-muted: #5b6874;
  --ev-border: #c4ddf0;
  --ev-border-light: #ddeef8;
  --ev-white: #ffffff;
  --ev-page-bg: #eaf2f9;
  --ev-shadow: 0 1px 3px rgba(15, 111, 179, 0.05), 0 4px 12px rgba(15, 111, 179, 0.06);
  --ev-shadow-sm: 0 1px 3px rgba(15, 111, 179, 0.04);
  --ev-font-page: 20px;
  --ev-font-micro: 0.8rem;
  --ev-font-tiny: 0.82rem;
  --ev-font-caption: 0.85rem;
  --ev-font-small: 0.86rem;
  --ev-font-sm: 0.9rem;
  --ev-font-button-sm: 0.92rem;
  --ev-font-nav: 0.96rem;
  --ev-font-body-xs: 0.95rem;
  --ev-font-body-sm: 0.97rem;
  --ev-font-body-md: 0.98rem;
  --ev-font-base: 1rem;
  --ev-font-body: 1.02rem;
  --ev-font-lg: 1.05rem;
  --ev-font-ui: 1.1rem;
  --ev-font-ui-lg: 1.15rem;
  --ev-font-card: 1.2rem;
  --ev-font-number: 1.25rem;
  --ev-font-flow-label: 1.3rem;
  --ev-font-card-title: clamp(1.35rem, 2.5vw, 1.75rem);
  --ev-font-section-title: clamp(1.45rem, 3vw, 1.95rem);
  --ev-font-display: clamp(1.7rem, 3vw, 2.45rem);
  --ev-font-display-mobile: clamp(1.7rem, 7vw, 2.25rem);
  --ev-font-flow-button: clamp(1.15rem, 2.5vw, 1.55rem);
  --ev-font-flow-question: 1.12rem;
  --ev-font-flow-result: 0.98rem;
  --ev-font-mobile-route: 0.86rem;
  --ev-font-mobile-step: 1.02rem;
  --ev-font-mobile-button: 0.98rem;
  --ev-font-mobile-summary: 1.05rem;
  --ev-font-mobile-summary-strong: 1.4rem;
  --ev-font-prep-label: 0.8rem;
  --ev-font-prep-number: 0.82rem;
  --ev-font-prep-group: 0.95rem;
}

/* Typography scale:
   micro -> caption -> small -> sm -> base -> body -> lg -> ui -> card -> section -> display */

html {
  scroll-behavior: smooth;
}

body.ev-application-document {
  margin: 0;
  color: var(--ev-text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: var(--ev-font-page);
  line-height: 1.85;
  background: var(--ev-page-bg);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ev-blue-900);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.ev-application-page *,
.ev-application-page *::before,
.ev-application-page *::after {
  box-sizing: border-box;
}

.ev-application-page {
  min-height: 100vh;
  padding-bottom: 80px;
  background:
    linear-gradient(180deg, #d6eaf8 0, #eaf2f9 300px, var(--ev-page-bg) 100%);
}

.ev-application-page a {
  color: var(--ev-blue-800);
  text-underline-offset: 0.18em;
}

.ev-application-page a:hover {
  color: var(--ev-blue-900);
}

.ev-application-page a:focus-visible,
.ev-application-page button:focus-visible,
.ev-application-page summary:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.page-container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-top: 3px solid var(--ev-blue-700);
  border-bottom: 1px solid var(--ev-border-light);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 6px rgba(15, 111, 179, 0.06);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 54px;
  padding-block: 5px;
}

.parent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  color: #fff !important;
  font-size: var(--ev-font-button-sm);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  background: var(--ev-green-700);
  box-shadow: 0 1px 4px rgba(32, 122, 86, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.parent-link:hover {
  background: var(--ev-green-800);
  box-shadow: 0 2px 8px rgba(32, 122, 86, 0.16);
}

.parent-link::before {
  content: "←";
  margin-right: 0.4em;
  font-weight: 800;
}

.header-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-nav);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.12s ease, background 0.12s ease;
}

.header-nav a:hover {
  color: var(--ev-blue-700);
  background: var(--ev-blue-050);
}

.page-hero {
  padding: 12px 0 18px;
  color: var(--ev-blue-900);
  background: #fff;
  border-bottom: 1px solid var(--ev-blue-100);
}

.page-kicker {
  display: block;
  margin: 0 0 10px;
  padding-left: 12px;
  color: var(--ev-muted);
  font-size: var(--ev-font-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-left: 3px solid var(--ev-green-700);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: var(--ev-font-display);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ev-blue-900);
}

.desktop-break {
  display: none;
}

.lead {
  margin: 0;
  font-size: var(--ev-font-base);
  font-weight: 400;
  line-height: 1.9;
  color: #374859;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ev-blue-100);
}

.hero-action {
  flex: 1 1 360px;
  max-width: 480px;
  text-align: center;
}

.hero-actions .button {
  width: 100%;
  min-height: 56px;
  min-width: 0;
  font-size: var(--ev-font-ui-lg);
  letter-spacing: 0.03em;
}

.external-note {
  margin: 8px 0 0;
  color: var(--ev-muted);
  font-size: var(--ev-font-small);
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}

.button-primary {
  color: #fff !important;
  background: var(--ev-blue-800);
  box-shadow: 0 2px 8px rgba(23, 79, 130, 0.12);
}

.button-primary:hover {
  background: var(--ev-blue-900);
}

.external-link::after {
  content: "open_in_new";
  display: inline-block;
  margin-left: 0.35em;
  font-family: "Material Symbols Outlined";
  font-size: 1.05em;
  font-weight: normal;
  line-height: 1;
  vertical-align: -0.15em;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.page-layout {
  display: grid;
  gap: 20px;
  padding: 24px 0 44px;
}

.table-of-contents,
.subsidy-summary,
.content-section,
.related-links {
  background: var(--ev-white);
  border: 1px solid var(--ev-border-light);
  border-radius: 10px;
  box-shadow: var(--ev-shadow);
}

.table-of-contents {
  padding: 20px 24px;
  border-top: 4px solid var(--ev-blue-800);
}

.table-of-contents h2,
.related-links h2 {
  margin: 0 0 16px;
  padding-left: 14px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-card);
  line-height: 1.4;
  border-left: 5px solid var(--ev-green-700);
}

.table-of-contents ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.table-of-contents a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.table-of-contents a:hover {
  background: var(--ev-blue-050);
  color: var(--ev-blue-700);
}

.table-of-contents a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--ev-font-small);
  font-weight: 800;
  line-height: 1;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--ev-blue-700), var(--ev-blue-900));
  flex-shrink: 0;
}

@media (min-width: 821px) {
  /* 長文の7番と短い8番を上揃えにし、7番の行間をコンパクトにする。 */
  .table-of-contents li:nth-child(7) a,
  .table-of-contents li:nth-child(8) a {
    align-items: start;
    line-height: 1.45;
  }
}

.subsidy-summary,
.content-section {
  padding: 24px 28px;
  scroll-margin-top: 80px;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ev-blue-100);
}

.section-heading.compact {
  margin-bottom: 16px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 6px;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--ev-font-number);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(150deg, var(--ev-blue-700) 0%, var(--ev-blue-900) 100%);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 111, 179, 0.14);
}

.section-heading.compact .section-number {
  min-width: 52px;
  background: linear-gradient(150deg, var(--ev-green-700) 0%, var(--ev-green-800) 100%);
  box-shadow: 0 2px 6px rgba(32, 122, 86, 0.14);
  font-size: var(--ev-font-sm);
}

.section-heading h2 {
  margin: 0;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-section-title);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.content-section p {
  margin: 0 0 16px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--ev-border);
  border-top: 4px solid var(--ev-blue-700);
  border-radius: 6px;
  background: var(--ev-blue-050);
}

.summary-card h3 {
  margin: 0 0 4px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-sm);
  font-weight: 700;
}

.summary-card p {
  margin: 0;
}

.summary-card strong {
  color: var(--ev-blue-800);
  font-size: var(--ev-font-card-title);
  line-height: 1.2;
}

/* 申請の流れ ステップリスト */
.flow-steps {
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: flow-step;
}

.flow-steps li {
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: 0 14px;
  padding: 12px 4px 12px 0;
  border-bottom: 1px solid var(--ev-border-light);
  counter-increment: flow-step;
}

.flow-steps li:last-child {
  border-bottom: none;
}

.flow-steps li::before {
  content: counter(flow-step);
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 2em;
  height: 2em;
  margin-top: 0.15em;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--ev-font-base);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(150deg, var(--ev-blue-700), var(--ev-blue-900));
  border-radius: 50%;
  flex-shrink: 0;
}

.flow-steps li strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin-bottom: 4px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-body);
  line-height: 1.5;
}

.flow-steps li p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #374859;
  font-size: var(--ev-font-body-sm);
  line-height: 1.75;
}

/* ─── 補助金申請から交付までの流れ（イメージ図） ─────────────── */
.grant-flow-scroll {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.grant-flow-figure {
  position: relative;
  border: 2px solid var(--ev-blue-900);
  border-radius: 12px;
  overflow: hidden;
  /* 左：申請者（クリーム） 右：高知県（ブルー） */
  background: linear-gradient(90deg, #fbf3dd 0, #fbf3dd 66%, #d6eaf8 66%);
}

.grant-flow-figure .gf-zone-label {
  position: absolute;
  top: 20px;
  color: var(--ev-text);
  font-size: var(--ev-font-flow-label);
  font-weight: 800;
  line-height: 1;
}

.grant-flow-figure .gf-zone-label--left {
  left: 26px;
}

.grant-flow-figure .gf-zone-label--right {
  right: 26px;
}

/* グリッド：列 = 経産省フロー / 矢印 / 高知県補助金フロー / ラベル付き矢印 / 高知県 */
.gf-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.42fr 1.05fr 0.85fr 1.05fr;
  grid-template-rows: auto auto 46px auto 46px auto;
  grid-template-areas:
    "badgea .     badgeb .   ."
    "deliv  deliv deliv  .   ."
    "da1    .     .      .   ."
    "apply  ar1   prefap ar2 review"
    ".      .     .      .   dc1"
    ".      .     receive arl decide";
  row-gap: 8px;
  padding: 58px 26px 32px;
}

.gf-badge--meti { grid-area: badgea; }
.gf-badge--pref { grid-area: badgeb; }
.gf-deliv   { grid-area: deliv; }
.gf-da1     { grid-area: da1; }
.gf-apply   { grid-area: apply; }
.gf-ar1     { grid-area: ar1; }
.gf-prefap  { grid-area: prefap; }
.gf-ar2     { grid-area: ar2; }
.gf-review  { grid-area: review; }
.gf-dc1     { grid-area: dc1; }
.gf-receive { grid-area: receive; }
.gf-arl     { grid-area: arl; }
.gf-decide  { grid-area: decide; }

@media (min-width: 821px) {
  .grant-flow-figure .gf-deliv {
    margin-top: 12px;
  }
}

.grant-flow-figure .gf-badge {
  justify-self: center;
  align-self: center;
  margin-bottom: 0;
  padding: 6px 20px;
  color: var(--ev-text);
  font-size: var(--ev-font-caption);
  font-weight: 800;
  border-radius: 999px;
}

.grant-flow-figure .gf-badge--meti {
  text-align: center;
  line-height: 1.2;
  background: #f8ddcd;
  border: 1.5px solid #c4714c;
}

.grant-flow-figure .gf-badge--pref {
  background: #cfe9fb;
  border: 1.5px solid var(--ev-blue-800);
}

.grant-flow-figure .gf-box {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  color: var(--ev-text);
  font-size: var(--ev-font-body);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ev-blue-900);
  border-radius: 8px;
}

.grant-flow-figure .gf-box--meti {
  background: #f8ddcd;
  border-color: #c4714c;
}

.grant-flow-figure .gf-box--pref {
  background: #cfe9fb;
  border-color: var(--ev-blue-800);
}

.grant-flow-figure .gf-prefap {
  min-height: 72px;
  padding: 12px 14px;
  font-size: 1.15rem;
  border-width: 3px;
}

.grant-flow-figure .gf-box--decide {
  color: #fff;
  background: var(--ev-blue-900);
}

.grant-flow-figure .gf-deliv,
.grant-flow-figure .gf-receive {
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

/* 下向き矢印（フローチャートと同じ 4px 軸＋三角ヘッド） */
.grant-flow-figure .gf-arrow-down {
  position: relative;
  width: 100%;
}

.grant-flow-figure .gf-arrow-down::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 12px;
  width: 4px;
  background: var(--ev-blue-900);
  transform: translateX(-50%);
}

.grant-flow-figure .gf-arrow-down::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 14px solid var(--ev-blue-900);
  transform: translateX(-50%);
}

/* 横向き矢印 */
.grant-flow-figure .gf-arrow-right,
.grant-flow-figure .gf-arrow-left {
  position: relative;
  align-self: center;
  width: 100%;
  height: 24px;
}

.grant-flow-figure .gf-arrow-right::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  right: 15px;
  height: 4px;
  background: var(--ev-blue-900);
  transform: translateY(-50%);
}

.grant-flow-figure .gf-arrow-right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 14px solid var(--ev-blue-900);
  transform: translateY(-50%);
}

.grant-flow-figure .gf-arrow-left::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15px;
  right: 6px;
  height: 4px;
  background: var(--ev-blue-900);
  transform: translateY(-50%);
}

.grant-flow-figure .gf-arrow-left::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 14px solid var(--ev-blue-900);
  transform: translateY(-50%);
}

/* 担当チップ（モバイル専用。デスクトップはゾーン背景で表現するため非表示） */
.grant-flow-figure .gf-actor {
  display: none;
}

/* ラベル付きコネクター（交付申請 兼 実績報告 など） */
.grant-flow-figure .gf-connector {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  align-self: center;
  width: 100%;
  padding: 0 8px;
}

.grant-flow-figure .gf-connector-label {
  color: var(--ev-text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

/* 丸数字リスト */
.circled-list {
  margin: 12px 0 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: circled;
}

.circled-list li {
  position: relative;
  padding-left: 2.2em;
  margin: 8px 0;
  counter-increment: circled;
}

.circled-list li::before {
  content: counter(circled);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  color: #fff;
  font-size: var(--ev-font-caption);
  font-weight: 800;
  line-height: 1;
  background: var(--ev-blue-800);
  border-radius: 50%;
}

.document-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  padding-left: 0;
  list-style: none;
}

.document-list li {
  margin: 0;
}

.document-list label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  font-size: 1.05rem;
  line-height: 1.65;
  border: 1px solid var(--ev-border-light);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.document-list label:hover {
  background: var(--ev-blue-050);
  border-color: var(--ev-blue-600);
}

.document-item-content {
  min-width: 0;
}

.document-item-note {
  display: block;
  margin-top: 4px;
  padding-left: 1em;
  color: var(--ev-muted);
  font-size: var(--ev-font-small);
  font-weight: 500;
  line-height: 1.55;
  text-indent: -1em;
}

.document-list-footnote {
  margin-top: 18px;
  padding-top: 12px;
  color: var(--ev-muted);
  font-size: var(--ev-font-small);
  line-height: 1.65;
  border-top: 1px solid var(--ev-border);
}

.document-list-footnote strong {
  color: var(--ev-text);
}

.document-list-footnote p {
  margin: 4px 0 0;
}

.document-list input[type="checkbox"] {
  flex: 0 0 auto;
  /* input はフォントを継承しないため明示。em をラベル文字サイズ基準にする */
  font: inherit;
  width: 1.3em;
  height: 1.3em;
  margin-top: 0;
  /* ネイティブ描画だと角丸が強すぎるためカスタム描画に切り替え */
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #98aab9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.document-list input[type="checkbox"]:hover {
  border-color: var(--ev-green-700);
}

.document-list input[type="checkbox"]:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.document-list input[type="checkbox"]:checked {
  border-color: var(--ev-green-700);
  background: var(--ev-green-700)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.6l3.4 3.4L12.8 5'/%3E%3C/svg%3E")
    center / 80% no-repeat;
}

.document-list label:has(input[type="checkbox"]:checked) {
  background: var(--ev-green-100);
  border-color: #8ecfaa;
  box-shadow: 0 0 0 1px #8ecfaa inset;
}

.document-list .form-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 0.3em;
  align-self: center;
  padding: 2px 10px;
  color: var(--ev-blue-800);
  font-size: var(--ev-font-caption);
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  border: 1.5px solid var(--ev-blue-600);
  border-radius: 999px;
  background: var(--ev-blue-050);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.document-list .form-link:hover {
  background: var(--ev-blue-100);
  color: var(--ev-blue-900);
}

.document-list .form-link .material-symbols-outlined {
  font-size: 1em;
  line-height: 1;
}

.subsection-heading {
  margin: 0 0 12px;
  padding-left: 12px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-lg);
  font-weight: 700;
  border-left: 4px solid var(--ev-blue-700);
}

.requirements-list {
  margin: 0 0 20px;
}

.requirements-list p {
  margin: 0 0 8px;
  padding-left: 3em;
  text-indent: -3em;
  line-height: 1.75;
}

.requirements-list p:last-child {
  margin-bottom: 0;
}

.requirements-list p.vehicle-note {
  margin-left: 1em;
  padding-left: 2em;
  text-indent: -1em;
}

.notice {
  padding: 10px 20px 10px 18px;
  color: #493b00;
  font-size: var(--ev-font-body-xs);
  line-height: 1.75;
  border: 1px solid #e8d07a;
  border-left: 5px solid #c79500;
  border-radius: 8px;
  background: var(--ev-yellow-100);
}

.section-note {
  color: var(--ev-muted);
}

.guidelines-links {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid var(--ev-border);
}

.guidelines-link-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--ev-border);
}

.guidelines-link-item h3 {
  margin: 0 0 8px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-ui);
  line-height: 1.5;
}

.guidelines-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--ev-blue-800);
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.guidelines-link-icon {
  flex: 0 0 auto;
  margin-top: 0.1em;
  font-size: 1.15em;
  text-decoration: none;
}

.guidelines-link-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.guidelines-link:hover {
  color: var(--ev-blue-900);
}

.guidelines-link:hover .guidelines-link-label {
  text-decoration-thickness: 2px;
}

.subsidy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 12px;
  overflow: hidden;
  border: 1px solid var(--ev-border);
  border-radius: 8px;
}

.subsidy-table th,
.subsidy-table td {
  padding: 15px 20px;
  text-align: left;
  line-height: 1.6;
  border: 1px solid var(--ev-border-light);
}

.subsidy-table thead th {
  color: #fff;
  background: linear-gradient(90deg, var(--ev-blue-800), var(--ev-blue-900));
  font-size: var(--ev-font-body-xs);
}

.subsidy-table tbody tr:nth-child(even) th,
.subsidy-table tbody tr:nth-child(even) td {
  background: var(--ev-blue-050);
}

.subsidy-table tbody th {
  width: 32%;
  color: var(--ev-blue-900);
  font-weight: 700;
}

.subsidy-table tbody td {
  font-size: var(--ev-font-ui-lg);
  font-weight: 800;
  color: var(--ev-blue-800);
}

.application-flow {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.flow-start {
  position: relative;
  justify-self: start;
  padding: 8px 20px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 999px;
  background: var(--ev-green-700);
}

.flow-start::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 100%;
  width: 2px;
  height: 18px;
  background: var(--ev-blue-700);
}

.flow-question {
  position: relative;
  padding: 20px;
  border: 1px solid var(--ev-border);
  border-left: 6px solid var(--ev-blue-800);
  border-radius: 8px;
  background: #fbfdff;
}

.flow-question::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -18px;
  width: 2px;
  height: 18px;
  background: var(--ev-blue-700);
}

.flow-question h3 {
  margin: 0 0 14px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-flow-question);
  line-height: 1.6;
}

.flow-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flow-branch {
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--ev-border);
  background: #fff;
}

.flow-branch.yes {
  border-color: #a8d9bc;
  background: var(--ev-green-100);
}

.flow-branch.no {
  border-color: #efd38b;
  background: var(--ev-yellow-100);
}

.branch-label {
  display: inline-block;
  margin-bottom: 5px;
  padding: 1px 10px;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: var(--ev-blue-800);
}

.flow-branch.yes .branch-label {
  background: var(--ev-green-700);
}

.flow-branch p {
  margin: 0 0 8px;
}

.text-link {
  font-weight: 700;
}

.document-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-group {
  padding: 20px;
  border: 1px solid var(--ev-border-light);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--ev-shadow-sm);
}

.document-group h4 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-lg);
  line-height: 1.55;
  border-bottom: 2px solid var(--ev-blue-100);
}

.document-list {
  margin-bottom: 0;
}

.flow-action {
  position: relative;
  padding: 12px 20px;
  text-align: center;
  border: 2px solid var(--ev-blue-700);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ev-blue-050), #eaf7f0);
}

.flow-action::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -18px;
  width: 2px;
  height: 18px;
  background: var(--ev-blue-700);
}

.flow-action p {
  margin: 10px 0 0;
  color: var(--ev-muted);
  font-size: var(--ev-font-body-xs);
}

.flow-action .video-link,
.flow-action .manual-link {
  font-size: var(--ev-font-body-sm);
}

.flow-action .video-link {
  margin: 0 0 12px;
}

.flow-action .manual-link {
  margin: 0 0 20px;
}

.flow-action .video-link a,
.flow-action .manual-link a {
  font-weight: 800;
}

.mobile-flow-assistant {
  display: none;
}

.ev-application-page [hidden] {
  display: none !important;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--ev-border-light);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--ev-shadow-sm);
  transition: box-shadow 0.15s ease;
}

.faq-list details[open] {
  box-shadow: 0 2px 8px rgba(15, 111, 179, 0.07);
}

.faq-list summary {
  position: relative;
  padding: 16px 54px 16px 20px;
  color: var(--ev-blue-900);
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "Q.";
  display: inline-block;
  margin-right: 0.5em;
  color: var(--ev-blue-700);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.15em;
  font-weight: 800;
}

.faq-list summary::after {
  content: "▼";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--ev-font-micro);
  line-height: 1;
  color: var(--ev-blue-600);
  transition: transform 0.22s ease;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--ev-blue-100);
  background: var(--ev-blue-050);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  padding: 16px 20px 20px 20px;
  line-height: 1.85;
  color: #2e3e4f;
  animation: none;
  transform-origin: top;
}

.faq-answer::before {
  content: "A. ";
  color: var(--ev-green-700);
  font-weight: 800;
}

.faq-answer p {
  margin: 0 0 1em;
}

.faq-answer p:first-child {
  display: inline;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-list details[open] .faq-answer {
  animation: faq-answer-reveal 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes faq-answer-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    animation: none;
  }
}

.contact-section address {
  padding: 16px 18px;
  font-style: normal;
  line-height: 1.7;
  border: 1px solid var(--ev-border-light);
  border-left: 5px solid var(--ev-blue-700);
  border-radius: 8px;
  background: var(--ev-blue-050);
}

.contact-section address strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-lg);
}

.contact-section address p {
  margin: 0;
}

.related-links {
  padding: 16px 22px;
}

.related-links ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-links .section-heading h2 {
  margin: 0;
  padding-left: 0;
  border-left: 0;
}

.related-links li {
  border-bottom: 1px solid var(--ev-border-light);
}

.related-links li:last-child {
  border-bottom: none;
}

.related-links a {
  display: block;
  padding: 9px 4px;
  font-weight: 700;
  transition: color 0.12s ease, padding-left 0.12s ease;
}

.related-links a:hover {
  color: var(--ev-blue-700);
  padding-left: 8px;
}

.sticky-application {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: min(300px, calc(100vw - 32px));
  padding: 14px 16px;
  text-align: center;
  border: 1.5px solid var(--ev-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 8px rgba(15, 111, 179, 0.08), 0 6px 20px rgba(15, 111, 179, 0.08);
  backdrop-filter: blur(4px);
}

.sticky-application .button {
  width: 100%;
  font-size: var(--ev-font-base);
  min-height: 52px;
}

.ev-application-page .application-flow-chart .flow-action .button,
.ev-application-page .mobile-flow-docs .flow-action .button,
.ev-application-page .sticky-application .button,
.ev-application-page .hero-actions .button {
  background: #c62828;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.14);
}

.ev-application-page .application-flow-chart .flow-action .button:hover,
.ev-application-page .mobile-flow-docs .flow-action .button:hover,
.ev-application-page .sticky-application .button:hover,
.ev-application-page .hero-actions .button:hover {
  background: #a91f1f;
}

.sticky-application p {
  margin: 8px 0 0;
  color: var(--ev-muted);
  font-size: var(--ev-font-micro);
  line-height: 1.5;
}

@media (max-width: 820px) {
  :root {
    --ev-font-page: 16px;
    --ev-font-caption: 0.75rem;
    --ev-font-small: 0.8rem;
    --ev-font-sm: 0.84rem;
    --ev-font-button-sm: 0.88rem;
    --ev-font-nav: 0.9rem;
    --ev-font-body-xs: 0.88rem;
    --ev-font-body-sm: 0.91rem;
    --ev-font-body-md: 0.94rem;
    --ev-font-base: 0.95rem;
    --ev-font-body: 0.96rem;
    --ev-font-lg: 1rem;
    --ev-font-ui: 0.98rem;
    --ev-font-ui-lg: 1.02rem;
    --ev-font-card: 1.05rem;
    --ev-font-number: 1.08rem;
    --ev-font-flow-label: 1.05rem;
    --ev-font-card-title: 1.08rem;
    --ev-font-section-title: clamp(1.18rem, 4.6vw, 1.48rem);
    --ev-font-display-mobile: clamp(1.35rem, 6.8vw, 1.9rem);
    --ev-font-flow-button: 1rem;
    --ev-font-flow-question: 0.98rem;
    --ev-font-flow-result: 0.92rem;
    --ev-font-mobile-route: 0.82rem;
    --ev-font-mobile-step: 0.95rem;
    --ev-font-mobile-button: 0.92rem;
    --ev-font-mobile-summary: 0.96rem;
    --ev-font-mobile-summary-strong: 1.15rem;
    --ev-font-prep-label: 0.72rem;
    --ev-font-prep-number: 0.74rem;
    --ev-font-prep-group: 0.9rem;
  }

  .ev-application-page {
    padding-bottom: 124px;
  }

  .page-container {
    width: min(100% - 24px, 1120px);
  }

  .page-hero {
    padding: 12px 0 18px;
  }

  .site-header {
    position: static;
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    padding-block: 10px;
  }

  .parent-link {
    justify-self: start;
  }

  .header-nav ul {
    justify-content: flex-start;
  }

  .header-nav a {
    font-size: var(--ev-font-sm);
  }

  .page-hero h1 {
    font-size: var(--ev-font-display-mobile);
  }

  .section-heading h2 {
    font-size: var(--ev-font-section-title);
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-action {
    width: 100%;
    max-width: none;
  }

  .table-of-contents,
  .subsidy-summary,
  .content-section,
  .related-links {
    border-radius: 8px;
  }

  .table-of-contents {
    padding: 20px 16px;
  }

  .subsidy-summary,
  .content-section {
    padding: 22px 18px;
  }

  .related-links {
    padding: 20px 18px;
  }

  .table-of-contents ul {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .section-number {
    min-width: 40px;
    height: 40px;
    font-size: var(--ev-font-lg);
  }

  .subsidy-table {
    display: table;
    table-layout: fixed;
    margin-top: 14px;
  }

  .subsidy-table th,
  .subsidy-table td {
    padding: 10px 6px;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .subsidy-table thead th {
    font-size: 13px;
  }

  .subsidy-table tbody th {
    width: 35%;
    font-size: 14px;
  }

  .subsidy-table tbody td {
    font-size: 15px;
    font-weight: 800;
  }

  .flow-branches,
  .document-groups {
    grid-template-columns: 1fr;
  }

  /* イメージ図 モバイル: 縦一列レイアウト。
     ゾーン背景の代わりに、各ボックス左上の担当チップ（申請者／高知県）で主体を示す */
  .grant-flow-scroll {
    overflow-x: visible;
  }

  .grant-flow-figure {
    min-width: auto;
    background: #fff;
  }

  /* 上部のゾーンラベルとバッジは縦一列では意味を持たないため非表示 */
  .grant-flow-figure .gf-zone-label,
  .grant-flow-figure .gf-badge {
    display: none;
  }

  .gf-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "deliv"
      "da1"
      "apply"
      "ar1"
      "prefap"
      "ar2"
      "review"
      "dc1"
      "decide"
      "arl"
      "receive";
    row-gap: 8px;
    padding: 30px 16px 22px;
  }

  /* 担当チップ：ボックス左上の枠線に重ねる */
  .grant-flow-figure .gf-box {
    position: relative;
  }

  .grant-flow-figure .gf-prefap {
    min-height: 68px;
    font-size: 1.08rem;
  }

  .grant-flow-figure .gf-actor {
    display: inline-flex;
    position: absolute;
    top: -12px;
    left: 14px;
    padding: 1px 12px;
    color: var(--ev-text);
    font-size: var(--ev-font-micro);
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 0;
    text-indent: 0;
    border-radius: 999px;
  }

  .grant-flow-figure .gf-actor--applicant {
    background: #fbf3dd;
    border: 1.5px solid #c0973a;
  }

  .grant-flow-figure .gf-actor--pref {
    color: #fff;
    background: var(--ev-blue-800);
    border: 1.5px solid var(--ev-blue-800);
  }

  /* 下向き矢印は行が auto になるため明示的に高さを与える */
  .grant-flow-figure .gf-arrow-down {
    height: 42px;
  }

  /* 横矢印をすべて縦下向き矢印に変換 */
  .grant-flow-figure .gf-arrow-right,
  .grant-flow-figure .gf-arrow-left {
    height: 46px;
    width: 100%;
  }

  .grant-flow-figure .gf-arrow-right::before {
    top: 0;
    bottom: 12px;
    left: 50%;
    right: auto;
    width: 4px;
    height: auto;
    transform: translateX(-50%);
  }

  .grant-flow-figure .gf-arrow-right::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    border-top: 14px solid var(--ev-blue-900);
    border-bottom: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    transform: translateX(-50%);
  }

  .grant-flow-figure .gf-arrow-left::before {
    top: 0;
    bottom: 12px;
    left: 50%;
    right: auto;
    width: 4px;
    height: auto;
    transform: translateX(-50%);
  }

  .grant-flow-figure .gf-arrow-left::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    border-top: 14px solid var(--ev-blue-900);
    border-bottom: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    transform: translateX(-50%);
  }

  /* ラベル付きコネクター: 縦配置 */
  .grant-flow-figure .gf-connector {
    flex-direction: column;
    align-items: center;
    min-height: 64px;
    padding: 2px 0;
  }

  .grant-flow-figure .gf-connector .gf-arrow-right,
  .grant-flow-figure .gf-connector .gf-arrow-left {
    height: 28px;
    flex-shrink: 0;
  }

  .ev-application-page .mobile-flow-assistant {
    display: grid;
    gap: 14px;
    margin-top: 18px;
  }

  .ev-application-page .mobile-flow-step,
  .ev-application-page .mobile-flow-result,
  .ev-application-page .mobile-document-group {
    padding: 18px;
    border: 1px solid var(--ev-border-light);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ev-shadow-sm);
  }

  .ev-application-page .mobile-flow-step {
    border-left: 5px solid var(--ev-blue-700);
    background: linear-gradient(100deg, #f0f8fe, var(--ev-blue-050));
  }

  .ev-application-page .mobile-flow-question {
    margin: 0 0 14px;
    color: var(--ev-blue-900);
    font-size: var(--ev-font-body);
    font-weight: 800;
    line-height: 1.65;
  }

  .ev-application-page .mobile-flow-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ev-application-page .mobile-flow-buttons button {
    min-height: 52px;
    padding: 11px 14px;
    color: var(--ev-blue-900);
    font: inherit;
    font-weight: 800;
    font-size: var(--ev-font-body-md);
    line-height: 1.4;
    border: 2px solid var(--ev-blue-700);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .ev-application-page .mobile-flow-buttons button:hover {
    background: var(--ev-blue-050);
    border-color: var(--ev-blue-800);
  }

  .ev-application-page .mobile-flow-buttons button[aria-pressed="true"] {
    color: #fff;
    background: var(--ev-blue-800);
    border-color: var(--ev-blue-800);
  }

  .ev-application-page .mobile-flow-buttons button:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  .ev-application-page .mobile-flow-buttons--stack {
    grid-template-columns: 1fr;
  }

  .ev-application-page .mobile-flow-buttons--stack button {
    justify-content: flex-start;
    min-height: 68px;
    text-align: left;
    font-size: var(--ev-font-button-sm);
  }

  .ev-application-page .mobile-flow-result {
    border-left: 5px solid var(--ev-blue-800);
  }

  .ev-application-page .mobile-flow-result p {
    margin: 0 0 8px;
    line-height: 1.7;
  }

  .ev-application-page .mobile-flow-result p:last-child {
    margin-bottom: 0;
  }

  .ev-application-page .mobile-flow-result--out {
    border-left-color: #8f2f2f;
    border-color: #f0cece;
    background: #fff8f8;
  }

  .ev-application-page .mobile-flow-result--wait,
  .ev-application-page .mobile-flow-result--ok {
    border-left-color: var(--ev-blue-700);
    border-color: var(--ev-border-light);
    background: var(--ev-blue-050);
  }

  .ev-application-page .mobile-flow-result--caution {
    border-left-color: var(--ev-green-700);
    border-color: #b8dfc8;
    background: var(--ev-green-100);
  }

  .ev-application-page .mobile-flow-docs {
    display: grid;
    gap: 14px;
  }

  .ev-application-page .mobile-document-groups {
    display: grid;
    gap: 14px;
  }

  .ev-application-page .mobile-document-group h3 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    color: var(--ev-blue-900);
    font-size: var(--ev-font-lg);
    font-weight: 800;
    line-height: 1.55;
    border-bottom: 2px solid var(--ev-blue-100);
  }

  .ev-application-page .application-flow-chart {
    display: none;
  }

  .sticky-application {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 12px 16px 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -2px 8px rgba(15, 111, 179, 0.08);
    backdrop-filter: blur(6px);
  }

  .sticky-application p {
    font-size: var(--ev-font-micro);
  }
}

@media (max-width: 420px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* ─── 申請前準備チャート（prep-* 系） ─────────────── */
/*
  レール設計：左端から 24px の位置を縦の「接続レール」とする。
  ・.prep-q-box     … margin-left:24px + border-left がレール本体
  ・.prep-main      … align-self:stretch でグリッド行いっぱいに伸び、
                       ::after がボックス下端からグリッド行末までレールを継続
  ・.prep-down      … ::before（left:24px）がグリッド行間のレールを描画
  ・.prep-branch-desc … margin-left:24px + border-left でレールを継続
*/

/* Q1・Q2 行：左に質問ボックス、右に分岐結果 */
.prep-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: stretch; /* 両列をグリッド行の高さに揃える */
}

/* 質問ボックスを縦に並べるコンテナ。グリッド行の高さいっぱいに伸ばす */
.prep-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: stretch;
}

/* ボックス下端〜グリッド行下端のレール継続線 */
.prep-main::after {
  content: "";
  flex: 1;
  min-height: 2px;
  margin-left: 24px;
  border-left: 2px solid var(--ev-blue-700);
}

/* 質問ボックス本体 */
.prep-q-box {
  margin-left: 24px;          /* 左端をレール位置 24px に合わせる */
  padding: 14px 18px;
  border: 1px solid var(--ev-border);
  border-left: 3px solid var(--ev-blue-700); /* ← これがレール */
  border-radius: 0 6px 6px 0;
  background: #fff;
}

.prep-q-box p {
  margin: 0;
  font-weight: 700;
  line-height: 1.65;
}

/* 右側の分岐結果エリア（上揃え） */
.prep-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 280px;
  align-self: start;
  padding-left: 12px;
}

/* 横向き矢印ラベル + 結果ボックスの行 */
.prep-exit {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
}

.prep-exit-label {
  display: inline-flex;
  align-items: center;
  padding: 14px 4px 0;
  font-size: var(--ev-font-micro);
  font-weight: 700;
  color: var(--ev-muted);
  white-space: nowrap;
}

.prep-exit-label::before { content: "─"; }
.prep-exit-label::after  { content: "→"; }

/* 結果ボックス共通 */
.prep-result {
  padding: 12px 14px;
  border: 1px solid var(--ev-border);
  border-radius: 6px;
  background: #fff;
}

.prep-result p {
  margin: 0 0 6px;
  font-size: var(--ev-font-sm);
  line-height: 1.6;
}

.prep-result p:last-child { margin-bottom: 0; }

.prep-result--out {
  border-left: 4px solid #b94040;
  border-color: #f0c8c8;
  background: #fff8f8;
}

.prep-result--wait {
  border-left: 4px solid var(--ev-blue-700);
  background: var(--ev-blue-050);
}

.prep-result--caution {
  border-left: 4px solid var(--ev-green-700);
  border-color: #a8d9bc;
  background: var(--ev-green-100);
}

/* 「はい」コネクター：グリッド行間のレール */
.prep-down {
  position: relative;
  min-height: 32px;
  padding: 4px 0 4px 50px;
}

.prep-down::before {
  content: "";
  position: absolute;
  left: 24px;   /* レール位置 24px に合わせる */
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ev-blue-700);
}

.prep-down-label {
  font-size: var(--ev-font-micro);
  font-weight: 700;
  color: var(--ev-blue-900);
  line-height: 2;
}

/* 分岐説明ボックス（レールから連続） */
.prep-branch-desc {
  margin-left: 24px;
  padding: 14px 18px;
  border: 1px solid var(--ev-border);
  border-left: 3px solid var(--ev-blue-700);
  border-radius: 0 6px 6px 0;
  background: var(--ev-blue-050);
}

.prep-branch-desc p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  line-height: 1.65;
}

.prep-branch-desc p:last-child { margin-bottom: 0; }

.prep-branch-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  color: #fff;
  font-size: var(--ev-font-tiny);
  font-weight: 800;
  border-radius: 50%;
  background: var(--ev-blue-800);
}

/* ①② 分岐コネクター */
.prep-branch-connectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 40px;
  margin-left: 24px; /* レールに揃える */
}

.prep-branch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prep-branch-connector::before {
  content: "";
  width: 2px;
  flex: 1;
  background: var(--ev-blue-700);
}

.prep-branch-connector span {
  font-size: var(--ev-font-micro);
  font-weight: 700;
  color: var(--ev-blue-900);
  padding: 2px 0;
}

.doc-group-label {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: var(--ev-font-body-xs);
  color: var(--ev-blue-900);
}

/* prep フロー内の flow-action は上接続線不要 */
.prep-branch-connectors + .document-groups + .flow-action {
  margin-top: 24px;
}

.prep-branch-connectors + .document-groups + .flow-action::before {
  display: none;
}

/* ─── prep モバイル対応 ─── */
@media (max-width: 820px) {
  .prep-row {
    grid-template-columns: 1fr;
  }

  .prep-side {
    width: 100%;
    padding-left: 0;
    margin-left: 24px; /* レールに揃える */
  }

  .prep-exit-label {
    padding-top: 10px;
  }
}

/* PDF原稿P2に寄せた申請前確認フローチャート */
.ev-application-page .application-flow-chart {
  --chart-line: var(--ev-blue-900);
  --chart-arrow-size: 15px;
  position: relative;
  gap: 0;
  padding: 8px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ev-application-page .application-flow-chart .chart-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  column-gap: 76px;
  align-items: stretch;
}

.ev-application-page .application-flow-chart .chart-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 右側の分岐で行が高くなっても、左側の下向き矢印が途中で途切れないようにする */
.ev-application-page .application-flow-chart .chart-main::after {
  content: "";
  flex: 1 1 auto;
  width: 4px;
  min-height: 0;
  margin-left: 50%;
  background: var(--chart-line);
  transform: translateX(-50%);
}

.ev-application-page .application-flow-chart .chart-box {
  border: 2px solid var(--chart-line);
  border-radius: 8px;
  background: #fff;
}

.ev-application-page .application-flow-chart .chart-question {
  padding: 20px 24px;
}

.ev-application-page .application-flow-chart .chart-row--first .chart-main::before {
  display: none;
}

.ev-application-page .application-flow-chart .chart-row--first .chart-question::after {
  display: none;
}

.ev-application-page .application-flow-chart .chart-row--first .chart-main .chart-question::before {
  display: none;
}

.ev-application-page .application-flow-chart .chart-row--first .chart-main::after {
  display: none;
}

.ev-application-page .application-flow-chart .chart-row--first .chart-question {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.ev-application-page .application-flow-chart .chart-row--first::before {
  content: "";
  position: absolute;
  right: 21%;
  bottom: -70px;
  width: 4px;
  height: 70px;
  background: var(--chart-line);
}

.ev-application-page .application-flow-chart .chart-row--first::after {
  content: "";
  position: absolute;
  right: calc(21% - 9px);
  bottom: -79px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 15px solid var(--chart-line);
}

/* 納車待ちボックス→下の案内ボックスへの矢印ラベル（いいえ） */
.ev-application-page .application-flow-chart .chart-wait-no-label {
  position: absolute;
  right: calc(21% + 14px);
  bottom: -52px;
  color: var(--ev-blue-900);
  font-weight: 800;
  line-height: 1;
}

/* 納車待ちボックス→メインフロー（2問目の質問ボックス）への斜め矢印（はい）。
   2つのボックス位置を JS で実測し、SVG で線＋三角矢印を描画する */
.ev-application-page .application-flow-chart .chart-wait-connector {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--chart-line);
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.ev-application-page .application-flow-chart .chart-wait-yes-label {
  position: absolute;
  z-index: 3;
  color: var(--ev-blue-900);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.ev-application-page .application-flow-chart .chart-question p,
.ev-application-page .application-flow-chart .chart-result p,
.ev-application-page .application-flow-chart .chart-branch-summary p {
  margin: 0;
}

.ev-application-page .application-flow-chart .chart-question p {
  color: var(--ev-blue-900);
  font-size: var(--ev-font-ui);
  font-weight: 800;
  line-height: 1.75;
}

.ev-application-page .application-flow-chart .chart-side {
  display: grid;
  gap: 18px;
}

.ev-application-page .application-flow-chart .chart-side--single {
  padding-top: 0;
}

.ev-application-page .application-flow-chart .chart-row:not(.chart-row--first) .chart-question {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.ev-application-page .application-flow-chart .chart-row:not(.chart-row--first) .chart-main::after {
  display: none;
}

.ev-application-page .application-flow-chart .chart-route {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
}

.ev-application-page .application-flow-chart .chart-route::before {
  content: "";
  position: absolute;
  left: -76px;
  top: 50%;
  width: 76px;
  height: 4px;
  background: var(--chart-line);
  transform: translateY(-50%);
}

.ev-application-page .application-flow-chart .chart-route::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: var(--chart-arrow-size) solid var(--chart-line);
  transform: translateY(-50%);
}

.ev-application-page .application-flow-chart .chart-route--wait::before {
  display: block;
}

.ev-application-page .application-flow-chart .chart-route--wait::after {
  display: block;
}

.ev-application-page .application-flow-chart .chart-route-label {
  color: var(--ev-blue-900);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.ev-application-page .application-flow-chart .chart-result {
  padding: 14px 16px;
}

.ev-application-page .application-flow-chart .chart-result p {
  font-size: var(--ev-font-body-md);
  font-weight: 700;
  line-height: 1.7;
}

.ev-application-page .application-flow-chart .chart-result--out {
  border-color: #b84040;
  background: #fff6f6;
}

.ev-application-page .application-flow-chart .chart-result--wait {
  border-color: var(--ev-blue-600);
  background: var(--ev-blue-050);
}

.ev-application-page .application-flow-chart .chart-result--caution {
  border-color: var(--ev-green-700);
  background: var(--ev-green-100);
}

.ev-application-page .application-flow-chart .chart-down {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  column-gap: 76px;
  min-height: 82px;
}

.ev-application-page .application-flow-chart .chart-down-track {
  position: relative;
  min-height: 82px;
}

.ev-application-page .application-flow-chart .chart-down-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 18px;
  width: 4px;
  background: var(--chart-line);
  transform: translateX(-50%);
}

.ev-application-page .application-flow-chart .chart-down-track::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 15px solid var(--chart-line);
  transform: translateX(-50%);
}

.ev-application-page .application-flow-chart .chart-down-track span {
  position: absolute;
  left: calc(50% - 86px);
  top: 50%;
  color: var(--ev-blue-900);
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.ev-application-page .application-flow-chart .chart-branch-summary {
  padding: 20px 24px;
}

.ev-application-page .application-flow-chart .chart-branch-summary p {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ev-blue-900);
  font-size: var(--ev-font-ui);
  font-weight: 800;
  line-height: 1.65;
}

.ev-application-page .application-flow-chart .chart-branch-summary p + p {
  margin-top: 12px;
}

.ev-application-page .application-flow-chart .chart-branch-num {
  flex: 0 0 auto;
  min-width: 1em;
  color: var(--ev-blue-800);
  font-family: "Material Symbols Outlined";
  font-size: 1.65rem;
  font-weight: normal;
  line-height: 1;
  font-variation-settings:
    "FILL" 0,
    "wght" 600,
    "GRAD" 0,
    "opsz" 40;
}

.ev-application-page .application-flow-chart .chart-inline-num {
  display: inline-block;
  color: var(--ev-blue-800);
  font-family: "Material Symbols Outlined";
  font-size: 1.05em;
  line-height: 0;
  vertical-align: -0.22em;
  font-variation-settings:
    "FILL" 0,
    "wght" 600,
    "GRAD" 0,
    "opsz" 32;
}

.ev-application-page .application-flow-chart .chart-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 76px;
  min-height: 92px;
}

.ev-application-page .application-flow-chart .chart-split-track {
  position: relative;
  min-height: 92px;
}

.ev-application-page .application-flow-chart .chart-split-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 20px;
  width: 4px;
  background: var(--chart-line);
  transform: translateX(-50%);
}

.ev-application-page .application-flow-chart .chart-split-track::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 15px solid var(--chart-line);
  transform: translateX(-50%);
}

.ev-application-page .application-flow-chart .chart-split-track span {
  position: absolute;
  left: calc(50% - 62px);
  top: 50%;
  color: var(--ev-blue-800);
  font-family: "Material Symbols Outlined";
  font-size: 2.2rem;
  font-weight: normal;
  line-height: 1;
  font-variation-settings:
    "FILL" 0,
    "wght" 600,
    "GRAD" 0,
    "opsz" 40;
  transform: translateY(-50%);
}

.ev-application-page .application-flow-chart .document-groups {
  gap: 38px;
}

.ev-application-page .application-flow-chart .document-group {
  border: 2px solid var(--chart-line);
  border-radius: 8px;
}

.ev-application-page .application-flow-chart .document-group h4 {
  margin: -20px -20px 14px;
  padding: 13px 20px;
  text-align: center;
  border-bottom: 2.5px solid var(--chart-line);
  background: var(--ev-blue-050);
  border-radius: 6px 6px 0 0;
}

.ev-application-page .application-flow-chart .flow-action {
  margin-top: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}

.ev-application-page .application-flow-chart .flow-action::before {
  display: none;
}

.ev-application-page .application-flow-chart .flow-action .button {
  width: min(100%, 760px);
  min-height: 68px;
  font-size: var(--ev-font-flow-button);
  letter-spacing: 0.02em;
}

.ev-application-page .application-flow-chart .flow-action .button,
.ev-application-page .mobile-flow-docs .flow-action .button,
.ev-application-page .sticky-application .button,
.ev-application-page .hero-actions .button {
  background: #c62828;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.14);
}

.ev-application-page .application-flow-chart .flow-action .button:hover,
.ev-application-page .mobile-flow-docs .flow-action .button:hover,
.ev-application-page .sticky-application .button:hover,
.ev-application-page .hero-actions .button:hover {
  background: #a91f1f;
}

@media (max-width: 820px) {
  .ev-application-page .application-flow-chart {
    padding: 16px;
  }

  .ev-application-page .application-flow-chart .chart-row,
  .ev-application-page .application-flow-chart .chart-down {
    grid-template-columns: 1fr;
  }

  .ev-application-page .application-flow-chart .chart-row {
    gap: 14px;
  }

  .ev-application-page .application-flow-chart .chart-main::after {
    display: none;
  }

  .ev-application-page .application-flow-chart .chart-row--first::before,
  .ev-application-page .application-flow-chart .chart-row--first::after {
    display: none;
  }

  .ev-application-page .application-flow-chart .chart-row--first .chart-main::before,
  .ev-application-page .application-flow-chart .chart-row--first .chart-question::after {
    display: none;
  }

  .ev-application-page .application-flow-chart .chart-side,
  .ev-application-page .application-flow-chart .chart-side--single {
    gap: 10px;
    padding-top: 0;
  }

  .ev-application-page .application-flow-chart .chart-route {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: auto;
  }

  .ev-application-page .application-flow-chart .chart-route::before,
  .ev-application-page .application-flow-chart .chart-route::after {
    display: none;
  }

  .ev-application-page .application-flow-chart .chart-route-label {
    min-width: 5.5em;
    padding: 4px 8px;
    color: #fff;
    font-size: var(--ev-font-small);
    border-radius: 999px;
    background: var(--ev-blue-800);
  }

  .ev-application-page .application-flow-chart .chart-down {
    min-height: 66px;
  }

  .ev-application-page .application-flow-chart .chart-down-track,
  .ev-application-page .application-flow-chart .chart-split-track {
    min-height: 66px;
  }

  .ev-application-page .application-flow-chart .chart-down-track span {
    left: calc(50% - 70px);
  }

  .ev-application-page .application-flow-chart .chart-question p {
    font-size: var(--ev-font-flow-question);
  }

  .ev-application-page .application-flow-chart .chart-result p {
    font-size: var(--ev-font-flow-result);
  }

  .ev-application-page .application-flow-chart .chart-branch-summary p {
    display: block;
    font-size: var(--ev-font-flow-result);
  }

  .ev-application-page .application-flow-chart .chart-branch-num {
    font-size: 1.4rem;
  }

  .ev-application-page .application-flow-chart .chart-inline-num {
    font-size: 0.95em;
  }

  .ev-application-page .application-flow-chart .chart-split {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
  }

  .ev-application-page .application-flow-chart .chart-split-track span {
    left: calc(50% - 48px);
  }

  .ev-application-page .application-flow-chart .document-groups {
    gap: 18px;
  }
}

/* 校正後の申請前確認フロー。斜め線を使わず、主経路は縦、対象外分岐は横で表現する。 */
.ev-application-page .eligibility-flow-chart {
  --eligibility-line: var(--ev-blue-900);
  display: grid;
  gap: 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ev-application-page .eligibility-flow-chart .eligibility-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr);
  gap: 72px;
  align-items: stretch;
}

.ev-application-page .eligibility-flow-chart .eligibility-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ev-application-page .eligibility-flow-chart .eligibility-question,
.ev-application-page .eligibility-flow-chart .eligibility-result {
  border: 2px solid var(--eligibility-line);
  border-radius: 8px;
  background: #fff;
}

.ev-application-page .eligibility-flow-chart .eligibility-question {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: 20px 24px;
}

.ev-application-page .eligibility-flow-chart .eligibility-question p,
.ev-application-page .eligibility-flow-chart .eligibility-result p {
  margin: 0;
}

.ev-application-page .eligibility-flow-chart .eligibility-question p {
  color: var(--ev-blue-900);
  font-size: var(--ev-font-ui);
  font-weight: 800;
  line-height: 1.75;
}

.ev-application-page .eligibility-flow-chart .eligibility-question p + p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ev-border-light);
}

.ev-application-page .eligibility-flow-chart .eligibility-continue {
  position: relative;
  flex: 1 1 auto;
  min-height: 72px;
}

.ev-application-page .eligibility-flow-chart .eligibility-continue::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  left: 50%;
  width: 4px;
  background: var(--eligibility-line);
  transform: translateX(-50%);
}

.ev-application-page .eligibility-flow-chart .eligibility-continue::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 15px solid var(--eligibility-line);
  border-right: 11px solid transparent;
  border-left: 11px solid transparent;
  transform: translateX(-50%);
}

.ev-application-page .eligibility-flow-chart .eligibility-continue span {
  position: absolute;
  top: 50%;
  left: calc(50% - 76px);
  color: var(--ev-blue-900);
  font-size: var(--ev-font-body-sm);
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.ev-application-page .eligibility-flow-chart .eligibility-exit {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ev-application-page .eligibility-flow-chart .eligibility-exit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -72px;
  width: 72px;
  height: 4px;
  background: var(--eligibility-line);
  transform: translateY(-50%);
}

.ev-application-page .eligibility-flow-chart .eligibility-exit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 15px solid var(--eligibility-line);
  transform: translateY(-50%);
}

.ev-application-page .eligibility-flow-chart .eligibility-exit > span {
  color: var(--ev-blue-900);
  font-size: var(--ev-font-body-sm);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.ev-application-page .eligibility-flow-chart .eligibility-result {
  padding: 16px 18px;
}

.ev-application-page .eligibility-flow-chart .eligibility-result p {
  font-size: var(--ev-font-body-md);
  font-weight: 700;
  line-height: 1.7;
}

.ev-application-page .eligibility-flow-chart .eligibility-result p + p {
  margin-top: 8px;
}

.ev-application-page .eligibility-flow-chart .eligibility-result--out {
  border-color: #b84040;
  background: #fff6f6;
}

.ev-application-page .eligibility-flow-chart .eligibility-result--caution {
  border-color: var(--ev-green-700);
  background: var(--ev-green-100);
}

.ev-application-page .eligibility-flow-chart .eligibility-stage--last .eligibility-continue {
  min-height: 72px;
}

/* PC: 質問枠と「いいえ」の結果枠を同じ行に置き、上下端と高さを揃える。 */
@media (min-width: 821px) {
  .ev-application-page .eligibility-flow-chart .eligibility-stage {
    grid-template-rows: auto minmax(72px, 1fr);
    row-gap: 0;
    column-gap: 72px;
  }

  .ev-application-page .eligibility-flow-chart .eligibility-main {
    display: contents;
  }

  .ev-application-page .eligibility-flow-chart .eligibility-question {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
  }

  .ev-application-page .eligibility-flow-chart .eligibility-exit {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
  }

  .ev-application-page .eligibility-flow-chart .eligibility-continue {
    grid-column: 1;
    grid-row: 2;
  }

  .ev-application-page .eligibility-flow-chart .eligibility-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
  }
}

.ev-application-page .eligibility-flow-chart .chart-branch-summary {
  margin: 0;
  padding: 20px 24px;
  border: 2px solid var(--eligibility-line);
  border-radius: 8px;
  background: #fff;
}

.ev-application-page .eligibility-flow-chart .chart-split {
  gap: 76px;
}

/* 登録済み代行事業者向けの導線は、申請導線と区別して緑で示す。 */
.ev-application-page .hero-action--registration .button {
  background: #167d4d;
  box-shadow: 0 2px 8px rgba(22, 125, 77, 0.16);
}

.ev-application-page .hero-action--registration .button:hover {
  background: #0f643d;
}

@media (max-width: 820px) {
  .ev-application-page .eligibility-flow-chart {
    display: none;
  }

  /* 回答する順番と画面上の表示順を一致させる。 */
  .ev-application-page .mobile-flow-assistant > [data-mobile-flow-step="q1"] { order: 1; }
  .ev-application-page .mobile-flow-assistant > #mobile-flow-q1-no { order: 2; }
  .ev-application-page .mobile-flow-assistant > [data-mobile-flow-step="q3"] { order: 3; }
  .ev-application-page .mobile-flow-assistant > #mobile-flow-q3-no { order: 4; }
  .ev-application-page .mobile-flow-assistant > [data-mobile-flow-step="q4"] { order: 5; }
  .ev-application-page .mobile-flow-assistant > #mobile-flow-q4-no { order: 6; }
  .ev-application-page .mobile-flow-assistant > [data-mobile-flow-step="q2"] { order: 7; }
  .ev-application-page .mobile-flow-assistant > #mobile-flow-q2-no { order: 8; }
  .ev-application-page .mobile-flow-assistant > [data-mobile-flow-step="applicant"] { order: 9; }
  .ev-application-page .mobile-flow-assistant > #mobile-flow-docs { order: 10; }

  .ev-application-page .mobile-flow-question + .mobile-flow-question {
    margin-top: -4px;
  }

  .ev-application-page [data-mobile-flow-step="q4"] .mobile-flow-question:first-child {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ev-border);
  }

  .ev-application-page [data-mobile-flow-step="q4"] .mobile-flow-question + .mobile-flow-question {
    margin-top: 0;
  }
}

@media print {
  html {
    scroll-behavior: auto;
  }

  body.ev-application-document {
    color: #000;
    background: #fff;
    font-size: 11pt;
    line-height: 1.6;
  }

  .skip-link,
  .site-header,
  .hero-actions,
  .sticky-application {
    display: none !important;
  }

  .ev-application-page {
    padding-bottom: 0;
    background: #fff;
  }

  .page-container {
    width: 100%;
  }

  .page-hero {
    padding: 0 0 16px;
    color: #000;
    border-bottom: 2px solid #000;
    background: #fff;
  }

  .page-kicker {
    color: #000;
    border-left-color: #000;
    background: none;
  }

  .section-number,
  .flow-start,
  .branch-label {
    color: #000;
    border: 1px solid #000;
    background: #fff;
  }

  .page-hero h1 {
    font-size: 20pt;
  }

  .page-layout {
    display: block;
    padding: 16px 0 0;
  }

  .table-of-contents,
  .subsidy-summary,
  .content-section,
  .related-links,
  .flow-question,
  .document-group,
  .contact-section address {
    break-inside: avoid;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #777;
    box-shadow: none;
    background: #fff;
  }

  .summary-grid,
  .flow-branches,
  .document-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-card,
  .flow-branch,
  .notice,
  .flow-action {
    border: 1px solid #777;
    background: #fff;
    box-shadow: none;
  }

  .subsidy-table {
    display: table;
  }

  .subsidy-table thead th,
  .subsidy-table tbody th {
    color: #000;
    background: #fff;
  }

  .faq-list details {
    break-inside: avoid;
  }

  .faq-list details:not([open]) .faq-answer {
    display: block;
  }

  .faq-list summary::after {
    display: none;
  }
}
