@media(min-width:768px){.preview-page .p-grid.p-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
body{background:#0c1511;color:#e9f0e7} .rich{max-width:1460px;margin:auto;padding:0 45px}.rich-hero{padding:100px 0 90px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:5vw}.rich-hero h1{font-size:clamp(38px,5vw,70px);line-height:1.35;letter-spacing:.025em}.rich-hero p{font-size:17px;line-height:2}.rich-hero img{width:100%;border-radius:5px;display:block}.eyebrow-rich,.chapter-label{font-size:12px;letter-spacing:.18em;color:#b8cba7}.hero-button{display:inline-block;background:#cfe3b7;color:#142017;padding:16px 28px;border-radius:2px;text-decoration:none;margin-top:24px}.chapter{border-top:1px solid #46554a;padding:70px 0;display:grid;grid-template-columns:minmax(140px,20%) 1fr;gap:30px}.chapter-body{min-width:0;display:flow-root}.chapter h2{font-size:clamp(27px,3vw,43px);font-weight:500;line-height:1.4;margin:0 0 30px}.chapter h3{font-size:24px;line-height:1.45;font-weight:500;margin:45px 0 14px;clear:both}.chapter p{font-size:16px;line-height:2.1;color:#d2ddd3;margin:0 0 18px}.art-slot{width:calc(50% - 10px);display:inline-block;vertical-align:top;margin:12px 16px 24px 0}.art-slot:nth-of-type(even){margin-right:0}.style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.style-grid .art-slot{width:100%;margin:0 0 20px}.art-wait{aspect-ratio:4/3;background:linear-gradient(140deg,#21362a,#16271e);border:1px solid #4b6550;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#b5c7ad}.art-wait span{font-size:13px;letter-spacing:.15em}.art-wait b{font-size:17px}.art-wait small{font-size:14px}.chapter figcaption{color:#a5b5a7;font-size:13px;line-height:1.6;margin-top:10px}.real-image{max-width:100%;margin:25px 0 34px}.real-image img{width:100%;max-height:620px;object-fit:contain;object-position:left;background:#14221a}.art-note{font-size:14px!important;color:#aabfa8!important}.table-wrap{overflow-x:auto;margin:30px 0}table{width:100%;border-collapse:collapse;text-align:left;min-width:660px}th,td{border-bottom:1px solid #526353;padding:16px;vertical-align:top;line-height:1.7}th{color:#dceccc}.sources{font-size:13px!important}.sources a{color:#cadfb6}.pre-notice{background:#1d3023;padding:16px 20px;color:#dbe9d2}.rich-end{padding:45px 0 100px}@media(max-width:700px){.rich{padding:0 20px}.rich-hero{padding:55px 0;grid-template-columns:1fr;gap:25px}.rich-hero h1{font-size:34px}.chapter{display:block;padding:50px 0}.chapter-label{margin-bottom:20px}.chapter h2{font-size:27px}.chapter h3{font-size:21px}.art-slot{width:100%;margin:10px 0 22px}.style-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chapter p{font-size:15px}.real-image img{max-height:none}}

.rich{max-width:1400px;margin:auto}.chapter{display:block}.chapter-label{margin-bottom:18px}.chapter-body{max-width:none}.chapter p{font-size:17px;color:#edf4ec;line-height:2}.chapter h2,.chapter h3{color:#fff}.art-slot,.style-grid .art-slot{width:100%;margin:0}.art-slot img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#18271d}.art-slot figcaption{font-size:16px;color:#dce8d9}.style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.uses-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0 32px}.uses-grid:has(> :last-child:nth-child(3)) > :last-child{grid-column:1/-1}.uses-grid:has(> :last-child:nth-child(3)) > :last-child img{max-height:600px}.step-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0 32px}.step-num{display:block;color:#d7e9ca;font-size:16px;letter-spacing:.1em;margin-bottom:8px}.rich-hero h1{font-size:clamp(32px,3.3vw,48px);word-break:normal;overflow-wrap:normal}.no-break{white-space:nowrap}.chapter figcaption{font-size:16px}.chapter .sources{font-size:16px!important}@media(max-width:700px){.chapter p{font-size:16px}.style-grid,.step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uses-grid{grid-template-columns:1fr}.uses-grid:has(> :last-child:nth-child(3)) > :last-child{grid-column:auto}.rich-hero h1{font-size:32px;word-break:normal;overflow-wrap:normal}}

.step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.step-grid .art-slot img{aspect-ratio:auto}.real-image img{width:100%;max-height:none;object-fit:cover;background:transparent}.uses-grid:has(> :last-child:nth-child(3)) > :last-child img{max-height:none;aspect-ratio:auto;background:transparent}.uses-grid:has(> :last-child:nth-child(3)) > :last-child{max-width:100%}.pending-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.pending{margin:20px 0}.pending>div{aspect-ratio:16/9;border:1px dashed #9cb899;background:#19251d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#e8f5e2}.pending figcaption{font-size:16px}.form-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:25px 0}.form-cards>div{border:1px solid #728578;padding:18px}.form-cards dt{color:#cfe3b7;font-size:16px}.form-cards dd{font-size:17px;margin:6px 0 0;color:#fff}.chapter details{border-bottom:1px solid #657767;padding:18px 0}.chapter summary{font-size:18px;cursor:pointer}.chapter details p{padding:15px 0 0}.diagram-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.diagram{border:1px solid #708371;padding:20px}.diagram h3{margin:0 0 16px}.diagram p{margin:14px 0 0;font-size:16px}.bleed{height:160px;background:#bb9980;padding:22px}.bleed span{display:block;height:100%;border:2px dashed white;color:#fff;padding:8px}.pixels{display:flex;height:160px;gap:15px}.pixels span{display:grid;place-items:center;width:50%;color:#fff;background-color:#60775c;background-image:linear-gradient(90deg,transparent 90%,#c5d1c1 90%),linear-gradient(transparent 90%,#c5d1c1 90%);background-size:30px 30px}.pixels span+span{background-size:8px 8px}.color-model{height:160px;display:flex;gap:10px}.color-model span{display:grid;place-items:center;text-align:center;width:50%;background:linear-gradient(130deg,#bb4e4e,#599656,#5369ac);color:white}.color-model span+span{background:linear-gradient(130deg,#62aeb8,#ba65a1,#d2bc61,#333)}@media(max-width:700px){.pending-grid,.form-cards,.diagram-grid{grid-template-columns:1fr}.step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter details summary{font-size:16px}}
.approved-art{margin:20px 0}.approved-art img{display:block;width:100%;height:auto}.approved-art figcaption{font-size:16px;color:#dce8d9;margin-top:10px}.pending-grid:has(.art-F1){grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){.pending-grid:has(.art-F1){grid-template-columns:1fr}}

/* Keep the whole artwork visible without letterbox bands. */
.art-slot img { aspect-ratio: auto; height: auto; max-height: none; object-fit: contain; background: transparent; }
.uses-grid > figure:only-child, .style-grid > figure:only-child, .pending-grid > figure:only-child { grid-column: 1 / -1; }
@media (max-width: 700px) { .chapter table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

@media(max-width:700px){.chapter .table-wrap::before{content:"表は横にスクロールできます →";display:block;color:#d3e6c0;font-size:13px;margin:0 0 8px}.chapter .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.chapter .table-wrap table{display:table;min-width:520px;width:100%}}

/* Keep standalone examples and prose comfortable to read on wide screens. */
@media (min-width: 1000px) {
  .rich .chapter-body > p, .rich .chapter-body > ul, .rich .chapter-body > ol { max-width: 82ch; }
  .rich .chapter-body > .pending-grid:has(> figure:only-child),
  .rich .chapter-body > .uses-grid > figure:only-child { max-width: 960px; margin-left: auto; margin-right: auto; }
  .rich .chapter-body > .uses-grid > figure:last-child:nth-child(odd) { max-width: 960px; justify-self: center; width: 100%; }
}

@media (min-width: 1000px) { .rich .chapter-body > figure { max-width: 960px; margin-left: auto; margin-right: auto; } }

/* A compact checklist keeps the consultation points easy to scan. */
.illust-brief-list{list-style:none;padding:0;margin:1.2rem 0 1.6rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.illust-brief-list li{display:grid;grid-template-columns:6em minmax(0,1fr);gap:.5rem;padding:.8rem 1rem;border:1px solid #435748;border-radius:8px;background:#14221a;line-height:1.65}
.illust-brief-list strong{color:#dcebc5}
@media(max-width:700px){.illust-brief-list{grid-template-columns:1fr;gap:.45rem}.illust-brief-list li{padding:.65rem .8rem;grid-template-columns:5.5em minmax(0,1fr);font-size:16px}}

/* review2 follow-up */
.rich .chapter-body > figure,.rich .chapter-body > .pending-grid:has(> figure:only-child){max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}.rich .chapter-body > figure img{width:100%;height:auto}

/* Opt-in only: attach r21-rich to each approved page's main element.
   Add the other r21-* classes only to inspected content elements. */
main.r21-rich details.r21-faq {
  border: 1px solid rgba(233, 238, 231, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  margin-block: .65rem;
  color: inherit;
}
main.r21-rich details.r21-faq summary {
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.15rem !important;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
  color: inherit;
}
main.r21-rich details.r21-faq > :not(summary) {
  margin: 0;
  padding: 0 1.15rem 1rem;
  line-height: 1.75;
}
main.r21-rich details.r21-faq summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
/* Standalone photographs only: do not attach to heroes, diagrams or grids. */
main.r21-rich figure.r21-single {
  width: min(100%, 960px);
  max-width: 100%;
  margin-inline: auto;
}
main.r21-rich figure.r21-single img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
/* Explicitly opt in inspected two-column figure grids only.  The last image
   spans the row but itself remains one-column wide: no cropping or stretching. */
@media (min-width: 641px) {
  main.r21-rich .r21-two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main.r21-rich .r21-two-col-grid > figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, calc((100% - var(--r21-grid-gap, 1rem)) / 2));
    justify-self: center;
  }
}

.rich21-cta{clear:both;max-width:1200px;margin:72px auto;padding:44px 24px;text-align:center;background:#00517c;border-radius:12px}.rich21-cta h2{margin:0 0 12px;font-size:clamp(23px,3vw,32px);color:#fff}.rich21-cta p{margin:0 0 22px;color:#fff}.rich21-cta-buttons{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:16px}.rich21-cta-btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:240px;padding:22px 28px;border:3px solid #fff;border-radius:999px;background:#fff;color:#00517c!important;text-decoration:none!important;font-size:20px;font-weight:700}.rich21-cta-btn:nth-child(3){background:#ffb400;border-color:#ffb400;color:#1f2d4d!important}.rich21-cta-btn:nth-child(2){background:transparent;color:#fff!important}.rich21-cta-btn:focus-visible{outline:3px solid #ffb400;outline-offset:4px}@media(max-width:600px){.rich21-cta{margin:44px 16px;padding:32px 18px}.rich21-cta-buttons{flex-direction:column;gap:12px}.rich21-cta-btn{width:100%;min-width:0;font-size:20px;padding:22px 28px}}

.rich21-nobreak{white-space:nowrap}

.logo-end .a2-chap{max-width:730px;margin-left:auto;margin-right:auto;justify-content:center}

@media(max-width:700px){main .style-grid>figure:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 16px)/2);justify-self:center}}
