@charset "UTF-8";
/* ==========================================================================
   施工事例（カルーセル） — Figma 10202:20258 / 1440x946
   カード 390x509 / gap35 / 画像枠は #D9D9D9 のプレースホルダー（写真差し替え要）
   ========================================================================== */

.jirei {
  position: relative;
  padding: 100px 0;
  background: var(--c-white);
  overflow: hidden;
}

/* --- 見出し --- */
.jirei__head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: var(--w-wide);
  margin: 0 auto 64px;
  padding-inline: 100px;
}

.jirei__lead {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--c-text);
  text-align: center;
}

/* 見出し左右の工場イラスト（カンプ実測 y149 / 124x124） */
.jirei__deco {
  position: absolute;
  top: 49px;
  width: 124px;
  height: 124px;
}
.jirei__deco--left  { left: 211px; }
.jirei__deco--right { left: 905px; }

/* --- 自動で流れるマーキー（同一リスト2本を -50% 動かす） --- */
.jirei__carousel {
  position: relative;
  overflow: hidden;
}

.jirei__track {
  display: flex;
  width: max-content;
}

.jirei__list {
  display: flex;
  flex: none;
  gap: 35px;
  padding-right: 35px;   /* 折返し部の間隔を本文と同じにする */
}

/* 停止ボタン（WCAG 2.2.2: 5秒超の自動動作には停止手段が必須） */
.jirei__pause {
  position: absolute;
  right: 24px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-border-mid);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--c-main);
}
.jirei__pause-icon--play { display: none; }
.jirei__carousel.is-paused .jirei__pause-icon--pause { display: none; }
.jirei__carousel.is-paused .jirei__pause-icon--play { display: block; }

/* --- カード --- */
.case {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 390px;
  scroll-snap-align: start;
}

.case__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 32px;
  /* 枠線はレイアウトを侵食しないよう inset shadow で描く（Figmaのstrokeと同挙動） */
  box-shadow: inset 0 0 0 1px var(--c-border-mid);
  border-radius: 8px;
  background: var(--c-white);
  overflow: hidden;
}

/* 写真枠。支給写真は縦・横・パノラマが混在するため
   contain で比率を保つ（cover だと縦写真の被写体が大きく切れる） */
.case__thumb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 260px;
  background: var(--c-base-gray);
  overflow: hidden;
}
.case__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case__content {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  padding-inline: 24px;
}

.case__title {
  min-height: 56px;      /* 2行ぶんを確保してカード高さを揃える */
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.8px;
  color: var(--c-text);
}

.case__desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--c-text);
}

.case__chips {
  display: flex;
  gap: 8px;
  margin-top: auto;      /* チップは下端そろえ（カンプ挙動） */
}

.case__chip {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--c-base-green);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.28px;
  color: var(--c-text);
  white-space: nowrap;
}

/* --------------------------------------------------
   中間幅（769〜1365px）
   -------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1365px) {
  .jirei { padding: 72px 0; }
  .jirei__head { padding-inline: 40px; margin-bottom: 40px; }
  .jirei__deco { display: none; }
  .jirei__pause { right: 16px; }
}

/* --------------------------------------------------
   SP（〜768px）
   -------------------------------------------------- */
@media (max-width: 768px) {
  .jirei { padding: 48px 0 56px; }
  .jirei__head {
    gap: 14px;
    margin-bottom: 24px;
    padding-inline: var(--sp-pad);
  }
  .jirei__lead { font-size: 14px; letter-spacing: 0.28px; text-align: left; }
  .jirei__deco { display: none; }

  .jirei__list { gap: 16px; padding-right: 16px; }
  .jirei__pause { right: 12px; bottom: 12px; width: 36px; height: 36px; }

  .case { width: 280px; }
  .case__body { padding-bottom: 20px; }
  .case__thumb { height: 200px; }
  .case__content { margin-top: 16px; padding-inline: 16px; }
  .case__title { min-height: 0; font-size: 16px; letter-spacing: 0.32px; }
}
