/* 検索フォーム関係 */
:root {
  --base-bg-color: #f4f7f9;
  --container-bg-color: #ffffff;
  --primary-text-color: #2c3e50;
  --secondary-text-color: #7f8c8d;
  --border-color: #e6eaee;
  --accent-color: #3498db;
  --accent-hover-color: #2980b9;
  --selected-color: #e74c3c;
  --tag-bg-color: #ecf0f1;
  --tag-text-color: #34495e;
  --action-btn-bg-color: #f8f9fa;
  --action-btn-hover-bg-color: #e9ecef;
}

.main-container {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 2.5rem;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-text-color);
}
h1 + p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--secondary-text-color);
  margin-bottom: 3rem;
}
.content-wrapper {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 3rem;
  align-items: flex-start;
}

/* SVGマップエリアのスタイル */
.map-container {
  position: sticky;
  top: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--container-bg-color);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
#ishikawa-map {
  width: 100%;
  height: auto;
}

/* SVG内の各エリアグループにカーソルとトランジションを設定 */
#ishikawa-map .area {
  cursor: pointer;
  transition: opacity 0.3s ease;
}
#ishikawa-map .area:hover {
  opacity: 0.8;
}

/* 選択されたエリアのスタイル */
#ishikawa-map .area.selected > path {
  fill: var(--accent-color) !important; /* SVG内の色指定を強制上書き */
  stroke: var(--accent-hover-color);
  stroke-width: 2px;
}

/* 検索フォームエリア以降のCSS */
.search-form-container {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  background: var(--container-bg-color);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.form-section h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
}
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.custom-checkbox {
  display: block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  transition: color 0.3s ease;
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.custom-checkbox .checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.custom-checkbox:hover input ~ .checkmark {
  background-color: #ddd;
}
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
.search-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--accent-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1.5rem;
}
.search-button:hover {
  background-color: var(--accent-hover-color);
  transform: translateY(-2px);
}
.results-container {
  margin-top: 3rem;
  grid-column: 1 / -1;
}
.results-container h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}
.results-container h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}
#results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.result-card {
  background-color: var(--container-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.card-content {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  flex-grow: 1;
}
.card-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
}
.card-content .address {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--secondary-text-color);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.card-content .address i {
  color: var(--accent-color);
  padding-top: 4px;
}
.card-tags {
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #fdfdfd;
  border-top: 1px solid var(--border-color);
}
.tag {
  background-color: var(--tag-bg-color);
  color: var(--tag-text-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}
.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border-color);
  border-top: 1px solid var(--border-color);
}
.action-btn {
  background-color: var(--action-btn-bg-color);
  color: var(--primary-text-color);
  text-decoration: none;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.action-btn i {
  margin-right: 0.5rem;
}
.action-btn:hover {
  background-color: var(--action-btn-hover-bg-color);
}
#no-results {
  text-align: center;
  padding: 4rem;
  color: var(--secondary-text-color);
  font-size: 1.1rem;
}
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .map-container {
    position: static;
  }
}
@media (max-width: 600px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2rem;
  }
  .main-container {
    padding: 1.5rem;
  }
}
/* */
.clr-wh,
.clr-wh:not(.kazari-en) * {
  color: #fff;
}
.subPage_content {
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.subPage_content .inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (max-width: 47.9375em) {
  .subPage_content .inner {
    gap: 2.2857142857rem;
  }
}
.subPage_content--bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.subPage_content-en {
  display: block;
  font-size: 6.5rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0;
}
@media (max-width: 47.9375em) {
  .subPage_content-en {
    font-size: 3.5714285714rem;
  }
}
.subPage_content-jp {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-align: left;
}
@media (max-width: 47.9375em) {
  .subPage_content-jp {
    font-size: 1rem;
  }
}
.subPage_content:not(.subPage_content-has_bg) {
  padding-top: 2rem;
}
@media (max-width: 47.9375em) {
  .subPage_content:not(.subPage_content-has_bg) {
    padding-top: 1.7142857143rem;
  }
}
.subPage_content:not(.subPage_content-has_bg) .breadcrumbs {
  text-align: center;
}
.subPage_content-has_bg {
  height: 43.75rem;
}
@media (max-width: 47.9375em) {
  .subPage_content-has_bg {
    height: 27.8571428571rem;
  }
}
.subPage_content-has_bg > .inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-top: 5.8125rem;
  padding-bottom: 7.5rem;
}
@media (max-width: 47.9375em) {
  .subPage_content-has_bg > .inner {
    padding-top: 6.1428571429rem;
    padding-bottom: 5.7142857143rem;
  }
}

/* 詳細ページ */

