:root {
  --biz-ink: #0b1f43;
  --biz-muted: #5d6b82;
  --biz-blue: #075bb7;
  --biz-blue-dark: #07346f;
  --biz-green: #1d9b68;
  --biz-amber: #f1a629;
  --biz-coral: #e1574f;
  --biz-sky: #eef6ff;
  --biz-line: #d3dfed;
  --biz-paper: #ffffff;
}

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

body.biz-writing-page {
  margin: 0;
  color: var(--biz-ink);
  background: linear-gradient(180deg, #ffffff, #f7fbff 58%, #fff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.76;
}

.biz-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--biz-line);
  background: rgba(255,255,255,.97);
}

.biz-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--biz-ink);
  text-decoration: none;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 950;
}

.biz-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--biz-blue);
  font-size: 23px;
  font-weight: 950;
}

.biz-nav {
  display: flex;
  gap: 22px;
  font-size: 16px;
  font-weight: 850;
}

.biz-nav a {
  color: var(--biz-ink);
  text-decoration: none;
}

.biz-search {
  display: flex;
  align-items: center;
  width: min(340px, 28vw);
  height: 44px;
  border: 1px solid var(--biz-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.biz-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.biz-search button {
  width: 48px;
  height: 44px;
  border: 0;
  color: #fff;
  background: var(--biz-blue-dark);
  font-size: 20px;
  font-weight: 950;
}

.biz-hero {
  padding: clamp(28px, 4.2vw, 56px) clamp(18px, 4vw, 56px) 24px;
  background:
    linear-gradient(90deg, rgba(238,246,255,.85), rgba(255,255,255,.92) 48%, rgba(238,246,255,.58)),
    #fff;
}

.biz-hero-grid {
  max-width: 1510px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.biz-breadcrumb {
  color: var(--biz-blue);
  font-size: 16px;
  font-weight: 850;
}

.biz-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 24px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--biz-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.biz-hero h1 {
  margin: 14px 0 10px;
  color: var(--biz-ink);
  font-size: clamp(46px, 5.4vw, 82px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 950;
}

.biz-subtitle {
  margin: 0 0 14px;
  color: var(--biz-ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
  font-weight: 950;
}

.biz-lead {
  max-width: 730px;
  margin: 0;
  color: #32435b;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 650;
}

.biz-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 18px 0 14px;
}

.biz-action {
  min-height: 136px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 2px solid var(--biz-line);
  border-radius: 8px;
  background: #fff;
  color: var(--biz-ink);
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(7,52,111,.08);
}

.biz-action.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--biz-blue), #07459b);
  border-color: var(--biz-blue);
}

.biz-action-icon,
.biz-tab-icon,
.biz-step-icon {
  display: grid;
  place-items: center;
  font-weight: 950;
}

.biz-action-icon {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  color: inherit;
  border: 2px solid currentColor;
  font-size: 28px;
}

.biz-action b {
  display: block;
  font-size: clamp(24px, 1.9vw, 31px);
  line-height: 1.24;
  white-space: nowrap;
}

.biz-action p {
  margin: 6px 0 0;
  color: inherit;
  opacity: .86;
  font-size: 16px;
  line-height: 1.58;
  font-weight: 700;
}

.biz-action-arrow {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--biz-blue);
  font-size: 26px;
  font-weight: 950;
}

.biz-action.primary .biz-action-arrow {
  color: var(--biz-blue);
  background: #fff;
}

.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.biz-tags span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid #b9cce5;
  border-radius: 8px;
  color: var(--biz-blue);
  background: #fff;
  font-size: 15px;
  font-weight: 850;
}

.biz-panel {
  border: 1px solid var(--biz-line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 46px rgba(7,52,111,.10);
}

.biz-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--biz-line);
  margin: -8px -8px 18px;
}

.biz-tabs span {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-bottom: 3px solid transparent;
  color: #5d6c82;
  font-size: 16px;
  font-weight: 900;
}

.biz-tabs span.active {
  color: var(--biz-blue);
  border-color: var(--biz-blue);
}

.biz-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.biz-panel-head h2,
.biz-section-head h2,
.biz-side-card h2 {
  margin: 0;
  color: var(--biz-ink);
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.3;
}

.biz-copy-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #9ebce3;
  border-radius: 8px;
  color: var(--biz-blue);
  background: #fff;
  font-size: 15px;
  font-weight: 950;
}

.biz-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 22px;
}

.biz-document {
  min-height: 330px;
  padding: 22px;
  border: 1px solid #bfcde0;
  border-radius: 8px;
  background: #fff;
  color: #172944;
  font-size: 16px;
  line-height: 1.78;
  font-weight: 650;
  white-space: pre-line;
}

.biz-controls h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.biz-tone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.biz-tone-row span {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 6px 13px;
  border: 1px solid var(--biz-line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
}

.biz-tone-row span.active {
  color: #fff;
  background: var(--biz-blue);
  border-color: var(--biz-blue);
}

.biz-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.biz-checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin: 10px 0;
  color: #34465e;
  font-size: 15px;
  font-weight: 750;
}

.biz-checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: #fff;
  background: var(--biz-blue);
  font-size: 13px;
  font-weight: 950;
}

