.work3 {
  --paper: #f5f1e8;
  --ink: #25303a;
  --accent: #234ab5;
  --wash: #e8e1cf;
  --ctext: white;
  --entry: translate(-48px, 12px) rotate(-11deg);
  --shift: translate(-48px, 12px) rotate(-11deg);
}
.work,
.work * {
  box-sizing: border-box;
}
.work {
  overflow: clip;
  background: var(--paper);
  color: var(--ink);
  font:
    400 1rem/1.8 system-ui,
    "Yu Gothic",
    sans-serif;
}
.work h1,
.work h2,
.work p,
.work figure {
  margin: 0;
}
.work h1 {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--accent);
  margin-bottom: 21px;
}
.work .hero {
  display: grid;
  align-items: center;
  gap: clamp(20px, 4vw, 66px);
  position: relative;
  padding: clamp(36px, 6vw, 110px) max(5vw, calc((100vw - 1380px) / 2));
  min-height: min(680px, 77vh);
}
.work .herocopy,
.work .art {
  min-width: 0;
}
.work .display {
  font-size: clamp(2.25rem, 4.1vw, 5rem);
  font-weight: 800;
  line-height: 1.21;
  letter-spacing: -0.065em;
  text-wrap: balance;
  line-break: strict;
  overflow-wrap: anywhere;
  margin: 0 0 24px;
}
.work .lead {
  max-width: 39em;
  line-height: 1.9;
}
.work .cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--accent);
  color: var(--ctext);
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 12px 21px;
  margin-block: 22px 0;
  text-decoration: none;
  font-weight: 750;
  transition: transform 0.18s;
}
.work .cta:hover {
  transform: translateY(-2px);
}
.work .cta:after {
  content: "↗";
}
.work .diagram {
  display: block;
  width: 100%;
  height: auto;
}
.work .art {
  position: relative;
}
.work figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  font-weight: 700;
  background: var(--wash);
  color: var(--ink);
}
.work .story,
.work .scope,
.work .demosect,
.work .local {
  margin: auto;
  width: min(1180px, 90%);
  padding: clamp(32px, 5vw, 76px) clamp(5px, 2.8vw, 50px);
}
.work .story p,
.work .scope p,
.work .local > p {
  max-width: 50em;
  margin-top: 16px;
}
.work h2 {
  font-size: clamp(1.5rem, 2.9vw, 2.9rem);
  font-weight: 780;
  line-height: 1.4;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.work .demosect > p {
  margin: 14px 0 22px;
  max-width: 48em;
}
.work .lab {
  padding: clamp(16px, 3vw, 44px);
  background: var(--wash);
}
.work .console {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}
.work .console > * {
  min-width: 0;
}
.work .console > label {
  display: grid;
  gap: 3px;
  font-weight: 650;
}
.work .console .tick,
.work .sortrow label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}
.work button,
.work select,
.work input,
.work textarea {
  font: inherit;
  color: inherit;
}
.work button,
.work select,
.work input:not([type="checkbox"]),
.work textarea {
  max-width: 100%;
  border: 1px solid currentColor;
  background: var(--paper);
  border-radius: 3px;
  padding: 8px 12px;
  min-height: 44px;
}
.work button,
.work select {
  cursor: pointer;
}
.work button:disabled {
  opacity: 0.52;
  cursor: default;
}
.work .reset {
  margin-top: 16px;
  background: transparent;
}
.work .result {
  width: 100%;
  margin: 8px 0 0;
  background: var(--paper);
  padding: clamp(17px, 2.4vw, 35px);
  border-inline-start: 3px solid var(--accent);
  overflow-wrap: anywhere;
  transition:
    max-width 0.4s,
    background-color 0.4s,
    border-radius 0.4s;
}
.work .result small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.work .result strong {
  display: block;
  font-size: clamp(1.1rem, 1.9vw, 1.65rem);
  line-height: 1.5;
}
.work .result[data-mobile="true"] {
  max-width: 320px;
  min-height: 240px;
}
.work .result[data-theme] .sample-visual {
  height: 60px;
  margin-block: 12px;
  background: linear-gradient(
    125deg,
    transparent 30%,
    currentColor 30% 39%,
    transparent 39% 49%,
    currentColor 49% 65%,
    transparent 65%
  );
  opacity: 0.45;
}
.work #sortlist,
.work #editor,
.work .sheet,
.work #memo {
  width: 100%;
}
.work .sortrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
}
.work .sortrow > strong,
.work .sortrow > label {
  flex: 1;
}
.work input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.work .console [hidden] {
  display: none !important;
}
.work .local details {
  border-bottom: 1px solid currentColor;
}
.work .local summary {
  cursor: pointer;
  line-height: 1.65;
  padding: 17px 0;
  font-weight: 700;
}
.work .local details p {
  padding: 0 0 19px;
  max-width: 48em;
}
.work .local h2 {
  margin-bottom: 16px;
}
.work :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.work [aria-invalid="true"] {
  outline: 2px dashed #9b3e30;
}
.work .sheetrow input {
  width: 100%;
}
.work .sheetrow label {
  display: grid;
  padding: 6px;
}
.work .scope {
  position: relative;
}
.work .scope + .scope {
  padding-top: 10px;
}
.work .orbit-total {
  width: 100%;
}
.work .piece {
  transform-box: fill-box;
  transform-origin: center;
  animation: assemble 0.85s both;
}
.work .p2 {
  animation-delay: 0.09s;
}
.work .p3 {
  animation-delay: 0.16s;
}
.work .changed {
  animation: reform 0.48s ease-out;
}
@keyframes assemble {
  from {
    transform: var(--entry);
    opacity: 0.35;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes reform {
  from {
    transform: var(--shift);
    clip-path: inset(0 12% 0 0);
  }
  to {
    transform: none;
    clip-path: inset(0);
  }
}

.work3 .hero {
  grid-template-columns: 1fr 1fr;
}
.work3 .art {
  background: repeating-linear-gradient(
    0deg,
    #e5dfca,
    #e5dfca 1px,
    #ece7d8 2px,
    #ece7d8 25px
  );
  border-radius: 48% 3% 10% 2%;
}
.work3 .display,
.work3 .story h2,
.work3 .scope h2 {
  font-family: Georgia, "Yu Mincho", serif;
}
.work3 .paper {
  padding: 18px;
  background: #f4e3a5;
  color: #282b25;
  border-left: 5px solid #b89b4d;
}
.work3 .console textarea {
  background: #fffdf4;
  line-height: 1.8;
}
.work3 .lab {
  box-shadow: 8px 8px 0 #c8bd9f;
}
.work3 .story {
  border-block: 1px dashed #887d65;
}
@media (min-width: 701px) {
  .work3 .hero {
  }
}
@media (max-width: 700px) {
  .work.work3 .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 30px 5vw;
    gap: 20px;
  }
  .work .hero .herocopy,
  .work .hero .art {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
  }
  .work .display {
    font-size: clamp(2rem, 8.6vw, 3.4rem);
    max-width: 18em;
  }
  .work .hero .art {
    width: min(100%, 460px);
    align-self: center;
  }
  .work .story {
    display: block;
  }
  .work .console {
    align-items: stretch;
  }
  .work .console > label:not(.tick) {
    width: 100%;
  }
  .work .local,
  .work .story,
  .work .demosect,
  .work .scope {
    width: 93%;
  }
  .work .sheetrow > div {
    display: block;
  }
  .work .sheetrow summary {
    min-height: 44px;
  }
  .work .diagram {
    max-height: 310px;
  }
  .work .result[data-theme="2"] {
    display: block;
  }
}
html[data-motion="reduced"] .work *,
html[data-motion="reduced"] .work *::before {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .work *,
  .work *::before {
    animation: none !important;
    transition: none !important;
  }
}
.work .sequence {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.work .sequence span {
  display: inline-block;
  padding: 5px 12px;
  border-bottom: 1px solid currentColor;
  font-weight: 670;
}
.work .sheetrow:not([open]) > div {
  display: none;
}
.work .result button {
  color: inherit;
}
.work .herocopy,
.work .art {
  position: relative;
}
.work .result[data-theme="2"] .sample-visual {
  background: repeating-linear-gradient(
    120deg,
    transparent 0 10px,
    currentColor 11px 13px
  );
}
.work3 .story .sequence span {
  background: #efdfa3;
  transform: rotate(-2deg);
  border: 0;
  box-shadow: 2px 3px #d6ceb4;
}
.work3 .story .sequence span:nth-child(2) {
  transform: rotate(2deg);
  background: #c9d9f4;
}
.work3 .scope:nth-last-child(2) {
  background: #fffaf0;
  border-top: 2px solid var(--accent);
}
@media (min-width: 920px) {
  .work3 .editorial {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    width: min(1280px, 94%);
    margin: auto;
  }
  .work3 .editorial > .story,
  .work3 .editorial > .demosect {
    grid-column: 1/-1;
  }
  .work3 .scope {
    width: 100%;
    padding: 40px 6%;
  }
  .work3 .scope + .scope {
    border-left: 1px solid currentColor;
  }
}
@media (max-width: 700px) {
  .work .editorial .story {
    display: block;
  }
  .work .sequence {
    gap: 6px;
  }
  .work .editorial .demosect .cta {
    width: auto;
  }
  .work .sequence span {
    font-size: 0.94rem;
  }
  .work .scope:nth-last-child(2),
  .work .scope:last-child {
    padding-block: 26px;
  }
}

@media (min-width: 920px) {
  .work3 .hero {
    grid-template-columns: 1.12fr 0.88fr;
  }
  .work3 .herocopy {
    grid-row: 1;
    grid-column: 2;
  }
  .work3 .art {
    grid-row: 1;
    grid-column: 1;
    transform: rotate(-2deg);
  }
}

.work3 #editor:not([hidden]) {
  padding: 14px 20px 24px;
  background: #fffdf6;
  border-top: 2px solid #ada585;
}
.work3 .proof-sheet {
  margin: -26px 2% 0 auto;
  z-index: 1;
  width: min(350px, 95%);
  padding: 13px 20px;
  background: #e2ebfc;
  border-left: 5px solid #305db4;
  box-shadow: 3px 4px 0 #c6c1b0;
  rotate: -2deg;
  animation: proof-slide 0.65s both;
}
.work3 .proof-sheet span {
  display: block;
}
.work3 .proof-sheet[data-checked]:after {
  content: "✓ 照合済み";
  display: block;
  color: #245533;
  font-weight: 750;
}
.work3 .proof-sheet[data-checked] {
  rotate: 0deg;
  background: #d8e9d7;
}
.work3 .proof-sheet {
  transition:
    rotate 0.4s,
    background-color 0.4s;
}
@keyframes proof-slide {
  from {
    transform: translate(14%, -22%) rotate(6deg);
  }
  to {
    transform: none;
  }
}

.hero .display { overflow-wrap: normal; line-break: strict; text-wrap: balance; }
.hero .display > [data-wrap-group] { display: inline-block; white-space: nowrap; }


.ai-feature,
.ai-notes {
  padding: clamp(48px, 7vw, 104px) 0;
}
.ai-frame {
  width: min(1150px, 90%);
  margin: 0 auto;
  min-width: 0;
}
.ai-frame > * {
  min-width: 0;
}
.ai-feature h2,
.ai-notes h2 {
  margin: 0 0 0.38em;
  font-size: clamp(1.85rem, 3.9vw, 3.9rem);
  line-height: 1.25;
  letter-spacing: -0.052em;
  color: inherit;
  word-break: auto-phrase;
  text-wrap: balance;
}
.ai-feature header > p:last-child,
.ai-feature .ai-frame > div:first-child > p:last-child {
  max-width: 35em;
}
.ai-caption {
  margin: 0 0 1rem;
  font-weight: 730;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.ai-feature p:not(.ai-caption),
.ai-notes p {
  line-height: 1.85;
}
.ai-notes h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.8rem);
}
.ai-notes .ai-notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4.5vw, 66px);
  margin-top: 1.65rem;
}
.ai-notes h3 {
  margin: 0.4rem 0 0.65rem;
  font-size: clamp(1.1rem, 1.65vw, 1.48rem);
  line-height: 1.55;
  word-break: auto-phrase;
  text-wrap: balance;
}
.ai-notes p {
  margin: 0;
}
.ai-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0.24rem 0.6rem 0.24rem 0;
  min-height: 44px;
  padding: 0.35em 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: inherit;
  text-underline-offset: 0.32em;
}
.ai-jump:after {
  content: "↓";
}
@media (max-width: 740px) {
  .ai-notes .ai-notes-grid {
    grid-template-columns: 1fr;
  }
  .ai-frame {
    width: 89%;
  }
}

