.copy-phrase {
  display: inline-block;
  white-space: nowrap;
}

.home-hero {
  position: relative;
  min-height: 707px;
  height: 707px;
  color: var(--wako-blue);
  background: #eef1f6;
  isolation: isolate;
}

.home-hero__slides {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.home-hero__slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0;
}

.home-hero__slide:first-child { opacity: 1; }
.home-hero.is-playing .home-hero__slide { animation: hero-crossfade 18s infinite; }
.home-hero.is-playing .home-hero__slide:nth-child(2) { animation-delay: -12s; }
.home-hero.is-playing .home-hero__slide:nth-child(3) { animation-delay: -6s; }

@keyframes hero-crossfade {
  0%, 27% { opacity: 1; }
  33.333%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero.is-playing .home-hero__slide { animation: none; }
}

.home-hero__content {
  position: absolute;
  bottom: 70px;
  left: max(var(--page-pad), calc((100vw - var(--wide)) / 2));
  right: var(--page-pad);
  width: fit-content;
  max-width: calc(100% - 2 * var(--page-pad));
  padding: 14px 20px;
  background: rgb(255 255 255 / 88%);
}

.home-hero__english {
  margin-bottom: 3px;
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-hero__title {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 900;
  line-height: 1.35;
}

.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 667px;
}

.home-about__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 75px clamp(20px, 3vw, 50px) 75px clamp(50px, 10vw, 150px);
}

.home-about h2 {
  margin-bottom: 32px;
  color: var(--wako-blue);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.55;
}

.home-about__copy > p {
  margin-bottom: 35px;
  font-size: 13px;
  line-height: 2;
}

.home-about__button {
  position: relative;
  width: 230px;
  min-width: 0;
  min-height: 0;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.home-about__button .button-arrow {
  position: absolute;
  right: 12px;
  margin-left: 0;
}

.home-about__visual {
  min-width: 0;
}

.home-about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-services {
  --home-service-edge: max(var(--page-pad), calc((100vw - var(--wide)) / 2));

  overflow: hidden;
  padding-block: var(--section-space);
  background: var(--wako-tint);
}

.home-services__inner {
  width: min(100% - (var(--page-pad) * 2), var(--wide));
  margin-inline: auto;
}

.home-services .section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 65px;
  gap: 8px;
  text-align: center;
}

.home-services .section-heading__english {
  order: -1;
}

.home-services .section-heading__title {
  margin-bottom: 0;
}

.home-service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 450px;
  margin-bottom: 70px;
  overflow: visible;
  background: transparent;
}

.home-service-card--house .home-service-card__image {
  order: 2;
}

.home-service-card__image {
  position: relative;
  z-index: 0;
  height: 350px;
}

.home-service-card__image::before,
.home-service-card__image::after {
  position: absolute;
  z-index: -1;
  background: var(--wako-blue);
  content: "";
}

.home-service-card__image::before {
  top: 30px;
  bottom: 0;
}

.home-service-card__image::after {
  top: 100%;
  height: 30px;
}

.home-service-card--apartment .home-service-card__image::before,
.home-service-card--apartment .home-service-card__image::after {
  right: 30px;
  left: calc(-1 * var(--home-service-edge));
}

.home-service-card--apartment .home-service-card__image::after {
  border-bottom-right-radius: 10px;
}

.home-service-card--house .home-service-card__image::before,
.home-service-card--house .home-service-card__image::after {
  right: calc(-1 * var(--home-service-edge));
  left: 30px;
}

.home-service-card--house .home-service-card__image::after {
  border-bottom-left-radius: 10px;
}

.home-service-card__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.home-service-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.home-service-card--apartment .home-service-card__content {
  padding-left: 50px;
}

.home-service-card--house .home-service-card__content {
  padding-right: 50px;
}

