@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: 800px;
}



/* ==========================================
   技術ページ共通 ナビゲーションリンク
   ========================================== */
.tech-nav {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 25px;
}

/* 基本カード枠（共通） */
.tech-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 14px;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-content {
  display: flex;
  flex-direction: column;
}

/* 他ページへのリンク（ホバー時の変化をはっきり） */
a.tech-nav-item:hover {
  border-color: #2b6cb0;
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

a.tech-nav-item:hover .nav-label {
  color: #2b6cb0;
}

a.tech-nav-item:hover .nav-arrow {
  transform: translateX(3px); /* 矢印が少し右に動く */
  color: #2b6cb0;
}

/* ▼ 現在のページ（Active）：しっかり強調してリンク感を取り除く ▼ */
.tech-nav-item.active {
  background-color: #e6f4ea; /* しっかりわかる緑系背景 */
  border: 2px solid #41964b;  /* 太めの緑枠 */
  cursor: default;
}

/* タイトルとバッジを横並びにするグループ */
.nav-title-group {
  display: flex;
  align-items: center; /* 上下中央揃え */
  gap: 6px;           /* バッジとタイトルの間の余白 */
}
/* 「表示中」バッジ（マージン位置を微調整） */
.nav-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #41964b;
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 1.2;
  margin-bottom: 0; /* 下マージンを解除 */
  white-space: nowrap; /* 改行防止 */
}

/* テキストスタイル */
.nav-label {
  font-size: 0.95rem;
  font-weight: bold;
  color: #333333;
  line-height: 1.3;
}

.tech-nav-item.active .nav-label {
  color: #2e6b35; /* 表示中の文字色 */
}

.nav-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.2;
}

/* 矢印アイコン */
.nav-arrow {
  font-size: 1.1rem;
  font-weight: bold;
  color: #94a3b8;
  margin-left: 8px;
  transition: transform 0.2s, color 0.2s;
}

/* ==========================================
    技術紹介ページ（tech-index.html）専用スタイル
   ========================================== */

