@charset "UTF-8";

/* =====================================================
   TOPページ
   ===================================================== */

/* ===== ① ヒーロー ===== */
.hero {
  position: relative;
  padding: 17rem 0 10rem;
}

@media screen and (max-width: 767px) {
  .hero {
    padding: 9.9375rem 0 6rem;
  }
}

/* ----- 立体と球体のレイヤー ----- */
.hero__objects {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero__object {
  position: absolute;
}

.hero__object img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__object--01 {
  top: 6rem;
  left: calc(50% - 46rem);
  width: 22rem;
}

.hero__object--01 img {
  filter: blur(0.125rem);
}

.hero__object--02 {
  top: -3rem;
  left: calc(50% + 22rem);
  width: 20rem;
}

.hero__object--03 {
  top: 40vh;
  left: calc(50% + 28rem);
  width: 26rem;
}

.hero__object--03 img {
  filter: blur(0.0625rem);
}

.hero__object--04 {
  top: 62vh;
  left: calc(50% + 18rem);
  width: 14rem;
}

.hero__object--04 img {
  filter: blur(0.125rem);
}

@media screen and (max-width: 767px) {
  .hero__object--01 {
    top: 4rem;
    left: -2.5rem;
    width: 9rem;
  }

  .hero__object--01 img {
    filter: blur(0.0625rem);
  }

  .hero__object--02 {
    top: 2rem;
    right: -2rem;
    left: auto;
    width: 8rem;
  }

  .hero__object--03 {
    top: 60vh;
    right: -3rem;
    left: auto;
    width: 10rem;
  }

  .hero__object--03 img {
    filter: none;
  }

  .hero__object--04 {
    top: 75vh;
    left: -1rem;
    width: 6rem;
  }

  .hero__object--04 img {
    filter: blur(0.0625rem);
  }
}

/* ----- 球体と糸（SVG） ----- */
.hero__spheres {
  position: absolute;
  inset: 0;
}

.hero__svg {
  width: 100%;
  height: 100%;
}

.hero__thread {
  stroke: var(--color-thread);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.8;
}

/* ----- スクロール誘導 ----- */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  max-width: 75rem;
  translate: -50% 0;
}

.hero__scrollText {
  color: var(--color-main);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  font-feature-settings: normal;
}

.hero__scrollIcon {
  position: relative;
  width: 0.625rem;
  height: 0.5625rem;
  overflow: clip;
  --beforeY: -50%;
  --afterY: -500%;
}

.hero__scrollIcon::before,
.hero__scrollIcon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: var(--color-main);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M5 0.8V7.8M1.6 4.6L5 8L8.4 4.6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M5 0.8V7.8M1.6 4.6L5 8L8.4 4.6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero__scrollIcon::before {
  translate: -50% var(--beforeY);
}

.hero__scrollIcon::after {
  translate: -50% var(--afterY);
}

@media screen and (max-width: 767px) {
  .hero__scroll {
    opacity: 0;
  }
}

/* ----- 見出し・リード・ボタン ----- */
.hero__content {
  max-width: 55.25rem;
  margin: 0 auto;
}

.hero__title {
  margin-top: 1.5rem;
  font-size: 5.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero__titleLine {
  display: block;
}

.hero__titleLine--2 {
  letter-spacing: 0.08em;
}

.hero__lead {
  margin-top: 3.5625rem;
  font-size: 1.4375rem;
  font-weight: 700;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4.375rem;
}

@media screen and (max-width: 767px) {
  .hero__en,
  .hero__title,
  .hero__lead {
    margin-left: 1.25rem;
  }

  .hero__title {
    font-size: 2.125rem;
    white-space: nowrap;
  }

  .hero__titleLine--2 {
    letter-spacing: 0.06em;
  }

  .hero__lead {
    width: 18.3125rem;
    margin-top: 2rem;
    font-size: 0.875rem;
  }

  .hero__btns {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 0 2rem;
  }

  .hero__btns .btn {
    min-width: 100%;
  }
}

/* ===== ③ 事業内容の円の図解 ===== */
.diagram {
  position: relative;
  width: calc(100% - 9.5rem);
  margin: 4.75rem auto;
}

.diagram__main {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--color-white);
  scale: 0.9;
  transition:
    scale 0.8s cubic-bezier(0, 0, 0.4, 1),
    box-shadow 0.8s cubic-bezier(0, 0, 0.4, 1);
}

.diagram__logo {
  width: 9.0625rem;
}

.diagram__list {
  position: absolute;
  inset: 0;
  rotate: -15deg;
  transition: rotate 0.8s cubic-bezier(0, 0, 0.4, 1);
}

.diagram__threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.diagram__threads line {
  stroke: var(--color-thread);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.8;
  vector-effect: non-scaling-stroke;
}

.diagram__items {
  position: absolute;
  inset: 0;
}