.home-service-card h3 {
  margin: 0 0 22px;
  color: var(--wako-ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
}

.home-service-card__content > p {
  max-width: 500px;
  margin: 0 0 42px;
  color: var(--wako-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 30px;
}

.home-service-card .button {
  position: relative;
  width: 230px;
  min-width: 230px;
  min-height: 40px;
  padding: 0 34px 0 16px;
  border: 0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
  white-space: nowrap;
}

.home-service-card .button-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  margin: 0;
  transform: translateY(-50%);
}

.home-projects {
  --project-item-width: 50vw;
  --project-leading-offset: -25vw;
  --project-loop-duration: 54s;

  overflow: hidden;
  background: var(--wako-white);
}

.home-projects__marquee {
  width: max-content;
  transform: translate3d(var(--project-leading-offset), 0, 0);
}

.home-projects__track {
  display: flex;
  width: max-content;
  animation: home-projects-loop var(--project-loop-duration) linear 900ms infinite both;
  animation-play-state: paused;
  will-change: transform;
}

.home-projects.is-visible .home-projects__track {
  animation-play-state: running;
}

.home-projects__set {
  display: flex;
  flex: none;
}

.home-projects figure {
  flex: 0 0 var(--project-item-width);
  height: 440px;
  margin: 0;
  overflow: hidden;
}

.home-projects img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes home-projects-loop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.home-news {
  padding: 100px 0 130px;
}

.home-news__inner {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--wide));
  margin-inline: auto;
}

.home-news__heading {
  display: flex;
  align-items: baseline;
  margin-bottom: 20px;
  color: var(--wako-ink);
}

.home-news__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.home-news__english {
  margin: 0 0 0 14px;
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1;
}

.home-news__archive-link {
  margin-left: 25px;
  color: var(--wako-blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}

.home-news__archive-link:hover {
  color: var(--wako-blue-hover);
}

.home-news__archive-arrow {
  font-family: "Lucida Grande", sans-serif;
  font-size: .92em;
}

.news-list {
  border-top: 0;
}

.news-list--home {
  border-top: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 105px 110px 1fr;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--wako-line);
  gap: 18px;
}

.news-row time {
  color: var(--wako-blue);
  font-family: var(--font-latin);
  font-size: 15px;
  font-weight: 700;
}

.news-row__category {
  padding: 2px 14px;
  border-radius: 999px;
  color: var(--wako-white);
  background: var(--wako-blue);
  font-size: 10px;
  text-align: center;
}

.news-row__title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list--home .news-row {
  grid-template-columns: 95px 110px 31px minmax(0, 1fr);
  min-height: 38px;
  margin-bottom: 13px;
  border-bottom-color: rgb(150 150 150);
  gap: 0;
}

.news-list--home .news-row:last-child {
  margin-bottom: 0;
}

.news-list--home .news-row time {
  grid-column: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
}

.news-list--home .news-row__category {
  grid-column: 2;
  width: 110px;
  height: 20px;
  padding: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 20px;
}

.news-list--home .news-row__title {
  grid-column: 4;
  color: var(--wako-ink);
  font-size: 16px;
  letter-spacing: .05em;
  line-height: 30px;
}

.news-row:hover .news-row__title {
  color: var(--wako-blue-hover);
}

.company-message {
  display: grid;
  grid-template-columns: 450px 1fr;
  padding: 178px 0 130px;
  gap: 100px;
}

.company-message__photo {
  height: 500px;
  overflow: hidden;
}

.company-message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
}

.company-message__body {
  align-self: start;
}

.company-message .label-heading {
  font-weight: 500;
}

.company-message__body h2 {
  margin: 45px 0 28px;
  font-size: 28px;
}

.company-message__body > p:not(.label-heading, .company-message__signature) {
  line-height: 2.15;
}

.company-message__signature {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 30px;
  font-weight: 700;
  text-align: right;
}

.company-message__role {
  font-size: 16px;
}

.company-message__name {
  font-size: 20px;
}

.company-profile {
  padding-top: 25px;
  background: var(--wako-white);
}

.company-profile .section-heading,
.related-companies .section-heading,
.recruit-work .section-heading,
.recruit-requirements .section-heading {
  margin-bottom: 55px;
}

