@import url('https://fonts.googleapis.com/css?family=Dosis:200');


html,
body {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

body{
      overflow: auto; 
	  margin:0 auto;
	  max-width: 100%;
	  background: url(../images/GameBg_stone.jpg);
}
main .wrap{
	margin:0 auto;
	width:100%;
}
img{
    max-width: 100%;
    height: auto;
}


/*********************************
loader
*********************************/
#loader {
	width: 100%;
	height: 100%;
	margin: 0;
	background: #333;/*Loaderの背景色としたいものを指定*/
	opacity: 1.0;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10000;/*一番前面に出るように（今回はbxSlidrの矢印が9999だったのでそれを超えるようにしました）*/
	
	
	display:none;/*読み込みエラーの修正のため一時配置*/
}
#loader img {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -18px;/*Loaderの画像を縦方向中央に表示させるため、画像の高さの半分の18pxだけ上に移動*/
	margin-left: -18px;/*同様に画像の幅の半分の18pxだけ左に移動*/
}
/*********************************
loader
*************** END *************/







main#mainArea{
	margin:95px 0 0px 0;
	padding-bottom:120px;


}
@media only screen and (min-width: 750px) {/* PC用 */
main#mainArea {
  margin:0px 0 0px 0;
}
}

/*********************************
**********************************
ゲームの各ページ
**********************************
*********************************/

.sliderSubject{
	
}
.sliderSubject a h3{
  border-top:1px solid #fff;
}
.sliderSubject a h3,
.sliderChapter a h3{
  text-align: center;
  padding: 20px 0;
  font-size:20px;
  color:#fff;
  border-bottom:1px solid #fff;
}
.sliderSubject a h3 span,
.sliderChapter a h3 span{
	font-size:10px;
}

.sliderSubject div a h3{
	background: url(../images/iconBgGo.svg) center right 50px no-repeat,
				#000;
	color:#aaa;
}
.sliderSubject  div:nth-child(2) a h3{/* 先頭に適用させるが a h3は divの２番目にあるので(2)になる */
	background: #222;
	color:#fff;
}
.sliderChapter div a h3{
	background: url(../images/iconBgGo.svg) center right 50px no-repeat,
				#111;
	color:#ccc;
}
.sliderChapter div:nth-child(2) a h3{
	background: #333;
	color:#fff;
}


@media only screen and (min-width: 920px) {/* PC用 */
section.navArea {
	background: url(../images/BgOver960.png) bottom center no-repeat;
	padding:20px 80px 45px 80px;
	width:960px;
	margin:0px auto;
	display:flex;
}
.subjectArea{
	width:270px;
	margin-right:30px;
}
.chapterArea{
	width:500px;
}

.sliderSubject a h3,
.sliderChapter a h3{
  text-align: center;
  padding: 18px 0;
  font-size:18px;
  color:#fff;
  border:none;
  border-radius:8px;
  margin:0 0 10px 0;
  box-shadow: 0px 0px 2px 2px rgba(255,255,255,0.6) inset;
}
.sliderSubject div a h3{
	background: url(../images/iconBgGo.svg) center right 40px no-repeat,
				#b71c1c;
	color:#000;
}
.sliderSubject div:nth-child(2) a h3{
	background: #e53935;
	color:#fff;
}
.sliderChapter div a h3{
	background: url(../images/iconBgGo.svg) center right 40px no-repeat,
				#111;
	color:#ccc;
}
.sliderChapter div:nth-child(2) a h3{
	background: #333;
	color:#fff;
}

}

.GameArea{
	width:100%;
	max-width:960px;
	padding:0 0 30px 0;
	margin:0px auto;
}