.biz-shell {
  max-width: 1510px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}

.biz-section,
.biz-side-card {
  border: 1px solid var(--biz-line);
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 34px rgba(7,52,111,.05);
}

.biz-section {
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 32px);
}

.biz-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.biz-section-head p {
  margin: 0;
  color: var(--biz-muted);
  font-size: 16px;
  font-weight: 750;
}

.biz-step-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.biz-step-card {
  min-height: 162px;
  padding: 18px;
  border: 1px solid var(--biz-line);
  border-radius: 8px;
  background: #fff;
}

.biz-step-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--biz-blue);
  font-size: 18px;
}

.biz-step-card h3 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.36;
}

.biz-step-card p {
  margin: 0;
  color: #45556b;
  font-size: 15px;
  line-height: 1.62;
  font-weight: 650;
}

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

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

.biz-example-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.biz-example-card pre {
  margin: 0;
  color: #22334c;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.biz-example-card .biz-copy-button {
  width: 100%;
  margin-top: 14px;
}

.biz-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--biz-line);
  border-radius: 8px;
  background: #fff;
}

.biz-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.biz-table th,
.biz-table td {
  padding: 15px 16px;
  border-right: 1px solid var(--biz-line);
  border-bottom: 1px solid var(--biz-line);
  vertical-align: top;
  font-size: 16px;
}

.biz-table th {
  color: var(--biz-blue-dark);
  background: #f1f7ff;
  font-weight: 950;
}

.biz-table td {
  color: #33455d;
  font-weight: 650;
}

.biz-table tr:last-child td { border-bottom: 0; }
.biz-table th:last-child,
.biz-table td:last-child { border-right: 0; }

.biz-ng {
  border-color: #f0c6c2;
  background: #fff8f7;
}

.biz-ng h2 {
  margin: 0 0 12px;
  color: #b6382e;
  font-size: clamp(26px, 2.2vw, 34px);
}

.biz-ng ul,
.biz-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.biz-ng li {
  position: relative;
  margin: 9px 0;
  padding-left: 22px;
  color: #37485e;
  font-weight: 750;
}

.biz-ng li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--biz-coral);
  font-weight: 950;
}

.biz-side-sticky {
  position: sticky;
  top: 18px;
}

.biz-side-card {
  margin-bottom: 18px;
  padding: 20px;
}

.biz-toc a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid var(--biz-line);
  color: var(--biz-ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
}

.biz-toc li:last-child a { border-bottom: 0; }

.biz-bookmark {
  border-color: #9ebce3;
  background: #f7fbff;
}

.biz-bookmark strong {
  display: block;
  font-size: 21px;
  line-height: 1.35;
}

.biz-bookmark p {
  margin: 8px 0 14px;
  color: var(--biz-muted);
  font-size: 16px;
  font-weight: 700;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 94px;
  margin: 18px 0;
  border: 1px dashed #cbd8e8;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #7f8d9d;
  font-size: 14px;
  font-weight: 850;
}

.biz-footer {
  padding: 32px 18px 44px;
  text-align: center;
  border-top: 1px solid var(--biz-line);
  background: #fff;
  color: var(--biz-muted);
  font-size: 15px;
}

.biz-footer a {
  color: var(--biz-blue);
  text-decoration: none;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .biz-nav { display: none; }
  .biz-search { width: min(320px, 40vw); }
  .biz-hero-grid,
  .biz-shell { grid-template-columns: 1fr; }
  .biz-side-sticky {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .biz-side-card { margin-bottom: 0; }
}

@media (max-width: 860px) {
  .biz-preview { grid-template-columns: 1fr; }
  .biz-step-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-example-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body.biz-writing-page { font-size: 17px; }
  .biz-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .biz-search { width: 100%; }
  .biz-hero { padding-top: 28px; }
  .biz-hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .biz-subtitle { font-size: 21px; }
  .biz-actions,
  .biz-tabs,
  .biz-side-sticky,
  .biz-step-flow { grid-template-columns: 1fr; }
  .biz-action {
    min-height: 116px;
    grid-template-columns: 58px 1fr 28px;
    padding: 18px;
  }
  .biz-action b { font-size: 24px; }
  .biz-panel { padding: 16px; }
  .biz-tabs span {
    border-bottom: 1px solid var(--biz-line);
  }
  .biz-document {
    min-height: 320px;
    font-size: 15px;
  }
  .biz-section { padding: 20px; }
  .biz-section-head { display: block; }
  .biz-section-head p { margin-top: 8px; }
  .biz-table-wrap { overflow-x: visible; }
  .biz-table { min-width: 0; }
  .biz-table thead { display: none; }
  .biz-table,
  .biz-table tbody,
  .biz-table tr,
  .biz-table td {
    display: block;
    width: 100%;
  }
  .biz-table tr { border-bottom: 1px solid var(--biz-line); }
  .biz-table tr:last-child { border-bottom: 0; }
  .biz-table td {
    border-right: 0;
    padding: 13px 14px;
  }
  .biz-table td:first-child {
    background: #f1f7ff;
    color: var(--biz-blue-dark);
    font-weight: 950;
  }
}
