@charset "UTF-8";
main#office .inner {
  padding: 0 5vw;
}
main#office img {
  border-radius: 5px;
  overflow: hidden;
}

#visual {
  margin: 0 0 5rem 0;
}
@media screen and (max-width: 767px) {
  #visual {
    margin: 0 0 2rem 0;
  }
}
#visual .image {
  position: relative;
}
#visual .image::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  content: "";
  z-index: 3;
  background: rgba(0, 0, 0, 0.3);
}
#visual h1 {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #ffffff;
  z-index: 30;
  font-size: clamp(3rem, 2.304rem + 0.9vw, 3.6rem);
}

.leads {
  margin: 0 0 5rem 0;
}
@media screen and (max-width: 767px) {
  .leads {
    margin: 0 0 2rem 0;
  }
}

.kyouyou {
  background: #F8F8F8;
  padding: 5rem 0;
}

.office_title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #005BAC;
  margin: 0 0 5rem 0;
}
@media screen and (max-width: 767px) {
  .office_title {
    display: block;
  }
}
.office_title h2 {
  font-size: clamp(2rem, 0.608rem + 1.8vw, 3.2rem);
}
.office_title p.en {
  font-size: clamp(1.6rem, 0.208rem + 1.8vw, 2.8rem);
}

.building_grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}
@media screen and (max-width: 767px) {
  .building_grid {
    display: block;
  }
  .building_grid .box {
    margin: 0 0 2rem 0;
  }
}
.building_grid .image {
  margin: 0 0 1rem 0;
}
.building_grid .txt h3 {
  color: #005BAC;
  margin: 0 0 1rem 0;
}

.shitsumu {
  padding: 5rem 0;
}
.shitsumu .copys {
  transform: translateY(5rem);
  position: relative;
  z-index: 300;
}
@media screen and (max-width: 767px) {
  .shitsumu .copys {
    transform: none;
  }
}
.shitsumu .copys p {
  background: #005BAC;
  color: #ffffff;
  display: inline-block;
  padding: 1rem;
  margin: 0 0 1rem 0;
  font-size: clamp(1.4rem, 0.24rem + 1.5vw, 2.4rem);
  text-box: trim-both cap alphabetic;
}

.bgoffice {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 8vw;
  position: relative;
  min-height: 100vh;
  /* 背景画像のみ 100vh のビューポートに固定（スクロールで動かない） */
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.bgoffice.box01 {
  background-image: url("/assets/image/recruit/office-tour/photo04.jpg");
}
.bgoffice.box02 {
  background-image: url("/assets/image/recruit/office-tour/photo05.jpg");
}
.bgoffice.box03 {
  background-image: url("/assets/image/recruit/office-tour/photo06.jpg");
}
.bgoffice.box04 {
  background-image: url("/assets/image/recruit/office-tour/photo07.jpg");
}
.bgoffice.box05 {
  background-image: url("/assets/image/recruit/office-tour/photo08.jpg");
}
.bgoffice.box06 {
  background-image: url("/assets/image/recruit/office-tour/photo09.jpg");
}
.bgoffice.box07 {
  background-image: url("/assets/image/recruit/office-tour/photo10.jpg");
}
.bgoffice.box08 {
  background-image: url("/assets/image/recruit/office-tour/photo11.jpg");
}
.bgoffice::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  content: "";
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}

.office_grid {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
@media screen and (max-width: 767px) {
  .office_grid {
    display: block;
  }
}
.office_grid .box {
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .office_grid .box {
    margin: 0 0 3rem 0;
  }
}
.office_grid .box .image {
  margin: 0 0 2rem 0;
}
.office_grid .box .txts {
  color: #ffffff;
}
.office_grid .box .txts h3 {
  font-size: clamp(1.4rem, 0.704rem + 0.9vw, 2rem);
  margin: 0 0 1rem 0;
}

.embla {
  margin: auto;
  --slide-spacing: 1rem;
  --slide-size: 25%;
  padding: 0 0 1rem 0;
}
@media screen and (max-width: 767px) {
  .embla {
    --slide-size: 150px;
  }
}
.embla:last-child {
  padding: 0 0 3rem 0;
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--slide-size);
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
  transition: none;
  will-change: transform;
}
.embla__container:first-child {
  padding: 0;
  margin: 0;
}

.embla__slide {
  transform: translate3d(0, 0, 0);
  min-width: 0;
  padding-left: var(--slide-spacing);
  display: flex;
  align-items: center;
  height: var(--slide-height);
  box-sizing: border-box;
}
.embla__slide img {
  width: 100%;
  height: auto;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

.embla__controls {
  grid-template-columns: auto 1fr auto;
}