.hero--subpage {
  --line-gray: #ededed;
  --soft-gray: #707070;
  --steel-blue: #3c8ac4;
  --design-width: 1440px;
  --page-max: 1340px;
  --side: 50px;
  --sans: "A-OTF Gothic MB101 Pr6", "a-otf-gothic-mb101-pr6", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --latin: "Inter", sans-serif;
}

body {
  --line-gray: #ededed;
  --soft-gray: #707070;
  --steel-blue: #3c8ac4;
  --off-white: #f1f1f3;
  --muted-blue: #496f8c;
  --light-gray: #eee;
  --recruit-blue: #2d96fe;
  --design-width: 1440px;
  --page-max: 1340px;
  --side: 50px;
  --sans: "A-OTF Gothic MB101 Pr6", "a-otf-gothic-mb101-pr6", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --latin: "Inter", sans-serif;
}

.display-title {
  margin: 0;
  color: var(--muted-blue);
  font-family: var(--latin), var(--sans);
  font-synthesis: none;
  font-size: clamp(52px, 5.6vw, 80px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: 0;
}

.brand__description {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  width: max-content;
  max-width: min(420px, calc(100vw - var(--side) * 2));
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero--subpage .hero__latin {
  color: rgba(255, 255, 255, .86);
  font-family: var(--latin), var(--sans);
  font-synthesis: none;
  letter-spacing: .08em;
}

.faq-row span,
.faq-answer span,
.conversion-card div p {
  font-family: var(--latin), var(--sans);
  font-synthesis: none;
}

.hero--subpage .hero__title {
  letter-spacing: 0;
}

.wf-loading .hero--subpage .hero__title,
.wf-loading .content-section__title {
  opacity: 1;
}

.page--subpage {
  padding-top: 60px;
}

.page-summary {
  max-width: 790px;
  margin: 0 0 74px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
}

.page-summary p {
  margin: 0;
}

.message-layout {
  display: grid;
  grid-template-columns: var(--subpage-sidebar) minmax(0, 1fr);
  gap: var(--subpage-gap);
  align-items: start;
  margin-bottom: 200px;
}

.message-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
  grid-template-rows: auto auto;
  column-gap: clamp(32px, 4vw, 56px);
  min-width: 0;
  padding-top: 46px;
  border-top: 2px solid var(--line-gray);
}

.message-aside {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

.message-portrait {
  margin: 0;
  width: 100%;
  height: 581px;
  overflow: hidden;
  background: var(--line-gray);
}

.message-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-copy {
  display: contents;
}

.message-heading {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 480px);
  align-self: end;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.53;
  text-decoration: underline;
  text-underline-offset: .12em;
  text-decoration-thickness: .055em;
}

.message-text {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 900px;
  margin-top: 96px;
}

.message-text p {
  margin: 0 0 2.55em;
  font-size: 22px;
  font-weight: 600;
  line-height: 2;
}

.message-profile {
  margin-top: 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

.message-profile p {
  margin: 0 0 .35em;
}

.message-profile p:last-child {
  margin-bottom: 0;
}

.message-profile__name {
  font-size: 14px;
  font-weight: 600;
}

.message-signature {
  display: grid;
  justify-items: end;
  gap: 12px;
  margin-top: 70px;
}

.message-signature p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.message-signature img {
  width: 250px;
  height: auto;
}

.info-table {
  border-top: 1px solid var(--line-gray);
}

.info-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding: 37px 0;
  border-bottom: 1px solid var(--line-gray);
}

.info-row dt,
.info-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
}

.info-row dt {
  font-weight: 500;
}

