@charset "utf-8";

/* Block: page-visual */
.page-visual {
  z-index: 1;
  background-image: url("../img/page-visual/page-visual_services.jpg");
}

/* section--product */
.product__list {
  display: flex;
  gap: 40px;
}

.product__item {
  width: 25%;
}

.product__title {
  margin: 24px 0 16px 0;
  font-size: 1.4em;
}

.product__text {
  line-height: 2;
}

.product__text small {
  display: block;
}

.product__desc {
  padding: 0 16px;
}

.product__img {
  border-radius: 24px;
}

/* section--process */
.process__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #0082c8;
}

.process__heading-title {
  font-size: 1.4em;
}

 /* 横スクロール対応の加工フローコンテナ */
 .process__wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -20px; /* コンテナの余白を打ち消し */
}

.process__scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 40px 20px;
  gap: 60px;
  /* スクロールバーを非表示にする */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.process__scroll-container::-webkit-scrollbar {
  display: none;
}

/* 各工程のアイテム */
.process__item {
  flex: 0 0 auto;
  width: 80%;
  position: relative;
}

.process__inner {
  display: flex;
  gap: 40px;
}

.process__visual {
  width: 50%;
}

.process__desc {
  width: 50%;
  padding: 5% 0;
}

/* ナンバリング */
.process__number {
  font-size: 1.4em;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

/* 画像コンテナ */
/* .process__visual {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process__visual:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
} */

.process__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
}

/* タイトル */
.process__title {
  font-size: 1.4em;
  margin-bottom: 16px;
}

/* 説明文 */

/* スクロールインジケーター */
.process__indicators {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.process__indicator {
  font-size: 1.4em;
  letter-spacing: 2px;
  transition: .3s;
  cursor: pointer;
  opacity: .4;
}

.process__indicator.is-active {
  opacity: 1;
}

.process__forsp {
  display: none;
  padding: 8px 16px;
  color: #0082c8;
  border-radius: 100vw;
  background-color: #fff;
  border: 1px solid #0082c8;
}

/* スクロールボタン */
.process__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  color: #0082c8;
  background: #fff;
  border: 1px solid #0082c8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.process__nav:hover {
  background: #0082c8;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.process__nav--prev {
  left: 10px;
}

.process__nav--next {
  right: 10px;
}

.process__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

/* section--achivement */
.section--achivement {
  background-color: #e9f2f7;
}

/* テーブル本体 */
.achivement__table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden; /* 角丸を反映させる */
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* ヘッダー */
.achivement__table-head {
  background-color: #cce5f6; /* 薄い青 */
}

.achivement__table-heading {
  padding: 16px;
  text-align: center;
  font-weight: normal;
  color: #0082c8;
}

/* 行 */
.achivement__table-row {
  border-bottom: 1px solid #0082c8;
}

/* セル */
.achivement__table-cell {
  padding: 16px;
  color: #0082c8;
  vertical-align: middle;
}

/* 左列（工事名）を固定比率でやや狭くする */
.achivement__table-heading--name,
.achivement__table-cell--name {
  width: 65%; /* 工事名 */
  border-right: 1px solid #0082c8;
}

/* 右列（工事場所） */
.achivement__table-heading--place,
.achivement__table-cell--place {
  width: 35%; /* 工事場所 */
}

/* 最終行は下線なし */
.achivement__table-body .achivement__table-row:last-child {
  border-bottom: none;
}

/* section--history */
.section--history {
  overflow-x: hidden;
  background-color: #d8e5f0;
}

.gallery-block {
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  /* 右側を画面端まで伸ばす */
  margin-right: calc(-50vw + 50%);
}

.gallery-controls {
  position: absolute;
  top: 20px;
  right: 120px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.gallery-controls button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 100vw;
  background-color: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0082c8;
  border: 1px solid #0082c8;
  transition: .3s;
}

.gallery-controls button:hover {
  color: #fff;
  background-color: #0082c8;
  transform: scale(1.05);
}

.gallery-controls button:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: .4;
}

.gallery-forsp {
  display: none;
  padding: 8px 16px;
  color: #0082c8;
  border-radius: 100vw;
  background-color: #fff;
  border: 1px solid #0082c8;
}

.gallery-wrapper {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  margin-top: 40px;
  padding-top: 0;
  /* 右側のパディングを追加して画面端まで使用可能にする */
  padding-right: calc(50vw - 50%);
  border-top: 1px solid #0082c8;
}

.gallery-wrapper:active {
  cursor: grabbing;
}

.gallery-block__line {
  display: flex;
  scroll-behavior: smooth;
  padding: 40px 16px;
  gap: 32px;
  /* スクロールバーを非表示にする */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  width: 40%;
  flex-shrink: 0;
}

.gallery-visual__img {
  border-radius: 40px;
  pointer-events: none;
}

.gallery-title {
  text-align: center;
}

.gallery-indicator {
  position: absolute;
  top: 24px;
  left: 148px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(70, 130, 180, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-dot.active {
  background: #4682b4;
  transform: scale(1.2);
}



@media (max-width: 1024px) {

}

@media (max-width: 767px) {
  /* section section--product */
  .product__list {
    flex-wrap: wrap;
  }

  .product__item {
    width: 100%;
  }

  .product__title {
    margin: 16px 0;
  }

  /* section--process */
  .process__item {
    width: 240px;
}

.process__scroll-container {
    gap: 40px;
    padding: 20px;
}

.process__number {
    font-size: 36px;
}

.process__image {
    height: 160px;
}

  .process__inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .process__visual {
    width: 100%;
  }

  .process__desc {
    width: 100%;
  }

  .process__number {
    margin-bottom:  0;
  }

  /* section--process */
  .process__wrapper {
    overflow-x: scroll;
  }

  .process__indicator {
    display: none;
  }

  .process__forsp {
    display: inline-block;
  }

  .process__nav {
    display: none;
  }

  /* section--achivement */
  .achivement__table,
  .achivement__table thead,
  .achivement__table tbody,
  .achivement__table th,
  .achivement__table td,
  .achivement__table tr {
    display: block;
    width: 100%;
  }

  /* 行を縦並びにする */
  .achivement__table-row {
    margin-bottom: 16px;
  }

  /* 見出しセルを左に置かず、ラベル化する */
  .achivement__table-heading {
    display: none !important; /* モバイルではヘッダー非表示 */
  }

  .achivement__table-cell {
    display: flex;
    padding: 10px;
    text-align: left;
  }

  /* 疑似要素でラベルをつける */
  .achivement__table-cell--name::before {
    content: "工事名：";
    font-weight: bold;
    margin-right: 5px;
    color: #5a5a5a;
    flex-shrink: 0;
  }

  .achivement__table-cell--place::before {
    content: "工事場所：";
    font-weight: bold;
    margin-right: 5px;
    color: #5a5a5a;
    flex-shrink: 0;
  }

  .achivement__table-cell {
    border-right: 0;
  }

  .achivement__table-head .achivement__table-row {
    border-bottom: 0;
  }

  /* section--gallery */
  .gallery-forsp {
    display: inline-block;
  }

  .gallery-controls {
    display: none;
  }

  .gallery-wrapper {
    overflow-x: scroll;
    padding-right: 0;
  }

  .gallery-indicator {
    display: none;
  }

  .gallery__item {
    width: 240px;
  }
}