.azbf-static-page {
  margin-top: 30px;
}

.azbf-static-page > p,
.azbf-static-page > .wp-block-paragraph,
.azbf-static-page p {
  line-height: 2.05;
  margin-top: 0;
  margin-bottom: 30px;
}

.azbf-static-page > h2,
.azbf-static-page > .wp-block-heading {
  margin-top: 52px !important;
  margin-bottom: 26px !important;
  padding: 16px 20px !important;
  line-height: 1.55 !important;
}

.azbf-static-page > .wp-block-shortcode {
  margin-top: 28px;
  margin-bottom: 48px;
}

.azbf-wrap {
  margin: 42px 0 52px;
  font-family: inherit;
  color: inherit;
}

.azbf-header {
  margin-bottom: 30px;
}

.azbf-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f7f4ff;
  font-size: .86em;
  font-weight: 700;
}

.azbf-header h2 {
  margin: 0 0 20px !important;
  padding: 16px 20px !important;
  line-height: 1.55 !important;
}

.azbf-lead {
  margin: 0;
  color: #555;
  line-height: 2.05;
}

.azbf-empty {
  padding: 18px;
  border: 1px solid #e5e1f2;
  border-radius: 14px;
  background: #fbfaff;
}

.azbf-ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
}

.azbf-card {
  border: 1px solid #e8e2f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 20, 72, .06);
  overflow: hidden;
}

.azbf-card-link {
  display: flex;
  gap: 14px;
  height: 100%;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.azbf-card-link:hover {
  opacity: .88;
}

.azbf-rank-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f4efff;
  font-weight: 800;
}

.azbf-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.12em;
}

.azbf-card-body p {
  margin: 10px 0 0;
  line-height: 1.8;
  color: #555;
}

.azbf-rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95em;
}

.azbf-stars {
  letter-spacing: .08em;
  color: #8060b8;
  font-weight: 700;
}

.azbf-stars-empty {
  letter-spacing: 0;
  color: #777;
  font-weight: 400;
}

.azbf-compact-ranking {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.azbf-compact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #eee8f7;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.azbf-compact-row:hover {
  background: #fbfaff;
}

.azbf-compact-rank {
  font-weight: 800;
  min-width: 48px;
}

.azbf-compact-name {
  font-weight: 700;
  flex: 1;
}

.azbf-compact-stars {
  font-size: .92em;
}

.azbf-back {
  margin: 0 0 22px;
}

.azbf-back a {
  text-decoration: none;
}

.azbf-fortune-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 24px 0 32px;
  padding: 22px;
  border: 1px solid #e8e2f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fbf8ff);
}

.azbf-fortune-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: #f4efff;
  font-weight: 800;
  text-align: center;
}

.azbf-fortune-rank span {
  font-size: 1.25em;
}

.azbf-fortune-rank small {
  font-size: .75em;
  color: #666;
}

.azbf-score-area {
  flex: 1;
}

.azbf-score-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 20px;
}

.azbf-score-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.azbf-one-point {
  margin: 18px 0 0;
  line-height: 2;
  color: #444;
}

.azbf-section {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid #e8e2f2;
  border-radius: 16px;
  background: #fff;
}

.azbf-section h3,
.azbf-detail-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.5;
}

.azbf-section p,
.azbf-detail-box p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 2.05;
}

.azbf-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 30px;
}

.azbf-detail-box {
  padding: 22px;
  border: 1px solid #e8e2f2;
  border-radius: 16px;
  background: #fff;
}

.azbf-detail-rating {
  margin-top: 0;
  margin-bottom: 10px;
}

.azbf-lucky-box dl {
  margin: 0;
}

.azbf-lucky-box dl div {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #e8e2f2;
}

.azbf-lucky-box dl div:last-child {
  border-bottom: 0;
}

.azbf-lucky-box dt {
  font-weight: 700;
  min-width: 150px;
}

.azbf-lucky-box dd {
  margin: 0;
}

.azbf-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 22px 0 30px;
}

.azbf-link-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid #e8e2f2;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.azbf-link-card:hover {
  background: #fbfaff;
}

.azbf-link-card.is-current {
  background: #f4efff;
  border-color: #d8c9f0;
}

.azbf-all-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 30px;
}

.azbf-all-links-group {
  padding: 18px;
  border: 1px solid #e8e2f2;
  border-radius: 0;
  background: #fff;
}

.azbf-all-links-group h3 {
  margin: 0 0 14px;
  font-size: 1.05em;
}

.azbf-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.azbf-mini-links a {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f7f4ff;
  color: inherit;
  text-decoration: none;
  font-size: .9em;
}

.azbf-mini-links a:hover {
  opacity: .84;
}

