/*
Theme Name: メイビスケア
*/



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

    ベースグループ
    
    そのサイトの基本設定
    ページによって変更のないもの・どのページでも使用するもの、できるもの

    セレクタの設定

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

:root {
	/* font-weight */
	--fontweight_regular: 400;
	--fontweight_midium: 500;
	--fontweight_semibold: 600;
	--fontweight_bold: 700;
	--fontweight_black: 900;

	/* color */
	--bace_color: #F7F7ED;
	--font_color: #43453D;
	--accent_color: #541F4D;

	--accent_color_blue: #272856;


	--fontsize_12: 0.75em;
	--fontsize_14: 0.875em;
	--fontsize_20: 1.25em;
	--fontsize_21: 1.313em;
	--fontsize_28: 1.75em;
	--fontsize_32: 2em;
	--fontsize_35: 2.188em;
	--fontsize_47: 2.938em;
}

/* html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-H_pc);
} */

body {
	position: relative;
	margin: 0 auto;
	padding: 0;
	color: var(--font_color);
	height: 100%;
	font-family: "Lora", "Zen Old Mincho", serif;
	background: var(--bace_color);
	overflow-x: hidden;
	line-height: 1.6;
	/* background-image: url(common/img/head_line.svg);
	background-position: top;
	background-repeat: no-repeat; */
}

.animation {
	opacity: 0;
}

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

 * imgタグの設定

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

img {
	max-width: 100%;
	height: auto;

	vertical-align: bottom;
	border: none;

	text-decoration: none;

	transition: 0.5s;
}



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

 * aタグの設定

---------------------------------------------- */
a {
	-webkit-transition: 0.5s;
	transition: 0.5s;
}

a.btn {
	border: solid 1px #E3E3E3;
	padding: 14px 28px;
	border-radius: 32px;
	background-color: #fff;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
}

a.btn img {
	margin-left: 56px;
}

a.btn svg {
	vertical-align: middle;
	margin-left: 1rem;
}

.btn:hover {
	transform: scale(0.95);
}

a:hover {
	opacity: 0.80 !important;
	/* 0.0（完全に透明）～1.0（完全に不透明）の範囲で指定する（初期値は1） */
}

/* .news-list a:hover,
nav:not(.sub_link) a:hover {
	background: linear-gradient(transparent 90%, #f5cd1e 10%);
	padding-bottom: .3rem;
} */

a,
a:hover,
a:hover img {
	transition: 0.5s;
}

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

 * PCの時だけ表示・スマホの時だけ表示

---------------------------------------------- */
/* モバイル */
@media not screen and (min-width: 1281px) {
	.pc_only {
		display: none;
	}

	.sp_only {
		display: block;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1281px) {
	.pc_only {
		display: block;
	}

	.sp_only {
		display: none;
	}

}


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

 * hタグの設定

---------------------------------------------- */
main h2 {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: #272856;
}

main h2 span {
	font-size: 1rem;
}

main h2:not(.white):before {
	content: '';
	background-image: url(./common/img/minser-blue.svg);
	width: 21px;
	height: 17px;
	flex-shrink: 0;
}

main h2.white {
	color: #fff;
}

main h2.white:before {
	content: '';
	background-image: url(./common/img/minser-white.svg);
	width: 21px;
	height: 17px;
	flex-shrink: 0;
}

/* main h2:before {
	content: url(./common/img/head.svg);
	vertical-align: middle;
	margin-right: .5rem;
} */

.lead,
h3 {
	color: #272856;
	font-weight: bold;
}

header h3,
footer h3 {
	color: #fff;
}


/* モバイル */
@media not screen and (min-width: 1280px) {
	main h2 {
		font-size: 30px;
		margin-bottom: 38px;
	}

	/* section:not(.news):not(.recruitment) h2,
	.lead {
		margin-bottom: 1.5rem;
	} */

	.lead,
	h3 {
		font-size: 18px;
	}
}

@media not screen and (min-width: 500px) {
	main h2 {
		font-size: 24px;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	main h2 {
		font-size: 48px;
	}

	.lead,
	h3 {
		font-size: 24px;
	}

	.lead {
		margin-bottom: 40px;
	}
}


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

 * pタグの設定

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




/* モバイル */
@media not screen and (min-width: 1281px) {

	.single main p,
	.page main p {
		line-height: 1.4;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1281px) {

	.single main p,
	.page main p {
		line-height: 1.6em;
	}
}

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

 * select

---------------------------------------------- */
select {
	padding: 5px 25px 5px 10px;

	border: 1px solid #aaa;
	border-radius: 4px;



	background-color: var(--color_white);

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

}

select:disabled {
	color: #aaa;
	background-color: #f1f1f1;
	pointer-events: none;
}

.select_wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.select_wrapper::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url("./common/img/icon_global.svg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.select_wrapper::after {
	content: '';

	position: absolute;
	top: calc(50% - 3px);
	right: 10px;
	width: 0;
	height: 0;

	border: 4px solid #333;
	border-bottom: 0;
	border-left-color: transparent;
	border-right-color: transparent;
}

.select_wrapper--disabled::after {
	border-top-color: #aaa;
}

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

 * ヘッダー

---------------------------------------------- */
header {
	position: fixed;
	top: 38px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	z-index: 1000;
}

body:not(.home) header {
	top: .5rem;
}

header>.mod_fx {
	gap: 2rem;
}

#siteLogo h1 {
	font-size: 26px;
	letter-spacing: 3.36px;
	line-height: 1.1;
	color: #525168;
}

#siteLogo span:not(.sub) {
	font-size: 36px;
	color: #81C1E4;
}

#siteLogo .sub {
	font-size: 12px;
	display: grid;
	place-content: center;
	background-color: #81C1E4;
	color: #fff;
	height: 16px;
	border-radius: 6px;
}

