/*
 * Snow Blog - 店舗情報
 *
 * snow-blogプラグインで読み込む店舗情報用CSS。
 */

/* 店舗情報テーブル */
.facility-information {
  margin: 3em 0;
  padding: 0;
}

.facility-information > h2 {
  margin: 0 0 1.2em !important;
  padding: 18px 22px !important;
  border: none !important;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff !important;
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.18);
}

.facility-information > p {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 4px solid #06b6d4;
  border-radius: 6px;
  background: #f0f9ff;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.7;
}

.facility-information .table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.facility-information table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}

.facility-information table tr {
  border-bottom: 1px solid #e2e8f0;
}

.facility-information table tr:last-child {
  border-bottom: none;
}

.facility-information table td {
  padding: 13px 16px;
  border: none !important;
  vertical-align: top;
  line-height: 1.75;
}

.facility-information .left-cell {
  width: 150px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  white-space: nowrap;
}

.facility-information .right-cell {
  color: #1e293b;
}

.facility-information .right-cell a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
}

.facility-information .right-cell a:hover {
  text-decoration: underline;
}

.facility-information .taxonomy-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.facility-information .taxonomy-value a {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0369a1;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.facility-information .taxonomy-value a:hover {
  background: #e0f2fe;
  text-decoration: none;
}

.facility-information iframe {
  width: 100%;
  max-width: 100%;
  height: 360px;
  border-radius: 10px;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .facility-information > h2 {
    padding: 15px 16px !important;
    font-size: 1.2em;
  }

  .facility-information table,
  .facility-information table tbody,
  .facility-information table tr,
  .facility-information table td {
    display: block;
    width: 100% !important;
  }

  .facility-information .left-cell {
    padding-bottom: 6px;
    background: #f8fafc;
    border-bottom: none;
  }

  .facility-information .right-cell {
    padding-top: 6px;
  }

  .facility-information table tr {
    padding: 10px 0;
  }

  .facility-information iframe {
    height: 280px;
  }
}

/* 店舗情報：項目ごとにチップ色を変える */
.facility-information table tr:nth-child(1) .taxonomy-value a,
.facility-information table tr:nth-child(2) .taxonomy-value a {
  background: #eff6ff;
  color: #1d4ed8;
}

.facility-information table tr:nth-child(3) .taxonomy-value a,
.facility-information table tr:nth-child(4) .taxonomy-value a {
  background: #ecfdf5;
  color: #047857;
}

.facility-information table tr:nth-child(5) .taxonomy-value a,
.facility-information table tr:nth-child(6) .taxonomy-value a,
.facility-information table tr:nth-child(7) .taxonomy-value a,
.facility-information table tr:nth-child(8) .taxonomy-value a {
  background: #f5f3ff;
  color: #6d28d9;
}

.facility-information table tr:nth-child(9) .taxonomy-value a,
.facility-information table tr:nth-child(10) .taxonomy-value a,
.facility-information table tr:nth-child(11) .taxonomy-value a {
  background: #fff7ed;
  color: #c2410c;
}

.facility-information table tr:nth-child(12) .taxonomy-value a,
.facility-information table tr:nth-child(13) .taxonomy-value a,
.facility-information table tr:nth-child(14) .taxonomy-value a {
  background: #fef2f2;
  color: #b91c1c;
}

/* hoverも少しだけ濃く */
.facility-information table tr:nth-child(1) .taxonomy-value a:hover,
.facility-information table tr:nth-child(2) .taxonomy-value a:hover {
  background: #dbeafe;
}

.facility-information table tr:nth-child(3) .taxonomy-value a:hover,
.facility-information table tr:nth-child(4) .taxonomy-value a:hover {
  background: #d1fae5;
}

.facility-information table tr:nth-child(5) .taxonomy-value a:hover,
.facility-information table tr:nth-child(6) .taxonomy-value a:hover,
.facility-information table tr:nth-child(7) .taxonomy-value a:hover,
.facility-information table tr:nth-child(8) .taxonomy-value a:hover {
  background: #ede9fe;
}

.facility-information table tr:nth-child(9) .taxonomy-value a:hover,
.facility-information table tr:nth-child(10) .taxonomy-value a:hover,
.facility-information table tr:nth-child(11) .taxonomy-value a:hover {
  background: #ffedd5;
}

.facility-information table tr:nth-child(12) .taxonomy-value a:hover,
.facility-information table tr:nth-child(13) .taxonomy-value a:hover,
.facility-information table tr:nth-child(14) .taxonomy-value a:hover {
  background: #fee2e2;
}

/* 行ごとの視認性を少し上げる */
.facility-information table tr:hover .left-cell,
.facility-information table tr:hover .right-cell {
  background-color: #f8fafc;
}

/* 店舗情報：駅ごとの路線表示 */
.facility-information .station-route-list {
  display: grid;
  gap: 10px;
}

.facility-information .station-route-card {
  padding: 12px 14px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #f8fafc;
}

.facility-information .station-route-card__station {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
}

.facility-information .station-route-card__station a {
  color: #1e3a8a;
  text-decoration: none;
}

.facility-information .station-route-card__station a::before {
  content: "🚉 ";
}

.facility-information .station-route-card__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.facility-information .station-route-card__route a,
.facility-information .station-route-card__route--empty {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.facility-information .station-route-card__route a:hover {
  background: #ddd6fe;
  text-decoration: none;
}

.facility-information .station-route-card__route--empty {
  background: #f1f5f9;
  color: #64748b;
}
