/* Shared canvas styles. No selectors target WordPress admin controls. */
:where(.wp-site-blocks, .editor-styles-wrapper) { --ms-blue: #326fce; --ms-navy: #2d609c; }
.wp-site-blocks > * { margin-block-start: 0; }
:where(.wp-site-blocks, .editor-styles-wrapper) img { max-width: 100%; height: auto; }
:where(.wp-site-blocks, .editor-styles-wrapper) a { text-underline-offset: .2em; }
:where(.wp-site-blocks, .editor-styles-wrapper) a:focus-visible { outline: 3px solid #db8e1f; outline-offset: 5px; }
.ms-header-top { box-sizing: border-box; padding: 10px clamp(20px,3vw,48px); min-height: 78.8px; gap: 20px; }
.ms-logo { display: block; width: clamp(220px,25vw,310px); margin: 0; }
.wp-block-image > a,
.wp-block-image > figure > a { display: block; }
.ms-logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.ms-header-actions { gap: 16px; }
.ms-social { gap: 8px; }
.ms-social .wp-block-image { margin: 0; flex-shrink: 0; }
.ms-social img { display: block; width: 30px; height: 30px; }
.ms-navigation { background: linear-gradient(90deg,#3373db,#2c5f99 25%,#2c5f99 75%,#3373db); padding: 7px 24px; }
.ms-navigation .wp-block-navigation { justify-content: center; font-size: 16px; }
.ms-navigation .wp-block-navigation__container { gap: clamp(16px,2vw,32px); }
.ms-navigation a { padding-block: 4px; }
/* Outrank core Navigation's duplicated item selector, including visited links. */
.ms-navigation .wp-block-navigation .wp-block-navigation-item > .wp-block-navigation-item__content { color: #fff; }
.ms-navigation .wp-block-navigation__responsive-container-open { color: #fff; }
.ms-navigation .ms-mobile-action-menu { display: none; }
.ms-hero, .ms-section, .ms-feature, .ms-on-blue { margin-block-start: 0; }
.ms-hero { position: relative; isolation: isolate; min-height: min(72vw,1000px); display: grid; align-items: center; overflow: hidden; }
.ms-hero > .ms-hero-photo { position: absolute; inset: 0; margin: 0; z-index: -1; }
.ms-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ms-hero-copy { width: min(1120px,76%); margin: 0 auto; padding: 30px 0; color: #3374d6; }
.ms-hero .ms-hero-copy > * { margin-block: 0; }
.ms-hero-copy .ms-catch { font-size: clamp(18px,2.5vw,36px); font-weight: 700; margin-bottom: 10px; }
.ms-hero-copy .ms-role { font-size: clamp(18px,1.7vw,25px); font-weight: 700; }
.ms-hero-copy h1 { font-size: clamp(48px,7vw,100px); letter-spacing: .08em; line-height: 1.3; color: inherit; }
.ms-hero-copy .ms-kana { font-size: clamp(20px,2.5vw,34px); letter-spacing: .3em; font-weight: 700; }
.ms-section { padding: clamp(48px,6vw,88px) 24px; }
.ms-section-title { color: var(--ms-navy); margin-block: 0 28px; }
.ms-section-title small { display: block; font-size: 14px; letter-spacing: .16em; line-height: 2.5; }
.ms-video { margin: 0; }
.ms-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.ms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ms-video a { color: inherit; }
.ms-news .wp-block-post { border-bottom: 1px solid #d9e1ea; padding: 20px 0; margin: 0; }
.ms-news .wp-block-post:first-child { padding-top: 0; }
.ms-news .wp-block-post-title { font-size: 18px; margin-top: 8px; }
.ms-news .wp-block-post-date { font-size: 14px; color: #666; }
.ms-feature { gap: 0; margin: 0; }
.ms-feature > .wp-block-column { min-width: 0; }
.ms-feature-copy { padding: clamp(32px,5vw,76px); }
.ms-feature-copy .wp-block-buttons { margin-top: 28px; }
.ms-feature-photo { height: 100%; margin: 0; }
.ms-feature-photo img { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.ms-on-blue .ms-section-title { color: #fff; }
.ms-principles { margin-top: 36px; }
.ms-principles .wp-block-column { background: #f2f6fa; padding: 28px; }
.ms-principles h3 { font-size: 22px; color: var(--ms-navy); text-align: center; }
.ms-principles .wp-block-image { max-width: 180px; margin-inline: auto; margin-block-start: 10px; }
.ms-principles p { font-size: 16px; }
.ms-newsletter .wp-block-image { margin: 0; }
.ms-newsletter img { display: block; width: 100%; }
.ms-support-card { padding: 32px; background: #fff; height: 100%; box-sizing: border-box; }
.ms-support-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ms-support-card h3 { font-size: 24px; color: var(--ms-navy); }
.ms-footer { padding: 56px 24px 28px; border-top: 1px solid #dbe3ed; }
.ms-footer-title { font-size: 25px; color: var(--ms-navy); line-height: 1.6; }
.ms-footer-menu .wp-block-navigation__container { gap: 14px 24px; }
.ms-footer-menu { font-size: 14px; margin-block: 30px; }
.ms-page-heading {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 220px;
  padding: 32px max(24px, calc((100% - 1168px) / 2));
  background: #126cc5 url("images/common/pageHero.jpg") center / cover no-repeat;
  color: #fff;
  text-align: left;
}
.ms-page-heading > * { width: 100%; max-width: 1168px; }
.ms-page-heading h1 { margin: 0; color: #fff; font-size: clamp(28px,3vw,36px); font-weight: 400; line-height: 1.6; }
.ms-content { padding: 48px 24px 80px; }
.ms-content table { width: 100%; border-collapse: collapse; }
.ms-content :where(th,td) { padding: 14px 18px; border-bottom: 1px solid #d9e2ec; vertical-align: top; }
.ms-content :where(th,td:first-child) { background: #f2f6fa; }
.ms-content .wp-block-post-content { overflow-wrap: anywhere; }
.ms-content .wp-block-post-content .basicstance { background: #f2f6fa; padding: 24px; }
.ms-content .basicstance img { max-height: 190px; width: auto; }
.ms-content .wp-block-post-content .pageinlink a { display: block; border: 1px solid #326fce; padding: 12px 20px; }
.wp-block-query-pagination { margin-block: 48px 0; gap: 8px; }
.wp-block-query-pagination-numbers { display: flex; gap: 8px; }
.wp-block-query-pagination :where(.page-numbers,.wp-block-query-pagination-previous,.wp-block-query-pagination-next) {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 7px 13px;
  border: 1px solid #d5e1ec;
  border-radius: 6px;
  color: #234f81;
  text-decoration: none;
}
.wp-block-query-pagination .current { border-color: #086db7; background: #086db7; color: #fff; }
.ms-news-page-heading {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 220px;
  padding: 32px max(24px, calc((100% - 1168px) / 2));
  background: #126cc5 url("images/common/pageHero.jpg") center / cover no-repeat;
  color: #fff;
  text-align: left;
}
.ms-news-page-heading > * { width: 100%; max-width: 1168px; }
.ms-news-page-heading h1 { color: #fff; font-size: 36px; font-weight: 400; }
.ms-news-content { margin-block-start: 0; padding-top: 0; }
.ms-news-content > * { width: 100%; max-width: 1168px; }
.ms-news-breadcrumb { margin: 0 0 36px; padding: 14px 0; font-size: 14px; }
.ms-news-breadcrumb a { color: #0061a8; text-decoration: none; }
.ms-news-layout { align-items: flex-start !important; gap: 40px; }
.ms-news-index .wp-block-post-template { display: block; margin: 0; }
.ms-news-index .wp-block-post { margin: 0; }
.ms-news-list-item {
  position: relative;
  gap: 24px;
  margin: 0;
  padding: 14px 0 14px;
  border-bottom: 1px solid #aeb8c1;
}
.ms-news-list-item + .ms-news-list-item { padding-top: 14px; }
.ms-news-list-image {
  flex: 0 0 260px;
  width: 260px;
  margin: 0;
  overflow: hidden;
  background: #e9f1f8;
}
.ms-news-list-image img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ms-news-list-item:not(:has(.ms-news-list-image))::before {
  content: "ともにつくる尼崎\Aみらいプロジェクト\A\A松本眞";
  display: grid;
  flex: 0 0 260px;
  width: 260px;
  aspect-ratio: 4/3;
  place-items: center;
  box-sizing: border-box;
  padding: 28px;
  background: linear-gradient(145deg,#2681ca,#28579a);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: pre-line;
}
.ms-news-list-copy { flex: 1 1 auto; min-width: 0; }
.ms-news-list-copy > * { margin-block: 0; }
.ms-news-meta { gap: 7px; margin: 0 0 3px; color: #4f565d; font-size: 14px; }
.ms-news-meta .wp-block-post-terms a { color: #1680c1; text-decoration: none; }
.ms-news-index .wp-block-post-title { margin: 0 0 3px; color: #0871ba; font-size: 18px; line-height: 1.5; }
.ms-news-index .wp-block-post-title a { color: inherit; text-decoration: none; }
.ms-news-index .wp-block-post-excerpt { margin: 0; color: #333; font-size: 14px; line-height: 1.65; }
.ms-news-index .wp-block-post-excerpt__excerpt { margin: 0; }
.ms-news-index .wp-block-post-excerpt__more-text { display: none; }
.ms-news-sidebar { font-size: 14px; }
.ms-news-sidebar h4 {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #e9eef3;
  color: #333;
  font-size: 18px;
}
.ms-news-sidebar h4:not(:first-child) { margin-top: 28px; }
.ms-news-sidebar ul { margin: 0; padding: 0; list-style: none; }
.ms-news-sidebar li { margin: 0 0 10px; }
.ms-news-sidebar a { color: #1680c1; text-decoration: none; }
.ms-news-sidebar .wp-block-tag-cloud { line-height: 1.65; }
.ms-news-sidebar .wp-block-tag-cloud a { font-size: 14px !important; }
.ms-article-breadcrumb {
  gap: .35em;
  margin: 0 0 36px;
  padding: 14px 0;
  color: #333;
  font-size: 14px;
}
.ms-article-breadcrumb > * { margin: 0; font: inherit; }
.ms-article-breadcrumb a { color: #0061a8; text-decoration: none; }
.ms-article-title {
  margin: 0 0 16px;
  color: #0061a8;
  font-size: 30px;
  line-height: 1.5;
}
.ms-article-meta { gap: 6px; margin: 0 0 28px; color: #555; font-size: 14px; }
.ms-article-meta > * { margin: 0; }
.ms-article-meta .ms-article-published-label { margin-left: 12px; }
.ms-article-meta .wp-block-post-terms { margin-left: 12px; }
.ms-article-meta .wp-block-post-terms a { color: #1680c1; text-decoration: none; }
.ms-article-main > .wp-block-post-content { margin-block-start: 0; }
.ms-article-main > .wp-block-post-content > :first-child { margin-block-start: 0; }
.ms-post-navigation {
  justify-content: center !important;
  gap: 16px;
  margin-top: clamp(48px,7vw,88px);
  padding-top: 28px;
  border-top: 1px solid #d9e4ee;
}
.ms-post-navigation > .wp-block-post-navigation-link {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 52px;
  align-items: center;
  box-sizing: border-box;
  padding: 9px 22px;
  border: 3px solid #0871ba;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.ms-post-navigation > .wp-block-post-navigation-link:empty { display: none; }
.ms-post-navigation > .wp-block-post-navigation-link:hover {
  background: #0871ba;
  transform: translateY(-2px);
}
.ms-post-navigation a {
  color: #0871ba;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.ms-post-navigation > .wp-block-post-navigation-link:hover a { color: #fff; }
.ms-post-navigation :where(.wp-block-post-navigation-link__arrow-previous,.wp-block-post-navigation-link__arrow-next) {
  color: #1676bc;
  font-size: 20px;
}
.ms-post-navigation > .wp-block-post-navigation-link:hover :where(.wp-block-post-navigation-link__arrow-previous,.wp-block-post-navigation-link__arrow-next) { color: #fff; }
.ms-post-navigation .wp-block-post-navigation-link__arrow-previous { margin: 0 8px 0 0; }
.ms-post-navigation .wp-block-post-navigation-link__arrow-next { margin: 0 0 0 8px; }
/* Styles used by migrated page content. */
:where(.wp-block-post-content,.editor-styles-wrapper) .backcolor { background: #f2f6fa; padding: 24px; }
:where(.wp-block-post-content,.editor-styles-wrapper) .pageinlink { margin-block: 12px; }
.ms-content .mw_wp_form { max-width: 100%; }
.mw_wp_form :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { box-sizing: border-box; max-width: 100%; padding: 12px; border: 1px solid #9eaebb; border-radius: 4px; font: inherit; }
.mw_wp_form textarea { width: 100%; }
.mw_wp_form :where(input[type=submit],button) { background: #326fce; color: white; cursor: pointer; }
.mw_wp_form .required { display: inline-block; background: #af3434; color: #fff; font-size: 12px; padding: 2px 7px; margin: 4px; }
.mw_wp_form .optional { font-size: 12px; color: #626c76; }

/* Membership application page: preserve the production form layout. */
.page-id-2898 .ms-content { padding-top: 0; }
.page-id-2898 .ms-content > .wp-block-post-content { width: 100%; max-width: 1168px; }
.page-id-2898 .ms-breadcrumb {
  margin: 0 0 54px;
  padding: 14px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}
.page-id-2898 .ms-breadcrumb a { color: #0061a8; text-decoration: none; }
.page-id-2898 .mw_wp_form { font-size: 16px; line-height: 1.8; }
.page-id-2898 .mw_wp_form .input-visible > h5 {
  position: relative;
  margin: 26px 0 10px;
  padding: 0 0 0 1.2em;
  border: 0;
  color: #333;
  font-size: 18px;
  line-height: 1.8;
}
.page-id-2898 .mw_wp_form .input-visible > h5::before {
  content: "";
  position: absolute;
  top: .9em;
  left: 0;
  width: .8em;
  height: 2px;
  background: #67d0f7;
}
.page-id-2898 .mw_wp_form .disc { margin: 0 0 24px; padding-left: 1.5em; }
.page-id-2898 .mw_wp_form table { margin-top: 16px; font-size: 16px; line-height: 1.6; }
.page-id-2898 .mw_wp_form :where(th,td) {
  box-sizing: border-box;
  padding: 12px;
  border: 0;
  border-top: 1px solid #b8b8b8;
  background: transparent;
  text-align: left;
}
.page-id-2898 .mw_wp_form th { width: 30%; font-weight: 700; }
.page-id-2898 .mw_wp_form td { width: 70%; }
.page-id-2898 .mw_wp_form :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]),select,textarea) {
  padding: 8px 10px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
}
.page-id-2898 .mw_wp_form .required,
.page-id-2898 .mw_wp_form .required-msg { color: #fff; background: #c73525; }
.page-id-2898 .mw_wp_form .required-msg { display: inline-block; padding: 0 3px; font-size: 12px; }
.page-id-2898 .mw_wp_form .optional { display: inline-block; margin-left: 12px; padding: 1px 5px; color: #555; background: #e5e5e5; }
.mw_wp_form .control { margin-block: 8px; }
.mw_wp_form .is-grouped { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.mw_wp_form_input .confirm-visible, .mw_wp_form_confirm .input-visible { display: none; }
.mw_wp_form .error { color: #a12626; font-weight: 700; }
.mw_wp_form .field-medium { width: min(100%,32rem); }
.mw_wp_form .field-short { width: 8rem; }
.mw_wp_form :where(input[type="radio"],input[type="checkbox"]).field-medium,
.mw_wp_form :where(input[type="radio"],input[type="checkbox"]).field-short {
  width: auto;
}
.page-id-2898 .mw_wp_form :where(.mwform-radio-field,.mwform-checkbox-field) label {
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.page-id-2898 .mw_wp_form :where(.mwform-radio-field,.mwform-checkbox-field) input {
  flex: none;
  margin: 0;
}
.page-id-2898 .mw_wp_form .horizontal-item + .horizontal-item { margin-left: 1.25em; }
.page-id-2898 .mw_wp_form td > .error { display: block; margin-top: 4px; }

/* Contact page: match the production page and MW WP Form proportions. */
.page-id-180 .ms-content { margin-block-start: 0; padding-top: 0; }
.page-id-180 .ms-content > .wp-block-post-content { width: 100%; max-width: 1168px; }
.page-id-180 .ms-breadcrumb {
  margin: 0 0 28px;
  padding: 14px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}
.page-id-180 .ms-breadcrumb a { color: #0061a8; text-decoration: none; }
.page-id-180 .ms-content .wp-block-post-content > h2.wp-block-heading {
  margin: 0 0 28px !important;
  padding-bottom: 18px;
  color: #0061a8;
  font-size: 30px !important;
}
.page-id-180 .mw_wp_form { font-size: 16px; line-height: 1.8; }
.page-id-180 .mw_wp_form .input-visible > h5 {
  position: relative;
  margin: 26px 0 10px;
  padding: 0 0 0 1.2em;
  border: 0;
  color: #333;
  font-size: 18px;
  line-height: 1.8;
}
.page-id-180 .mw_wp_form .input-visible > h5::before {
  content: "";
  position: absolute;
  top: .9em;
  left: 0;
  width: .8em;
  height: 2px;
  background: #67d0f7;
}
.page-id-180 .mw_wp_form .disc { margin: 0 0 24px; padding-left: 1.5em; }
.page-id-180 .mw_wp_form .input-visible > h3 {
  margin: 28px 0 14px;
  padding: 7px 12px;
  border: 0;
  background: #e1edf7;
  color: #254f80;
  font-size: 20px;
  line-height: 1.5;
}
.page-id-180 .mw_wp_form table { margin-top: 0; font-size: 16px; line-height: 1.6; }
.page-id-180 .mw_wp_form :where(th,td) {
  box-sizing: border-box;
  padding: 12px;
  border: 0;
  border-top: 1px solid #b8b8b8;
  background: transparent;
  text-align: left;
}
.page-id-180 .mw_wp_form th { width: 30%; font-weight: 700; }
.page-id-180 .mw_wp_form td { width: 70%; }
.page-id-180 .mw_wp_form :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]),select,textarea) {
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
}
.page-id-180 .mw_wp_form .field-medium { width: min(100%,400px); }
.page-id-180 .mw_wp_form textarea { min-height: 120px; height: 120px; }
.page-id-180 .mw_wp_form :where(input[type=submit],button) {
  min-width: 168px;
  padding: 17px 24px;
  border: 0;
  background: #0061a8;
  color: #fff;
}
.page-id-180 .mw_wp_form .required { color: #fff; background: #c73525; }
.page-id-180 .mw_wp_form :where(.mwform-radio-field,.mwform-checkbox-field) label {
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.page-id-180 .mw_wp_form :where(input[type=radio],input[type=checkbox]) { width: auto; margin: 0; }
@media (max-width: 900px) {
  .ms-header-top { flex-wrap: wrap; }
  .ms-header-actions .ms-social { display: none; }
  .ms-hero-copy { width: 86%; }
  .ms-feature-copy { padding: 32px; }
}
@media (max-width: 600px) {
  .ms-feature-photo img { min-height: 0; height: auto; }
  .ms-section { padding: 44px 20px; }
  .ms-feature { gap: 0 !important; }
  .ms-feature-copy .wp-block-buttons { justify-content: center; }
  .ms-content { padding: 32px 20px 56px; }
  .ms-content table { font-size: 14px; }
  .ms-content :where(td,th) { padding: 12px 8px; }
  .mw_wp_form :where(table,tbody,tr,th,td) { display: block; width: 100%; box-sizing: border-box; }
  .ms-page-heading { min-height: 160px; padding: 24px 20px; }
  .ms-page-heading h1 { font-size: 24px; line-height: 1.5; }
  .page-id-2898 .ms-breadcrumb { margin-bottom: 32px; }
  .page-id-2898 .mw_wp_form :is(th,td) { width: 100%; }
  .page-id-2898 .mw_wp_form td { padding-top: 8px; border-top: 0; }
  .page-id-180 .ms-breadcrumb { margin-bottom: 32px; }
  .page-id-180 .wp-block-post-content > h2 { font-size: 26px; }
  .page-id-180 .mw_wp_form :is(th,td) { width: 100%; }
  .page-id-180 .mw_wp_form td { padding-top: 8px; border-top: 0; }
  .ms-news-page-heading { min-height: 160px; padding: 24px 20px; }
  .ms-news-page-heading h1 { font-size: 24px; line-height: 1.5; }
  .ms-news-breadcrumb { margin-bottom: 28px; }
  .ms-news-layout { flex-direction: column; gap: 40px; }
  .ms-news-layout > .wp-block-column { flex-basis: auto !important; width: 100%; }
  .ms-news-list-item { align-items: flex-start; gap: 16px; }
  .ms-news-list-image,
  .ms-news-list-item:not(:has(.ms-news-list-image))::before { flex-basis: 34%; width: 34%; }
  .ms-news-list-item:not(:has(.ms-news-list-image))::before { padding: 12px; font-size: 12px; }
  .ms-news-index .wp-block-post-title { font-size: 16px; }
  .ms-news-index .wp-block-post-excerpt { display: none; }
  .ms-news-sidebar { width: 100%; }
  .ms-article-breadcrumb { margin-bottom: 28px; }
  .ms-article-title { font-size: 24px; }
  .ms-article-layout { flex-direction: column; }
  .ms-post-navigation { flex-direction: row; align-items: center; gap: 10px; }
  .ms-post-navigation > .wp-block-post-navigation-link { min-height: 48px; padding: 8px 16px; }
  .ms-post-navigation a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* SNS introduction: production proportions, shared with the block editor. */
.ms-sns-feature.ms-section {
  background: #e1eef7 !important;
  padding: 115.2px max(16px, calc((100% - 1168px) / 2));
}
.ms-sns-feature > .wp-block-columns {
  max-width: 1168px;
  gap: 60px;
  margin: 0 auto;
  align-items: center !important;
}
.ms-sns-feature > .wp-block-columns > .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.ms-sns-feature .wp-block-column > * { margin-block: 0; }
.ms-sns-feature .ms-section-title {
  color: #0061a8;
  font-size: 50px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
}
.ms-sns-feature p { font-size: 16px; line-height: 2; color: #333; }
.ms-sns-feature .wp-block-image {
  box-sizing: border-box;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(1,129,202,.15);
}
.ms-sns-feature .wp-block-image img { display: block; width: 100%; height: auto; }
.ms-sns-feature .wp-block-button__link {
  position: relative;
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  padding: 21.6px 30px;
  background: #0061a8;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  border-radius: 54px;
}
.ms-sns-feature .wp-block-button__link::after {
  content: "";
  position: absolute;
  right: 27px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 781px) {
  .ms-sns-feature.ms-section { padding: 48px 24px; }
  .ms-sns-feature > .wp-block-columns { gap: 32px; }
  .ms-sns-feature .ms-section-title { font-size: 32px; }
}

/* Profile introduction: image overlap and gradient proportions from production. */
.ms-profile-feature {
  position: relative;
  isolation: isolate;
  padding: 115.2px 16px;
  margin-bottom: 60px;
  background: transparent !important;
}
.ms-profile-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 80%;
  background: linear-gradient(90deg, #0061a8 40%, #1f3a6d 100%);
}
.ms-profile-feature .ms-feature {
  position: relative;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 40px;
  max-width: none;
}
.ms-profile-feature .ms-feature > .wp-block-column { flex-basis: 50%; }
.ms-profile-feature .ms-feature > .wp-block-column:last-child { position: relative; }
.ms-profile-feature .ms-feature > .wp-block-column:first-child {
  display: flex;
  align-items: center;
}
.ms-profile-feature .ms-feature-copy {
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  padding: 0;
  margin: 0;
}
.ms-profile-feature .ms-section-title {
  align-items: flex-start;
  color: #fff;
  font-size: 28.8px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.ms-profile-feature .ms-section-title small {
  color: #67d0f7;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .1em;
}
.ms-profile-feature .ms-feature-copy h3 {
  color: #fff;
  font-size: clamp(35.2px, 3vw, 70.4px);
  line-height: 1.4;
  white-space: nowrap;
  margin: 0 0 .5em;
}
.ms-profile-feature .ms-feature-copy p {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 2em;
}
.ms-profile-feature .ms-feature-photo {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 1000 / 667;
  margin: 0;
  margin-left: auto;
}
.ms-profile-feature .ms-feature-photo img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}
.ms-profile-feature .wp-block-button__link {
  position: relative;
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  padding: 21.6px 30px;
  color: #0061a8 !important;
  background: #fff !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  border-radius: 54px;
}
.ms-profile-feature .wp-block-button__link::after {
  content: "";
  position: absolute;
  right: 27px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 781px) {
  .ms-profile-feature { padding: 48px 24px; margin-bottom: 0; background: linear-gradient(90deg,#0061a8,#1f3a6d) !important; }
  .ms-profile-feature::before { display: none; }
  .ms-profile-feature .ms-feature { flex-direction: column; gap: 32px !important; }
  .ms-profile-feature .ms-feature > .wp-block-column:first-child { order: 2; }
  .ms-profile-feature .ms-feature-copy h3 { font-size: 32px; white-space: normal; }
}

/* Top page sections use their production widths and vertical rhythm. */
.ms-mayor-section.ms-section {
  padding: 50px max(16px, calc((100% - 1168px) / 2));
  background: #0061a8 !important;
}
.ms-mayor-section > .ms-video { width: 100%; max-width: 1168px; }

.ms-news-section.ms-section {
  padding: 115.2px max(16px, calc((100% - 960px) / 2));
}
.ms-news-section > .wp-block-columns {
  width: 100%;
  max-width: 960px;
  min-height: 308.6px;
  gap: 30px;
  margin: 0 auto;
}
.ms-news-section .ms-section-title { margin-bottom: 28px; }
.ms-news-section .ms-news .wp-block-post {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  align-items: center;
  min-height: 77px;
  box-sizing: border-box;
  padding: 14px 0;
}
.ms-news-section .ms-news .wp-block-post-title { margin: 0; font-size: 16px; }
.ms-news-section .ms-news .wp-block-post-date { font-size: 13px; }

.ms-newsletter-section.ms-section { padding: 30px max(16px, calc((100% - 960px) / 2)); }
.ms-newsletter-section.ms-newsletter-footer { padding-top: 50px; padding-bottom: 50px; }
.ms-newsletter-section .ms-newsletter {
  width: 100%;
  max-width: 960px;
  gap: 14px;
  margin: 0 auto;
}
.ms-newsletter-section .ms-newsletter a,
.ms-sns-feature .wp-block-image a { display: block; line-height: 0; }

.ms-vision-section.ms-section {
	box-sizing: border-box;
	height: 1511.6px;
  padding: 60px max(16px, calc((100% - 1168px) / 2));
  margin-bottom: 60px;
  background: #e1eef7;
}
.ms-vision-section > * { width: 100%; max-width: 1168px; }
.ms-vision-section > .ms-section-title,
.ms-vision-section > h3,
.ms-vision-section > p { text-align: center; }
.ms-vision-section > h3 {
  font-size: 28px;
  line-height: 1.4;
}
.ms-vision-section > .wp-block-buttons { justify-content: center; }
.ms-vision-section > .ms-section-title,
.ms-achievements-feature .ms-section-title {
  color: #1f3a6d;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.5;
}
.ms-vision-section > .ms-section-title small,
.ms-achievements-feature .ms-section-title small {
  display: block;
  margin-top: 0;
  color: #67d0f7;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
}
.ms-achievements-feature .ms-section-title { text-align: left; }
.ms-vision-section .ms-video { margin: 30px 0; }
.ms-vision-section .ms-principles { gap: 5%; }
.ms-vision-section .ms-principles > .wp-block-column {
  flex-basis: 30%;
  padding: 30px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}
.ms-vision-section .ms-principles .wp-block-image { width: 179px; max-width: 100%; }

.ms-achievements-feature {
  position: relative;
  box-sizing: border-box;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 40px;
	min-height: 0;
  padding: 115.2px 16px;
  margin: 0 0 60px;
  isolation: isolate;
}
.ms-achievements-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 80%;
  background: linear-gradient(90deg,#eaeef2,rgba(234,238,242,.5) 20%);
}
.ms-achievements-feature > .wp-block-column { flex-basis: 50%; min-width: 0; }
.ms-achievements-feature > .wp-block-column:first-child { position: relative; }
.ms-achievements-feature > .wp-block-column:last-child { display: flex; align-items: center; }
.ms-achievements-feature .ms-feature-copy {
  width: 100%;
  max-width: 600px;
  padding: 0;
  margin-left: auto;
}
.ms-achievements-feature .ms-feature-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 667;
  margin-right: auto;
  max-width: 800px;
}
.ms-achievements-feature .ms-feature-photo img { width: 100%; height: auto; min-height: 0; object-fit: contain; }
.ms-achievements-feature .ms-feature-copy p { margin-bottom: 16px; }
.ms-achievements-feature .ms-feature-copy > p:has(> a[href*="#r"]) {
  margin: 0 0 14px;
}
.ms-achievements-feature .ms-feature-copy > p > a[href*="#r"] {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  padding: 14px 54px 14px 24px;
  border: 2px solid #0069ad;
  border-radius: 5px;
  color: #0069ad;
  background: transparent;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.ms-achievements-feature .ms-feature-copy > p > a[href*="#r"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 12px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.ms-achievements-feature .ms-feature-copy > p > a[href*="#r"]:hover,
.ms-achievements-feature .ms-feature-copy > p > a[href*="#r"]:focus-visible {
  color: #fff;
  background: #0069ad;
}

.ms-support-section.ms-section {
  padding: 115.2px 16px;
  background: transparent !important;
}
.ms-support-section > .wp-block-columns {
  width: 100%;
  max-width: 1393px;
  gap: 30px;
  margin: 0 auto;
}
.ms-support-section .ms-support-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  height: 294px;
  min-height: 294px;
  overflow: hidden;
  padding: 35px 40px;
  color: #fff;
  background: #1f3a6d;
  text-align: center;
}
.ms-support-section .ms-support-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,97,168,.92),rgba(31,58,109,.72));
}
.ms-support-section .ms-support-card .wp-block-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0;
}
.ms-support-section .ms-support-card img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.ms-support-section .ms-support-card h3 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.ms-support-section .ms-support-card h3 small {
  display: block;
  color: #67d0f7;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
.ms-support-section .ms-support-card p { margin: 0 0 20px; }
.ms-support-section .ms-support-card .wp-block-buttons { justify-content: center; }
.ms-support-section .ms-support-card .wp-block-button__link { background: #fff; color: #0061a8; }

.ms-footer { box-sizing: border-box; padding: 80px 24px 0; background: #eaeef2; border: 0; }
.ms-footer > .wp-block-group { max-width: 627px; }
.ms-footer > .wp-block-group {
  display: grid;
  grid-template-columns: 252px minmax(0,1fr);
  column-gap: 40px;
  align-items: start;
}
.ms-footer .ms-footer-title { grid-column: 1; grid-row: 1 / span 2; margin: 0; align-self: center; }
.ms-footer .ms-footer-title { line-height: 1.35; }
.ms-footer .ms-footer-address { margin-left: 1em; }
.ms-footer > .wp-block-group > p:nth-child(2) { grid-column: 2; grid-row: 1; margin: 0; font-size: 14px; line-height: 1.6; white-space: nowrap; }
.ms-footer > .wp-block-group > .ms-social { grid-column: 2; grid-row: 2; margin: 12px 0 0; }
.ms-footer .ms-footer-menu {
  grid-column: 1 / -1;
  grid-row: 3;
  position: relative;
  left: 50%;
  width: min(1368px, calc(100vw - 57px));
  max-width: none;
  margin: 20px 0 20px;
  transform: translateX(-50%);
}
.ms-footer .ms-footer-menu .wp-block-navigation__container { row-gap: 4px; }
.ms-footer > .wp-block-group > p:last-child {
  grid-column: 1 / -1;
  grid-row: 4;
  box-sizing: border-box;
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  height: 106.8px;
  margin: 0;
  padding: 42px 24px;
  color: #fff;
  background: #1f3a6d;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 781px) {
  .ms-mayor-section.ms-section,
  .ms-news-section.ms-section,
  .ms-newsletter-section.ms-section,
  .ms-vision-section.ms-section,
  .ms-support-section.ms-section { padding: 44px 20px; }
  .ms-news-section > .wp-block-columns { min-height: 0; }
  .ms-news-section .ms-news .wp-block-post { grid-template-columns: 1fr; }
  .ms-vision-section.ms-section { height: auto; }
  .ms-vision-section > h3 { font-size: 24px; }
  .ms-vision-section .ms-principles { row-gap: 24px; }
	.ms-achievements-feature { flex-direction: column; min-height: 0; padding: 48px 20px; }
  .ms-achievements-feature::before { width: 100%; }
  .ms-support-section .ms-support-card { height: auto; min-height: 360px; }
  .ms-footer { padding-top: 48px; }
  .ms-footer > .wp-block-group { display: block; }
  .ms-footer .ms-footer-title { text-align: center; }
  .ms-footer > .wp-block-group > p:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
  .ms-footer .ms-footer-address { display: block; margin-left: 0; }
  .ms-footer .ms-footer-address + br { display: none; }
  .ms-footer .ms-footer-title,
  .ms-footer > .wp-block-group > p:nth-child(2),
  .ms-footer > .wp-block-group > .ms-social { margin-bottom: 20px; }
  .ms-footer > .wp-block-group > p:last-child { height: auto; padding: 24px; }
}

/* Header nav collapses to a hamburger before the menu items wrap onto a second line. */
@media (max-width: 820px) {
  header.wp-block-template-part { position: relative; }
  .ms-header-top {
    box-sizing: border-box;
    min-height: 58px;
    padding: 7px 66px 7px 12px;
    align-content: flex-start;
  }
  .ms-logo { width: 205px; height: 44px; }
  .ms-header-actions {
    display: none !important;
  }
  .ms-navigation {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 58px;
    height: 58px;
    padding: 0;
    background: #0069ad !important;
  }
  .ms-navigation .wp-block-navigation {
    width: 100%;
    height: 100%;
    min-height: 0;
    justify-content: center;
  }
  /* Override core navigation block's fixed 600px breakpoint so the hamburger keeps showing up to 820px. */
  .ms-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }
  .ms-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .ms-navigation .wp-block-navigation__responsive-container-open {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
  }
  .ms-navigation .wp-block-navigation__responsive-container-open svg { display: none; }
  .ms-navigation .wp-block-navigation__responsive-container-open::before {
    content: "";
    display: block;
    width: 32px;
    height: 22px;
    background: linear-gradient(
      to bottom,
      #fff 0 2px,
      transparent 2px 10px,
      #fff 10px 12px,
      transparent 12px 20px,
      #fff 20px 22px
    );
  }
  .ms-navigation .wp-block-navigation__responsive-container.is-menu-open {
    padding: 46px 17px 40px;
    color: #223b58;
    background: white;
  }
  .ms-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 18px;
  }
  .ms-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: stretch;
    gap: 0;
  }
  .ms-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    padding: 16px 9px;
    border-bottom: 1px solid #ddd;
    font-size: 17px;
    text-align: left;
  }
  .ms-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    justify-content: flex-start;
    width: 100%;
    color: #333;
  }
  .ms-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child {
    border-bottom: 0;
  }
  .ms-navigation:has(.wp-block-navigation__responsive-container.is-menu-open) .ms-mobile-action-menu {
    position: fixed;
    z-index: 100001;
    top: 535px;
    left: 17px;
    display: block;
    width: calc(100vw - 34px);
  }
  .ms-navigation .ms-mobile-action-menu .wp-block-navigation__container {
    align-items: stretch;
    width: 100%;
    gap: 15px;
  }
  .ms-navigation .ms-mobile-action-menu .wp-block-navigation-item {
    display: flex;
    width: 100%;
    min-height: 58px;
    border-radius: 30px;
    background: #0069ad !important;
    font-size: 18px;
    font-weight: 700;
  }
  .ms-navigation .ms-mobile-action-menu .wp-block-navigation-item + .wp-block-navigation-item {
    margin-top: 15px;
  }
  .ms-navigation .ms-mobile-action-menu .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #fff !important;
    text-align: center;
  }
  .ms-navigation .ms-mobile-action-menu .wp-block-navigation-item__content::before {
    content: "";
    width: 18px;
    height: 13px;
    margin-right: 7px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background:
      linear-gradient(35deg, transparent 47%, currentColor 48% 53%, transparent 54%) left / 52% 100% no-repeat,
      linear-gradient(-35deg, transparent 47%, currentColor 48% 53%, transparent 54%) right / 52% 100% no-repeat;
  }
}

/* Mobile hero follows the production split layout: portrait, blue title panel, video. */
@media (max-width: 600px) {
  .ms-hero {
    display: block;
    min-height: 0;
    padding-top: 79vw;
    background: #0069ad;
  }
  .ms-hero > .ms-hero-photo {
    z-index: 0;
    inset: 0 0 auto;
    height: 79vw;
  }
  .ms-hero-photo img { object-position: 57% center; }
  .ms-hero-copy {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    padding: 26px 18px 54px;
    color: #fff;
    background: #0069ad;
    text-align: center;
  }
  .ms-hero-copy .ms-catch {
    display: block;
    margin-bottom: 8px;
    background: transparent;
    font-size: 18px;
    line-height: 1.45;
  }
  .ms-hero-copy .ms-role { font-size: 20px; line-height: 1.4; }
  .ms-hero-copy h1 { font-size: 48px; line-height: 1.25; letter-spacing: .08em; }
  .ms-hero-copy .ms-kana { font-size: 18px; line-height: 1.4; letter-spacing: .3em; }
  .ms-mayor-section.ms-section { padding: 16px 16px 48px; }
}