#siteLogo .text {
	margin-top: 1rem;
}

/* 1280px以下 */
@media not all and (min-width : 1280px) {
	#siteLogo h1 {
		line-height: 1;
	}

	#siteLogo .sub {
		margin-top: .5rem;
	}

	#siteLogo .text {
		font-size: 10px;
		margin-top: 0.25rem;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	#siteLogo {
		width: 100%;
		padding-left: 100px;
	}
}


/* ハンバーガーメニュー */
.humburger_menu {
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
}

/* ボタン */
.menu_button {
	display: block;
	position: fixed;
	z-index: 2;
	/* top: 38px; */
	right: 100px;
	border: none;
	cursor: pointer;
	transition: .5s;
}


/* メニューボタンのアニメーション */
.bar {
	display: block;
	height: 1px;
	margin: 8px auto;
	background-color: var(--font_color);
	transition: transform 0.4s, opacity 0.4s;
}

.menu_button.open .bar:nth-child(1) {
	transform: rotate(45deg) translate(7px, 6px);
}

.menu_button.open .bar:nth-child(2) {
	opacity: 0;
}

.menu_button.open .bar:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

.menu_button.open .bar {
	background-color: #fff;
}

.menu_button.open {
	color: #fff;
}

/* 1280px以下 */
@media not all and (min-width : 1280px) {
	.menu_button {
		top: 20px;
		right: 1rem;
	}

	.bar {
		width: 26px;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	.bar {
		width: 31px;
	}
}



/* メニュー本体 */
header .menu {
	position: fixed;
	top: -2000px;
	left: 0;

	color: #fff;
	background-color: #272856;

	box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .5);

	transition: 0.4s;
	z-index: 1;
	overflow-y: auto;

	width: 100%;
	height: 100svh;
}

header .menu.open {
	top: 0;
}


/* メニューの中（フッターと共通） */

header .navigation_area {
	padding: 0 0 72px;
	border-bottom: 1px solid #fff;
}

header .menu ul li,
#footer_details .navigation_area ul li {
	margin-top: 1rem;
}

header .menu ul li[data-navi="service"],
header .menu ul.navigation a,
footer .footer-menu ul.navigation a {
	display: block;
	width: 100%;
	padding: .5rem;
}