/* 全体枠：大きな白いカード */
.section-container {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-top: 15px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* 緑ライン付きの見出し */
.section-title {
  font-size: 1.25rem;
  color: #41964b; /* 青文字 */
  border-left: 5px solid #41964b; /* 左側の緑ライン */
  padding-left: 12px;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

/* 上下に配置するブロック構造（テキスト ? 画像） */
.tech-content-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* テキスト領域 */
.tech-text {
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333333;
}

.tech-text p {
  margin-top: 0;
  margin-bottom: 16px;
}

/* グレー背景の補足説明枠 */
.spec-card {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 10px;
}

.spec-title {
  font-weight: bold;
  color: #2b6cb0; /* 緑タイトル */
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.spec-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.spec-list li {
  margin-bottom: 6px;
  color: #333333;
}

.spec-list li:last-child {
  margin-bottom: 0;
}


/* ------------------------------------------
   下部：画像エリアのスタイル設定
   ------------------------------------------ */

/* �@ 写真2枚並びエリア（恒温恒湿工場用） */
.tech-image-group {
  display: flex;
  gap: 16px;
  width: 100%;
}

/* figure要素のデフォルト余白クリアと幅指定 */
.tech-image-item {
  margin: 0;
  width: calc(50% - 8px); /* 2枚均等配置 */
  max-width: 350px;       /* 設備紹介と同等の横幅上限 */
}

/* 画像本体のスタイル */
.tech-image-item img {
  width: 100%;
  aspect-ratio: 4 / 3;	/* 幅に合わせて4:3の比率で高さを自動維持 */
  object-fit: cover;	/* 比率を保ったまま枠いっぱいにトリミング */
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background-color: #f1f5f9; /* 読み込み前のグレー背景 */
  display: block;
  box-sizing: border-box;
}

/* 画像下の説明文（figcaption） */
.tech-image-item figcaption {
  font-size: 0.82rem;
  color: #555555;
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
}

/* �A 写真1枚単体エリア（大物精密加工用） */
.tech-image-single {
  margin: 0;
  width: 100%;
  max-width: 700px; /* 1枚写真の横幅上限 */
}

.tech-image-single img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background-color: #f1f5f9;
  display: block;
  box-sizing: border-box;
}

.tech-image-single figcaption {
  font-size: 0.82rem;
  color: #555555;
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
}


/* ------------------------------------------
   スマホ・レスポンシブ対応（幅600px以下）
   ------------------------------------------ */
@media (max-width: 600px) {
  /* -- 写真 -- */
  /* 2枚並びをスマホでは1枚ずつ縦並びに切替 */
  .tech-image-group {
    flex-direction: column;
    gap: 12px;
  }

  .tech-image-item {
    width: 100%;
    max-width: 100%;
  }

  .tech-image-single {
    max-width: 100%;
  }

  /* -- ナビゲーションリンク -- */
  /* スマホでは縦並びにしてタップしやすくする */
/* スマホ時は縦並びに変更 */
  .tech-nav {
    flex-direction: column;
    gap: 8px;
  }

  .tech-nav-item {
    padding: 10px 12px;
  }
}

/* ===================================================
   きさげ技術ページ固有スタイル
   =================================================== */

/* 1. テキスト・要素幅調整 */
.kisage-text-full {
  width: 100%;
}

/* 2. 写真配置・上下余白の設定 */
.kisage-image-group {
  display: flex;
  gap: 15px;
  flex-direction: column;
  margin-top: 20px;    /* 写真上の文章との余白 */
  margin-bottom: 24px; /* 写真下の要素との余白 */
}

.kisage-image-single {
  margin-top: 20px;    /* 1枚画像の場合の上余白 */
  margin-bottom: 24px; /* 1枚画像の場合の下余白 */
}

.kisage-image-group figure,
.kisage-image-single figure {
  margin: 0;
}

@media (min-width: 768px) {
  .kisage-image-group {
    flex-direction: row;
  }
  .kisage-image-group figure {
    flex: 1;
  }
}

.kisage-image-group img,
.kisage-image-single img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.kisage-image-group figcaption,
.kisage-image-single figcaption {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 6px;
}

/* 3. スペック・ワンポイントBOX */
.kisage-spec-box {
  background-color: #f7f9fa;
  border-left: 4px solid #1a5b8c;
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 0 4px 4px 0;
}

.kisage-spec-box.kisage-spec-highlight {
  background-color: #f0f7ff;
  border-left-color: #0088cc;
}

.kisage-spec-title {
  font-weight: bold;
  font-size: 1.05rem;
  color: #1a5b8c;
  margin-bottom: 10px;
}

.kisage-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kisage-spec-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 10em 1fr;
}

.kisage-spec-list li::before {
  content: "\25a0"; /* ■ (黒四角) */
  position: absolute;
  left: 0;
  color: #1a5b8c;
  font-size: 0.8rem;
}

.kisage-spec-list li strong {
  white-space: nowrap;
}

.kisage-spec-subtitle {
  margin-top: 20px;
  padding-top: 14px;
  font-size: 1rem;
  font-weight: bold;
  color: #1a5b8c;
}

.kisage-spec-subtext {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 4. 対比カード（セクション2） */
.kisage-comparison-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .kisage-comparison-container {
    flex-direction: row;
  }
}

.kisage-comparison-card {
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.kisage-comparison-card.kisage-card-limit {
  border: 1px solid #e0e0e0;
  background-color: #fafafa;
}

.kisage-comparison-card.kisage-card-advantage {
  border: 2px solid #1a5b8c;
  background-color: #ffffff;
}

.kisage-card-header {
  padding: 12px 16px;
  font-weight: bold;
  text-align: center;
  font-size: 1.05rem;
}

.kisage-card-limit .kisage-card-header {
  background-color: #e8ecef;
  color: #555;
}

.kisage-card-advantage .kisage-card-header {
  background-color: #1a5b8c;
  color: #ffffff;
}

.kisage-card-list {
  padding: 20px;
  margin: 0;
  list-style: none;
  flex-grow: 1;
}

.kisage-card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.kisage-card-limit .kisage-card-list li::before {
  content: "\00d7"; /* × (乗算記号・バツ) */
  position: absolute;
  left: 0;
  color: #d9534f;
  font-weight: bold;
}

.kisage-card-advantage .kisage-card-list li::before {
  content: "\25cb"; /* ○ (白丸) */
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.kisage-card-result {
  padding: 12px 16px;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
}

.kisage-card-limit .kisage-card-result {
  background-color: #f2dede;
  color: #a94442;
}

.kisage-card-advantage .kisage-card-result {
  background-color: #d9edf7;
  color: #31708f;
}

/* ===================================================
   きさげ模様（6個のグリッド）用追加スタイル
   =================================================== */

.kisage-pattern-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #dcdcdc;
}

.kisage-pattern-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 模様写真のグリッド（横3×縦2） */
.kisage-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
  gap: 15px;
}

@media (min-width: 768px) {
  .kisage-pattern-grid {
    grid-template-columns: repeat(3, 1fr); /* PC・タブレットは横3列 */
    gap: 20px;
  }
}

.kisage-pattern-item {
  margin: 0;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  padding: 8px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.kisage-pattern-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* 写真のアスペクト比を統一 */
  object-fit: cover;
  border-radius: 2px;
}

.kisage-pattern-item figcaption {
  font-size: 0.85rem;
  font-weight: bold;
  color: #333;
  margin-top: 8px;
}
/* きさげ技術ページ内の H2 見出しの上に余白を追加 */
.tech-kisage-section h2 {
  margin-top: 45px; /* 上側の余白（好みに合わせて 40px?60px 等で調整） */
}

/* 1番目の H2（ページの最初の見出し）の上余白調整 */
.tech-kisage-section:first-of-type h2 {
  margin-top: 15px; 
}

/* ==========================================================
   検査・精密測定ページ 固有スタイル (kensa-*)
   ========================================================== */

/* セクション全体 */
.kensa-section {
  margin-bottom: 40px;
}

/* セクション見出し */
.kensa-heading {
  font-size: 1.25rem;
  font-weight: bold;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
}

/* 2カラム コンテナ (floatまたはflex組み込み) */
.kensa-container {
  display: block; /* 既存の古い環境・float対応にする場合 */
  overflow: hidden;
  margin-bottom: 20px;
}

/* Flexboxが使用できる場合のレイアウト */
@supports (display: flex) {
  .kensa-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
  }
}

