/* サイト名の見出しと紹介文（トップページ。菜園メモの枠と、3つの入口のあいだ）。色はサイトの茶 #704524・緑 #5d7417 */
#main_contents .emsm-brand { box-sizing: border-box; margin: 28px 0 0; padding: 0 4px; text-align: left; color: #333; }
#main_contents .emsm-brand .emsm-brand__name { margin: 0; padding: 0; font-size: 21px; font-weight: 700; line-height: 1.5; color: #704524; background: none; border: 0; text-align: left; }
#main_contents .emsm-brand .emsm-brand__sub { display: inline-block; margin-left: 14px; font-size: 14px; font-weight: 700; line-height: 1.5; color: #5d7417; }
#main_contents .emsm-brand .emsm-brand__lead { margin: 8px 0 0; padding: 0; font-size: 14px; font-weight: 400; line-height: 1.85; color: #333; text-align: left; }
#main_contents .emsm-brand .emsm-brand__lead a { color: #5d7417; text-decoration: underline; }
#main_contents .emsm-brand .emsm-brand__lead a:hover { color: #704524; }
#main_contents .emsm-brand .emsm-brand__chk, #main_contents .emsm-brand .emsm-brand__more { display: none; }
@media (max-width: 830px) {
  #main_contents .emsm-brand { margin-top: 18px; padding: 0 2px; }
  #main_contents .emsm-brand .emsm-brand__name { font-size: 19px; }
  #main_contents .emsm-brand .emsm-brand__sub { display: block; margin: 2px 0 0; font-size: 13px; }
  /* スマホでは紹介文を3行で切り、「続きを読む」で開く（入口の並びを大きく押し下げないため） */
  #main_contents .emsm-brand .emsm-brand__lead { font-size: 13.5px; line-height: 1.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  #main_contents .emsm-brand .emsm-brand__chk { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  #main_contents .emsm-brand .emsm-brand__more { display: inline-block; margin: 4px 0 0; padding: 4px 0; font-size: 13px; font-weight: 700; color: #5d7417; text-decoration: underline; cursor: pointer; }
  #main_contents .emsm-brand .emsm-brand__chk:checked ~ .emsm-brand__lead { display: block; -webkit-line-clamp: unset; overflow: visible; }
  #main_contents .emsm-brand .emsm-brand__chk:checked ~ .emsm-brand__more { display: none; }
  #main_contents .emsm-brand .emsm-brand__chk:focus-visible ~ .emsm-brand__more { outline: 2px solid #704524; outline-offset: 2px; }
  /* 開いたあとは「続きを読む」が消えるので、キーボードで操作している人には紹介文のまわりに枠を出す */
  #main_contents .emsm-brand .emsm-brand__chk:checked:focus-visible ~ .emsm-brand__lead { outline: 2px solid #704524; outline-offset: 2px; }
  /* 切って隠れている部分のリンクにキーボードで入ったときは、開く（隠れたまま中身だけがずれるのを防ぐ） */
  #main_contents .emsm-brand .emsm-brand__lead:focus-within { display: block; -webkit-line-clamp: unset; overflow: visible; }
  #main_contents .emsm-brand .emsm-brand__lead:focus-within ~ .emsm-brand__more { display: none; }
  /* 紹介文が短いときは切らない */
  #main_contents .emsm-brand.emsm-brand--short .emsm-brand__lead { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