/* --- 共通の見出しスタイル --- */
h2 {
  text-align: center;
  font-size: 2.5rem; /* 40px相当 */
  margin-bottom: 60px;
  letter-spacing: 2px;
  color: #222;
}
h2 .sub-heading {
  display: block;
  font-size: 1rem; /* 16px相当 */
  font-weight: normal;
  color: #888;
  margin-top: 5px;
  letter-spacing: 1px;
}

/* --- 1. ファーストビュー --- */
.hero-section-split {
  display: flex; /* Flexboxで左右に並べる */
  height: 50vh; /* 画面の高さに合わせる */
  min-height: 600px; /* 最小の高さを設定 */
  background-color: #f8f8f8; /* 右カラムの背景色 */
}

.hero-image-column {
  flex: 1; /* 幅を50%に設定 */
  background-image: url("path/to/exterior-image.jpg");
  background-size: cover;
  background-position: center;
}

.hero-image-column img {
  width: auto;
  height: 100%;
}

.hero-text-column {
  flex: 1; /* 幅を50%に設定 */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 3rem; /* 64px相当 */
  font-size: 2.4rem;
  margin: 0 0 10px 0;
  line-height: 1.2;
  color: #111;
}

.hero-text p {
  font-size: 1.5rem; /* 24px相当 */
  color: #555;
  font-weight: 300;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* --- 2. 概要セクション --- */
.overview-section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-section h2 {
  color: #32cd32;
  text-shadow: #bbdbf3 1px 0 10px;
}
.features-section-light h2 {
  color: #0000cd;
  text-shadow: #bbdbf3 1px 0 10px;
}

.cta-section h2 {
  color: #001e43;
  text-shadow: #bbdbf3 1px 0 10px;
}
.overview-grid {
  display: grid;
  /* 1frの幅のカラムを自動で配置し、最小幅は250pxとする */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px; /* 細い罫線のような隙間 */
  background-color: #e0e0e0; /* 隙間の色 = 罫線の色 */
  border: 1px solid #e0e0e0;
}
/* ★マップ用のスタイルを追加★ */
.overview-item.map-container {
  grid-column: 1 / -1; /* グリッドの最初から最後まで、つまり全幅を占める */
  padding: 0; /* paddingをリセット */
}
.overview-item.map-container h4 {
  padding: 20px 25px 0; /* マップの上の余白を調整 */
}

.overview-item.map-container iframe {
  width: 100%;
  height: 350px; /* マップの高さ */
  display: block; /* 余分な隙間をなくす */
  margin-top: 15px; /* 見出しとの間の余白 */
}
.overview-item {
  background-color: #fff;
  padding: 20px 25px;
}

/* 「倉庫床面積」の項目を横に広く見せる */
.overview-item.large {
  grid-column: span 2; /* 2カラム分の幅を取る */
}

.overview-item h4 {
  font-size: 0.9rem; /* 14.4px相当 */
  color: #777;
  margin: 0 0 8px 0;
  font-weight: normal;
}

.overview-item p {
  font-size: 1.2rem; /* 19.2px相当 */
  font-weight: bold;
  color: #222;
  margin: 0;
}

/* --- 3. 備考セクション (ダークモード) --- */
.features-section {
  background-color: #1a1a2e; /* 濃紺 */
  color: #fff;
  padding: 100px 5%;
  text-align: center;
}
.features-section h2 {
  color: #fff;
}
.features-section .sub-heading {
  color: rgba(255, 255, 255, 0.7);
}

.features-grid {
  display: grid;
  /* 150px幅のカラムを中央に配置 */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px 15px;
  border-radius: 8px;
  min-height: 150px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  filter: invert(1) brightness(2); /* 黒いSVGアイコンを白にする */
}

.feature-card p {
  margin: 0;
  font-weight: bold;
}

/* --- 4. 図面セクション --- */
.cta-section {
  padding: 100px 20px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 15px 50px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  background-color: #0056b3; /* 例：ブランドカラー */
  color: #fff;
  font-size: 1.1rem;
}
.cta-button:hover {
  background-color: #003d82;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- レスポンシブ対応 (スマホ向け) --- */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  .hero-section-split {
    flex-direction: column; /* 上下に並べる */
    height: auto;
  }
  .hero-image-column {
    height: 50vh; /* 画像の高さを画面の半分に */
    min-height: 300px;
  }
  .hero-text-column {
    padding: 60px 20px;
  }
  .hero-text h1 {
    font-size: 2.5rem;
    font-size: 1.85rem;
  }
  .hero-text p {
    font-size: 1.2rem;
  }

  .overview-item.large {
    grid-column: span 1; /* スマホでは1カラムに戻す */
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr); /* スマホでは2列にする */
    gap: 15px;
  }
}

/* ★ 3. マップセクション (新規追加) ★ */
.map-section {
  /* iframeの親要素には特別なスタイルは不要だが、セクションとして定義しておく */
  /* 上下の余白も不要ならこれだけでOK */
}
.map-section iframe {
  display: block; /* iframe下の余分な隙間を消すため */
  width: 100%;
  height: 450px;
}

