/*
Theme Name: AFFINGER Child
Template: affinger
Description: AFFINGER6 対応
Version: 20210719
*/

/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応したいCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {


	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {


	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応したいCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*-- ここまで --*/
}

/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {


	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {

	
	/*-- ここまで --*/
}

/* Sakanap: responsive Rakuten picttext cards. Original affiliate markup is preserved. */
table:has(> tbody > tr > td > div > table a[href*="hb.afl.rakuten.co.jp"]),
div[style*="overflow:hidden"]:has(> table a[href*="hb.afl.rakuten.co.jp"]),
div[style*="overflow: hidden"]:has(> table a[href*="hb.afl.rakuten.co.jp"]) {
  max-width:100% !important; box-sizing:border-box;
}
@media screen and (max-width: 767px) {
  table:has(> tbody > tr > td > div > table a[href*="hb.afl.rakuten.co.jp"]),
  div[style*="overflow:hidden"]:has(> table a[href*="hb.afl.rakuten.co.jp"]),
  div[style*="overflow: hidden"]:has(> table a[href*="hb.afl.rakuten.co.jp"]),
  table:has(> tbody > tr > td > a > img[src*="hbb.afl.rakuten.co.jp"]) {
    display:block !important; width:100% !important; min-width:0 !important;
    margin:16px auto !important; table-layout:auto !important;
  }
  table:has(> tbody > tr > td > div > table a[href*="hb.afl.rakuten.co.jp"]) > tbody,
  table:has(> tbody > tr > td > div > table a[href*="hb.afl.rakuten.co.jp"]) > tbody > tr,
  table:has(> tbody > tr > td > div > table a[href*="hb.afl.rakuten.co.jp"]) > tbody > tr > td,
  table:has(> tbody > tr > td > a > img[src*="hbb.afl.rakuten.co.jp"]) > tbody,
  table:has(> tbody > tr > td > a > img[src*="hbb.afl.rakuten.co.jp"]) > tbody > tr,
  table:has(> tbody > tr > td > a > img[src*="hbb.afl.rakuten.co.jp"]) > tbody > tr > td {
    display:block !important; width:100% !important; min-width:0 !important;
    max-width:100% !important; height:auto !important; box-sizing:border-box;
    border:0 !important; padding:0 !important; margin:0 !important;
  }
  div[style*="overflow"]:has(> table a[href*="hb.afl.rakuten.co.jp"]) {padding:12px !important;}
  table td > a > img[src*="hbb.afl.rakuten.co.jp"] {
    display:block !important; float:none !important; width:auto !important;
    max-width:100% !important; height:auto !important; margin:0 auto 14px !important;
  }
  td:has(> p a[href*="hb.afl.rakuten.co.jp"]) > p {
    font-size:15px !important; line-height:1.7 !important;
    padding:0 !important; margin:0 0 12px !important;
    text-align:left !important; overflow-wrap:anywhere;
  }
  td:has(> p a[href*="hb.afl.rakuten.co.jp"]) > div {
    display:flex !important; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:12px; margin:12px 0 0 !important;
  }
  td:has(> p a[href*="hb.afl.rakuten.co.jp"]) > div > a {display:block; max-width:100%;}
  td:has(> p a[href*="hb.afl.rakuten.co.jp"]) > div > a > div {
    float:none !important; width:auto !important; min-height:44px;
    height:auto !important; line-height:44px !important; margin:0 !important;
    padding:0 20px !important; box-sizing:border-box;
  }
}

/* Homepage: today's recipes only */

#sakanap-today-recipes .shortcode-kanren{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0}
#sakanap-today-recipes .shortcode-kanren>dl{display:block;float:none;width:auto;min-width:0;margin:0;padding:0;border:0}
#sakanap-today-recipes .shortcode-kanren>dl>dt{float:none;width:100%;max-width:none;margin:0 0 12px;padding:0}
#sakanap-today-recipes .shortcode-kanren>dl>dt a{display:block}
#sakanap-today-recipes .shortcode-kanren>dl>dt img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:8px}
#sakanap-today-recipes .shortcode-kanren>dl>dd{margin:0;padding:0;width:auto}
#sakanap-today-recipes .kanren-t{margin:0 0 10px;padding:0;font-size:16px;line-height:1.6}
#sakanap-today-recipes .st-excerpt p{font-size:13px;line-height:1.7}
@media(max-width:767px){
#sakanap-today-recipes .shortcode-kanren{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
#sakanap-today-recipes .kanren-t{font-size:14px}
}

/* Show the fourth recipe only on mobile. */
@media(min-width:768px){#sakanap-today-recipes .shortcode-kanren>dl:nth-of-type(n+4){display:none}}