/* 左カラム（テキスト） */
.kensa-text-col {
  width: 58%;
  float: left; /* float併用 fallback */
}

/* 右カラム（画像） */
.kensa-image-col {
  width: 38%;
  float: right; /* float併用 fallback */
}

/* リード文 */
.kensa-description {
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 特徴・仕様枠 */
.kensa-feature-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 15px 18px;
  border-radius: 4px;
}

.kensa-feature-title {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #333;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 4px;
}

.kensa-feature-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.kensa-feature-list li {
  margin-bottom: 6px;
  line-height: 1.5;
  font-size: 0.9rem;
}

.kensa-feature-list li:last-child {
  margin-bottom: 0;
}

/* 画像＆キャプション */
.kensa-figure {
  margin: 0 0 16px 0;
  text-align: center;
}

.kensa-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  display: block;
  margin: 0 auto;
}

.kensa-caption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

/* 右カラムに画像が複数並ぶ場合のギャラリー配置 */
.kensa-gallery .kensa-figure {
  margin-bottom: 12px;
}

/* レスポンシブ対応 (スマホ時1カラム化) */
@media screen and (max-width: 768px) {
  .kensa-text-col,
  .kensa-image-col {
    width: 100%;
    float: none;
    margin-bottom: 20px;
  }
}
/* 単一画像（検査証）用エリア */
.kensa-single-photo {
  margin-top: 20px;
  text-align: center;
}

.kensa-single-photo .kensa-figure {
  margin: 0 auto;
  max-width: 400px; /* 縦長画像が巨大化しないようサイズ制限 */
}
/* 写真3枚を均等に横並びにするクラス */
.kensa-bottom-photos-3 {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.kensa-bottom-photos-3 .kensa-figure {
  flex: 1;
  margin: 0;
}

.kensa-bottom-photos-3 .kensa-img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ表示時は縦並びにする */
@media screen and (max-width: 768px) {
  .kensa-bottom-photos-3 {
    flex-direction: column;
    gap: 16px;
  }

}

