/* program.php 専用 */
* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: #fff;
	color: #222;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}
body { padding-bottom: 68px; }
a { -webkit-tap-highlight-color: transparent; }
#container, #contents { width: 100%; margin: 0; padding: 0; }

/* ページ見出し */
.PegeHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	padding: 12px 20px;
	border-bottom: 1px solid #ccc;
	background: #fff;
}
.PageTitle {
	color: #222;
	font-size: 22px;
	font-weight: bold;
	line-height: 1.35;
}
.PageNavi { margin-left: 20px; color: #666; font-size: 12px; white-space: nowrap; }
.PageNavi a { color: #333; }

/* 共通横幅 */
.Ad, .ANKR_PG_list, .ns_top, .SNS {
	width: calc(100% - 36px);
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}
.Ad { min-height: 0; margin-top: 14px; margin-bottom: 14px; text-align: center; }

/* 楽曲一覧 */
.ANKR_PG_list {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #aaa;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	table-layout: fixed;
}
.ANKR_PG_list td {
	padding: 9px 8px;
	border: 0;
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	vertical-align: middle;
	line-height: 1.45;
}
/*
 * 1曲が2行構成のため tr の last-child は「表の最終列」とは限らない。
 * 特に歌手名行は td が1個だけなので、last-child で右罫線を消さない。
 */
.ANKR_PG_list tr.ANKRtitle1 > td { border-right: 0; }
.ANKR_PG_list tr.ANKRtitle2 > td:last-child { border-right: 0; }
.ANKR_PG_list tr.ANKRdata1:first-of-type > td:last-child,
.ANKR_PG_list tr.ANKRdata2:first-of-type > td:last-child { border-right: 0; }
.ANKRtitle1 td {
	padding: 14px 12px;
	background: #333;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
}
.ANKRtitle2 td {
	padding: 8px 5px;
	background: #eee;
	color: #222;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
}
/* 1曲ごとの交互背景色 */
.ANKR_PG_list tr.ANKRdata1 > td {
	background: #f2f2f2 !important;
}
.ANKR_PG_list tr.ANKRdata2 > td {
	background: #fff !important;
}

/*
 * 1曲は「曲名行 + 歌手名行」の2行構成。
 * 曲名セルと歌手名セルの間だけ横線を消す。
 * 歌手名セルの右罫線は必ず残し、曲名列の縦罫線を途切れさせない。
 */
.ANKR_PG_list tr.ANKRdata1 > td:nth-child(2),
.ANKR_PG_list tr.ANKRdata2 > td:nth-child(2) {
	border-bottom: 0;
}
.ANKR_PG_list tr.ANKRdata1 + tr.ANKRdata1 > td,
.ANKR_PG_list tr.ANKRdata2 + tr.ANKRdata2 > td {
	border-right: 1px solid #ddd !important;
	border-bottom: 1px solid #ccc !important;
}

/* 各曲の1行目にある詳細列だけ右罫線を消す */
.ANKR_PG_list tr.ANKRdata1 > td:last-child:not(:only-child),
.ANKR_PG_list tr.ANKRdata2 > td:last-child:not(:only-child) {
	border-right: 0;
}

/* PCのマウスオーバーでも交互色を壊さない */
.ANKR_PG_list tr.ANKRdata1:hover > td { background: #e9e9e9 !important; }
.ANKR_PG_list tr.ANKRdata2:hover > td { background: #f8f8f8 !important; }
.ANKR_PG_list .col_S_OPED { width: 70px; }
.ANKR_PG_list .col_S_SNAN { width: auto; }
.ANKR_PG_list .col_S_SNUM { width: 125px; }
.ANKR_PG_list .col_S_LINK { width: 75px; }
#colCenter { text-align: center; }
#ListHaishinDate { color: #666; font-size: 11px; }

/* 詳細ボタン：既存のオレンジ装飾は使用しない */
.DetailLINK { margin: 0; padding: 0; background: none; border: 0; }
.DetailLINK a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	min-height: 34px;
	padding: 5px 8px;
	border: 1px solid #aaa;
	border-radius: 7px;
	background: #eee;
	color: #222;
	font-weight: bold;
	text-decoration: none;
	box-shadow: none;
}
.DetailLINK a:hover { background: #ddd; }

/* 注意書き */
.ns_top.ns_info, .ns_top.ns_error {
	margin-top: 18px;
	margin-bottom: 18px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #ccc;
	border-radius: 10px;
	background: #f7f7f7;
}
.InfoContentS, .InfoContentL { padding: 15px; color: #444; font-size: 12px; line-height: 1.75; }
.def_blue { color: #333; font-weight: bold; }
.SNS {
	margin-top: 16px;
	margin-bottom: 18px;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #eee;
	text-align: right;
}
.SNS td { text-align: right; }

/* 固定フッター */
#footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	width: 100%;
	border-top: 1px solid #aaa;
	background: rgba(245,245,245,.97);
}
.PegeFooter {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 8px 12px;
}
.btnBack, .btnHome, .btnTop { width: 100%; min-width: 0; margin: 0; }
.PegeFooter .btn {
	display: flex;
	align-items: center;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #aaa;
	border-radius: 0;
	background: #eee;
	color: #222;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
}
.btnBack .btn, .btnHome .btn, .btnTop .btn { justify-content: center; }
.btnBack .btn { border-radius: 9px 0 0 9px; }
.btnHome .btn { border-left: 0; border-right: 0; }
.btnTop .btn { border-radius: 0 9px 9px 0; }
/* フッターアイコン：文字記号を使わずCSS図形で描画 */
.btnBack .btn::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(-45deg);
	flex: 0 0 auto;
}
.btnHome .btn::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 15px;
	margin-right: 9px;
	background: currentColor;
	clip-path: polygon(50% 0, 100% 40%, 84% 40%, 84% 100%, 58% 100%, 58% 68%, 42% 68%, 42% 100%, 16% 100%, 16% 40%, 0 40%);
	-webkit-clip-path: polygon(50% 0, 100% 40%, 84% 40%, 84% 100%, 58% 100%, 58% 68%, 42% 68%, 42% 100%, 16% 100%, 16% 40%, 0 40%);
	flex: 0 0 auto;
}
.btnTop .btn::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 10px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(45deg);
	flex: 0 0 auto;
}
.PegeFooter .btn:hover { background: #ddd; }

@media screen and (max-width: 600px) {
	body { padding-bottom: 61px; }
	.PegeHeader { display: block; min-height: 48px; padding: 10px 12px; }
	.PageTitle { display: block; color: #222; font-size: 18px; }
	.PageNavi { display: none; }
	.Ad, .ANKR_PG_list, .ns_top, .SNS { width: calc(100% - 10px); }
	.Ad { margin-top: 8px; margin-bottom: 8px; }

	/* table構造は崩さない */
	.ANKR_PG_list { table-layout: fixed; border-radius: 8px; }
	.ANKR_PG_list .col_S_OPED { width: 38px; }
	.ANKR_PG_list .col_S_SNAN { width: auto; }
	.ANKR_PG_list .col_S_SNUM { width: 70px; }
	.ANKR_PG_list .col_S_LINK { width: 48px; }
	.ANKR_PG_list td { padding: 7px 4px; font-size: 12px; overflow-wrap: anywhere; }
	.ANKRtitle1 td { padding: 11px 9px; font-size: 15px; line-height: 1.45; }
	.ANKRtitle2 td { padding: 7px 2px; font-size: 11px; line-height: 1.25; }
	.DetailLINK a { min-width: 40px; min-height: 32px; padding: 4px 3px; border-radius: 6px; font-size: 12px; }
	.InfoContentS, .InfoContentL { padding: 12px; font-size: 11px; line-height: 1.65; }

	.PegeFooter { gap: 0; padding: 6px 8px; }
	.PegeFooter .btn { height: 40px; padding: 0 10px; font-size: 13px; }
}

/*===============================================*/
/* update5: 曲名/歌手名の区切り線・TOPアイコン位置 */
/*===============================================*/

/* 曲名セルと歌手名セルの間に薄い横罫線を表示 */
.ANKR_PG_list tr.ANKRdata1 > td:nth-child(2),
.ANKR_PG_list tr.ANKRdata2 > td:nth-child(2) {
	border-bottom: 1px solid #ddd !important;
}

/* TOPのCSS矢印を文字列と視覚的に中央揃え */
.btnTop .btn::after {
	position: relative;
	top: 2px;
}

/*===============================================*/
/* update6: PC横幅拡大・TOPアイコン位置微調整 */
/*===============================================*/

/* PCでは一覧・注意書き・SNSバーを同じ幅で広く表示 */
@media screen and (min-width: 601px) {
	.ANKR_PG_list,
	.ns_top.ns_info,
	.ns_top.ns_error,
	.SNS {
		width: calc(100% - 48px);
		max-width: 1400px;
	}
}

/* TOPアイコンをもう少しだけ下げる */
.btnTop .btn::after {
	top: 4px;
}

/*===============================================*/
/* update7: PC幅をブラウザ幅の98%に追従 */
/*===============================================*/
@media screen and (min-width: 601px) {
	.ANKR_PG_list,
	.ns_top.ns_info,
	.ns_top.ns_error,
	.SNS {
		width: 98%;
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}
}

/*===============================================*/
/* update8: 詳細ボタンをセルサイズに追従 */
/*===============================================*/
.DetailLINK {
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 3px;
	background: none;
	border: 0;
	box-sizing: border-box;
}

.DetailLINK a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 38px;
	margin: 0;
	padding: 6px 4px;
	box-sizing: border-box;
	border: 0;
	border-radius: 7px;
	background: #444;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	box-shadow: none;
}

.DetailLINK a:visited {
	color: #fff;
}

.DetailLINK a:hover,
.DetailLINK a:active {
	background: #333;
	color: #fff;
}

@media screen and (max-width: 600px) {
	.DetailLINK {
		padding: 2px;
	}

	.DetailLINK a {
		width: 100%;
		min-width: 0;
		min-height: 34px;
		padding: 5px 2px;
		border-radius: 6px;
		font-size: 12px;
	}
}

/*===============================================*/
/* update9: 詳細ボタンの高さを詳細セルに追従 */
/*===============================================*/

/* rowspan=2 の詳細セルを基準に、ボタンをセル内いっぱいまで伸ばす */
.ANKR_PG_list td:has(> .DetailLINK) {
	position: relative;
}

.ANKR_PG_list td > .DetailLINK {
	position: absolute;
	top: 3px;
	right: 3px;
	bottom: 3px;
	left: 3px;
	width: auto;
	height: auto;
	padding: 0;
}

.DetailLINK a {
	width: 100%;
	height: 100%;
	min-height: 0;
	padding-top: 0;
	padding-bottom: 0;
}

@media screen and (max-width: 600px) {
	.ANKR_PG_list td > .DetailLINK {
		top: 2px;
		right: 2px;
		bottom: 2px;
		left: 2px;
		padding: 0;
	}

	.DetailLINK a {
		height: 100%;
		min-height: 0;
		padding-top: 0;
		padding-bottom: 0;
	}
}

/* 上部Google広告 一時撤去用スペース */
.top-ad-temp-space {
	height: 15px;
}


/*===============================================*/
/* period.php / group.php 共通化対応：作品タイトル行 */
/*===============================================*/
.ANKR_PG_list .ANKR_NP_title1 > td {
	padding: 9px 10px;
	border-right: 0;
	border-bottom: 1px solid #aaa;
	background: #dcdcdc;
	color: #222;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
}

/* JOYSOUND・DAM欄は曲番号・配信日とも自動改行しない */
.ANKR_PG_list tr.ANKRdata1 > td:nth-child(3),
.ANKR_PG_list tr.ANKRdata1 > td:nth-child(4),
.ANKR_PG_list tr.ANKRdata2 > td:nth-child(3),
.ANKR_PG_list tr.ANKRdata2 > td:nth-child(4) {
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: keep-all;
}

@media screen and (max-width: 600px) {
	.ANKR_PG_list .ANKR_NP_title1 > td {
		padding: 8px 7px;
		font-size: 12px;
	}
}
