/* 開運さん（kaiun.day）v3「宝珠の日めくり」2026-11-23
   朱・金・白・生成り・焦げ茶。区切りは罫線ではなく地の色と余白。影・グラデーションは使わない。 */
:root {
  --shu: #CD4428;
  --shu-deep: #A8361E;
  --maru: #E2261A;
  --gold: #F2B01E;
  --gold-soft: #FCE7B0;
  --gold-ink: #8A5E00;
  --paper: #FFF6E6;
  --paper-2: #FBEBD0;
  --white: #FFFFFF;
  --ink: #2A1F1A;
  --sub: #6B5B50;
  --line: #EADBC3;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --num: "M PLUS Rounded 1c", "Zen Maru Gothic", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.n { font-family: var(--num); font-weight: 800; letter-spacing: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 頭 ---------- */
.top { background: var(--shu-deep); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); }
.logo-name { font-family: var(--round); font-weight: 900; font-size: 22px; line-height: 1.1; letter-spacing: .02em; }
.logo-tag { display: block; font-family: var(--round); font-weight: 500; font-size: 11px; opacity: .92; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; }
.nav a { font-family: var(--round); font-weight: 700; font-size: 13px; text-decoration: none; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.nav a[aria-current="page"] { background: var(--white); color: var(--shu-deep); }
@media (max-width: 520px) { .nav a.nav-wide { display: none; } .logo-tag { display: none; } .nav a { padding: 6px 9px; } }

/* ---------- 今日の札（朱の地） ---------- */
.hero { background: var(--shu); color: var(--white); padding: 8px 0 36px; }
.hero .wrap { display: grid; gap: 18px; }
.sheet { position: relative; background: var(--white); color: var(--ink); border-radius: 22px; padding: 26px 20px 18px; text-align: center; }
.sheet::before, .sheet::after { content: ""; position: absolute; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--shu); }
.sheet::before { left: calc(50% - 56px); }
.sheet::after { left: calc(50% + 42px); }
.sheet-ghost { position: absolute; inset: 0; background: var(--white); border-radius: 22px; padding: 30px 20px 22px; text-align: center; transform-origin: 50% 0;
  animation: mekuri .8s cubic-bezier(.5, 0, .75, 0) forwards; pointer-events: none; }
