/* 今週の菜園メモ（トップページの枠）。色はサイトの緑 #819d24・茶 #704524 に合わせる */
#main_contents #emsm { box-sizing: border-box; background: #fff; border: 1px solid #e3d9c3; border-radius: 20px; padding: 22px 26px 16px; margin: 30px 0 0; color: #333; font-size: 15px; line-height: 1.7; text-align: left; min-height: 420px; }
#main_contents #emsm *, #main_contents #emsm *::before, .emsm *::after { box-sizing: border-box; }
#main_contents #emsm p, #main_contents #emsm ul, #main_contents #emsm li { margin: 0; padding: 0; list-style: none; background: none; width: auto; border-radius: 0; }
#main_contents #emsm ul { display: block; }
#main_contents #emsm li { display: block; justify-content: normal; }
#main_contents #emsm p, #main_contents #emsm ul, #main_contents #emsm li { font-size: inherit; line-height: inherit; color: inherit; text-align: left; }
#main_contents #emsm .emsm__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
#main_contents #emsm .emsm__title { font-size: 22px; font-weight: 700; color: #704524; line-height: 1.3; }
#main_contents #emsm .emsm__date { font-size: 14px; color: #777; }
#main_contents #emsm .emsm__cols { display: flex; gap: 30px; align-items: flex-start; }
#main_contents #emsm .emsm__main { flex: 1 1 0; min-width: 0; }
#main_contents #emsm .emsm__rail { flex: 0 0 34%; min-width: 0; }
#main_contents #emsm .emsm__side { background: #fff7e8; border-radius: 14px; padding: 14px 18px 16px; }
#main_contents #emsm .emsm__ig { margin-top: 14px; padding: 14px 18px 16px; background: #fff; border: 1px solid #e3d9c3; border-radius: 14px; }
#main_contents #emsm .emsm__ig-title { font-size: 15px; font-weight: 700; color: #704524; line-height: 1.5; word-break: auto-phrase; text-wrap: balance; }
#main_contents #emsm .emsm__ig-title i { margin-right: 6px; font-size: 18px; color: #5d7417; vertical-align: -1px; }
#main_contents #emsm .emsm__ig-text { margin-top: 6px; font-size: 13px; line-height: 1.65; color: #444; }
#main_contents #emsm .emsm__ig-btns { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
#main_contents #emsm a.emsm__ig-btn { display: inline-block; flex: 1 1 auto; padding: 8px 14px; border: 1px solid #5d7417; border-radius: 999px; background: #fff; color: #5d7417; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
#main_contents #emsm a.emsm__ig-btn:hover { background: #f3f6e6; color: #5d7417; text-decoration: none; }
#main_contents #emsm a.emsm__ig-btn.emsm__ig-btn--main { background: #5d7417; color: #fff; }
#main_contents #emsm a.emsm__ig-btn.emsm__ig-btn--main:hover { background: #4b5e12; color: #fff; }
#main_contents #emsm a.emsm__ig-btn:focus-visible { outline: 2px solid #704524; outline-offset: 2px; }
#main_contents #emsm .emsm__ig-note { margin-top: 8px; font-size: 11px; line-height: 1.5; color: #666; }
#main_contents #emsm .emsm__temp { font-size: 16px; color: #333; }
#main_contents #emsm .emsm__temp strong { font-size: 20px; color: #704524; }
#main_contents #emsm .emsm__loading { color: #888; }
#main_contents #emsm .emsm__mark { display: inline-block; margin: 0 4px 0 2px; font-size: 1.1em; line-height: 1; }
#main_contents #emsm .emsm__word { margin-top: 8px; padding: 10px 14px; background: #f3f6e6; border-radius: 10px; font-weight: 500; }
#main_contents #emsm ul.emsm__week { display: flex; gap: 4px; margin-top: 12px; padding: 0; }
#main_contents #emsm ul.emsm__week li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; margin: 0; border: 1px solid #eee6d4; border-radius: 10px; font-size: 13px; line-height: 1.4; background: #fff; }
#main_contents #emsm .emsm__d { font-weight: 700; color: #555; }
#main_contents #emsm .emsm__d small { font-size: 11px; font-weight: 400; margin-left: 1px; }
#main_contents #emsm .emsm__week .emsm__mark { font-size: 18px; margin: 2px 0; }
#main_contents #emsm .emsm__hi { color: #c0392b; font-weight: 700; }
#main_contents #emsm .emsm__lo { color: #2b6cb0; font-weight: 700; }
#main_contents #emsm .emsm__pop { color: #777; font-size: 12px; }
#main_contents #emsm .emsm__wkbtn { display: none; }
#main_contents #emsm .emsm__legend { font-size: 11px; color: #999; margin-top: 4px; }
#main_contents #emsm .emsm__sub { margin-top: 14px; font-size: 15px; font-weight: 700; color: #5d7417; }
#main_contents #emsm .emsm__side .emsm__sub:first-child { margin-top: 0; }
#main_contents #emsm .emsm__list li { position: relative; padding-left: 1.1em; margin-top: 4px; display: block; }
#main_contents #emsm .emsm__list li::before { content: ""; position: absolute; left: 0.2em; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: #819d24; }
#main_contents #emsm .emsm__more { margin-top: 10px; }
#main_contents #emsm a { color: #5d7417; text-decoration: underline; display: inline; padding: 0; font-size: inherit; height: auto; outline: 0; border-radius: 0; text-align: left; }
#main_contents #emsm a:hover { color: #704524; text-decoration: none; outline: 0; }
#main_contents #emsm .emsm__faq li { display: block; margin-top: 8px; padding-left: 1.5em; position: relative; line-height: 1.55; }
#main_contents #emsm .emsm__faq li::before { content: "Q"; position: absolute; left: 0; top: 0; font-weight: 700; color: #819d24; }
#main_contents #emsm .emsm__feat { margin-top: 6px; line-height: 1.55; }
#main_contents #emsm .emsm__feat span { display: block; font-size: 13px; color: #777; }
#main_contents #emsm .emsm__area { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #666; }
#main_contents #emsm .emsm__area button i { margin-right: 5px; font-size: 13px; }
#main_contents #emsm .emsm__area label { font-weight: 700; }
#main_contents #emsm .emsm__area select { font-size: 14px; padding: 5px 8px; border: 1px solid #c9c2ae; border-radius: 8px; background: #fff; color: #333; max-width: 100%; }
#main_contents #emsm .emsm__area button { font-size: 13px; padding: 6px 12px; border: 1px solid #819d24; border-radius: 999px; background: #fff; color: #5d7417; cursor: pointer; line-height: 1.4; }
#main_contents #emsm .emsm__area button:hover { background: #f3f6e6; }
#main_contents #emsm .emsm__note { font-size: 12px; color: #888; }
#main_contents #emsm .emsm__src { margin-top: 12px; font-size: 11px; color: #999; line-height: 1.5; }