#swiffycontainer{
	width:240px;
	height: 150px;
	margin:20px auto 0px auto;
}
@media only screen and (min-width: 320px) {/* PC用 */
#swiffycontainer{
	width:320px;
	height: 200px;
}
}
@media only screen and (min-width: 360px) {/* PC用 */
#swiffycontainer{
	width:360px;
	height: 225px;
}
}
@media only screen and (min-width: 400px) {/* PC用 */
#swiffycontainer{
	width:400px;
	height: 250px;
}
}
@media only screen and (min-width: 440px) {/* PC用 */
#swiffycontainer{
	width:440px;
	height: 275px;
}
}
@media only screen and (min-width: 480px) {/* PC用 */
#swiffycontainer{
	width:480px;
	height: 300px;
}
}
@media only screen and (min-width: 560px) {/* PC用 */
#swiffycontainer{
	width:560px;
	height: 350px;
}
}
@media only screen and (min-width: 640px) {/* PC用 */
#swiffycontainer{
	width:640px;
	height: 400px;
}
}
@media only screen and (min-width: 720px) {/* PC用 */
#swiffycontainer{
	width:720px;
	height: 450px;
}
}
@media only screen and (min-width: 768px) {/* PC用 */
#swiffycontainer{
	width:768px;
	height: 480px;
}
}
@media only screen and (min-width: 800px) {/* PC用 */
#swiffycontainer{
	width:800px;
	height: 500px;
}
}
@media only screen and (min-width: 880px) {/* PC用 */
#swiffycontainer{
	width:880px;
	height: 550px;
}
}
@media only screen and (min-width: 960px) {/* PC用 */
#swiffycontainer{
	width:960px;
	height: 600px;
}

}





/*********************************
**********************************
選択ページ
**********************************
*********************************/
main.selectPageSS,
main.selectPageSC,
main.selectPageE{
	background: #d7d3d3;	
}

main.selectPageSS .sliderSubject div a h3,
main.selectPageSC .sliderSubject div a h3,
main.selectPageE .sliderSubject div a h3{
	text-align: center;
	padding: 25px 0;
	font-size:22px;
	color:#fff;
	border-bottom:1px solid #fff;
	background: url(../images/iconBgGo.svg) center right 50px no-repeat,
				#222;
	color:#aaa;
  
}
main.selectPageSS .sliderSubject div a h3 span,
main.selectPageSC .sliderSubject div a h3 span,
main.selectPageE .sliderSubject div a h3 span{
	font-size:11px;
}

/***********社会ページ用*********/
main.selectPageSS .sliderSubject div:nth-child(2) a h3{
	background: #e53935;
	color:#fff;
}
/***********理科ページ用*********/
main.selectPageSC .sliderSubject div:nth-child(2) a h3{
	background: #FFA000;
	color:#fff;
}
/***********英語ページ用*********/
main.selectPageE .sliderSubject div:nth-child(2) a h3{
	background: #D81B60;
	color:#fff;
}

main .selectArea{
	width:100%;
	max-width:960px;
	margin:0 auto;
	padding: 0 0 100px;
	margin-bottom: -60px;	
}

ul.selectNavi{
	padding: 0 5%;
	margin-top:20px;
	display:flex;
	flex-direction:column;
	flex-wrap:wrap;
}

ul.selectNavi li{
	margin: 0 0 10px 0;
	width:100%;
}

ul.selectNavi li a{
	display:flex;
	background: url(../images/iconSelectArrow.svg) bottom right no-repeat,
				#fafafa;
}
ul.selectNavi li a:hover{
	background: url(../images/iconSelectArrowBk.svg) bottom right no-repeat,
				#d32f2f;
	box-shadow:0px 0px 4px 3px rgba(0,0,0,0.2);
	transition:0.3s;
	transform: scale(1.02);

}
ul.selectNavi li a h3{
	padding:22px 10px 0 10px;
	font-size:24px;
	line-height:28px;
	color:#111;
}

ul.selectNavi li a h3 span{
	display:block;
	font-size:14px;
	color:#f44336;
}
ul.selectNavi li a:hover h3{
	color:#fff;
}
ul.selectNavi li a:hover h3 span{
	color:#111;
}

