/* 
*　おたり移住navi
*　　移住アドバイザー
*/

* {
	color: #370000;
}
div#main {
	margin: 0 auto;
	max-width: 1396px;
	width: 95%;
}
h2 {
	font-size: 4rem;
	font-weight: normal;
	/*margin: 0 0 20px;*/
	margin: 40px 0;
	text-align: center;
}
h2.left {
    text-align: left;
}
h2 img {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 272px;
	width: 60%;
}
p {
	font-size: 2rem; /*2.7rem;*/
	line-height: 2; /*1.4815;*/
	margin: 0;
}
h3 {
    border-bottom: 2px dashed;
    display: block;
	font-size: 4rem;
	font-weight: normal;
	/*margin: 0 0 100px;*/
	margin: 50px 0;
	/*text-align: center;*/
}
h3 span {
    display: inline-block;
    font-size: 0.6em;
    margin: 0.4em 0 0 1em;
    vertical-align: top;
}
h4 {
	color: white;
	font-size: 2rem; /*2.7rem;*/
	font-weight: bold;
    line-height: 71px;
	/*margin: 0;*/
	margin: 0 1em 0 0;
}

/* 相談しよう */
div#intro {
    background-color: white;
	/*background: url(../img/adviser/baloon1.png) no-repeat center center;
	height: 427px;
	margin: 80px auto 0;*/
	margin: 80px auto;
	overflow: hidden;
	/*width: 927px;*/
}
div#intro h2 {
	/*margin: 38px 0 0;*/
	margin: 38px 0 20px;
}
#intro img {
	display: block;
	height: auto;
	/*margin: -13px auto 0;*/
	margin: 0 auto;
	/*max-width: 520px;*/
	max-width: 960px;
	width: 100%;
}
.note {
    font-size: 1.6rem;
    margin: 0.5em 0;
    text-align: center;
}

/* 移住アドバイザーとは */
div#about {
	/*background: url(../img/adviser/baloon2.png) no-repeat center center;
	background-size: 100% 100%;*/
	height: 400px; /*363px;*/
	/*margin-top: -40px;
	overflow: hidden;
	width: 641px;*/
    margin: 0 69px;
}
input#check_open_about:checked ~ div#about {
	/*background-image: url(../img/adviser/baloon4.png);*/
	height: auto;
}
input#check_open_about {
	display: none;
}
div#about h2 {
	margin-top: 44px;
}
#about_detail {
	/*margin: 54px;*/
	margin: 54px 0;
	transform: scaley(0);
	transform-origin: center top;
	transition: all 0.3s;
}
#about #about_detail p {
	/*line-height: 1;*/
	margin: 0 auto 1em;
	/*width: 19em;*/
}
input#check_open_about:checked ~ div#about #about_detail {
    margin-top: 20px;
	transform: scaleY(1);
}
label#open_about {
	background: url(../img/adviser/icon_open.png) no-repeat center center;
	cursor: pointer;
	display: block;
	height: 28px;
	margin: 20px auto;
	width: 20px;
}
input#check_open_about:checked ~ div#about label#open_about {
	display: none;
}
label#close_about {
	background: url(../img/adviser/icon_close.png) no-repeat center center;
	cursor: pointer;
	display: none;
	height: 14px;
	margin: 39px auto 45px;
	width: 20px;
}
input#check_open_about:checked ~ div#about label#close_about {
	display: block;
}

/* 相談の流れ */
div#four_seasons {
	/*background: url(../img/adviser/baloon3.png) no-repeat center center;
	float: right;
	height: 735px;
	margin: -52px 0 214px;
	width: 910px;*/
    background-color: white;
    margin: 80px 0 100px;
    overflow: hidden;
    padding: 0 70px 40px;
}
#four_seasons h2 {
	margin: 68px auto 10px;
}
#four_seasons ul {
    counter-reset: number 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 2rem; /*2.7rem;*/
    justify-content: space-between;
    line-height: 1.5;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
#four_seasons ul li {
    display: block;
    width: 30%;
}
#four_seasons ul li::before {
    counter-increment: number 1;
    content: counter(number) ".";
    display: block;
    font-size: 1.4em;
    font-weight: bold;
}
#four_seasons dl {
	font-size: 2.7rem;
	line-height: 1.4815;
	margin: 0 auto 1em;
	width: 25.4em;
}
#four_seasons dl dd {
	margin: 0;
}
#four_seasons p {
	margin: 0 auto;
	width: 100%; /*25.4em;*/
}

