.inquiry-layout {
  --sheet: #f7f4fb;
  --pen: #261d36;
  --pencil: #655b72;
  background: var(--sheet);
  overflow-x: clip;
}
.inquiry-spread {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
}
.dispatch {
  position: relative; isolation: isolate; min-width: 0;
  color: #fff9ff;
}
.dispatch::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 auto; width: 100vw;
  background: radial-gradient(ellipse 620px 590px at 100% 56%, #3d3056 0, #272037 48%, #191522 100%);
}
.dispatch-inner {
  position: sticky; top: var(--header-height); container-type: inline-size;
  padding: clamp(28px,3vw,44px) clamp(32px,3.7vw,58px) 28px 0;
}
.back-home { display: inline-flex; align-items: center; gap: 9px; color: #d5cddd; font-size: 13px; }
.back-home:hover { color: white; }
.dispatch h1 {
  margin: clamp(30px,3.8vw,58px) 0 17px;
  font-size: clamp(38px,4.4vw,68px); font-size: clamp(34px,14.3cqi,68px);
  font-weight: 650; letter-spacing: -.052em; line-height: 1.16;
}
.dispatch h1 span { display: block; white-space: nowrap; }
.dispatch h1 em { color: var(--mint); font-style: normal; }
.dispatch-intro { color: #d6ccdf; max-width: 23em; font-size: clamp(15px,1.15vw,17px); line-height: 1.75; text-wrap: pretty; }
.envelope-stage { display: grid; place-items: center; height: clamp(160px,21vh,230px); margin: 30px 0 18px; }
.envelope {
  width: min(62%,244px); aspect-ratio: 1.75; position: relative; isolation: isolate;
  transform: rotate(-9deg) skewY(2deg); filter: drop-shadow(0 17px 17px #0d071d66);
}
.env-back, .env-front { position: absolute; inset: 0; border-radius: 3px; }
.env-back { background: linear-gradient(160deg,#8877a2,#b49bcb); }
.env-letter {
  position: absolute; inset: -10% 5% 11%; padding: 7.5%;
  display: grid; align-content: start; grid-template-columns: auto 1fr; align-items: center; gap: 2% 4%;
  color: #453654; background: linear-gradient(140deg,#f5fcf5,#cbded9); border-radius: 3px;
  transform: translateY(var(--letter-y,-8%)) rotate(-3deg);
  transition: transform .65s cubic-bezier(.2,.7,.25,1);
}
.env-letter img { width: clamp(16px,1.65vw,25px); height: auto; }
.env-letter b { font-size: clamp(13px,1.5vw,21px); letter-spacing: -.055em; }
.env-letter span { grid-column: 1/-1; align-self: start; margin-top: 2%; font-size: clamp(10px,.9vw,15px); }
.env-front { background: linear-gradient(150deg,#d8c6e9,#ac92c4); clip-path: polygon(0 0,50% 53%,100% 0,100% 100%,0 100%); }
.env-front::before, .env-front::after { content: ""; position: absolute; inset: 0; }
.env-front::before { background: linear-gradient(90deg,#dfceee,#baa6d1); clip-path: polygon(100% 0,100% 100%,40% 58%); }
.env-front::after { background: linear-gradient(150deg,#eadcf3,#c7b1da); clip-path: polygon(0 100%,43% 52%,52% 56%,59% 51%,100% 100%); }
.env-route { position: absolute; bottom: 12%; left: 8%; display: flex; align-items: center; gap: 5px; font: 650 clamp(7px,.7vw,10px)/1 var(--mono); letter-spacing: .035em; color: #574064; }
.env-route i { width: 14px; height: 1px; background: currentColor; }
.env-seal { position: absolute; right: 8%; bottom: 14%; display: grid; place-items: center; background: #efe5fa; border: 1px dashed #907e9e; width: 18%; aspect-ratio: .92; transform: rotate(6deg); }
.env-seal img { width: 61%; height: auto; }
.inquiry-layout[data-writing] { --letter-y: -20%; }
.inquiry-layout[data-ready] { --letter-y: -29%; }
.inquiry-layout[data-received] { --letter-y: 18%; }
.office-note { border-top: 1px solid #d3c2eb38; margin-top: 5px; font-size: 13px; color: #dbd0e7; }
.office-note summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.office-note summary::-webkit-details-marker { display: none; }
.office-note summary::after { content: "+"; font: 20px var(--mono); }
.office-note[open] summary::after { content: "−"; }
.office-note address { padding-bottom: 10px; font-style: normal; line-height: 1.9; }
.office-note address b { margin-right: 4px; }
.inquiry-sheet {
  color-scheme: light; color: var(--pen); min-width: 0;
  padding: clamp(28px,3vw,44px) 0 clamp(38px,4vw,64px) clamp(30px,4.8vw,76px);
}
.sheet-inner { min-width: 0; }
.sheet-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 2px solid #33243f; padding-bottom: 17px; }
.sheet-heading h2 { font-size: clamp(26px,2.4vw,41px); letter-spacing: -.06em; line-height: 1.15; }
.sheet-heading > span { color: var(--pencil); font: 600 10px var(--mono); letter-spacing: .09em; }
.inquiry-sheet fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.inquiry-sheet legend { padding: 0; }
.inquiry-sheet .chapter { margin: clamp(20px,2vw,28px) 0; }
.chapter + .chapter { border-top: 1px solid #dad1e0; }
.chapter > legend { margin-bottom: 17px; display: flex; gap: 13px; align-items: center; font-size: clamp(20px,1.6vw,26px); line-height: 1.3; font-weight: 700; letter-spacing: -.04em; }
.chapter-no { color: #71558b; font: 500 12px var(--mono); }
.method-pick legend, .field { font-weight: 620; font-size: 14px; }
.field { display: block; margin-bottom: 7px; }
.field span, .method-pick legend > span { margin-left: 4px; font-size: 12px; font-weight: 450; color: var(--pencil); }
.service-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.service-line .field { margin: 0; }
.service-line select, .case-context select {
  max-width: 100%; min-height: 42px; padding: 6px 8px; font: inherit; font-size: 14px;
  color: var(--pen); border: 1px solid #d0c5d9; border-radius: 6px; background: #fffdfd;
}
.case-context { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 15px; padding: 5px 12px; border-left: 2px solid #876598; background: #ede6f3; color: var(--pencil); font-size: 13px; }
.case-context select { min-width: 0; min-height: 36px; flex: 1; border: 0; background: transparent; }
.reply-line { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; margin-top: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.choice input:focus-visible + span, .office-note summary:focus-visible { outline: 2px solid #956ce3; outline-offset: 3px; }
.inquiry-sheet textarea, .line-input {
  display: block; width: 100%; padding: 11px 13px; border: 1px solid #c9bfd2; border-radius: 6px;
  background: #fffdfefd; color: var(--pen); font-size: 16px; line-height: 1.55;
}
.inquiry-sheet textarea { resize: vertical; min-height: 86px; }
.inquiry-sheet :is(textarea,.line-input)::placeholder { color: #716679; font-size: 14px; opacity: 1; }
.inquiry-sheet :is(textarea,.line-input):focus-visible { outline: 2px solid #81659e; outline-offset: 1px; }
.inquiry-sheet .method-pick { margin: 0 0 14px; }
.methods { display: inline-flex; flex-wrap: nowrap; border-radius: 999px; gap: 0; padding: 3px; background: #e9e3ef; }
.methods .choice span { min-height: 38px; padding-inline: 14px; border: 0; border-radius: 999px; }
.methods .choice input:checked + span { color: white; background: #43304f; }
.inquiry-send { border-top: 1px solid #d7cedc; padding-top: 19px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.inquiry-send p, .receipt p { color: var(--pencil); font-size: 13px; line-height: 1.65; }
.send-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 23px; padding: 6px 7px 6px 21px;
  min-height: 47px; border: 0; border-radius: 999px; color: #fff; background: #34263f; font-weight: 650;
}
.send-button i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #c8f7df; color: #2e3740; font: normal 19px var(--body-font); transition: transform .2s; }
.send-button:hover i { transform: rotate(45deg); }
.send-button:disabled { opacity: .68; cursor: wait; }
.form-error { padding: 12px 15px; color: #7c2942; border-left: 2px solid #963758; margin: 0 0 18px; background: #f4e6ec; font-size: 14px; }
.receipt { padding: clamp(42px,6vw,90px) 0; }
.receipt-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #c9f0da; color: #24543c; font-size: 23px; }
.receipt h3 { margin: 23px 0 11px; font-size: clamp(26px,3vw,44px); letter-spacing: -.05em; }
.receipt p { font-size: 16px; overflow-wrap: anywhere; }
.receipt dl { margin: 28px 0; padding: 19px 0; border-block: 1px solid #d7cedc; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.receipt dt { font-size: 14px; }
.receipt dd { font: 600 16px var(--mono); }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; }
.receipt-actions button { border: 1px solid #ac9cb6; border-radius: 999px; padding: 10px 17px; color: var(--pen); background: transparent; }
@media (min-width: 901px) and (max-width: 1150px) {
  .reply-line { grid-template-columns: minmax(0,1fr); }
  .methods { justify-self: start; }
}
@media (max-width: 900px) {
  .inquiry-spread { display: block; }
  .dispatch::before { inset-inline: calc((100% - 100vw) / 2) auto; }
  .dispatch-inner {
    position: relative; top: auto; padding: 20px 0 10px; display: grid;
    grid-template-columns: minmax(0,1fr) minmax(74px,26%); column-gap: 12px; align-items: center;
  }
  .back-home { grid-column: 1/-1; justify-self: start; }
  .dispatch h1 { grid-column: 1; grid-row: 2; margin: 19px 0 13px; font-size: clamp(26px,7.4cqi,43px); }
  .dispatch-intro { grid-column: 1/-1; max-width: 34em; font-size: 14px; }
  .envelope-stage { grid-column: 2; grid-row: 2; height: auto; margin: 0; }
  .envelope { width: min(89%,125px); }
  .env-letter { padding: 6%; }
  .env-route { font-size: 6px; }
  .env-route i { width: 5px; }
  .office-note { grid-column: 1/-1; margin-top: 15px; }
  .office-note summary { min-height: 36px; }
  .inquiry-sheet { padding: 25px 0 38px; }
}
@media (max-width: 550px) {
  .reply-line { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .methods { justify-self: start; }
  .methods .choice span { min-height: 40px; padding-inline: 16px; }
  .inquiry-send { align-items: stretch; flex-direction: column; }
  .send-button { align-self: stretch; }
  .case-context select { flex-basis: 150px; }
}
@media (max-width: 380px) { .env-route { display: none; } }
@media (max-height: 790px) and (min-width: 901px) { .dispatch-inner { position: relative; top: auto; } }
@media (prefers-reduced-motion: reduce) {
  .inquiry-layout *, .inquiry-layout *::before, .inquiry-layout *::after { transition: none !important; }
}
