/* Foundation */
.p-service {
  --container: 1080px;
  --container-wide: 1250px;
  --gutter: 40px;
  --scroll-duration-service: 60s;
  --inset-std: max(var(--gutter), calc((100% - var(--container)) / 2));
  --inset-wide: max(var(--gutter), calc((100% - var(--container-wide)) / 2));
  font-family: var(--font-ja);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
.p-service *,
.p-service *::before,
.p-service *::after {
  box-sizing: border-box;
}
.p-service img {
  max-width: 100%;
  height: auto;
}

/* Hero */
.p-service-hero {
  position: relative;
  overflow: hidden;
  margin-top: 100px;
  padding-top: 30px;
  padding-bottom: 70px;
}

.p-service-hero__marquee {
  position: absolute;
  top: 6%;
  left: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
  font-family: var(--font-en);
}
.infinite-scroll__wrap--service {
  animation: infinite-scroll-left 8s linear infinite;
}
.infinite-scroll__track--service {
  gap: .35em;
  padding-right: .35em;
}
.p-service-hero__service-word {
  font-family: var(--font-en);
  font-size: 130px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: #f2f2f2;
}

@keyframes service-infinite-loop {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--infinite-scroll-distance, 50%)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-service .infinite-scroll__wrap--service {
    animation: none;
  }
}

.p-service-hero__label {
  text-align: right;
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: .1em;
  color: #333;
}
.p-service-hero__title {
  font-family: var(--font-heading);
  font-size: 42px;
  letter-spacing: .18em;
  line-height: 1.2;
  color: var(--color-text);
  margin-left: 7vw;
}
.p-service-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 7vw;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text);
}
.p-service-hero__breadcrumb::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(45deg, #596ef2, #1e56ae);
}
.p-service-hero__breadcrumb a {
  color: inherit;
}

.sp-br {
  display: none;
}

.p-service-hero__gallery {
  position: relative;
  width: calc(100% - 116px);
  margin: 82px auto 0;
}
.p-service-hero__gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.p-service-hero__lead {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  width: 60%;
  max-width: 760px;
  color: #fff;
  font-size: 16px;
  line-height: 1.75;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.hero-sub-deco02 {
  position: absolute;
  right: 56px;
  bottom: 68px;
  width: 35.4%;
  aspect-ratio: 484 / 123;
  z-index: 1;
}

.p-service-hero__anchors {
  position: absolute;
  right: 3%;
  top: 30px;
  z-index: 3;
  width: 83%;
}
.anchor-list__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.anchor-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}
.anchor-list__item::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url(../images/service/d-arrow-bg.png) no-repeat center / contain;
}
.anchor-list__item:hover {
  color: var(--color-main);
}

/* Service */
.c-sec-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: var(--inset-std);
  margin-right: var(--inset-wide);
  padding-bottom: 18px;
  border-bottom: 1px solid #dcdfe3;
}
.c-sec-head__label,
.c-sec-head__en {
  margin: 0;
}
.c-sec-head__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-text);
}
.c-sec-head__label::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(45deg, #596ef2, #1e56ae);
}
.c-sec-head__en {
  font-family: var(--font-en);
  letter-spacing: .16em;
  color: #333;
}

.p-service > .service {
  padding: 0 0 52px;
  background: #fff;
  background-image: none;
}
.service__list {
  width: min(1080px, calc(100% - 80px));
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}
.service__item {
  margin: 0;
  padding: 0 0 96px;
  border-bottom: 1px dashed #e5e5e5;
}
.service__item + .service__item {
  padding-top: 96px;
}

.service-card {
  --theme: var(--color-main);
  --theme-soft: #5d96f0;
}
.service-card--blue {
  --theme: #1e56ae;
  --theme-soft: #5694ef;
}
.service-card--pink {
  --theme: #dc2c93;
  --theme-soft: #dc2c93;
}
.service-card__inner,
.service-card__visual {
  position: relative;
}
.service-card__header {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--theme);
}
.service-card:nth-child(1) .service-card__header {
  top: 11%;
}
.service-card:nth-child(2) .service-card__header {
  top: 4%;
}
.service-card:nth-child(4) .service-card__header {
  top: 60px;
}
.service-card:nth-child(6) .service-card__header {
  top: 60px;
}
.service-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: auto;
}
.service-card__title {
  margin: 0;
  font-size: clamp(20px,calc(14.34px + 1.51vw),24px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--theme);
  letter-spacing: .03em;
}
.service-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: end;
}
.service-card__copy {

  min-width: 0;
}


