.business-letter-format-page {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  background: #f5f7fb;
  color: #172033;
}

.business-page-shell {
  overflow-x: hidden;
}

.business-hero {
  padding: 72px 0 48px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 48%, #f7f5ef 100%);
}

.business-hero__header {
  max-width: 920px;
  margin: 0 auto 32px;
  text-align: center;
}

.business-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(26, 71, 126, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #34506f;
  font-size: 0.92rem;
  font-weight: 600;
}

.business-badge span {
  color: #0f766e;
}

.business-hero h1,
.business-section h2 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  letter-spacing: 0;
}

.business-hero h1 {
  max-width: 860px;
  margin: 18px auto 16px;
  color: #13233a;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.03;
  font-weight: 700;
}

.business-hero__header p {
  max-width: 820px;
  margin: 0 auto;
  color: #52627a;
  font-size: 1.08rem;
  line-height: 1.75;
}

.business-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.business-form,
.business-result,
.step-card,
.example-card,
.check-card,
.related-card,
.faq-item,
.business-table-wrap {
  border: 1px solid rgba(34, 63, 99, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(34, 63, 99, 0.08);
}

.business-form,
.business-result {
  padding: 22px;
}

.form-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #eef8f6;
  color: #155e54;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.business-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #22344d;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  padding: 11px 12px;
  color: #172033;
  background: #fbfdff;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #2f6fbd;
  box-shadow: 0 0 0 4px rgba(47, 111, 189, 0.12);
}

.field-help,
.field-error {
  margin: 7px 0 0;
  font-size: 0.84rem;
}

.field-help {
  color: #69778d;
}

.field-error {
  color: #b42318;
  font-weight: 700;
}

.business-actions,
.result-toolbar,
.result-actions,
.format-tips {
  display: flex;
  align-items: center;
}

.business-actions {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sample-btn,
.business-submit,
.icon-btn {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sample-btn,
.business-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
}

.sample-btn {
  background: #eef2f7;
  color: #24364e;
}

.business-submit {
  background: #1f5fa8;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(31, 95, 168, 0.24);
}

.sample-btn:hover,
.business-submit:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.result-toolbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.result-label {
  color: #1f5fa8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-heading {
  margin: 2px 0 0;
  color: #172033;
  font-weight: 800;
}

.result-actions {
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  color: #22344d;
  background: #eef2f7;
}

.letter-preview {
  min-height: 520px;
  margin: 0;
  padding: 22px;
  border: 1px solid #e0e7f1;
  border-radius: 8px;
  background: #fbfcff;
  color: #1e293b;
  font-family: "Courier New", monospace;
  font-size: 0.94rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.letter-preview.modified-block .date-line,
.letter-preview.modified-block .closing-line,
.letter-preview.modified-block .signature-line {
  display: block;
  padding-left: min(42%, 210px);
}

.format-tips {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.format-tips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f7ff;
  color: #2b547f;
  font-size: 0.82rem;
  font-weight: 700;
}

.business-section {
  padding: 58px 0;
}

.business-section--muted {
  background: #edf2f7;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.example-layout h2 {
  margin-bottom: 10px;
  color: #16243a;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 700;
}

.section-heading p,
.example-layout p,
.step-card p,
.check-card p,
.related-card p,
.faq-item p {
  color: #55657b;
  line-height: 1.72;
}

.step-grid,
.check-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.check-card,
.related-card,
.faq-item {
  padding: 22px;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #1f5fa8;
  color: #ffffff;
  font-weight: 800;
}

.step-card h3,
.check-card h3,
.faq-item h3 {
  color: #172033;
  font-size: 1.08rem;
  font-weight: 800;
}

.business-table-wrap {
  overflow: hidden;
}

.business-table {
  margin: 0;
}

.business-table th {
  background: #173b63;
  color: #ffffff;
  font-weight: 800;
}

.business-table td,
.business-table th {
  padding: 15px;
  vertical-align: top;
}

.example-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: #2b3b51;
}

.check-list i {
  margin-top: 4px;
  color: #0f766e;
}

.example-label {
  margin: 0 0 10px;
  color: #1f5fa8;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.example-card pre {
  margin: 0;
  color: #26364e;
  font-family: "Courier New", monospace;
  line-height: 1.6;
  white-space: pre-wrap;
}

.related-card {
  color: inherit;
  text-decoration: none;
}

.related-card:hover {
  color: inherit;
  border-color: rgba(31, 95, 168, 0.32);
  transform: translateY(-2px);
}

.related-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: 1.08rem;
}

.source-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(34, 63, 99, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(34, 63, 99, 0.08);
}

.source-band h2 {
  margin-bottom: 8px;
  color: #16243a;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.source-band p {
  margin: 0;
  color: #55657b;
  line-height: 1.72;
}

.source-links {
  display: grid;
  gap: 10px;
}

.source-links a {
  display: block;
  padding: 11px 12px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  color: #1f5fa8;
  font-weight: 800;
  text-decoration: none;
  background: #f8fbff;
}

.source-links a:hover {
  border-color: rgba(31, 95, 168, 0.34);
  background: #eef6ff;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .business-tool,
  .example-layout {
    grid-template-columns: 1fr;
  }

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

  .letter-preview {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .business-hero {
    padding: 46px 0 32px;
  }

  .business-form,
  .business-result,
  .step-card,
  .check-card,
  .related-card,
  .faq-item {
    padding: 18px;
  }

  .business-form-grid,
  .business-form-grid--three,
  .step-grid,
  .check-grid,
  .related-grid,
  .source-band {
    grid-template-columns: 1fr;
  }

  .business-actions,
  .result-toolbar {
    align-items: stretch;
  }

  .business-actions,
  .result-toolbar {
    flex-direction: column;
  }

  .sample-btn,
  .business-submit {
    width: 100%;
  }

  .result-actions {
    align-self: flex-start;
  }

  .letter-preview {
    min-height: 320px;
    padding: 16px;
    font-size: 0.86rem;
  }

  .letter-preview.modified-block .date-line,
  .letter-preview.modified-block .closing-line,
  .letter-preview.modified-block .signature-line {
    padding-left: 0;
  }
}
