@charset "utf-8";

main {
	display: flex;
}



/* 見出し文字 */
#region h2, .tagstitle{
	display: flex;
	flex-direction: column;
	align-items: center;
}
#jpnmap h2{
	border-bottom: 2px solid #2f94ca;
}
.tagstitle h2, .tagstitle select{
	width: 100%;
}
.tagstitle select{
	border: 2px solid #2f94ca;
	border-radius: 1000px;
}


/* ハッシュタグから探す */
#tagWrap, #tagListBtn{
	position: relative;
}
#tagListBtn{
	display: inline-block;
	border-radius: 1000px;
	text-align: center;
	color: #fff;
	background: #2f94ca;
	z-index: 999;
}
#tagListBtn::after{
	content: '＋ タグ一覧';
	display: block;
}
#tagList{
	position: absolute;
	display: none;
	border: 1px solid #2f94ca;
	background: #f1f0f0;
	z-index: 998;
	transition: all 0.4s;
}
#tagList form{
	overflow-y: auto;
}
#tagList form ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
#tagList form ul li{
	display: inline-block;
}
#tagList form ul li label{
	display: flex;
	color: #006ba4;
}
#tagList form ul label:hover{
	text-decoration: underline;
}

/* ハッシュタグリスト展開時 */
#tagcheck:checked ~ #tagListBtn::after{
	content: 'ー 閉じる';
}
#tagcheck:checked ~ #tagList{
	display: block;
}



/* 地域から探す */
#regWrap {
	display: flex;
	flex-direction: column;
}

#regWrap div a {
	position: relative;
	border-radius: 0 1000px 1000px 0;
	list-style: none;
	cursor: pointer;
	background: #eaeaea;
	overflow-X: hidden;
	z-index: 8;
}
#regWrap div{
	display: flex;
  flex-direction: column;
	width: 100%;
}

#regWrap div a p {
	position: relative;
	color: #000;
	z-index: 10;
}

#regWrap div a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 10px;
	height: 100%;
	z-index: 9;
}

#regWrap div a:nth-child(1)::before {	background: #43B149; }
#regWrap div a:nth-child(2)::before {	background: #F0844A; }
#regWrap div a:nth-child(3)::before {	background: #69A3D8; }
#regWrap div a:nth-child(4)::before {	background: #FAC03D; }
#regWrap div a:nth-child(5)::before {	background: #A59ACA; }
#regWrap div a:nth-child(6)::before {	background: #EE86A8; }
#regWrap div a:nth-child(7)::before {	background: #2EB6AA; }
#regWrap div a:nth-child(8)::before {	background: #EF856D; }

/* マウスオーバー時 */
#regWrap div a::before,
#regWrap div a p {
	transition: all 0.4s;
}

#regWrap div a:hover::before {
	width: 100%;
}

#regWrap div a:hover p {
	color: #fff;
}


/* ケーブルテレビ局から探す */
#searchComp select, #searchGenre select, #searchUse select{
	cursor: pointer;
}


/* ジャンル・用途から探す */
.tagswrap{
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}
.tagswrap label{
	cursor: pointer;
	color: #002060;
	transition: all 0.1s;
}
.tagswrap label:hover{
	color: #3aadeb;
}



/* 地図エリア */
#japanmap div {
	position: relative;
}

#japanmap div img {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

#japanmap div svg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-height: 100%;
	box-sizing: border-box;
}

#japanmap div svg a {
	transition: all 0.1s;
}

#japanmap div svg a:hover {
	opacity: 0.5;
}


#jpnmap h2{
	position: relative;
}
#jpnmap h2::after{
	content: '地図を選択すると、その地域の作品情報が表示されます';
	position: absolute;
	font-weight: 500;
	color: #555;
}