.proofdesk {
  background: #263652;
  color: #fff8ec;
}
.proofdesk .ai-frame {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: clamp(24px, 5vw, 85px);
}
.proof-intro h2 {
  font-family: "Yu Mincho", serif;
  font-weight: 600;
}
.proof-board {
  position: relative;
  padding: 30px 0 0 clamp(36px, 7vw, 110px);
}
.proof-memo {
  background: #ffdd76;
  color: #292b27;
  box-shadow: 0 7px 13px #151c3844;
  padding: 1.1rem 1.4rem 1.6rem;
  transform: rotate(-6deg);
  width: 60%;
  margin: 0 0 -1.4rem -7%;
  position: relative;
  z-index: 1;
}
.proof-memo p {
  margin: 0.4em 0;
  font-size: 0.9rem;
  line-height: 1.65;
}
.proof-letter {
  padding: clamp(26px, 4vw, 58px) clamp(17px, 3.5vw, 45px) 24px;
  background: repeating-linear-gradient(
    #fffdf4 0 25px,
    #e4e3d8 26px,
    #fffdf4 27px
  );
  color: #273648;
  box-shadow: 5px 5px #bbbdba;
}
.proof-letter > p {
  font-family: "Yu Mincho", serif;
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  margin: 1em 0;
  line-height: 1.8;
}
.proof-letter summary {
  font-weight: 700;
  color: #8f301b;
  cursor: pointer;
  min-height: 44px;
  padding: 0.5em 0;
}
.proof-letter details + details {
  border-top: 1px dashed #a88e80;
}
.proof-letter details p {
  font-size: 0.94rem;
}
.proof-board:has(details:first-of-type[open]) .proof-letter span:first-child,
.proof-board:has(details:last-of-type[open]) .proof-letter span:last-child {
  text-decoration: line-through 3px #b13c27;
}
.proof-letter small {
  color: #58412e;
  font-weight: 700;
}
.work3 .ai-notes {
  background: #e7d6ad;
}
.work3 .ai-notes article {
  border-top: 3px solid #584a36;
}
.work3 .ai-notes h3 {
  font-family: "Yu Mincho", serif;
}
.work3 .art {
  box-shadow: 0.65rem 0.65rem 0 #d8c59e;
}
.work3 .diagram {
  background: #eae2d1;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="normal"] .proofdesk[data-seen="true"] .proof-memo {
    animation: proof-drop 0.85s cubic-bezier(0.22, 0.8, 0.2, 1) both;
  }
  html[data-motion="normal"] .proof-letter details[open] p {
    animation: proof-ink 0.38s ease-out;
  }
  @keyframes proof-drop {
    from {
      transform: translate(-40px, -30px) rotate(-17deg);
    }
    to {
      transform: rotate(-6deg);
    }
  }
  @keyframes proof-ink {
    from {
      clip-path: inset(0 100% 0 0);
      transform: translateX(-4px);
    }
    to {
      clip-path: inset(0);
    }
  }
}
@media (max-width: 740px) {
  .proofdesk .ai-frame {
    grid-template-columns: 1fr;
  }
  .proof-board {
    padding: 12px 6px 0 12px;
  }
  .proof-memo {
    margin-left: 0;
  }
}
.proofdesk {
  background-color: #e3d8bd;
  color: #263446;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 79px, #786d5414 80px),
    repeating-linear-gradient(0deg, transparent 0 27px, #8f85641c 28px);
  border-block: 1px solid #c9bea7;
}
.proof-intro {
  border-left: 3px solid #ba4434;
  padding-left: clamp(18px, 2.4vw, 36px);
}
.proof-intro h2 {
  font-size: clamp(2.35rem, 3.7vw, 3.65rem);
  text-wrap: pretty;
}
.proof-intro .ai-caption {
  color: #873425;
}
.proof-board {
  padding-top: 0;
}
.proof-memo {
  box-shadow: 1px 7px 15px #57504744;
}
.proof-letter {
  position: relative;
  box-shadow:
    0 8px 22px #58534635,
    4px 4px #c2bca6;
}
.proof-letter:after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 9px;
  height: 42%;
  transform: rotate(14deg) translateX(13px);
  background: linear-gradient(
    90deg,
    #aa332b 0 35%,
    #da6650 38% 62%,
    #982e23 64%
  );
  clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
}
@media (min-width: 741px) {
  .proofdesk .ai-frame {
    grid-template-columns: 1.08fr 0.92fr;
  }
  .proof-board {
    grid-column: 1;
    grid-row: 1;
  }
  .proof-intro {
    grid-column: 2;
    grid-row: 1;
  }
  .proof-letter {
    padding-top: clamp(36px, 4vw, 64px);
  }
}