.diagram__item {
  position: absolute;
  width: 9.5rem;
  aspect-ratio: 1;
  opacity: 0;
  translate:
    calc(-50% + var(--tx))
    calc(-50% + var(--ty));
  transition:
    opacity 0.8s cubic-bezier(0, 0, 0.4, 1),
    translate 0.8s cubic-bezier(0, 0, 0.4, 1);
}

.diagram__item--01 {
  top: 0%;
  left: 50%;
  --tx: 0rem;
  --ty: -2.5rem;
  --item-color: #037756;
}

.diagram__item--02 {
  top: 34.55%;
  left: 97.55%;
  --tx: 2.378rem;
  --ty: -0.773rem;
  --item-color: #024B37;
}

.diagram__item--03 {
  top: 90.45%;
  left: 79.39%;
  --tx: 1.469rem;
  --ty: 2.023rem;
  --item-color: #0E9467;
}

.diagram__item--04 {
  top: 90.45%;
  left: 20.61%;
  --tx: -1.469rem;
  --ty: 2.023rem;
  --item-color: #037756;
}

.diagram__item--05 {
  top: 34.55%;
  left: 2.45%;
  --tx: -2.378rem;
  --ty: -0.773rem;
  --item-color: #024B37;
}

.diagram__link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--item-color);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.3s var(--ease-out);
}

.diagram__label {
  display: block;
  rotate: 15deg;
  transition: rotate 0.8s cubic-bezier(0, 0, 0.4, 1);
}

.diagram.is-active .diagram__main {
  scale: 1;
  box-shadow: 0 0 1.3125rem 0.3125rem rgba(var(--color-main-rgb), 0.2);
}

.diagram.is-active .diagram__list {
  rotate: 0deg;
}

.diagram.is-active .diagram__item {
  opacity: 1;
  translate: -50% -50%;
}

.diagram.is-active .diagram__label {
  rotate: 0deg;
}

@media (min-width: 768px) {
  .diagram__link:hover {
    background-color: var(--color-main-light);
  }
}

@media screen and (max-width: 767px) {
  .diagram {
    width: 78%;
    margin: 11% auto;
  }

  .diagram__logo {
    width: 28%;
  }

  .diagram__item {
    width: 27%;
  }

  .diagram__link {
    font-size: 0.75rem;
  }

  .diagram.is-active .diagram__main {
    box-shadow: 0 0 0.5625rem 0.125rem rgba(var(--color-main-rgb), 0.2);
  }
}

/* ===== ④＋⑤ パララックスの立体で包む範囲 ===== */
.parallax-area {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.parallax-area__object {
  position: absolute;
  z-index: -1;
  object-fit: contain;
}

.parallax-area__object--01 {
  top: 15.5rem;
  left: calc(50% - 40.625rem);
  width: 14.6875rem;
  height: 15.25rem;
  filter: blur(0.5rem);
}

.parallax-area__object--02 {
  top: 34.6875rem;
  left: calc(50% + 12.5rem);
  width: 40.25rem;
  height: 22.625rem;
  filter: blur(0.375rem);
}

@media screen and (max-width: 767px) {
  .parallax-area__object--01 {
    top: 43.0625rem;
    left: calc(50% - 12.5rem);
    width: 6.25rem;
    height: 6.4375rem;
    filter: blur(0.1875rem);
  }

  .parallax-area__object--02 {
    top: 1.0625rem;
    left: calc(50% + 0.625rem);
    width: 15rem;
    height: 8.4375rem;
    filter: blur(0.125rem);
  }
}

/* ===== ④ Gluonについて（写真スライダー） ===== */
.about {
  padding: 10rem 0 8.75rem;
}

.about-slider {
  position: relative;
  max-width: 50rem;
  margin: -1.3125rem auto 0;
  overflow: clip;
  border-radius: 19rem;
}

/* スライダーが動く前（JSが動かないとき・1枚のとき）は1枚目だけ表示 */
.about-slider:not(.is-initialized) .splide__slide:not(:first-child) {
  display: none;
}

.about-slider.is-stop {
  visibility: visible;
}

.about-slider__photo {
  position: relative;
  aspect-ratio: 800 / 599;
  overflow: clip;
}

.about-slider__photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 112%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.about-slider.is-stop .about-slider__photo img {
  width: 100%;
}

/* 表示中の写真をゆっくり横に流す */
.about-slider .splide__slide.is-visible .about-slider__photo img {
  animation: about-slide-flow 5s linear forwards;
}

@keyframes about-slide-flow {
  from {
    translate: 0rem 0;
  }

  to {
    translate: var(--slide-flow) 0;
  }
}

.about-slider {
  --slide-flow: -5rem;
}

@media screen and (max-width: 767px) {
  .about-slider {
    --slide-flow: -1.875rem;
  }
}

.about-slider__title {
  position: absolute;
  bottom: 1.4375rem;
  left: 50%;
  z-index: 2;
  width: 1280px;
  padding: 0 2.5rem;
  color: var(--color-white);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.4;
  translate: -50% -0.35%;
}

.about__title {
  position: relative;
  z-index: 1;
  margin-top: -11.25rem;
  color: var(--color-main);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.about__body {
  display: grid;
  grid-template-columns:
    43.5625rem
    1fr;
  align-items: flex-end;
  gap: 4.125rem;
  margin-top: 3.75rem;
}

.about__text {
  font-size: 1.375rem;
}

.about__btn {
  justify-self: end;
}

@media screen and (max-width: 767px) {
  .about {
    padding: 6.75rem 0 3.75rem;
  }

  .about-slider {
    margin-top: 1.9375rem;
  }

  .about-slider__photo {
    aspect-ratio: 335 / 251;
  }

  .about__title {
    margin-top: 1.5rem;
    font-size: 1.75rem;
  }

  .about__body {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .about__text {
    font-size: 0.9375rem;
  }

  .about__btn {
    justify-self: stretch;
  }
}

/* ===== ⑥ 工事をご検討の方へ（ライムの面） ===== */
.clients {
  padding: 8.75rem 0;
  background-color: var(--color-accent);
}

.clients__grid {
  display: grid;
  grid-template-columns:
    40.375rem
    1fr;
  align-items: center;
  gap: 3rem;
}

.clients__body {
  margin-top: 3rem;
  font-size: 1.375rem;
}

.clients__btn {
  margin-top: 3.75rem;
}

.clients__photos {
  position: relative;
  width: 26rem;
  margin: 0 auto;
  padding: 0 4rem 4rem 0;
}

.clients__photo {
  overflow: clip;
}

.clients__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.clients__photo--01 {
  width: 22rem;
  border-radius: 50%;
}

.clients__photo--02 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 15rem;
  border: 0.375rem solid var(--color-accent);
  border-radius: 2rem;
}

@media screen and (max-width: 767px) {
  .clients {
    padding: 3.75rem 0;
  }

  .clients__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .clients__photos {
    order: -1;
    width: 16.5rem;
    padding: 0 2.5rem 2.5rem 0;
  }

  .clients__photo--01 {
    width: 14rem;
  }

  .clients__photo--02 {
    width: 10rem;
    border-width: 0.25rem;
    border-radius: 1.25rem;
  }

  .clients__body {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
  }

  .clients__btn {
    margin-top: 2rem;
  }
}

/* ===== ⑦ 採用情報（深緑の写真帯） ===== */
.recruit {
  position: relative;
  isolation: isolate;
  padding: 9.8125rem 0 10.5625rem;
  color: var(--color-white);
}

.recruit__bg {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100%;
  max-width: 80rem;
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  transform: translateX(-50%);
}

.recruit__bg picture,
.recruit__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recruit__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 119, 86, 0) 0%,
    rgba(3, 119, 86, 0.95) 45.19%
  );
}