/* --- 4. 備考セクション (白背景に変更) --- */
/* 元の .features-section を削除し、以下に置き換える */
.features-section-light {
  background-color: #f8f9fa; /* 完全な白ではなく、少しだけ色をつけるとセクションの区切りが分かりやすい */
  padding: 100px 5%;
  text-align: center;
}
.features-section-light h2 {
  /* 共通の見出しスタイルが適用される */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff; /* カードの背景は白 */
  padding: 25px 15px;
  border-radius: 8px;
  min-height: 150px;
  border: 1px solid #e0e0e0; /* 境界線を薄く入れる */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* ホバー時に浮き上がる効果 */
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  /* filter は不要になるので削除 */
  /* アイコンの色をCSSで制御したい場合 (SVGの場合) */
  color: #0056b3; /* アイコンの色をブランドカラーにする例 */
}

/* SVGアイコンの色をCSSで制御するための設定 */
.feature-icon path {
  fill: currentColor;
}

.feature-card p {
  margin: 0;
  font-weight: bold;
  color: #333; /* 文字色を黒系に戻す */
}

/* --- 5. 図面セクション --- */
.cta-section {
  padding: 100px 20px;
  text-align: center;
  background-color: #fff; /* 背景色を明示 */
}

/* */
/* 検索結果コンテナ */
.results-container {
  margin-top: 40px;
}

/* 結果グリッドのスタイリング */
#sks-results-grid {
  display: grid;
  /* 画面幅に応じてカラム数を自動調整 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; /* カード間の隙間 */
}

/* 検索結果カードのデザイン */
.result-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* カード内を縦に並べる */
  transition: box-shadow 0.3s, transform 0.3s;
}
.result-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  padding-top: 60%; /* 画像のアスペクト比を維持 (高さ/幅) */
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 15px;
  flex-grow: 1; /* この要素が残りのスペースを埋める */
}
.card-content h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.card-content .address {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-tags {
  padding: 0 15px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-tags .tag {
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列にする場合 */
  border-top: 1px solid #e5e5e5;
}
.card-actions .action-btn {
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: #0073aa;
  transition: background-color 0.3s;
  font-weight: bold;
}
.card-actions .action-btn:not(:last-child) {
  border-right: 1px solid #e5e5e5;
}
.card-actions .action-btn:hover {
  background-color: #f0f8ff;
}

/* 詳細ボタンを3列にする場合 */
.card-actions.three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

/* 「該当なし」メッセージ */
#sks-no-results {
  text-align: center;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* ======================================================= */
/* === 検索結果 可変レイアウト用 CSS (最終版) === */
/* ======================================================= */

/* --- 1. 結果表示エリアの基本設定 --- */

/* 結果全体のコンテナ 
#sks-results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
  */

/* カード共通のベーススタイル */
.company-list-card,
.company-card-grid-layout {
  display: flex;
  background-color: var(--container-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* 親会社情報のボタン共通スタイル */
.action-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.action-buttons .button-primary {
  background-color: var(--accent-color);
  color: #fff;
}
.action-buttons .button-primary:hover {
  background-color: var(--accent-hover-color);
  transform: translateY(-2px);
}
.action-buttons .button-secondary {
  background-color: #fff;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}
.action-buttons .button-secondary:hover {
  background-color: #f0f8ff;
  transform: translateY(-2px);
}

/* --- 2. レイアウトA：3カラムリスト（拠点が1つ以下） --- */

.company-list-card {
  transition: box-shadow 0.3s, transform 0.3s;
}
.company-list-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
/* 左カラム: 画像 */
.company-list-card .image-column {
  flex: 0 0 220px;
  height: 180px; /* 例：高さを180pxに固定 */
  overflow: hidden; /* 念のため追加 */
}
.company-list-card .image-column a {
  display: block;
  width: 100%;
  height: 100%;
}
.company-list-card .image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 中央カラム: 親会社情報 */
.company-list-card .info-column {
  flex: 1 1 50%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}
.company-list-card .info-column h3 {
  font-size: 1.4rem;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
}
.company-list-card .info-column h3 a {
  text-decoration: none;
  color: var(--primary-text-color);
}
.company-list-card .info-column .address {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--secondary-text-color);
  margin-bottom: 0.5rem;
}
.company-list-card .info-column .address i {
  margin-right: 0.5rem;
}
/* 右カラム: 支店リスト */
.company-list-card .branches-column {
  flex: 1 1 35%;
  padding: 1.5rem;
  background-color: #f8f9fa;
  font-size: 0.9rem;
}
.company-list-card .branches-column.no-branches {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-text-color);
}
.company-list-card .branches-column h5 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}
.company-list-card .branches-column h5 i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}
.company-list-card .branch-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* li要素をflexコンテナにして、情報エリアとボタンを横並びにする */
.company-list-card .branch-link-list li {
  display: flex;
  justify-content: space-between; /* 両端に寄せる */
  align-items: center;
  gap: 0.75rem; /* アイテム間の隙間 */
  padding: 0.6rem 0.8rem;
  border-radius: 5px;
  transition: background-color 0.2s;
}
.company-list-card .branch-link-list li:hover {
  background-color: #e9ecef;
}

/* 拠点情報エリア（名前とエリアタグ） */
.company-list-card .branch-list-info {
  display: flex;
  flex-direction: column; /* 名前とタグを縦に並べる */
  gap: 0.25rem;
}

/* 拠点名リンク */
.company-list-card .branch-list-info .branch-name {
  font-weight: 500;
  text-decoration: none;
  color: var(--primary-text-color);
}

/* エリアタグ */
.company-list-card .branch-list-info .branch-area-tag {
  background-color: var(--tag-bg-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--tag-text-color);
  align-self: flex-start; /* タグの幅をテキストに合わせる */
}

/* MAPボタン（右側） */
.company-list-card .branch-list-map-btn {
  flex-shrink: 0; /* ボタンが縮まないようにする */
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--secondary-text-color);
  background-color: #fff;
  white-space: nowrap; /* ボタンが改行しないように */
  transition: all 0.2s ease;
}
.company-list-card .branch-list-map-btn i {
  margin-right: 0.3rem;
}
.company-list-card .branch-list-map-btn:hover {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: #fff;
}

