/*
 * 频道首页「人気の航空券・ホテル」区块（js/seo-link-hub.js、scripts/generate-seo-link-hub.js）。
 * 视觉沿用机票首页「おすすめの航空券ルート」：24px 标题 + 右侧「すべて見る」、频道按钮、地区 Tab、带 › 的链接网格。
 * 酒店首页原有的城市区块（.seo-destinations-section）也在本文件末尾对齐到同一风格。
 */
.seo-link-hub {
  --hub-navy: #03205a;
  --hub-blue: #2c61fe;
  --hub-muted: #64748b;
  --hub-line: #e5e7eb;
  --hub-row-line: #edf1f7;
  --hub-chevron: #73849e;
  background: #fff;
  padding: 40px 0 60px;
  color: var(--hub-navy);
}

/* 与各页面主体内容左右对齐：机票首页、访日旅行、巴士页主体宽 1200px；酒店首页沿用 .detail-container（最宽 1400px、左右 20px）。 */
.seo-link-hub-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  box-sizing: border-box;
}
.seo-link-hub--hotel .seo-link-hub-inner {
  width: auto;
  max-width: 1400px;
  padding: 0 20px;
}

/* 紧跟在另一个链接目录区块后面时，收紧两块之间的空白（原来上下 padding 叠加接近 100px）。 */
.route-recommendations-section:has(+ .seo-link-hub) { padding-bottom: 28px; }
.route-recommendations-section + .seo-link-hub { padding-top: 28px; }

.seo-link-hub-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.seo-link-hub-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--hub-navy);
}
.seo-link-hub-all {
  flex: none;
  font-size: 13px;
  color: #475467;
  text-decoration: none;
  white-space: nowrap;
}
.seo-link-hub-all::after { content: ' ›'; }
.seo-link-hub-all:hover { color: var(--hub-blue); }

/* 频道切换（ホテル / 航空券）：同机票首页「路線から探す / 航空会社から探す」按钮 */
.seo-link-hub-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.seo-link-hub-switch button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  padding: 6px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #344054;
  background: #f2f4f7;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.seo-link-hub-switch button:hover { color: var(--hub-blue); }
.seo-link-hub-switch button.is-active { background: var(--hub-blue); color: #fff; }

/* 地区 Tab */
.seo-link-hub-regions {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--hub-line);
  margin-bottom: 8px;
}
.seo-link-hub-regions::-webkit-scrollbar { display: none; }
.seo-link-hub-regions button {
  position: relative;
  flex: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 12px 2px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--hub-muted);
  white-space: nowrap;
  cursor: pointer;
}
.seo-link-hub-regions button:hover { color: var(--hub-blue); }
.seo-link-hub-regions button.is-active { color: var(--hub-blue); }
.seo-link-hub-regions button.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--hub-blue);
}

/* 链接网格：航线 4 列，酒店城市 6 列 */
.seo-link-hub-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
}
.seo-link-hub-panel--hotels .seo-link-hub-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.seo-link-hub-grid li { min-width: 0; }
.seo-link-hub-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hub-row-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--hub-navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.seo-link-hub-grid a::after {
  content: '›';
  flex: none;
  color: var(--hub-chevron);
  font-size: 17px;
  line-height: 1;
  transition: transform .15s, color .15s;
}
.seo-link-hub-grid a:hover { color: var(--hub-blue); }
.seo-link-hub-grid a:hover::after { color: var(--hub-blue); transform: translateX(2px); }

/* 「すべて」时折叠多余条目；选了具体地区则显示该地区全部 */
.seo-link-hub-panel[data-region="all"]:not(.is-expanded) .seo-link-hub-grid .is-extra,
.seo-link-hub-grid .is-filtered-out { display: none; }
.seo-link-hub-panel:not([data-region="all"]) .seo-link-hub-actions { display: none; }

.seo-link-hub-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.seo-link-hub-more {
  appearance: none;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  padding: 7px 22px;
  font: inherit;
  font-size: 13px;
  color: #344054;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.seo-link-hub-more:hover { border-color: var(--hub-blue); color: var(--hub-blue); }

@media (max-width: 1024px) {
  .seo-link-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-link-hub-panel--hotels .seo-link-hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .seo-link-hub { padding: 28px 0 36px; }
  .route-recommendations-section:has(+ .seo-link-hub) { padding-bottom: 20px; }
  .route-recommendations-section + .seo-link-hub { padding-top: 20px; }
  .seo-link-hub-inner { width: calc(100% - 32px); }
  .seo-link-hub--hotel .seo-link-hub-inner { width: auto; padding: 0 16px; }
  .seo-link-hub-heading { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
  .seo-link-hub-title { font-size: 20px; }
  .seo-link-hub-regions { gap: 20px; }
  .seo-link-hub-regions button { font-size: 13px; padding: 10px 2px; }
  .seo-link-hub-grid,
  .seo-link-hub-panel--hotels .seo-link-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .seo-link-hub-grid a { font-size: 12px; }
}

/* ---- 酒店首页原有城市区块，对齐到同一风格 ---- */
.seo-destinations-section .recommendations-title {
  font-size: 24px;
  font-weight: 800;
  color: #03205a;
  margin-bottom: 20px;
}
.seo-destinations-section .recommendations-tabs {
  gap: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.seo-destinations-section .recommendations-tab {
  position: relative;
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}
.seo-destinations-section .recommendations-tab.active { color: #2c61fe; }
.seo-destinations-section .recommendations-grid { column-gap: 24px; row-gap: 0; }
.seo-destinations-section .recommendations-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f7;
  font-size: 13px;
  line-height: 1.6;
  color: #03205a;
}
.seo-destinations-section .recommendations-item[style*="display: none"] { display: none !important; }
.seo-destinations-section .recommendations-item::after {
  content: '›';
  flex: none;
  color: #73849e;
  font-size: 17px;
  line-height: 1;
}
.seo-destinations-section .recommendations-item:hover { color: #2c61fe; }
.seo-destinations-section .hotel-directory-nav { margin-top: 16px; padding-top: 0; border-top: 0; }
/* 电脑宽度：「都市・地域からホテルを探す」放到标题行右侧，与下方区块的「すべて見る」位置一致 */
@media (min-width: 769px) {
  .seo-destinations-section .detail-container { position: relative; }
  .seo-destinations-section .hotel-directory-nav {
    position: absolute;
    top: 6px;
    right: 20px;
    margin: 0;
  }
  .seo-destinations-section .hotel-directory-link { font-size: 13px; color: #475467; }
  .seo-destinations-section .hotel-directory-link-arrow { display: none; }
  .seo-destinations-section .hotel-directory-link::after { content: ' ›'; }
  .seo-destinations-section .hotel-directory-link:hover { color: #2c61fe; }
}
