/* ====== Reset-ish ====== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP",sans-serif; line-height:1.5; color:#111}
a{color:inherit;text-decoration:none}
button{font:inherit}

/* ====== Topbar ====== */
.title{
	background-color: #fcf2cb;
	font-size: 12px;
	text-align: center;
	margin: 0;
	padding: 3px;
	box-sizing: border-box;
}
.pclogo{
	display: block;
	width: 30%;
}
.pclogo img{
	width: 100%;
}
.splogo{
	display: none;
}
.topbar{
  position:sticky; top:0; z-index:50;
  background:#fff; border-bottom:1px solid #e6e6e6;
}
.topbar__inner{
	display:flex; align-items:center; justify-content:space-between;
	padding:10px 14px; gap:12px;
	max-width: 1200px;
	margin: 0 auto;
}
.topbar__title{
	font-size:24px;
	margin:0;
	font-weight:700
}
.topbar__title img{
	width: 50%;
	height: auto;
}
.filtersBtn{
	position: relative;
	display: none;
    /*display:inline-flex;*/
	align-items:center;
	justify-content:center;
	padding:8px 12px;
	border:2px solid #b7b7b7;
	border-radius:10px;
	background:#fff;
	width: 20%;
	box-sizing: border-box;
}
.filtersBtn:hover{
	background: #FFE9AB;
	transition: 0.2s;
}
.filtersBtn::after{
	content: "＞";
	position: absolute;
	right: 0;
	top:50%;
	transform: translate(-50%, -50%);
}
/* ====== Layout ====== */
.layout{
	display:grid;
	grid-template-columns: 360px 1fr;
	gap:16px;
	padding:30px 0;
	max-width:1200px;
	margin:0 auto;
}
.sidebarPc{min-width:0}
.content{min-width:0}

/* ====== PC: left sticky + internal scroll ====== */
.panel{
  position:sticky; top:58px; /* topbar height */
  height: calc(100dvh - 74px);
  overflow:auto;
}
.panel__hd{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px; border-bottom:1px solid #eee;
  background:#fff;
  z-index:2;
}
.panel__ttl{margin:0; font-size:22px}

.btnGhost{
	padding:6px 10px;
	border-radius:10px;
	border:2px solid #b7b7b7;
	background:#fff;
}
.btnGhost:hover{
	background: #e3e3e3;
	transition: 0.2s;
}
.btnSmall{padding:6px 10px; font-size:16px}

/* ====== Content header ====== */
.content__hd{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.content__left{min-width:0}
.content__right{display:flex; flex-direction:column; gap:8px; align-items:flex-end}
.count{
	font-size:16px;
	color:#333
}
.viewHint{
	font-size:16px;
	color:#666
}

/* ====== Active chips ====== */
.chips{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:8px;
}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border:1px solid #e3e3e3;
  border-radius:999px;
  background:#fff;
  font-size:12px;
  max-width:100%;
}
.chip__txt{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:340px}
.chip__x{
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px;
  border:1px solid #ddd;
  border-radius:999px;
  line-height:1;
  font-size:12px;
}

/* ====== Grid ====== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.card{
  border:2px solid #e6e6e6; border-radius:14px; overflow:hidden;
  background:#fff;
  display:flex; flex-direction:column;
}
.card__img{
 	width:100%;
	/*aspect-ratio: 4/3;*/
	background:#f7f7f7;
	display:block; object-fit:cover;
}
.card__bd{padding:10px 10px 12px}
.card__ttl{
	margin:0 0 6px;
	font-size:20px;
	font-weight:700;
	line-height: 1.3;
}
.card__meta{
	margin:0;
	font-size:18px;
	color:#555;
	line-height: 1.3;
}
.card__tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.tag{
	font-size:14px;
	padding:3px 8px;
	border:1px solid #e3e3e3;
	border-radius:999px;
	color:#444
}