/* ------------------------------------------------------------------------- */
.company-list-card {
  display: flex; /* ★ Gridの代わりにFlexboxを使用 */
  flex-wrap: wrap; /* 画面が狭い場合に折り返す */
  align-items: flex-start; /* 上端揃え */
  gap: 1.5rem; /* 各カラム間の隙間 */

  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.company-list-card .image-column {
  flex: 0 0 200px; /* 幅を200pxで固定 */
}
.company-list-card .image-column img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* 情報カラム（会社名・住所・ボタン）*/
.company-list-card .info-column {
  flex: 1 1 300px; /* 残りのスペースを埋め、最小幅は300px */
}
.company-list-card .info-column h3 {
  margin: 0 0 0.5rem;
}
.company-list-card .info-column .address {
  margin-bottom: 1rem;
}
/* 拠点カラム（子会社リスト）*/
.company-list-card .branches-column {
  flex: 1 1 300px; /* 残りのスペースを埋め、最小幅は300px */
  border-left: 1px solid #e2e8f0;
  padding-left: 1.5rem;
}

.company-list-card .branches-column h5 {
  margin: 0 0 0.75rem;
}
.company-list-card .info-column .action-buttons {
  margin-bottom: 1.5rem;
}
.company-list-card .branches-column {
  border-top: 1px dashed #cbd5e0;
  padding-top: 1rem;
  margin-top: auto; /* ★カラムの下部に配置する */
}
.company-list-card .branches-column h5 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

/* スマホ用の調整 */
@media (max-width: 640px) {
  .company-list-card .image-column {
    flex: 1 1 100%; /* 画像を幅いっぱいに */
    height: 180px;
  }
  .company-list-card .info-column .address {
    margin-bottom: auto;
  }
}

/* --- 3. レイアウトB：グリッド（拠点が2つ以上） --- */

.company-card-grid-layout {
  flex-direction: column;
}
/* 親会社ヘッダー */
.company-card-grid-layout .parent-info-header {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}
.company-card-grid-layout .parent-header-image {
  flex: 0 0 160px;
  flex: 0 0 320px;
  height: 100px;
  height: auto;
}
.company-card-grid-layout .parent-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.company-card-grid-layout .parent-header-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 各要素（h3, p, div）の間の隙間を空ける */
}
.company-card-grid-layout .parent-header-details h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  margin: 0;
}
.company-card-grid-layout .parent-header-details h3 a {
  color: var(--primary-text-color);
}
.company-card-grid-layout .parent-header-details .address {
  color: var(--secondary-text-color);
  font-size: 0.95rem;
}

