/* 人気ランキング /sh/css/ranking.css (/Page/ranking/)
   順位リストの商品カードは本番の共通CSS(c-product-item)をそのまま使い、並べ方と順位の見せ方だけをここで決める */
.shrk {
	--rk-main: #8C6A4F;
	--rk-deep: #6B4E37;
	--rk-pale: #F6F0EA;
	--rk-line: #E5DDD5;
	--rk-gold: #C9A227;
	--rk-silver: #9AA3AD;
	--rk-bronze: #B07A4E;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 16px 64px;
	color: #333;
	font-size: 15px;
	line-height: 1.8;
}
.shrk *, .shrk *::before, .shrk *::after { box-sizing: border-box; }
.shrk a { color: var(--rk-deep); }

.shrk-crumb { margin: 12px 0 16px; font-size: 12px; color: #6B6B6B; }
.shrk-crumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.shrk-crumb li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.shrk-crumb a { color: #6B6B6B; text-decoration: none; }

.shrk-head { margin: 0 0 20px; padding: 22px 20px; border-radius: 14px; background: var(--rk-pale); }
.shrk-title { margin: 0 0 10px; font-size: 24px; line-height: 1.4; color: #333; }
.shrk-title small { display: block; margin-top: 4px; font-size: 14px; font-weight: normal; color: #6B6B6B; }
.shrk-period { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; font-size: 14px; font-weight: bold; }
.shrk-period__label { padding: 1px 10px; border-radius: 999px; background: var(--rk-main); color: #fff; font-size: 12px; }
.shrk-period__note { font-size: 12px; font-weight: normal; color: #6B6B6B; }
.shrk-lead { margin: 0; font-size: 14px; }

.shrk-nav { display: grid; gap: 10px; margin: 0 0 28px; }
.shrk-tabs { display: flex; align-items: flex-start; gap: 10px; }
.shrk-tabs__title { flex: none; width: 7.5em; white-space: nowrap; margin: 6px 0 0; font-size: 13px; font-weight: bold; color: var(--rk-deep); }
.shrk-tabs ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shrk-tabs a { display: inline-block; padding: 5px 14px; border: 1px solid var(--rk-line); border-radius: 999px; background: #fff; font-size: 13px; text-decoration: none; color: #333; }
.shrk-tabs a[aria-current="page"] { border-color: var(--rk-main); background: var(--rk-main); color: #fff; font-weight: bold; }

.shrk-sec { margin: 0 0 40px; }
.shrk-h2 { position: relative; margin: 0 0 16px; padding: 0 0 8px 16px; border-bottom: 1px solid var(--rk-line); font-size: 20px; line-height: 1.5; }
.shrk-h2::before { content: ""; position: absolute; left: 0; top: .3em; width: 6px; height: 1.1em; border-radius: 3px; background: var(--rk-main); }

/* 順位リスト(部品 sh_rankingList.ascx の出力) */
.shrk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .shrk-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shrk-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shrk-item { position: relative; min-width: 0; margin: 0; }
.shrk-item .c-product-item { display: block; width: 100%; }
.shrk-item .c-product-item__image { position: relative; }
.shrk-item .c-product-item__image--rank { position: absolute; top: 6px; left: 6px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(51, 51, 51, .8); color: #fff; font-size: 15px; font-weight: bold; line-height: 1; }
.shrk-item:nth-child(1) .c-product-item__image--rank { background: var(--rk-gold); width: 38px; height: 38px; font-size: 18px; }
.shrk-item:nth-child(2) .c-product-item__image--rank { background: var(--rk-silver); width: 36px; height: 36px; font-size: 17px; }
.shrk-item:nth-child(3) .c-product-item__image--rank { background: var(--rk-bronze); width: 36px; height: 36px; font-size: 17px; }
.shrk-empty { padding: 24px; border-radius: 12px; background: var(--rk-pale); text-align: center; }

.shrk-more { margin: 24px 0 0; text-align: center; }
.shrk-btn { display: inline-block; padding: 12px 28px; border-radius: 999px; background: var(--rk-main); color: #fff !important; font-weight: bold; text-decoration: none; }
.shrk-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .shrk-links { grid-template-columns: repeat(2, 1fr); } }
.shrk-links a { display: block; padding: 10px 14px; border: 1px solid var(--rk-line); border-radius: 10px; background: #fff; text-decoration: none; }
.shrk-links a::after { content: " ›"; color: var(--rk-main); }

.shrk-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .shrk-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shrk-cards { grid-template-columns: repeat(3, 1fr); } }
.shrk-cards a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--rk-line); border-radius: 12px; background: #fff; text-decoration: none; color: #333; }
.shrk-cards strong { display: block; color: var(--rk-deep); }
.shrk-cards strong::after { content: " ›"; color: var(--rk-main); }
.shrk-cards span { display: block; font-size: 12px; color: #6B6B6B; line-height: 1.6; }

.shrk-faq details { border-bottom: 1px solid var(--rk-line); }
.shrk-faq summary { padding: 12px 4px; font-weight: bold; cursor: pointer; }
.shrk-faq p { margin: 0 0 12px; padding: 0 4px; font-size: 14px; }
.shrk-about { margin: 40px 0 0; padding: 18px 20px; border: 1px solid var(--rk-line); border-radius: 12px; font-size: 13px; }
.shrk-about h2 { margin: 0 0 6px; font-size: 15px; }
.shrk-about p { margin: 0 0 6px; }

/* スマホ: W2の外枠テーブル(#tblLayout)が中身に合わせて画面より広がるのを防ぐ(knowledge.css と同じ) */
@media (max-width: 767px) {
	#tblLayout { border-spacing: 0; }
	#tblLayout > tbody > tr > td { padding: 0; }
	.shrk { box-sizing: border-box; width: 100vw; max-width: none; overflow-x: hidden; }
	.shrk-title { font-size: 20px; }
	.shrk-tabs { flex-direction: column; gap: 4px; }
	.shrk-tabs ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.shrk-tabs a { white-space: nowrap; }
}

/* サイト共通のパンくず(「TOP」だけの行)は、ページ内のパンくずと重なるので隠す(knowledge.css と同じ) */
nav.c-breadcrumb { display: none; }

/* 一覧ページ: 各ランキングの1〜5位(部品 sh_rankingTop5.ascx)+もっと見る */
.shrk-group { margin-bottom: 56px; }
.shrk-block { margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px dashed var(--rk-line); }
.shrk-h3 { margin: 0 0 12px; font-size: 17px; }
.shrk-h3 a { color: #333; text-decoration: none; }
.shrk-h3 a::after { content: " ›"; color: var(--rk-main); }
.shrk-block .shrk-list { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
.shrk-block__more { margin: 14px 0 0; text-align: right; font-size: 14px; }
.shrk-block__more a { font-weight: bold; text-decoration: none; }
.shrk-block__more a::after { content: " ›"; }
@media (max-width: 767px) {
	.shrk-block .shrk-list { grid-template-columns: repeat(5, 42vw); gap: 12px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
	.shrk-block .shrk-item { scroll-snap-align: start; }
}

/* ランキングメニュー(PC=左のサイドメニュー / SP=左下の固定ボタン+引き出し、中は性別ごとのアコーディオン。知る・ガイドと同じ)
   SPのボタンは本番のガイド(guide2026.css .sg-spnav__btn)と同じ左下・下部メニューの上(下から72px) */
.shrk-layout { display: block; }
.shrk-main { min-width: 0; }
.shrk-nav-side { font-size: 14px; }
.shrk-nav-side ul { margin: 0; padding: 0; list-style: none; }
.shrk-nav-side li a { display: block; padding: 6px 10px; border-radius: 8px; color: #333; text-decoration: none; line-height: 1.5; }
.shrk-nav-side li a:hover { background: var(--rk-pale); }
.shrk-nav-side a[aria-current="page"] { background: var(--rk-pale); color: var(--rk-deep); font-weight: bold; }
.shrk-nav__title { margin: 0 0 6px; padding: 0 10px; font-weight: bold; color: var(--rk-deep); }
.shrk-nav__top > a { font-weight: bold; color: var(--rk-deep); }
.shrk-nav__sec { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--rk-line); }
.shrk-nav__sub { margin: 8px 0 2px; padding: 0 10px; font-size: 12px; font-weight: bold; color: #8a8a8a; }
.shrk-nav__acc summary { position: relative; padding: 7px 28px 7px 10px; font-weight: bold; color: var(--rk-deep); cursor: pointer; list-style: none; line-height: 1.5; }
.shrk-nav__acc summary::-webkit-details-marker { display: none; }
.shrk-nav__acc summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--rk-main); border-bottom: 2px solid var(--rk-main); transform: rotate(45deg); transition: transform .2s; }
.shrk-nav__acc[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.shrk-nav__acc ul a { position: relative; padding-left: 22px; font-size: 13px; }
.shrk-nav__acc ul a::before { content: ""; position: absolute; left: 11px; top: 1.05em; width: 5px; height: 1px; background: var(--rk-main); }
.shrk-spnav__btn, .shrk-spnav__shade, .shrk-spnav__head { display: none; }
@media (min-width: 900px) {
	.shrk-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
	.shrk-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 14px 8px; border: 1px solid var(--rk-line); border-radius: 12px; background: #fff; }
	.shrk-nav__acc summary { cursor: default; }
	.shrk-nav__acc summary::after, .shrk-nav__acc[open] summary::after { content: none; }
	.shrk-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.shrk-block .shrk-list { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
}
@media (min-width: 1300px) { .shrk-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 899px) {
	.shrk-nav__title { display: none; }
	.shrk-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 10001; width: min(86vw, 360px); padding: 0 12px 24px; overflow-y: auto; background: #fff; box-shadow: 4px 0 18px rgba(0, 0, 0, .12); transform: translateX(-105%); visibility: hidden; transition: transform .28s ease, visibility 0s .28s; }
	.shrk-spnav-open .shrk-side { transform: none; visibility: visible; transition: transform .28s ease; }
	.shrk-spnav__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; margin: 0 -12px 8px; padding: 12px 12px 12px 16px; background: #fff; border-bottom: 1px solid var(--rk-line); font-weight: bold; color: var(--rk-deep); }
	.shrk-spnav__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F6F0EA; color: #333; font-size: 20px; line-height: 1; cursor: pointer; }
	.shrk-spnav__btn { display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 1000; height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: #8C6A4F; color: #fff; font-size: 14px; font-weight: bold; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); cursor: pointer; }
	.shrk-spnav__icon, .shrk-spnav__icon::before, .shrk-spnav__icon::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; position: relative; }
	.shrk-spnav__icon::before, .shrk-spnav__icon::after { content: ""; position: absolute; left: 0; }
	.shrk-spnav__icon::before { top: -5px; }
	.shrk-spnav__icon::after { top: 5px; }
	.shrk-spnav__shade { display: block; position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .28s; }
	.shrk-spnav-open .shrk-spnav__shade { opacity: 1; pointer-events: auto; }
	.shrk-spnav-open body { overflow: hidden; }
}
/* 性別TOPのテキストリンク(主要ランキング以外) */
.shrk-textlinks { display: grid; gap: 14px; }
@media (min-width: 768px) { .shrk-textlinks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .shrk-textlinks { grid-template-columns: repeat(3, 1fr); } }
.shrk-textlinks__group { padding: 12px 14px; border: 1px solid var(--rk-line); border-radius: 10px; background: #fff; }
.shrk-textlinks__head { margin: 0 0 6px; font-weight: bold; }
.shrk-textlinks__head a { color: var(--rk-deep); text-decoration: none; }
.shrk-textlinks__head a::after { content: " ›"; color: var(--rk-main); }
.shrk-textlinks ul, .shrk-textlinks__list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.shrk-textlinks ul a, .shrk-textlinks__list a { color: #333; }
.shrk-h2 a { color: inherit; text-decoration: none; }
.shrk-h2 a::after { content: " ›"; color: var(--rk-main); }
