/* =========================================================
   無機繊維廃材の資源循環ページ専用CSS
   business_inorganic-fiber-recycling.css
========================================================= */

/* ▼▼▼ 再生工程フロー（rw-flow） ▼▼▼ */

.rw-flow {
  max-width: 900px;
  margin: 2rem auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.rw-flow h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid #2b7a3d;
  padding-left: 0.6rem;
}

.rw-intro {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.rw-flow-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 各ステップ */
.rw-step {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #fafafa;
}

.rw-step-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.rw-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2b7a3d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.rw-step-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.rw-step-body {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.rw-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: #888;
  margin-top: 0.2rem;
}

/* 画像ギャラリー */
.rw-image-gallery {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.3rem 0 0.2rem;
}

.rw-image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32%;
}

.rw-image-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.rw-image-item p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #444;
}

/* 設備アイコン */
.rw-equipment-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.8rem 0;
}

.rw-equipment {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rw-equipment img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.rw-equipment-label {
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.4rem;
  text-align: center;
}

.rw-equipment-detail {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.2rem;
}

/* 再生製品カード */
.rw-product-section-title {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2b7a3d;
}

.rw-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rw-product-card {
  background: #f7faf7;
  padding: 1rem;
  border-left: 4px solid #2b7a3d;
  border-radius: 6px;
}

.rw-product-card h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: #2b7a3d;
}

.rw-product-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .rw-flow {
    padding: 0 1rem;
  }
  .rw-equipment-row {
    flex-direction: column;
    align-items: center;
  }
  .rw-equipment {
    flex: 1 1 100%;
  }
  .rw-image-gallery {
    flex-wrap: wrap;
  }
  .rw-image-item {
    width: 100%;
  }
  .rw-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* =========================================================
   新モーダルCSS（PC・スマホ両対応）
========================================================= */

/* モーダル背景（暗幕） */
.eqv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .3s ease;
  z-index: 9999;
}

/* モーダル表示時 */
.eqv-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* モーダル本体 */
.eqv-dialog {
  background: #fff;
  width: 90%;
  max-width: 960px;
  max-height: 95vh;
  position: relative;

  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);

  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ヘッダー */
.eqv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.eqv-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.eqv-detail {
  font-size: 0.85rem;
  color: #666;
}

/* 閉じるボタン */
.eqv-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #333;
}

/* 画像コンテナ */
.eqv-images {
  flex: 1;
  min-height: 60vh;
  overflow-x: auto;
  overflow-y: hidden;

  display: flex;
  scroll-snap-type: x mandatory;

  scrollbar-width: none; /* Firefox */
}

.eqv-images::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
}


/* 各画像 */
.eqv-item {
  flex: 0 0 100%;
  scroll-snap-align: center;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 10px;
}

.eqv-item img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

/* 画像がない場合 */
.no-images {
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

/* ▼ ドットインジケーター */
.eqv-indicator {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}

.eqv-indicator .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.eqv-indicator .dot.active {
  background: #2b7a3d;
}