.company-card-grid-layout .parent-header-details p {
  margin-bottom: 1rem;
}
/* 拠点グリッド */
.company-card-grid-layout .branch-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}
.company-card-grid-layout .branch-grid-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.company-card-grid-layout .branch-grid-image {
  display: block;
  width: 100%;
  height: 120px;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.company-card-grid-layout .branch-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.company-card-grid-layout .branch-grid-image:hover img {
  transform: scale(1.05);
}
.company-card-grid-layout .branch-grid-details h5 {
  font-size: 1rem;
  font-size: 0.85rem;
  margin: 0 0 0.25rem 0;
}
.company-card-grid-layout .branch-grid-details h5 a {
  text-decoration: none;
  color: var(--primary-text-color);
}
.company-card-grid-layout .branch-grid-details .address {
  font-size: 0.8rem;
  color: var(--secondary-text-color);
  margin-bottom: 0.75rem;
}
/* 拠点グリッドのボタン */
.company-card-grid-layout .branch-grid-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.company-card-grid-layout .branch-grid-actions a {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--accent-color);
  transition: all 0.2s ease;
}
.company-card-grid-layout .button-branch-detail {
  background-color: var(--accent-color);
  color: #fff;
}
.company-card-grid-layout .button-branch-detail:hover {
  background-color: var(--accent-hover-color);
}
.company-card-grid-layout .button-branch-map {
  background-color: #fff;
  color: var(--accent-color);
}
.company-card-grid-layout .button-branch-map:hover {
  background-color: #f0f8ff;
}

/* --- 4. スマホ・タブレット用レスポンシブ調整 --- */
@media (max-width: 900px) {
  /* 3カラムリストを縦積みにする */
  .company-list-card {
    flex-direction: column;
  }
  .company-list-card .image-column {
    flex-basis: auto; /* 幅固定を解除 */
    width: 100%;
  }
  .company-list-card .image-column img {
    height: 100%;
    object-fit: cover;
  }
  .company-list-card .info-column {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .company-list-card .branches-column {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 1.5rem;
    width: 100%;
  }
}
@media (max-width: 768px) {
  /* グリッドレイアウトのヘッダーを縦積みにする */
  .company-card-grid-layout .parent-info-header {
    flex-direction: column;
    align-items: flex-start;
  }
  /* 拠点グリッドを2カラムに */
  .company-card-grid-layout .branch-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

/* 右カラム(.branches-column)が存在しない場合、
   中央カラム(.info-column)の右罫線を消す */
.company-list-card .info-column:only-child, /* IE非対応だがモダンブラウザならOK */
.company-list-card .info-column:last-of-type {
  border-right: none;
}

/* ===============================================
   検索結果カード（子会社が1つの場合）のスタイル
   =============================================== */

/* 親と子のセクションを区切る線 */
.branch-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #a0aec0;
}
.branch-separator::before,
.branch-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px dashed #cbd5e0;
}
.branch-separator span {
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* 子会社情報エリア */
.single-branch-info .branch-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.single-branch-info .branch-image {
  flex: 0 0 150px;
}
.single-branch-info .branch-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.single-branch-info .branch-text {
  flex: 1 1 250px;
}
.single-branch-info .branch-text h5 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.single-branch-info .branch-text h5 a {
  color: var(--primary-text-color);
}
.single-branch-info .branch-text .address {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 1rem;
}

/* 親と子でボタンサイズを変えるためのスタイル */
.action-buttons .button-primary.small,
.action-buttons .button-secondary.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* ===============================================
   検索結果カード（リスト形式）のレイアウト追加修正
   =============================================== */

/* 親情報コンテナをFlexboxコンテナにする */
.list-parent-info {
  display: flex;
  /* flex-wrap: wrap;  スマホなどで折り返す */
  gap: 1.5rem; /* 画像と情報の間の隙間 */
  width: 100%;
}

/* 画像カラムの幅を固定 */
.list-parent-info .image-column {
  flex: 0 0 200px;
  height: 150px; /* ★ 高さを固定する */
  border-radius: 6px;
  overflow: hidden; /* ★ はみ出した部分を隠す */
}
/*
.list-parent-info .image-column a {
  display: block;
  width: 100%;
  height: 100%;
}
*/
.list-parent-info .image-column a,
.list-parent-info .image-column img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-parent-info .image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ★ 画像をコンテナに合わせてトリミング */
  object-position: center; /* 中央を基準にトリミング */
}

/* 情報カラム (PC) */
.list-parent-info .info-column {
  flex: 1 1 300px;
  display: flex; /* ★ 中身をFlexboxで制御 */
  flex-direction: column; /* ★ 中身を縦に積む */
}
.list-parent-info .info-column .address {
  margin-bottom: auto; /* ★ addressとbuttonsの間の余白を自動で埋める */
  margin-bottom: 0.5rem;
}

/* 全体カードラッパーのスタイル 
.company-list-card {
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
}
*/
/* スマホ用の調整 */
@media (max-width: 768px) {
  .list-parent-info {
    flex-direction: column; /* 縦積みにする */
    gap: 1rem; /* 上下の隙間を少し空ける */
  }
  .list-parent-info .image-column {
    flex-basis: auto; /* 幅固定を解除 */
    width: 100%;
    height: 200px; /* スマホでは高さを少し大きく */
  }
  .list-parent-info .info-column {
    flex-basis: auto; /* ★ 高さが自動になるようにリセット */
    width: 100%;
  }
  .list-parent-info .info-column .address {
    margin-bottom: 1rem; /* ★ 可変マージンをやめ、固定マージンに戻す */
  }
}

