/* Top SNS feature only. Uses the site's existing, locally hosted font families. */
#sns.ms-top-sns-feature {
  --sns-feature-ink:#222;
  --sns-feature-muted:#565656;
  --sns-feature-paper:#f4f4f4;
  --sns-feature-en:'IBM Plex Sans','Ms Noto Sans JP',sans-serif;
  --sns-feature-ja:'Ms Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;
  padding:54px 48px 28px;
  background:var(--sns-feature-paper);
  color:var(--sns-feature-ink);
  font-family:var(--sns-feature-ja)!important;
  font-size:16px!important;
  line-height:1.8!important;
}
#sns.ms-top-sns-feature,
#sns.ms-top-sns-feature * {box-sizing:border-box}
#sns.ms-top-sns-feature a {color:inherit}
#sns.ms-top-sns-feature button {font:inherit!important}
#sns.ms-top-sns-feature button,
#sns.ms-top-sns-feature a {touch-action:manipulation}
#sns.ms-top-sns-feature a:focus-visible,
#sns.ms-top-sns-feature button:focus-visible,
#sns.ms-top-sns-feature video:focus-visible {outline:3px solid #2155bf;outline-offset:5px}
#sns.ms-top-sns-feature [hidden] {display:none!important}
#sns.ms-top-sns-feature .inner {max-width:1152px;margin:0 auto!important}
#sns.ms-top-sns-feature .section-heading {margin:0 0 38px!important}
#sns.ms-top-sns-feature .eyebrow {font:400 14px/1.4 var(--sns-feature-en)!important;letter-spacing:.035em!important;margin:0 0 20px!important}
#sns.ms-top-sns-feature .section-heading h2 {font-family:var(--sns-feature-ja)!important;font-size:clamp(30px,3.1vw,44px)!important;font-weight:700!important;line-height:1.35!important;letter-spacing:-.025em!important;margin:0 0 20px!important;color:var(--sns-feature-ink)}
#sns.ms-top-sns-feature .section-heading h2 span {display:inline-block}
#sns.ms-top-sns-feature .section-intro {font-size:16px!important;line-height:1.85!important;margin:0!important;color:#3d3d3d}
#sns.ms-top-sns-feature .section-intro span {display:inline}
#sns.ms-top-sns-feature .feature-grid {display:grid;grid-template-columns:330px minmax(0,1fr);gap:72px;align-items:start;margin:0!important}
#sns.ms-top-sns-feature .film {margin:0!important;min-width:0}
#sns.ms-top-sns-feature .film-screen {position:relative;aspect-ratio:9/16;background:#fff;box-shadow:0 12px 32px #0000000c;margin:0!important}
#sns.ms-top-sns-feature .film-screen > figure.wp-block-video {width:100%;height:100%;margin:0!important}
#sns.ms-top-sns-feature .film-screen video {width:100%;max-width:100%;height:100%;aspect-ratio:9/16;display:block;object-fit:contain;margin:0!important}
#sns.ms-top-sns-feature .film-play {position:absolute;left:50%;bottom:68px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;min-height:52px;width:190px;max-width:calc(100% - 24px);padding:0 10px;background:#242424;color:#fff;border:1px solid #4c4c4c;border-radius:2px;cursor:pointer;z-index:1}
#sns.ms-top-sns-feature .film-play svg {width:22px;height:22px;flex:none}
#sns.ms-top-sns-feature .film-play small {font-size:12px!important;color:#ddd;margin-left:6px!important}
#sns.ms-top-sns-feature .film-play span {font-size:14px!important;font-weight:500!important}
#sns.ms-top-sns-feature .film-caption {font-size:12px!important;line-height:1.7!important;color:var(--sns-feature-muted);display:flex;justify-content:space-between;gap:12px;margin:12px 0 0!important}
#sns.ms-top-sns-feature .feature-copy {padding-top:8px;min-width:0;margin:0!important}
#sns.ms-top-sns-feature .small-label {font:400 12px/1.5 var(--sns-feature-en)!important;letter-spacing:.08em!important;color:var(--sns-feature-muted);margin:0 0 14px!important}
#sns.ms-top-sns-feature .perspective {margin:0!important}
#sns.ms-top-sns-feature .perspective h3 {font-family:var(--sns-feature-ja)!important;font-size:clamp(28px,2.4vw,34px)!important;line-height:1.4!important;letter-spacing:-.02em!important;font-weight:650!important;margin:0 0 21px!important;color:var(--sns-feature-ink)}
#sns.ms-top-sns-feature .perspective > p:last-child {font-size:16px!important;line-height:1.9!important;margin:0!important;color:#3b3b3b}
#sns.ms-top-sns-feature .consultation {margin:29px 0 0!important}
#sns.ms-top-sns-feature .consultation p {margin:0!important;font-size:14px!important;line-height:1.9!important;color:#505050}
#sns.ms-top-sns-feature .consultation .consultation-question {font-size:18px!important;color:var(--sns-feature-ink);font-weight:600!important;margin-bottom:5px!important}
#sns.ms-top-sns-feature .consultation .wp-block-buttons {margin:0!important;gap:0}
#sns.ms-top-sns-feature .consultation .wp-block-button {margin:0!important;max-width:100%}
#sns.ms-top-sns-feature .consultation-buttons .wp-block-button__link {display:flex;align-items:center;justify-content:space-between;gap:24px;width:max-content;max-width:100%;padding:17px 25px;background:#282828;color:#fff;border:1px solid #282828;border-radius:2px;text-decoration:none;font-family:var(--sns-feature-ja)!important;font-size:16px!important;line-height:1.8!important;font-weight:650!important;margin-top:18px!important;min-height:60px;box-shadow:none}
#sns.ms-top-sns-feature .consultation-buttons .wp-block-button__link:hover {background:#424242}
#sns.ms-top-sns-feature .consultation-buttons .wp-block-button__link > span:last-child {font-size:23px!important;line-height:1!important;flex:none}
#sns.ms-top-sns-feature .accounts {display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:33px 0 0!important}
#sns.ms-top-sns-feature .account {border-top:1px solid #555;padding-top:15px;min-width:0;margin:0!important}
#sns.ms-top-sns-feature .account-label {font-size:12px!important;color:var(--sns-feature-muted);margin:0 0 10px!important}
#sns.ms-top-sns-feature .account h3 {font:600 21px/1.45 var(--sns-feature-en)!important;letter-spacing:normal!important;margin:0!important;color:var(--sns-feature-ink)}
#sns.ms-top-sns-feature .account h3 span {display:block;font:500 13px/1.65 var(--sns-feature-ja)!important;margin-top:3px!important}
#sns.ms-top-sns-feature .handle {font:400 13px/1.6 var(--sns-feature-en)!important;margin:8px 0!important;color:var(--sns-feature-muted);overflow-wrap:anywhere}
#sns.ms-top-sns-feature .account-description {font-size:13px!important;line-height:1.85!important;margin:12px 0!important}
#sns.ms-top-sns-feature .account a {font:600 14px/1.7 var(--sns-feature-en)!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;display:inline-flex;align-items:center;gap:16px;min-height:35px}
#sns.ms-top-sns-feature .account a span {font-size:20px!important}
/* Reuse the shared SNS component's appearance and behavior; adjust spacing only. */
#sns.ms-top-sns-feature .ms-sns-share {margin:34px 0 0!important;padding-top:18px;gap:12px 22px}