/***********理科ページ用*********/
main.selectPageSC ul.selectNavi li a h3 span{
	color:#FB8C00;
}
main.selectPageSC ul.selectNavi li a:hover{
	background: url(../images/iconSelectArrowBk.svg) bottom right no-repeat,
				#FF6F00;
}
/***********英語ページ用*********/
main.selectPageE ul.selectNavi li a h3{
	padding:25px 10px 30px 20px;
}
main.selectPageE ul.selectNavi li a h3 span{
	color:#E91E63;
}
main.selectPageE ul.selectNavi li a:hover{
	background: url(../images/iconSelectArrowBk.svg) bottom right no-repeat,
				#880E4F;
}

@media only screen and (min-width: 768px) {/* PC用 */
main .selectArea{
	
}
ul.selectNavi{
	flex-direction:row;
	flex-wrap:wrap;
}

ul.selectNavi li{
	width:48%;
	margin:0 1% 15px 1%;
}


}

@media only screen and (min-width: 920px) {/* PC用 */
main.selectPageSS section.navArea,
main.selectPageSC section.navArea,
main.selectPageE section.navArea{
	background: none;
	padding:0px;
	margin:0px auto 50px auto;
	width:100%;
	max-width:960px;
}
main.selectPageSS .subjectArea,
main.selectPageSC .subjectArea,
main.selectPageE .subjectArea{
	width:100%;
	background: url(../images/bgMini_Subject.svg) bottom 5px right no-repeat,
				#111;
	padding:0px 0px 15px 0px;
	margin: 0 5%;
}

main.selectPageSS .sliderSubject div a h3,
main.selectPageSC .sliderSubject div a h3,
main.selectPageE .sliderSubject div a h3{
	text-align: center;
	padding: 30px 0;
	font-size:28px;
	color:#fff;
	border:none;
	border-radius:0px;
	margin:0 0 10px 0;
	box-shadow: 0px 0px 0px 0px;
	background: url(../images/iconBgGo.svg) center right 40px no-repeat,
				#222;
	color:#ccc;
}



}







/*********************************
**********************************
トップページ
**********************************
*********************************/
main.topPage{
	background: #b5b1b1;
	
}


/********bxslider{*************/

.bx-wrapper img {
    width:100%;
    max-height: 380px;
    position: relative;
    vertical-align: bottom;
    object-fit: cover;
}
.topTitle{
    position: relative;
}
.topImageArea{
	margin:-20px 0 0;
}

.curtainImage{
	background: url(../images/Bg_curtain.svg) top center repeat-x;
	height:40px;
	position: relative;
	z-index:60;
	
}



#logoTitle {
    z-index:60;
    position:absolute;
    top:60px;
    width:80%;
    max-width:500px;
    left:0;
    right:0;
    margin: auto;
}

#logoTitle2 {
    z-index:60;
    position:absolute;
    bottom:0px;
    width:200px;
    max-width:500px;
    left:0;
    right:0;
    margin: auto;
}




/*********** 説明部分 ***********/

.textFeatureArea{
	background:#000;
	padding:20px 0 40px;
	width:100%;
	text-align:center;
	border-top: 14px solid #f44336;
}

.textFeatureArea img{
	margin-top:20px;
	width:40%;
	max-width:270px;
}
.textFeatureArea h1{
	font-size:15px;
	color:#eee;
	margin:20px auto;
	padding: 20px 8%;
	line-height:1.3em;
	font-weight:100;
	width:95%;
	max-width:740px;
	border-radius:20px;
	text-align:left;
}

