

/* Preserve whole images and let each gallery item keep its natural height. */
.seo-lp .seo-body > .lp-wall.lp-w4 { display:block !important; columns:4 !important; column-gap:6px; }
.seo-lp .seo-body > .lp-wall.lp-w4 > figure { display:inline-block; width:100%; height:auto; aspect-ratio:auto; break-inside:avoid; margin:0 0 6px !important; overflow:visible; background:transparent !important; }
.seo-lp .seo-body > .lp-wall.lp-w4 > figure img { display:block; width:100%; height:auto; object-fit:contain; }
@media(max-width:700px) { .seo-lp .seo-body > .lp-wall.lp-w4 { columns:2 !important; } }

@media(max-width:700px){.lp-ba-h .lp-nb,.lp-ba-h .ph{white-space:normal;overflow-wrap:anywhere}}

@media(max-width:700px){main h2 .lp-nb,main h2 .ph{white-space:normal;overflow-wrap:anywhere}}

@media(max-width:700px){main h2{font-size:clamp(24px,6.4vw,27px)}}

/* Keep hero copy legible over changing video frames; retain the whole garment. */
.lp-hero-svc-apparel .lp-hero-shade { background: linear-gradient(90deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.51) 47%,rgba(0,0,0,.12) 100%),linear-gradient(0deg,rgba(0,0,0,.68),transparent 65%) !important; }
@media (max-width: 640px) { .lp-hero-svc-apparel .lp-hero-shade { background: linear-gradient(0deg,rgba(0,0,0,.84) 0%,rgba(0,0,0,.56) 58%,rgba(0,0,0,.1) 100%) !important; } }
@media (min-width: 900px) { h3 + p + .seo-figs.lp-quad.lp-n4 { max-width: 1050px; margin-inline: auto; grid-template-columns: repeat(3,minmax(0,1fr)); } h3 + p + .seo-figs.lp-quad.lp-n4 img { width:100%; height:auto; object-fit:contain; } }

/* Keep the fifth landscape example centered and the two portrait examples balanced. */
@media (min-width: 641px) {
 .seo-lp .lp-vids-wide > figure:last-child:nth-child(odd) { grid-column:1 / -1; width:calc((100% - 6px) / 2); justify-self:center; }
 .seo-lp .lp-vids-tall.lp-vn3:has(> figure:nth-child(2):last-child) { grid-template-columns:repeat(2, minmax(0, 360px)); justify-content:center; }
}

/* Keep before/after examples paired and indicate horizontally scrollable tables. */
@media (min-width:900px) { .seo-lp .seo-body #sec-17 + h3 + p + .seo-figs.lp-quad.lp-n4 { grid-template-columns: repeat(2,minmax(0,1fr)); max-width:760px; margin-inline:auto; } }
@media (max-width:700px) { .seo-lp .seo-body .seo-table-wrap::before { content:"表は横にスクロールできます →"; display:block; position:sticky; left:0; width:max-content; padding:8px 12px; color:#e3ebd2; font-size:13px; } }

/* Approved examples: complete images and readable captions. */
.g-approved-figure{max-width:760px;margin:28px auto 36px}.g-approved-figure img{display:block;width:100%;height:auto;border-radius:8px}.g-approved-figure figcaption{font-size:15px;line-height:1.7;margin-top:8px;color:#d9e3db}

/* Keep three examples together instead of a tall staggered collage. */
@media(min-width:900px){.seo-lp .lp-ifigs.lp-i3{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.seo-lp .lp-ifigs.lp-i3 figure:first-child{grid-column:auto}.seo-lp .lp-ifigs.lp-i3 img{display:block;width:100%;height:auto;object-fit:contain}.seo-lp .seo-body>.lp-item{margin-top:clamp(36px,5vw,70px)}}

@media(min-width:900px){.seo-lp .seo-body>.lp-item{grid-template-columns:minmax(0,1fr);gap:24px}.seo-lp .seo-body>.lp-item .lp-item-txt{order:0;max-width:900px}.seo-lp .seo-body>.lp-item .lp-ifigs{order:1;width:100%}.seo-lp .seo-body>p,.seo-lp .seo-body>h3,.seo-lp .seo-body>h2+p{max-width:900px;text-align:left;font-size:17px}.seo-lp .seo-body>h3{font-size:24px}}

@media(min-width:900px){.seo-lp .seo-body>section.lp-item-mens-apparel{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:clamp(36px,5vw,70px)}.seo-lp .seo-body>section.lp-item-mens-apparel .lp-item-txt{max-width:900px}.seo-lp .seo-body>section.lp-item-mens-apparel .lp-ifigs{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Present the original five steps as one continuous sequence. */
.seo-lp #sec-21 + figure + ol{display:grid;grid-template-columns:1fr;gap:0;max-width:760px;margin:24px auto;padding:0;counter-reset:gstep;list-style:none}.seo-lp #sec-21 + figure + ol li{position:relative;display:block;min-height:0;margin:0 0 0 20px;padding:12px 16px 22px 36px;border:0;border-left:2px solid #a8bd8e;border-radius:0;background:transparent;counter-increment:gstep}.seo-lp #sec-21 + figure + ol li::before{content:counter(gstep);position:absolute;left:-16px;top:6px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#b6c9a3;color:#172019;font-size:14px;font-weight:700}.seo-lp #sec-21 + figure + ol li:last-child{border-left-color:transparent}

@media (min-width:900px){section.lp-item-mens-apparel{max-width:none!important;width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:24px!important}section.lp-item-mens-apparel .lp-item-txt{max-width:900px}section.lp-item-mens-apparel .lp-ifigs{width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}section.lp-item-mens-apparel .lp-ifigs figure{width:100%!important;margin:0!important}section.lp-item-mens-apparel .lp-ifigs img{width:100%!important;height:320px!important;object-fit:contain!important}}

/* Related reading is a compact, readable list instead of a wall of cards. */
.seo-lp .lp-cols{display:block!important;max-width:900px;margin:28px auto;padding:0;list-style:none}.seo-lp .lp-cols li{display:block!important;width:100%!important;min-height:0!important;padding:15px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #445049!important;border-radius:0!important;background:transparent!important}

/* 読みやすさ：本文の入れ子を含めて端末幅ごとに統一 */
.seo-lp .seo-body p{font-size:17px;line-height:1.85}
@media(max-width:700px){.seo-lp .seo-body p{font-size:16px;line-height:1.85}}

/* REVIEW2: added text sections use the same comfortable reading width. */
@media(min-width:900px){.seo-lp .seo-body>.lp-item,.seo-lp .seo-body>.buyer-rich,.seo-lp .seo-body>.rich21-added{width:100%!important;max-width:1100px!important;margin-inline:auto!important}.seo-lp .seo-body .lp-item-txt{width:100%!important;max-width:900px!important}.seo-lp .seo-body p{font-size:17px!important;line-height:1.85!important}}

/* 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}