/* 1280px以下 */
@media not all and (min-width : 1280px) {

	header {
		padding-inline: 1rem;
		top: 0;
	}

	header>.mod_fx {
		flex-direction: column-reverse;
		gap: 0;
	}

	header .contact {
		padding-top: 0;
	}

	header .menu ul li {
		font-size: clamp(0.875rem, 0.833rem + 0.21vw, 1rem);
		margin-top: .5rem;
	}

	header .contents {
		padding: 10svh clamp(1rem, 0.833rem + 0.83vw, 1.5rem);
	}

	.contact_area.mod_fx {
		flex-direction: column;
	}

	header .menu .navigation {
		display: block;
	}

	header .menu .navigation>li {
		font-size: 1.25rem;
	}

	header .menu ul li ul li {
		margin-top: .25rem;
		padding: 0;
	}

	header .navigation_area {
		padding: 0;
		border: none;
	}

	header .contact hgroup,
	header .contact .contact_area>p {
		display: none;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	header .menu .contents {
		padding-top: 72px;
		width: 1200px;
		margin: auto;
	}

	header .contact {
		padding-top: 80px;
	}

	header .menu,
	#footer_details .navigation_area {
		padding: 50px 0;
	}

	header .menu ul.navigation {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: repeat(4, 1fr);
		gap: 12px;
	}

	header .menu .navigation li a:hover,
	footer .footer-menu ul.navigation li a:hover {
		color: var(--font_color);
		background-color: #fff;
	}

	li[data-navi="top"] {
		grid-area: 1 / 1 / 2 / 2;
	}

	li[data-navi="news"] {
		grid-area: 2 / 1 / 3 / 2;
	}

	li[data-navi="about"] {
		grid-area: 3 / 1 / 4 / 2;
	}

	li[data-navi="service"] {
		grid-area: 1 / 2 / 4 / 3;
	}

	li[data-navi="recruit"] {
		grid-area: 1 / 3 / 2 / 4;
	}

	li[data-navi="contact"] {
		grid-area: 2 / 3 / 3 / 4;
	}

	li[data-navi="faq"] {
		grid-area: 3 / 3 / 4 / 4;
	}

	li[data-navi="privacypolicy"] {
		/* grid-area: 4 / 3 / 5 / 4; */
		grid-area: 3 / 3 / 4 / 4;
	}

	header li[data-navi="recruit"],
	header li[data-navi="contact"],
	header li[data-navi="faq"],
	header li[data-navi="privacypolicy"] {
		margin-left: 6rem;
	}

	header .menu ul>li {
		font-size: 1.5rem;
	}

	header .menu ul>li ul>li {
		font-size: 1rem;
	}

	header .menu ul ul {
		margin-top: 1rem;
		margin-left: 1.5rem;
	}
}

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

 * contact

 ---------------------------------------------- */
/* contact部分 */

header .contact h2,
footer .contact h2 {
	font-size: 48px;
	display: flex;
	align-items: center;
	gap: .5rem;
}

header .contact h2:before,
footer .contact h2:before {
	content: '';
	background-image: url(./common/img/minser-white.svg);
	width: 21px;
	height: 17px;
}

header .contact h2+p {
	margin-left: 29px;
}

.contact_tel a {
	display: block;
}

.contact_tel sub {
	font-size: 1rem;
}

.contact_mail h3 {
	margin-bottom: .5rem;
}

.contact_mail a {
	background: #fff;
	width: 100%;
	max-width: 336px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--font_color);
	padding: 14px 28px;
	border-radius: 32px;
}