@media (min-width:1500px) {
  #sns.ms-top-sns-feature .inner {max-width:1220px}
  #sns.ms-top-sns-feature .feature-grid {grid-template-columns:350px minmax(0,1fr);gap:90px}
}
@media (max-width:1050px) {
  #sns.ms-top-sns-feature {padding:42px 32px 24px}
  #sns.ms-top-sns-feature .feature-grid {grid-template-columns:290px minmax(0,1fr);gap:38px}
  #sns.ms-top-sns-feature .wide-break {display:none}
  #sns.ms-top-sns-feature .accounts {gap:20px}
  #sns.ms-top-sns-feature .consultation-buttons .wp-block-button__link {font-size:15px!important;gap:16px;padding:16px 20px}
  #sns.ms-top-sns-feature .account h3 {font-size:19px!important}
  #sns.ms-top-sns-feature .film-caption {display:block}
  #sns.ms-top-sns-feature .film-caption span {display:block}
  #sns.ms-top-sns-feature .perspective h3 {font-size:29px!important}
  #sns.ms-top-sns-feature .perspective > p:last-child {font-size:15px!important}
}
@media (max-width:760px) {
  #sns.ms-top-sns-feature {padding:35px 22px 24px}
  #sns.ms-top-sns-feature .section-heading {margin-bottom:28px!important}
  #sns.ms-top-sns-feature .eyebrow {font-size:12px!important;margin-bottom:16px!important}
  #sns.ms-top-sns-feature .section-heading h2 {font-size:30px!important;line-height:1.4!important;margin-bottom:17px!important}
  #sns.ms-top-sns-feature .section-intro {font-size:14px!important}
  #sns.ms-top-sns-feature .section-intro span {display:block}
  #sns.ms-top-sns-feature .feature-grid {display:flex;flex-direction:column;gap:28px}
  #sns.ms-top-sns-feature .film {width:min(100%,340px);align-self:center}
  #sns.ms-top-sns-feature .film-caption {display:flex;font-size:11px!important}
  #sns.ms-top-sns-feature .film-play {bottom:60px}
  #sns.ms-top-sns-feature .feature-copy {padding:0;width:100%}
  #sns.ms-top-sns-feature .small-label {font-size:11px!important;margin-bottom:10px!important}
  #sns.ms-top-sns-feature .perspective h3 {font-size:28px!important;line-height:1.45!important;margin-bottom:15px!important}
  #sns.ms-top-sns-feature .perspective > p:last-child {font-size:15px!important}
  #sns.ms-top-sns-feature .desktop-break {display:none}
  #sns.ms-top-sns-feature .consultation {margin-top:25px!important}
  #sns.ms-top-sns-feature .consultation .consultation-question {font-size:18px!important}
  #sns.ms-top-sns-feature .consultation p {font-size:13px!important}
  #sns.ms-top-sns-feature .consultation .wp-block-buttons,
  #sns.ms-top-sns-feature .consultation .wp-block-button {width:100%}
  #sns.ms-top-sns-feature .consultation-buttons .wp-block-button__link {width:100%;font-size:14px!important;gap:12px;padding:16px 18px;margin-top:17px!important}
  #sns.ms-top-sns-feature .accounts {grid-template-columns:1fr;gap:24px;margin-top:30px!important}
  #sns.ms-top-sns-feature .account {padding-top:16px;display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:start}
  #sns.ms-top-sns-feature .account-label,
  #sns.ms-top-sns-feature .account h3,
  #sns.ms-top-sns-feature .account .handle,
  #sns.ms-top-sns-feature .account-description {grid-column:1}
  #sns.ms-top-sns-feature .account h3 {font-size:22px!important}
  #sns.ms-top-sns-feature .account a {grid-column:2;grid-row:4 / span 2;font-size:12px!important;gap:6px;align-self:end}
  #sns.ms-top-sns-feature .account-description {font-size:12px!important;margin-bottom:0!important}
  #sns.ms-top-sns-feature .ms-sns-share {gap:7px 17px;margin-top:30px!important}
}
@media (max-width:370px) {
  #sns.ms-top-sns-feature {padding-inline:20px}
  #sns.ms-top-sns-feature .section-heading h2 {font-size:28px!important}
  #sns.ms-top-sns-feature .film-caption {gap:7px;font-size:10px!important}
  #sns.ms-top-sns-feature .account {display:block}
  #sns.ms-top-sns-feature .account a {margin-top:9px!important}
  #sns.ms-top-sns-feature .account h3 span {display:inline;margin-left:10px!important;font-size:12px!important}
  #sns.ms-top-sns-feature .consultation-buttons .wp-block-button__link {padding-inline:15px;font-size:13px!important}
}