/* ===============================================
   検索結果カード（子が1つの場合）を横並びにする
   =============================================== */

/* 親カードをFlexboxコンテナにする */
.company-list-card {
  display: flex;
  flex-wrap: wrap; /* スマホなどで折り返す */
  gap: 1.5rem;
}

/* 親情報コンテナ */
.list-parent-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  /* ★★★ 親情報の幅を約半分に設定 ★★★ */
  flex: 1 1 45%;
  min-width: 300px;
}
.list-parent-info .image-column {
  flex: 0 0 150px; /* 画像幅を少し調整 */
}
.list-parent-info .info-column {
  flex: 1 1 200px;
}

/* 子会社（拠点）情報コンテナ */
.single-branch-info {
  border-left: 1px solid #e2e8f0;
  padding-left: 1.5rem;
  /* ★★★ 子情報も幅を約半分に設定 ★★★ */
  flex: 1 1 45%;
  min-width: 300px;
}

/* スマホ用の調整 */
@media (max-width: 960px) {
  /* 画面が狭くなったら縦積みに戻す */
  .company-list-card {
    flex-direction: column;
  }
  .single-branch-info {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 1.5rem;
    width: 100%;
  }
}

/* ------------------------------------- */
/* ===============================================
   AJAXページネーションのスタイリング
   =============================================== */

.pagination-container {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-links {
  display: flex;
  gap: 0.5rem; /* ボタン間の隙間 */
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-numbers:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
  color: #2563eb;
}

/* 現在のページ */
.page-numbers.current {
  border-color: #3b82f6;
  background-color: #3b82f6;
  color: #ffffff;
  cursor: default;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3), 0 2px 4px -2px rgba(59, 130, 246, 0.3);
}

/* 「...」などの省略記号 */
.page-numbers.dots {
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
}

/* --- 検索結果ヘッダー (件数表示部分) --- */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.results-header h2 {
  margin: 0;
}
#sks-results-count {
  font-size: 1rem;
  color: #4b5563;
}
#sks-results-count strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

/* スマホ用の調整 */
@media (max-width: 640px) {
  .results-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .page-numbers {
    min-width: 36px;
    min-width: 28px;
    height: 36px;
  }
}

/* ==========================================================
   検索結果カード（リスト形式）の親画像サイズを調整する追加CSS
   ========================================================== */

/* 子が1つ以下の場合の親画像コンテナの幅を、グリッド表示の幅に合わせる */
.list-parent-info .image-column {
  flex-basis: 320px; /* ★ 幅を350px */
  flex-shrink: 0; /* ★ これ以上縮まないように設定 */
  height: auto;
}

/* 画像自体をコンテナに合わせてトリミング */
.list-parent-info .image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* スマホ表示の際の高さを調整 */
@media (max-width: 768px) {
  /* 親情報が縦積みになる際の画像コンテナのスタイル */
  .list-parent-info .image-column {
    flex-basis: auto; /* 幅固定を解除 */
    width: 100%;
    height: 180px; /* スマホでは高さを少し大きく */
  }
}

/* ======================================================= */
/* === 検索結果 3カラムグリッドレイアウト用 追加CSS === */
/* ======================================================= */

/* --- 1. 結果表示エリアの基本設定をグリッドレイアウトに変更 --- */
#sks-results-grid {
  display: grid;
  /* 画面幅に応じてカラム数を自動調整します（最小幅340px） */
  /* PCでは3列、タブレットでは2列、スマホでは1列のように可変します */
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem; /* カード間の余白 */
  /* 各カードの高さを一番高いものに自動で揃えます */
  align-items: stretch;
}

/* --- 2. カードの基本レイアウトを縦積みに変更 --- */
/*
  既存の横並びスタイルを上書きして、縦長のカードレイアウトに変更します。
*/
.company-list-card {
  display: flex;
  flex-direction: column; /* ★レイアウトを縦積みに変更 */
  flex-wrap: nowrap; /* 折り返しを無効化 */
  padding: 0; /* 内側のパディングは各パーツで管理するためリセット */
  gap: 0; /* パーツ間のgapをリセット */
  height: 100%; /* グリッドレイアウトで高さを揃えるために必要 */
  overflow: hidden; /* カードの角丸を適用するため */
}

/* --- 3. カード内の各パーツのスタイルを縦長用に調整 --- */

/* 親会社情報コンテナ */
.list-parent-info {
  display: flex;
  flex-direction: column; /* 親情報内も縦積みに */
  flex-grow: 1; /* ★重要：このエリアが伸びてカードの高さを調整します */
  width: 100%;
  gap: 0; /* gapをリセット */
}

