/* 開運さん サイト見本（公開前の試作）v2
   方向: 「刷られた暦に、赤ペンで丸を付けた」。
   - 地は白、文字は墨。色は暦の赤だけ（土曜の数字だけ青）。
   - 区切りは罫線。角の丸い箱を積まない。丸い形は「まる印」だけに使う。
   - 数字は欧文の細身の書体（Barlow Condensed・数字だけ読み込み）、文字は端末のゴシック。
   決まり: グラデーション・ネオン・左の縦線・箱の上だけの色線・緑・3列の箱並びは使わない。 */

:root {
  --paper: #FFFFFF;
  --ink: #17171A;
  --sub: #5C5C64;
  --hair: #DADADF;
  --tint: #F4F4F1;
  --red: #D92B1E;
  --red-tint: #FCEFEC;
  --blue: #1E5AA8;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --num: "Barlow Condensed", "Arial Narrow", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;

  /* 手で描いた丸（赤ペンの丸）。a と b は向きを変えた2通り */
  --maru-fill-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg%3E%3Cpath d='M20.4 3.8C29.9 3.5 36.5 10.6 36.3 20.2 36.1 29.6 29.3 36.5 19.7 36.3 10.5 36.1 3.6 29.4 3.8 19.9 4 10.8 10.9 4.1 20.4 3.8Z' fill='%23D92B1E'/%3E%3Cpath d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' fill='none' stroke='%23D92B1E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  --maru-fill-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate(150 20 20)'%3E%3Cpath d='M20.4 3.8C29.9 3.5 36.5 10.6 36.3 20.2 36.1 29.6 29.3 36.5 19.7 36.3 10.5 36.1 3.6 29.4 3.8 19.9 4 10.8 10.9 4.1 20.4 3.8Z' fill='%23D92B1E'/%3E%3Cpath d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' fill='none' stroke='%23D92B1E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  --maru-red-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' fill='none' stroke='%23D92B1E' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
  --maru-red-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath transform='rotate(165 20 20)' d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' fill='none' stroke='%23D92B1E' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
  --maru-ink-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath transform='rotate(40 20 20)' d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' fill='none' stroke='%2317171A' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
  --maru-ink-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath transform='rotate(215 20 20)' d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' fill='none' stroke='%2317171A' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
  --maru-thin-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath transform='rotate(300 20 20)' d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' fill='none' stroke='%2385858E' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --maru-thin-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath transform='rotate(120 20 20)' d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' fill='none' stroke='%2385858E' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --maru-double: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%2385858E' stroke-linecap='round'%3E%3Cpath transform='translate(20 20) scale(1.1) translate(-20 -20)' d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' stroke-width='1.1'/%3E%3Cpath transform='rotate(170 20 20) translate(20 20) scale(.74) translate(-20 -20)' d='M23.5 6.4C31 6.6 36.2 12.6 35.9 20.6 35.6 29.2 28.9 35.6 20 35.5 11 35.4 4.2 29 4.3 20 4.4 11.2 11.2 4.4 20.2 4.2 24.2 4.1 28.2 5.3 31.2 7.6' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  font-feature-settings: "palt" 0;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-weight: 800; line-height: 1.4; margin: 0; word-break: auto-phrase; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
.n { font-family: var(--num); }

/* ---------- 一番上の帯（PR・見本） ---------- */
.pr-bar { border-bottom: 1px solid var(--hair); font-size: 13px; line-height: 1.6; padding: 9px 0; }
.pr-bar .wrap { display: flex; gap: 10px; align-items: center; }
.pr-label {
  flex: none;
  background: var(--ink); color: #fff;
  font-family: var(--num); font-weight: 700; font-size: 15px; letter-spacing: .1em; line-height: 1;
  padding: 4px 8px 4px 9px;
}
.sample-bar { background: var(--tint); color: var(--sub); font-size: 11.5px; line-height: 1.6; padding: 6px 16px; text-align: center; }

/* ---------- 題字（頭） ---------- */
.masthead { border-bottom: 3px solid var(--ink); }
.masthead .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "tag sub" "logo logo" "main main";
  align-items: end;
  padding-top: 12px;
}
.mast-tag { grid-area: tag; margin: 0; white-space: nowrap; font-size: 11.5px; line-height: 1.5; color: var(--sub); letter-spacing: .04em; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 7px; justify-self: start; text-decoration: none; color: var(--ink); margin: 4px 0 12px; }
.logo:hover { color: var(--ink); }
.logo-maru { width: 34px; height: 34px; flex: none; }
.logo-maru path, .foot-logo path { fill: none; stroke: var(--red); stroke-width: 20; stroke-linecap: round; }
.logo-name { font-size: 34px; font-weight: 900; line-height: 1.1; letter-spacing: .01em; }
.logo-kana { font-size: 10.5px; color: var(--sub); letter-spacing: .12em; align-self: flex-end; margin: 0 0 5px 2px; }
.nav { display: contents; }
.nav ul { list-style: none; }
.nav a { text-decoration: none; }
.nav-sub { grid-area: sub; display: flex; gap: 14px; font-size: 11.5px; line-height: 1.5; }
.nav-sub a { color: var(--sub); }
.nav-sub a:hover { color: var(--red); }
.nav-sub a[aria-current="page"] { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; }
.nav-main {
  grid-area: main;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 -16px;
  box-shadow: 0 -1px 0 var(--ink);
}
.nav-main li:not(:last-child) { border-right: 1px solid var(--hair); }
.nav-main a { display: block; text-align: center; padding: 11px 2px 10px; font-size: 13.5px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.nav-main a:hover { color: var(--red); }
.nav-main a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- 共通の見出し ---------- */
.slug { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--red); line-height: 1.5; }
.sec { margin-top: 56px; }
.sec-head { border-bottom: 2px solid var(--ink); padding-bottom: 9px; margin-bottom: 12px; }
.sec-head h2 { font-size: 24px; letter-spacing: .01em; }
.lead { font-size: 13.5px; line-height: 1.8; color: var(--sub); margin: 0 0 6px; }