/* 得意分野アイコン */
#introduction {
    background-color: white;
    clear: both;
    overflow: hidden;
}
#legend {
	align-items: flex-start;
	background-color: rgba(7, 7, 7, 0.3);
	border-radius: 36px;
	display: flex;
	flex-wrap: wrap;
    justify-content: center;
	/*margin-bottom: 100px;*/
	margin: 0 auto;
    max-width: 1230px;
	/*padding: 25px 49px;*/
	padding: 25px;
    width: calc(100% - 90px);
}
#introduction ul {
	align-content: space-between;
	display: flex;
	flex-wrap: wrap;
    font-size: 2rem;
	list-style: none;
	/*margin: 0 0 0 50px;*/
	margin: 0;
    max-width: 1028px;
	padding: 0;
	/*width: calc(100% - 16em - 50px);*/
	width: calc(100% - 8em);
}
#introduction ul li {
	align-items: center;
	display: flex;
	margin-bottom: 10px;
}
#introduction ul li:last-of-type {
	margin-top: 10px;
}
#introduction ul li::after {
	color: white;
	content: attr(data-cat);
	font-size: 2rem; /*1.8rem;*/
	margin-right: 1em;
}

/* アドバイザー */
.h-wrapper {
    display: flex;
    justify-content: flex-start;
    padding: 0 36px;
}
#about .h-wrapper {
    padding: 0;
}
.member_list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /*space-between;*/
}
.member {
    margin: 0 1px 50px;
	/*margin-bottom: 100px;
	width: 449px;*/
    width: 362px;
}
.member label {
	cursor: pointer;
	display: block;
	margin: 0 auto;
	width: 299px;
}
p.name {
	border-bottom: 2px solid white;
    font-size: 3.5rem; /*2.7rem;*/
    line-height: 1;
	/*margin: 20px 0 10px;*/
	margin: 20px 0 0;
	padding-bottom: 10px;
	text-align: center;
}
dl.specialty dt {
	font-size: 2rem; /*2.7rem;*/
    margin: 0 0 16px;
	text-align: center;
}
dl.specialty dd {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
	margin: 0;
	/*text-align: center;*/
}
dl.specialty dd img {
	margin: 0 10px;
}
/*dl.specialty dd img:first-child {
	margin-left: 0;
}
dl.specialty dd img:last-child {
	margin-right: 0;
}*/