.service-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
}
.service-card__text p {
  margin: 0;
  letter-spacing: -0.2px;
}
.service-card__text p + p {
  margin-top: 12px;
}
.service-card:nth-child(6) .service-card__text p + p {
  margin-top: 0;
}
.service-card__category {
  margin: 16px 0 0;
  padding: 12px 30px 14px;
  border: 1px solid var(--theme-soft);
  border-radius: 14px;
}

.service-card:nth-child(4) .service-card__category {
  margin-top: 60px;
}
.service-card__category dt {
  display: inline-flex;
  margin: 0 0 4px;
  padding: 3px 16px 0;
  border: 1px solid var(--theme-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--theme-soft);
}
.service-card__category dd {
  display: flex;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}
.service-card__category dd + dd {
  margin-top: 8px;
}
.service-card__category strong {
  color: var(--theme);
}
.service-card__category dd:nth-child(2) strong {
  width: 22%;
}
.service-card__category dd:nth-child(3) strong {
  width: 30%;
}
.service-card__visual {
  margin: 0;
  z-index: 1;
}
.service-card:nth-child(3) .service-card__visual {
  top: -40px;
}
.service-card:nth-child(5) .service-card__visual {
  top: -20px;
}

.service-card__main-image {
  display: block;
  width: 100%;
}
.service-card__person {
  position: absolute;
  left: -40px;
  bottom: -56px;
  z-index: 2;
  width: 150px;
  filter: drop-shadow(0 4px 0 rgba(130, 144, 160, .25));
}
html.js-person-reveal .service-card__person.person_animation:not(.is-person-revealed) {
  --person-reveal-x: -25vw;
}
.service-card:nth-child(2) .service-card__person {
  width: 172px;
}
.service-card:nth-child(3) .service-card__person {
  bottom: -20%;
  width: 155px;
}
.service-card:nth-child(4) .service-card__person {
  width: 160px;
}
.service-card:nth-child(5) .service-card__person {
  width: 165px;
}
.service-card--dx .service-card__person {
  left: -14px;
  bottom: -24px;
  width: 190px;
}
.service-card__products {
  margin-top: 58px;
}
.service-card__products-title {
  margin: 0 0 28px;
  padding: 20px 28px;
  border-radius: 12px;
  background: var(--theme);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.service-card__products-list {
  margin: 0;
  padding: 0;
}
.service-card__products-list .infinite-scroll__wrap--products {
  display: block;
  width: 100%;
  animation: none;
}
.service-card__products-list .infinite-scroll__track--products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card__products-list .infinite-scroll__track--products[aria-hidden="true"] {
  display: none;
}
.service-card__products-list li {
  overflow: hidden;
  border-radius: 12px;
}
.service-card:nth-child(2) .service-card__products-list li {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ccc;
}
.service-card__products-list img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 707 / 510;
  object-fit: cover;
}
.service-card__pdfs {
  display: grid;
  gap: 14px;
  width: min(740px, 100%);
  margin: 54px auto 0;
}
.service-card__pdf {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 16px 38px 16px;
  border-radius: 8px;
  background: var(--theme-soft);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  letter-spacing: .04em;
  transition: .3s;
}
.service-card__pdf:hover {
  opacity: .7;
}

.service-card__pdf span {
  width: 28px;
  height: 28px;
}