/* ---------- トップ：今日の一枚（日めくり） ---------- */
.today-h { font-size: 13px; font-weight: 800; color: var(--sub); margin: 20px 0 8px; letter-spacing: .02em; }
.sheet { border: 2px solid var(--ink); background: var(--paper); }
.sheet-band { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; padding: 7px 14px 6px; line-height: 1.3; }
.band-ym { font-size: 14px; font-weight: 700; }
.band-ym .n { font-size: 24px; font-weight: 600; letter-spacing: .02em; margin: 0 1px; }
.band-wd { font-size: 19px; font-weight: 800; letter-spacing: .12em; }
.sheet-face {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "left day right";
  align-items: start;
  padding: 8px 12px 8px;
  border-bottom: 2px solid var(--ink);
}
.sheet-day { grid-area: day; position: relative; width: clamp(150px, 46vw, 200px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.maru { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mekuri-day { position: relative; font-family: var(--num); font-weight: 700; font-size: 136px; line-height: 1; letter-spacing: -.01em; padding-bottom: .04em; }
.maru path { fill: none; }
.t-fill .maru .nuri { fill: var(--red); }
.t-fill .maru .wa { stroke: var(--red); stroke-width: 7; stroke-linecap: round; }
.t-fill .mekuri-day { color: #fff; }
.t-red .maru .wa { stroke: var(--red); stroke-width: 6; stroke-linecap: round; }
.t-ink .maru .wa { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.t-thin .maru .wa { stroke: #85858E; stroke-width: 3; stroke-linecap: round; }
.t-none .maru { display: none; }
.t-none .mekuri-day { font-size: 176px; }

.koyomi { writing-mode: vertical-rl; padding-top: 18px; }
.koyomi-r { grid-area: right; }
.koyomi-l { grid-area: left; }
.koyomi > div { display: flex; align-items: center; gap: 9px; line-height: 1.25; }
.koyomi > div + div { margin-block-start: 7px; }
.koyomi dt { font-size: 10.5px; font-weight: 700; color: var(--sub); letter-spacing: .22em; }
.koyomi dd { font-size: 23px; font-weight: 800; letter-spacing: .06em; }
.koyomi dd small { font-size: 10px; font-weight: 500; color: var(--sub); letter-spacing: .1em; margin-block-start: 0; margin-inline-start: 6px; }
.tcy { -webkit-text-combine: horizontal; text-combine-upright: all; font-family: var(--num); font-weight: 700; font-size: 1.12em; }

.lucky { padding: 14px 16px 4px; }
.lucky-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 800; color: var(--red); letter-spacing: .04em; }
.lucky-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 13px; border-bottom: 1px solid var(--ink); }
.lucky-list li { display: flex; align-items: center; gap: 5px; font-size: 22px; font-weight: 800; line-height: 1.35; }
.lucky-notes { list-style: none; font-size: 13.5px; line-height: 1.75; }
.lucky-notes li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.lucky-notes li:last-child { border-bottom: 0; }
.lucky-notes b { font-weight: 800; }
.lucky-notes .yomi { color: var(--sub); font-size: 12px; margin-left: 2px; }
.lucky-notes .desc { display: block; }
.today-note { font-size: 13px; line-height: 1.8; color: var(--sub); margin: 12px 0 0; }

/* 丸の中に一字（今日の吉日・印の見方） */
.dot {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px;
  font-size: 12.5px; font-weight: 800; line-height: 1; letter-spacing: 0;
  background: center / 100% 100% no-repeat;
  color: var(--ink);
}
.dot-tensha { background-image: var(--maru-fill-a); color: #fff; }
.dot-ichiryu { background-image: var(--maru-red-a); color: var(--red); }
.dot-taian { background-image: var(--maru-ink-a); }
.dot-tora { background-image: var(--maru-thin-a); color: var(--sub); }
.dot-mi { background-image: var(--maru-thin-b); color: var(--sub); }
.dot-kinoene { background-image: var(--maru-thin-b); color: var(--sub); }
.dot-tsuchinotomi { background-image: var(--maru-double); color: var(--sub); font-size: 9px; }
.dot-fujoju { color: var(--sub); font-size: 11px; place-items: start end; padding: 2px 3px 0 0; }

/* ---------- 開運めくり（12星座の順位） ---------- */
.rank { list-style: none; }
.rank-item { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 8px; padding: 18px 0 17px; border-bottom: 1px solid var(--hair); }
.rank-no { font-family: var(--num); line-height: 1; white-space: nowrap; }
.rn { font-weight: 700; font-size: 38px; letter-spacing: -.01em; }
.rank-no small { font-family: var(--jp); font-size: 11px; font-weight: 700; margin-left: 2px; }
.top1 .rn { font-size: 64px; color: var(--red); }
.top2 .rn, .top3 .rn { font-size: 48px; }
.rank-item.top1 { padding-top: 14px; border-bottom-color: var(--ink); }
.rank-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; line-height: 1.4; }
.rank-name .sym { font-size: 19px; margin-right: -4px; font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", sans-serif; }
.rank-name .sn { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.top1 .rank-name .sn { font-size: 27px; }
.top1 .rank-name .sym { font-size: 25px; }
.period { font-family: var(--num); font-size: 12.5px; color: var(--sub); letter-spacing: .02em; }
.rank-word { margin: 6px 0 11px; font-size: 15px; line-height: 1.8; }
.top1 .rank-word { font-size: 16.5px; }
.rank-data { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 20px; }
.field { font-size: 12.5px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.meters { list-style: none; flex: 1 1 250px; max-width: 400px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.meters li { display: flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 1; color: var(--sub); white-space: nowrap; }
.meters li.strong .m-label { color: var(--ink); font-weight: 800; }
.meter { flex: 1; display: flex; gap: 2px; }
.meter i { flex: 1; height: 6px; background: #E2E2E6; }
.meter i.on { background: var(--ink); }
.m-num { font-family: var(--num); font-weight: 700; font-size: 16px; color: var(--ink); min-width: 8px; text-align: right; }

.stars { margin-top: 22px; }
.stars-h { margin: 0; font-size: 12.5px; color: var(--sub); padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.stars-h b { color: var(--ink); font-weight: 800; }
.stars ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.stars li { padding: 9px 4px 10px; text-align: center; line-height: 1.4; }
.stars li:not(:last-child) { border-right: 1px solid var(--hair); }
.stars .pl { display: block; font-size: 11px; color: var(--sub); }
.stars [data-planet] { font-size: 16px; font-weight: 800; }

/* ---------- 誕生月の順位表 ---------- */
.month-rank { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--ink); margin-top: 12px; }
.month-rank li { background: var(--paper); padding: 9px 2px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.month-rank li.mr-top { background: var(--tint); }
.mr-no { font-size: 10.5px; font-weight: 700; color: var(--sub); }
.mr-no b { font-family: var(--num); font-weight: 700; font-size: 17px; color: var(--ink); margin-right: 1px; }
.month-rank li[data-rank="1"] .mr-no b { color: var(--red); }
.mr-name { font-size: 10.5px; color: var(--sub); white-space: nowrap; }
.mr-name b { font-size: 14px; font-weight: 800; color: var(--ink); margin-right: 1px; }
.mr-name .n { font-size: 30px; font-weight: 700; line-height: 1.05; margin-right: 1px; }

/* ---------- 年末までの吉日 ---------- */
.upcoming { list-style: none; }
.upcoming li { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); align-items: baseline; column-gap: 10px; padding: 9px 0 10px; border-bottom: 1px solid var(--hair); }
.u-date { font-size: 14px; font-weight: 800; white-space: nowrap; }
.u-date .n { font-size: 27px; font-weight: 700; line-height: 1.2; margin: 0 1px; }
.w { font-size: .86em; font-weight: 700; color: var(--sub); }
.w-日 { color: var(--red); }
.w-土 { color: var(--blue); }
.u-kinds { font-size: 15.5px; line-height: 1.6; }
.chip { font-weight: 800; white-space: nowrap; }
.chip + .chip::before { content: "・"; font-weight: 400; color: var(--sub); }
.chip-天赦日, .chip-一粒万倍日 { color: var(--red); }
.chip-不成就日 { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--sub); }
.chip.chip-不成就日::before { content: "※"; }

.next-link {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 22px; padding: 15px 18px 15px 20px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 800; line-height: 1.5; text-decoration: none;
  transition: background-color .15s ease;
}
.next-link:hover { background: var(--red); color: #fff; }
.next-link .arrow { font-size: 22px; line-height: 1; flex: none; }

/* ---------- 開運まる印（吉日カレンダー） ---------- */
.page-head { padding-top: 24px; }
.page-head h1 { font-size: 27px; margin: 4px 0 10px; line-height: 1.3; }
.page-head h1 .n { font-size: 1.5em; font-weight: 700; line-height: 1; margin-right: 2px; }
.highlight { margin-top: 24px; }
.highlight h2 { font-size: 14px; color: var(--red); letter-spacing: .04em; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.highlight ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
.highlight li { padding: 6px 0 7px; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 800; white-space: nowrap; }
.highlight li .n { font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--red); margin: 0 1px; }
.legend-sec { margin-top: 40px; }
.legend-sec h2 { font-size: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.legend { list-style: none; }
.legend li { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 11px 0 12px; border-bottom: 1px solid var(--hair); }
.legend .dot { width: 36px; height: 36px; font-size: 14px; margin-top: 1px; }
.legend .dot-tsuchinotomi { font-size: 10.5px; }
.legend b { display: block; font-size: 16px; font-weight: 800; line-height: 1.5; }
.legend small { font-size: 11.5px; font-weight: 500; color: var(--sub); margin-left: 8px; }
.legend .desc { display: block; font-size: 13.5px; line-height: 1.75; }

.month-jump { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--ink); margin-top: 40px; }
.month-jump li { background: var(--paper); }
.month-jump a { display: block; text-align: center; padding: 9px 0 8px; font-size: 12px; font-weight: 800; line-height: 1.3; text-decoration: none; color: var(--ink); }
.month-jump a .n { font-size: 20px; font-weight: 700; margin-right: 1px; }
.month-jump a:hover { background: var(--ink); color: #fff; }

.months { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 48px; margin-top: 44px; }
.month { scroll-margin-top: 12px; }
.month h2 { display: flex; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 4px; font-size: 20px; }
.month h2 .n { font-size: 60px; font-weight: 700; line-height: .95; margin-right: 3px; }
.month h2 small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--sub); }
.month h2 small .n { font-size: 18px; font-weight: 600; line-height: 1; margin-right: 1px; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 11px; font-weight: 700; color: var(--sub); padding: 8px 0 5px; border-bottom: 1px solid var(--hair); }
.cal th.sun { color: var(--red); }
.cal th.sat { color: var(--blue); }
.cal td { position: relative; text-align: center; vertical-align: top; padding: 5px 0 3px; height: 63px; border-bottom: 1px solid var(--hair); }
.dn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  font-family: var(--num); font-weight: 500; font-size: 22px; line-height: 1; padding-bottom: 1px;
  background: center / 100% 100% no-repeat;
}
.cal td.sun .dn { color: var(--red); }
.cal td.sat .dn { color: var(--blue); }
.dn.c-tensha { background-image: var(--maru-fill-a); font-weight: 700; }
.cal td .dn.c-tensha { color: #fff; }
.dn.c-ichiryu { background-image: var(--maru-red-a); }
.dn.c-taian { background-image: var(--maru-ink-a); }
.dn.c-tora, .dn.c-mi { background-image: var(--maru-thin-a); }
.dn.c-tsuchinotomi { background-image: var(--maru-double); }
.cal td:nth-child(even) .dn.c-ichiryu { background-image: var(--maru-red-b); }
.cal td:nth-child(even) .dn.c-taian { background-image: var(--maru-ink-b); }
.cal td:nth-child(even) .dn.c-tora, .cal td:nth-child(even) .dn.c-mi { background-image: var(--maru-thin-b); }
.cal td:nth-child(even) .dn.c-tensha { background-image: var(--maru-fill-b); }
.marks { display: block; min-height: 12px; font-size: 10px; font-weight: 700; line-height: 1.2; color: var(--sub); }
.marks span + span { margin-left: 1px; }
.marks .m-天, .marks .m-万 { color: var(--red); }
.fu { position: absolute; top: 3px; left: calc(50% + 16px); font-size: 9.5px; line-height: 1; color: var(--sub); }
.month-list { margin-top: 12px; font-size: 13px; line-height: 1.7; }
.month-list > div { display: grid; grid-template-columns: 6.3em minmax(0, 1fr); column-gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--hair); }
.month-list dt { font-weight: 800; }
.month-list .k-天赦日 dt, .month-list .k-一粒万倍日 dt { color: var(--red); }
.month-list .k-不成就日 { color: var(--sub); font-size: 12px; }
.month-list .k-不成就日 dt { font-weight: 500; }
.nw { white-space: nowrap; }

/* ---------- 読み物のページ（相談・運営者・広告） ---------- */
.prose { padding-top: 24px; }
.prose-head { border-bottom: 3px solid var(--ink); padding-bottom: 16px; }
.prose-head h1 { font-size: 24px; line-height: 1.45; margin: 4px 0 0; letter-spacing: 0; }
.ib { display: inline-block; }
.prose-intro { margin: 14px 0 0; font-size: 15px; line-height: 1.9; }
.prose-body { font-size: 15.5px; }
.prose-body h2 { font-size: 20px; margin: 44px 0 2px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.prose-body > h2:first-child { margin-top: 30px; }
.prose-body .lead { margin: 12px 0 0; }
.checks, .plain { list-style: none; }
.checks li, .plain li { padding: 15px 0 16px; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.85; }
.checks li b { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.6; margin-bottom: 2px; }
.plain li b { font-weight: 800; }
.checks-box li { position: relative; padding-left: 32px; }
.checks-box li::before { content: ""; position: absolute; left: 1px; top: 20px; width: 17px; height: 17px; border: 2px solid var(--ink); }
.note { background: var(--tint); border-radius: 12px; padding: 16px 18px 17px; margin: 26px 0 0; font-size: 14.5px; line-height: 1.85; }
.note-title { font-weight: 800; margin: 0 0 3px; font-size: 15px; }
.note-care { background: var(--red-tint); }
.note-care .note-title { color: #B4231A; }
.slot { border: 1px solid var(--ink); padding: 16px 18px 20px; margin: 14px 0 0; }
.slot p { margin: 0 0 8px; }
.ph { color: var(--sub); }
.slot .ph { font-size: 17px; font-weight: 800; }
.slot .lead { margin: 0 0 14px; }
.slot-btn { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--ink); padding: 9px 14px; font-size: 14px; font-weight: 700; color: var(--sub); text-decoration: none; }
.slot-btn[aria-disabled="true"] { cursor: default; }
.slot-btn[aria-disabled="true"]:hover { color: var(--sub); }
.info > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.8; }
.info dt { font-weight: 800; font-size: 13.5px; color: var(--sub); padding-top: 1px; }

/* ---------- 奥付（足） ---------- */
.site-foot { background: var(--ink); color: #fff; margin-top: 72px; padding: 34px 0 30px; }
.foot-logo { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 22px; font-weight: 900; line-height: 1.2; }
.foot-logo svg { width: 22px; height: 22px; }
.writer { margin: 14px 0 20px; font-size: 14.5px; font-weight: 700; line-height: 1.8; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.foot-links a { color: #fff; }
.foot-links a:hover { color: #fff; text-decoration-thickness: 2px; }
.copy { margin: 22px 0 0; font-size: 11.5px; color: #B5B5BD; }

/* ---------- 画面が広い時 ---------- */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .nav-main { margin: 0; }
  .month-jump { grid-template-columns: repeat(12, 1fr); }
  .month-rank { grid-template-columns: repeat(6, 1fr); }
  .rank-item { grid-template-columns: 64px minmax(0, 1fr); }
  .rank-word { font-size: 15.5px; }
  .top1 .rank-word { font-size: 17.5px; }
  .top1 .rn { font-size: 76px; }
  .top1 .rank-name .sn { font-size: 30px; }
  .sheet-day { width: 216px; }
  .mekuri-day { font-size: 148px; }
}

@media (min-width: 980px) {
  .masthead .wrap {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "tag tag sub" "logo main main";
    padding-top: 14px;
  }
  .logo { margin: 6px 0 14px; }
  .logo-maru { width: 40px; height: 40px; }
  .logo-name { font-size: 40px; }
  .nav-main { display: flex; justify-content: flex-end; align-self: end; box-shadow: none; }
  .nav-main li:not(:last-child) { border-right: 0; }
  .nav-main a { padding: 13px 20px 12px; font-size: 15px; }
  .nav-sub { font-size: 12px; }
  .mast-tag { font-size: 12px; }

  /* 左の段に「今日の一枚・誕生月・年末までの吉日」、右の段に12星座の順位（雑誌の見開きの組み方） */
  .today-grid {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    grid-template-areas: "today mekuri" "tanjo mekuri" "upcoming mekuri";
    grid-template-rows: auto auto 1fr;
    column-gap: 76px;
    align-items: start;
  }
  .today-main { display: contents; }
  .today { grid-area: today; }
  #mekuri { grid-area: mekuri; margin-top: 28px; }
  #tanjo { grid-area: tanjo; }
  #upcoming { grid-area: upcoming; }
  .today-h { margin-top: 28px; }
  #mekuri .sec-head h2 { font-size: 30px; }
  .today-grid .month-rank { grid-template-columns: repeat(4, 1fr); }

  .cal-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 76px; align-items: start; padding-top: 12px; }
  .page-head h1 { font-size: 36px; }
  .legend-sec { margin-top: 32px; }
  .highlight { margin-top: 36px; }
  .highlight li { padding: 10px 0 11px; font-size: 16px; }
  .highlight li .n { font-size: 42px; }
  .month-jump { margin-top: 48px; }
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 76px; row-gap: 64px; margin-top: 52px; }
  .cal td { height: 66px; }

  .prose { display: grid; grid-template-columns: 380px minmax(0, 1fr); column-gap: 76px; align-items: start; padding-top: 44px; }
  .prose-head { border-bottom: 0; padding-bottom: 0; position: sticky; top: 28px; }
  .prose-head h1 { font-size: 36px; line-height: 1.36; }
  .prose-intro { font-size: 15.5px; margin-top: 20px; }
  .prose-body { max-width: 640px; }
  .prose-body > h2:first-child { margin-top: 0; }
  .prose-body > :first-child { margin-top: 0; }
  .prose-body > .checks:first-child li:first-child, .prose-body > .info:first-child > div:first-child { padding-top: 4px; }
  .site-foot { margin-top: 96px; }
}

@media (max-width: 359px) {
  .mast-tag, .nav-sub { font-size: 10.5px; letter-spacing: 0; }
  .nav-sub { gap: 10px; }
  .nav-main a { font-size: 12.5px; }
  .logo-name { font-size: 30px; }
  .mekuri-day { font-size: 116px; }
  .koyomi dd { font-size: 20px; }
  .meters { gap: 8px; }
}
