:root {
  --ink: #101827;
  --muted: #536175;
  --line: #d9e3ef;
  --paper: #fff;
  --soft: #f6fbff;
  --green: #07944b;
  --green-dark: #056636;
  --blue: #1265c8;
  --amber: #aa6100;
  --amber-soft: #fff7e5;
  --shadow: 0 18px 46px rgba(16, 24, 39, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.br-page {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0, #f5fbff 500px, #fff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
  line-height: 1.7;
}

a {
  color: inherit;
}

.br-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
}

.br-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.br-brand-mark {
  width: 42px;
  height: 34px;
  border: 3px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.br-brand b {
  display: block;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 950;
}

.br-brand small {
  display: block;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 850;
}

.br-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.br-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #1d2f4a;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.br-nav a:last-child {
  border-radius: 999px;
  background: #eaf8ef;
  color: var(--green-dark);
}

.br-hero {
  width: min(1500px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 800px);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0 24px;
}

.br-breadcrumb {
  margin: 0 0 18px;
  color: #667386;
  font-size: 14px;
  font-weight: 850;
}

.br-breadcrumb a {
  text-decoration: none;
}

.br-breadcrumb span {
  padding: 0 8px;
  color: #9faab8;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 5.8vw, 78px);
  line-height: 1.08;
  font-weight: 950;
}

.br-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #134f96;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.45;
  font-weight: 950;
}

.br-actions {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(220px, 320px);
  gap: 14px;
  margin-top: 24px;
}

.br-action {
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 950;
}

.br-action.primary {
  background: linear-gradient(135deg, #08ab58, var(--green-dark));
  color: #fff;
  box-shadow: 0 16px 30px rgba(7, 148, 75, .22);
}

.br-action:not(.primary) {
  border: 3px solid var(--blue);
  background: #fff;
  color: #0a4f9b;
}

.br-caution {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid #eac471;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #74430a;
  font-size: 19px;
  font-weight: 950;
}

.br-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.br-points span {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
}

.br-points b {
  color: #15385f;
  font-size: 16px;
  font-weight: 950;
}

.br-points small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.br-tool-preview {
  overflow: hidden;
  border: 1px solid #b9cde6;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.br-tool-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--blue), #034f9f);
  color: #fff;
}

.br-tool-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
}

.br-tool-head a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 7px;
  background: rgba(255,255,255,.16);
  text-decoration: none;
  font-weight: 900;
}

.br-tool-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.br-tool-inputs,
.br-tool-output {
  padding: 20px;
}

.br-tool-inputs {
  display: grid;
  gap: 12px;
  border-right: 1px solid var(--line);
  background: #fbfdff;
}

.br-tool-inputs label {
  display: grid;
  gap: 6px;
  color: #1c2e48;
  font-size: 16px;
  font-weight: 950;
}

.br-tool-inputs span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
  color: #7b8796;
  font-size: 14px;
  font-weight: 780;
}

.br-tool-output {
  display: grid;
  gap: 12px;
}

.br-tool-output article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.br-tool-output article:nth-child(2) {
  border-color: #b9dec8;
  background: #fbfffc;
}

.br-tool-output article:nth-child(3) {
  border-color: #f1d19b;
  background: #fffaf1;
}

.br-tool-output h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 950;
}

.br-tool-output article:nth-child(2) h3 {
  color: var(--green-dark);
}

.br-tool-output article:nth-child(3) h3 {
  color: var(--amber);
}

.br-tool-output p {
  margin: 0;
  color: #4d5b6c;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 780;
}

.br-wrap {
  width: min(1500px, calc(100% - 44px));
  margin: 22px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.br-answer {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  border-color: rgba(7, 148, 75, .35);
  background: #f7fff9;
}

.br-answer > span {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(7, 148, 75, .25);
  color: var(--green-dark);
  font-size: 25px;
  font-weight: 950;
}

.br-answer h2,
.br-section-head h2,
.br-tool-cta h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  font-weight: 950;
}

.br-answer p {
  margin: 10px 0 0;
  color: #354356;
  font-size: 18px;
  font-weight: 780;
}

.br-section-head {
  margin-bottom: 16px;
}

.br-section-head p,
.br-tool-cta p {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-weight: 950;
}

.br-flow-list,
.br-starter-grid,
.br-length-grid,
.br-lastday-grid,
.br-ng-grid,
.br-rules-grid,
.br-source-grid {
  display: grid;
  gap: 14px;
}

.br-flow-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.br-flow-list li {
  min-height: 178px;
  position: relative;
  padding: 58px 18px 18px;
  border: 1px solid #cbdff5;
  border-radius: 8px;
  background: #fbfdff;
}

.br-flow-list li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.br-flow-list b,
.br-flow-list span {
  display: block;
}

.br-flow-list b,
.br-starter-grid h3,
.br-length-grid h3,
.br-lastday-grid h3,
.br-ng-grid h3,
.br-rules-grid h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 950;
}

.br-flow-list span,
.br-starter-grid p,
.br-lastday-grid p,
.br-ng-grid p,
.br-rules-grid p,
.br-rules-grid li,
.br-length-grid li,
.br-note {
  color: #526071;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 780;
}

.br-starter-grid,
.br-length-grid,
.br-lastday-grid,
.br-ng-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.br-starter-grid article,
.br-length-grid article,
.br-lastday-grid article,
.br-ng-grid article,
.br-rules-grid article,
.br-source-grid a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.br-length-grid article {
  background: #fbfdff;
}

.br-starter-grid p,
.br-lastday-grid p,
.br-ng-grid p {
  margin: 0;
}

.br-length-grid ol,
.br-rules-grid ul {
  margin: 0;
  padding-left: 20px;
}

.br-length-grid li,
.br-rules-grid li {
  margin: 7px 0;
}

.br-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f4faf6;
}

.br-ng {
  border-color: #eec2b8;
  background: #fff8f6;
}

.br-ng-grid h3 {
  color: #ad2b23;
}

.br-rules-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.br-source-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.br-source-grid a {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  color: #155b9e;
  text-decoration: none;
}

.br-source-grid b {
  color: #173552;
  font-size: 18px;
}

.br-source-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.br-tool-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
  border-color: rgba(7, 148, 75, .35);
  background: #f7fff9;
}

.br-tool-cta span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 780;
}

.br-tool-cta a {
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #08ab58, var(--green-dark));
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(7, 148, 75, .18);
}

.br-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 30px 16px;
  border-top: 1px solid var(--line);
  color: #5f6b7a;
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .br-hero,
  .br-tool-body,
  .br-tool-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .br-tool-inputs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .br-flow-list,
  .br-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .br-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 14px;
  }

  .br-brand b {
    font-size: 19px;
  }

  .br-brand small {
    display: none;
  }

  .br-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .br-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
  }

  .br-hero,
  .br-wrap {
    width: calc(100% - 20px);
  }

  .br-hero {
    padding-top: 22px;
  }

  h1 {
    font-size: 40px;
  }

  .br-lead {
    font-size: 21px;
  }

  .br-actions,
  .br-points,
  .br-answer,
  .br-flow-list,
  .br-starter-grid,
  .br-length-grid,
  .br-lastday-grid,
  .br-ng-grid,
  .br-rules-grid,
  .br-source-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .br-action {
    min-height: 64px;
    font-size: 22px;
  }

  .br-tool-inputs,
  .br-tool-output,
  .br-wrap {
    padding: 16px;
  }

  .br-answer > span {
    min-height: 42px;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 148, 75, .25);
  }
}