@media (max-width: 600px) {
  .azbf-static-page > p,
  .azbf-static-page > .wp-block-paragraph,
  .azbf-static-page p {
    line-height: 2;
    margin-bottom: 28px;
  }

  .azbf-static-page > h2,
  .azbf-static-page > .wp-block-heading,
  .azbf-header h2 {
    padding: 15px 16px !important;
    line-height: 1.55 !important;
  }

  .azbf-card-link {
    padding: 16px;
  }

  .azbf-fortune-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .azbf-score-list {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .azbf-score-list div {
    justify-content: flex-start;
  }

  .azbf-score-list span:first-child {
    min-width: 70px;
  }

  .azbf-lucky-box dl div {
    display: block;
  }

  .azbf-lucky-box dd {
    margin-top: 4px;
  }

  .azbf-compact-ranking {
    grid-template-columns: 1fr;
  }

  .azbf-all-links {
    grid-template-columns: 1fr;
  }
}

/* v0.1.3: 個別ページのファーストビューと本文カードを調整 */
.azbf-fortune-wrap {
  margin-top: 26px;
}

.azbf-fortune-wrap .azbf-header {
  margin-bottom: 22px;
}

.azbf-fortune-wrap .azbf-header h2 {
  margin-bottom: 0 !important;
}

.azbf-back-after-summary {
  margin: 18px 0 28px;
  font-size: .95em;
}

.azbf-detail-grid {
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0 32px;
}

.azbf-detail-box {
  width: 100%;
}

/* 固定SEO本文のH2は、今日の運勢本体より軽く見せる */
.azbf-static-page > h2.wp-block-heading,
.azbf-static-page > h2 {
  background: #fff !important;
  color: inherit !important;
  border: 0 !important;
  border-left: 5px solid #d90000 !important;
  border-bottom: 1px solid #e8e8e8 !important;
  box-shadow: none !important;
  padding: 10px 0 10px 18px !important;
  margin-top: 64px !important;
  margin-bottom: 28px !important;
}

/* 今日の運勢ショートコード内のメイン見出しは赤背景を維持 */
.azbf-fortune-wrap .azbf-header h2 {
  background: #d90000 !important;
  color: #fff !important;
  border-top: 4px double #fff !important;
  border-bottom: 4px double #fff !important;
  padding: 18px 22px !important;
}

/* v0.1.4: 固定ページ生成H2を専用クラスで制御 */
.azbf-static-page h2.azbf-static-heading,
.azbf-static-page .wp-block-heading.azbf-static-heading,
.entry-content .azbf-static-page h2.azbf-static-heading,
.post_content .azbf-static-page h2.azbf-static-heading,
.article-body .azbf-static-page h2.azbf-static-heading {
  background: #fff !important;
  color: inherit !important;
  border: 0 !important;
  border-left: 5px solid #d90000 !important;
  border-bottom: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 10px 18px !important;
  margin-top: 64px !important;
  margin-bottom: 28px !important;
  line-height: 1.55 !important;
}

.azbf-static-page h2.azbf-static-heading::before,
.azbf-static-page h2.azbf-static-heading::after {
  display: none !important;
  content: none !important;
}

.azbf-detail-grid {
  grid-template-columns: 1fr !important;
}


/* v0.1.5: 星座単体ページ */
.azbf-notice {
  margin: 18px 0 24px;
  padding: 12px 14px;
  border: 1px solid #eadfb6;
  background: #fffaf0;
  color: #6b5200;
  line-height: 1.7;
  font-size: .94em;
}

.azbf-sign-wrap .azbf-header h2 {
  background: #d90000 !important;
  color: #fff !important;
  border-top: 4px double #fff !important;
  border-bottom: 4px double #fff !important;
  padding: 18px 22px !important;
}

.azbf-sign-summary .azbf-fortune-rank {
  width: 98px;
  height: 98px;
}

.azbf-sign-summary .azbf-fortune-rank span {
  font-size: 1.02em;
  line-height: 1.35;
}

.azbf-sign-blood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.azbf-sign-blood-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid #e8e2f2;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.azbf-sign-blood-card:hover {
  background: #fbfaff;
}

.azbf-sign-blood-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.5;
}

.azbf-sign-blood-meta {
  display: block;
  margin-bottom: 8px;
  font-size: .92em;
  line-height: 1.7;
}

.azbf-sign-blood-text {
  display: block;
  color: #555;
  font-size: .94em;
  line-height: 1.8;
}

.azbf-all-links-group h3 a {
  color: inherit;
  text-decoration: none;
}

.azbf-all-links-group h3 a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .azbf-sign-blood-grid {
    grid-template-columns: 1fr;
  }

  .azbf-sign-summary .azbf-fortune-rank {
    width: 92px;
    height: 92px;
  }
}

/* v0.1.7: 星座単体ページの独自コンテンツ */
.azbf-shrine-action {
  background: #fffdf8;
}

.azbf-shrine-action-list {
  margin: 18px 0 0;
  padding: 0;
}

.azbf-shrine-action-list div {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed #eadfca;
}

.azbf-shrine-action-list dt {
  min-width: 130px;
  font-weight: 700;
}

.azbf-shrine-action-list dd {
  margin: 0;
}

@media (max-width: 600px) {
  .azbf-shrine-action-list div {
    display: block;
  }

  .azbf-shrine-action-list dd {
    margin-top: 4px;
  }
}