/* PCサイズ */
@media screen and (min-width: 1025px) {

	html{
		height: auto;
	}

	main{
		margin: 0;
		padding: 50px 0 20px 0;
		/* height: calc(100vh - 108.5px); */
		min-height: calc(100vh - 108.5px);
	}

	/* 高さの調整 */
	#region {
		/* 上マージン、キーワード、ハッシュタグ(上マージン込み)、プラスアルファの高さを減算 */
		height: calc(100vh - (40px + 64.68px + 50px + 70.51px + 50px + 5px));
	}

	#region details {
		/* 見出しの高さを減算 */
		height: calc(100% - 18.4px);
	}

	#regWrap {
		/* 上マージンと開閉ボタンの高さを減算 */
		height: calc(100% - 22.08px - 5px);

		margin-top: 5px;
		padding-right: 15px;
	}


	main section {
		margin-left: 50px;
	}

	main section:first-child {
		margin-left: 0;
	}

	/* サイズ調整 */
	main section:nth-child(1) {
		width: 40%;
	}

	main section:nth-child(2) {
		width: 60%;
		max-height: 100%;
	}

	/* main section:nth-child(3) {
		width: 17.5%;
	} */


	/* 「～から探す」の共通設定 */
	.underarrow {
		font-size: 1.2rem;
	}


	/* 見出し文字の共通設定 */
	#keyword h2, .tagstitle h2{
		margin-bottom: 5px;
	}
	#keyword h2, .tagstitle h2, #jpnmap h2, .puPlace{
		font-size: 1.1rem;
	}
	.tagstitle, #jpnmap h2{
		padding-bottom: 3px;
	}
	.tagstitle{
		margin-top: 35px;
	}
	#keysearch, .tagstitle select{
		padding: 8px 8px 8px 12px;
	}



	/* ヘッダー */
	#operationArea{
		display: flex;
	}



	#leftclm{
		height: fit-content;
		padding-bottom: 30px;
	}
	/* キーワード */
	#region, #hashtag {
		margin-top: 40px;
	}
	#keysearch{
		font-size: 1rem;
	}
	#keyword form div i{
		padding: 10px 30px 10px 25px;
	}



	/* ハッシュタグから探す */
	#tagWrap{
		margin-top: 5px;
	}
	#tagListBtn{
		width: 100%;
		padding: 8px 30px;
		font-size: 1.1rem;
	}
	#tagListBtn::after{
		width: 94px;
	}
	#tagList{
		width: 100%;
		padding: 34.24px 15px 15px 15px;
		border-radius: 0 0 10px 10px;
		transform: translateY(-17.12px);
	}
	#tagList form{
		max-height: 50vh;
	}
	#tagList form ul{
		/* maginとスクロールバーの横幅*2を減算 */
		transform: translate(-16px, -10px);
	}
	#tagList form ul li{
		margin: 15px 0 0 15px;
	}



	/* ジャンル・用途から探す */
	.tagswrap{
		margin-top: 10px;
		row-gap: 10px;
		column-gap: 20px;
	}
	.tagswrap label{
		font-size: 1.1rem;
	}
	.tagswrap label:first-child{
		margin-left: 0;
	}



	/* 日本地図 */
	#jpnmap{
		max-width: 100%;
		max-height: 100%;
		width: 100%;
		height: 100%;
	}
	#jpnmap h2{
		margin-bottom: 50px;
	}
	#jpnmap h2::after{
		bottom: -25px;
		left: 20px;
		font-size: 0.95rem;
	}
	#jpnmap div{
		max-height: calc(100% - 76.68px);
		/* height: 100%; */
		height: calc(374px - 76.74px);
	}
}





/* スマホ・タブレットサイズ */
@media screen and (max-width: 1024px) {

	main{
		justify-content: center;
		margin-bottom: 50px;
	}



	/* 見出し文字の共通設定 */
	#keyword h2,
	.tagstitle,
	#jpnmap h2 {
		font-size: 1.3rem;
	}

	#keyword h2,
	#region h2 {
		margin-bottom: 5px;
	}

	/* .tagstitle {
		margin-bottom: 10px;
	} */
	.tagstitle h2, #jpnmap h2{
		padding-bottom: 5px;
	}
	.tagstitle select{
		padding: 10px 20px;
	}



	/* ヘッダー */
	#companylogo{
		margin-bottom: 7px;
	}



	/* キーワード */
	#region {
		display: none;
	}

	/* ジャンル・用途から探す */
	.tagstitle, #japanmap {
		margin-top: 40px;
	}
	.tagswrap{
		column-gap: 20px;
		padding: 0 10px;
	}
	::-webkit-full-page-media, :future, :root .tagswrap{
		column-gap: 0;
	}
	::-webkit-full-page-media, :future, :root .tagswrap label{
		margin: 5px 10px;
	}
	.tagswrap:nth-child(2){
		margin-top: 15px;
	}
	.tagswrap label{
		margin-top: 5px;
		font-size: 1.3rem;
	}



	/* 地図から探す */
	.tagstitle{
		/* border: 2px solid #2f94ca;
		border-width: 0 0 2px 0; */
	}

	#jpnmap h2{
		margin-bottom: 80px;
	}
	#jpnmap h2::after{
		top: 130%;
		left: 0;
		padding: 0 10px;
		font-size: 1.1rem;
	}
	#jpnmap > div{
		width: 80%;
    margin: 0 auto;
	}
}





/* スマホ専用サイズ ※微調整用 */
@media screen and (max-width: 499px) {

	/* 見出し文字 */
	#keyword h2, .tagstitle, #japanmap h2{
		font-size: 1.1rem !important;
	}
	.tagstitle select{
		font-size: 0.9rem;
	}



	/* ジャンル・用途から探す */
	.tagswrap{
		column-gap: 20px;
		row-gap: 5px;
	}
	.tagswrap:nth-child(2){
		margin-top: 20px;
	}
	.tagswrap label{
		margin-top: 3px;
		font-size: 1rem;
	}



	/* 地図 */
	#japanmap>div {
		width: 100%;
	}
	#jpnmap h2{
		margin-bottom: 60px;
	}
	#jpnmap h2::after{
		font-size: 0.85rem;
	}
	.tagstitle::after{
		bottom: -170%;
		font-size: 0.9rem;
	}
}