* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background: #f6f1e7;
    color: #3d3a37;
    line-height: 1.6;
}
a { color: #8a5a2b; text-decoration: none; }
a:hover { text-decoration: underline; }

header {
    background: #3f2f22;
    color: #f6f1e7;
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand-block {
    display: flex;
    flex-direction: column;
}
header .site-name a {
    color: #f6f1e7;
    font-size: 1.25rem;
    font-weight: bold;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
}
header .site-name a:hover { text-decoration: none; color: #fff; }
.brand-ruby {
    color: #f6f1e7;
    font-weight: bold;
}
.brand-ruby rt {
    font-size: 0.55em;
    color: #f2b632;
    letter-spacing: 1px;
    font-weight: normal;
}
.brand-title-suffix { font-size: 1.1rem; color: #e8dcc6; }
.site-domain {
    font-size: 0.72rem;
    font-weight: bold;
    color: #f2b632;
    background: rgba(242, 182, 50, 0.15);
    border: 1px solid rgba(242, 182, 50, 0.45);
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    margin-left: 2px;
}
.site-slogan {
    font-size: 0.68rem;
    font-weight: 300;
    color: #cfc0a8;
    opacity: 0.85;
    margin-top: 2px;
    letter-spacing: 0.5px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-nav a {
    color: #e8dcc6;
    margin-left: 12px;
    font-size: 0.88rem;
}
.site-nav a.active { color: #f2b632; font-weight: bold; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #705844;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}
.nav-toggle:hover { background: #55412f; }
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #f6f1e7;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.brand-hero-bar {
    text-align: center;
    margin: 4px 0 16px;
    padding: 4px 0;
}
.brand-hero-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #3f2f22;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.brand-hero-title ruby rt {
    font-size: 0.52em;
    color: #b45309;
    letter-spacing: 1.5px;
    font-weight: bold;
}
.brand-hero-slogan {
    font-size: 0.82rem;
    font-weight: 300;
    color: #786b59;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

main { max-width: 980px; margin: 0 auto; padding: 20px 14px 40px; }
h1 { font-size: 1.5rem; margin-bottom: 14px; }
h2 { font-size: 1.15rem; margin: 22px 0 10px; border-left: 4px solid #b0844a; padding-left: 8px; }
p { margin: 6px 0; }

.card {
    background: #fffdf7;
    border: 1px solid #e5d9c3;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

/* 今日のこよみ */
.today-hero { text-align: center; padding: 22px 16px; }
.today-date { font-size: 2.2rem; font-weight: bold; }
.today-date small { font-size: 1rem; color: #8a5a2b; display: block; margin-top: 2px; }
.today-rokuyo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
    padding: 2px 18px;
    border-radius: 6px;
    background: #3f2f22;
    color: #fff;
}
.today-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.today-item {
    background: #fbf7ec;
    border: 1px solid #e5d9c3;
    border-radius: 6px;
    padding: 10px;
}
.today-item .label { font-size: 0.78rem; color: #9a8a72; }
.today-item .value { font-size: 1.05rem; font-weight: bold; }
.kichijitsu-badge {
    display: inline-block;
    background: #c22f22;
    color: #fff;
    font-size: 0.78rem;
    padding: 1px 8px;
    border-radius: 10px;
    margin: 2px 3px 0 0;
}
a.kichijitsu-badge:hover { background: #a2231a; text-decoration: none; }
.kichijitsu-badge.muted { background: #8a8a80; }

/* 2026-2050 年リンク列 */
.year-links { margin: 14px 0; text-align: center; }
.year-links a {
    display: inline-block;
    min-width: 44px;
    padding: 4px 8px;
    margin: 3px 2px;
    background: #fffdf7;
    border: 1px solid #e5d9c3;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}
.year-links a.active { background: #c22f22; color: #fff; border-color: #c22f22; font-weight: bold; }

/* カレンダー */
.month-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.month-nav .month-title { font-size: 1.3rem; font-weight: bold; }
table.cal {
    width: 100%;
    border-collapse: collapse;
    background: #fffdf7;
}
table.cal th, table.cal td {
    border: 1px solid #e0d4bd;
    padding: 4px;
    text-align: center;
    vertical-align: top;
}
table.cal th { background: #efe6d2; font-size: 0.85rem; }
table.cal th.sun, table.cal td.sun { color: #c22f22; }
table.cal th.sat, table.cal td.sat { color: #31579e; }
table.cal td {
    height: 64px;
    width: 14.2%;
    font-size: 0.8rem;
}
table.cal td.other { background: #f4efe2; color: #b9b0a0; }
table.cal td.today { outline: 3px solid #f2b632; }
table.cal .daynum { font-size: 1.1rem; font-weight: bold; display: block; }
table.cal .holiday { font-size: 0.72rem; color: #c22f22; display: block; }
table.cal .sekki { font-size: 0.72rem; color: #2f6f4f; display: block; }
table.cal .lunar { font-size: 0.68rem; color: #9a8a72; display: block; }
table.cal .event { font-size: 0.66rem; color: #6b3fa0; display: block; font-weight: bold; }
table.cal .kj { font-size: 0.66rem; display: block; color: #a2351f; }

/* 六曜の配色 */
.r-daian { color: #c22f22; }
.r-tomobiki { color: #1f3a6e; }
.r-sensho { color: #d97b1f; }
.r-senbu { color: #3f7fc2; }
.r-butsumetsu { color: #666; }
.r-shakko { color: #8f2a4a; }

/* 年間カレンダー */
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
table.mini-cal { width: 100%; border-collapse: collapse; background: #fffdf7; font-size: 0.7rem; }
table.mini-cal th, table.mini-cal td { border: 1px solid #e0d4bd; padding: 1px; text-align: center; }
table.mini-cal th { background: #efe6d2; font-size: 0.72rem; }
table.mini-cal td { height: 22px; }
table.mini-cal td.sun { color: #c22f22; }
table.mini-cal td.sat { color: #31579e; }
table.mini-cal td.hol { background: #f8e6df; color: #c22f22; font-weight: bold; }
.mini-title { text-align: center; font-weight: bold; margin-bottom: 4px; }

/* 吉日検索フォーム */
form.search { background: #fffdf7; border: 1px solid #e5d9c3; border-radius: 8px; padding: 16px; }
form.search label { margin-right: 12px; white-space: nowrap; }
form.search input[type=date], form.search button { padding: 6px 10px; font-size: 0.95rem; }
form.search .types { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; }
form.search .types label { font-size: 0.88rem; }
table.result { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fffdf7; }
table.result th, table.result td { border: 1px solid #e0d4bd; padding: 6px 8px; font-size: 0.88rem; }
table.result th { background: #efe6d2; }
table.result tr.selected td { background: #fbf3df; font-weight: bold; }

/* こよみツール */
.tool-result {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fbf3df;
    border: 1px solid #e8d49a;
    border-radius: 6px;
    font-weight: bold;
}

.pager { display: flex; justify-content: center; gap: 16px; margin-top: 18px; }

/* ツールバー（印刷・エクスポート） */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; justify-content: flex-end; }
.toolbar .btn {
    background: #fffdf7;
    border: 1px solid #b0844a;
    color: #8a5a2b;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.9rem;
    cursor: pointer;
}
.toolbar .btn:hover { background: #f6efe0; }

/* 下拉メニュー共通 */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e5d9c3;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    min-width: 230px;
    padding: 6px;
    z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; }

/* 分享（シェア） */
.share-wrap { margin-left: 0; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #705844;
    color: #f6f1e7;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.share-btn:hover { background: #55412f; border-color: #8c6f56; }
.share-btn-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.share-btn-label {
    line-height: 1;
}
.share-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #3d3a37;
    cursor: pointer;
    text-align: left;
}
.share-item:hover { background: #f6f1e7; }
.share-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}
.ic-line { background: #06c755; font-size: 10px; }
.ic-x { background: #111; font-size: 17px; }
.ic-fb { background: #1877f2; font-size: 20px; }
.ic-hb { background: #d43f3f; font-size: 13px; }
.ic-pocket { background: #ef4056; font-size: 14px; }
.ic-copy { background: #6b645c; }
.share-copy-state { color: #2f6f4f; font-size: 0.75rem; margin-left: 6px; }

/* エクスポート メニュー */
.export-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #3d3a37;
}
.export-menu a:hover { background: #f6f1e7; text-decoration: none; }

/* 印刷 */
@media print {
    body { background: #fff; }
    header, footer, .toolbar, .year-links, .share-wrap, .pager { display: none !important; }
    main { max-width: 100%; padding: 0; }
    .month-nav a { display: none !important; }
    .month-nav { justify-content: center; margin-bottom: 8px; }
    .year-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .year-grid > div { break-inside: avoid; }
    table.mini-cal { border-color: #aaa; }
    .mini-title a { color: #3d3a37; }
}

footer { background: #3f2f22; color: #cfc0a8; text-align: center; padding: 14px; font-size: 0.8rem; }

.section-desc { font-size: 0.92rem; color: #6e6456; margin: -4px 0 14px; }
.font-bold { font-weight: bold; }
.muted-text { color: #8a7c6a; font-size: 0.78rem; }

.top-banner {
    position: relative;
    text-align: center;
    padding: 24px 18px 20px;
    background: #fffef9;
    border: 2px solid #e0d1b4;
    box-shadow: 0 4px 14px rgba(63, 47, 34, 0.06);
}
.banner-super {
    background: linear-gradient(135deg, #fffdf2 0%, #fef8db 100%);
    border-color: #d97706;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.18);
}
.banner-badge-wrap { margin-bottom: 10px; }
.super-ribbon {
    display: inline-block;
    background: linear-gradient(90deg, #d97706, #b45309);
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35);
}
.lucky-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 14px;
}
.lucky-tag.lucky-super { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.lucky-tag.lucky-great { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.lucky-tag.lucky-good { background: #e0f2fe; color: #075985; border: 1px solid #38bdf8; }
.lucky-tag.lucky-caution { background: #f3f4f6; color: #4b5563; border: 1px solid #d1d5db; }
.lucky-tag.lucky-normal { background: #fdfaf3; color: #786b59; border: 1px solid #e2d5be; }
.lucky-tag.unki-good { background: #ecfdf5; color: #065f46; border: 1px solid #34d399; }
.lucky-tag.unki-daisakkai { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.lucky-tag.unki-chusakukai { background: #ffedd5; color: #9a3412; border: 1px solid #fb923c; }
.lucky-tag.unki-shosakkai { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }

.banner-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.banner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.action-guide-box {
    margin-top: 18px;
    padding: 14px 16px;
    background: #fbf6ec;
    border: 1px solid #e6d7bb;
    border-radius: 8px;
    text-align: left;
}
.banner-super .action-guide-box {
    background: #fff9e6;
    border-color: #ebd391;
}
.guide-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #5c3513;
    margin-bottom: 6px;
}
.guide-desc {
    font-size: 0.92rem;
    color: #4a453f;
    line-height: 1.65;
    margin-bottom: 10px;
}
.guide-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed #decbb0;
}
.guide-action-group {
    font-size: 0.88rem;
    line-height: 1.5;
}
.guide-action-group.good .action-label {
    color: #15803d;
    font-weight: bold;
    margin-right: 6px;
}
.guide-action-group.bad .action-label {
    color: #b91c1c;
    font-weight: bold;
    margin-right: 6px;
}
.action-list { color: #3d3a37; }

.week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.week-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fffdf7;
    border: 1px solid #e5d9c3;
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.week-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 47, 34, 0.12);
    text-decoration: none;
}
.week-card.is-today {
    border: 2px solid #f2b632;
    background: #fffcf0;
}
.week-card.is-super {
    border: 2px solid #d97706;
    background: #fff9e6;
}
.today-chip {
    display: block;
    background: #f2b632;
    color: #3f2f22;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 2px;
}
.week-date {
    font-size: 0.88rem;
    font-weight: bold;
    color: #3d3a37;
}
.week-day {
    display: inline-block;
    font-size: 0.78rem;
    margin-left: 2px;
}
.week-day.wd-日 { color: #c22f22; }
.week-day.wd-土 { color: #31579e; }
.week-rokuyo {
    font-size: 0.95rem;
    font-weight: bold;
    margin: 4px 0 2px;
}
.week-stars {
    font-size: 0.72rem;
    min-height: 18px;
}
.week-badges {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin-top: 4px;
    align-items: center;
}
.w-badge {
    display: inline-block;
    background: #c22f22;
    color: #fff;
    font-size: 0.64rem;
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.w-badge.hol { background: #b91c1c; }
.w-badge-empty { font-size: 0.64rem; visibility: hidden; }

.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin: 14px 0 24px;
}
.scene-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fffdf7;
    border: 1px solid #e2d3bb;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(63, 47, 34, 0.04);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.scene-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(63, 47, 34, 0.12);
    border-color: #b0844a;
    text-decoration: none;
}
.scene-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.scene-emoji {
    font-size: 1.8rem;
    line-height: 1;
}
.scene-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #3f2f22;
}
.scene-summary {
    font-size: 0.85rem;
    color: #b45309;
    font-weight: bold;
    margin-bottom: 6px;
}
.scene-advice-preview {
    font-size: 0.82rem;
    color: #665e52;
    line-height: 1.5;
    margin-bottom: 12px;
}
.scene-cta {
    font-size: 0.88rem;
    font-weight: bold;
    color: #8a5a2b;
    text-align: right;
    margin-top: auto;
}
.scene-card:hover .scene-cta { color: #c22f22; }

.scene-grid-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.scene-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #dfcfb4;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.88rem;
    font-weight: bold;
    color: #3f2f22;
}
.scene-mini-btn:hover {
    background: #f7ede0;
    border-color: #b0844a;
    text-decoration: none;
}

.scene-detail-header {
    border: 2px solid #b0844a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.scene-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.scene-detail-title h1 {
    font-size: 1.45rem;
    margin: 0;
}
.scene-guide-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid #e5d9c3;
}
.guide-box-item {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.guide-box-label { font-weight: bold; }
.guide-box-label.good { color: #15803d; }
.guide-box-label.bad { color: #b91c1c; }
.guide-box-val { color: #3d3a37; font-weight: bold; }
.scene-detail-desc {
    font-size: 0.88rem;
    color: #554e44;
    line-height: 1.6;
    margin-top: 8px;
    border-top: 1px dashed #e5d9c3;
    padding-top: 8px;
}

.scene-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0;
}
.scene-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e0d4bd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.86rem;
    color: #3f2f22;
}
.scene-tab-item.active {
    background: #3f2f22;
    color: #f6f1e7;
    border-color: #3f2f22;
    font-weight: bold;
}
.scene-tab-item:hover { text-decoration: none; background: #f7ede0; }
.scene-tab-item.active:hover { background: #3f2f22; }

.row-super-lucky td {
    background: #fff9e6 !important;
}
.row-caution td {
    background: #fcf6f6 !important;
}
.scene-stars {
    font-size: 0.82rem;
    font-weight: bold;
    color: #b45309;
}
.badge-avoid {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.badge-ok {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
}

table.cal td.cell-super-lucky {
    background: linear-gradient(135deg, #fffcf0 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    position: relative;
}
table.cal td.cell-lucky {
    background: #fffdf5;
}
.cal-super-tag {
    background: linear-gradient(90deg, #d97706, #b45309);
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
    margin-bottom: 2px;
    display: inline-block;
    line-height: 1.2;
}

.month-highlight-card {
    background: #fffcf0;
    border-color: #ebd391;
    margin-bottom: 16px;
}
.month-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.mh-item {
    background: #fff;
    border: 1px solid #e5d9c3;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mh-item.mh-super {
    border: 1.5px solid #d97706;
    background: #fffbf0;
}
.mh-date { font-weight: bold; font-size: 0.88rem; color: #3f2f22; }
.mh-rokuyo { font-weight: bold; font-size: 0.82rem; }
.mh-stars { font-size: 0.72rem; }
.mh-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }

@media (max-width: 768px) {
    header {
        position: relative;
    }
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #3f2f22;
        border-top: 1px solid #55412f;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
        padding: 6px 16px 14px;
        flex-direction: column;
        z-index: 300;
    }
    .site-nav.open {
        display: flex;
    }
    .site-nav a {
        display: block;
        padding: 10px 8px;
        margin: 0;
        border-bottom: 1px solid rgba(246, 241, 231, 0.08);
        font-size: 0.95rem;
    }
    .site-nav a:last-child {
        border-bottom: none;
    }
    .week-strip {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 6px;
    }
    .week-card {
        min-width: 92px;
        flex-shrink: 0;
    }
    .scene-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    table.cal td { height: 52px; padding: 2px; }
    .today-date { font-size: 1.6rem; }
    .cal-super-tag { font-size: 0.52rem; }
    .action-guide-box { padding: 10px 12px; }
    .share-btn { padding: 6px 9px; }
    .share-btn-label { display: none; }
    .share-btn-svg { width: 17px; height: 17px; }
}

/* 夢占い */
.yume-luck-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.3;
}
.yume-luck-badge.luck-5 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border: 1px solid #f59e0b; }
.yume-luck-badge.luck-4 { background: #ecfdf5; color: #065f46; border: 1px solid #34d399; }
.yume-luck-badge.luck-3 { background: #f0f9ff; color: #0369a1; border: 1px solid #38bdf8; }
.yume-luck-badge.luck-2 { background: #fff7ed; color: #c2410c; border: 1px solid #fb923c; }
.yume-luck-badge.luck-1 { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }

.breadcrumb a { color: #8a5a2b; }
.breadcrumb a:hover { text-decoration: underline; }


