@charset "utf-8";

.p-top-fv {
  width: 100%;
  height: 100vh;
  background: url("https://do-and-be.jp/system_panel/uploads/images/fv-bg.png") no-repeat center center / cover;
  overflow: hidden;

  @media (width < 768px) {
    height: 655px;
  }
}

.gjs-dashed *[data-highlightable] .p-top-fv {
  height: auto;
  min-height: 100%;
}

.p-top-fv__inner {
  height: 100%;
  max-width: none;
  padding: 22px 0 0 249px;
  position: relative;

  @media (width < 1120px) {
    padding: 22px 0 0 180px;
  }

  @media (width < 768px) {
    padding: 22px 0 0;
  }
}

.gjs-dashed *[data-highlightable] .p-top-fv__inner {
  height: auto;
}

.p-top-fv__slider {
  overflow: hidden;
  height: 100%;
}

.gjs-dashed *[data-highlightable] .p-top-fv__slider {
  height: auto;
}

.p-top-fv__slider-track {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, calc(40vw / 13.66), 80px);
}

.gjs-dashed *[data-highlightable] .p-top-fv__slider-track {
  height: auto;
  gap: 80px;
}

.p-top-fv__slider-row {
  display: flex;
  width: max-content;
  gap: clamp(34px, calc(34vw / 13.66), 80px);

  img {
    border-radius: 4px;
    height: 100%;
    object-fit: cover;
  }

  img:nth-of-type(odd) {
    width: calc(397vw / 13.66);
    min-width: 397px;
    aspect-ratio: 397/364;

    @media (width < 768px) {
      min-width: 300px;
    }
  }

  img:nth-of-type(even) {
    width: calc(284vw / 13.66);
    min-width: 284px;
    aspect-ratio: 284/364;

    @media (width < 768px) {
      min-width: 213px;
    }
  }
}

.gjs-dashed *[data-highlightable] .p-top-fv__slider-row {
  flex-wrap: wrap;
  min-height: auto;
  width: 100%;
}

.p-top-fv__title {
  position: absolute;
  top: 22px;
  right: calc(187vw / 13.66);
  padding: 56px 32px 70px 32px;
  background: #f7f7f3;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;

  @media (width < 768px) {
    top: 10%;
    right: 15%;
    padding: 24px 20px;
  }

  h1,
  span {
    writing-mode: vertical-rl;
    line-height: 1.7;
    font-size: 36px;
    letter-spacing: 0.1em;
    font-weight: 600;

    @media (width < 768px) {
      font-size: 26px;
    }
  }
}

.p-top-fv__title1 {
}

.p-top-fv__title2 {
  span:nth-of-type(2) {
    padding: 3px 0 0;
    position: relative;
  }

  span:nth-of-type(2)::before,
  span:nth-of-type(2)::after {
    position: absolute;
    content: "”";
    font-size: 24px;
    font-weight: 600;
    color: var(--color-green);
    writing-mode: horizontal-tb;
  }

  span:nth-of-type(2)::before {
    top: -15px;
    right: -6px;
  }

  span:nth-of-type(2)::after {
    bottom: -16px;
    left: -8px;
    transform: matrix(-1, 0, 0, -1, 0, 0);
  }
}

.p-top__bg {
  background: var(--color-bg);
}

.p-about-us {
  padding-top: 110px;
  padding-bottom: 110px;
  position: relative;
  z-index: 1;

  @media (width < 768px) {
    padding-top: 60px;
    padding-bottom: 50px;
  }
}

.p-about-us::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #fff;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 0%, black 15%, black 85%, transparent 100%);
}

.p-about-us__inner {
}

.p-about-us__head {
  display: flex;
  justify-content: space-between;
  align-items: start;

  @media (width < 600px) {
    flex-direction: column;
  }
}

.p-about-us__heading {
  margin: 22px 0 0 34px;

  @media (width < 600px) {
    margin: 0;
  }
}