/* ====== Filters UI ====== */
.filters{padding:12px}
.shredder-search.section{
	margin:0 0 40px;
	background:#fff
}
.section__ttl{
	padding: 8px;
	margin:0 0 10px;
	font-size:20px;
	font-weight:bold;
	background: #fffaf4;/*背景色*/
	border-left: solid 5px #ffaf58;/*左線（実線 太さ 色）*/
	box-sizing: border-box;
}
.fGroup{margin:0 0 16px}
.fLabel{
	display:block;
	font-size:18px;
	font-weight: bold;
	color:#FE4F27;
	margin:0 0 6px
}
.select{
	width:100%;
	padding:10px 10px;
	border:1px solid #ddd; border-radius:12px;
	background:#fff;
	font-size: 16px;
}
.hint{margin:8px 0 0; font-size:16px; color:#666}

/*.select:has(option:checked){
	background: #FFE9AB;
}
*/
/* pills */
.pills{display:flex; flex-wrap:wrap; gap:8px;
		margin-bottom: 24px;}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid #ddd; border-radius:999px;
  padding:8px 10px; font-size:18px;
  background:#fff;
  user-select:none;
}
.pill input{margin:0}
.pill--disabled{opacity:.45}
.pill--disabled input{pointer-events:none}

.pill:has(input:checked){
	background: #FFE9AB;
}

.copyright{
	text-align: center;
	font-size: 12px;
	background: #ffd7ac;
	padding: 10px;
	margin-top: 20px;
	box-sizing: border-box;
}
span.aks {
        display: inline-block;
    }
/* ====== Empty ====== */
.empty{
  padding:18px; border:1px dashed #ddd; border-radius:14px; color:#555;
}

/* ====== SP Drawer (:target) ====== */
.drawer{
  position:fixed;
  top:0; right:0;
  height:100dvh;
  width:min(92vw, 420px);
  background:#fff;
  border-left:1px solid #e6e6e6;
  z-index:2147483647;
  transform: translateX(105%);
  transition: transform .22s ease;
  display:flex; flex-direction:column;
}
.drawer__hd{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-bottom:1px solid #eee;
}
.drawer__ttl{margin:0; font-size:30px
}
.btnClose{
	display:inline-flex; align-items:center; justify-content:center;
	width:40px; height:40px;
	border:1px solid #b7b7b7; border-radius:10px;
	font-size: 30px;
}
.btnClose:hover{
	background: #e3e3e3;
	transition: 0.2s;
}
.drawer__bd{overflow:auto; padding-bottom:12px}
.drawer__actions{padding:12px 12px 0}
.drawer__ft{
  border-top:1px solid #eee;
  padding:12px 14px;
  background:#fff;
}
.btnPrimary{
 	display:flex; align-items:center; justify-content:center;
	width:100%;
	padding:12px 12px;
	border-radius:12px;
	background:#FE4F27;
	color:#fff;
	font-size: 18px;
	font-weight: bold;
}

/* overlay */
.overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.35);
  opacity:0; pointer-events:none;
  z-index:2147483646;
  transition: opacity .18s ease;
}
#filtersDrawer:target{ transform: translateX(0); }
#filtersDrawer:target ~ #overlay{ opacity:1; pointer-events:auto; }

