@charset "UTF-8";

/* ==========================================================================
   【EG】全タイヤページ共通スタイルシート（トラクタ／コンバイン／ホイールローダー／フォークリフト）
   ========================================================================== */

/* 1. ベースレイアウト */

.tire-wrapper h2 {
    border: 0;
}

.tire-wrapper {
  margin-bottom: 100px;
  width: 100%;
  max-width: 720px; /* 全体の最大幅 */
  margin-left: auto;  /* 画面中央寄せ */
  margin-right: auto; /* 画面中央寄せ */
  box-sizing: border-box;
}

.tire-wrapper .header-banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tire-wrapper .table-note {
  margin: 10px 0 10px 15px;
  font-size: 0.9rem;
  color: #333;
}

/* 2. ナビゲーションボタン (全端末で常に2列表示) */
.tire-wrapper .nav-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 20px auto;
  padding: 0;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

.tire-wrapper .nav-buttons .nav-item {
  flex: 0 0 calc(50% - 6px);
  max-width: 290px;
  box-sizing: border-box;
}

.tire-wrapper .nav-buttons .nav-item a {
  display: block;
  width: 100%;
}

.tire-wrapper .nav-buttons .nav-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* 3. テーブル＆カードレイアウト共通構造 */
.free-table {
  margin-bottom: 30px;
  padding: 0;
}

.table-container {
  width: 100%;
  max-width: 720px;
  overflow-x: auto;
  margin: 0 auto 15px auto;
}

.free-table table {
  background: #fff;
  border-collapse: collapse;
  width: 100%;
}

.free-table th,
.free-table td {
  border: 1px solid #cccccc;
  box-sizing: border-box;
  font-size: 14px;
  padding: 8px 5px;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

/* カード型グリッド配置（左寄せ配置） */
.container2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* 1段になった時や奇数個の端数を左寄せ */
  gap: 16px;
  margin: 0 auto 20px auto;
  width: 100%;
  max-width: 720px;
}

.item2 {
  flex: 0 0 calc(50% - 8px); /* PCで2列表示 */
  max-width: calc(50% - 8px);
  box-sizing: border-box;
}

.card-spec-table th {
  background-color: #596675;
  font-weight: bold;
  color: #ffffff;
}

.feature-text {
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
}

/* テーブル内の画像サイズ制御 */
.spec-feature-table td img,
.card-spec-table td img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* 補足案内テーブル専用スタイル（線重なりを防ぎ1本化） */
.info-guide-table {
  border-collapse: collapse;
  border: 1px solid #333333;
}

.info-guide-table th,
.info-guide-table td {
  border: 1px solid #333333;
}

.info-guide-table .guide-header {
  background-color: #333333;
  color: #ffffff;
  font-weight: bold;
  text-align: left;
  padding: 8px 12px;
}

.info-guide-table .type-cell {
  background-color: #f5f5f5;
  color: #333333;
  font-weight: bold;
  width: 30%;
}

/* テーブルヘッダー配色設定 */
.free-combine thead {
  background: #596675;
}

.free-table thead th {
  color: #fff;
  font-weight: bold;
}

.free-table td.tako {
  text-align: left;
  white-space: normal;
}

.feature-header {
  background-color: #cccccc;
}

/* リンクスタイル */
.free-table a:link,
.free-table a:visited {
  color: #0033cc;
  text-decoration: none;
  font-weight: bold;
}

.free-table a:hover {
  color: #0033cc;
  text-decoration: underline;
  font-weight: bold;
}

/* 4. 画像ホバーアクション */
.tire-wrapper img {
  border: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tire-wrapper a:hover img {
  opacity: 0.8;
  transform: translateY(3px);
}

/* 5. モバイル対応 (768px以下) */
@media screen and (max-width: 768px) {
  .tire-wrapper .nav-buttons {
    gap: 8px;
  }
  
  .tire-wrapper .nav-buttons .nav-item {
    flex: 0 0 calc(50% - 4px);
  }

  .item2 {
    flex: 0 0 100%; /* スマホ時・1段時は幅100%で左寄せ */
    max-width: 100%;
  }

  .table-container {
    max-width: 100%;
  }

  .info-guide-table .type-cell {
    width: 40%;
  }
}