.p-about-us__img1 {
  width: 26%;
  max-width: 258px;
  aspect-ratio: 258/255;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;

  @media (width < 600px) {
    width: 100%;
    align-self: flex-end;
  }
}

.p-about-us__text-main {
  margin-top: -30px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.8;
  position: relative;
  width: fit-content;
  margin-left: 21%;
  letter-spacing: 0.06em;

  @media (width < 1120px) {
    margin: 32px auto 0;
  }

  @media (width < 768px) {
    margin: 66px auto 0;
    font-size: 18px;
  }
}

.p-about-us__text-main::before,
.p-about-us__text-main::after {
  content: "”";
  position: absolute;
}

.p-about-us__text-main::before {
  right: -25px;
  bottom: 4px;
}

.p-about-us__text-main::after {
  transform: matrix(-1, 0, 0, -1, 0, 0);
  left: -25px;
  top: -17px;
}

.p-about-us__flex {
  margin-top: 66px;
  display: flex;
  align-items: start;
  gap: 10.2%;

  @media (width < 600px) {
    flex-direction: column;
    gap: 35px;
  }
}

.p-about-us__img2 {
  max-width: 310px;
  width: 31.3%;
  aspect-ratio: 310/388;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;

  @media (width < 600px) {
    width: 100%;
    max-width: 310px;
  }
}

.p-about-us__body {
  flex: 1 1 auto;
}

.p-about-us__text {
  max-width: 500px;
  letter-spacing: 0.06em;

  @media (width < 1120px) {
    max-width: none;
  }
}

.p-about-us__text:not(:first-of-type) {
  margin-top: 35px;
}

.p-about-us__img3 {
  margin-top: 90px;
  max-width: 424px;
  width: 73%;
  aspect-ratio: 424/260;
  border-radius: 10px;
  margin-left: 22%;
  object-fit: cover;

  @media (width < 768px) {
    display: block;
    margin-top: 32px;
    margin-left: auto;
  }
}

.p-top-service {
  padding-top: 110px;
  padding-bottom: 12px;

  @media (width < 768px) {
    padding-top: 30px;
  }
}

.p-top-service__inner {
}

.p-top-service__heading {
  margin-left: 34px;

  @media (width < 768px) {
    margin-left: 0;
  }
}

.p-top-service__flex {
  margin-top: 76px;
  display: flex;
  gap: 13.6%;

  @media (width < 1120px) {
    gap: 40px;
  }

  @media (width < 768px) {
    gap: 20px;
  }
}

.p-top-service__left {
  display: flex;
  flex-direction: row-reverse;
  margin-left: 22px;

  @media (width < 1120px) {
    margin-left: 0;
  }

  p {
    writing-mode: vertical-rl;
    color: #333333;
    font-size: 31px;
    line-height: 1.7;
    letter-spacing: 0.17em;

    @media (width < 1120px) {
      font-size: 26px;
    }

    @media (width < 768px) {
      font-size: 20px;
    }
  }
}

.p-top-service__cards {
}

.p-top-service-card {
  border-top: 1px solid #d3d3d3;
  padding: 53px 0 48px;
  max-width: 700px;
}

.p-top-service-card__heading {
}

.p-top-service-card__flex {
  margin-top: 56px;
  display: flex;
  gap: 8.5%;
  align-items: start;

  @media (width < 600px) {
    flex-direction: column;
    gap: 20px;
  }
}

.p-top-service-card__img {
  width: 222px;
  aspect-ratio: 222/300;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;

  @media (width < 1120px) {
    width: 32%;
  }

  @media (width < 768px) {
    width: 100%;
    max-width: 222px;
  }
}

.p-top-service-card__text-inner {
  div {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}

.p-top-service-card__sub-heading {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.06em;

  @media (width < 1120px) {
    font-size: 18px;
  }
}

.p-top-service-card__text {
  letter-spacing: 0.05em;

  @media (width < 768px) {
    font-size: 12px;
  }
}

.p-top-service__lists {
  margin-top: 40px;
}

.p-top-service__list-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  line-height: 3;
  letter-spacing: 0.06em;
}