/* 詳細 */
#member_detail {
	height: 0;
	left: 0;
	position: fixed;
	top: 0;
	width: 0;
	z-index: 2;
}
input[name="member"] {
	display: none;
}
#btn_member_hidden {
	background: rgba(0, 0, 0, 0.4);
	cursor: pointer;
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
#detail_inner {
	height: 100vh;
	left: 0;
	overflow: hidden;
	position: relative;
	top: 0;
	width: 100vw;
}
input#member_hidden:checked ~ #detail_inner {
	height: 0;
	transition: all 0.3s;
}
.pop_inner {
	background: url(../img/adviser/frame_detail.png) no-repeat center center;
	background-size: 100% 100%;
	height: calc(100% - 220px);
	overflow: hidden;
	padding: 110px;
	width: calc(100% - 220px);
}
.member_pop {
	height: 100%;
	left: calc((100% - 1225px) / 2);
	opacity: 0;
	position: absolute;
	top: 0;
	transition: all 0.3s;
	width: 1225px;
}
.member_pop label {
	pointer-events: none;
}
input#yoshio_asami:checked ~ div#detail_inner div.member_pop.yoshio_asami,
input#fuyuki_obinata:checked ~ div#detail_inner div.member_pop.fuyuki_obinata,
input#mike_berbick:checked ~ div#detail_inner div.member_pop.mike_berbick,
input#mayumi_fujihara:checked ~ div#detail_inner div.member_pop.mayumi_fujihara,
input#satoko_maeda:checked ~ div#detail_inner div.member_pop.satoko_maeda,
input#tamotsu_aizawa:checked ~ div#detail_inner div.member_pop.tamotsu_aizawa,
input#junji_kitamura:checked ~ div#detail_inner div.member_pop.junji_kitamura,
input#nobuo_yoshizawa:checked ~ div#detail_inner div.member_pop.nobuo_yoshizawa {
	opacity: 1;
	z-index: 10;
}
input#yoshio_asami:checked ~ div#detail_inner div.member_pop.yoshio_asami label,
input#fuyuki_obinata:checked ~ div#detail_inner div.member_pop.fuyuki_obinata label,
input#mike_berbick:checked ~ div#detail_inner div.member_pop.mike_berbick label,
input#mayumi_fujihara:checked ~ div#detail_inner div.member_pop.mayumi_fujihara label,
input#satoko_maeda:checked ~ div#detail_inner div.member_pop.satoko_maeda label,
input#tamotsu_aizawa:checked ~ div#detail_inner div.member_pop.tamotsu_aizawa label,
input#junji_kitamura:checked ~ div#detail_inner div.member_pop.junji_kitamura label,
input#nobuo_yoshizawa:checked ~ div#detail_inner div.member_pop.nobuo_yoshizawa label {
	pointer-events: auto;
}
.member_pop label {
	cursor: pointer;
	display: block;
	pointer-events: none;
	position: absolute;
}
.member_pop label:not([for]) {
    opacity: 0;
    pointer-events: none !important;
}
.btn_left {
	right: calc(100% + 121px);
	top: calc(50% - 70px);
}
.btn_right {
	left: calc(100% + 121px);
	top: calc(50% - 70px);
}
.pop_inner label[for="member_hidden"] {
	right: 80px;
	top: 80px;
}
.btn_left img,
.btn_right img {
	display: block;
	height: auto;
	width: 70px;
}
h5 {
	border-bottom: 1px solid #5F6439;
	font-size: 4rem;
	font-weight: normal;
	margin: 0 0 80px;
	padding-bottom: 10px;
}
div.adviser {
	height: calc(100% - 4rem - 90px);
	overflow-y: auto;
}
.pop_inner .adviser > img {
	float: left;
	margin-right: 80px;
}
.pop_inner p.name {
	font-size: 4rem;
	margin: 0;
	padding: 0;
	text-align: left;
}
.pop_inner dl.specialty {
	margin: 0;
}
.pop_inner dl.specialty dt {
	font-size: 1.8rem;
	margin: 80px 0 30px;
	text-align: left;
}
.pop_inner dl.specialty dd {
	text-align: left;
}
dl.profile {
	clear: both;
	font-size: 0;
	height: calc(100% - 4rem - 702px);
	line-height: 2;
	margin: 0;
	padding-top: 82px;
}
dl.profile dt {
	display: inline-block;
	font-size: 1.8rem;
	margin-right: 2em;
	width: 6em;
}
dl.profile dt::before {
	content: "●";
}
dl.profile dd {
	display: inline-block;
	font-size: 1.8rem;
	margin: 0;
	vertical-align: top;
	width: calc(100% - 8em);
}

