.shop-news {
    --sn-text: #404040;
    --sn-body: #404040;
    --sn-muted: #5e5e5e;
    --sn-accent: #377769;
    --sn-line: #dcdcdc;
    --sn-line-strong: #a4a4a5;
    --sn-surface: #fdfcfa;
    --sn-tag-line: #a6978c;
    --sn-tag-text: #6a5152;
    --sn-important-line: #dd4944;
    --sn-important-text: #c23f3a;
    --sn-caution-line: #c4a24e;
    --sn-caution-text: #8a6d28;
    --sn-link: #377769;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.shop-news--home {
    max-width: 1600px;
    margin: 0 auto 1.5em;
    padding: 0;
}
.shop-news-title {
    margin: 0 0 0.15em;
    padding: 0 0 0.15em 0;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.4;
    color: var(--sn-accent);
    border-bottom: 1px solid var(--sn-line-strong);
}
/* 見出しの文字が空のときは出さない(要素は残してあるので、文字を入れれば出る) */
.shop-news-title:empty {
    display: none;
}
.shop-news-item {
    border-bottom: 1px solid var(--sn-line);
    scroll-margin-top: 6em; /* サイドボックスから飛んできたとき、上の固定メニューに隠れないように */
}
.shop-news-check {
    display: none;
}
.shop-news-label {
    display: grid;
    grid-template-columns: 5.6em minmax(2.4em, max-content) minmax(0, 1fr) 1.4em;
    align-items: center;
    column-gap: 0.8em;
    margin: 0;
    padding: 0.65em 0.15em;
    border: 0;
    background: none;
    color: var(--sn-text);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}
.shop-news-label:hover,
.shop-news-check:checked + .shop-news-label {
    background-color: var(--sn-surface);
}
.shop-news-date {
    min-width: 5.6em;
    padding-left: 0.5em;
    font-family: 'PT Sans', 'Noto Sans JP', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--sn-muted);
    font-variant-numeric: tabular-nums;
}
.shop-news-tag {
    display: inline-block;
    box-sizing: border-box;
    min-width: 2.6em;
    padding: 0.1em 0.5em;
    border: 1px solid var(--sn-tag-line);
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-align: center;
    color: var(--sn-tag-text);
}
.shop-news-tag.is-important {
    border-color: var(--sn-important-line);
    color: var(--sn-important-text);
}
.shop-news-tag.is-caution {
    border-color: var(--sn-caution-line);
    color: var(--sn-caution-text);
}
.shop-news-heading {
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 500;
}
.shop-news-label::after {
    justify-self: center;
    width: 0.38em;
    height: 0.38em;
    border-right: 1.5px solid var(--sn-accent);
    border-bottom: 1.5px solid var(--sn-accent);
    transform: translateY(-25%) rotate(45deg);
    content: "";
}
.shop-news-content {
    height: 0;
    margin: 0;
    padding: 0 1.6em 0 0.15em;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    color: var(--sn-body);
    font-size: 0.85em;
    line-height: 1.8;
    letter-spacing: 0.02em;
}
.shop-news-check:checked + .shop-news-label::after {
    transform: translateY(15%) rotate(-135deg);
}
/* 開いた本文は、見出しと同じ面にして、タイトルの位置から始める(左の余白 = 行の左の余白 + 日付の列 + 種別の列 + 列の間 2 つ。本文の文字は 0.85em なので、その分で割る) */
.shop-news-check:checked + .shop-news-label + .shop-news-content {
    height: auto;
    padding: 0.2em 1.6em 1.1em calc(9.75em / 0.85);
    visibility: visible;
    opacity: 1;
    background-color: var(--sn-surface);
}

/* スマホと、幅の狭いサイドボックスは 2 段(日付・種別・矢印 / 見出し) */
@media screen and (max-width: 640px) {
    .shop-news-label {
        grid-template-columns: auto auto 1fr;
        grid-template-areas:
            "date tag chevron"
            "heading heading heading";
        row-gap: 0.25em;
        column-gap: 0.55em;
        padding: 0.7em 0.1em;
    }
    .shop-news-date { grid-area: date; padding-left: 0; min-width: 0; }
    .shop-news-tag { grid-area: tag; }
    .shop-news-heading { grid-area: heading; font-size: 0.9rem; }
    .shop-news-label::after { grid-area: chevron; justify-self: end; align-self: start; margin-top: 0.45em; }
    .shop-news-check:checked + .shop-news-label + .shop-news-content { padding-left: 0.85em; }
}
.shop-news--sidebox .shop-news-label {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
        "date tag chevron"
        "heading heading heading";
    row-gap: 0.25em;
    column-gap: 0.55em;
    padding: 0.7em 0.1em;
    text-align: left;
}
.shop-news--sidebox .shop-news-date { grid-area: date; padding-left: 0; min-width: 0; }
.shop-news--sidebox .shop-news-tag { grid-area: tag; }
.shop-news--sidebox .shop-news-heading { grid-area: heading; font-size: 0.8rem; }
.shop-news--sidebox .shop-news-label::after { grid-area: chevron; justify-self: end; align-self: start; margin-top: 0.45em; }
.shop-news--sidebox a.shop-news-label,
.shop-news--sidebox a.shop-news-label:hover {
    color: var(--sn-text);
    text-decoration: none;
}
/* お知らせのサイドボックスには、ほかのサイドボックスの内側の余白(.sideBoxContent の 20px)を付けない */
.sideBoxContent:has(> #mj-news-content) {
    padding: 0;
}
/* サイドボックスは押すとトップへ飛ぶので、矢印は右向き */
.shop-news--sidebox .shop-news-label::after {
    transform: rotate(-45deg);
}

/* トップとサイドボックスの「お知らせ一覧へ」 */
.shop-news-more {
    margin: 0.6em 0 0;
    text-align: right;
    font-size: 0.8rem;
}
.shop-news--sidebox .shop-news-more {
    font-size: 0.75rem;
}
.shop-news-more a {
    color: var(--sn-link);
}
/* 一覧ページ */
#shopNewsMainContent .shop-news {
    margin: 1em 0 3em;
}
#shopNewsMainContent .shop-news-title {
    display: none; /* ページの見出しがあるので */
}
.shop-news-empty {
    margin: 1.5em 0 3em;
    color: var(--sn-body);
}
/* 一覧ページの、ページの切り替え */
.shop-news-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em;
    margin: 0 0 3em;
    font-size: 0.85rem;
}
.shop-news-pager a,
.shop-news-pager span {
    display: inline-block;
    min-width: 2.2em;
    padding: 0.3em 0.6em;
    border: 1px solid var(--sn-tag-line);
    border-radius: 3px;
    text-align: center;
    color: var(--sn-link);
    text-decoration: none;
}
.shop-news-pager a:hover {
    background-color: var(--sn-surface);
}
.shop-news-pager-current {
    border-color: var(--sn-accent);
    background-color: var(--sn-accent);
    color: #fff !important;
}