.p-top-service__list-head::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
}

.p-top-service__list-inner {
  margin-top: 2px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.p-top-service__list {
  background: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  padding: 17px 24px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.p-top-service__list:hover {
  opacity: 0.7;
}

.p-feature {
  padding: 173px 0 181px;
  position: relative;
  z-index: 1;

  @media (width < 768px) {
    padding: 80px 0 80px;
  }
}

.p-feature::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #fff;
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.p-feature__inner {
}

.p-feature__heading {
  margin-left: 34px;

  @media (width < 768px) {
    margin: 0;
  }
}

.p-feature__cards {
  margin-top: 46px;
  margin-left: 26px;
  margin-right: 35px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  @media (width < 1120px) {
    margin-right: 0;
  }

  @media (width < 768px) {
    margin-left: 0;
  }

  @media (width < 600px) {
    display: flex;
    flex-direction: column;
  }
}

.p-feature-card {
  position: relative;
}

.p-feature-card:nth-of-type(1) {
  padding-bottom: 32px;
  padding-right: 44px;

  @media (width < 1120px) {
    padding-right: 20px;
  }

  @media (width < 600px) {
    padding-right: 0;
  }
}

.p-feature-card:nth-of-type(2) {
  padding-bottom: 32px;
  padding-left: 44px;

  @media (width < 1120px) {
    padding-left: 20px;
  }

  @media (width < 600px) {
    margin-top: 25px;
    padding-left: 0;
  }
}

.p-feature-card:nth-of-type(3) {
  padding-top: 25px;
  padding-right: 44px;

  @media (width < 1120px) {
    padding-right: 20px;
  }

  @media (width < 600px) {
    padding-right: 0;
    padding-bottom: 32px;
  }
}

.p-feature-card:nth-of-type(4) {
  padding-top: 25px;
  padding-left: 44px;

  @media (width < 1120px) {
    padding-left: 20px;
  }

  @media (width < 600px) {
    padding-left: 0;
  }
}

.p-feature-card:nth-of-type(1)::before,
.p-feature-card:nth-of-type(2)::before {
  position: absolute;
  content: "";
  height: 1px;
  bottom: 0;
  background: #d3d3d3;
  width: 94%;

  @media (width < 600px) {
    width: 100%;
  }
}

.p-feature-card:nth-of-type(1)::before {
  left: 0;

  @media (width < 600px) {
    display: none;
  }
}

.p-feature-card:nth-of-type(2)::before {
  right: 0;
}

.p-feature-card:nth-of-type(1)::after,
.p-feature-card:nth-of-type(3)::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 80%;
  top: 50%;
  transform: translateY(-60%);
  right: 0;
  background: #d3d3d3;

  @media (width < 600px) {
    height: 1px;
    bottom: 0;
    top: auto;
    transform: none;
    width: 100%;
  }
}

.p-feature-card:nth-of-type(1)::after {
  transform: translateY(-60%);
}

.p-feature-card:nth-of-type(3)::after {
  transform: translateY(-40%);
}

.p-feature-card__head {
  display: flex;
  align-items: center;
  gap: 17px;

  @media (width < 1120px) {
    gap: 12px;
  }
}

.p-feature-card__num {
  letter-spacing: 0;
  color: var(--color-l-green);
  font-family: var(--font-noto-en);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.333;

  @media (width < 1120px) {
    font-size: 45px;
  }
}

.p-feature-card__heading {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.05em;

  @media (width < 1120px) {
    font-size: 15px;
  }
}

.p-feature-card__text {
  margin-top: 12px;
  letter-spacing: 0.05em;
}

.p-top-works {
  padding: 32px 0 33px;
}

.p-top-works__inner {
  max-width: 1222px;
}

.p-top-works__heading {
}

.p-top-works__cards {
  section {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 35px;

    @media (width < 1120px) {
      gap: 60px 20px;
      grid-template-columns: repeat(2, 1fr);
    }

    @media (width < 600px) {
      display: flex;
      flex-direction: column;
      gap: 35px;
    }
  }
}

.p-works__item {
}

.p-works__link {
  width: 100%;
  height: 100%;
}

.p-works__link:hover {
  opacity: 0.7;
}

.p-works__item-head {
  width: 100%;
  aspect-ratio: 285/200;
  border-radius: 6px;
  overflow: hidden;

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

.p-works__item-body {
  margin-top: 15px;
}

.p-works__item-title {
  margin-top: 15px;
  letter-spacing: 0.05em;
  min-height: 70px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
}

.p-top-works__btn {
  margin: 55px auto 0;
}

.p-company {
  padding: 125px 0 152px;
  position: relative;
  z-index: 1;

  @media (width < 768px) {
    padding: 60px 0 60px;
  }
}

.p-company::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #fff;
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.p-company__inner {
  max-width: 1222px;
}

.p-company__heading {
  .c-heading__en {
    font-size: clamp(50px, 7.71vw, 79px);

    @media (width < 768px) {
      font-size: clamp(20px, 12.36vw, 68px);
    }
  }
}

.p-company__flex {
  margin-top: 49px;
  margin-left: 8px;
  display: flex;
  gap: 20px;
  justify-content: space-between;

  @media (width < 600px) {
    flex-direction: column;
  }
}

.p-company__images {
  flex: 0 0 42.7%;

  img {
    width: 100%;
    aspect-ratio: 392/475;
    border-radius: 6px;
    object-fit: cover;
  }
}

.p-company__caption {
  margin-top: 24px;
  padding-left: 26px;
  border-left: 1.5px solid #a2b36b;
}

.p-company__post {
  color: #8d8d8d;
  font-size: 13px;
  line-height: 1.923;
  letter-spacing: 0.05em;
}

.p-company__name {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.389;
  letter-spacing: 0.05em;
}

.p-company__message {
  max-width: 463px;
  letter-spacing: 0.05em;

  @media (width < 768px) {
    max-width: none;
  }
}

.p-company__lists {
  margin-top: 112px;
  margin-left: 8px;
  display: flex;
  flex-direction: column;

  @media (width < 768px) {
    margin-top: 60px;
  }
}

.p-company-list {
  border-bottom: 1px solid #d3d3d3;
  padding: 27px 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-company-list:first-of-type {
  border-top: 1px solid #d3d3d3;
}

.p-company-list__heading {
  width: 19%;
  min-width: 8em;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.p-company-list__text {
  letter-spacing: 0.05em;

  @media (width < 600px) {
    font-size: 13px;
  }

  span {
    display: inline-block;
  }
}

.p-company-list__text a:hover {
  opacity: 0.7;
}

.p-top-news {
  padding: 93px 0 140px;
}

.p-top-news__inner {
  max-width: 1222px;
}

.p-top-news__heading {
  margin-left: 7px;

  @media (width < 1120px) {
    margin-left: 0;
  }
}

.p-top-news__lists {
  margin-top: 74px;
  margin-left: 8px;

  section {
    display: flex;
    flex-direction: column;

    article:first-of-type .p-news__item {
      border-top: 1px solid #d3d3d3;
    }
  }
}

.p-news__item {
  border-bottom: 1px solid #d3d3d3;
  padding: 29px 26px 30px 0;
  display: flex;
  gap: 23px;
  align-items: center;
  position: relative;

  @media (width < 600px) {
    flex-direction: column;
    align-items: start;
  }
}

.p-news__item::after {
  content: "";
  position: absolute;
  background: url("https://do-and-be.jp/system_panel/uploads/images/arrow-right-news.svg") no-repeat center center / contain;
  width: 26px;
  aspect-ratio: 1;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

.p-news__item:hover {
  opacity: 0.7;
}

.p-news__date-wrap {
}

.p-news__title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.05em;

  @media (width < 600px) {
    width: 100%;
  }
}

.p-top-news__btn {
  margin-top: 38px;
  margin-left: auto;
  width: 213px;
}