.service-card:nth-child(2n) .service-card__pdf::after {
  background: url(../images/service/arrow-p01.png) no-repeat center / contain;
}
.service-card:nth-child(2n + 1) .service-card__pdf::after {
  background: url(../images/service/arrow-b01.png) no-repeat center / contain;
}
.service-card__dx-lead {
  margin: 0 0 28px;
  padding: 22px 28px;
  border-radius: 6px;
  background: var(--theme);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.service-card--dx {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Case Logos */
.logos {
  position: relative;

  background: #fff;
}
.case-logos {
  padding: 0 0 120px;
}

.case-logos::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1366 / 450;
  background-image: url(../images/service/bg-d.png);
  background-size: contain;
}
.case-logos__inner {
  position: relative;
  width: min(1080px, calc(100% - 80px));
  margin-inline: auto;
  z-index: 1;
}
.case-logos__heading {
  margin: 0 0 52px;
  padding: 16px 28px;
  border: 1px solid #dc2c93;
  border-radius: 8px;
  color: #dc2c93;
  font-size: 18px;
  font-weight: 700;
}
.case-logos__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-logos__item {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 8px;
  background: #fff;
}
.case-logos__item img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* Equipment */
.equipment {
  position: relative;
  padding: 112px 0 128px;
  background: #f4f7fb;
  border-radius: 80px 0 80px 0;
}
.equipment::before {
  content: "";
  position: absolute;
  bottom: 28%;
  right: -3%;
  width: 15.6%;
  aspect-ratio: 168/168;
  max-width: 168px;
  background-image: url(../images/service/service-deco01.png);
  background-size: contain;


}
.equipment .c-sec-head {
  margin-bottom: 62px;
}
.equipment__inner {
  width: min(1080px, calc(100% - 80px));
  margin-inline: auto;
}
.equipment__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.equipment__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(780px, 100%);
  margin: 0 auto 54px;
}
.equipment__tab {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid #1f5eb8;
  border-radius: 999px;
  color: #1f5eb8;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

#equipment-tab-rubber:focus-visible ~ .equipment__tabs .equipment__tab--rubber,
#equipment-tab-metal:focus-visible ~ .equipment__tabs .equipment__tab--metal,
#equipment-tab-resin:focus-visible ~ .equipment__tabs .equipment__tab--resin {
  outline: 3px solid rgba(31, 94, 184, .35);
  outline-offset: 4px;
}
#equipment-tab-rubber:checked ~ .equipment__tabs .equipment__tab--rubber,
#equipment-tab-metal:checked ~ .equipment__tabs .equipment__tab--metal,
#equipment-tab-resin:checked ~ .equipment__tabs .equipment__tab--resin {
  background: linear-gradient(180deg, #3f83de 0%, #1e56ae 100%);
  color: #fff;
  border: none;
}
.equipment__panel {
  display: none;
}
#equipment-tab-rubber:checked ~ .equipment__panels .equipment__panel--rubber,
#equipment-tab-metal:checked ~ .equipment__panels .equipment__panel--metal,
#equipment-tab-resin:checked ~ .equipment__panels .equipment__panel--resin {
  display: block;
}
.equipment-table__scroll {
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-color: #1f5eb8 #dce4f0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.equipment-table__scroll::-webkit-scrollbar {
  height: 6px;
}
.equipment-table__scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #dce4f0;
}
.equipment-table__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #1f5eb8;
}
.equipment-table {
  position: relative;
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.equipment-table--metal {
  min-width: 1080px;
}
.equipment-table thead th {
  padding: 21px 18px;
  border-right: 4px solid #f4f7fb;
  background: linear-gradient(180deg, #3f83de 0%, #1e56ae 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.equipment-table thead th:first-child {
  border-top-left-radius: 18px;
}
.equipment-table thead th:last-child {
  border-right: 0;
  border-top-right-radius: 2px;
}
.equipment-table tbody th,
.equipment-table tbody td {
  padding: 22px 18px;
  border-bottom: 1px dashed #d9dfe8;
  color: #2e2e2e;
  line-height: 1.55;
  text-align: center;
  vertical-align: middle;
  font-weight: 500;
}
.equipment-table tbody th {
  color: #1e56ae;
}
.equipment-table--rubber thead th:nth-child(1) { width: 22%; }
.equipment-table--rubber thead th:nth-child(2) { width: 34%; }
.equipment-table--rubber thead th:nth-child(3) { width: 34%; }
.equipment-table--rubber thead th:nth-child(4) { width: 10%; }
.equipment-table--metal thead th:nth-child(1) { width: 25%; }
.equipment-table--metal thead th:nth-child(2) { width: 18%; }
.equipment-table--metal thead th:nth-child(3) { width: 17%; }
.equipment-table--metal thead th:nth-child(4) { width: 10%; }
.equipment-table--metal thead th:nth-child(5) { width: 30%; }
.equipment-table--resin thead th:nth-child(1) { width: 36%; }
.equipment-table--resin thead th:nth-child(2) { width: 28%; }
.equipment-table--resin thead th:nth-child(3) { width: 10%; }
.equipment-table--resin thead th:nth-child(4) { width: 26%; }
.equipment-gallery {
  margin-top: 92px;
}
.equipment-gallery__heading {
  margin: 0 0 38px;
  padding: 18px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3f83de 0%, #1e56ae 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.equipment-gallery__viewport {
  overflow: hidden;
}
.equipment-gallery__track {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0 0 12px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.equipment-gallery__track::-webkit-scrollbar {
  display: none;
}
.equipment-gallery__item {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 300px;
  scroll-snap-align: start;
}
.equipment-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 707 / 510;
  border-radius: 20px;
  object-fit: cover;
}
.equipment-gallery__item p {
  margin: 20px 0 0;
  color: #1e56ae;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.equipment-gallery__progress {
  position: relative;
  height: 4px;
  margin-top: 30px;
  border-radius: 999px;
  background: #d9e1ed;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.equipment-gallery__progress::before {
  position: absolute;
  inset: -8px 0;
  content: "";
}
.equipment-gallery__progress span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #1e56ae;
  transition: width .12s linear, transform .12s linear;
  will-change: width, transform;
}
.equipment-gallery__progress.is-dragging {
  cursor: grabbing;
}
.equipment-gallery__progress.is-dragging span {
  transition: none;
}

/* Division */
.division {
  position: relative;
  z-index: 1; /* recruit(auto) より前。footer(z-index:2) より後ろ */
  overflow: visible;
  padding: 112px 0 0;
  background: #fff;
}

.division::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34.1%;
  aspect-ratio: 465 / 392;
  max-width: 465px;
  background-image: url(../images/service/service-division-deco01.png);
  background-size: contain;
}
.division .c-sec-head {
  position: relative;
  z-index: 2;
}
.division__deco {
  position: absolute;
  z-index: 0;
  max-width: none;
  pointer-events: none;
}
.division__deco--arc {
  top: -112px;
  right: -110px;
  width: min(56vw, 930px);
  min-width: 520px;
}
.division__deco--circle {
  top: 700px;
  left: 42px;
  width: 330px;
}
.division__chart-wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 80px));
  margin: 72px auto 0;
  padding-bottom: 162px;
}

