/* 1カラム専用。既存の .container の影と幅指定をこのページだけ変更。 */
.container.zodiac-hub-container {
  display: block;
  max-width: 1000px;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
}
/* 星告の時：12星座別ハブ専用（共通CSSの後に読み込む） */
.zodiac-hub {
  --zh-ink: #1e2a47;
  --zh-heading: #1e2a47;
  --zh-accent: #b89a66;
  --zh-line: #ded9cf;
  --zh-link: #254c76;
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 36px);
  color: #333;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  line-height: 1.7;
}
.zodiac-hub h1 {
  margin: 0 0 24px;
  color: var(--zh-ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .02em;
}
.zodiac-hub .zh-hero {
  overflow: hidden;
  border: 1px solid var(--zh-line);
  border-radius: 12px;
  background: #f3efe7;
}
/* ar.webp は上下に白い余白があるため、中央の絵柄のみを表示する。 */
.zodiac-hub .zh-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2048 / 428;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.zodiac-hub .zh-sign-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 10px 16px;
}
.zodiac-hub .zh-sign-name { color: var(--zh-heading); font-size: 1.2rem; font-weight: 700; }
.zodiac-hub .zh-sign-reading, .zodiac-hub .zh-sign-period { color: #5e6573; font-size: .95rem; }
.zodiac-hub .zh-intro { margin: 20px 0; line-height: 1.9; }
.zodiac-hub .zh-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
}
.zodiac-hub .zh-jump a {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--zh-line);
  border-radius: 9px;
  background: #f7f5f0;
  color: var(--zh-heading);
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
}
.zodiac-hub .zh-jump a::after { content: '⌄'; color: #8c6a2e; }
.zodiac-hub .zh-section { margin: 30px 0; scroll-margin-top: 24px; }
.zodiac-hub .zh-section h2 {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 0;
  border-left: 5px solid var(--zh-accent);
  border-radius: 0 8px 8px 0;
  background: #f3efe7;
  font-size: clamp(1.18rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--zh-heading);
  line-height: 1.45;
}
.zodiac-hub .zh-description { margin: 0 0 14px; }
.zodiac-hub .zh-section-body {
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2.5vw, 24px);
}
.zodiac-hub .zh-section-body-text { grid-template-columns: minmax(0, 1fr); }
.zodiac-hub .zh-category-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.zodiac-hub .zh-links {
  display: grid;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.zodiac-hub .zh-links li { padding: 0; margin: 0; }
.zodiac-hub .zh-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--zh-line);
  border-radius: 9px;
  color: var(--zh-link);
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.zodiac-hub .zh-links a::after { content: '›'; color: #8c6a2e; font-size: 1.4rem; flex: none; }
.zodiac-hub .zh-limited:empty { display: none; }
.zodiac-hub .zh-limited {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid #dcd0b9;
  border-radius: 10px;
  background: #f7f4ed;
}
.zodiac-hub .zh-limited p { margin: 0; line-height: 1.8; }
.zodiac-hub .zh-limited p + p { margin-top: 10px; }
.zodiac-hub .zh-limited a { color: var(--zh-link); text-decoration: underline; text-underline-offset: .15em; }
.zodiac-hub .zh-sign-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.zodiac-hub .zh-sign-grid li { min-width: 0; padding: 0; }
.zodiac-hub .zh-sign-grid a, .zodiac-hub .zh-sign-grid .zh-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 70px;
  padding: 8px 3px;
  border: 1px solid var(--zh-line);
  border-radius: 10px;
  background: #f7f5f0;
  color: var(--zh-heading);
  text-align: center;
  font-size: .95rem;
}
.zodiac-hub .zh-sign-grid .zh-current { background: #ece5d8; border-color: #b89a66; font-weight: 700; }
.zodiac-hub .zh-symbol { font-size: 1.6rem; line-height: 1.25; color: var(--zh-heading); }
.zodiac-hub a:hover { color: #b73030; }
.zodiac-hub .zh-links a:hover, .zodiac-hub .zh-jump a:hover, .zodiac-hub .zh-sign-grid a:hover { background: #f2ede3; border-color: #b89a66; }
/* common.css の全リンク向け focus スタイルをこの領域内だけ上書き */
.zodiac-hub a:focus { transform: none; }
.zodiac-hub a:focus-visible { outline: 2px solid #0266b8; outline-offset: 2px; }
@media (max-width: 600px) {
  .zodiac-hub .zh-sign-info { gap: 4px 10px; padding: 8px 12px; }
  /* スマートフォン：画像を上、占いリンクを下に配置 */
  .zodiac-hub .zh-section-body { grid-template-columns: minmax(0, 1fr); }
  .zodiac-hub .zh-category-image {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: auto 1733 / 907;
    object-fit: contain;
  }
  .zodiac-hub #zh-unsei .zh-category-image { content: url('../img/unsei.webp'); }
  .zodiac-hub #zh-kinun .zh-category-image { content: url('../img/kinun.webp'); }
  .zodiac-hub #zh-kuji .zh-category-image { content: url('../img/kuji.webp'); }
  .zodiac-hub #zh-gamble .zh-category-image { content: url('../img/gamble.webp'); }
  .zodiac-hub .zh-section-body-text { grid-template-columns: minmax(0, 1fr); }
  .zodiac-hub .zh-links a { font-size: .92rem; padding: 8px; }
  .zodiac-hub .zh-sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
}