/* Narrow-phone refinements: keep the four existing share actions together. */
@media(max-width:370px){
 #sns.ms-top-sns-feature .ms-sns-share > span:first-child {flex-basis:100%}
 #sns.ms-top-sns-feature .consultation > p:not(.consultation-question) {text-wrap:balance}
}

/* BEGIN Ms@ TOP Instagram feeds 2026-11-26: prepared, not deployed. */
/* TOP wrapper styling for standard Instagram Feed Free shortcodes.
 * Account titles/descriptions remain editable HTML. No plugin internals or templates.
 * Image-grid adapter is separate and must be verified against the installed plugin DOM.
 */
#sns.ms-top-sns-feature .ms-home-ig-feeds {
  display:grid;
  gap:clamp(36px,4vw,56px);
  min-width:0;
  margin:clamp(40px,5vw,72px) 0 0!important;
  padding:0!important;
}
#sns.ms-top-sns-feature .ms-ig-account {
  --ms-ig-accent:#282828;
  min-width:0;
  margin:0!important;
  padding:24px 0 0!important;
  border-top:3px solid var(--ms-ig-accent);
}








#sns.ms-top-sns-feature .ms-ig-plugin-feed {
  min-width:0;
  margin:0!important;
  padding:0!important;
}
#sns.ms-top-sns-feature .ms-ig-feed-note {
  font-size:13px!important;
  line-height:1.8!important;
  color:#565656;
  margin:14px 0 0!important;
}
#sns.ms-top-sns-feature .ms-ig-plugin-feed a:focus-visible,
#sns.ms-top-sns-feature .ms-ig-plugin-feed button:focus-visible,
#sns.ms-top-sns-feature .ms-ig-followup a:focus-visible {
  outline:3px solid var(--ms-color-blue,#2155bf);
  outline-offset:4px;
}
#sns.ms-top-sns-feature .ms-ig-followup {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px 24px;
  margin:36px 0 0!important;
  padding:24px 0 0!important;
  border-top:1px solid #ccc;
}
#sns.ms-top-sns-feature .ms-ig-followup p {
  font-size:16px!important;
  font-weight:600!important;
  line-height:1.8!important;
  color:#222;
  margin:0!important;
}
#sns.ms-top-sns-feature .ms-ig-followup a {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:52px;
  padding:14px 20px;
  border:1px solid #282828;
  border-radius:2px;
  color:#fff;
  background:#282828;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.8!important;
  text-decoration:none;
}