.recruit__grid {
  display: flex;
  align-items: center;
  gap: 3.6875rem;
}

.recruit__text {
  flex: 1 1 40.375rem;
  min-width: 0;
}

.recruit__photos {
  position: relative;
  flex: 0 1 36.875rem;
  aspect-ratio: 590 / 665;
}

.recruit__heading .heading__title {
  font-size: 3.625rem;
}

.recruit__body {
  margin-top: 3rem;
  font-size: 1.375rem;
}

.recruit__body p + p {
  margin-top: 1.8em;
}

.recruit__btn {
  margin-top: 3.75rem;
}

.recruit__photo {
  position: absolute;
  overflow: clip;
  border-radius: 0.75rem;
}

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

.recruit__photo--01 {
  top: 0;
  left: 0;
  width: 57.63%;
  aspect-ratio: 340 / 343;
}

.recruit__photo--02 {
  top: 30%;
  right: 0;
  width: 33.9%;
  aspect-ratio: 1;
}

.recruit__photo--03 {
  bottom: 0;
  left: 24%;
  width: 41.36%;
  aspect-ratio: 244 / 316;
}

@media screen and (max-width: 767px) {
  .recruit {
    padding: 5rem 0;
  }

  .recruit__bg {
    max-width: 89.3333333333%;
  }

  .recruit__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    padding: 0 1.25rem;
  }

  .recruit__text,
  .recruit__photos {
    flex: none;
  }

  .recruit__heading .heading__title {
    font-size: 1.75rem;
  }

  .recruit__body {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
  }

  .recruit__btn {
    margin-top: 2rem;
  }
}

/* ===== ⑧ 会社概要 ===== */
.company {
  padding: 8.75rem 0;
}

.company__title {
  margin-top: 1rem;
  color: var(--color-main);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.company__text {
  font-size: 1.375rem;
}

.company__table {
  margin-top: 3rem;
}

.company__btn {
  margin-top: 3rem;
}

@media screen and (max-width: 767px) {
  .company {
    padding: 3.75rem 0;
  }

  .company .inner {
    padding: 0 1.25rem;
  }

  .company__title {
    margin-top: 0.75rem;
    font-size: 1.75rem;
  }

  .company__text {
    font-size: 0.9375rem;
  }

  .company__table {
    margin-top: 2rem;
  }

  .company__btn {
    margin-top: 2rem;
  }
}