/* 枠を出すときは、最初の写真の高さを半分ほどにする（パソコンの幅。スマホでは元から写真が出ない） */
@media (min-width: 831px) {
  body.emsm-on #hero_container .hero_container_inner, body:has(#emsm) #hero_container .hero_container_inner { padding: 2.2% 5% !important; }
  body.emsm-on #hero_container .lead p, body:has(#emsm) #hero_container .lead p { font-size: 3.2vw !important; line-height: 1.25em !important; }
  body.emsm-on #hero_container .lead p br:nth-of-type(odd), body:has(#emsm) #hero_container .lead p br:nth-of-type(odd) { display: none; }
}
@media (max-width: 830px) {
  #main_contents #emsm { padding: 16px 14px 12px; margin-top: 16px; border-radius: 14px; font-size: 14px; min-height: 640px; }
  #main_contents #emsm .emsm__title { font-size: 19px; }
  #main_contents #emsm .emsm__cols { display: block; }
  #main_contents #emsm .emsm__side { margin-top: 16px; padding: 12px 14px 14px; }
  #main_contents #emsm .emsm__ig { margin-top: 12px; padding: 12px 14px 14px; }
  #main_contents #emsm a.emsm__ig-btn { flex: 1 1 100%; padding: 10px 14px; }
  #main_contents #emsm .emsm__wkbtn { display: inline-block; margin-top: 10px; font-size: 13px; padding: 6px 14px; border: 1px solid #819d24; border-radius: 999px; background: #fff; color: #5d7417; cursor: pointer; line-height: 1.4; }
  #main_contents #emsm .emsm__wk { display: none; }
  #main_contents #emsm .emsm__wk.is-open { display: block; }
  #main_contents #emsm .emsm__word { font-weight: 400; padding: 8px 12px; }
  #main_contents #emsm .emsm__sub { margin-top: 12px; }
  #main_contents #emsm .emsm__faq li:nth-child(n+3) { display: none; }
  #main_contents #emsm .emsm__area { margin-top: 10px; }
  #main_contents #emsm ul.emsm__week { gap: 2px; }
  #main_contents #emsm ul.emsm__week li { font-size: 12px; border-radius: 8px; }
  #main_contents #emsm .emsm__week .emsm__mark { font-size: 16px; }
  #main_contents #emsm .emsm__pop { font-size: 11px; }
}
