﻿/**
 * Accordion Notice Manager - Frontend Styles
 *
 * @package Accordion_Notice_Manager
 */

.anm-notices-wrapper {
    margin: 2.5em 0;
}

.anm-notices-empty {
    margin: 0.5em 0;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.anm-notices {
    border-top: 1px solid #f0f0f0;
    /* 繝ｪ繧ｹ繝医・荳逡ｪ荳翫↓繧らｷ壹ｒ陦ｨ遉ｺ */
}

.anm-notice-item {
    border-bottom: 1px solid #f0f0f0;
    /* 蜷・い繧､繝・Β縺ｮ荳狗ｷ・*/
    background: #fff;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* 隕句・縺苓｡・*/
.anm-notice-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    /* gap縺ｯ0縺ｫ縺励∝推隕∫ｴ縺ｮ蟷・ｄpadding縺ｧ隱ｿ謨ｴ縺吶ｋ譁ｹ縺檎｢ｺ螳・*/
    padding: 1.2em 1.5em;
    /* 荳贋ｸ九・菴咏區 */
    background: #fff;
    /* 繝・ヵ繧ｩ繝ｫ繝医・逋ｽ閭梧勹 */
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.2s ease;
    position: relative;
}

/* [anm_all_notices] 縺ｮ陦悟・菴薙Μ繝ｳ繧ｯ逕ｨ繧ｹ繧ｿ繧､繝ｫ */
.anm-notice-header-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    cursor: pointer;
}

.anm-notice-header-link:visited,
.anm-notice-header-link:hover,
.anm-notice-header-link:focus {
    text-decoration: none;
    color: inherit;
}

/* 繝帙ヰ繝ｼ譎ゅ↓阮・＞繧ｰ繝ｬ繝ｼ縺ｫ縺吶ｋ */
.anm-notice-header:hover {
    background-color: #f9f9f9;
}

.anm-notice-header:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

/* 繝斐Φ繧｢繧､繧ｳ繝ｳ鬆伜沺・壼ｸｸ縺ｫ遒ｺ菫・*/
.anm-notice-pin {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 蟾ｦ蟇・○・医∪縺溘・荳ｭ螟ｮ・・*/
    width: 24px;
    /* 蝗ｺ螳壼ｹ・*/
    color: #999;
    /* 繧｢繧､繧ｳ繝ｳ縺ｮ濶ｲ */
    flex-shrink: 0;
    margin-right: 0.5em;
    /* 譌･莉倥→縺ｮ髢馴囈 */
}

/* 譌･莉・*/
.anm-notice-date {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: #999;
    /* 阮・＞繧ｰ繝ｬ繝ｼ */
    font-weight: normal;
    font-family: monospace, serif;
    /* 謨ｰ蟄励・蟷・ｒ謠・∴繧九◆繧∫ｭ峨・閠・・ */
    min-width: 110px;
    /* 譌･莉倥・蟷・ｒ蝗ｺ螳壹＠縺ｦ繧ｿ繧､繝医Ν菴咲ｽｮ繧呈純縺医ｋ */
    margin-right: 1.5em;
    /* 繧ｿ繧､繝医Ν縺ｨ縺ｮ髢馴囈 */
    text-align: left;
}

/* 繧ｿ繧､繝医Ν */
.anm-notice-title {
    flex: 1;
    color: #333;
    /* 豼・＞繧ｰ繝ｬ繝ｼ/鮟・*/
    font-weight: 700;
    line-height: 1.4;
    /* New繝槭・繧ｯ繧定｡ｨ遉ｺ縺吶ｋ縺溘ａ縲・陦後〒縺ｮ逵∫払繧定ｧ｣髯､・亥ｿ・ｦ√↓蠢懊§縺ｦ隱ｿ謨ｴ・・*/
    display: flex;
    align-items: center;
    gap: 0.8em;
}

