/* 誕生日×2027年（/birthday/MM-DD/2027/ と /birthday/2027/） */
.b27 h1 small { display: block; font-size: 14px; font-weight: 400; color: var(--sub); margin-top: 2px; }
.b27-card { position: relative; margin: 16px 0 0; padding: 22px 18px 18px; border-radius: 20px 20px 0 0; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #6b78c4 0%, #3d4888 55%, #2a3164 100%); }
.b27-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 82% 28%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 66% 78%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 28% 70%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 92% 64%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 46% 10%, #fff 50%, transparent 52%); }
.b27-card > * { position: relative; }
.b27-card-top { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.b27-card-top img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 2px; }
.b27-rank { margin: 6px 0 0; line-height: 1; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.b27-rank small { font-size: 15px; opacity: .85; }
.b27-rank strong { font-size: 76px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(255, 220, 140, .45); color: #ffe7a8; min-width: 1.6em; }
.b27-tier { display: inline-block; margin: 10px 0 0; padding: 2px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.b27-kw { margin: 10px 0 0; font-size: 20px; font-weight: 700; line-height: 1.5; }
.b27-facts { display: grid; grid-template-columns: 1fr .8fr 1.5fr; gap: 6px; margin: 14px 0 0; }
.b27-facts div { background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 6px 4px; }
.b27-facts dt { font-size: 11px; opacity: .8; line-height: 1.4; }
.b27-facts dd { margin: 0; font-size: clamp(12px, 3.4vw, 14px); white-space: nowrap; font-weight: 700; line-height: 1.45; }
.b27-card.is-counting .b27-tier, .b27-card.is-counting .b27-kw { opacity: .25; }
.b27-card .b27-tier, .b27-card .b27-kw { transition: opacity .5s; }
.b27-share { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; padding: 12px 12px 14px; text-align: center; }
.b27-share-t { margin: 0 0 8px; font-size: 13px; color: var(--sub); }
.b27-share-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.b27-share-btns a, .b27-share-btns button { font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.b27-share-btns .b27-x { background: #111; color: #fff; border-color: #111; }
.b27-share-btns .b27-line { background: #06c755; color: #fff; border-color: #06c755; }
.b27-share-btns [data-copied] { border-color: #4d5fa3; color: #4d5fa3; }
.b27-pick { margin: 18px 0; padding: 14px; border-radius: 14px; background: #eaedf8; text-align: center; }
.b27-pick p { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.b27-pick div { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.b27-pick label { display: inline-flex; align-items: center; gap: 4px; }
.b27-pick select { font: inherit; font-size: 16px; min-height: 44px; padding: 4px 8px; border-radius: 10px; border: 1px solid #c9cfe8; background: #fff; }
.b27-pick button { font: inherit; font-weight: 700; min-height: 44px; padding: 6px 22px; border: 0; border-radius: 999px; background: #4d5fa3; color: #fff; cursor: pointer; }
.b27-me { margin: -6px 0 18px; padding: 10px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f0dca8; font-size: 14px; }
.b27-me a { font-weight: 700; }
.b27-sec { margin: 36px 0; }
.b27-sec > h2 { font-size: 21px; line-height: 1.5; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.b27-sec > h3, .b27-sec h3 { font-size: 17px; margin: 22px 0 4px; }
.b27-trs, .b27-nms, .b27-months { list-style: none; padding: 0; margin: 14px 0 0; }
.b27-tr { background: #fff; border: 1px solid var(--line); border-left: 5px solid #8b95c9; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.b27-tr.b27-jupiter { border-left-color: #d89a2b; } .b27-tr.b27-saturn { border-left-color: #6d7079; }
.b27-tr.b27-uranus { border-left-color: #3a9fb0; } .b27-tr.b27-neptune { border-left-color: #5a7cc8; } .b27-tr.b27-pluto { border-left-color: #8a5a9e; }
.b27-tr p { margin: 4px 0; }
.b27-tr-h { font-size: 15px; }
.b27-tr-h span { display: block; font-size: 13px; color: var(--sub); }
.b27-nms li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.b27-nms li b { display: block; color: #4d5fa3; }
.b27-sr { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 12px 14px; }
.b27-sr b { display: block; color: #4d5fa3; }
.b27-months li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.b27-months p { margin: 2px 0; }
.b27-m-h b { font-size: 17px; margin-right: 8px; }
.b27-m-h span { font-size: 13px; color: var(--sub); }
.b27-note { font-size: 13px; color: var(--sub); }
.b27-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0; }
.b27-month-grid a { min-height: 48px; justify-content: center; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); line-height: 1.3; }
.b27-month-grid a span { font-size: 11px; color: var(--sub); }
.b27-month-grid a b { font-size: 13px; }
.b27-month-grid a[aria-current] { background: #4d5fa3; color: #fff; border-color: #4d5fa3; }
.b27-month-grid a[aria-current] span { color: #fff; }
.b27-month-grid a.t0 { background: #fff1cc; border-color: #f0d48a; } .b27-month-grid a.t1 { background: #fff8e6; }
.b27-month-grid a.t3 { background: #f2f3f8; } .b27-month-grid a.t4 { background: #e9ebf3; }
.b27-legend { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; font-size: 12px; }
.b27-legend li { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.b27-legend li b { margin-right: 4px; }
.b27-legend .t0 { background: #fff1cc; } .b27-legend .t1 { background: #fff8e6; } .b27-legend .t3 { background: #f2f3f8; } .b27-legend .t4 { background: #e9ebf3; }
.b27-cal h3 { display: flex; align-items: center; gap: 6px; }
.b27-cal h3 img { border-radius: 50%; }
.b27-pn { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.b27-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.b27 h1, .b27-sec > h2, .b27-kw { text-wrap: balance; word-break: auto-phrase; }
.b27-top { list-style: none; padding: 0; counter-reset: none; }
.b27-top li a { display: grid; grid-template-columns: 3.6em 6em 1fr; gap: 6px; align-items: baseline; padding: 9px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.b27-top li a b { color: #b0446a; }
.b27-top li:nth-child(-n+3) a b { font-size: 18px; color: #b8860b; }
.b27-top li a em { font-style: normal; font-size: 13px; color: var(--sub); }
.b27 .btn { display: inline-block; padding: 10px 22px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
@media (max-width: 419px) { .b27-month-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 359px) { .b27-month-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 420px) {
  .b27-rank strong { font-size: 64px; }
  .b27-kw { font-size: 18px; }
  .b27-top li a { grid-template-columns: 3.2em 5.4em 1fr; }
}
.b27-forget { font: inherit; font-size: 12px; margin-left: 6px; padding: 2px 10px; border: 1px solid #e0c98e; border-radius: 999px; background: #fff; color: var(--sub); cursor: pointer; min-height: 32px; }

.b27-card.has-bg { background: var(--bg) center / cover no-repeat, radial-gradient(120% 90% at 50% 0%, #6b78c4 0%, #3d4888 55%, #2a3164 100%); }
.b27-card.has-bg::before { display: none; }
.b27-card.has-bg .b27-card-top, .b27-card.has-bg .b27-kw { text-shadow: 0 1px 8px rgba(30, 36, 90, .6); }
