html:has(.brief-page) { scroll-padding-top: 28px; }

.brief-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(46px, 7vw, 100px);
  background: radial-gradient(ellipse at 77% 39%, #29251d, #111111 66%);
  color: #ffffff;
  --focus: #d8b979;
}

.brief-banner .wrap { position: relative; z-index: 1; }
.brief-banner .growth-orbit {
  right: clamp(-370px, -10vw, -110px);
  top: -150px;
  opacity: .35;
}

.brief-banner .growth-orbit span { border-color: #d8b979; }
.brief-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: .3em;
}
.brief-back:hover { text-decoration: underline; }
.brief-back span { color: var(--accent-text, #785621); }
.brief-banner .brief-back { color: #ffffff; }
.brief-banner .brief-back span { color: #d8b979; }

.brief-banner h1 {
  margin-block: 30px 20px;
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.brief-banner p {
  max-width: 56ch;
  color: #dedbd3;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
}

.brief-time {
  width: fit-content;
  margin-top: 28px;
  padding-top: 11px;
  border-top: 1px solid #d8b979;
  color: #d8b979;
  font-size: 14px;
}

.brief-content {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 88px);
  padding-block: clamp(42px, 7vw, 100px);
}

.brief-content:has(.brief-confirmation:not([hidden])) {
  grid-template-columns: minmax(0, 1fr);
}

.brief-index { position: sticky; top: 28px; }
.brief-index-title { margin: 0 0 17px; font-size: 18px; font-weight: 650; }
.brief-index ol { list-style: none; padding: 0; margin: 0; }
.brief-index a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 42px;
  padding-block: 9px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.brief-index a:hover { color: var(--accent-text, #785621); }
.brief-index a span,
.brief-panel h2 span {
  color: var(--accent-text, #785621);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .025em;
}

.brief-required-note { margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.brief-star { color: var(--accent-text, #785621); font-weight: 700; }

.brief-panel {
  margin-bottom: 24px;
  padding: clamp(19px, 3.5vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.brief-panel h2 {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 27px;
  font-size: clamp(23px, 2.8vw, 36px);
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: -.035em;
}
.brief-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}
.brief-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}
.brief-field-wide { grid-column: 1 / -1; }
.brief-field legend { padding: 0; margin-bottom: 9px; }
.brief-field > input,
.brief-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid #85817a;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.brief-field textarea { resize: vertical; min-height: 98px; }
.brief-field > input:focus-visible,
.brief-field textarea:focus-visible,
.brief-option input:focus-visible {
  outline: 2px solid var(--accent-text, #785621);
  outline-offset: 3px;
}
.brief-options { display: flex; flex-wrap: wrap; gap: 7px 10px; }
.brief-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.brief-option:hover,
.brief-option:has(input:checked) { border-color: var(--accent-text, #785621); }
.brief-option:has(input:checked) { background: var(--accent-wash, #dfb58d30); }
.brief-option input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-text, #785621);
}
.brief-form-actions { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; }
.brief-send {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 38px);
  min-height: 54px;
  max-width: 100%;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
  text-align: left;
}
.brief-send:hover:not(:disabled) { background: #322c20; }
.brief-send:disabled { opacity: .7; }
.brief-send i {
  width: 12px;
  height: 12px;
  flex: none;
  color: #d8b979;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(135deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}
.brief-error {
  max-width: 43ch;
  color: #82341c;
  font-size: 15px;
  line-height: 1.55;
}
.brief-confirmation {
  max-width: 790px;
  padding: clamp(23px, 4.5vw, 58px);
  border: 1px solid var(--accent-text, #785621);
  border-radius: 16px;
  background: var(--paper);
}
.brief-confirmation h2 {
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.045em;
}
.brief-confirmation p {
  max-width: 51ch;
  margin: 15px 0 17px;
  color: var(--muted);
  line-height: 1.7;
}
.brief-footer { padding-top: 0; }
.brief-footer .site-footer { border-top: 0; }

@media (max-width: 860px) {
  .brief-content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .brief-index { position: static; }
  .brief-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .brief-banner .growth-orbit { right: -370px; opacity: .22; }
}
@media (max-width: 540px) {
  .brief-banner h1 { margin-top: 19px; }
  .brief-banner .growth-orbit { right: -495px; }
  .brief-index ol,
  .brief-fields { grid-template-columns: minmax(0, 1fr); }
  .brief-index a { min-height: 39px; }
  .brief-panel { margin-bottom: 16px; }
  .brief-panel h2 { margin-bottom: 23px; }
}