.textFeatureArea p{
	line-height:1.5em;
	font-size:1.2em;
	color:#fff;
	max-width:900px;
	margin:0 auto;
}
.textFeatureArea ul{
	display: flex;
	flex-direction:row;
	flex-wrap:wrap;
	width:100%;
	justify-content:center; /**flexの中央揃え**/
}
.textFeatureArea ul li{
	color:#fff;
	font-size:11px;
	display: inline-block;
	margin:0 10px 10px;	
	width: 150px;
	height:150px;
	padding-top:110px;
	border-radius:50%;
	border:1px solid #fff;
}
.textFeatureArea ul li:nth-child(1){
	background: url(../images/iconTop_smartphone.svg) center center no-repeat;
}
.textFeatureArea ul li:nth-child(2){
	background: url(../images/iconTop_pc.svg) center center no-repeat;
}
.textFeatureArea ul li:nth-child(3){
	background: url(../images/iconTop_score.svg) center center no-repeat;
}
.textFeatureArea ul li:nth-child(4){
	background: url(../images/iconTop_time.svg) center center no-repeat;
}

@media only screen and (min-width: 768px) {/* PC用 */
.textFeatureArea{
	border-top: 20px solid #f44336;
}
.textFeatureArea h1{
	font-size:20px;
	margin:30px auto 20px;
	padding: 25px 40px;
	line-height:30px;
}
.textFeatureArea ul{
	flex-direction:row;
	flex-wrap: wrap;
	width:100%;
	max-width: 900px;
	margin:40px auto 20px auto;
}
.textFeatureArea ul li{
	color:#fff;
	font-size:12px;
	display: inline-block;
	margin:0 10px 10px;	
	width: 170px;
	height:170px;
	padding-top:120px;
	border-radius:50%;
	border:1px solid #fff;
}

}





/*********** 教科選択 ***********/

.topPageSelectArea{
	width:100%;
	max-width:1000px;
	padding:0 0 90px;
	margin:30px auto -60px auto;
	text-align:center;
}
.topPageSelectArea h3{
	font-size:30px;
	margin-bottom:30px;
	color:#999;
	font-family: 'Dosis'; 
}

.topPageSelectArea ul{
	padding: 0 4%;
	text-align:left;
	display:flex;
	flex-direction:column;
	flex-wrap:wrap;
}

.topPageSelectArea ul li{
	margin: 0 0 10px 0;
	width:100%;
}


@media only screen and (min-width: 768px) {/* PC用 */
.topPageSelectArea h3{
	font-size:40px;
	margin:40px 0;
}

.topPageSelectArea ul{
	padding: 0 1%;
	flex-direction:row;
	flex-wrap:wrap;
}
.topPageSelectArea ul li{
	width:48%;
	margin:0 1% 10px 1%;
}

}

.topPageSelectArea ul li a{
	display:block;
	background: url(../images/iconSelectArrowL_Bk.svg) bottom right no-repeat,
				url(../images/topPageIcon_history.svg) bottom 10px right 50px no-repeat,
				#e53935;
	padding:25px 20px 20px 20px;
	margin-bottom:10px;
	color:#fff;
}
.topPageSelectArea ul li a:hover{
	background: url(../images/iconSelectArrowBk.svg) bottom right no-repeat,
				#111;
	box-shadow:0px 0px 4px 3px rgba(0,0,0,0.2);
	transition:0.3s;
	transform: scale(1.02);
}

.topPageSelectArea ul li a h2{
	font-size:36px;
	
	margin-bottom:8px;
}
.topPageSelectArea ul li a h2 span{
	font-size:12px;
}
.topPageSelectArea ul li a p{
	font-size:10px;
	display:inline;
	color:#fff;
	padding:2px 10px;
	background: #000;
	border-radius:2px;
	opacity:0.7;
}