@media(max-width:620px) {



  #sns.ms-top-sns-feature .ms-ig-followup {flex-direction:column;align-items:stretch}
  #sns.ms-top-sns-feature .ms-ig-followup a {width:100%}
}

/* Adapt the existing msatto/sns top_sns_feature renderer only when moved into
 * the new feed wrappers. Profile names, roles, URL settings and click tracking
 * continue to use the current theme renderer, with no PHP/template changes.
 */
#sns.ms-top-sns-feature .ms-ig-account--recruit {
  --ms-ig-accent:var(--ms-color-blue,#2155bf);
}
#sns.ms-top-sns-feature .ms-ig-account > .accounts {
  display:block;
  margin:0 0 22px!important;
  padding:0!important;
}
#sns.ms-top-sns-feature .ms-ig-account > .accounts > .account {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:0 24px;
  align-items:start;
  padding:0!important;
  border:0;
}
#sns.ms-top-sns-feature .ms-ig-account .account-label,
#sns.ms-top-sns-feature .ms-ig-account .account h3,
#sns.ms-top-sns-feature .ms-ig-account .handle,
#sns.ms-top-sns-feature .ms-ig-account .account-description {
  grid-column:1;
}
#sns.ms-top-sns-feature .ms-ig-account .account-label {
  margin:0 0 7px!important;
}
#sns.ms-top-sns-feature .ms-ig-account .account h3 {
  font-size:clamp(24px,2.1vw,30px)!important;
  font-weight:700!important;
  line-height:1.45!important;
}
#sns.ms-top-sns-feature .ms-ig-account .account h3 span {
  display:inline-block;
  margin:0 0 0 14px!important;
  font-size:14px!important;
  line-height:1.7!important;
}
#sns.ms-top-sns-feature .ms-ig-account .handle {
  font-size:14px!important;
  line-height:1.7!important;
  margin:5px 0 0!important;
}
#sns.ms-top-sns-feature .ms-ig-account .account-description {
  font-size:15px!important;
  line-height:1.8!important;
  margin:12px 0 0!important;
}
#sns.ms-top-sns-feature .ms-ig-account .account a {
  grid-column:2;
  grid-row:1 / 5;
  align-self:end;
  min-height:44px;
  padding:8px 0;
  margin:0!important;
  font-size:14px!important;
}
#sns.ms-top-sns-feature .ms-ig-account .account a:focus-visible {
  outline:3px solid var(--ms-color-blue,#2155bf);
  outline-offset:4px;
}
#sns.ms-top-sns-feature .ms-ig-followup > .wp-block-buttons {
  margin:0!important;
  flex-shrink:0;
}
@media(max-width:880px) {
  #sns.ms-top-sns-feature .ms-ig-account .account h3 span {
    display:block;
    margin:3px 0 0!important;
  }
}
@media(max-width:620px) {
  #sns.ms-top-sns-feature .ms-ig-account > .accounts > .account {
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }
  #sns.ms-top-sns-feature .ms-ig-account .account-description {
    font-size:14px!important;
  }
  #sns.ms-top-sns-feature .ms-ig-account .account a {
    grid-column:1;
    grid-row:auto;
    justify-self:start;
    margin-top:8px!important;
  }
  #sns.ms-top-sns-feature .ms-ig-followup > .wp-block-buttons,
  #sns.ms-top-sns-feature .ms-ig-followup .wp-block-button {
    width:100%;
  }
}