/* media queries */
@media (max-width: 1700px) {
	.member_pop {
		left: calc(175px / 2);
		width: calc(100% - 175px);
	}
	.btn_left {
		left: -58px;
		right: autl;
		top: calc(50% - 35px);
	}
	.btn_right {
		left: auto;
		right: -58px;
		top: calc(50% - 35px);
	}
	.btn_left img,
	.btn_right img {
		width: 35px;
	}
	.pop_inner label[for="member_hidden"] {
		top: 60px;
	}
}
@media (max-width: 1460px) {
	.member_list {
		margin: 0 auto;
		max-width: 1200px;
	}
	.pop_inner {
		height: calc(100% - 100px);
		padding: 50px;
		width: calc(100% - 100px);
	}
	h5 {
		margin-bottom: 40px;
	}
	.pop_inner .adviser > img {
		display: block;
		float: none;
		height: auto;
		margin: 0;
		max-width: 300px;
		width: 100%;
	}
	.pop_inner dl.specialty dt {
		margin: 40px 0 15px;
	}
	dl.profile {
		padding-top: 40px;
	}
}
@media (max-width: 1200px) {
	/*div#intro,
	div#about,
	div#four_seasons {
		margin-top: 0;
	}*/
}
@media (max-width: 1020px) {
	#legend {
		display: block;
	}
	h4 {
		margin-bottom: 12px;
	}
	#introduction ul {
		margin: 0;
		width: 100%;
	}
}
@media (max-width: 980px) {
	.member_list {
		max-width: 449px;
	}
}
@media (max-width: 975px) {
	/*div#intro {
		background-image: none;
		background-color: #fffedf;
		border-radius: 20px;
		height: auto;
		margin: 0 0 10px;
		width: 100%;
	}*/
}
@media (max-width: 958px) {
	/*div#four_seasons {
		background-image: none;
		background-color: #fffedf;
		border-radius: 20px;
		height: auto;
		margin: 0 0 10px;
		padding-bottom: 30px;
		width: 100%;
	}
	#four_seasons p,
	#four_seasons dl {
		width: calc(100% - 50px);
	}*/
}
@media (max-width: 940px) {
	.pop_inner {
		background-image: none;
		background-color: white;
		border-radius: 40px;
		margin: 20px;
		padding: 30px;
	}
	.pop_inner label[for="member_hidden"] {
		right: 40px;
		top: 40px;
	}
	.pop_inner p.name {
		font-size: 3rem;
		margin-top: 0.5em;
	}
	dl.profile dt {
		display: block;
		line-height: 1.5;
	}
	dl.profile dd {
		line-height: 1.5;
		margin-bottom: 1em;
		width: 100%;
	}
}
@media (max-width: 768px) {
	h2,
	h3 {
		font-size: 3rem;
	}
	p,
	h4,
	#four_seasons dl,
	dl.specialty dt {
		font-size: 1.8rem; /*2rem;*/
	}
    #four_seasons ul {
        font-size: 1.8rem; /*2.4rem;*/
    }
	#introduction ul li::after {
		font-size: 1.4rem;
	}
	.member {
		margin-bottom: 50px;
	}
	.member_pop {
		left: 40px;
		width: calc(100% - 80px);
	}
	.pop_inner {
		height: calc(100% - 80px);
		margin: 20px 0;
		padding: 20px;
		width: calc(100% - 40px);
	}
	.pop_inner dl.specialty dt {
		margin-top: 20px;
	}
	dl.profile {
		padding-top: 20px;
	}
	.btn_left {
		left: -35px;
	}
	.btn_right {
		right: -35px;
	}
	h5 {
		font-size: 3rem;
	}
	dl.profile dt,
	dl.profile dd {
		font-size: 1.6rem;
	}
    #four_seasons ul {
        flex-direction: column;
    }
    #four_seasons ul li {
        margin: 1em 0 0;
        width: 100%;
    }
    .note {
        font-size: 1.2rem;
    }
    div#four_seasons {
        padding: 0 20px 20px;
    }
    p.name {
        font-size: 3rem;
    }
}
@media (max-width: 740px) {
    h3 span {
        display: block;
        margin-left: 0;
    }
}
@media (max-width: 675px) {
	/*div#about {
		background-image: none;
		background-color: #fffedf;
		border-radius: 20px;
		height: 300px;
		margin: 0 0 10px;
		width: 100%;
	}*/
	input#check_open_about:checked ~ div#about {
		background-image: none;
	}
    #about {
        margin: 0 20px;
    }
	/*#about_detail {
		margin: 20px;
	}
	#about p {
		margin: 0 20px;
	}*/
	#about #about_detail p {
		margin: 0 0 1em;
		width: auto;
	}
}
@media (max-width: 600px) {
	.pop_inner p.name {
		margin-top: 1.2em;
		position: relative;
	}
	.pop_inner p.name span {
		display: block;
		font-size: 0.8em;
		left: 0;
		line-height: 1;
		position: absolute;
		top: -0.9em;
	}
	dl.specialty dd img {
		height: auto;
		margin: 0 5px;
		width: 40px;
	}
	h5,
	.pop_inner p.name {
		font-size: 2.4rem;
	}
}
@media (max-width: 520px) {
    .h-wrapper {
        padding: 0 12px;
    }
}
@media (max-width: 480px) {
	h2 {
		font-size: 2.4rem;
	}
	h3 {
		font-size: 2.4rem;
		margin-bottom: 50px;
	}
	div#intro h2 {
		margin: 20px 0 18px;
	}
	p,
	h4,
	#four_seasons dl,
	dl.specialty dt {
		font-size: 1.6rem;
	}
    #four_seasons ul {
        font-size: 1.6rem; /*2rem;*/
    }
    div#about {
        margin: 0 20px;
    }
	#legend {
		padding: 25px;
	}
	#introduction ul li::after {
		font-size: 1.2rem;
	}
	#legend ul li img {
		display: block;
		height: auto;
		min-width: 50px;
		width: 50px;
	}	
	.pop_inner dl.specialty dt {
		font-size: 1.4rem;
	}
	dl.profile dt,
	dl.profile dd {
		font-size: 1.3rem;
	}
}
@media (max-width: 360px) {
    .pop_inner label[for="member_hidden"] {
        right: 20px;
        top: 68px;
    }
}