/* MYDELI（www.my-delicious.net）— 白ベース・みどりと MYDELI オレンジ。食の展示会・イベントとトップページの部品 */
:root {
	--m-ink: #1f2a22; --m-ink2: #4b5a50; --m-mute: #8a968d; --m-line: #e6ece6; --m-bg2: #f6f8f4;
	--m-a1: #2f9e5b; --m-a2: #f39800; --m-a3: #7cb342;
	--m-ease: cubic-bezier(.2, .8, .2, 1); --m-r: 14px; --m-shadow: 0 1px 2px rgba(20, 40, 20, .04), 0 8px 24px -12px rgba(20, 40, 20, .14);
}
.mdl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--m-ink) !important; background: #fff; border: 1px solid var(--m-line); text-decoration: none !important; transition: transform .3s var(--m-ease), box-shadow .3s; }
.mdl-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(47, 158, 91, .5); }
.mdl-btn--primary { color: #fff !important; background: var(--m-a1); border-color: var(--m-a1); }
/* ---------- イベント：記事の開催概要・地図 ---------- */
.mdl-evinfo { border: 1px solid var(--m-line); border-radius: var(--m-r); padding: 20px 22px; margin: 24px 0; background: #fff; box-shadow: var(--m-shadow); }
.mdl-evinfo__h { font-weight: 800; font-size: 18px; margin: 0 0 12px; }
.mdl-evinfo table { width: 100%; border-collapse: collapse; margin: 0; }
.mdl-evinfo th, .mdl-evinfo td { border: 0; border-top: 1px solid var(--m-line); padding: 10px 8px; text-align: left; vertical-align: top; background: none; }
.mdl-evinfo th { width: 7.5em; color: var(--m-mute); font-weight: 700; white-space: nowrap; }
.mdl-evinfo__cta { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mdl-evmap iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--m-r); display: block; }
.mdl-evmap__link { margin: 8px 0 0; font-size: 14px; text-align: right; }
/* ---------- イベント：年間カレンダー [mdl_events] ---------- */
.mdl-evcal__nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mdl-evcal__nav strong { font-size: 20px; }
.mdl-evcal__nav a { font-size: 14px; text-decoration: none; }
.mdl-evcal__legend { display: flex; gap: 14px; font-size: 13px; color: var(--m-mute); margin: 0 0 10px; flex-wrap: wrap; }
.mdl-evcal__legend span::before { content: ''; display: inline-block; width: 14px; height: 8px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; background: var(--c); }
.mdl-evcal__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--m-line); border-radius: var(--m-r); background: #fff; }
.mdl-evcal__grid { min-width: 860px; padding: 8px 12px 12px; }
.mdl-evcal__head, .mdl-evcal__row { display: grid; grid-template-columns: 44px 1fr; align-items: stretch; }
.mdl-evcal__head { grid-template-columns: 44px repeat(31, 1fr); font-size: 11px; color: var(--m-mute); padding-bottom: 4px; }
.mdl-evcal__row { border-top: 1px solid var(--m-line); min-height: calc(30px * var(--lanes, 1) + 8px); }
.mdl-evcal__m { font-weight: 800; font-size: 13px; padding-top: 8px; }
.mdl-evcal__days { position: relative; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 31 - 1px), var(--m-bg2) calc(100% / 31 - 1px) calc(100% / 31)); }
.mdl-evcal__bar { position: absolute; top: calc(5px + var(--lane) * 30px); left: calc((var(--s) - 1) * 100% / 31); width: calc((var(--e) - var(--s) + 1) * 100% / 31 - 2px); height: 24px; border-radius: 6px; background: var(--c, #94a3b8); color: #fff; font-size: 11px; font-weight: 700; line-height: 24px; padding: 0 6px; box-sizing: border-box; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none !important; transition: transform .2s var(--m-ease), box-shadow .2s; }
.mdl-evcal__bar span { overflow: hidden; text-overflow: ellipsis; display: block; }
.mdl-evcal__bar:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(10, 15, 31, .4); z-index: 2; width: auto; min-width: calc((var(--e) - var(--s) + 1) * 100% / 31 - 2px); }
.mdl-evcal__bar.is-past { opacity: .45; }
.mdl-evcal__today { position: absolute; top: 0; bottom: 0; left: calc((var(--d) - .5) * 100% / 31); width: 2px; background: #ff4d6d; z-index: 1; }
.mdl-evcal__empty { color: var(--m-mute); margin-top: 16px; }
.mdl-evlist { margin-top: 32px; }
.mdl-evlist__m { font-size: 20px; font-weight: 800; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--m-ink); }
.mdl-evitem { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--m-line); }
.mdl-evitem.is-past { opacity: .55; }
.mdl-evitem__date { font-weight: 700; color: var(--m-a1); }
.mdl-evitem h4 { margin: 0 0 4px; font-size: 17px; }
.mdl-evitem p { margin: 0; color: var(--m-ink2); font-size: 14px; }
.mdl-evitem__fee { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--c, #94a3b8); margin-left: 6px; }
.mdl-evitem__fee.is-free { --c: #10b981; } .mdl-evitem__fee.is-paid { --c: var(--m-a1); } .mdl-evitem__fee.is-mixed { --c: var(--m-a3); }
.mdl-evitem__end { font-size: 12px; color: var(--m-mute); margin-left: 6px; }
@media (max-width: 600px) { .mdl-evitem { grid-template-columns: 1fr; gap: 4px; } }
/* 記事の最後のまとめページへのリンク（seo.php） */
/* 1.15.0 展示会・イベント：ジャンル色分けと絞り込み */
.mdl-evf { border: 1px solid var(--m-line); border-radius: var(--m-r); background: #fff; padding: 12px 14px; margin: 0 0 14px; display: grid; gap: 10px; }
.mdl-evf__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.mdl-evf__lb { font-weight: 800; min-width: 4.5em; color: var(--m-ink); }
.mdl-evf__chip { cursor: pointer; user-select: none; }
.mdl-evf__chip input { position: absolute; opacity: 0; pointer-events: none; }
.mdl-evf__chip span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--c); color: var(--c); font-weight: 700; background: #fff; transition: background .15s, color .15s; }
.mdl-evf__chip input:checked + span { background: var(--c); color: #fff; }
.mdl-evf__chip input:focus-visible + span { outline: 2px solid var(--m-ink); outline-offset: 2px; }
.mdl-evf__mini { font-size: 12px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--m-line); background: var(--m-bg2, #f4f6fa); cursor: pointer; }
.mdl-evf__mini:hover { border-color: var(--m-a1); }
.mdl-evf input[type=date], .mdl-evf input[type=search] { font-size: 14px; padding: 5px 8px; border: 1px solid var(--m-line); border-radius: 6px; }
.mdl-evf input[type=search] { flex: 1 1 220px; min-width: 0; }
.mdl-evf__free { display: inline-flex; align-items: center; gap: 4px; }
.mdl-evf__count { font-weight: 800; color: var(--m-a1); margin-left: auto; }
.mdl-evcal__m small { display: block; font-size: 10px; color: var(--m-mute); font-weight: 600; }
.mdl-evx.is-hide { display: none !important; }
.mdl-evitem { border-left: 4px solid var(--c, #94a3b8); padding-left: 12px; }
.mdl-evitem__gs { margin-top: 6px !important; display: flex; flex-wrap: wrap; gap: 4px; }
.mdl-evitem__g { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: var(--c); border: 1px solid var(--c); }
.mdl-evcal__none { color: var(--m-mute); margin-top: 16px; }
@media (max-width: 600px) { .mdl-evf__lb { min-width: 100%; } .mdl-evf__count { margin-left: 0; } }
/* 1.15.0 ヘッダーメニュー10項目（展示会・イベントを独立）：PC 幅でも右端の「お問合せ」が切れないように詰める */
/* 1.15.1 カレンダーの帯は白字（テーマのリンク色に負けないよう !important）・色の凡例 */
.mdl-evcal__bar, .mdl-evcal__bar:hover, .mdl-evcal__bar:visited, .mdl-evcal__bar span { color: #fff !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.mdl-evcal__legend--g { margin: 10px 0 0; gap: 8px 14px; align-items: center; }
.mdl-evcal__legend--g b { color: var(--m-ink, #0a0f1f); font-size: 13px; }
.mdl-evcal__legend--g span::before { width: 16px; height: 10px; vertical-align: 0; }
/* 1.16.0 イベント記事のカレンダーリンク */
.mdl-evlink--top { margin: 0 0 1.2em !important; font-size: .92em; }
.mdl-evlink--top a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #eef8f0; color: var(--m-a1, #2647ff) !important; font-weight: 700; text-decoration: none !important; }
.mdl-evlink--end { margin: 2em 0 0; padding: 16px 18px; border: 1px solid #d7ead9; border-radius: 12px; background: #f6fbf4; }
.mdl-evlink--end p { margin: 0 0 .6em !important; font-size: .92em; }
.mdl-evlink__t { font-weight: 800; color: #1f2d22; }
.mdl-evlink__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: .4em 0 0 !important; }
.mdl-evlink__g { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--c); color: var(--c) !important; font-weight: 700; text-decoration: none !important; background: #fff; }
/* 1.16.0 本文の AI 用語リンク（目立たせすぎない） */
/* 1.16.0 ページ下の AI・生成AI ミニ解説（控えめ） */
/* 1.17.0 地域（会場）の表示と絞り込み */
.mdl-evcal__a { font-style: normal; font-size: 10px; font-weight: 800; background: rgba(255, 255, 255, .28); border-radius: 4px; padding: 0 4px; margin-right: 4px; }
.mdl-evf__area { display: inline-flex; cursor: pointer; }
.mdl-evf__area input { position: absolute; opacity: 0; pointer-events: none; }
.mdl-evf__area span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 2px solid #334155; color: #334155; font-weight: 700; background: #fff; font-size: 13px; transition: background .15s, color .15s; }
.mdl-evf__area span small { font-weight: 600; opacity: .7; }
.mdl-evf__area input:checked + span { background: #334155; color: #fff; }
.mdl-evf__area input:focus-visible + span { outline: 2px solid var(--m-a1, #2647ff); outline-offset: 2px; }
.mdl-evitem__a { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: #fff; background: #334155; }
/* ---------- トップページ：もうすぐ開催のイベント [mdl_events_next] ---------- */
.mdl-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0 0 1em; }
.mdl-next__card { display: flex; gap: 12px; align-items: stretch; padding: 12px; border-radius: var(--m-r); background: #fff; border: 1px solid var(--m-line); border-left: 5px solid var(--c); text-decoration: none !important; color: var(--m-ink) !important; box-shadow: var(--m-shadow); transition: transform .3s var(--m-ease); }
.mdl-next__card:hover { transform: translateY(-2px); }
.mdl-next__d { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: var(--m-bg2); }
.mdl-next__d b { font-size: 18px; line-height: 1.1; color: var(--c); }
.mdl-next__d small { font-size: 11px; color: var(--m-mute); }
.mdl-next__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mdl-next__b strong { font-size: 14px; line-height: 1.45; }
.mdl-next__b small { font-size: 12px; color: var(--m-ink2); }
.mdl-next__g { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 999px; color: #fff; background: var(--c); }
.mdl-next__empty { color: var(--m-mute); }
/* ---------- トップページのブロック（追加 CSS クラスで指定。管理画面のブロック設定から外せる） ---------- */
.mdl-top-h { font-weight: 800 !important; letter-spacing: .04em; border: 0 !important; padding: 0 0 6px !important; margin-bottom: 14px !important; background: none !important; position: relative; }
.mdl-top-h::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--m-a1), var(--m-a3)); margin-top: 8px; }
.mdl-top-h::before { display: none !important; }
.mdl-top-soft { background: #f6fbf4; border-radius: 18px; padding: 24px 20px !important; }
.mdl-top-app { background: #fffaf2; border: 1px solid #fde3bf; border-radius: 18px; padding: 24px 16px !important; }
/* 1.0.1 中央揃えの見出しは下線も中央に */
.has-text-align-center.mdl-top-h::after { margin-left: auto; margin-right: auto; }
/* 1.0.2 SWELL の投稿リスト（カード型）は PC 3列までなので、列数「4」を足す（サイドバーなしのページ。トップの新着など） */
@media (min-width: 1020px) {
	.-type-card.-pc-col4 .p-postList__item, .-type-thumb.-pc-col4 .p-postList__item { width: 25%; padding: 0 .6em; }
	.-type-card.-pc-col4 .p-postList__title { font-size: 14px; }
}
@media (min-width: 600px) and (max-width: 1019px) {
	.-type-card.-pc-col4 .p-postList__item { width: 33.3333%; padding: 0 .6em; }
}
