/* J-FLOOR 使用機器・設備ページ v2.0
   共通仕様書 v2.3 準拠 / 分離版
   共通CSSは変更せず、このページ固有の見た目だけを定義する。
*/

.page-machine .works-loop-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #eef6fb;
  border-bottom: 1px solid rgba(5, 38, 79, .08);
}
.page-machine .works-loop-hero__stage,
.page-machine .works-loop-hero__track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-machine .works-loop-hero__track {
  display: flex;
  width: max-content;
  height: 100%;
  overflow: visible;
  will-change: transform;
  animation: jfWorksCityLoop 160s linear infinite;
}
.page-machine .works-loop-hero__image {
  width: auto;
  height: 100%;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none;
}
@keyframes jfWorksCityLoop {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-machine .works-loop-hero__track { animation: none; }
}
.page-machine .works-loop-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 28%, rgba(255,255,255,.72) 41%, rgba(255,255,255,.18) 58%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 55%, rgba(255,255,255,.20) 100%);
  z-index: 1;
}
.page-machine .works-loop-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-machine .works-loop-hero__content {
  width: min(520px, 46vw);
  padding-left: 18px;
}
.page-machine .works-loop-hero__en {
  margin: 0 0 8px;
  color: #c8a24a;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
}
.page-machine .works-loop-hero h1 {
  color: #05264f;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: .08em;
  margin: 0;
  font-weight: 900;
}
.page-machine .works-loop-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: #c8a24a;
  margin-top: 14px;
}
.page-machine .works-loop-hero__breadcrumb {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  padding: 0;
  z-index: 4;
  font-size: 12px;
}
.page-machine .works-loop-hero__breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  list-style: none;
  white-space: nowrap;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(5,38,79,.10);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(5,38,79,.08);
  backdrop-filter: blur(6px);
}
.page-machine .works-loop-hero__breadcrumb li,
.page-machine .works-loop-hero__breadcrumb a {
  color: rgba(5,38,79,.72);
  text-decoration: none;
}
.page-machine .works-loop-hero__breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(5,38,79,.35);
}

.machine-intro {
  padding: 100px 0 108px;
  background: #fff;
}
.machine-heading {
  margin: 0;
  color: #05264f;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.machine-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 18px auto 0;
  background: #c8a24a;
}
.machine-intro__body {
  max-width: 900px;
  margin: 32px auto 48px;
  text-align: center;
}
.machine-intro__body p {
  margin: 0 0 8px;
  color: #4c5560;
  font-size: 15px;
  line-height: 2;
}
.machine-intro__body p:last-child { margin-bottom: 0; }

.machine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.machine-card {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(240px, 1.1fr);
  align-items: center;
  gap: 12px;
  padding: 28px 24px 24px 28px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8ee;
  overflow: hidden;
}
.machine-card__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.machine-card__no {
  display: block;
  margin: 0 0 8px;
  color: #d9e0e7;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
}
.machine-card h3 {
  margin: 0;
  color: #05264f;
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.2;
  font-weight: 900;
}
.machine-card__en {
  margin: 7px 0 18px;
  color: #738092;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.machine-card__text {
  margin: 0 0 24px;
  color: #3f4a55;
  font-size: 14px;
  line-height: 1.9;
}
.machine-card__image {
  min-width: 0;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.machine-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
}
.machine-card:hover .machine-card__image img,
.machine-card:focus-visible .machine-card__image img {
  transform: scale(1.06);
}
.machine-card__button {
  pointer-events: none;
}

.machine-support {
  min-height: 330px;
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  gap: 24px;
  align-items: center;
  padding: 36px;
  background: #f4f7fa;
  border: 1px solid #e1e7ed;
}
.machine-support__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #05264f;
  font-size: 40px;
  background: #fff;
  border: 1px solid #e1e7ed;
}
.machine-support h3 {
  margin: 0 0 14px;
  color: #05264f;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 900;
}
.machine-support p {
  margin: 0 0 22px;
  color: #4d5863;
  font-size: 14px;
  line-height: 1.9;
}

.machine-points {
  padding: 72px 0;
  background: #f4f7fa;
  border-top: 1px solid #e7ecf1;
}
.machine-points__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.machine-point {
  position: relative;
  min-height: 150px;
  padding: 8px 30px;
  border-right: 1px solid #dbe2e9;
}
.machine-point:first-child { padding-left: 0; }
.machine-point:last-child {
  padding-right: 0;
  border-right: 0;
}
.machine-point__mark {
  display: block;
  margin-bottom: 11px;
  color: #c8a24a;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
}
.machine-point h2 {
  margin: 0 0 12px;
  color: #05264f;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 900;
}
.machine-point p {
  margin: 0;
  color: #59636e;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .machine-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .machine-card__image {
    height: 230px;
    order: -1;
  }
  .machine-points__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0;
  }
  .machine-point {
    padding: 24px;
    border-bottom: 1px solid #dbe2e9;
  }
  .machine-point:nth-child(2) { border-right: 0; }
  .machine-point:nth-child(3),
  .machine-point:nth-child(4) { border-bottom: 0; }
  .machine-point:first-child { padding-left: 24px; }
  .machine-point:last-child { padding-right: 24px; }
}

