/*
 * モニター応募フォーム原稿を基準に、LP と共有するヘッダー・フッター。
 * 運用テーマの style.css には依存しない。
 */

:root {
  --mpc-form-shell-header-height: 97px;
  --mpc-form-shell-navy: #132265;
  --mpc-form-shell-blue: #305a92;
  --mpc-form-shell-ink: #292929;
  --mpc-form-shell-white: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--mpc-form-shell-header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.mpc-form-shell-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--mpc-form-shell-ink);
  background: var(--mpc-form-shell-white);
  font-family: neue-haas-grotesk-display, source-han-sans-japanese, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: .1rem;
}

body.mpc-form-shell-body.mpc-site-menu-open {
  overflow: hidden;
}

.mpc-form-shell-body *,
.mpc-form-shell-body *::before,
.mpc-form-shell-body *::after {
  box-sizing: border-box;
}

.mpc-form-shell-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mpc-form-shell-body a {
  color: inherit;
  text-decoration: none;
}

.mpc-form-shell-body button,
.mpc-form-shell-body input,
.mpc-form-shell-body textarea,
.mpc-form-shell-body select {
  font: inherit;
}

.mpc-form-shell-body > main {
  flex: 1 0 auto;
}

.mpc-form-skip-link {
  position: fixed;
  z-index: 1200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff !important;
  background: var(--mpc-form-shell-navy);
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.mpc-form-skip-link:focus {
  transform: translateY(0);
}

.mpc-form-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--mpc-form-shell-header-height);
  flex: 0 0 var(--mpc-form-shell-header-height);
  margin: 0;
  background: #fff;
}

.mpc-form-header__inner {
  width: min(100%, 1600px);
  height: 96px;
  margin: 0 auto;
  padding: 0 30px 0 51px;
  display: flex;
  align-items: center;
}

.mpc-form-header__logo {
  width: 250px;
  min-width: 250px;
  height: 60px;
  display: block;
  transition: opacity .2s ease;
}

.mpc-form-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center left;
}

.mpc-form-header__logo:hover,
.mpc-form-header__logo:focus-visible,
.mpc-form-header__contact:hover,
.mpc-form-header__contact:focus-visible {
  opacity: .72;
}

.mpc-form-header__nav {
  min-width: 0;
  margin-left: auto;
}

.mpc-form-header__nav-list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 35px;
  list-style: none;
}

.mpc-form-header__nav-list a {
  position: relative;
  display: block;
  color: var(--mpc-form-shell-ink);
  font-family: Arial, source-han-sans-japanese, sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  white-space: nowrap;
}

.mpc-form-header__nav-list li:nth-child(2) a {
  letter-spacing: -.5px;
}

.mpc-form-header__nav-list li:nth-child(4) a {
  letter-spacing: -.25px;
}

.mpc-form-header__nav-list li:nth-child(5) a {
  letter-spacing: -.8px;
}

.mpc-form-header__nav-list a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: '';
  background: var(--mpc-form-shell-blue);
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .18s ease, transform .18s ease;
}

.mpc-form-header__nav-list a:hover::after,
.mpc-form-header__nav-list a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.mpc-form-header__contact {
  width: 50px;
  min-width: 50px;
  height: 50px;
  margin-left: 36px;
  display: block;
  transition: opacity .2s ease;
}

.mpc-form-header__contact img {
  width: 100%;
  height: 100%;
}