/* 親会社画像 */
.list-parent-info .image-column {
  flex-basis: auto; /* 幅固定を解除 */
  width: 100%;
  height: 220px; /* 画像の高さを固定 */
  border-radius: 0;
}
.list-parent-info .image-column img {
  border-radius: 0;
}

/* 親会社情報（テキスト・ボタン） */
.list-parent-info .info-column {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* このエリアが伸びるように設定 */
  padding: 1.5rem;
}
.list-parent-info .info-column .address {
  margin-bottom: auto; /* ボタンを最下部に配置するためのキー */
  padding-bottom: 1.5rem; /* ボタンとの間に余白を確保 */
}

/* 子会社（拠点）が1つの場合の情報コンテナ */
.single-branch-info {
  width: 100%;
  border-left: none; /* 横並び用の罫線を削除 */
  padding: 0;
}

/* 親と子の区切り線 */
.branch-separator {
  margin: 0;
  padding: 0 1.5rem; /* カードの左右の余白に合わせる */
}
.branch-separator span {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* 子会社（拠点）詳細 */
.single-branch-info .branch-details {
  padding: 1.5rem;
  align-items: flex-start; /* 上揃えに変更 */
}
.single-branch-info .branch-image {
  flex: 0 0 140px; /* 画像サイズを調整 */
}

/* 拠点リスト (子が複数ある場合のスタイル) */
.company-list-card .branches-column {
  width: 100%;
  border-left: none; /* 横並び用の罫線を削除 */
  border-top: 1px solid var(--border-color); /* 上の要素との区切り線 */
  background-color: #f8f9fa;
  padding: 1.5rem;
}

/* --- 4. 既存のレスポンシブスタイルによる影響をリセット --- */
/*
  横並びを前提としたレスポンシブスタイルが不要になるため、
  その影響を打ち消します。
*/
@media (max-width: 960px) {
  .single-branch-info {
    padding-left: 0;
    border-top: none;
    padding-top: 0;
  }
  .company-list-card .branches-column {
    border-top: 1px solid var(--border-color);
    padding-left: 1.5rem;
    padding-top: 1.5rem;
  }
}
@media (max-width: 768px) {
  /*
      3カラム→2カラム→1カラムの挙動はgrid-template-columnsが自動で行うため、
      ここで特別なスタイル指定は不要です。
    */
  .list-parent-info .image-column {
    height: 200px;
  }
}

/* ======================================================= */
/* === 検索結果カード リッチデザイン === */
/* ======================================================= */

/* --- 1. カード全体のベースデザイン --- */
.company-list-card,
.company-card-grid-layout {
  border: 1px solid #e2e8f0; /* 境界線を少し柔らかい色に */
  border-radius: 12px; /* 角丸を少し大きく */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05); /* 繊細な影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
  overflow: hidden; /* 子要素のはみ出し防止 */
  display: flex;
  flex-direction: column; /* 常に縦積み */
  height: 100%; /* グリッドレイアウトで高さを揃えるため */
}

/* カードへのホバー効果 */
.company-list-card:hover,
.company-card-grid-layout:hover {
  transform: translateY(-6px); /* 少し浮き上がる */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08); /* 影を濃くする */
}

/* --- 2. 親会社・子会社の画像スタイル --- */
.list-parent-info .image-column,
.single-branch-info .branch-image,
.company-card-grid-layout .parent-header-image {
  overflow: hidden; /* 画像のズーム効果のため */
  position: relative;
}
.list-parent-info .image-column img,
.single-branch-info .branch-image img,
.company-card-grid-layout .parent-header-image img {
  transition: transform 0.4s ease;
}
/* 画像ホバー時のズームエフェクト */
.company-list-card:hover .list-parent-info .image-column img,
.company-list-card:hover .single-branch-info .branch-image img,
.company-card-grid-layout:hover .parent-header-image img {
  transform: scale(1.05);
}

/* --- 3. 親会社情報エリアのテキストスタイル --- */
.list-parent-info .info-column,
.company-card-grid-layout .parent-header-details {
  padding: 1.25rem 1.5rem; /* パディング調整 */
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* このエリアが伸びて高さを調整 */
}

/* 親会社名 */
.list-parent-info .info-column h3,
.company-card-grid-layout .parent-header-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c; /* 少し濃い黒 */
  margin-bottom: 0.5rem;
}
.list-parent-info .info-column h3 a,
.company-card-grid-layout .parent-header-details h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.list-parent-info .info-column h3 a:hover,
.company-card-grid-layout .parent-header-details h3 a:hover {
  color: var(--accent-color); /* ホバーでアクセントカラーに */
}

