/* ================================================================
   KSC アクセス・地図 リデザイン — map_redesign.css
   company_redesign.css の後に読み込み、ページ固有のコンポーネントを追加。
   ================================================================ */

/* 固定ヘッダー分のアンカースクロール余白 */
.ksc-map-section { scroll-margin-top: 96px; }

/* 拠点ごとの 情報 + 地図 レイアウト */
.ksc-map-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
  align-items: stretch;
}

/* 情報パネル */
.ksc-map-info {
  display: flex;
  flex-direction: column;
}
.ksc-map-badge {
  align-self: flex-start;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 4px 11px;
  margin-bottom: 18px;
}
.ksc-map-postal {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text-mid);
  margin: 0 0 6px;
}
.ksc-map-address {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-head);
  line-height: 1.7;
  margin: 0 0 14px;
}
.ksc-map-tel {
  font-family: 'DM Mono', monospace;
  font-size: 17px;
  color: var(--accent-deep);
  margin: 0 0 22px;
}
.ksc-map-tel::before {
  content: '';
  display: inline-block;
  width: 15px; height: 15px;
  margin-right: 8px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* アクセス（最寄り駅） */
.ksc-map-access {
  list-style: none;
  margin: 0 0 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}
.ksc-map-access-item {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}
.ksc-map-access-item + .ksc-map-access-item { border-top: 1px dashed var(--border); }
.ksc-map-access-item::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 17px; height: 17px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='14' rx='2'/%3E%3Cpath d='M4 11h16M12 3v8M8 21l2-3M16 21l-2-3'/%3E%3Ccircle cx='8' cy='14' r='1'/%3E%3Ccircle cx='16' cy='14' r='1'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='14' rx='2'/%3E%3Cpath d='M4 11h16M12 3v8M8 21l2-3M16 21l-2-3'/%3E%3Ccircle cx='8' cy='14' r='1'/%3E%3Ccircle cx='16' cy='14' r='1'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ksc-map-access-item .line { font-weight: 600; color: var(--text-head); }

/* Google Maps へのリンク */
.ksc-map-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
}
.ksc-map-link svg { width: 15px; height: 15px; }
.ksc-map-link:hover { color: var(--accent-deep); gap: 11px; }

/* 地図埋め込み */
.ksc-map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  min-height: 380px;
}
.ksc-map-embed iframe {
  display: block;
  width: 100%; height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter var(--transition);
}
.ksc-map-embed:hover iframe { filter: grayscale(0) contrast(1); }

/* レスポンシブ */
@media (max-width: 900px) {
  .ksc-map-grid { grid-template-columns: 1fr; gap: 28px; }
  .ksc-map-embed { min-height: 320px; }
  .ksc-map-embed iframe { min-height: 320px; }
  .ksc-map-link { margin-top: 4px; }
}