.division__chart-wrap::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -10%;
  width: 28.3%;
  aspect-ratio: 305 / 149;
  max-width: 305px;
  background-image: url(../images/service/service-division-deco02.png);
  background-size: contain;
}

.division__chart-wrap::after {
  content: "";
  position: absolute;
  bottom: 4%;
  right: -11%;
  width: 14.5%;
  aspect-ratio: 156 / 277;
  max-width: 156px;
  background-image: url(../images/service/service-division-person07.png);
  background-size: contain;
  z-index: 0;
}

.division__chart-scroll {
  overflow: visible;
  border-left: 1px solid;
}
.division__chart-image {
  display: block;
  width: 100%;
  height: auto;
}
.division__person {
  position: absolute;
  right: -80px;
  bottom: -62px;
  z-index: 2;
  width: 164px;
  max-width: none;
  filter: drop-shadow(0 4px 0 rgba(135, 145, 165, .24));
}
html.js-person-reveal .division__chart-wrap[data-person-reveal]:not(.is-person-revealed)::before,
html.js-person-reveal .division__chart-wrap[data-person-reveal].is-person-revealed::before {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.division .service__items {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1366px;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
}
.division .service-item {
  border-radius: 46px 46px 0 0;
}
.division .service-item:nth-child(1),
.division .service-item:nth-child(2),
.division .service-item:nth-child(3),
.division .service-item:nth-child(4),
.division .service-item:nth-child(5),
.division .service-item:nth-child(6),
.division .service-item:nth-child(7),
.division .service-item:nth-child(8),
.division .service-item:nth-child(9),
.division .service-item:nth-child(10),
.division .service-item:nth-child(11),
.division .service-item:nth-child(12) {
  z-index: 1;
}
.division .service-item--active {
  z-index: 2;
  padding: 56px 0 calc(var(--service-overlap) + 56px);
  background: linear-gradient(180deg, #6aa3f5 0%, #5b94ee 100%);
  border-radius: 46px 46px 0 0;
  border-top-left-radius: 46px;
  border-top-right-radius: 46px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
}
.division .service-item--active ~ .service-item {
  z-index: 3;
}
.division .service-item:last-child.service-item--active {
  padding: 56px 0 calc(var(--service-after-overlap) + 40px);
}
.division .service-item:last-child {
  border-radius: 46px 46px 0 0;
}
.division .service-item__button {
  min-height: 0;
  padding-inline: var(--inset-std);
  gap: 22px;
}
.division .service-item--active .service-item__button {
  height: auto;
  min-height: calc(var(--service-collapsed-slot) - var(--service-overlap));
  padding-bottom: 44px;
}
.division .service-item__icon {
  width: 44px;
  height: 44px;
}
.division .service-item__title {
  color: #5694ef;
  font-size: 28px;
  letter-spacing: .04em;
}
.division .service-item--active .service-item__title {
  color: #fff;
}
.division .service-item__body {
  margin-inline: var(--inset-std);
}
.division .service-item--active .service-item__body {
  border-top: 1px solid rgba(255, 255, 255, .62);
}
.division .service-item__content {
  display: block;
  margin-top: 0;
  padding-top: 48px;
}
.division .service-item__text {
  max-width: 1120px;
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
}
.division .service-item:not(.service-item--active) .service-item__button {
  cursor: pointer;
}

/* last-child の高さをグローバルの collapsed 計算に任せる（旧 absolute 用の打ち消しは不要） */


/* Responsive */
@media (max-width: 767px) {
  .p-service {
    font-size: max(16px, calc(16 / 6.4 * 1vw));
    --gutter: calc(30 / 6.4 * 1vw);
  }

  .sp-br {
    display: block;
  }
}
@media (max-width: 1024px) {
  /* Hero */
  .p-service-hero {
    padding-top: calc(20 / 6.4 * 1vw);
    padding-bottom: calc(50 / 6.4 * 1vw);
  }
  .p-service-hero__marquee {
    top: calc(60 / 6.4 * 1vw);
  }
  .p-service-hero__service-word {
    font-size: calc(150 / 6.4 * 1vw);
  }
  .p-service-hero__label {
    font-size: max(16px, calc(16 / 6.4 * 1vw));
    margin-right: 18px;
  }
  .p-service-hero__title {
    font-size: clamp(24px, calc(42 / 6.4 * 1vw), 42px);
    margin-left: var(--gutter);
  }
  .p-service-hero__breadcrumb {
    display: none;
  }

  .p-service-hero__gallery {
    width: calc(100% - 36px);
    margin: 95px auto 0;
  }
  .p-service-hero__lead {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: calc(30 / 6.4 * 1vw);
    color: var(--color-text);
    font-size: max(16px, calc(16 / 6.4 * 1vw));
    text-shadow: none;
  }

  .hero-sub-deco02 {
    position: relative;
    bottom: auto;
    right: auto;
    width: calc(100% - 36px);
    margin: 0 auto;
  }
  .hero-sub-deco02 img {
    display: none;
  }
  .p-service-hero__anchors {
    position: static;
    width: auto;
    margin-top: calc(24 / 6.4 * 1vw);
  }
  .anchor-list__list {
    display: block;
  }
  .anchor-list__item {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
    padding-block: calc(22 / 6.4 * 1vw);
    border-bottom: 1px dotted #ccc;
    font-size: max(16px, calc(16 / 6.4 * 1vw));
  }
  .anchor-list__item::before {
    width: calc(56 / 6.4 * 1vw);
    height: calc(56 / 6.4 * 1vw);
  }

  /* Service */
  .c-sec-head,
  .service__list,
  .case-logos__inner {
    width: calc(100% - 36px);
  }
  .c-sec-head {
    margin-inline: auto;
    padding-bottom: calc(20 / 6.4 * 1vw);
  }
  .c-sec-head__label,
  .c-sec-head__en {
    font-size: max(16px, calc(14 / 6.4 * 1vw));
  }
  .p-service > .service {
    padding-top: 60px;
    padding-bottom: calc(54 / 6.4 * 1vw);
  }
  .service__list {
    margin-top: calc(58 / 6.4 * 1vw);
  }
  .service__item {
    padding-bottom: calc(72 / 6.4 * 1vw);
  }
  .service__item + .service__item {
    padding-top: calc(72 / 6.4 * 1vw);
  }
  .service-card__header {
    position: relative;
    gap: calc(12 / 6.4 * 1vw);
    margin-bottom: calc(24 / 6.4 * 1vw);
  }
  .service-card:nth-child(4) .service-card__header,
  .service-card:nth-child(6) .service-card__header {
    top: 0;
  }
  .service-card__icon {
    width: calc(42 / 6.4 * 1vw);
    min-width: 34px;
  }
  .service-card__title {
    font-size: clamp(24px, calc(32 / 6.4 * 1vw), 32px);
  }
  .service-card__body {
    display: flex;
    flex-direction: column;
    gap: calc(28 / 6.4 * 1vw);
  }
  .service-card__visual {
    order: -1;
    width: 100%;
  }
  .service-card:nth-child(3) .service-card__visual {
    top: auto;
}

.service-card:nth-child(5) .service-card__visual {
  top: 0px;
}
  .service-card__main-image {
    border-radius: calc(18 / 6.4 * 1vw);
  }
  .service-card__visual::before {
    top: auto;
    left: calc(-18 / 6.4 * 1vw);
    bottom: calc(-26 / 6.4 * 1vw);
    width: calc(140 / 6.4 * 1vw);
    height: calc(96 / 6.4 * 1vw);
    background-size: calc(14 / 6.4 * 1vw) calc(14 / 6.4 * 1vw);
  }
  .service-card__visual::after {
    left: calc(-18 / 6.4 * 1vw);
    right: auto;
    bottom: calc(66 / 6.4 * 1vw);
    width: calc(76 / 6.4 * 1vw);
    height: calc(22 / 6.4 * 1vw);
    transform: rotate(90deg);
    transform-origin: left bottom;
  }
  .service-card__person {
    left: auto;
    right: calc(-8 / 6.4 * 1vw);
    bottom: calc(-22 / 6.4 * 1vw);
    width: calc(118 / 6.4 * 1vw);
  }
  html.js-person-reveal .service-card__person.person_animation:not(.is-person-revealed) {
    --person-reveal-x: 25vw;
  }
  .service-card:nth-child(2) .service-card__person,
  .service-card:nth-child(3) .service-card__person,
  .service-card:nth-child(4) .service-card__person,
  .service-card:nth-child(5) .service-card__person {
    width: calc(128 / 6.4 * 1vw);
  }
  .service-card:nth-child(3) .service-card__person {
    bottom: -2%;
  }
  .service-card--dx .service-card__person {
    left: auto;
    right: calc(-8 / 6.4 * 1vw);
    bottom: calc(-26 / 6.4 * 1vw);
    width: calc(150 / 6.4 * 1vw);
  }
  .service-card__text {
    font-size: max(16px, calc(16 / 6.4 * 1vw));
    line-height: 1.8;
  }
  .service-card__category {
    margin-top: calc(26 / 6.4 * 1vw);
    padding: calc(18 / 6.4 * 1vw);
    border-radius: 10px;
  }
  .service-card__category dt {
    margin-bottom: calc(12 / 6.4 * 1vw);
    font-size: max(13px, calc(14 / 6.4 * 1vw));
  }
  .service-card__category dd {
    flex-direction: column;
    font-size: max(13px, calc(16 / 6.4 * 1vw));
  }
  .service-card__category dd:nth-child(2) strong,
  .service-card__category dd:nth-child(3) strong {
    width: 100%;
  }
  .service-card__products {
    margin-top: calc(42 / 6.4 * 1vw);
  }
  .service-card__products-title {
    margin-bottom: calc(22 / 6.4 * 1vw);
    padding: calc(18 / 6.4 * 1vw) calc(20 / 6.4 * 1vw);
    font-size: max(16px, calc(18 / 6.4 * 1vw));
  }
  .service-card__products-list {
    overflow: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }
  .service-card__products-list .infinite-scroll__wrap--products {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: service-infinite-loop var(--infinite-scroll-duration, 28s) linear infinite;
  }
  .service-card__products-list.is-js-marquee .infinite-scroll__wrap--products {
    animation: none;
    pointer-events: none;
  }
  @media (hover: hover) and (pointer: fine) {
    .service-card__products-list:hover .infinite-scroll__wrap--products {
      animation-play-state: paused;
    }
  }
  .service-card__products-list .infinite-scroll__track--products {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: calc(12 / 6.4 * 1vw);
    padding-right: calc(12 / 6.4 * 1vw);
  }
  .service-card__products-list .infinite-scroll__track--products[aria-hidden="true"] {
    display: flex;
  }
  .service-card__products-list li {
    flex: 0 0 auto;
    width: max(180px, calc(235 / 6.4 * 1vw));
  }
  @media (prefers-reduced-motion: reduce) {
    .service-card__products-list {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .service-card__products-list .infinite-scroll__wrap--products {
      animation: none;
    }
    .service-card__products-list .infinite-scroll__track--products[aria-hidden="true"] {
      display: none;
    }
  }
  .service-card__pdfs {
    margin-top: calc(36 / 6.4 * 1vw);
  }
  .service-card__pdf {
    flex-direction: column;
    justify-content: center;
    min-height: calc(84 / 6.4 * 1vw);
    padding: 24px 20px;
    text-align: center;
    font-size: max(16px, calc(18 / 6.4 * 1vw));
  }
  .service-card__pdf::after {
    right: calc(22 / 6.4 * 1vw);
    width: calc(30 / 6.4 * 1vw);
    height: calc(30 / 6.4 * 1vw);
    min-width: 28px;
    min-height: 28px;
    font-size: 20px;
  }
  .service-card__dx-lead {
    margin-bottom: calc(22 / 6.4 * 1vw);
    padding: calc(18 / 6.4 * 1vw);
    font-size: max(18px, calc(20 / 6.4 * 1vw));
  }

  /* Case Logos */
  .case-logos {
    padding-bottom: calc(84 / 6.4 * 1vw);
  }
  .case-logos__heading {
    margin-bottom: calc(28 / 6.4 * 1vw);
    padding: calc(18 / 6.4 * 1vw);
    font-size: max(16px, calc(18 / 6.4 * 1vw));
  }
  .case-logos__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(14 / 6.4 * 1vw);
  }
  .case-logos__item {
    min-height: calc(76 / 6.4 * 1vw);
  }


  /* Equipment */
  .equipment {
    padding: calc(76 / 6.4 * 1vw) 0 calc(96 / 6.4 * 1vw);
    border-radius: 40px 0 40px 0;
  }

  .equipment::before {
    display: none;
  }
  .equipment .c-sec-head {
    margin-bottom: calc(38 / 6.4 * 1vw);
  }
  .equipment__inner {
    width: calc(100% - 36px);
  }
  .equipment__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(12 / 6.4 * 1vw);
    width: 100%;
    margin-bottom: calc(36 / 6.4 * 1vw);
  }
  .equipment__tab {
    min-height: calc(58 / 6.4 * 1vw);
    font-size: max(16px, calc(18 / 6.4 * 1vw));
  }
  .equipment__tab--resin {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - calc(6 / 6.4 * 1vw));
  }
  .equipment-table__scroll {
    margin-inline: -18px;
    padding-inline: 18px;
    padding-bottom: calc(18 / 6.4 * 1vw);
  }
  .equipment-table {
    min-width: 780px;
  }
  .equipment-table--metal {
    min-width: 1040px;
  }
  .equipment-table thead th {
    padding: calc(17 / 6.4 * 1vw) calc(12 / 6.4 * 1vw);
    font-size: max(14px, calc(16 / 6.4 * 1vw));
  }
  .equipment-table thead th:first-child {
    border-top-left-radius: calc(16 / 6.4 * 1vw);
  }
  .equipment-table tbody th,
  .equipment-table tbody td {
    padding: calc(17 / 6.4 * 1vw) calc(12 / 6.4 * 1vw);
    font-size: max(14px, calc(16 / 6.4 * 1vw));
  }
  .equipment-gallery {
    margin-top: calc(62 / 6.4 * 1vw);
  }
  .equipment-gallery__heading {
    margin-bottom: calc(28 / 6.4 * 1vw);
    padding: calc(18 / 6.4 * 1vw) calc(20 / 6.4 * 1vw);
    font-size: max(16px, calc(18 / 6.4 * 1vw));
  }
  .equipment-gallery__viewport {
    margin-inline: -18px;
  }
  .equipment-gallery__track {
    gap: calc(14 / 6.4 * 1vw);
    padding-inline: 18px;
    padding-bottom: calc(10 / 6.4 * 1vw);
  }
  .equipment-gallery__item {
    flex-basis: calc(250 / 6.4 * 1.7vw);
    min-width: 220px;
  }
  .equipment-gallery__item img {
    border-radius: calc(20 / 6.4 * 1vw);
  }
  .equipment-gallery__item p {
    margin-top: calc(14 / 6.4 * 1vw);
    font-size: max(14px, calc(16 / 6.4 * 1vw));
  }
  .equipment-gallery__progress {
    margin-top: calc(24 / 6.4 * 1vw);
  }

  /* Division */
  .division {
    padding: calc(76 / 6.4 * 1vw) 0 0;
  }
  .division .c-sec-head {
    width: calc(100% - 36px);
    margin-inline: auto;
  }
  .division__deco--arc {
    top: calc(-72 / 6.4 * 1vw);
    right: calc(-214 / 6.4 * 1vw);
    width: calc(560 / 6.4 * 1vw);
    min-width: 360px;
  }
  .division__deco--circle {
    top: calc(370 / 6.4 * 1vw);
    left: calc(-34 / 6.4 * 1vw);
    width: calc(248 / 6.4 * 1vw);
  }
  .division__chart-wrap {
    width: calc(100% - 36px);
    margin-top: calc(58 / 6.4 * 1vw);
    padding-bottom: 50px;
  }
  .division__chart-wrap::before {
    left: -4%;
    width: 40.5%;
}
  .division__chart-scroll {
    position: relative;
    overflow: visible;
    z-index: 0;
  }
  .division__chart-wrap::after {
    bottom: -37%;
    right: -4%;
    width: 26.9%;
}
  .division__person {
    right: calc(-8 / 6.4 * 1vw);
    bottom: calc(-20 / 6.4 * 1vw);
    width: calc(112 / 6.4 * 1vw);
    min-width: 70px;
  }
  .division .service-item,
  .division .service-item:last-child {
    border-radius: calc(22 / 6.4 * 1vw) calc(22 / 6.4 * 1vw) 0 0;
  }
  .division .service-item--active {
    border-radius: calc(22 / 6.4 * 1vw) calc(22 / 6.4 * 1vw) 0 0;
    border-top-left-radius: calc(22 / 6.4 * 1vw);
    border-top-right-radius: calc(22 / 6.4 * 1vw);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: calc(28 / 6.4 * 1vw) 0 calc(var(--service-overlap) + 48px);
  }
  .division .service-item:last-child.service-item--active {
    padding-bottom: calc(var(--service-after-overlap) + 48px);
  }
  .division .service-item__button {
    min-height: 0;
    padding-inline: calc(30 / 6.4 * 1vw);
    gap: calc(14 / 6.4 * 1vw);
  }
  .division .service-item--active .service-item__button {
    height: auto;
    min-height: calc(var(--service-collapsed-slot) - var(--service-overlap));
    padding-bottom: calc(26 / 6.4 * 1vw);
  }
  .division .service-item:not(.service-item--active) .service-item__button {
    height: calc(var(--service-collapsed-slot) - var(--service-overlap));
    min-height: calc(var(--service-collapsed-slot) - var(--service-overlap));
  }
  .division .service-item__icon {
    width: calc(40 / 6.4 * 1vw);
    height: calc(40 / 6.4 * 1vw);
    min-width: 28px;
    min-height: 28px;
  }
  .division .service-item__title {
    font-size: max(16px, calc(20 / 6.4 * 1vw));
    line-height: 1.45;
  }
  .division .service-item__body {
    margin-inline: calc(30 / 6.4 * 1vw);
    padding: 0;
  }
  .division .service-item__content {
    padding-top: calc(24 / 6.4 * 1vw);
  }
  .division .service-item__text {
    font-size: max(16px, calc(16 / 6.4 * 1vw));
    line-height: 1.9;
  }

}

