/* 新構成に必要な差分CSS */

.header--mcs .header__inner {
  justify-content: space-between;
}

.header--mcs .logo {
  display: block;
}

.header--mcs .logo img {
  width: 9rem;
  display: block;
}

.header--mcs .contact-btn {
  position: static;
  max-width: none;
  width: auto;
  line-height: 1;
}

.mcs-top .top__inner {
  height: auto;
  min-height: 52rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
}

.mcs-top .top__container {
  position: static;
  transform: none;
  width: 100%;
  padding: 0;
}

.mcs-top .top__ttl span {
  display: inline-block;
  max-width: 100%;
}

.mcs-top .mcs-eyebrow {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2.6rem;
}

.mcs-top .top__lead {
  max-width: 76rem;
  margin-top: 3rem;
  line-height: 1.9;
}

.mcs-top .mcs-fv-contact {
  width: auto;
  max-width: 100%;
  margin-top: 3rem;
  padding: 1.6rem 3rem;
  font-size: 1.8rem;
  line-height: 1;
  text-align: center;
  border-color: #d50a15;
}

.flow-prob .flow-ttl {
  margin-bottom: 1.6rem;
}

.mcs-external-text {
  color: #d50a15 !important;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.mcs-flow-intro {
  margin-bottom: 5rem;
  line-height: 1.8;
}

.mcs-challenge-link {
  position: relative;
  color: #333;
  display: block;
  padding-right: 3.4rem;
  line-height: 1.8;
  transition: color .2s;
}

.mcs-challenge-link:hover,
.mcs-challenge-link:focus-visible {
  color: #d50a15;
  opacity: 1;
}

.mcs-challenge-link span {
  position: absolute;
  top: 50%;
  right: .3rem;
  width: 2rem;
  height: 1rem;
  font-size: 0;
  transform: translateY(-50%);
}

.mcs-challenge-link span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2rem;
  border-top: 1px solid #d50a15;
}

.mcs-challenge-link span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: .7rem;
  height: .7rem;
  border-top: 1px solid #d50a15;
  border-right: 1px solid #d50a15;
  transform: translateY(-50%) rotate(45deg);
}

.mcs-source-diagram {
  width: 100%;
  height: auto;
  vertical-align: middle;
  font-family: 'Noto Sans JP', sans-serif;
}

.bis-measurement-flow {
  overflow: hidden;
}

.dipink-panel-title {
  margin-bottom: 1rem;
  padding: .5rem .8rem;
  background: #333;
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 400;
}

.dipink-data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: .4rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.dipink-data-table th,
.dipink-data-table td {
  padding: .8rem .5rem;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.dipink-data-table thead th {
  background: #6a8392;
  color: #fff;
  text-align: center;
}

.dipink-data-table tbody th {
  width: 30%;
  background: #ff8989;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.dipink-data-table tbody td {
  background: #f1f1f1;
  color: #666;
}

.dipink-data-table tbody td:nth-child(2) {
  text-align: center;
}

.dipink-data-table thead td {
  width: 30%;
}

.bis-measurement-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  margin-top: 1.5rem;
  text-align: left;
}

.bis-measurement-panel {
  overflow: hidden;
  border: 2px solid #999;
  border-radius: 6px;
  background: #fff;
}

.bis-measurement-panel h4 {
  padding: .6rem 1.2rem;
  background: #999;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.bis-measurement-panel__body {
  padding: 1rem 1.2rem;
  font-size: 1.4rem;
  line-height: 1.5;
}

.bis-measurement-panel__body h5 {
  margin-bottom: .4rem;
  font-size: 1.6rem;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  .bis-measurement-panels {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .bis-measurement-panel h4,
  .bis-measurement-panel__body h5 {
    font-size: 1.6rem;
  }

  .bis-measurement-panel__body {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 1159px) {
  .header--mcs .contact-btn {
    border-radius: 10px;
    padding: 1.4rem 2rem;
  }

  .mcs-top .top__inner {
    min-height: 34rem;
  }
}

@media screen and (max-width: 767px) {
  .header--restored .header-btn .contact-btn {
    max-width: 100%;
  }

  .mcs-top .mcs-eyebrow {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .mcs-top .top__inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .mcs-top .top__lead {
    margin-top: 2rem;
  }

  .mcs-top .mcs-fv-contact {
    font-size: 1.6rem;
  }
}
