/* =========================================================
   JRSブロッケージ工法ページ専用CSS（item_jrsblockage.css）
   対象ページ：item_jrsblockage.html
========================================================= */

/* ----------------------------------------
   01. 工程フロー（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;
}

/* ----------------------------------------
   02. 画像ギャラリー
---------------------------------------- */
.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;
}

/* ----------------------------------------
   03. 設備アイコン
---------------------------------------- */
.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;
}

/* ----------------------------------------
   04. 製品紹介グリッド
---------------------------------------- */
.rw-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.rw-product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.rw-product-section-title {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2b7a3d;
}

/* ----------------------------------------
   05. 比較表（ページ固有）
---------------------------------------- */
table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 15px;
  background: #fff;
}

table.comparison-table th,
table.comparison-table td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  vertical-align: top;
}

table.comparison-table th {
  background: #f5f5f5;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

table.comparison-table tr:nth-child(even) {
  background: #fafafa;
}

/* スマホでテーブルが画面外に出ないようにする */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 600px; /* テーブルが潰れないように最低幅を確保 */
}


/* ----------------------------------------
   06. レスポンシブ
---------------------------------------- */
@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%;
  }
}

/* ----------------------------------------------------
   見出し位置調整
---------------------------------------------------- */
/* h2 の位置だけを調整する（caption は触らない） */
#undermain .caption-inner {
  position: relative;
  top: -45px; /* ← ここで “あと1行ぶん上” に調整できる */
}

/* スマホはさらに上へ */
@media (max-width: 640px) {
  #undermain .caption-inner {
    top: -65px;
  }
}


/* ----------------------------------------
   セクション区切り（hr強化）
---------------------------------------- */
article.article-block hr {
  border: none;
  border-top: 3px solid #2b7a3d; /* セクションタイトルと同系色で強調 */
  margin: 40px 0 32px;           /* 上40px / 下32px で読みやすい区切り */
  opacity: 0.9;                  /* 少し濃くして存在感アップ */
}