@media (max-width: 767px) {
  .page-machine .works-loop-hero {
    height: 250px;
  }
  .page-machine .works-loop-hero__shade {
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 48%, rgba(255,255,255,.18) 100%);
  }
  .page-machine .works-loop-hero__content {
    width: 72%;
    padding-left: 0;
  }
  .page-machine .works-loop-hero__en {
    font-size: 12px;
  }
  .page-machine .works-loop-hero h1 {
    font-size: 30px;
    letter-spacing: .04em;
  }
  .page-machine .works-loop-hero__breadcrumb {
    left: 0;
    bottom: 12px;
    max-width: calc(100% - 18px);
  }
  .page-machine .works-loop-hero__breadcrumb ol {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .machine-intro {
    padding: 72px 0 80px;
  }
  .machine-intro__body {
    margin: 26px auto 36px;
    text-align: left;
  }
  .machine-intro__body p {
    font-size: 14px;
    line-height: 1.9;
  }
  .machine-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .machine-card {
    padding: 22px;
  }
  .machine-card__image {
    height: 220px;
  }
  .machine-card__no {
    font-size: 34px;
  }
  .machine-card h3 {
    font-size: 26px;
  }
  .machine-support {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .machine-support h3 {
    font-size: 23px;
  }
  .machine-points {
    padding: 54px 0;
  }
  .machine-points__grid {
    grid-template-columns: 1fr;
  }
  .machine-point,
  .machine-point:first-child,
  .machine-point:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid #dbe2e9;
  }
  .machine-point:last-child { border-bottom: 0; }
}

/* v1.1 */
.machine-support__icon img{display:block;width:56px;height:56px;object-fit:contain}
.machine-point__icon{display:block;width:58px;height:58px;object-fit:contain;margin:0 auto 18px}
@media (max-width: 767px){.machine-point__icon{width:50px;height:50px;margin-bottom:14px}}


/* v1.3：機器選定補助枠のアイコンをイメージ画像に合わせて角丸カード化 */
.machine-support__icon {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(5, 38, 79, .12);
}
.machine-support__icon img {
  width: 54px;
  height: 54px;
}
@media (max-width: 767px) {
  .machine-support__icon {
    width: 82px;
    height: 82px;
    border-radius: 16px;
  }
  .machine-support__icon img {
    width: 50px;
    height: 50px;
  }
}

/* v1.3：機器選定補助枠のアイコンを見出しの真横へ配置 */
.machine-support {
  align-items: start;
}
.machine-support__icon {
  align-self: start;
  margin-top: 0;
}
@media (max-width: 767px) {
  .machine-support {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .machine-support__icon {
    align-self: start;
  }
}


/* v1.4: lower four feature items - icon beside heading, description position retained */
.machine-point__heading{display:flex;align-items:center;gap:16px;margin:0 0 12px}
.machine-point__heading .machine-point__icon{flex:0 0 auto;display:block;width:58px;height:58px;object-fit:contain;margin:0}
.machine-point__heading h2{margin:0}
@media (max-width:767px){
  .machine-point__heading{gap:14px;margin-bottom:12px}
  .machine-point__heading .machine-point__icon{width:50px;height:50px;margin:0}
}

/* v1.8：機器選定補助カード本文を左揃え（本文ブロック自体は中央配置） */
.machine-support {
  min-height: 330px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  column-gap: 24px;
  row-gap: 26px;
  padding: 42px 36px;
  text-align: center;
}
.machine-support__icon {
  flex: 0 0 92px;
  align-self: center;
  margin: 0;
}
.machine-support > div:last-child {
  display: contents;
}
.machine-support h3 {
  flex: 0 1 auto;
  align-self: center;
  margin: 0;
  white-space: nowrap;
  text-align: left;
}
.machine-support p {
  flex: 0 0 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 767px) {
  .machine-support {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 16px;
    row-gap: 22px;
    padding: 32px 20px;
  }
  .machine-support__icon {
    flex-basis: 82px;
  }
  .machine-support h3 {
    font-size: 21px;
    white-space: normal;
  }
  .machine-support p {
    max-width: 100%;
  }
}

/* v2.2: 元画像13枚を余白トリミングして直接表示。高さ基準＋自然幅で密に永久横流れ */
.page-machine .machine-hero__stage {
  overflow: hidden;
  background: #fff;
}
.page-machine .machine-hero__track {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: max-content;
  height: 100%;
  overflow: visible;
  will-change: transform;
  animation: jfMachineHeroLoop 160s linear infinite;
}
.page-machine .machine-hero__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 34px;
  height: 100%;
  padding-right: 34px;
}
.page-machine .machine-hero__item {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.page-machine .machine-hero__item img {
  display: block;
  width: auto;
  height: 258px;
  max-width: none;
  max-height: calc(100% - 20px);
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}
@keyframes jfMachineHeroLoop {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@media (max-width: 960px) {
  .page-machine .machine-hero__set { gap: 28px; padding-right: 28px; }
  .page-machine .machine-hero__item img { height: 238px; max-height: calc(100% - 18px); }
}
@media (max-width: 640px) {
  .page-machine .machine-hero__set { gap: 22px; padding-right: 22px; }
  .page-machine .machine-hero__item img { height: 216px; max-height: calc(100% - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .page-machine .machine-hero__track { animation: none; }
}