/* 1280px以下 */
@media not all and (min-width : 1280px) {
	.contact_area.mod_fx {
		flex-direction: column;
		gap: 2rem;
		margin-top: 1rem;
	}

	.contact_tel a {
		font-size: 2rem;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	.contact_area {
		gap: 55px;
	}

	.contact_area>p {
		align-self: self-end;
	}

	.contact_tel a {
		font-size: 48px;
	}
}

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

 * footer

 ---------------------------------------------- */
footer {
	background: url(./common/img/footer_line.svg), url(./common/img/footer_bottom.svg), #541F4D;
	color: #fff;
	padding-bottom: 41px;
	background-repeat: repeat-x;
	background-position: top, bottom;
}

footer .contact_area {
	border-bottom: solid 1px;
}

footer .profile .co p {
	font-size: 24px;
	margin-bottom: 1rem;
}

footer .footer-menu ul.navigation ul {
	font-size: 14px;
	margin-left: 1rem;
	margin-top: 1rem;
}

.footer-menu li[data-navi="service"] {
	padding-top: .5rem;
	padding-left: .5rem;
}

/* footer .footer-menu ul.navigation ul li:not(:last-of-type) {
	margin-bottom: 1rem;
} */

/* モバイル */
@media not screen and (min-width: 1281px) {
	footer {
		padding-inline: 1rem;
	}

	footer .contact {
		padding-block: 2rem;
	}

	footer .contact_area {
		padding-bottom: 3rem;
	}

	footer .profile {
		flex-direction: column-reverse;
		gap: 2rem;
		padding-bottom: 95px;
	}

	footer .footer-menu {
		margin-bottom: 3rem;
	}

	footer .footer-menu ul.navigation {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1em;
	}

	footer .footer-menu ul li {
		font-size: clamp(0.875rem, 0.833rem + 0.21vw, 1rem);
	}

	footer .footer-menu ul.navigation ul {
		margin-top: .5rem;
	}
}

@media not screen and (min-width: 500px) {}

/* パソコン */
@media print,
screen and (min-width : 1281px) {
	footer .contact {
		width: 1200px;
		margin-inline: auto;
		padding: 91px 0 64px;
	}

	footer .contact_area {
		padding-bottom: 109px;
	}

	footer .profile {
		width: 1200px;
		padding-bottom: 164px;
		margin-inline: auto;
	}

	footer .footer-menu ul.navigation {
		width: 670px;
		display: grid;
		grid-template-columns: max-content 1fr max-content;
		grid-template-rows: repeat(4, 1fr);
		column-gap: 24px;
		/* row-gap: 16px; */
	}

	footer small {
		font-size: 1rem;
	}
}


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

 * センタリング用コンテナの設定

 ---------------------------------------------- */
.container {
	margin-left: auto;
	margin-right: auto;
}

.min_container {
	margin-inline: auto;
}

/* モバイル */
@media not screen and (min-width: 1281px) {
	.container {
		width: 90%;
	}

	.min_container {
		width: 90%;
		padding: 3rem 1.5rem;
		border-radius: 16px;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	.container {
		width: 1200px;
	}
}



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

 * pagetop

---------------------------------------------- */
.page_top {
	display: none;
	position: fixed;
	z-index: 1;
	bottom: 100px;
}

/* モバイル */
@media not screen and (min-width: 1280px) {
	.page_top {
		right: 0;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	.page_top {
		right: 60px;
	}
}

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

 * mv

---------------------------------------------- */
body:not(.home) .mv {
	background-image: url(./common/img/mv.jpg);
	background-repeat: no-repeat;
	background-position: 90%, 0;
	height: 220px;
	display: grid;
	align-items: center;
}

/* モバイル */
@media not screen and (min-width: 1280px) {
	body:not(.home) .mv {
		margin-bottom: 3rem;
	}

	body:not(.home) .mv h2 {
		width: 90%;
		margin-inline: auto;
		margin-bottom: 0;
	}
}

@media not screen and (min-width: 500px) {}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	body:not(.home) .mv {
		margin-bottom: 6rem;
		padding-left: 100px;
	}
}

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

 * パンくず

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

.breadcrumbs .mod_fx {
	gap: 1rem;
}

.breadcrumbs li {
	font-size: 0.75rem;
	white-space: nowrap;
}

.breadcrumbs li:last-child {
	white-space: normal;
}

.breadcrumbs ol li:not(:last-child)::after {
	content: "|";
	margin-left: 1rem;
	color: #D9D9D9;
}

.breadcrumbs li.here {
	color: var(--accent_color_blue);
	font-weight: var(--fontweight_bold);
}

/* モバイル */
@media not screen and (min-width: 1280px) {
	.breadcrumbs {
		width: 90%;
		margin-inline: auto;
		padding-top: 96px;
		padding-bottom: .5rem;
	}
}

@media not screen and (min-width: 500px) {
	.breadcrumbs {
		font-size: 10px;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	.breadcrumbs {
		/* margin-top: 48px; */
		margin-bottom: .5rem;
		padding-left: 100px;
		padding-top: 73px;
	}
}

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

 * ページ内リンク

---------------------------------------------- */
.sub_link {
	background: var(--accent_color_blue);
	text-align: center;
	color: #fff;
}

.sub_link>div {
	width: min(100%, 1200px);
	margin-inline: auto;
}

.sub_link_wrap {
	background: var(--accent_color_blue);
	text-align: center;
	color: #fff;
}

.sub_link_wrap.sub_link-homecare {
	border-left: solid 1px #555674;
}

.sub_link_wrap a {
	padding: 25px 0;
	margin-inline: auto;
	display: block;
}

.sub_link-rehabaru a {
	background: #F5CD1E;
}

.sub_link-homecare a {
	background: #BBEAF9;
}

/* モバイル */
@media not screen and (min-width: 1280px) {
	.sub_link .mod_fx {
		flex-direction: column;
	}

	.sub_link_wrap {
		padding: 36px;
	}

	.sub_link_wrap p {
		margin-bottom: 24px;
	}

	.sub_link_wrap a {
		margin: auto;
	}
}

@media not screen and (min-width: 500px) {
	.sub_link_wrap a {
		width: 100%;
	}

	.sub_link_wrap a img {
		width: 80%;
	}
}

/* パソコン */
@media print,
screen and (min-width : 1280px) {
	.sub_link_wrap {
		padding: 94px 0;
		width: 50%;
	}

	.sub_link_wrap p {
		margin-bottom: 50px;
	}

	.sub_link_wrap.sub_link-rehabaru {
		padding-right: 56px;
	}

	.sub_link_wrap.sub_link-homecare {
		padding-left: 56px;
	}
}

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

 * 404

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

.return_btn a {
	margin: 6rem auto;
}

/* モバイル */
@media not screen and (min-width: 1280px) {
	body.error404 .mv {
		margin-top: 3.5rem;
	}
}

@media all and (min-width: 1280px) {
	body.error404 .mv {
		margin-top: 121px;
	}
}