:root {
  --brand: #211c9a;
  --button: #1e87f0;
  --button-hover: #0f6ecd;
  --text: #333;
  --muted: #666;
  --line: #e5e5e5;
  --header-bg: #f8f8f8;
  --notice: #f0506e;
  --result-head: #222;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: var(--button);
}

.page-header {
  background: var(--header-bg);
  padding: 32px 16px;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}

/* ページ間の現在地。今いるステップを矢印形で塗る */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.steps li + li {
  margin-top: 0;
}

.steps a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  padding: 12px 48px 12px 16px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.steps a[aria-current="page"] {
  color: #fff;
  background: var(--brand);
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 50%,
    calc(100% - 24px) 100%,
    0 100%
  );
}

.steps .number {
  display: inline-block;
  width: 24px;
  color: #fff;
  background: var(--brand);
  text-align: center;
}

/* 矢印形の clip-path が外側の outline を切り取るため、フォーカスの枠は内側に描く */
.steps a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -4px;
}

.steps a[aria-current="page"]:focus-visible {
  outline-color: #fff;
}

.steps a[aria-current="page"] .number {
  color: var(--brand);
  background: #fff;
}

h2 {
  margin: 40px 0 16px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.4;
}

h3 {
  margin: 32px 0 12px;
  font-size: 24px;
  font-weight: 400;
}

h2.course-title {
  font-size: 30px;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 24px;
  padding-left: 1.6em;
}

li + li {
  margin-top: 8px;
}

.notice {
  font-size: 14px;
}

.notice.emphasis {
  color: var(--notice);
}

.model-case {
  display: block;
  width: 100%;
  height: auto;
}

.table-scroll {
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border: 1px solid #999;
  font-variant-numeric: tabular-nums;
}

.fee-table caption {
  padding: 14px;
  color: #fff;
  background: var(--result-head);
  font-size: 22px;
}

.fee-table th,
.fee-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-weight: 400;
  text-align: center;
}

.fee-table thead th {
  font-size: 14px;
}

.fee-table tbody th {
  text-align: left;
}

.fee-table .subtotal th,
.fee-table .subtotal td {
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
}

.fee-table .subtotal td {
  font-weight: 700;
  text-align: right;
}

/* 合計の金額は総合計の列に置き、同じ行の空セルとの間の罫線は引かない */
.fee-table .subtotal td:not(:last-child),
.fee-table .grand-total td:not(:last-child) {
  border-right: none;
}

.fee-table .subtotal td + td,
.fee-table .grand-total td + td {
  border-left: none;
}

.fee-table .grand-total th,
.fee-table .grand-total td {
  border-top: 1px solid #999;
  font-size: 24px;
}

.fee-table .grand-total td {
  text-align: right;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  margin-top: 64px;
}

.button {
  display: block;
  width: 100%;
  max-width: 600px;
  padding: 4px 16px;
  border-radius: 4px;
  color: #fff;
  background: var(--button);
  font-size: 22px;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--button-hover);
}

@media (max-width: 640px) {
  .page-header h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 26px;
  }

  .steps a {
    min-width: 0;
  }
}
