/* The same A4 layout is used for on-screen preview and printing. */
.communication-sheet-page{container-type:inline-size;width:100%;max-width:550px;aspect-ratio:210/297;margin:0 auto 14px}
.communication-paper,.communication-paper *{box-sizing:border-box}
.communication-paper{width:100%;height:100%;overflow:hidden;background:#fff;color:#000;font-family:"ＭＳ Ｐゴシック","MS PGothic","Noto Sans JP","Yu Gothic",sans-serif;box-shadow:0 0 0 1px #d4d1d5}
.communication-paper-front{display:flex;flex-direction:column;padding:7.5cqw 5.9cqw 2.8cqw}
.communication-paper-letterhead{flex:none;margin-bottom:.65cqw}
.communication-paper-service-line{margin:0 0 .7cqw;text-align:center;font-size:1.82cqw;font-weight:800;line-height:1.16}
.communication-paper-title-frame{display:grid;grid-template-columns:14cqw minmax(0,1fr) auto;align-items:center;gap:1.9cqw;min-height:14.6cqw;padding:0 1.6cqw;border:.38cqw solid #000;border-radius:2.7cqw}
.communication-paper-brand{display:grid;justify-items:center;line-height:1}
.communication-paper-brand img{width:7.8cqw;height:7.8cqw;object-fit:contain}
.communication-paper-brand b{font:900 3.02cqw/1 Arial,sans-serif;letter-spacing:.03em}
.communication-paper-title-frame>strong{font:900 8.05cqw/1 "Arial Black","Noto Sans JP","Yu Gothic",sans-serif;letter-spacing:-.062em;white-space:normal;overflow-wrap:anywhere}
.communication-paper-title-frame>small{text-align:right;white-space:nowrap;font:900 3.15cqw/1.02 Arial,"Noto Sans JP",sans-serif}
.communication-paper-body{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:.5cqw;flex:1;min-height:0;margin:0 .85cqw;padding:.55cqw .55cqw 2.3cqw;border:.63cqw double #000}
.communication-paper-main-copy{display:flow-root;min-height:0}
.communication-paper-main-copy>h2{margin:0;font-size:2.5cqw;line-height:1.13}
.communication-paper-main-copy>p{margin:0;font-size:2.26cqw;line-height:1.15;white-space:pre-wrap;overflow-wrap:anywhere}
.communication-paper-main-copy>.communication-paper-portrait{float:right;width:15cqw;height:16cqw;margin:-.5cqw .8cqw 1cqw 1.7cqw}
.communication-paper-main-copy>.communication-paper-portrait:empty{display:none}
.communication-paper-profile{position:relative;margin:0 1.4cqw;min-height:10.2cqw;max-height:15cqw;padding:1.15cqw 3.9cqw 0;border-top:.38cqw solid #000;font-size:1.86cqw;line-height:1.38;white-space:pre-wrap;overflow-wrap:anywhere}
.communication-paper-profile::before,.communication-paper-profile::after{position:absolute;top:-.66cqw;width:.85cqw;height:.85cqw;border-radius:50%;background:#000;content:""}
.communication-paper-profile::before{left:0}
.communication-paper-profile::after{right:0}
.communication-paper-profile p{margin:0}
.communication-paper-front-note{flex:none}
.communication-paper-front-note h2{margin:.8cqw 1.1cqw .55cqw;font-size:2.42cqw;line-height:1.2}
.communication-paper-back{padding:4cqw 2.9cqw}
.communication-paper-stories{display:grid;gap:1cqw}
.communication-paper-story{display:grid;grid-template-columns:8.3cqw minmax(0,1fr);gap:2cqw;align-items:center;margin-right:2.15cqw}
.communication-paper-story.reverse{grid-template-columns:minmax(0,1fr) 8.3cqw;margin-right:0;margin-left:2.15cqw}
.communication-paper-story.reverse .communication-paper-portrait{grid-column:2}
.communication-paper-story.reverse .communication-paper-bubble{grid-area:1/1}
.communication-paper-portrait{width:8.3cqw;height:10cqw;object-fit:contain;border-radius:44% 44% 38% 38%}
.communication-paper-bubble{position:relative;min-width:0;padding:.9cqw 1.15cqw .55cqw;border:.22cqw solid #000;border-radius:1.65cqw;background:#fff;font-size:1.94cqw;line-height:1.24}
.communication-paper-bubble::before{position:absolute;top:61%;left:-1.18cqw;width:1.8cqw;height:1.8cqw;border-bottom:.22cqw solid #000;border-left:.22cqw solid #000;background:#fff;content:"";transform:skew(-20deg) rotate(33deg)}
.communication-paper-story.reverse .communication-paper-bubble::before{right:-1.18cqw;left:auto;transform:scaleX(-1) skew(-20deg) rotate(33deg)}
.communication-paper-bubble p{position:relative;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.communication-paper-bubble small{position:relative;display:block;text-align:right;font-size:inherit;line-height:1.05}
.communication-paper-front-note .communication-paper-story{grid-template-columns:8cqw minmax(0,1fr);margin:0}
.communication-paper-empty{color:#666}

/* The print frame contains just the newsletter sheets. */
.communication-print-frame { position:fixed; inset:0 auto auto -10000px; width:210mm; height:297mm; border:0; }
.communication-print-document { margin:0; padding:0; background:white; }
.communication-print-document .communication-sheet-page {
  width:210mm; height:297mm; max-width:none; margin:0; aspect-ratio:auto;
  page:habilis-newsletter; break-inside:avoid; break-after:page;
}
.communication-print-document .communication-sheet-page:last-child { break-after:auto; }
.communication-print-document .communication-paper { box-shadow:none; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
.communication-paper-portrait.sample-avatar { display:grid; place-items:center; border-radius:0; font-size:6.8cqw; }
.communication-paper-main-copy>.sample-avatar { font-size:13cqw; }
@page habilis-newsletter { size:A4; margin:0; }
@media print {
  .communication-print-document { margin:0; padding:0; }
}