/* 候補日の素材が下書きへ寄り、確認の鉛筆が文末をたどる。 */
.work3 .draft-folio { background: #e9dfc7; }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="normal"] .draft-source { animation: gather-memo 6.4s ease-in-out infinite; }
  html[data-motion="normal"] .proof-pencil { animation: check-wording 6.4s ease-in-out infinite; }
}
@keyframes gather-memo {
  0%, 100% { transform: translate(-7px, -6px) rotate(-2deg); }
  47%, 63% { transform: translate(27px, 14px) rotate(1deg); }
}
@keyframes check-wording {
  0%, 100% { transform: translate(18px, -15px); }
  36% { transform: translate(-13px, 8px); }
  65% { transform: translate(79px, 12px); }
}
.work3 .carbon-proof {
  position: relative; margin-top: 1.6rem; max-width: 48rem; color: #2f3541;
  background: #fffcf4; border: 1px solid #afa793; box-shadow: 5px 5px #d9d1bb;
}
.work3 .carbon-proof figcaption {
  background: #273e67; color: #fff8e5; justify-content: space-between; padding: .55rem 1rem;
}
.carbon-columns { display: grid; grid-template-columns: .9fr 1.1fr; padding: 1.2rem clamp(12px, 4vw, 38px) .3rem; }
.carbon-columns > div { min-width: 0; }
.carbon-source { padding-right: 12px; border-right: 1px dashed #a49b83; }
.carbon-letter { padding-left: clamp(12px, 4vw, 38px); }
.carbon-columns small { color: #514c40; font-weight: 700; }
.work3 .carbon-columns p { margin: .4rem 0; font: 600 clamp(1rem, 2.2vw, 1.55rem)/1.6 "Yu Mincho", serif; }
.carbon-letter strong { color: #234591; text-decoration: underline #aa362f 2px; text-underline-offset: .24em; }
.carbon-run { position: relative; height: 2.7rem; margin-inline: 7%; }
.carbon-run::before { content: ""; position: absolute; left: 0; right: 0; top: 59%; border-top: 1px dashed #a39876; }
.carbon-slip {
  position: absolute; top: .3rem; left: calc(8% + var(--cg-progress, .6) * 65%);
  transform: rotate(calc(-7deg + var(--cg-progress, .6) * 12deg));
  background: #f4d475; color: #413318; box-shadow: 1px 2px #a68d4e;
  padding: .07rem .45rem; font-weight: 750;
}
.work3 .carbon-note { margin: 0; padding: .8rem 1rem; border-top: 1px solid #cec4ac; font-size: .92rem; }