/* ==========================================================================
   事業内容（division）のアコーディオン：画面幅ごとの見出し高さ・かぶり量
   FAQ と同じ文書フロー開閉。見出しは「実際に見えている幅」の上下中央に置く。
   ========================================================================== */
.division .service__items {
  /* 見える見出し帯 126px + かぶり 40px（旧 min-height:126px に合わせる） */
  --service-collapsed-slot: 166px;
  --service-overlap: 40px;
  --service-after-overlap: 40px;
  /* 採用へ食い込ませ、最下部の空きを抑える */
  margin-bottom: calc(var(--service-after-overlap) * -1);
}

/* 見出しは 見えている幅（カード高さ − 次のカードのかぶり分）の中央に */
.division .service-item:not(.service-item--active) .service-item__button {
  height: calc(var(--service-collapsed-slot) - var(--service-overlap));
  min-height: calc(var(--service-collapsed-slot) - var(--service-overlap));
  align-items: center;
}

.division .service-item--active .service-item__button {
  height: auto;
  min-height: calc(var(--service-collapsed-slot) - var(--service-overlap));
}

/* 開いたカードの下側は次のカード／採用に隠れる。下角は丸めない */
.division .service-item--active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* 一番下の閉じたタブ：見出し帯だけ。余分な下余白は付けない */
.division .service-item:last-child:not(.service-item--active) {
  padding-bottom: 0;
}

.division .service-item:last-child:not(.service-item--active) .service-item__button {
  height: calc(var(--service-collapsed-slot) - var(--service-overlap));
  min-height: calc(var(--service-collapsed-slot) - var(--service-overlap));
  margin-bottom: 0;
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .division .service__items {
    --service-collapsed-slot: 112px;
    --service-overlap: 16px;
    --service-after-overlap: 40px;
  }
}

/* スマホ */
@media screen and (max-width: 767px) {
  .division .service__items {
    --service-collapsed-slot: 126px;
    --service-overlap: 16px;
    --service-after-overlap: 46px;
  }

  .division .service-item:not(.service-item--active) .service-item__button {
    height: calc(var(--service-collapsed-slot) - var(--service-overlap));
    min-height: calc(var(--service-collapsed-slot) - var(--service-overlap));
  }
}