/* New繝槭・繧ｯ */
.anm-new-mark {
    display: inline-block;
    background-color: #e76767;
    /* 逕ｻ蜒上↓霑代＞繧ｽ繝輔ヨ縺ｪ襍､ */
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.4em 0.8em;
    border-radius: 5px;
    text-transform: none;
    /* 螟ｧ譁・ｭ怜ｼｷ蛻ｶ繧定ｧ｣髯､ */
    line-height: 1.2;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 遏｢蜊ｰ繧｢繧､繧ｳ繝ｳ・亥承蜷代″・・*/
.anm-notice-header::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    /* 蜿ｳ蜷代″遏｢蜊ｰ縺ｮSVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-left: 1em;
    /* 繧ｿ繧､繝医Ν縺ｨ縺ｮ髢馴囈 */
    transition: transform 0.3s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

/* 髢九＞縺溽憾諷具ｼ育泙蜊ｰ繧・0蠎ｦ蝗櫁ｻ｢縺輔○縺ｦ荳句髄縺阪↓縺吶ｋ・・*/
.anm-notice-header[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

/* 譛ｬ譁・*/
.anm-notice-body {
    padding: 1.5em 1.5em 2em;
    /* 譛ｬ譁・・菴咏區 */
    font-size: 0.95rem;
    background: #FDFBF7;
    color: #444;
    white-space: pre-line;
    line-height: 1.8;
    /* 繝倥ャ繝繝ｼ縺ｨ縺ｮ蠅・阜邱壹・縺ｪ縺暦ｼ医ヵ繝ｩ繝・ヨ縺ｪ繝・じ繧､繝ｳ・・*/
}

/* 繧｢繝九Γ繝ｼ繧ｷ繝ｧ繝ｳ逕ｨ・喇idden螻樊ｧ縺後▽縺・※縺・ｋ蝣ｴ蜷医・display:none縺ｫ縺ｪ繧九′縲゛S縺ｧ蛻ｶ蠕｡縺吶ｋ蝣ｴ蜷医・繧ｹ繧ｿ繧､繝ｫ */
.anm-notice-body[hidden] {
    display: none;
}

/* 譛ｬ譁・・縺ｮ繝ｪ繝ｳ繧ｯ */
.anm-notice-body a {
    color: #0073aa;
    text-decoration: underline;
}

.anm-notice-body a:hover {
    color: #005177;
    text-decoration: none;
}

/* 譛ｬ譁・・縺ｮ逕ｻ蜒・*/
.anm-notice-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 譛ｬ譁・・縺ｮ谿ｵ關ｽ */
.anm-notice-body p {
    margin: 0 0 1.2em 0;
}

.anm-notice-body p:last-child {
    margin-bottom: 0;
}

/* [anm_all_notices] PC表示 事業者名スタイル */
.anm-notices:not([data-anm-accordion="1"]) .anm-notice-shop {
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
    margin-right: 0.8em;
}

/* 繧ｹ繝槭・蟇ｾ蠢・*/
@media (max-width: 768px) {
    .anm-notice-header {
        padding: 1em;
        flex-wrap: nowrap;
        /* 讓ｪ荳ｦ縺ｳ邯ｭ謖・*/
    }

    .anm-notice-pin {
        width: 20px;
        margin-right: 0.2em;
    }

    .anm-notice-date {
        font-size: 0.75rem;
        min-width: 90px;
        /* 繧ｹ繝槭・逕ｨ縺ｫ蟆代＠迢ｭ縺・*/
        margin-right: 0.8em;
    }

    .anm-notice-title {
        font-size: 0.9rem;
    }

    .anm-notice-header::after {
        width: 14px;
        height: 14px;
        margin-left: 0.5em;
    }

    .anm-notice-body {
        padding: 1.2em;
    }

    /* [anm_all_notices] スマホ縦積みレイアウト */
    .anm-notices:not([data-anm-accordion="1"]) .anm-notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-right: 2.5em;
        position: relative;
    }

    /* 上段：日付＋事業者名を横並びで表示 */
    .anm-notices:not([data-anm-accordion="1"]) .anm-notice-meta {
        display: flex;
        align-items: center;
        gap: 0.5em;
        margin-bottom: 4px;
    }

    .anm-notices:not([data-anm-accordion="1"]) .anm-notice-date {
        font-size: 0.72rem;
        color: #aaaaaa;
        min-width: 0;
        margin-right: 0;
        font-family: inherit;
    }

    .anm-notices:not([data-anm-accordion="1"]) .anm-notice-shop {
        font-size: 0.72rem;
        color: #aaaaaa;
        font-weight: normal;
    }

    /* 下段：タイトルのみ */
    .anm-notices:not([data-anm-accordion="1"]) .anm-notice-title {
        display: block;
        width: 100%;
        font-size: 0.95rem;
        font-weight: bold;
        color: #333333;
        line-height: 1.5;
    }

    .anm-notices:not([data-anm-accordion="1"]) .anm-notice-header::after {
        position: absolute;
        right: 1em;
        top: 50%;
        margin-left: 0;
        transform: translateY(-50%);
    }
}