.company-profile .section-heading,
.recruit-requirements .section-heading,
.company-history .section-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 55px;
  text-align: center;
}

.company-profile .section-heading__english,
.recruit-requirements .section-heading__english,
.company-history .section-heading__english {
  order: -1;
  margin-bottom: 7px;
  line-height: 1.2;
  text-transform: uppercase;
}

.company-profile .section-heading__title,
.recruit-requirements .section-heading__title,
.company-history .section-heading__title {
  margin-bottom: 0;
}

.company-profile .section-heading {
  margin-bottom: 37px;
}

.profile-table {
  margin: 0;
  color: var(--wako-ink);
  background: var(--wako-white);
}

.profile-table > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--wako-blue);
}

.profile-table dt,
.profile-table dd {
  padding: 14px 20px;
  color: var(--wako-ink);
  background: var(--wako-white);
  line-height: 30px;
}

.profile-table dt {
  font-weight: 700;
}

.service-process__image {
  width: 100%;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  column-gap: 60px;
  row-gap: 43px;
}

.management-card {
  --management-accent: var(--wako-blue);

  min-width: 0;
}

.apartment-management {
  padding-top: 70px;
  padding-bottom: 35px;
  background: var(--wako-white);
}

.apartment-management .icon-title {
  align-items: center;
  margin-bottom: 48px;
  font-size: 40px;
  line-height: 1.45;
}

.apartment-management .icon-title img {
  width: 50px;
  height: auto;
}

.management-card--safety {
  --management-accent: #24b13a;
}

.management-card--process {
  --management-accent: #01acc3;
}

.management-card--life {
  --management-accent: #ff9031;
}

.management-card--construction {
  --management-accent: #e6030c;
}