@keyframes mekuri { 0% { transform: none; opacity: 1; } 35% { transform: rotate(-4deg) translateY(-6px); } 100% { transform: rotate(9deg) translateY(110%); opacity: 0; } }
.sh-label { font-family: var(--round); font-weight: 700; font-size: 13px; color: var(--shu-deep); letter-spacing: .08em; }
.sh-ym { font-family: var(--round); font-weight: 700; font-size: 17px; margin-top: 2px; }
.sh-day { position: relative; width: 156px; height: 124px; margin: 2px auto 0; display: grid; place-items: center; }
.sh-day .n { position: relative; font-size: 96px; line-height: 1; }
.sh-ring { position: absolute; inset: -6px 2px; width: auto; height: auto; overflow: visible; }
.sh-ring .wa, .ring .wa { fill: none; stroke: var(--maru); stroke-width: 7; stroke-linecap: round; }
.sh-ring .nuri, .ring .nuri { fill: var(--maru); }
.sh-day.c-tensha .n { color: var(--white); }
.sh-day.c-taian .wa { stroke: #7A5A3C; stroke-width: 5; }
.sh-wd { font-family: var(--round); font-weight: 700; font-size: 18px; }
.sh-wd.wd-日, .sh-wd.is-hol { color: var(--shu-deep); }
.sh-kinds { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.kn { font-family: var(--round); font-weight: 900; font-size: 20px; line-height: 1.2; padding: 10px 14px 6px; border-radius: 14px; background: var(--paper); }
.kn ruby rt { font-weight: 500; font-size: 11px; color: var(--sub); letter-spacing: .04em; }
.kn.s-tensha { background: var(--shu); color: var(--white); }
.kn.s-tensha rt { color: var(--gold-soft); }
.kn.s-ichiryu { background: #FDE3DC; color: var(--shu-deep); }
.kn.s-tsuchinotomi, .kn.s-mi { background: var(--gold-soft); color: var(--gold-ink); }
.kn.s-tora { background: var(--gold-soft); color: var(--gold-ink); }
.kn.s-taian { background: var(--paper-2); }
.kn.kn-fu { background: #EFE8E1; color: var(--sub); font-size: 16px; }
.kn.kn-rokuyo { background: var(--paper-2); color: var(--ink); }
.sh-desc { margin: 10px auto 0; max-width: 22em; font-size: 14px; line-height: 1.7; color: var(--sub); }
.sh-sub { margin-top: 12px; font-family: var(--round); font-weight: 500; font-size: 14px; color: var(--sub); }
.sh-sub .dot { margin: 0 2px; }
.sh-out { padding: 40px 0; font-family: var(--round); font-weight: 700; }

.talk { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: end; gap: 10px; }
.hoshu img { width: 108px; height: 108px; border-radius: 50%; }
.bubble { position: relative; background: var(--white); color: var(--ink); border-radius: 18px; padding: 14px 16px; margin-bottom: 18px; }
.bubble::before { content: ""; position: absolute; left: -9px; bottom: 18px; border: 10px solid transparent; border-right-color: var(--white); border-left: 0; }
.bubble p { font-family: var(--round); font-weight: 700; font-size: 15.5px; line-height: 1.7; }
.countdown { list-style: none; display: grid; gap: 6px; }
.countdown li { font-family: var(--round); font-weight: 700; font-size: 15px; background: var(--shu-deep); border-radius: 14px; padding: 8px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; }
.cd-r { text-align: right; white-space: nowrap; }
.countdown b { color: var(--gold-soft); }
.countdown .n { font-size: 22px; line-height: 1; color: var(--white); margin: 0 2px; }
.countdown small { display: block; font-size: 12px; opacity: .9; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 999px; font-family: var(--round); font-weight: 900; font-size: 16px; text-decoration: none; text-align: center; padding: 6px 14px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-white { background: var(--white); color: var(--shu-deep); }
.btn-line { border: 2px solid rgba(255, 255, 255, .8); color: var(--white); min-height: 44px; font-size: 14px; }
.acts .btn-line { grid-column: 1 / -1; }
.btn[hidden] { display: none; }

/* ---------- 読む所（生成り） ---------- */
.sec { padding: 40px 0 8px; }
.sec-h { font-family: var(--round); font-weight: 900; font-size: 24px; line-height: 1.4; }
.sec-h small { display: block; font-weight: 700; font-size: 13px; color: var(--shu-deep); letter-spacing: .06em; margin-bottom: 2px; }
.sec-lead { margin-top: 8px; color: var(--sub); font-size: 15px; }

/* これからの大事な日 */
.up-list { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.up-list button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; background: var(--white); border-radius: 18px; padding: 14px 16px; text-align: left; }
.up-date { font-family: var(--round); font-weight: 900; font-size: 17px; white-space: nowrap; }
.up-date .n { font-size: 28px; color: var(--shu-deep); }
.up-date small { font-size: 13px; color: var(--sub); }
.up-kinds { grid-column: 1; font-family: var(--round); font-weight: 700; font-size: 14px; line-height: 1.5; }
.up-kinds em { display: inline-block; margin-left: 6px; font-style: normal; font-size: 12px; color: var(--sub); }
.up-left { grid-column: 2; grid-row: 1 / span 2; font-family: var(--round); font-weight: 900; font-size: 14px; background: var(--paper); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.is-tensha button { background: var(--shu); color: var(--white); }
.is-tensha .up-date .n, .is-tensha .up-date small { color: var(--white); }
.is-tensha .up-left { background: var(--gold); color: var(--ink); }
.is-tensha .up-kinds em { color: var(--gold-soft); }

/* やりたいことから探す */
.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fd-chips button { font-family: var(--round); font-weight: 900; font-size: 15px; background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 46px; }
.fd-chips button[aria-pressed="true"] { background: var(--shu); border-color: var(--shu); color: var(--white); }
.fd-result:not(:empty) { margin-top: 14px; background: var(--white); border-radius: 20px; padding: 18px 16px 14px; }
.fd-head { font-family: var(--round); font-weight: 900; font-size: 17px; }
.fd-result ol { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.fd-result ol button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; text-align: left; background: var(--paper); border-radius: 14px; padding: 10px 14px; }
.fd-date { font-family: var(--round); font-weight: 900; font-size: 16px; }
.fd-date .n { font-size: 24px; color: var(--shu-deep); }
.fd-date small { color: var(--sub); font-size: 13px; }
.fd-date .off { font-style: normal; font-size: 11px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 3px; }
.fd-why { grid-column: 1; font-size: 13.5px; color: var(--sub); }
.fd-left { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--round); font-weight: 900; font-size: 14px; }
.fd-note { margin-top: 10px; font-size: 13px; color: var(--sub); }

/* ---------- カレンダー ---------- */
.cal-box { margin-top: 14px; background: var(--white); border-radius: 22px; padding: 16px 10px 12px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px; }
.cal-title { font-family: var(--round); font-weight: 900; font-size: 20px; }
.cal-title .n { font-size: 34px; color: var(--shu-deep); margin-right: 2px; }
.cal-title small { font-size: 14px; color: var(--sub); margin-left: 8px; }
.cal-nav button { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); font-family: var(--round); font-weight: 900; font-size: 18px; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-family: var(--round); font-weight: 700; font-size: 12px; color: var(--sub); padding: 4px 0 6px; }
.cal th.sun { color: var(--shu-deep); }
.cal th.sat { color: #3F6A8A; }
.cal td { height: 70px; padding: 1px; vertical-align: top; }
.dbtn { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: 4px; border-radius: 12px; }
.dbtn:hover { background: var(--paper); }
.dn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.dn .n { position: relative; font-size: 17px; line-height: 1; }
.ring { position: absolute; inset: -3px; width: 40px; height: 40px; overflow: visible; }
.ring .wa { stroke-width: 9; }
.c-tensha .dn .n { color: var(--white); }
.c-taian .ring .wa { stroke: #7A5A3C; stroke-width: 6; }
.sun .dn .n, .hol .dn .n { color: var(--shu-deep); }
.c-tensha.sun .dn .n, .c-tensha.hol .dn .n { color: var(--white); }
.sat .dn .n { color: #3F6A8A; }
.seals { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.s { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-family: var(--round); font-weight: 900; font-size: 12px; line-height: 1; }
.s-tensha { background: var(--maru); color: #fff; box-shadow: 0 0 0 1.5px var(--white), 0 0 0 3px var(--gold); }
.s-ichiryu { background: var(--maru); color: var(--white); }
.s-taian { background: var(--white); color: #7A5A3C; border: 1.5px solid #7A5A3C; }
.s-tora { background: var(--gold-soft); color: var(--gold-ink); border: 1.5px solid var(--gold); }
.s-mi { background: var(--white); color: var(--gold-ink); border: 1.5px solid var(--gold); }
.s-tsuchinotomi { background: var(--gold-soft); color: var(--gold-ink); border: 2px solid var(--gold-ink); }
.s-rokuyo { background: var(--paper-2); color: var(--ink); }
.s-fu { background: #EFE8E1; color: var(--sub); }
.fu { position: absolute; top: 2px; right: 3px; font-family: var(--round); font-weight: 900; font-size: 10px; color: var(--sub); }
.empty { background: none; }
td.today .dbtn { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
td.past .dbtn { opacity: .5; }
td.today.past .dbtn { opacity: 1; }
td.visited .dbtn::after { content: ""; position: absolute; bottom: 4px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.filtering td[data-date]:not(.hit) .dbtn { opacity: .38; }
.filtering td.hit .dbtn { background: #FDE3DC; opacity: 1; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 14px 6px 4px; font-family: var(--round); font-weight: 700; font-size: 14px; color: var(--sub); }
.legend li { display: flex; align-items: center; gap: 4px; }
.cal-hint { margin: 4px 6px 0; font-size: 12.5px; color: var(--sub); }

/* 2027年のページ（12か月を並べる） */
.months { display: grid; gap: 16px; margin-top: 16px; }
.month { background: var(--white); border-radius: 22px; padding: 16px 10px 12px; }
.month h2 { font-family: var(--round); font-weight: 900; font-size: 20px; padding: 0 6px 6px; }
.month h2 .n { font-size: 32px; color: var(--shu-deep); margin-right: 2px; }
.month-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.month-jump a { display: grid; place-items: center; min-width: 48px; min-height: 44px; border-radius: 12px; background: var(--white); font-family: var(--round); font-weight: 900; text-decoration: none; font-size: 14px; }
.tensha-box { margin-top: 16px; background: var(--shu); color: var(--white); border-radius: 22px; padding: 18px; }
.tensha-box h2 { font-family: var(--round); font-weight: 900; font-size: 18px; }
.tensha-box ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; }
.tensha-box li { font-family: var(--round); font-weight: 700; font-size: 15px; }
.tensha-box .n { font-size: 24px; }

/* 印の見方（くわしく） */
.kinds-list { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.kinds-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; background: var(--white); border-radius: 18px; padding: 14px 16px; }
.kinds-list .s { width: 30px; height: 30px; font-size: 15px; }
.kinds-list .s-tsuchinotomi { font-size: 12px; }
.kinds-list b { font-family: var(--round); font-weight: 900; font-size: 17px; }
.kinds-list b small { font-weight: 500; font-size: 12px; color: var(--sub); margin-left: 8px; }
.kinds-list p { font-size: 15px; margin-top: 2px; }

/* ---------- 日付の詳しい札（下から出る） ---------- */
dialog.ds { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88vh; border-radius: 24px 24px 0 0; background: var(--paper); color: var(--ink); }
dialog.ds::backdrop { background: rgba(42, 31, 26, .45); }
@media (min-width: 700px) { dialog.ds { margin: auto; border-radius: 24px; } }
.ds-in { padding: 18px 18px 22px; }
.ds-top { display: flex; justify-content: flex-end; }
.ds-top button { width: 44px; height: 44px; border-radius: 50%; background: var(--white); font-size: 20px; font-weight: 900; }
.ds-date { font-family: var(--round); font-weight: 900; font-size: 22px; margin-top: -30px; }
.ds-date .n { font-size: 40px; color: var(--shu-deep); }
.ds-date small { font-size: 15px; color: var(--sub); margin-left: 4px; }
.ds-sub { font-family: var(--round); font-weight: 700; color: var(--sub); font-size: 14px; }
.ds-kinds { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.ds-kinds li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; background: var(--white); border-radius: 16px; padding: 12px 14px; }
.ds-kinds li.none { grid-template-columns: 1fr; }
.ds-kinds .s { width: 28px; height: 28px; font-size: 14px; }
.ds-kinds b { font-family: var(--round); font-weight: 900; font-size: 17px; }
.ds-kinds b small { font-weight: 500; font-size: 12px; color: var(--sub); margin-left: 6px; }
.ds-kinds p { font-size: 15px; line-height: 1.7; }
.ds-talk { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 12px; background: var(--shu); color: var(--white); border-radius: 16px; padding: 10px 14px 10px 8px; }
.ds-talk img { width: 64px; height: 64px; border-radius: 50%; }
.ds-talk p { font-family: var(--round); font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.ds-acts { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.ds-acts .btn { font-size: 14px; min-height: 48px; }
.btn-shu { background: var(--shu); color: var(--white); }
.btn-paper { background: var(--white); color: var(--ink); border: 2px solid var(--line); }

/* ---------- このサイトについて ---------- */
.about-hero { background: var(--shu); color: var(--white); padding: 20px 0 30px; }
.about-hero .wrap { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.about-hero h1 { font-family: var(--round); font-weight: 900; font-size: 26px; line-height: 1.35; }
.about-hero img { border-radius: 50%; }
@media (max-width: 420px) { .about-hero .wrap { grid-template-columns: 96px minmax(0, 1fr); } .about-hero h1 { font-size: 21px; } }
.about-hero p { font-family: var(--round); font-weight: 700; font-size: 15px; margin-top: 6px; }
.prose { margin-top: 14px; background: var(--white); border-radius: 22px; padding: 20px 18px; }
.prose h2 { font-family: var(--round); font-weight: 900; font-size: 19px; margin-top: 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 15.5px; margin-top: 8px; }
.prose ul { padding-left: 1.2em; }

/* ---------- 足 ---------- */
.foot { margin-top: 48px; background: var(--shu-deep); color: #FFF6E6; padding: 30px 0 40px; }
.foot .wrap { display: grid; gap: 12px; }
.foot-logo { display: flex; align-items: center; gap: 10px; font-family: var(--round); font-weight: 900; font-size: 20px; }
.foot-logo img { width: 36px; height: 36px; border-radius: 50%; }
.foot p { font-size: 13px; line-height: 1.8; opacity: .92; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--round); font-weight: 700; font-size: 14px; }
.foot-ig { color: var(--gold-soft); }

/* ---------- 広い画面 ---------- */
@media (min-width: 900px) {
  .hero { padding: 24px 0 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; column-gap: 40px; }
  .hero .sheet { grid-row: 1 / span 3; }
  .talk { grid-template-columns: 150px minmax(0, 1fr); }
  .hoshu img { width: 150px; height: 150px; }
  .bubble p { font-size: 17px; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 40px; align-items: start; }
  .months { grid-template-columns: 1fr 1fr; }
  .cal td { height: 76px; }
  #calendar { position: sticky; top: 16px; }
  .about-hero .wrap { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .sheet-ghost { display: none; } }

/* 太さの整理（900は見出しと主なボタンだけ） */
.fd-chips button, .up-left, .fd-left, .btn-line, .up-date, .fd-date { font-weight: 700; }
.up-kinds .seals { display: inline-flex; vertical-align: -4px; margin-right: 6px; }
.is-tensha .up-kinds .s-tensha { box-shadow: 0 0 0 1.5px var(--shu), 0 0 0 3px var(--gold); }
.sub-h { font-family: var(--round); font-weight: 900; font-size: 17px; margin-top: 22px; }
.note-s { margin-top: 10px; font-size: 13px; color: var(--sub); }
