	
html {
	scroll-behavior: smooth;
}

body {
	 font-family: "Zen Kaku Gothic Antique", sans-serif;
}

/*-------------------------------

	FV

-------------------------------*/

/*---------- 共通パーツ ----------*/
.hs_main .fv_top .fv_box {
	margin: 0 8px;
	background: radial-gradient(circle, #3A5799 1px, transparent 1px);
  background-size: 10px 10px;
	box-shadow: 7px 7px 0 0 rgba(58,85,153,1);
	border: 3px solid black;
	max-width: 1100px;
}

/*---------- 自分にピッタリの職業を見つけよう ----------*/
.hs_main .fv_top .fv_box img {
	width: 100%;
	display: block;
	margin: 10px auto;
}

.hs_main .fv_top .fv_box .fv-img {
	max-width: 420px;
	margin: 10px auto -1.5em auto;
}
.hs_main .fv_top .fv_box h1 {
	text-align: center;
	border: solid 3px #3C5DA8;
	border-radius: 30px 0 30px 0;
	padding: 18px 0 10px 0;
	margin: 8px;
	max-width: 300px;
	background: linear-gradient(60deg, 
	#EEEEff 30%, 
	#ffFFFF 40%, 
	#eeeeff 50%, 
	#ffffff 60%, 
	#EEEEff 70%);
	background-size: 50% 100%;
	background-repeat: no-repeat;
	animation: shine 7s infinite linear;
	background-color: #EEEEff;
}

@keyframes shine {
	0% {
		background-position-x: -50%;
	}
	20% {
		background-position-x: 200%;
	}
	100% {
		background-position-x: 200%;
	}
}

.hs_main .fv_top .fv_box h1 img:nth-child(1) {
	width: 100%;
	max-width: 260px;
}

.hs_main .fv_top .fv_box h1 img:nth-child(2) {
	width: 100%;
	max-width: 175px;
}

.hs_main .fv_top .fv_box .discovery {
	display: flex;
	justify-content: center;
	gap: 10PX;
}

.hs_main .fv_top .fv_box .discovery > p {
	font-size: 20px;
	margin: 0 3px;
	padding: 8px;
	color: #3A5799;
	font-weight: bold;
	background-color: white;
	align-self: center;
}

.hs_main .fv_top .fv_box .discovery a p {
	color: white;
	font-weight: bold;
	font-size: 1em;
	position: absolute;
	top: 0;
	left: 25px;
}

/*---------- GIF関係 ----------*/

.hs_main .fv_top .fv_box .img_box {
	position: relative;
	height: 350px;
	max-width: 350px;
	margin: 0 auto;
} 

.hs_main .fv_top .fv_box .img_box .wood {
	position: absolute;
	top: 0px;
	left: 40px;
	border-radius: 50%;
	object-fit: cover;
	width: 150px;
	height: 150px;
	border: 4px solid black;
}

.hs_main .fv_top .fv_box .img_box .sweat {
	position: absolute;
	top: 0;
	left: -20px;
	width: 25%;
}

.hs_main .fv_top .fv_box .img_box .heavy {
	position: absolute;
	top: 130px;
	right: 0;
	border-radius: 50%;
	width: 150px;
	height: 150px;
	object-fit: cover;
	border: 4px solid black;
}

.hs_main .fv_top .fv_box .img_box .wonder {
	position: absolute;
	top: 80px;
	right: -10px;
	width: 90px;
	z-index: 1;
}

.hs_main .fv_top .fv_box .img_box .guard {
	position: absolute;
	bottom: 0px;
	left: -10px;
	border-radius: 50%;
	width: 150px;
	height: 150px;
	object-fit: cover;
	border: 4px solid black;
}

@media(min-width:340px) {
	.hs_main .fv_top .fv_box h1 {
		margin: 0 auto;
	}
}

@media(min-width:375px) {
	.hs_main .fv_top .fv_box .img_box .guard {
		left: 20px;
	}

	.hs_main .fv_top .fv_box .img_box .wood {
		left: 60px;
	}
}
	@media(min-width:720px) {
		.hs_main .fv_top .fv_box  {
			display: flex;
			flex-flow: row-reverse;
			position: relative;
		}
		
		.hs_main .fv_top .fv_box h1 {
			position: absolute;
			top: 35%;
			left: 5%;
			z-index: 100;
			margin: 0;
			padding: 5px 30px;
		}

		.hs_main .fv_top .fv_box .discovery {
			position: absolute;
			bottom: -45px;
			right: -10px;
			gap: 0;
			z-index: 200;
		}

		.hs_main .fv_top .fv_box .fv-img {
			margin: 0;
			position: relative;
			z-index: 100;
		}

		.hs_main .fv_top .fv_box .discovery > p {
			font-size: 25px;
		}

		.hs_main .fv_top .fv_box .img_box .wood {
			top: -18px;
		}
		
		.hs_main .fv_top .fv_box .img_box .guard {
			left: -20px;
			bottom: -30px;
		}

		.hs_main .fv_top .fv_box .img_box .heavy {
			top: 12px;
			right: -5px;
		}

		.hs_main .fv_top .fv_box .img_box .wonder {
			top: 0;
			width: 70px;
		}

		.hs_main .fv_top .fv_box .img_box .sweat {
			width: 60px;
			left: 8px;

		}
}


@media(min-width:800px) {
	.hs_main .fv_top .fv_box h1 {
		left: 20%;
	}
}

@media(min-width:1000px) {
	.hs_main .fv_top .fv_box .fv-img {
		max-width: 530px;
	}

	.hs_main .fv_top .fv_box .discovery > p {
		font-size: 32px;
	}
	
	.hs_main .fv_top .fv_box .img_box .wood {
		width: 190px;
		height: 190px;
	}


.hs_main .fv_top .fv_box .img_box .heavy {
	width: 190px;
	height: 190px;
	right: 8px;
}

.hs_main .fv_top .fv_box .img_box .guard {
	width: 190px;
	height: 190px;
	bottom: -103px;
}

.hs_main .fv_top .fv_box .img_box .sweat {
	width: 100px;
}

.hs_main .fv_top .fv_box .img_box .wonder {
	width: 120px;
	top: 170px;
	right: 180px;
}
}

@media(min-width:1100px) {
	.hs_main .fv_top .fv_box {
		margin: 2em auto;
	}

	    .hs_main .fv_top .fv_box .discovery {
				bottom: -75px;
			}
}
/*-------------------------------

お知らせ

--------------------------------*/
.topnews {
    max-width: 1100px;
    margin: 0 auto;
}

.topnews .news-box {
    margin: 2em 8px;
    border: 4px solid #3C5DA8;
    border-radius: 30px 0 30px 0;
    font-weight: bold;
    padding: 0;
    max-width: 650px;
    background-color: white;
    height: 80px; 
    overflow: hidden; /* はみ出し部分を隠す */
    position: relative;
}

.topnews .news-box dl {
    margin: 0;
    padding: 0;
    height: 200%; /* 今回はおしらせ3つの為 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    animation: slideUp 10s infinite; /* 3つのアイテムを2秒ずつ表示 */
}

.topnews .news-box dl div {
    height: 50%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25em 1em;
    box-sizing: border-box;
}

.topnews .news-box dt {
    font-size: 22px;
    margin: 0;
    white-space: nowrap;
}

.topnews .news-box dd {
    font-size: 20px;
    margin: 0;
    line-height: 1.2; 
    display: inline-block; 
    width: auto; 
    text-decoration: underline;
    text-decoration-color: black;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

/* アニメーションの定義 */
@keyframes slideUp {
    0%, 45% {
        transform: translateY(0);
    }
    50%,95% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

@media(max-width:699px) {
    .topnews .news-box {
        height: 100px; 
    }
    
    .topnews .news-box dl div {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media(min-width:500px) and (max-width:800px) {
    .topnews .news-box {
        margin: 3em auto; 
    }
}

@media(max-width:1099px) and (min-width:700px) {
    .topnews .news-box {
        margin: 3em auto;
    }
    
    .topnews .news-box dl div {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
}

@media(min-width:1100px) {
    .topnews .news-box {
        position: relative;
        top: -4em;
        margin: 0;
    }
    
    .topnews .news-box dl div {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
}

/*-------------------------------

めくろうワークスの使い方を知りたい方はこちらから！

--------------------------------*/
.howto {
	margin: 0 8px;
}
.howto a {
	text-decoration: none;
	max-width: 1100px;
	margin: 0 auto;
}

.howto a:hover {
	filter: brightness(0.8);
}

.howto a p {
	color: #002270;
	font-weight: bold;
	padding: 20px 0;
	border: 4px solid#3C5DA8;
	border-radius: 100px;
	background-color: #CAF8FF;
	text-align: center;
}

.howto a img {
	display: block;
	width: 98%;
	margin-top: -2em;
	height: 200px;
	object-fit: cover;
	border-radius: 30px;
	border:6px solid #3C5DA8;
}


@media(min-width:600px) {
	.howto a {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.howto a p {
		height: fit-content;
		padding: 20px 50px 20px 20px;
	}

	.howto a img {
		width: 50%;
		border-radius: 30px;
		margin-top: 0;
		margin-left: -3em;
	}
}

@media(min-width:1000px) {
	.howto {
		margin: 2em 0;
	}
	.howto a p {
		font-size: 22px;
		padding:36px 60px 36px 40px;
		flex-grow: 1;
	}

	.howto a img {
		flex-grow: 1;
		margin-left: -5em;
	}
}

/*-------------------------------

検索フォーム 

--------------------------------*/
#search {
	margin: 0 8px;
	max-width: 1100px;
}

#search .search-box {
	position: relative;
}


#search .search-box img {
	display: block;
	margin: 0 auto -1em auto;
}

#search .search-box h1 img {
	display: block;
	width: 220px;
	margin: 0 auto;
	text-align: center;
}

#search .search-box p {
	font-size: 18px;
	color: #3C5DA8;
	font-weight: bold;
	border: 5px solid #3C5DA8;
	border-bottom: 9px solid #3C5DA8;
	border-radius: 30px;
	text-align: center;
	padding: 15px 20px;
	margin-top: -0.5em;
	background-color: white;
}

form {
	background-color: #3C5DA8;
	border-radius: 15px;
	padding: 1em;
}

/*---------- 地図から探す ----------*/
#search form a.map {
	display: flex;
	justify-content: center;
	gap: 1em;
	background-color: #CAF8FF;
	border-radius: 50px;
	width: 100%;
	text-decoration: none;
	padding: 5px 0;
	margin-bottom: 1em;
	align-items: center;
}

#search form a.map p {
	font-weight: bold;
	color: #002270;
	margin: 0;
	font-size: 18px;
}

/*---------- 検索項目のコンテナ ----------*/
.search-items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
	margin-bottom: 1.5em;
}

.search-item {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,0.3);
}

