@charset "utf-8";
/* CSS Document */
/* 既存特設ページ（hatsunemiku-19th）の common.css を踏襲し、配色を紅白仕様に変更 */

/*------------------------------
 ▼共通デザイン（モバイル向け）
 -------------------------------*/

body {
	font-family: "YuGothic","Yu Gothic Medium",sans-serif;
	font-size: 16px;
	color: #3a2a2e;
	line-height:1.8;
}

.main {
	background: linear-gradient(#b3202c, #e0434f 30%, #fbe9ea 70%, #ffffff);
	padding-bottom: 32px;
}

.bg {
	position: fixed;
	height: 100%;
	opacity: 0.3;
}

.main__inner {
	position: relative;
	z-index: 1;
}

.utaten-logo {
	width: 100%;
	max-width: 100px;
	display: block;
	margin: 0 20px;
	padding: 10px 0px 0px;
}

.main-logo {
	width: 100%;
	max-width: 800px;
	display: block;
	margin: 0 auto;
}

/* タイトル画像（image/logo.png）＋小見出し */
.main-logo__wrap {
	display: block;
	text-align: center;
	padding: 20px 16px 0;
}
.main-logo__wrap .main-logo__sub {
	font-family: 'Jost', "YuGothic", sans-serif;
	font-style: italic;
	font-weight: bold;
	line-height: 1.2;
	margin-bottom: 4px;
}
.main-logo__wrap .main-logo {
	height: auto;
	max-width: 640px;
}

/* （旧）タイトル画像ができるまでのテキスト版 */
.main-logo_text {
	text-align: center;
	padding: 24px 16px 8px;
	font-family: 'Jost', "YuGothic", sans-serif;
	font-style: italic;
	font-weight: bold;
	line-height: 1.2;
}
.main-logo__sub {
	display: inline-block;
	color: #ffffff;
	font-size: 18px;
	border-bottom: 2px solid #c9a44c;
	padding: 0 8px 4px;
	margin-bottom: 8px;
}
.main-logo__brand {
	display: block;
	color: #ffffff;
	font-family: 'Jost', sans-serif;
	font-size: clamp(44px, 12vw, 88px);
	letter-spacing: 0.02em;
	text-shadow: 3px 4px 0px #8e1b22;
}
.main-logo__main {
	display: block;
	margin-top: 4px;
	font-size: clamp(22px, 8vw, 56px);
	white-space: nowrap;
}
.main-logo__red {
	color: #ffffff;
	text-shadow: 3px 4px 0px #6e1018;
}
.main-logo__white {
	color: #ffffff;
	text-shadow: 3px 4px 0px #c9a44c;
}

.top__txt {
	max-width: 800px;
	margin: 24px 16px 24px 16px;
	color: #ffffff;
}

.ranking {
	padding: 0 16px 24px 16px;
	max-width: 800px;
	margin: 0 auto;
}

.ranking__title{
	color: #ffffff;
	font-family: 'Jost', sans-serif;
	font-style: italic;
	font-size: 40px;
	text-shadow: 2px 3px 0px #8e1b22;
}

.contents__title{
	color: #8e1b22;
	font-family: 'Jost', sans-serif;
	font-style: italic;
	font-size: 40px;
	text-shadow: 2px 3px 0px #ffffff;
}

.result__title {
	margin-top: 32px;
}

/* ▼送信まわり */
.thanks {
	margin: 24px 0 0;
	padding: 24px 16px;
	background: #ffffff;
	text-align: center;
	box-shadow: rgba(87, 30, 40, 0.3) 0px 4px 20px;
	border-top: 4px solid #c9a44c;
}
.thanks__title {
	font-size: 20px;
	font-weight: bold;
	color: #8e1b22;
}
.thanks__share {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 28px;
	border-radius: 999px;
	background: #000000;
	color: #ffffff;
	font-weight: bold;
}

.result {
	background: rgba(255, 255, 255, 0.85);
	padding: 16px;
}

/* 既存のランキングカード（結果発表用にそのまま流用） */
.top-rank,.middle-rank {
	margin: 16px 0 0 0;
}
.ranking__card {
	display: flex;
	position: relative;
	box-shadow: rgba(87, 110, 129, 0.4) 0px 4px 20px;
	cursor: pointer;
	background: #ffffff;
	margin: 0 0 16px 0;
}
.top-rank__number {
	position:absolute;
	top: -14px;
	left: -13px;
	width: 50px;
}
.card__img {
	min-width: 105px;
	max-width: 150px;
}
.thumbnail {
	width: 105px;
	height: 105px;
	vertical-align: bottom;
	object-fit: cover;
}
.card__txt {
	position: relative;
	width: 60%;
	min-width: 0;
	padding: 8px 56px 8px 8px;
	white-space: nowrap;
	flex-grow: 1;
}
.song-neme {
	color: #b3202c;
	letter-spacing: 0.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: bold;
}
.artist-neme {
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 14px;
	color: #A6A6A6;
}
.btn {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	width: 30px;
}

.contents {
	padding: 0 16px 24px 16px;
}
.contents__item {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.contents__link {
	display: block;
	width: 100%;
}
.contents__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: rgba(87, 110, 129, 0.4) 0px 4px 20px;
}
/* バナー画像ができるまでのテキスト版 */
.contents__link_text {
	display: block;
	width: 100%;
	padding: 16px;
	border-radius: 6px;
	background: #ffffff;
	color: #8e1b22;
	font-weight: bold;
	box-shadow: rgba(87, 30, 40, 0.3) 0px 4px 20px;
}

.source {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 16px;
	font-size: 12px;
	color: #8a7a7d;
}

/*-------------------------------
 ▼大型画面向けデザイン（PCなど）
 --------------------------------*/
@media screen and (min-width: 769px){
	.top__txt_wrap {
		text-align: center;
	}
	.top__txt {
		display: inline-block;
		padding: 0 16px;
		text-align: left;
	}
	.bg {
		width: 100%;
	}
	.pc {
		display: flex;
		justify-content: center;
		margin: 0 40px;
	}
	.ranking {
		width: 75%;
		margin: 0;
	}
	.contents {
		position: sticky;
		top: 0;
		height: fit-content;
		width: 25%;
	}
	.contents__title {
		font-size:min(3.4vw,40px);
		line-height: 72px;
	}
}

/* スクリーンリーダー用ラベル */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/*------------------------------
 ▼自動ランキング（RESULT）
 -------------------------------*/
.result__lead {
	font-weight: bold;
	color: #8e1b22;
}
.result__meta {
	font-size: 13px;
	color: #8a7a7d;
	margin: 8px 0 20px;
}
.rank-tab {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}
.rank-tab__btn {
	flex: 1;
	padding: 8px 4px;
	border-radius: 6px;
	background: #ffffff;
	color: #8e1b22;
	font-weight: bold;
	font-size: 14px;
	border: 2px solid #8e1b22 !important;
}
.rank-tab__btn[aria-pressed="true"] {
	background: #8e1b22;
	color: #ffffff;
}

#rank-list > li { list-style: none; }
.ranking__link.ranking__card { color: inherit; }
.ranking__card_nolink { cursor: default; }
.ranking__card_nolink .card__txt { padding-right: 16px; }
.rank-empty {
	padding: 16px;
	background: #ffffff;
	text-align: center;
}

/* 4位以下（既存デザインの三角＋順位数字） */
.ranking__card_middle-rank::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	border: solid 26px #b3202c;
	border-right-color: transparent;
	border-bottom-color: transparent;
}
.number {
	position: absolute;
	z-index: 2;
	top: -2px;
	left: 4px;
	color: #ffffff;
	font-size: 18px;
	font-weight: bold;
	font-family: 'Jost', sans-serif;
	font-style: italic;
}
.top-rank__number { z-index: 2; }
.card__img_medium {
	min-width: 88px;
	max-width: 140px;
}
.thumbnail__medium {
	width: 88px;
	height: 88px;
	vertical-align: bottom;
	object-fit: cover;
}

