* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 54px;
  overflow-x: hidden;
}


html {
  scroll-behavior: smooth;
}

body {
  background: #f7f7f7;
  color: #000000;
  font-family: Arial, "Noto Sans JP", sans-serif;
  /*   overflow: visible !important; */
}

/* ----------------
   HERO
---------------- */
.im {
  width: 100%;
  clip-path: polygon(0% 0%, 100% 12%, 100% 100%, 0 88%);
  height: 70%;
  object-fit: cover;
  margin-top: 3%;
  /* margin-bottom: 8rem; */
}


.hero01 {
  background-color: #ededed;
  height: 60vh;
  /* clip-path: polygon(0 0, 100% 0, 100% 100%, 0 93%); */
  /* width: 100%; */
}



.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1vw 10vw 7vw 10vw;
  overflow: visible;
  height: 30%;
}

.hero-text {
  position: absolute;
  z-index: 5;
  /* margin-top: 6rem; */
  top: 30%;
  overflow: visible;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(23px, 3vw, 3vw);
  line-height: 1.05;
  font-weight: 500;
}

.hero-text>p:last-child {
  margin-top: 35px;
  line-height: 2;
  color: #aaa;
}


.service {
  width: 100vw;
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  overflow-y: hidden;
}

#service::-webkit-scrollbar {
  display: none;
}

/* ============================
   各サービス
============================ */

.service-info {
  position: relative;

  flex: 0 0 100vw;

  width: 100vw;
  height: 70vh;

  overflow: hidden;

  color: #fff;
}


/* ============================
   背景
============================ */

.service-background {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  z-index: 0;
}

.service-background img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transform: scale(1.02);
}


/* 写真の上に青系グラデーション */

.service-background::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(90deg,
      rgba(4, 17, 34, 0.97) 0%,
      rgba(5, 25, 48, 0.90) 32%,
      rgba(5, 31, 58, 0.58) 58%,
      rgba(4, 18, 32, 0.18) 100%);

  pointer-events: none;
}


/* ============================
   番号
============================ */

.service-number {
  position: absolute;

  top: 7%;
  left: 6%;

  z-index: 2;

  display: flex;
  align-items: baseline;
  gap: 10px;

  font-size: 13px;
  letter-spacing: 0.15em;

  color: rgba(190, 220, 240, 0.55);
}

.service-number .current {
  font-size: 36px;
  font-weight: 300;

  color: #64c8ff;
}



/* ============================
   コンテンツ
============================ */

.service-content {
  position: absolute;
  left: 6%;
  bottom: 5%;
  z-index: 2;
  width: min(650px, 95%);
}


/* SERVICE */

.service-label {
  margin: 0 0 14px;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.35em;

  color: #55c6ff;
}
/* タイトル */

.service-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
  /* white-space: nowrap; */
  color: #fff;
}

/* アピールポイント */

.service-description {
  margin: 0 0 30px;

  max-width: 540px;

  font-size: 14px;
  line-height: 1.9;

  color: rgba(225, 239, 248, 0.78);
}


/* ============================
   機材・搬入機器
============================ */

.service-spec {
  width: 100%;

  margin-bottom: 32px;

  border-top: 1px solid rgba(100, 200, 255, 0.25);
}

.service-spec-item {
  display: grid;

  grid-template-columns: 110px 1fr;

  padding: 13px 0;

  border-bottom: 1px solid rgba(100, 200, 255, 0.18);
}


/* 使用機材 / 搬入機器 */

.service-spec-label {
  font-size: 11px;
  font-weight: 500;

  letter-spacing: 0.12em;

  color: #64c8ff;
}


/* 値 */

.service-spec-values {
  display: flex;
  flex-direction: column;

  gap: 5px;

  font-size: 13px;
  line-height: 1.6;

  color: rgba(255, 255, 255, 0.85);
}


/* ============================
   詳細を見る
============================ */

.service-detail {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 60px;

  min-width: 210px;

  padding: 14px 0;

  border-bottom: 1px solid rgba(100, 200, 255, 0.55);

  color: #fff;

  font-size: 12px;
  font-weight: 500;

  letter-spacing: 0.12em;

  text-decoration: none;

  transition:
    border-color 0.3s ease,
    color 0.3s ease;
  background: none;
  border: none;
}

.service-detail-arrow {
  color: #64c8ff;

  font-size: 19px;

  transition: transform 0.3s ease;
}

.service-detail:hover {
  color: #64c8ff;
  border-color: #64c8ff;
}

.service-detail:hover .service-detail-arrow {
  transform: translateX(8px);
}

.service-info {
  position: relative;
}

.service-next-guide {
  position: absolute;

  right: 50px;
  bottom: 40px;

  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.service-next-text {
  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.22em;

  opacity: 0.7;
}

.service-next-line {
  position: relative;

  width: 70px;
  height: 1px;

  overflow: hidden;

  background:
    rgba(255, 255, 255, 0.25);
}

.service-next-line::after {
  content: "";

  position: absolute;
  inset: 0;

  background: #fff;

  transform:
    translateX(-100%);

  animation:
    serviceNextLine 1.8s ease-in-out infinite;
}

.service-next-arrow {
  font-size: 18px;

  animation:
    serviceNextArrow 1.4s ease-in-out infinite;
}

/* ============================
 白紙処理
============================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-card {
  position: relative;
  width: min(700px, 90%);
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);

  animation: cardIn 0.35s ease-out;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
}


/* ============================
   スマホ
============================ */

@media (max-width: 768px) {


  .eyebrow {
    margin-bottom: 6px;
  }

  .hero-text>p:last-child {
    margin-top: 9px;
    font-size: 13px;
  }

  .service-number {
    top: 5%;
    left: 7%;
  }

  .service-number .current {
    font-size: 28px;
  }

  .service-title {
    font-size: 32px;
  }

  .service-description {
    font-size: 13px;

    margin-bottom: 22px;
  }

  .service-spec {
    margin-bottom: 24px;
  }

  .service-spec-item {
    grid-template-columns: 90px 1fr;

    padding: 10px 0;
  }

  .service-spec-values {
    font-size: 12px;
    gap: 0px;
  }
}

.詳細コンテンツ {
  display: none;
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.詳細コンテンツ.表示 {
  display: flex;
}

.詳細コンテンツの内容 {
  position: relative;
  width: min(90%, 1000px);
  max-height: 90dvh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  z-index: 10000;

}