.search-item-button {
	width: 100%;
	padding: 15px;
	background-color: white;
	border: none;
	font-size: 16px;
	font-weight: bold;
	color: #3C5DA8;
	cursor: pointer;
	text-align: left;
	position: relative;
}

.search-item-button:hover {
	background-color: #f8f9ff;
}

.search-item-button::after {
	content: "▼";
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	color: #3C5DA8;
}

.search-item-display {
	padding: 10px 15px;
	background-color: #f0f4ff;
	border-top: 1px solid #e0e8ff;
	min-height: 40px;
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #666;
}

.search-item-display.has-selection {
	color: #3C5DA8;
	font-weight: bold;
}

/*---------- ボタンエリア ----------*/
.btn-box {
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.btn-box button,
.btn-box input {
	flex: 1;
	padding: 15px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
}

.clearbtn {
	background-color: rgba(255,255,255,0.2);
	color: white;
	border: 2px solid white;
}

.submitbtn {
	background-color: #CBF8FF;
	color: #002270;
}

/*---------- ポップアップスタイル（既存のまま保持） ----------*/
.popup {
	width: 70%;
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 20px;
	border: 1px solid #ccc;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	max-height: 80vh;
	overflow-y: auto;
	z-index: 1000; 
	border-radius: 10px;
}

.popup .close-btn {
	position: sticky;
	top: 0;
	float: right;
	cursor: pointer;
	font-weight: bold;
	background: #3C5DA8;
	color: white;
	padding: 5px 10px;
	border: none;
	border-radius: 5px;
	margin-bottom: 10px;
	font-size: 32px;
}

.popup-content {
	clear: both;
}

.popup label {
	display: block;
	margin: 8px 0;
	padding: 5px;
}

.popup label:hover {
	background-color: #f5f5f5;
}

/*---------- MBTIポップアップ専用スタイル ----------*/
.mbti-popup {
	text-align: center;
}

.mbti-popup p span {
	display: inline-block;
}

.mbti-controls {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.mbti-control-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.mbti-control-group label {
	font-weight: bold;
	color: #3C5DA8;
	margin: 0;
	font-size: 12px;
}

.mbti-reel-container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mbti-button {
	width: 50px;
	height: 30px;
	background-color: #3C5DA8;
	color: white;
	border: none;
	font-weight: bold;
	cursor: pointer;
	font-size: 14px;
}

.mbti-button:hover {
	background-color: #2A4580;
}

.mbti-button-up {
	border-radius: 5px 5px 0 0;
}

.mbti-button-down {
	border-radius: 0 0 5px 5px;
}

.reel-input {
	width: 50px;
	height: 60px;
	background: linear-gradient(to bottom, #cccccc, #ffffff, #cccccc);
	border-left: 1px solid #3C5DA8;
	border-right: 1px solid #3C5DA8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: bold;
	font-family: serif;
}

#mbtiname {
	font-weight: bold;
	font-size: 2em;
}
	
/*---------- エラーメッセージ ----------*/
#location-error {
	display: none;
	color: #ff4444;
	background: #fff0f0;
	border: 1px solid #ff4444;
	padding: 10px;
	margin: 10px 0;
	border-radius: 4px;
	font-size: 14px;
}

@media (min-width: 480px) {
	.search-items {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1em;
	}
}


@media (max-width: 479px) {
	.mbti-popup .mbti-controls {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
		margin: 20px 0;
		max-width: 100%;
		justify-items: center;
		flex-wrap: nowrap;
	}
	
	.mbti-popup .mbti-control-group {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		width: 100%;
	}
	
	.mbti-popup .mbti-control-group label {
		font-weight: bold;
		color: #3C5DA8;
		margin: 0;
		font-size: 9px;
		text-align: center;
		line-height: 1.1;
		white-space: nowrap;
	}
	
	.mbti-popup .mbti-button {
		width: 35px;
		height: 22px;
		font-size: 10px;
		background-color: #3C5DA8;
		color: white;
		border: none;
		font-weight: bold;
		cursor: pointer;
	}
	
	.mbti-popup .mbti-button:hover {
		background-color: #2A4580;
	}
	
	.mbti-popup .mbti-button-up {
		border-radius: 5px 5px 0 0;
	}
	
	.mbti-popup .mbti-button-down {
		border-radius: 0 0 5px 5px;
	}
	
	.mbti-popup .reel-input {
		width: 35px;
		height: 45px;
		font-size: 18px;
		background: linear-gradient(to bottom, #cccccc, #ffffff, #cccccc);
		border-left: 1px solid #3C5DA8;
		border-right: 1px solid #3C5DA8;
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: bold;
		font-family: serif;
	}
}


@media (min-width: 480px) and (max-width: 767px) {
	.mbti-popup .mbti-controls {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 15px;
		margin: 20px 0;
		max-width: 100%;
		justify-items: center;
		flex-wrap: nowrap;
	}
	
	.mbti-popup .mbti-control-group {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 5px;
	}
	
	.mbti-popup .mbti-control-group label {
		font-weight: bold;
		color: #3C5DA8;
		margin: 0;
		font-size: 11px;
		text-align: center;
		line-height: 1.2;
	}
	
	.mbti-popup .mbti-button {
		width: 50px;
		height: 30px;
		font-size: 14px;
		background-color: #3C5DA8;
		color: white;
		border: none;
		font-weight: bold;
		cursor: pointer;
	}
	
	.mbti-popup .mbti-button:hover {
		background-color: #2A4580;
	}
	
	.mbti-popup .mbti-button-up {
		border-radius: 5px 5px 0 0;
	}
	
	.mbti-popup .mbti-button-down {
		border-radius: 0 0 5px 5px;
	}
	
	.mbti-popup .reel-input {
		width: 50px;
		height: 60px;
		font-size: 24px;
		background: linear-gradient(to bottom, #cccccc, #ffffff, #cccccc);
		border-left: 1px solid #3C5DA8;
		border-right: 1px solid #3C5DA8;
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: bold;
		font-family: serif;
	}
}

@media (min-width: 768px) {
	form {
		padding: 2em;
	}
	
	.search-item-button {
		font-size: 18px;
		padding: 20px;
	}
	
	.popup {
		width: 50%;
	}
	
	/* デスクトップでは元の2x2レイアウトを維持 */
	.mbti-popup .mbti-controls {
		display: flex;
		justify-content: center;
		gap: 30px;
		margin: 20px 0;
		flex-wrap: wrap;
	}
	
	.mbti-popup .mbti-control-group {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 5px;
	}
	
	.mbti-popup .mbti-control-group label {
		font-weight: bold;
		color: #3C5DA8;
		margin: 0;
		font-size: 12px;
	}
	
	.mbti-popup .mbti-button {
		width: 50px;
		height: 30px;
		font-size: 14px;
		background-color: #3C5DA8;
		color: white;
		border: none;
		font-weight: bold;
		cursor: pointer;
	}
	
	.mbti-popup .mbti-button:hover {
		background-color: #2A4580;
	}
	
	.mbti-popup .mbti-button-up {
		border-radius: 5px 5px 0 0;
	}
	
	.mbti-popup .mbti-button-down {
		border-radius: 0 0 5px 5px;
	}
	
	.mbti-popup .reel-input {
		width: 50px;
		height: 60px;
		font-size: 24px;
		background: linear-gradient(to bottom, #cccccc, #ffffff, #cccccc);
		border-left: 1px solid #3C5DA8;
		border-right: 1px solid #3C5DA8;
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: bold;
		font-family: serif;
	}
}

@media(min-width:1000px) {
	#search .search-box {
		width: 700px;
		margin: 0 auto;
	}

	#search .search-box > img {
		position: absolute;
		right: 20px;
		bottom: 20px;
	}
	
	#search .search-box h1 img {
		width: 330px;
		margin: 3em auto -0.5em auto;
	}
	
	#search .search-box p {
		width: fit-content;
		padding: 12px 54px;
		font-size: 22px;
		margin: 0 auto -1.5em auto;
	}
	
	form {
		padding: 54px;
	}
}

@media(min-width:1100px) {
	#search {
		margin: 0 auto;
	}
	
	form {
		padding: 70px;
	}
}