.mpc-form-menu-toggle {
  width: 60px;
  height: 69px;
  margin: 0;
  padding: 22px 15px;
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mpc-form-menu-toggle span {
  position: relative;
  width: 30px;
  height: 2px;
  margin: 0;
  display: block;
  background: var(--mpc-form-shell-blue);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}

.mpc-form-menu-toggle span:nth-child(2) {
  margin: 5px 0;
}

.mpc-form-menu-toggle.is-open span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.mpc-form-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mpc-form-menu-toggle.is-open span:nth-child(3) {
  top: -7px;
  transform: rotate(-45deg);
}

.mpc-form-header a:focus-visible,
.mpc-form-header button:focus-visible,
.mpc-form-footer a:focus-visible {
  outline: 2px solid #078bc4;
  outline-offset: 3px;
}

.mpc-form-footer {
  width: 100%;
  height: 246px;
  min-height: 246px;
  flex: 0 0 246px;
  margin: 0;
  color: #fff;
  background: var(--mpc-form-shell-navy);
}

.mpc-form-footer__inner {
  position: relative;
  width: min(calc(100% - 40px), 1200px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.mpc-form-footer__company {
  padding-top: 27px;
}

.mpc-form-footer__logo {
  width: 250px;
  height: 60px;
  display: block;
  transition: opacity .2s ease;
}

.mpc-form-footer__logo img {
  width: 100%;
  height: 100%;
}

.mpc-form-footer__logo:hover,
.mpc-form-footer__logo:focus-visible,
.mpc-form-footer__links a:hover,
.mpc-form-footer__links a:focus-visible,
.mpc-form-footer__utility a:hover,
.mpc-form-footer__utility a:focus-visible {
  opacity: .72;
}

.mpc-form-footer__name {
  margin: 22px 0 7px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
}

.mpc-form-footer__address {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 24px;
}

.mpc-form-footer__address span {
  display: block;
}

.mpc-form-footer__address a {
  color: #fff;
}

.mpc-form-footer__navigation {
  width: 480px;
  padding-top: 47px;
  font-family: Arial, source-han-sans-japanese, sans-serif;
  text-align: right;
}

.mpc-form-footer__links,
.mpc-form-footer__utility {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
}

.mpc-form-footer__links {
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.mpc-form-footer__links--first {
  gap: 32px;
}

.mpc-form-footer__links--second {
  margin-top: 13px;
  gap: 31px;
}

.mpc-form-footer__links--second li:nth-child(1) a {
  letter-spacing: -.35px;
}

.mpc-form-footer__links--first li:nth-child(2) a {
  letter-spacing: -.3px;
}

.mpc-form-footer__links--second li:nth-child(2) a {
  letter-spacing: -.2px;
}

.mpc-form-footer__links--second li:nth-child(3) a {
  letter-spacing: -1.2px;
}

.mpc-form-footer__links a,
.mpc-form-footer__utility a {
  display: inline-block;
  color: #fff;
  transition: opacity .2s ease;
  white-space: nowrap;
}

.mpc-form-footer__utility {
  margin-top: 51px;
  gap: 26px;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.4;
}

.mpc-form-footer__external {
  position: relative;
  padding-right: 26px;
}

.mpc-form-footer__external::after {
  position: absolute;
  top: .15em;
  right: 0;
  width: 15px;
  height: 15px;
  content: '';
  background: url('../../../images/icon_link_wh.svg') center / contain no-repeat;
}

.mpc-form-footer__copyright {
  margin: 14px 0 0;
  color: #fff;
  font-family: neue-haas-grotesk-display, source-han-sans-japanese, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  :root {
    --mpc-form-shell-header-height: 70px;
  }

  .mpc-form-header__inner {
    height: 69px;
    padding: 0 0 0 16px;
  }

  .mpc-form-header__logo {
    width: 183px;
    min-width: 183px;
    height: 44px;
  }

  .mpc-form-header__nav {
    position: fixed;
    z-index: 980;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 70px);
    margin: 0;
    padding: 32px 24px;
    overflow-y: auto;
    background: rgba(255, 255, 255, .96);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition: opacity .25s ease, transform .3s ease;
  }

  .mpc-form-header__nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mpc-form-header__nav-list {
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }

  .mpc-form-header__nav-list li {
    padding: 9px 0;
  }

  .mpc-form-header__nav-list a {
    font-size: 18px;
    text-align: center;
  }

  .mpc-form-header__contact {
    width: 50px;
    min-width: 50px;
    height: 50px;
    margin: 0 0 0 auto;
  }

  .mpc-form-menu-toggle {
    display: block;
  }
}

@media (max-width: 1050px) {
  .mpc-form-footer {
    height: auto;
    min-height: 0;
    flex-basis: auto;
  }

  .mpc-form-footer__inner {
    width: min(calc(100% - 48px), 680px);
    height: auto;
    padding: 36px 0 32px;
    flex-direction: column;
    align-items: center;
  }

  .mpc-form-footer__company {
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .mpc-form-footer__logo {
    margin: 0 auto;
  }

  .mpc-form-footer__navigation {
    width: 100%;
    padding-top: 30px;
    text-align: center;
  }

  .mpc-form-footer__links,
  .mpc-form-footer__utility {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mpc-form-footer__links--first,
  .mpc-form-footer__links--second {
    gap: 10px 28px;
  }

  .mpc-form-footer__utility {
    margin-top: 28px;
    gap: 10px 24px;
  }

  .mpc-form-footer__copyright {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .mpc-form-header__contact {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .mpc-form-footer__inner {
    width: min(calc(100% - 32px), 520px);
  }

  .mpc-form-footer__logo {
    width: 210px;
    height: auto;
  }

  .mpc-form-footer__name {
    font-size: 14px;
  }

  .mpc-form-footer__address,
  .mpc-form-footer__utility,
  .mpc-form-footer__copyright {
    font-size: 12px;
  }

  .mpc-form-footer__links {
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
  }

  .mpc-form-footer__links--second {
    margin-top: 10px;
  }

  .mpc-form-footer__utility {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mpc-form-skip-link,
  .mpc-form-header__nav,
  .mpc-form-menu-toggle span {
    transition: none;
  }
}