.topPageSelectArea ul li:nth-child(1) a{
	background: url(../images/iconSelectArrowL_Bk.svg) bottom right no-repeat,
				url(../images/topPageIcon_history.svg) bottom 10px right 50px no-repeat,
				#e53935;
}
.topPageSelectArea ul li:nth-child(1) a:hover{
	background: url(../images/iconSelectArrowL_W.svg) bottom right no-repeat,
				url(../images/topPageIcon_history.svg) bottom 10px right 50px no-repeat,
				#111;
	color:#ef9a9a;
}
.topPageSelectArea ul li:nth-child(2) a{
	background: url(../images/iconSelectArrowL_Bk.svg) bottom right no-repeat,
				url(../images/topPageIcon_geography.svg) bottom 10px right 50px no-repeat,
				#e53935;
}
.topPageSelectArea ul li:nth-child(2) a:hover{
	background: url(../images/iconSelectArrowL_W.svg) bottom right no-repeat,
				url(../images/topPageIcon_geography.svg) bottom 10px right 50px no-repeat,
				#111;
	color:#ef9a9a;
}
.topPageSelectArea ul li:nth-child(3) a{
	background: url(../images/iconSelectArrowL_Bk.svg) bottom right no-repeat,
				url(../images/topPageIcon_civics.svg) bottom 10px right 50px no-repeat,
				#e53935;
}
.topPageSelectArea ul li:nth-child(3) a:hover{
	background: url(../images/iconSelectArrowL_W.svg) bottom right no-repeat,
				url(../images/topPageIcon_civics.svg) bottom 10px right 50px no-repeat,
				#111;
	color:#ef9a9a;
}
.topPageSelectArea ul li:nth-child(4) a{
	background: url(../images/iconSelectArrowL_Bk.svg) bottom right no-repeat,
				url(../images/topPageIcon_science.svg) bottom 10px right 50px no-repeat,
				#FB8C00;
}
.topPageSelectArea ul li:nth-child(4) a:hover{
	background: url(../images/iconSelectArrowL_W.svg) bottom right no-repeat,
				url(../images/topPageIcon_science.svg) bottom 10px right 50px no-repeat,
				#111;
	color:#FFE082;
}
.topPageSelectArea ul li:nth-child(5) a{
	background: url(../images/iconSelectArrowL_Bk.svg) bottom right no-repeat,
				url(../images/topPageIcon_english1.svg) bottom 10px right 35px no-repeat,
				#E91E63;
}
.topPageSelectArea ul li:nth-child(5) a:hover{
	background: url(../images/iconSelectArrowL_W.svg) bottom right no-repeat,
				url(../images/topPageIcon_english1.svg) bottom 10px right 35px no-repeat,
				#111;
	color:#F48FB1;
}
.topPageSelectArea ul li:nth-child(6) a{
	background: url(../images/iconSelectArrowL_Bk.svg) bottom right no-repeat,
				url(../images/topPageIcon_english2.svg) bottom 10px right 35px no-repeat,
				#E91E63;
}
.topPageSelectArea ul li:nth-child(6) a:hover{
	background: url(../images/iconSelectArrowL_W.svg) bottom right no-repeat,
				url(../images/topPageIcon_english2.svg) bottom 10px right 35px no-repeat,
				#111;
	color:#F48FB1;
}
.topPageSelectArea ul li:nth-child(7) a{
	background: url(../images/iconSelectArrowL_Bk.svg) bottom right no-repeat,
				url(../images/topPageIcon_english3.svg) bottom 10px right 35px no-repeat,
				#E91E63;
}
.topPageSelectArea ul li:nth-child(7) a:hover{
	background: url(../images/iconSelectArrowL_W.svg) bottom right no-repeat,
				url(../images/topPageIcon_english3.svg) bottom 10px right 35px no-repeat,
				#111;
	color:#F48FB1;
}


/* ========================================
   Quiz catalog
   ======================================== */

main.topPage .topPageSelectArea {
    --quiz-primary: #6b3f30;
    --quiz-secondary: #28243c;
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 16px 80px;
    font-family: "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    text-align: left;
}

main.topPage .quiz-catalog-heading {
    margin-bottom: 25px;
    text-align: center;
}