/* END Ms@ TOP Instagram feeds 2026-11-26. */

/* BEGIN Ms@ TOP Instagram responsive thumbnails 2026-11-26.
 * Actual .sbi_photo/img DOM verified by the parent deployment task.
 * Follow container width on resize and show the full original image.
 */
#sns.ms-top-sns-feature .ms-ig-plugin-feed a.sbi_photo {
  height:auto!important;
  aspect-ratio:4/5;
}
#sns.ms-top-sns-feature .ms-ig-plugin-feed a.sbi_photo img {
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
/* END Ms@ TOP Instagram responsive thumbnails 2026-11-26. */

/* BEGIN Ms@ director manual Instagram posts 2026-11-27.
 * This wrapper belongs only to the director's three standard WordPress image
 * blocks. Existing RECRUIT shortcode, CSS, PHP, JS and account links are kept.
 * Image links use three columns on desktop and two columns on mobile.
 */
#sns.ms-top-sns-feature .ms-ig-account--director .ms-ig-manual-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  min-width:0;
  margin:0!important;
  padding:0 0 20px!important;
}
#sns.ms-top-sns-feature .ms-ig-account--director .ms-ig-manual-post {
  min-width:0;
  margin:0!important;
  padding:0!important;
}
#sns.ms-top-sns-feature .ms-ig-account--director .ms-ig-manual-post > a {
  display:block;
  width:100%;
  aspect-ratio:4/5;
}
#sns.ms-top-sns-feature .ms-ig-account--director .ms-ig-manual-post img {
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%;
  object-fit:contain!important;
  object-position:center;
  margin:0!important;
}
#sns.ms-top-sns-feature .ms-ig-account--director .ms-ig-manual-post > a:focus-visible {
  outline:3px solid var(--ms-color-blue,#2155bf);
  outline-offset:4px;
}
@media(max-width:480px) {
  #sns.ms-top-sns-feature .ms-ig-account--director .ms-ig-manual-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
/* END Ms@ director manual Instagram posts 2026-11-27. */