/* 住所 */
.list-parent-info .info-column .address,
.company-card-grid-layout .parent-header-details .address {
  font-size: 0.9rem;
  color: #718096; /* 少し薄いグレー */
  margin-bottom: auto; /* ★重要：ボタンを一番下に配置 */
  padding-bottom: 1rem;
}
.list-parent-info .info-column .address i,
.company-card-grid-layout .parent-header-details .address i {
  color: #a0aec0; /* アイコンの色も調整 */
  margin-right: 0.5rem;
}

/* --- 4. 拠点情報エリアのデザイン --- */

/* 親と子の区切り線 */
.branch-separator {
  text-align: center;
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  background-color: #f7fafc; /* 背景色を薄くつける */
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}
.branch-separator span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.branch-separator span::before {
  content: "\f1ad"; /* FontAwesomeの'building'アイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* 子会社(拠点)が1つの場合の詳細エリア */
.single-branch-info .branch-details {
  padding: 1.25rem 1.5rem;
}
.single-branch-info .branch-text h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}
.single-branch-info .branch-text h5 a {
  text-decoration: none;
  color: inherit;
}
.single-branch-info .branch-text h5 a:hover {
  color: var(--accent-color);
}
.single-branch-info .branch-text .address {
  color: #718096;
}

/* 複数拠点リスト */
.branches-column {
  background-color: #f7fafc; /* 背景色 */
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #edf2f7;
}
.branches-column h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}
.branches-column h5 i {
  color: var(--accent-color);
}
.branch-link-list li:hover {
  background-color: #edf2f7; /* ホバー色を調整 */
}
.branch-list-info .branch-area-tag {
  background-color: #e2e8f0; /* タグの背景色 */
  color: #4a5568; /* タグの文字色 */
  font-weight: 600;
}

/* --- 5. グリッドレイアウト（子が2つ以上）のデザイン調整 --- */
.company-card-grid-layout .parent-info-header {
  align-items: flex-start; /* 上揃え */
}
.company-card-grid-layout .parent-header-image {
  flex-basis: 150px; /* 画像サイズを少し調整 */
  height: 100px;
}
.company-card-grid-layout .branch-grid-container {
  padding: 1.5rem;
  background-color: #fdfdff;
}
.company-card-grid-layout .branch-grid-item {
  border: 1px solid #f0f2f5;
  border-radius: 8px;
  padding: 1rem;
  background-color: #ffffff;
  transition: box-shadow 0.3s, transform 0.3s;
}
.company-card-grid-layout .branch-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.company-card-grid-layout .branch-grid-image {
  margin-bottom: 1rem;
}

/* --- 6. ボタンのデザイン --- */
/* (既存のボタンのスタイルをベースに、微調整) */
.action-buttons a {
  font-size: 0.9rem;
}
.action-buttons .button-primary i,
.action-buttons .button-secondary i {
  margin-right: 0.4rem;
}

/* --- 分割された会社名表示用のスタイル --- */
.parent-header-details h3 a,
.list-parent-info .info-column h3 a {
  display: flex;
  flex-direction: column; /* 各パーツを縦に並べる */
  line-height: 1.3;
  gap: 0.1em; /* 行間の微調整 */
}

.company-name-part {
  display: inline-block;
}

/* もし空のspanが余白を作ってしまう場合のための対策 */
.company-name-part:empty {
  display: none;
}

/* --- 倉庫検索結果：スマートフォン表示（横型カードレイアウト）--- */
@media (max-width: 768px) {
  /* グリッドコンテナを1カラムに設定 */
  #sks-results-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1列にする */
    gap: 16px; /* カード間の余白 */
  }

  /* カード全体を横並びのレイアウト（フレックスボックス）に変更 */
  .list-parent-info {
    display: flex;
    flex-direction: row; /* 要素を横に並べる */
    align-items: stretch; /* 子要素の高さを揃える */
  }

  /* 左側の画像エリアのスタイル */
  .image-column {
    flex: 0 0 100px; /* 幅を100pxに固定（伸びない、縮まない） */
    width: 100px;
    /* PC用の設定をリセット */
    height: auto;
    padding-top: 0;
    position: static;
  }

  .image-column a,
  .image-column img {
    width: 100%;
    height: 100%; /* 親要素の高さ全体に広がる */
    object-fit: cover; /* 画像の比率を保ったままエリアを埋める */
    position: static;
  }

  /* 右側の情報エリアのスタイル */
  .info-column {
    flex: 1; /* 残りの幅をすべて使う */
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 内容を垂直方向に中央寄せ */
  }

  /* 各パーツのフォントサイズなどをスマホ用に調整 */
  .info-column h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .address {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .action-buttons {
    margin-top: auto; /* ボタンを下に配置 */
    padding-top: 8px;
  }

  .action-buttons a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