main.topPage .quiz-catalog-heading h2 {
    color: #20313b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

main.topPage .quiz-catalog-heading p {
    margin-top: 6px;
    color: #52635e;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
}

main.topPage .quiz-subject-group {
    --subject-accent: #0b6565;
    margin-bottom: 30px;
}

main.topPage .quiz-subject-group--social {
    --subject-accent: #a14d3b;
}

main.topPage .quiz-subject-group--science {
    --subject-accent: #806015;
}

main.topPage .topPageSelectArea .quiz-subject-bar {
    position: relative;
    margin: 0 0 18px;
    padding: 0;
    background: #142c32;
    color: #fff;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
}

main.topPage .quiz-subject-bar::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-top: 8px solid #142c32;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

/* Shared mode labels and the supplied navigation arrow */
main.topPage .quiz-mode-list {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

main.topPage .quiz-mode-badge {
    display: inline-block;
    flex: 0 0 auto;
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

main.topPage .quiz-mode-badge--primary {
    background: var(--quiz-primary);
}

main.topPage .quiz-mode-badge--secondary {
    background: var(--quiz-secondary);
}

main.topPage .quiz-mode-plus {
    color: #182735;
    font-size: 11px;
    font-weight: 700;
}

main.topPage .quiz-link-arrow {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

main.topPage .quiz-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Category spacing and gentle background differences */
main.topPage .quiz-course-category {
    --course-accent: #006368;
    --course-paper: #fffcf5;
    --course-art: #edf0e7;
    margin: 0;
}

main.topPage .quiz-course-category.vistadia-quiz-grid {
    margin: 0;
}

main.topPage .quiz-course-category + .quiz-course-category {
    margin-top: 30px;
}

main.topPage .quiz-course-category--exam {
    --course-accent: #a6492c;
    --course-paper: #fffaf5;
    --course-art: #f1e9dc;
}

main.topPage .quiz-course-category--university {
    --course-accent: #594664;
    --course-paper: #fbf9fe;
    --course-art: #eee9f3;
}

main.topPage .quiz-course-category--eiken {
    --course-accent: #41653f;
    --course-paper: #fbfcf6;
    --course-art: #e8eee2;
}

main.topPage .quiz-course-category--toeic {
    --course-accent: #315875;
    --course-paper: #f9fbfe;
    --course-art: #e7edf4;
}

main.topPage .quiz-course-category--social {
    --course-accent: #934638;
    --course-paper: #fffaf6;
    --course-art: #f2e6df;
}

main.topPage .quiz-course-category--legacy {
    --course-paper: #f9f8f6;
    --course-art: #e9e7e3;
}


/* ========================================
   Featured Vistadia quiz cards
   ======================================== */

main.topPage .vistadia-quiz-grid {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
}

main.topPage .vistadia-quiz-card {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
    min-height: 196px;
    overflow: hidden;
    border: 1px solid #dedfd8;
    border-radius: 18px;
    background: var(--course-paper);
    color: #182735;
    box-shadow: 0 5px 0px rgba(0, 0, 0, 0.15);
    text-align: left;
    text-decoration: none;
    line-height: 1.5;
    touch-action: manipulation;
}

main.topPage .vistadia-quiz-card:focus-visible {
    outline: 3px solid var(--course-accent);
    outline-offset: 4px;
}

main.topPage .vistadia-quiz-card__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 14px 12px 14px 18px;
}

main.topPage .vistadia-quiz-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
}

main.topPage .vistadia-quiz-card__new {
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--course-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

main.topPage .topPageSelectArea .vistadia-quiz-card__title {
    margin: 8px 0 7px;
    color: #182735;
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

main.topPage .vistadia-quiz-card__edition {
    display: inline-block;
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: 3px;
    background: #142c32;
    color: #f4c75a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    vertical-align: middle;
}

main.topPage .vistadia-quiz-card__facts {
    margin: 0;
    color: #26353e;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.55;
}

main.topPage .vistadia-quiz-card__facts strong {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

main.topPage .vistadia-quiz-card__description {
    margin-top: 11px;
    color: #20313b;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.55;
}

main.topPage .vistadia-quiz-card__media {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    padding: 14px 10px 10px;
    background: var(--course-art);
}

main.topPage .vistadia-quiz-card__image {
    display: block;
    width: 100%;
    max-width: 148px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

main.topPage .vistadia-quiz-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 148px;
}

/* ========================================
   Compact legacy quizzes
   ======================================== */

main.topPage .topPageSelectArea .quiz-course-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

main.topPage .topPageSelectArea .quiz-course-grid > li {
    width: auto;
    min-width: 0;
    margin: 0;
}

/* Specificity keeps the old game's hover and icon rules from applying. */
main.topPage .topPageSelectArea .quiz-course-grid .quiz-course-card {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
    min-height: 80px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dedfd8;
    border-radius: 13px;
    background: var(--course-paper);
    color: #182735;
    box-shadow: 0 5px 0px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    line-height: 1.4;
    transform: none;
    transition: none;
    touch-action: manipulation;
}

main.topPage .topPageSelectArea .quiz-course-card:focus-visible {
    outline: 3px solid var(--subject-accent);
    outline-offset: 3px;
}

main.topPage .quiz-course-card__copy {
    min-width: 0;
    padding: 10px 12px 10px 18px;
}

main.topPage .topPageSelectArea .quiz-course-card__eyebrow {
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #26353e;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 1;
}

main.topPage .topPageSelectArea .quiz-course-card__title {
    margin: 4px 0 0;
    color: #20313b;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

main.topPage .topPageSelectArea .quiz-course-card__facts {
    display: block;
    margin: 4px 0 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #626766;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.55;
    opacity: 1;
}

main.topPage .quiz-course-card__facts strong {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

main.topPage .quiz-course-card__aside {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 10px 10px 10px 14px;
    background: var(--course-art);
}

main.topPage .quiz-course-card__aside .quiz-link-arrow {
    align-self: flex-end;
}

/* Narrow phones and tablet layouts */
@media only screen and (max-width: 359px) {
    main.topPage .topPageSelectArea {
        padding-left: 12px;
        padding-right: 12px;
    }

    main.topPage .topPageSelectArea .vistadia-quiz-card__title {
        font-size: 24px;
    }

    main.topPage .vistadia-quiz-card__copy {
        padding-left: 14px;
        padding-right: 10px;
    }

    main.topPage .vistadia-quiz-card__facts {
        font-size: 10px;
    }

    main.topPage .topPageSelectArea .quiz-course-card__facts {
        font-size: 10px;
    }

    main.topPage .vistadia-quiz-card__facts strong {
        font-size: 12px;
    }

    main.topPage .quiz-course-card__facts strong {
        font-size: 12px;
    }

    main.topPage .vistadia-quiz-card__media {
        padding-left: 9px;
        padding-right: 9px;
    }

    main.topPage .quiz-course-card__copy {
        padding-left: 14px;
        padding-right: 10px;
    }

    main.topPage .topPageSelectArea .quiz-course-card__title {
        font-size: 16px;
    }
}

@media only screen and (min-width: 768px) {
    main.topPage .topPageSelectArea {
        padding: 40px 28px 90px;
    }

    main.topPage .vistadia-quiz-grid,
    main.topPage .topPageSelectArea .quiz-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    main.topPage .topPageSelectArea .quiz-course-grid {
        gap: 12px;
    }
}

/* Supporting title words follow the surrounding font size. */
main.topPage .quiz-title-small {
    font-size: 0.85em;
}

/* Edition labels use the colors of their course category. */
main.topPage .vistadia-quiz-card__edition--essential {
    color: #ffd2a5;
}

main.topPage .vistadia-quiz-card__edition--complete {
    color: #ffbcab;
}

main.topPage .vistadia-quiz-card__edition--foundation {
    color: #e1c9fa;
}

main.topPage .vistadia-quiz-card__edition--standard {
    color: #bdd2ff;
}