/* ジャケット画像がない曲の代替表示 */
.thumb-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: bold;
	color: #ffffff;
}
.thumb-ph_red { background: #e0434f; }
.thumb-ph_white { background: #c8ccd6; color: #3a2a2e; }
.thumb-ph_special { background: #c9a44c; }


/*------------------------------
 ▼ランキングへのジャンプボタン
 -------------------------------*/
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
#ranking-result {
	scroll-margin-top: 16px;
}
.jump {
	text-align: center;
	margin: 0 16px 32px;
}
.jump__btn {
	display: inline-block;
	padding: 12px 40px 12px 32px;
	border-radius: 999px;
	background: #ffffff;
	color: #8e1b22;
	font-weight: bold;
	box-shadow: 0 0 0 3px #c9a44c, rgba(87, 30, 40, 0.3) 0px 4px 20px;
	position: relative;
}
.jump__btn::after { /* 下向き矢印 */
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid #8e1b22;
	border-bottom: 2px solid #8e1b22;
	transform: translateY(-70%) rotate(45deg);
}

/*------------------------------
 ▼ランキングのアーティスト選択
 -------------------------------*/
.rank-select {
	margin-top: 12px;
}
.rank-select__label {
	display: block;
	font-size: 13px;
	font-weight: bold;
	color: #8e1b22;
	margin-bottom: 4px;
}
.rank-select__input {
	box-sizing: border-box;
	display: block;
	width: 100%;
	padding: 10px 36px 10px 12px;
	border: 2px solid #8e1b22 !important;
	border-radius: 6px;
	background-color: #ffffff !important;
	background-image: linear-gradient(45deg, transparent 50%, #8e1b22 50%), linear-gradient(135deg, #8e1b22 50%, transparent 50%) !important;
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50% !important;
	background-size: 6px 6px, 6px 6px !important;
	background-repeat: no-repeat !important;
	color: #3a2a2e;
	font-weight: bold;
}

/*------------------------------
 ▼投票フォーム（プルダウン式）
 -------------------------------*/
.team {
	flex-shrink: 0;
	display: inline-block;
	width: 28px;
	height: 28px;
	line-height: 28px;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	border-radius: 50%;
}
.team_red { background: #e0434f; color: #ffffff; }
.team_white { background: #ffffff; color: #3a2a2e; border: 2px solid #c8ccd6; line-height: 24px; }
.team_special { background: #c9a44c; color: #ffffff; }

.vote-box {
	background: #ffffff;
	padding: 20px 16px;
	box-shadow: rgba(87, 30, 40, 0.3) 0px 4px 20px;
	border-top: 4px solid #b3202c;
}
.vote-songs {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px dashed #d9cfd1;
}
.vote-step + .vote-step {
	margin-top: 16px;
}
.vote-step__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: bold;
	color: #8e1b22;
	margin-bottom: 6px;
}
.vote-step__label_wish { color: #1595B7; }
.vote-step__no {
	display: inline-block;
	width: 24px;
	height: 24px;
	line-height: 24px;
	border-radius: 50%;
	text-align: center;
	font-family: 'Jost', sans-serif;
	font-style: italic;
	font-size: 14px;
}
.vote-step__no { color: #ffffff; background: #8e1b22; }
.vote-step__label_wish .vote-step__no { background: #1595B7; }

.vote-select,
.vote-add {
	box-sizing: border-box;
	display: block;
	width: 100%;
	padding: 12px 36px 12px 12px;
	border: 1px solid #d9cfd1 !important;
	border-radius: 6px;
	background-color: #fffafa !important;
	color: #3a2a2e;
	font-size: 16px;
}
.vote-select {
	background-image: linear-gradient(45deg, transparent 50%, #8e1b22 50%), linear-gradient(135deg, #8e1b22 50%, transparent 50%) !important;
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50% !important;
	background-size: 6px 6px, 6px 6px !important;
	background-repeat: no-repeat !important;
}
.vote-add {
	margin-top: 8px;
	padding-right: 12px;
	cursor: text;
	border-color: #c9a44c !important;
}

.vote-artist-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 13px;
	color: #8a7a7d;
}
.vote-artist-info__prev {
	width: 100%;
	color: #c9a44c;
	font-weight: bold;
}

.vote-hint {
	margin-top: 12px;
	font-size: 12px;
	color: #8a7a7d;
}
.vote-submit {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 360px;
	margin: 16px auto 0;
	padding: 14px;
	border-radius: 999px;
	background: #b3202c;
	color: #ffffff;
	font-weight: bold;
	font-size: 17px;
}
.vote-submit:disabled {
	background: #d9cfd1;
	cursor: not-allowed;
}
.vote-done {
	margin-top: 16px;
	padding: 8px 12px;
	background: #fbf3e0;
	font-size: 13px;
	color: #6b5520;
	border-radius: 6px;
}

.thanks__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}
.thanks__actions .thanks__share { margin-top: 0; }
.thanks__rank {
	color: #8e1b22;
	font-weight: bold;
	text-decoration: underline !important;
}
.thanks__next {
	padding: 8px 24px;
	border-radius: 999px;
	border: 2px solid #8e1b22 !important;
	color: #8e1b22;
	font-weight: bold;
}

/* ▼手入力の候補リスト */
.vote-combo {
	position: relative;
}
.vote-step__note {
	font-size: 12px;
	color: #8a7a7d;
	margin: -2px 0 6px;
}
.vote-suggest {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 2px;
	max-height: 280px;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #c9a44c;
	border-radius: 6px;
	box-shadow: rgba(87, 30, 40, 0.25) 0px 6px 16px;
}
.vote-suggest__item {
	padding: 10px 12px;
	cursor: pointer;
	line-height: 1.4;
}
.vote-suggest__item + .vote-suggest__item {
	border-top: 1px solid #f1e8e9;
}
.vote-suggest__item:hover,
.vote-suggest__item.is-active {
	background: #fbe9ea;
}
.vote-suggest__reading {
	display: block;
	font-size: 12px;
	color: #a6a6a6;
}

/* hidden属性を確実に効かせる */
[hidden] {
	display: none !important;
}

/* ▼非公式である旨の注釈 */
.disclaimer {
	max-width: 800px;
	margin: -12px auto 24px;
	padding: 0 16px;
	font-size: 12px;
	color: #ffffff;
	opacity: 0.9;
	text-align: center;
}
.footnote {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 16px;
}
.footnote .source {
	padding: 0;
	margin-bottom: 4px;
	line-height: 1.6;
}

/*------------------------------
 ▼投票済み表示とシェア
 -------------------------------*/
.vote-done {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.vote-done__txt {
	flex: 1 1 200px;
}
.vote-done__share {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	background: #8e1b22;
	color: #ffffff;
	font-weight: bold;
	font-size: 13px;
}

/*------------------------------
 ▼投票内容の表示（投票直後・投票済み）
 -------------------------------*/
.voted {
	max-width: 420px;
	margin: 16px auto;
	padding: 20px 18px 8px;
	border: 2px solid #f1e3e5;
	border-radius: 12px;
	background: #ffffff;
	text-align: left;
}
.voted__artist {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: bold;
	color: #8e1b22;
	margin-bottom: 12px;
}
.team_lg {
	width: 36px;
	height: 36px;
	line-height: 36px;
	font-size: 16px;
}
.team_white.team_lg { line-height: 32px; }
.voted__row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 12px 4px;
	border-top: 1px dotted #e3d3d5;
}
.voted__label {
	flex-shrink: 0;
	width: 7em;
	font-size: 13px;
	font-weight: bold;
}
.voted__label_gachi { color: #b3202c; }
.voted__label_wish { color: #1595B7; }
.voted__song {
	min-width: 0;
	font-size: 17px;
	line-height: 1.6;
	word-break: break-all;
}
.vote-already {
	margin-top: 20px;
}
.vote-already__title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: bold;
	color: #8e1b22;
	margin-bottom: 8px;
}
.vote-already__title::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #8e1b22;
	color: #ffffff;
	font-size: 11px;
}
.vote-already .voted {
	max-width: none;
	margin: 0;
}

/*------------------------------
 ▼全アーティストの1位一覧（RESULT）
 -------------------------------*/
.top1-group + .top1-group {
	margin-top: 20px;
}
.top1-group__title {
	font-weight: bold;
	font-size: 15px;
	padding: 2px 12px;
	margin-bottom: 8px;
	border-left: 5px solid #e0434f;
	color: #8e1b22;
}
.top1-group__title_white { border-left-color: #c8ccd6; }
.top1-group__title_special { border-left-color: #c9a44c; }
.top1-list {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: rgba(87, 30, 40, 0.15) 0px 2px 10px;
	overflow: hidden;
}
.top1 + .top1 {
	border-top: 1px solid #f1e8e9;
}
.top1__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	text-align: left;
	color: inherit;
}
.top1__btn:hover {
	background: #fffafa;
}
.top1__body {
	flex: 1;
	min-width: 0;
}
.top1__artist {
	display: block;
	font-size: 12px;
	color: #8a7a7d;
	line-height: 1.4;
}
.top1__song {
	display: block;
	font-weight: bold;
	color: #3a2a2e;
	line-height: 1.5;
	word-break: break-all;
}
.top1__none {
	font-weight: normal;
	font-size: 13px;
	color: #b8aeb0;
}
.top1__tie {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	border-radius: 3px;
	background: #fbf3e0;
	color: #6b5520;
	font-size: 11px;
	font-weight: bold;
	vertical-align: middle;
}
.top1__votes {
	flex-shrink: 0;
	font-family: 'Jost', sans-serif;
	font-weight: bold;
	color: #b3202c;
	font-size: 15px;
}
.top1__arrow {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-top: 2px solid #c8bcbe;
	border-right: 2px solid #c8bcbe;
	transform: rotate(45deg);
}