/* ====== Responsive ====== */
@media (max-width: 980px){
  .topbar__inner{
	  padding: 12px;
	}
  .layout{grid-template-columns: 1fr; padding:12px}
  .sidebarPc{display:none}
  .grid{grid-template-columns: repeat(1, minmax(0, 1fr))}
  .content__right{flex-direction:row; align-items:center}
  .filtersBtn{
	  display: inline-flex;
	  width: 30%;
	  font-weight: bold;
	  font-size: 30px;
	}
.content__left{
	width:50%;
	box-sizing: border-box;
	}
.content__right{
	width:48%;
	box-sizing: border-box;
}
.viewHint{width: 60%;}
.btnSmall{
	width: 40%;
	box-sizing: border-box;
	font-size: 30px;
	margin-bottom: 20px;
	padding: 10px;
	}
.pclogo{display: none;}
.splogo{
	display: block;
	width: 50%;
	text-align: center;
	margin: 6px auto 0;
}
.splogo img{width: 100%;}

/*追記*/	
.title{
	background-color: #fcf2cb;
	font-size: 25px;
	text-align: center;
	margin: 0;
	padding: 15px;
	box-sizing: border-box;
}	
	
.card__bd{padding:10px 10px 12px}
.card__ttl{
	margin:0 0 6px;
	font-size:30px;
	font-weight:700;
	line-height: 1.3;
}
.card__meta{
	margin:0;
	font-size:28px;
	color:#555;
	line-height: 1.5;
}
	.card__tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.tag{
	font-size:27px;
	padding:3px 8px;
	border:1px solid #e3e3e3;
	border-radius:999px;
	color:#444
}
	
	.topbar{
		    border-bottom: 1px solid #e6e6e6;
}
		
.topbar__title img{
		width: 100%;
	}
	
.topbar__inner .filtersBtn {
        width: 30%;
		padding: 20px 20px;
}	

.topbar__inner {
        padding: 30px;
    }	
	
.count{
		font-size: 28px;
	}

.section__ttl{
	padding: 8px;
/*	margin:0 0 10px;*/
	font-size:30px;
	font-weight:bold;
	background: #fffaf4;/*背景色*/
	border-left: solid 5px #ffaf58;/*左線（実線 太さ 色）*/
	box-sizing: border-box;
}
.fLabel{
	display:block;
	font-size:28px;
	font-weight: bold;
	color:#FE4F27;
	margin:0 0 6px
}


.drawer{
  position:fixed;
  top:0; right:0;
  height:100dvh;
	width: 80%;
 /* width:min(92vw, 600px);*/
  background:#fff;
  border-left:1px solid #e6e6e6;
  z-index:2147483647;
  transform: translateX(105%);
  transition: transform .22s ease;
  display:flex; flex-direction:column;
}

.drawer__ttl{
	margin:0; font-size:35px
}

.select {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font-size: 28px;
}
	
.btnClose{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:70px; height:70px;
	border:1px solid #b7b7b7;
	border-radius:10px;
	font-size: 38px;
}


	.btnGhost {
    border-radius: 10px;
    border: 2px solid #b7b7b7;
    background: #fff;
    font-size: 28px;
    padding: 10px;
    margin-bottom: 15px;
}
	

.pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid #ddd; border-radius:999px;
  padding:8px 10px; font-size:28px;
  background:#fff;
  user-select:none;
}	

.btnPrimary{
 	display:flex; align-items:center; justify-content:center;
	width:100%;
	padding:12px 12px;
	border-radius:12px;
	background:#FE4F27;
	color:#fff;
	font-size: 30px;
	font-weight: bold;
}	

.chip{

  font-size:26px;
  
}	
	
}


@media (max-width: 520px){
  .grid{grid-template-columns: repeat(1, minmax(0, 1fr))}
  body.filtered .grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .chip__txt{max-width:180px}
  .filtersBtn{width: 40%;}
  .card__ttl{font-size:18px;}
  .viewHint{font-size:14px;}
  .topbar__title{width: 60%;}
  .topbar__title img{width: 100%;}
  .pill{font-size: 16px;}
  .viewHint{width: 30%;}
  .btnSmall{
	width: 70%;
	box-sizing: border-box;
	}
}
	




/* === SP readability enhancement (forced override) === */
@media (max-width: 520px){
  .section__ttl{font-size:22px!important;}
  .fLabel{font-size:20px!important;}
  .select{font-size:20px!important;padding:14px!important;}
  .pill{font-size:20px!important;padding:12px 16px!important;}
  .pill span{font-size:20px!important;}
  .hint{font-size:18px!important;}
  .chip__txt{font-size:18px!important;max-width:300px!important;}
}