.info-row dd {
  font-weight: 400;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-section {
  padding: 72px 0 0;
}

.content-section__title {
  margin: 0 0 46px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.3;
}

.about-page {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  grid-template-columns: 190px 1fr;
  gap: 38px;
  width: 100%;
  padding: 67px max(var(--side), calc((100vw - var(--page-max)) / 2 + 155px));
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.about-page p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.about-page__label {
  color: var(--muted-blue);
  font-family: var(--latin);
  font-size: 16px;
  font-weight: 700;
}

.about-page p:not(.about-page__label) {
  font-weight: 500;
}

.section-heading__ja {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.section-heading__ja span {
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--muted-blue);
}

.faq {
  display: grid;
  grid-template-columns: 300px minmax(0, 815px);
  gap: 55px;
  width: min(1170px, calc(100% - var(--side) * 2));
  margin: 0 auto;
  padding: 120px 0;
}

.faq .section-heading__ja {
  gap: 14px;
  margin: 0;
  font-size: 14px;
}

.faq__intro .display-title {
  margin: 64px 0 18px;
  font-size: 56px;
  line-height: .9;
}

.faq__intro p:last-child {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.faq__list {
  border-top: 1px solid #ddd;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-row {
  display: grid;
  grid-template-columns: 30px 1fr 25px;
  gap: 0;
  align-items: center;
  width: 100%;
  min-height: 49px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: color 240ms ease;
}

.faq-row span {
  color: var(--gray);
  font-family: var(--latin);
  font-size: 18px;
}

.faq-row i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  background: var(--light-gray);
  font-style: normal;
  line-height: 1;
}

.faq-row i img {
  display: block;
  width: 11px;
  height: 11px;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
}

.faq-row[aria-expanded="true"] i img {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  transition:
    grid-template-rows 420ms cubic-bezier(.22, 1, .36, 1),
    opacity 260ms ease,
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 420ms;
}

.faq-answer > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  min-height: 0;
  overflow: hidden;
}

.faq-answer span {
  padding-top: 4px;
  color: var(--muted-blue);
  font-family: var(--latin);
  font-size: 18px;
  line-height: 1.8;
}

.faq-answer p {
  margin: 0;
  padding: 6px 56px 20px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
}

.faq-answer a {
  color: var(--muted-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.conversion {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  min-height: 500px;
  padding: 200px max(var(--side), calc((100vw - 1240px) / 2));
  color: var(--white);
  overflow: hidden;
}

.conversion__bg {
  position: absolute;
  inset: 0;
  background-color: #496f8c;
  background-image: linear-gradient(218deg, rgba(73, 111, 140, .96) 50%, rgba(47, 86, 111, 1) 100%);
}

.conversion__bg::before {
  position: absolute;
  inset: 0;
  background-color: #496f8c;
  background-image: url("../images/shared-conversion-background.jpg");
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  content: "";
  opacity: .1;
}

.conversion-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0;
  align-items: center;
  min-height: 160px;
  padding: 34px 40px;
  border-radius: 4px;
  background: #305870;
}

.conversion-card--entry {
  background: var(--nav-active);
}

.conversion-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.conversion-card div p {
  margin: 14px 0 0;
  font-family: var(--latin);
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.conversion-card > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.conversion-card__arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 20px;
}

@media (max-width: 1024px) {
  .body-wrap,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .message-content {
    grid-template-columns: 1fr;
  }

  .message-portrait {
    grid-column: auto;
    grid-row: auto;
    width: min(100%, 400px);
    height: auto;
    aspect-ratio: 400 / 581;
    margin-left: auto;
  }

  .message-copy {
    padding-top: 40px;
  }

  .message-signature {
    position: static;
    width: auto;
    min-width: 0;
    margin-top: 70px;
  }

}

@media (max-width: 640px) {
  .page-summary {
    font-size: 15px;
    line-height: 1.8;
  }

  .message-heading {
    margin-bottom: 42px;
  }

  .message-text p {
    font-size: 16px;
    line-height: 1.8;
  }

  .message-signature img {
    width: 190px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }

  .info-row dt,
  .info-row dd {
    font-size: 15px;
  }

}

@media (max-width: 820px) {
  body {
    --side: clamp(20px, 6vw, 28px);
    overscroll-behavior-y: none;
  }

  html {
    overscroll-behavior-y: none;
  }

  .u-sp-break {
    display: initial;
  }

  .display-title {
    font-size: clamp(48px, 15vw, 64px);
  }

  .site-header--hero {
    top: calc(18px + env(safe-area-inset-top));
    right: 22px;
    left: 22px;
    align-items: flex-start;
    gap: 12px;
    width: auto;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 52px);
  }

  .brand__description {
    display: none;
  }

  .brand img {
    width: 168px;
    height: auto;
  }

  .brand span:not(.brand__description) {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-pill {
    display: none;
  }

  .menu-button {
    width: var(--hamburger-hit-area);
    height: 44px;
    flex-basis: var(--hamburger-hit-area);
  }

  .page--subpage {
    padding-top: 42px;
  }

  .page-summary {
    max-width: 100%;
    margin-bottom: 48px;
    font-size: 17px;
    line-height: 1.95;
  }

  .body-wrap,
  .message-layout {
    display: flex;
    flex-direction: column;
  }

  .body-wrap .body,
  .body-wrap .content-layout,
  .message-content {
    order: 1;
  }

  .body-wrap .side-nav,
  .message-layout .side-nav {
    order: 2;
    margin-top: 16px;
  }

  .message-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 96px;
  }

  .message-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 36px;
  }

  .message-copy {
    display: contents;
  }

  .message-heading {
    order: 1;
    width: 100%;
    margin: 0;
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.55;
  }

  .message-aside {
    order: 2;
    width: 100%;
  }

  .message-portrait {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 400 / 581;
    margin: 0;
  }

  .message-text {
    order: 3;
    max-width: 100%;
    margin-top: 6px;
  }

  .message-text p {
    margin-bottom: 1.65em;
    font-size: 17px;
    line-height: 1.95;
  }

  .message-text br {
    display: none;
  }

  .message-profile {
    margin-top: 18px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .info-row dt {
    color: var(--muted-blue);
    font-size: 14px;
  }

  .info-row dd {
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .content-section {
    padding-top: 48px;
  }

  .content-section:first-child {
    padding-top: 0;
  }

  .content-section__title {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .block__title {
    padding-left: 0;
  }

  .block__title::before {
    display: none;
  }

  .block__text,
  .block__bullets li {
    font-size: 17px;
    line-height: 1.95;
  }

  .hero__title-sp-optional {
    display: none;
  }

  .section-heading__ja {
    font-size: 15px;
  }

  .about-page {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 38px var(--side);
  }

  .about-page p {
    line-height: 1.5;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    padding: 72px var(--side);
  }

  .faq__intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 24px;
    align-items: end;
  }

  .faq__intro .section-heading__ja {
    grid-column: 1 / -1;
  }

  .faq__intro .display-title {
    margin: 28px 0 0;
    font-size: 52px;
  }

  .faq__intro p:last-child {
    margin: 0 0 4px;
  }

  .faq-row {
    grid-template-columns: 28px 1fr 32px;
    min-height: 56px;
    padding: 8px 0;
  }

  .faq-answer p {
    padding-right: 0;
  }

  .conversion {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 12px;
    min-height: 560px;
    padding: 72px var(--side);
  }

  .conversion-card {
    grid-template-columns: 1fr 44px;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 15px;
    align-content: center;
    min-height: 156px;
    padding: 20px;
  }

  .conversion-card div {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .conversion-card div p {
    margin: 0;
    margin-left: auto;
  }

  .conversion-card > p {
    grid-column: 1;
    font-size: 13px;
    padding-right: 0;
  }

  .conversion-card--entry .conversion-card__sp-join {
    display: none;
  }

  .conversion-card__arrow {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    width: 44px;
    height: auto;
  }
}

@media (max-width: 430px) {
  .conversion-card {
    min-height: 148px;
    padding: 16px;
  }

  .site-header--hero {
    right: 18px;
    left: 18px;
  }

  .hero--subpage .hero__copy {
    right: 18px;
    left: 18px;
  }

  .hero--subpage .hero__title {
    font-size: clamp(29px, 8vw, 34px);
  }

  .side-nav__item span:first-child {
    min-width: 0;
  }

  .message-heading {
    font-size: clamp(28px, 8.2vw, 34px);
  }

  .conversion-card > p {
    padding-right: 0;
  }

  .conversion-card div p {
    font-size: 16px;
  }

  .conversion-card__sp-join {
    display: none;
  }
}
