.ca-box .wp-block-image {
  margin: auto;
}

.ca-box {
  margin-bottom: 2.5rem;
}

.wp-block-image {
  max-width: 100%;
  width: 65%;
  margin: auto;
  margin-bottom: 45px;
}

.item-header-01 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.item-after {
  margin: auto;
  text-align: center;
}

.tm3_pt3 .ttl {
  margin: 0 0 15px;
}

.tm3_pt3 .ttl-en {
  position: relative;
  padding: 1.5rem 1rem;
  font-size: 31px;
  line-height: 2;
}

.tm3_pt3 .ttl-en:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  content: "";
  background-image: -webkit-repeating-linear-gradient(135deg, #000, #000 1px, transparent 2px, transparent 5px);
  background-image: repeating-linear-gradient(-45deg, #000, #000 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.single-btn {
  max-width: 200px;
  width: 100%;
  margin: auto;
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 769px) {
  .wp-block-image {
    width: 85%;
    margin-bottom: 15px;
  }

  .item-header-01 {
    font-size: 0.8rem;
  }

  .tm3_pt3 .ttl-en {
    font-size: 20px;
    line-height: 0.5;
  }

  .single-btn {
    width: 55%;
  }
}

/*
.spe {
    max-width: 100%;
    width: 50%;
    margin: auto;
    text-align: center;
    margin-bottom: 1rem;
}
*/

.spe {
  max-width: 100%;
  width: 30%;
  margin: auto;
  text-align: center;
  margin-bottom: 1rem;
}

.spe span {
  border: 1px solid #333;
  padding: 0 5px;
  font-weight: bold;
}

.ca-box p {
  text-align: center;
}

.spe .manu {
  text-align: left;
}

.spe .mode {
  text-align: left;
}

.spe .yea {
  text-align: left;
}

.spe .pri {
  text-align: left;
}

/* リスト全体を中央に寄せ、左右に余白を作る */
main#contents .company-block-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 15px !important;

  /* 【重要】ここから追加：幅の制限と中央揃え */
  max-width: 1100px !important; /* コンテンツの最大幅を制限（サイトに合わせて調整可） */
  margin: 40px auto !important; /* 上下40px、左右は自動（中央寄せ） */
  padding: 0 20px !important; /* スマホで見るときの画面端との隙間 */

  list-style: none !important;
}

/* 各リスト項目のスタイル（高さや装飾はそのまま） */
main#contents .company-block-list li {
  background: #f9f9f9 !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  min-height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: bold !important;
  color: #333 !important;
  margin-bottom: 0 !important;
  transition: all 0.3s ease !important;
}

/* リンク付き項目のスタイル */
main#contents .company-block-list li.has-link {
  border: 1px solid #004898 !important;
  padding: 0 !important;
  background: #fff !important;
}

main#contents .company-block-list li.has-link a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
  color: #004898 !important;
  min-height: 70px !important;
}

/* ホバー時の挙動 */
main#contents .company-block-list li.has-link:hover {
  background: #eef5ff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-3px) !important;
}

/* スマホ表示（横幅が狭い時）の調整 */
@media screen and (max-width: 768px) {
  main#contents .company-block-list {
    grid-template-columns: repeat(2, 1fr) !important; /* スマホで2列 */
    gap: 10px !important;
    margin: 20px auto !important; /* スマホでは上下の余白を少し狭く */
  }
  main#contents .company-block-list li {
    font-size: 13px !important;
    min-height: 60px !important;
  }
}
