/*
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) {

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

/* サイト内検索ボタン（ng） */
.ng-sbtn{position:fixed;left:14px;bottom:18px;z-index:9999;display:flex;align-items:center;gap:6px;background:#c9654a;color:#fff!important;text-decoration:none!important;font-weight:700;font-size:14px;padding:10px 16px 10px 13px;border-radius:999px;box-shadow:0 3px 10px rgba(0,0,0,.18)}
.ng-sbtn:hover{opacity:.9}
@media print{.ng-sbtn{display:none}}

/* スマホで表を見やすく（tools/mobile_tables.py が class を付ける） */
@media screen and (max-width: 599px) {
.m-stack,.m-stack tbody,.m-stack tr,.m-stack td{display:block;width:100%!important;box-sizing:border-box}
.m-stack{border:0!important;min-width:0!important}
.m-stack tr{background-color:transparent}
.m-stack thead,.m-stack th{display:none!important}
.m-stack tr{border:1px solid #e3d6cc;border-radius:10px;margin:0 0 10px;overflow:hidden;background:#fffdfb}
.m-stack td{border:0!important;border-bottom:1px solid #f0e8df!important;padding:8px 12px!important;text-align:left!important;word-break:normal;overflow-wrap:anywhere}
.m-stack td:last-child{border-bottom:0!important}
.m-stack td::before{content:attr(data-label);display:block;font-size:.75em;font-weight:700;color:#c9654a;margin-bottom:2px}
.m-stack td:first-child{background:#fbe9e2;font-weight:700}
.m-stack td:first-child::before{color:#7a6e68}
.m-kv,.m-kv tbody,.m-kv tr,.m-kv th,.m-kv td{display:block;width:100%!important;box-sizing:border-box}
.m-kv{border:1px solid #e3d6cc!important;border-radius:10px;overflow:hidden}
.m-kv th{background:#f3efe8;text-align:left!important;padding:6px 12px!important;border:0!important;font-size:.9em}
.m-kv td{padding:6px 12px 10px!important;border:0!important;border-bottom:1px solid #f0e8df!important}
.m-kv tr:last-child td{border-bottom:0!important}
}

/* ===== 記事一覧：横長アイキャッチを切らずに表示（2026-11-26） ===== */
.kanren dt img:is([src*="-eye-"],[src*="sanzen-sango-tetsuzuki-1"],[src*="yukyu-8wari-1"]){height:auto!important;aspect-ratio:1200/630;object-fit:cover;border-radius:8px}
.kanren dl:has(dt img:is([src*="-eye-"],[src*="sanzen-sango-tetsuzuki-1"],[src*="yukyu-8wari-1"])) dt{width:190px}
.kanren dl:has(dt img:is([src*="-eye-"],[src*="sanzen-sango-tetsuzuki-1"],[src*="yukyu-8wari-1"])) dt img{width:190px!important}
.kanren dl:has(dt img:is([src*="-eye-"],[src*="sanzen-sango-tetsuzuki-1"],[src*="yukyu-8wari-1"])) dd{padding-left:205px}
@media screen and (max-width: 599px){
 .kanren dl:has(dt img:is([src*="-eye-"],[src*="sanzen-sango-tetsuzuki-1"],[src*="yukyu-8wari-1"])) dt{float:none!important;width:100%!important;margin:0 0 10px}
 .kanren dl:has(dt img:is([src*="-eye-"],[src*="sanzen-sango-tetsuzuki-1"],[src*="yukyu-8wari-1"])) dt img{width:100%!important;border-radius:12px}
 .kanren dl:has(dt img:is([src*="-eye-"],[src*="sanzen-sango-tetsuzuki-1"],[src*="yukyu-8wari-1"])) dd{padding-left:0!important}
}
