@charset "UTF-8";

/* ==========================================
   1. リセット & 基本設定
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f4f6f8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #004b8d;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

a:hover {
  color: #002244;
}


/* ==========================================
   2. レイアウト（全体構造・右側コンテンツ）
   ========================================== */
.contentarea {
  flex: 1;
  min-width: 0;
  padding-right: 30px;
  max-width: 1000px;
}

.content-menu-gra,
.content-menuarea-equipment {
  width: 100%;
  max-width: none;
}

.content-menuarea-equipment {
  padding: 0;
  border: none; /* 線を削除 */
  border-left: none; /* 左線を個別に消す場合 */
  margin-bottom: 30px;
}

/* ==========================================
   ページヘッダー（ヘッダータイトルエリア）
   ========================================== */
.page-header-minimal {
  padding: 5px 0 20px 0;
  margin-bottom: 25px;
  border-bottom: 1px solid #cbd5e1; /* 薄いグレーの下線 */
}

.page-title-minimal {
  font-size: 1.6rem;
  color: #003366;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.page-desc-minimal {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}
/* ==========================================
   3. 各セクション共通カード & 見出しスタイル
   ========================================== */
/* 外枠カード（.content-card と .section-card を同一デザインで統一） */
.content-card,
.section-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 30px;
  padding: 25px 30px;
  border: 1px solid #e2e8f0;
}

/* 全セクション共通の大見出し（青の左線がついたデザイン） */
.section-title {
  font-size: 1.3rem;
  color: #003366;
  border-left: 5px solid #005596;
  padding-left: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* ==========================================
   4. 写真・キャプション & スペック表
   ========================================== */
/* 写真とキャプションの表示ボックス（大型研削盤・大型三次元測定機等） */
.content-img-box {
  margin: 15px 0 20px;
  text-align: center;
}

.content-img-box img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: block;
  margin: 0 auto 6px;
}

.content-img-box figcaption {
  font-size: 0.85rem;
  color: #666666;
  text-align: center;
  line-height: 1.4;
}

/* スペック表（大型研削盤・大型三次元測定機等） */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 1.05rem; /* 0.9rem から 1.05rem に拡大 */
  line-height: 1.5;
}

.spec-table th, 
.spec-table td {
  padding: 12px 16px; /* パディングを少し広げて読みやすく調整 */
  border: 1px solid #e2e8f0;
}

.spec-table th {
  background: #f8fafc;
  color: #334155;
  width: 32%;
  text-align: left;
  font-weight: bold;
}

.spec-table td {
  color: #2d3748;
}


/* ==========================================
   5. 精密加工・組立工場 セクション (factory-grid)
   ========================================== */
.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.factory-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 15px;
}

.factory-img-box {
  margin: 0 0 15px 0;
  text-align: center;
}

.factory-img-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: block;
}

.factory-img-box figcaption {
  font-size: 0.9rem;
  font-weight: bold;
  color: #003366;
  margin-top: 8px;
  text-align: center;
}

.factory-col .spec-table {
  margin-top: 0;
}

.factory-col .spec-table th {
  width: 70%;
  font-size: 0.85rem;
}

.factory-col .spec-table td {
  width: 30%;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
}


/* ==========================================
   6. その他 主要設備一覧 セクション (equipment-grid)
   ========================================== */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 15px;
}

/* 内側のカテゴリカード */
.equipment-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

/* カテゴリ内見出し */
.equipment-item h3 {
  font-size: 1.1rem;
  color: #003366;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d0e1f9;
}

/* リスト領域 */
.equipment-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各設備の行 */
.equipment-item li {
  font-size: 0.95rem;
  padding: 4px 0;
  color: #495057;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.equipment-item li span:first-child {
  flex: 1;
}

.equipment-item li span:last-child {
  color: #495057;
  white-space: nowrap;
  text-align: right;
}

/* 補足・お問い合わせ誘導のCSS例 */
.equipment-contact-note {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
}

.equipment-contact-note p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 12px;
}

/* お問い合わせボタン */
.contact-btn {
  display: inline-block;
  background-color: #2e6034; /* 深めのダークグリーン */
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1px solid #41964b;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

/* ホバー時：縁取りと文字をゴールドに変化させて視線を惹きつける */
.contact-btn:hover {
  background-color: #1e4224;
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* ==========================================
   7. レスポンシブ対応 (スマホ・タブレット表示)
   ========================================== */
@media (max-width: 768px) {
  .contentarea {
    padding-right: 0;
  }

  .content-card,
  .section-card {
    padding: 15px 20px;
  }

  .factory-grid,
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================
   設備紹介エリアの水色ライン（他CSSの指定含む）を上書き削除
   ========================================== */
.page-header-box,
.page-header-box *,
.page-header-box *::before,
.page-header-box *::after {
  border: none !important;
  border-bottom: none !important;
  border-left: none !important;
  background-image: none !important;
  box-shadow: none !important; /* ※枠の影も消す場合は有効 */
}

/* 背景色と角丸・影の設定だけを正しく再適用 */
.page-header-box {
  background-color: #00407a !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}