/* 保存した実投稿を、サイトの紫のトーンで読める展示へ。 */
.sp-showcase{--sp-line:#e6deef;--sp-ink:#211c29;--sp-muted:#655c70;--sp-accent:#5f35b3;min-width:0;max-width:100%;background:#f9f7fd;color:var(--sp-ink);font-family:inherit}
.sp-showcase *,.sp-dialog *{box-sizing:border-box}
.sp-showcase [hidden]{display:none!important}
.sp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 18px;flex-wrap:wrap}
.sp-heading p{margin:0;font-size:17px;line-height:1.6;font-weight:700;color:var(--sp-ink)}
.sp-heading>span{font-size:12px;color:var(--sp-accent);line-height:1.6;white-space:nowrap}
.sp-viewport{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-behavior:auto;scroll-snap-type:none;overscroll-behavior-x:contain;direction:ltr;scrollbar-width:thin;scrollbar-color:#c8b6e2 #f0eafa;padding:4px 0 10px}
.sp-track{display:flex;align-items:stretch;gap:0;width:max-content;max-width:none}
.sp-group{display:flex;align-items:stretch;gap:16px;padding:0 16px 0 0;width:max-content;flex:0 0 auto}
.sp-card{position:relative;display:flex;flex-direction:column;flex:0 0 320px;width:320px;min-width:0;margin:0;background:#fff;border:1px solid var(--sp-line);border-radius:0;color:var(--sp-ink);overflow:hidden;text-align:left}
.sp-card:hover{border-color:#a68bc9}
.sp-open{appearance:none;display:flex;flex-direction:column;align-items:stretch;width:100%;flex:1;border:0;padding:20px 18px 0;margin:0;background:#fff;color:inherit;font:inherit;line-height:1.65;text-align:left;cursor:pointer;border-radius:0;letter-spacing:0}
.sp-author{display:flex;align-items:center;gap:10px;width:100%;min-height:46px}
.sp-avatar{display:block;flex:0 0 42px;width:42px;height:42px;overflow:hidden;border-radius:50%;background:#f0eafa}
.sp-avatar img{display:block!important;width:42px!important;height:42px!important;max-width:none;object-fit:cover!important;border-radius:50%!important}
.sp-identity{display:block;flex:1;min-width:0}
.sp-name{display:block;font-weight:700;font-size:13px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#211c29}
.sp-handle{display:block;font-size:12px;line-height:1.7;color:#655c70;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-x{font-size:24px;line-height:1;flex:none;color:#211c29}
.sp-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;color:#211c29;min-height:9.25em;margin-top:16px;margin-bottom:18px;font-weight:400}
.sp-media{display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%;height:170px;background:#f7f5fa;border:1px solid #ece7f1;margin-top:auto}
.sp-media img{display:block;width:100%;height:100%;object-fit:contain!important;max-height:none!important;max-width:100%;border-radius:0!important}
.sp-media--grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:2px}
.sp-media--grid img{min-width:0;min-height:0}
.sp-media-caption{display:block;margin-top:auto;padding:8px 0;font-size:12px;line-height:1.7;color:#655c70;overflow-wrap:anywhere}
.sp-media-caption+.sp-media{margin-top:0}
.sp-text-note{display:flex;align-items:flex-end;min-height:170px;margin-top:auto;padding:18px;background:linear-gradient(145deg,#f0eafa,#faf8fd);border-top:2px solid #a16bd6;color:#5f35b3;font-size:13px;line-height:1.9}
.sp-card--text .sp-excerpt{-webkit-line-clamp:9;min-height:0}
.sp-card--text .sp-text-note{min-height:50px}
.sp-source{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px!important;min-height:45px;width:100%;background:#fff!important;border-top:1px solid #e6deef;font-size:12px!important;font-weight:500;color:#655c70!important;text-decoration:none;line-height:1.7}
.sp-source:hover{color:#5f35b3!important;background:#f9f7fd!important}
.sp-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:12px 18px 0}
.sp-controls{display:flex;align-items:center;gap:7px}
.sp-controls button{appearance:none;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 11px;border:1px solid #d8cbe7;border-radius:0;background:#fff;color:#5f35b3;font-family:inherit;font-weight:500;font-size:13px;line-height:1.4;cursor:pointer}
.sp-controls [data-post-toggle]{min-width:64px;font-family:inherit;font-size:12px}
.sp-controls button:hover{background:#eee6f9;border-color:#a58ac9}
.sp-controls button:focus-visible,.sp-open:focus-visible,.sp-source:focus-visible,.sp-viewport:focus-visible{outline:3px solid #7952d8;outline-offset:-3px}
.sp-note{margin:0!important;padding:12px 18px 16px;font-size:12px!important;line-height:1.85!important;color:#655c70!important;text-align:left;overflow-wrap:anywhere}
.business-editorial.be-03-sns .be-hero-media.sp-hero-panel{display:block;min-width:0;padding:0;border-top:3px solid #9256e1;border-image:linear-gradient(115deg,#bd529e,#9256e1,#666de4) 1;align-self:start}
.business-editorial.be-03-sns .sp-hero-panel a{aspect-ratio:auto;height:auto;overflow:visible}
.business-editorial.be-03-sns .sp-profile-evidence{margin-top:28px;max-width:780px}
.business-editorial.be-03-sns .sp-profile-evidence .be-hero-picture>a{height:360px}
.business-editorial.be-03-sns .sp-profile-evidence .be-hero-secondary>a{height:300px}
.services-editorial .sp-service-panel{min-width:0;padding:0!important;overflow:hidden}
.services-editorial .sp-service-panel figcaption{padding:0 18px 18px!important;background:#f9f7fd;color:#655c70}
.sp-showcase--service .sp-card{width:300px;flex-basis:300px}
.sp-showcase--service .sp-media{height:155px}
.sp-showcase--service .sp-excerpt{-webkit-line-clamp:4;min-height:7.4em}
.sp-showcase--service .sp-card--text .sp-excerpt{-webkit-line-clamp:8;min-height:0}
/* The modal lives at body level to avoid clipping by the moving rail. */
.sp-dialog{width:min(700px,calc(100vw - 32px));max-width:700px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #d8cbe7;border-top:3px solid #9256e1;border-radius:0;background:#fff;color:#211c29;overflow:auto;font-family:'Noto Sans JP','Hiragino Sans',sans-serif;box-shadow:0 16px 80px #211c2940}
.sp-dialog::backdrop{background:#211c29b8;backdrop-filter:blur(4px)}
.sp-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e6deef;padding:16px 24px}
.sp-dialog-title{margin:0;color:#5f35b3;font-size:14px;line-height:1.7;font-weight:700}
.sp-dialog-close{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #d8cbe7;background:#fff;color:#5f35b3;font-family:inherit;font-weight:500;font-size:13px;line-height:1.5;cursor:pointer}
.sp-dialog-content{padding:26px 28px}
.sp-dialog-content .sp-excerpt{display:block;min-height:0;-webkit-line-clamp:unset;overflow:visible;font-size:16px;line-height:1.95;margin:18px 0 24px}
.sp-dialog-content .sp-name{font-size:15px;white-space:normal}
.sp-dialog-content .sp-handle{font-size:13px}
.sp-dialog-content .sp-media{height:auto;max-height:none;background:#f9f7fd;margin:0}
.sp-dialog-content .sp-media img{width:100%;height:auto;object-fit:contain!important}
.sp-dialog-content .sp-media+.sp-media{margin-top:12px}
.sp-dialog-content .sp-media-caption{padding:0 0 12px}
.sp-dialog-source{display:flex!important;align-items:center;justify-content:space-between;min-height:50px;padding:14px 24px;margin:0 28px 28px;background:#5f35b3!important;color:#fff!important;font-size:14px;line-height:1.7;text-decoration:none;border:1px solid #5f35b3}
.sp-dialog-close:focus-visible,.sp-dialog-source:focus-visible{outline:3px solid #7952d8;outline-offset:3px}
@media(max-width:600px){
 .sp-heading{padding:15px 14px;gap:6px}.sp-heading p{font-size:15px}.sp-heading>span{font-size:12px}
 .sp-card,.sp-showcase--service .sp-card{width:268px;flex-basis:268px}.sp-open{padding:16px 14px 0}
 .sp-media,.sp-showcase--service .sp-media{height:145px}.sp-name{font-size:12px}
 .sp-excerpt{font-size:14px}.sp-toolbar{padding:12px 14px 0;gap:8px}.sp-controls{gap:5px}.sp-controls [data-post-toggle]{min-width:56px}
 .sp-note{padding:12px 14px 16px}.sp-dialog-header{padding:12px 16px}
 .sp-dialog-content{padding:22px 18px}.sp-dialog-content .sp-excerpt{font-size:15px}.sp-dialog-source{margin:0 18px 22px;padding:14px 18px}
 .business-editorial.be-03-sns .sp-profile-evidence .be-hero-picture>a{height:300px}
 .business-editorial.be-03-sns .sp-profile-evidence .be-hero-secondary>a{height:260px}
}
@media(prefers-reduced-motion:reduce){.sp-viewport{scroll-behavior:auto}.sp-showcase *{animation:none!important;transition:none!important}}

.sp-open:disabled{cursor:default;opacity:1;-webkit-text-fill-color:currentColor}
.sp-excerpt,.sp-media,.sp-source{flex-shrink:0}
.business-editorial.be-03-sns .sp-hero-panel .sp-source{justify-content:space-between}

.sp-dialog [hidden]{display:none!important}
.sp-showcase a.sp-source:focus-visible{outline-offset:-3px}
.sp-dialog{overscroll-behavior:contain}

/* Xの反応欄。カードは見やすい4項目、拡大すると6項目の正確な数値。 */
.sp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-posted{display:block;font-size:12px;line-height:1.8;color:#655c70;padding:12px 0 10px;margin:0}
.sp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:5px;width:100%;padding:12px 0;border-top:1px solid #ece7f1;border-bottom:0}
.sp-metric{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;position:relative;color:#655c70;line-height:1.4}
.sp-metric-icon{display:block;flex:0 0 17px;width:17px;height:17px;overflow:visible;color:inherit}
.sp-count{font-size:12px;font-weight:500;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.sp-metric--likes{color:#bd2266}
.sp-metric--reposts{color:#287158}
.sp-metric--views{color:#655c70}
.sp-dialog-content .sp-posted{margin:0;padding:18px 0;color:#655c70;font-size:12px}
.sp-dialog-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #e6deef;border-bottom:1px solid #e6deef;padding:22px 0;gap:24px 18px}
.sp-dialog-metrics .sp-metric{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;justify-content:start;gap:8px;color:#211c29}
.sp-dialog-metrics .sp-metric-icon{grid-column:1;grid-row:1;width:18px;height:18px;color:#655c70}
.sp-dialog-metrics .sp-count{grid-column:1/-1;grid-row:2;font-size:23px;font-weight:700;line-height:1.25;letter-spacing:-.035em}
.sp-dialog-metrics .sp-metric-label{grid-column:2;grid-row:1;font-size:12px;color:#655c70;line-height:1.7}
.sp-dialog-metrics [data-metric="likes"] .sp-metric-icon{color:#bd2266}
.sp-dialog-metrics [data-metric="reposts"] .sp-metric-icon{color:#287158}
.sp-dialog-content .sp-observed{font-size:12px;line-height:1.9;color:#655c70;margin:16px 0 0}
@media(max-width:600px){
 .sp-metrics{gap:3px}.sp-metric{gap:4px}.sp-metric-icon{flex-basis:15px;width:15px;height:15px}
 .sp-dialog-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;padding:20px 0}
 .sp-dialog-metrics .sp-count{font-size:20px}.sp-posted>span{display:none}
}