.management-card .management-card__title {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  margin: 0 0 14px;
  border-radius: 4px;
  color: var(--wako-white);
  background: var(--management-accent);
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.management-card__title small {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1;
}

.management-card h4 {
  margin: 0 0 14px;
  color: var(--management-accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.management-card ul {
  padding-left: 1.35em;
  margin: 0;
  color: var(--wako-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
}

.management-card li + li {
  margin-top: 0;
}

.house-topic h3 {
  margin: 25px 0 14px;
  color: var(--wako-blue);
  font-size: 24px;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 450px;
  margin-bottom: 80px;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: var(--wako-white);
  box-shadow: var(--shadow-soft);
}

.feature-split--reverse img {
  order: 2;
}

.feature-split img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.feature-split > div {
  align-self: center;
  padding: 60px;
}

.feature-split h3 {
  margin: 25px 0 18px;
  color: var(--wako-blue);
  font-size: 29px;
}

.feature-split h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.apartment-features {
  background: var(--wako-white);
}

.apartment-features .icon-title {
  align-items: center;
  margin-bottom: 66px;
  font-size: 40px;
  line-height: 1.45;
}

.apartment-features .icon-title img {
  width: 50px;
  height: auto;
}

.apartment-features .feature-split {
  grid-template-columns: 520px 525px;
  column-gap: 55px;
  align-items: start;
  width: 100%;
  height: 374px;
  min-height: 0;
  margin-bottom: 121px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.apartment-features .feature-split:last-child {
  margin-bottom: 70px;
}

.apartment-features .feature-split > div {
  align-self: start;
  padding: 0;
}

.apartment-features .feature-split img {
  width: 525px;
  height: 374px;
  min-height: 0;
  border-radius: 20px;
  object-fit: cover;
}

.apartment-features .feature-split__title {
  display: flex;
  align-items: center;
  width: 520px;
  height: 38px;
  padding: 0 12px;
  margin: 0 0 20px;
  border-radius: 4px;
  color: var(--wako-white);
  background: var(--wako-blue);
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.apartment-features .feature-split__title small {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1;
}

.apartment-features .feature-split h4 {
  margin: 0 0 15px;
  color: var(--wako-blue);
  font-size: 30px;
  font-weight: 700;
  line-height: 44px;
}

.apartment-features .feature-split p {
  margin: 0;
  color: var(--wako-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
}

.pillar-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 100px;
  border: 1px solid var(--wako-blue);
  border-radius: var(--radius-small);
}

.pillar-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 95px;
  padding: 18px;
  color: var(--wako-blue);
  font-weight: 700;
  text-align: center;
}

.pillar-nav a + a {
  border-left: 1px solid var(--wako-blue);
}

.pillar-nav a:hover {
  color: var(--wako-white);
  background: var(--wako-blue);
}

.house-topic {
  padding-top: 30px;
  margin-bottom: 120px;
  scroll-margin-top: 40px;
}

.house-topic > h2 {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 48px;
  color: var(--wako-blue);
  font-size: 28px;
}

.house-topic > h2 span {
  font-family: var(--font-latin);
  font-size: 45px;
}

.house-topic__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.house-topic__grid article {
  padding: 40px;
  border: 1px solid rgb(37 53 162 / 14%);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-soft);
}

.house-topic--meeting {
  padding-top: 0;
  margin-bottom: 128px;
}

.house-pillars {
  padding-top: calc(var(--section-space) + 34px);
}

.house-topic--meeting .house-topic__heading {
  display: flex;
  align-items: center;
  margin: 0 0 81px;
  color: var(--wako-blue);
  gap: 14px;
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
}

.house-topic--meeting .house-topic__heading img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.house-topic--meeting .house-topic__heading span {
  font-family: inherit;
  font-size: inherit;
}

.house-topic--meeting .house-topic__grid--meeting {
  grid-template-areas:
    "color estimate"
    "schedule .";
  grid-template-columns: repeat(2, 520px);
  column-gap: 60px;
  row-gap: 44px;
}

.house-topic--meeting .house-topic__item {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.house-topic--meeting .house-topic__item--color {
  grid-area: color;
}

.house-topic--meeting .house-topic__item--estimate {
  grid-area: estimate;
}

.house-topic--meeting .house-topic__item--schedule {
  grid-area: schedule;
}

.house-topic--meeting .house-topic__bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  margin: 0 0 14px;
  border-radius: 4px;
  color: var(--wako-white);
  background: var(--wako-blue);
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.house-topic--meeting .house-topic__bar small {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1;
}

.house-topic--meeting .house-topic__item > p {
  margin: 0;
  color: var(--wako-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
}

.house-topic--meeting .house-topic__item > .house-topic__lead {
  margin: 0 0 14px;
  color: var(--wako-blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.house-topic--detail {
  padding-top: 0;
}

.house-topic--quality,
.house-topic--neighborhood {
  margin-bottom: 146px;
}

.house-topic--after {
  margin-bottom: 23px;
}

.house-topic--detail .house-topic__heading {
  display: flex;
  align-items: center;
  margin: 0 0 81px;
  color: var(--wako-blue);
  gap: 16px;
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
}

.house-topic--quality .house-topic__heading {
  gap: 34px;
}

.house-topic--after .house-topic__heading {
  margin-bottom: 50px;
}

.house-topic--detail .house-topic__heading img {
  flex: 0 0 auto;
}

.house-topic--detail .house-topic__heading span {
  font-family: inherit;
  font-size: inherit;
}

.house-topic--quality .house-topic__heading img {
  width: 36px;
  height: 36px;
}

.house-topic--neighborhood .house-topic__heading img {
  width: 57px;
  height: 55px;
  margin-left: -4px;
}

.house-topic--after .house-topic__heading img {
  width: 59px;
  height: 59px;
  margin-left: -5px;
}

.house-topic--detail .house-topic__grid--detail {
  grid-template-columns: repeat(2, 520px);
  column-gap: 60px;
  row-gap: 44px;
}

.house-topic--detail .house-topic__item {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.house-topic--detail .house-topic__bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  margin: 0 0 14px;
  border-radius: 4px;
  color: var(--wako-white);
  background: var(--wako-blue);
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.house-topic--detail .house-topic__bar small {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1;
}

.house-topic--detail .house-topic__item > p {
  margin: 0;
  color: var(--wako-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
}

.house-durability {
  position: relative;
  display: grid;
  min-height: 512px;
  overflow: hidden;
  background: var(--wako-white);
  place-items: start center;
}

.house-durability__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .1;
}

.house-durability__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--page-pad) * 2)), 1100px);
  padding-top: 115px;
  text-align: center;
}

.house-durability__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 384px;
  height: 61px;
  margin: 0 auto 26px;
  border-radius: 4px;
  color: var(--wako-white);
  background: var(--wako-blue);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.house-durability h2 {
  margin: 0 0 25px;
  color: var(--wako-blue);
  font-size: 30px;
  font-weight: 700;
  line-height: 45px;
}

.house-durability__description {
  margin: 0;
  color: var(--wako-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
}

.recruit-intro {
  position: relative;
  min-height: 750px;
  padding-top: 380px;
}

.recruit-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 667px;
}

.recruit-story__copy {
  align-self: center;
  padding: 65px clamp(30px, 5.5vw, 80px) 65px max(var(--page-pad), calc((100vw - 1100px) / 2));
}

.recruit-story__copy h2 {
  margin-bottom: 25px;
  color: var(--wako-blue);
  font-size: clamp(26px, 2.85vw, 40px);
  line-height: 1.5;
}

.recruit-story__copy p {
  margin-bottom: 35px;
  font-size: 14px;
  line-height: 2;
  line-break: strict;
  text-wrap: pretty;
}

.recruit-story__image {
  width: 100%;
  height: 100%;
  min-height: 667px;
  object-fit: cover;
}

.recruit-story--reverse .recruit-story__image { grid-column: 1; grid-row: 1; }
.recruit-story--reverse .recruit-story__copy {
  grid-column: 2;
  grid-row: 1;
  padding-left: 65px;
  padding-right: max(var(--page-pad), calc((100vw - 1100px) / 2));
}

.recruit-story .button,
.recruit-requirements > .button {
  width: 230px;
  min-height: 40px;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.recruit-requirements {
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}

.recruit-requirements .profile-table { text-align: left; margin-bottom: 55px; }

@media (max-width: 900px) {
  .recruit-story__copy,
  .recruit-story--reverse .recruit-story__copy { padding: 45px 25px; }
  .recruit-story__copy p br { display: none; }
}

@media (max-width: 767px) {
  .recruit-story { display: flex; flex-direction: column; min-height: 0; }
  .recruit-story__copy,
  .recruit-story--reverse .recruit-story__copy { align-self: stretch; padding: 55px var(--page-pad); }
  .recruit-story__copy h2 { font-size: clamp(23px, 6.5vw, 32px); }
  .recruit-story__image { min-height: 0; height: auto; aspect-ratio: 1.2; object-fit: cover; }
  .recruit-requirements { padding-top: 65px; padding-bottom: 65px; }
}

.recruit-intro__image {
  position: absolute;
  inset: 0 0 auto;
  height: 500px;
}

.recruit-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recruit-intro__content {
  position: relative;
  z-index: 1;
  padding: 70px 80px;
  background: var(--wako-white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.recruit-intro__content h2 {
  margin: 24px 0;
  color: var(--wako-blue);
  font-size: 36px;
}

.recruit-work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.recruit-work-card {
  overflow: hidden;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-soft);
}

.recruit-work-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.recruit-work-card div {
  min-height: 220px;
  padding: 30px;
}

.recruit-work-card h3 {
  color: var(--wako-blue);
  font-size: 22px;
}

.profile-table--requirements {
  margin-bottom: 50px;
}

.related-companies__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.related-companies__grid figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 155px;
  padding: 28px;
  margin: 0;
  border: 1px solid var(--wako-line);
  border-radius: var(--radius-small);
}

.related-companies__grid img {
  max-width: 90%;
  max-height: 90px;
  object-fit: contain;
}

.related-companies__building {
  height: 420px;
  margin: 55px 0 0;
  overflow: hidden;
  border-radius: var(--radius-small);
}

.related-companies__building img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-archive {
  min-height: 1450px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 44px;
}

.pagination > * {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  color: var(--wako-white);
  background: #d2d2d2;
  font-family: var(--font-latin);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.pagination .current,
.pagination a:hover {
  color: var(--wako-white);
  background: var(--wako-blue);
}

.pagination .dots,
.pagination > span:not(.current) {
  color: var(--wako-ink);
  background: transparent;
}

.news-article {
  padding-block: 120px 140px;
}

.news-article__header {
  margin-bottom: 15px;
}

.news-article__header h1 {
  margin-bottom: 34px;
  color: var(--wako-blue);
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
}

.news-article__meta {
  display: flex;
  align-items: center;
  height: 20px;
  gap: 15px;
  margin-bottom: 0;
}

.news-article__meta time {
  color: #969696;
  font-family: var(--font-ja);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

.news-article__meta span {
  display: grid;
  width: 56px;
  height: 20px;
  padding: 0;
  place-items: center;
  border-radius: 10px;
  color: var(--wako-white);
  background: var(--wako-blue);
  font-size: 11px;
  line-height: 20px;
}

.news-article__body {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.news-article__body > * + * {
  margin-top: 0;
}

.news-article__featured {
  width: 800px;
  height: 452px;
  margin-bottom: 70px;
  margin-inline: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #d2d2d2;
}

.news-article__featured img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.news-article__body > p:first-of-type {
  margin-bottom: 0;
}

.news-article__lead {
  min-height: 264px;
}

.news-article__emphasis,
.news-article__body a {
  color: var(--wako-blue);
}

.news-section-heading,
.news-article__body h2 {
  padding: 0 0 7px;
  margin: 40px 0 0;
  border-bottom: 4px solid var(--wako-blue);
  color: var(--wako-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
  scroll-margin-top: 90px;
}

.news-heading {
  margin-bottom: 0;
  font-weight: 700;
}

.news-heading--accent,
.news-article__body h3 {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding-left: 8px;
  margin: 16px 0 0;
  border-left: 4px solid var(--wako-blue);
  color: var(--wako-blue);
  font-size: 20px;
  line-height: 30px;
}

.news-heading--plain,
.news-article__body h4 {
  margin: 22px 0 0;
  color: var(--wako-ink);
  font-size: 20px;
  line-height: 30px;
}

.news-heading--rule {
  width: 550px;
  padding-bottom: 4px;
  margin-top: 42px;
  border-bottom: 1px solid #969696;
  color: var(--wako-ink);
  font-size: 18px;
  line-height: 27px;
}

.news-heading--blue {
  margin-top: 20px;
  color: #004fe5;
  font-size: 16px;
  line-height: 22px;
}

.news-heading--small {
  margin-top: 22px;
  color: var(--wako-blue);
  font-size: 15px;
  line-height: 22px;
}

.news-heading--small + .news-section-heading {
  margin-top: 22px;
}

.news-quote,
.news-article__body blockquote {
  height: 145px;
  padding: 15px;
  margin: 16px 0 0;
  border: 0;
  border-radius: 10px;
  background: #f4f4f4;
}

.news-quote p,
.news-article__body blockquote p {
  margin: 0;
  line-height: 24px;
}

.news-quote cite,
.news-article__body blockquote cite {
  display: block;
  margin-top: 22px;
  color: #707070;
  font-family: "Noto Sans", var(--font-ja);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
}

.news-quote + .news-section-heading {
  margin-top: 52px;
}

.news-article__body img {
  width: 100%;
  border-radius: var(--radius-small);
}

.news-article__body figcaption {
  margin-top: 8px;
  color: var(--wako-muted);
  font-size: 14px;
  text-align: center;
}

.news-format-image {
  display: grid;
  grid-template-rows: 450px 22px;
  row-gap: 21px;
  margin: 16px 0 0;
}

.news-format-image > span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 223px;
  color: var(--wako-white);
  background: #d2d2d2;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
}

.news-format-image figcaption {
  margin: 0;
  color: var(--wako-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-align: left;
}

.news-format-image + .news-section-heading {
  margin-top: 22px;
}

.news-format-list {
  display: grid;
  gap: 12px;
  padding-left: 32px;
  margin: 15px 0 0;
  color: var(--wako-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.news-format-list li::marker {
  color: var(--wako-blue);
}

.news-toc {
  height: 223px;
  padding: 27px 29px;
  margin-top: 130px !important;
  border: 1px solid var(--wako-line);
  border-radius: 20px;
  background: var(--wako-tint);
}

.news-toc__title {
  padding-bottom: 5px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--wako-blue);
  color: var(--wako-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
}

.news-toc ol {
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: news-toc;
}

.news-toc li {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 13px;
  counter-increment: news-toc;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.news-toc li::before {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--wako-white);
  background: var(--wako-blue);
  content: counter(news-toc);
  font-size: 11px;
  line-height: 1;
}

.news-toc a {
  color: var(--wako-ink);
}

.news-toc a:hover {
  color: var(--wako-blue);
}

.privacy-content__lead {
  margin-bottom: 43px;
}

.privacy-content {
  padding-bottom: 94px;
}

.privacy-content .narrow-content {
  max-width: 1100px;
}

.privacy-content section {
  margin-bottom: 36px;
}

.privacy-content h2 {
  padding-left: 8px;
  margin-bottom: 22px;
  border-left: 4px solid var(--wako-blue);
  color: var(--wako-blue);
  font-size: 20px;
  line-height: 30px;
}

.privacy-content p {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
}

.privacy-content p.privacy-content__lead {
  margin-bottom: 43px;
}

.privacy-content .privacy-contact {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.privacy-contact__link {
  color: var(--wako-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-page__intro {
  margin-bottom: 38px;
  font-size: 16px;
  text-align: center;
}

.contact-field {
  margin-bottom: 17px;
}

.contact-field > label,
.contact-field legend {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.contact-field label span,
.contact-field legend span,
.contact-confirm-list dt span {
  color: var(--wako-danger);
}

.contact-field input[type="text"],
.contact-field input[type="tel"],
.contact-field input[type="email"],
.contact-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--wako-blue);
  border-radius: 10px;
  background: var(--wako-white);
}

.contact-field textarea {
  resize: vertical;
}

.contact-field--choice {
  padding: 0;
  border: 0;
}

.contact-field--choice label {
  display: inline-flex;
  align-items: center;
  margin: 8px 30px 0 0;
  gap: 8px;
}

.contact-field--choice label > span {
  color: var(--wako-ink);
}

.contact-field--choice input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid var(--wako-blue);
  border-radius: 50%;
  appearance: none;
  background: var(--wako-white);
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.contact-field--choice input[type="radio"]:checked {
  border-color: var(--wako-blue);
  background: var(--wako-blue);
}

.contact-field--choice input[type="radio"]:focus-visible {
  outline: 2px solid var(--wako-blue);
  outline-offset: 3px;
}

.contact-field--choice input,
.contact-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--wako-blue);
}

.contact-privacy {
  padding: 0;
  margin-block: 26px 0;
  border: 0;
  border-radius: 0;
}

.contact-privacy h2 {
  margin: 0 0 2px;
  color: var(--wako-black);
  font-size: 16px;
  line-height: 30px;
}

.contact-privacy p {
  margin: 0;
  color: var(--wako-black);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.contact-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
  font-size: 16px;
  font-weight: 400;
  line-height: 29px;
}

.contact-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid var(--wako-blue);
  border-radius: 50%;
  appearance: none;
  background: var(--wako-white);
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.contact-consent input[type="checkbox"]:checked {
  background: var(--wako-blue);
}

.contact-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--wako-blue);
  outline-offset: 0;
}

.contact-submit {
  display: flex;
  width: 230px;
  min-width: 230px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  margin: 18px auto 0;
  border: 0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.contact-confirm-actions {
  display: flex;
  margin: 0 auto;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
}

/* MW WP Form retains the existing contact layout on all three URLs. */
.mw_wp_form_input .contact-confirm-only,
.mw_wp_form_confirm .contact-input-only {
  display: none;
}

.contact-page .mw_wp_form form {
  margin: 0;
}

.contact-page .mw_wp_form .horizontal-item + .horizontal-item {
  margin-left: 0;
}

.contact-consent .mwform-checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.contact-consent {
  flex-wrap: wrap;
}

.contact-page .mw_wp_form .error {
  display: block;
  width: 100%;
  margin-top: 5px;
  color: var(--wako-danger);
  font-size: 14px;
}

.contact-page .contact-value {
  overflow-wrap: anywhere;
}

.mw_wp_form_confirm .contact-fields {
  margin-top: 50px;
}

.mw_wp_form_confirm .contact-value {
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--wako-blue);
  border-radius: 10px;
  background: var(--wako-white);
  line-height: 26px;
}

.mw_wp_form_confirm .contact-field--message .contact-value {
  min-height: 242px;
  font-size: 14px;
  line-height: 24px;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-form-actions .contact-submit {
  margin-inline: 0;
}

.contact-form-actions .contact-back {
  border: 1px solid var(--wako-blue);
  background: var(--wako-white);
  color: var(--wako-blue);
}

.contact-form-actions .contact-submit > span {
  font-size: 22px;
  line-height: 1;
}

.contact-step-title {
  position: relative;
  width: fit-content;
  margin: 0 auto 28px;
  font-size: 24px;
}

.contact-step-title::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--wako-blue);
  content: "";
}

.contact-confirm-list {
  margin: 50px 0 0;
}

.contact-confirm-list > div {
  margin-bottom: 14px;
}

.contact-confirm-list dt {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
}

.contact-confirm-list dd {
  width: 100%;
  height: 50px;
  padding: 10px 14px;
  margin: 0;
  border: 2px solid var(--wako-blue);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.contact-page--confirm {
  padding-top: 128px;
  padding-bottom: 100px;
}

.contact-page--confirm .contact-page__intro {
  margin-bottom: 0;
  font-weight: 500;
  line-height: 24px;
}

.contact-confirm-item--choice {
  margin-bottom: 13px !important;
}

.contact-confirm-item--choice .contact-confirm-choice {
  display: flex;
  align-items: center;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 0;
  gap: 34px;
  line-height: 29px;
}

.contact-confirm-choice label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.contact-confirm-choice input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid var(--wako-blue);
  border-radius: 50%;
  appearance: none;
  background: var(--wako-white);
  box-shadow: none;
  opacity: 1;
  -webkit-appearance: none;
}

.contact-confirm-choice input[type="radio"]:checked {
  background: var(--wako-blue);
}

.contact-confirm-item--message {
  margin-bottom: 0 !important;
}

.contact-confirm-item--message dt {
  line-height: 22px;
}

.contact-confirm-item--message dd {
  height: 242px;
  padding-top: 10px;
  font-size: 14px;
  line-height: 24px;
}

.contact-page--confirm .contact-privacy {
  margin-top: 20px;
}

.contact-page--confirm .contact-consent {
  margin-top: 30px;
}

.contact-page--confirm .contact-consent input[type="checkbox"] {
  cursor: default;
  opacity: 1;
}

.contact-page--confirm .contact-submit {
  margin-top: 17px;
}

.contact-confirm-actions {
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.form-errors {
  padding: 30px;
  border: 2px solid var(--wako-danger);
  border-radius: var(--radius-small);
}

.contact-complete {
  min-height: 520px;
}

.contact-complete p {
  margin: 53px 0 44px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.contact-complete .button {
  position: relative;
  width: 230px;
  min-width: 230px;
  min-height: 40px;
  padding: 0 34px 0 16px;
  border: 0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
}

.contact-complete .button-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  margin-left: 0;
  transform: translateY(-50%);
}
