/*--------------------------------------------------------------
# カスタムプロパティ
--------------------------------------------------------------*/
:root {
	/* 色 */
	--color-primary: #333;
	--color-secondary: #5adde8;
	--color-tertiary: #f4faf7;
	/* コンテナーの幅 */
	--container-width: 760px;
	/* コンテナーの最大幅 */
	--container-max-width: 100%;
}

@media screen and (min-width: 992px) {
	:root {
		/* コンテナーの最大幅 */
		--container-max-width: 90%;
	}
}

/* 色の割り当て
--------------------------------------------- */
:root {
	/* 文字色 */
	--color-headline-primary: var(--color-primary);/* 見出し */
	--color-text-primary: var(--color-primary);/* テキスト */
	/* 背景 */
	--color-bg-footer: #f2eee5;/*フッター */
}

#page {
	position: relative;
	background: #fff;
}

/* normalize
--------------------------------------------- */
html {
	font-size: 16px;
}

body {
	margin: 0;
}

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

a:hover, a:focus, a:active {
	color: inherit;
}

a,
a:visited {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

a:focus {
	outline: none;
}

li a,
li a:visited {
	display: inline;
}

.post,
.page {
  margin: 0;
}

summary {
	list-style: none;
}

.main_front-page img {
	display: block;
	height: auto !important;
}

/* コンテンツの幅
--------------------------------------------- */
.container {
	width: var(--container-width);
	max-width: var(--container-max-width);
	margin-right: auto;
	margin-left: auto;
}

/*--------------------------------------------------------------
# レイアウト崩れ防止
--------------------------------------------------------------*/
/* footerが常に画面最下部にいるように固定
--------------------------------------------- */
#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-footer {
	margin-top: auto;
}

/*--------------------------------------------------------------
# フッター
--------------------------------------------------------------*/
.site-footer .container {
	background: var(--color-bg-footer);
	padding: 3rem 0 1.5rem;
}

.site-footer .site-info{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	width: 90%;
	margin-right: auto;
	margin-left: auto;
}

@media screen and (max-width: 767px) {
	.site-footer .container {
		padding: 3rem 0 8rem;
	}
}

/* ロゴ
--------------------------------------------- */
.logo_wrapper {
	width: fit-content;
}

.logo_wrapper img {
	display: block;
}

.logo_all-for-wan {
	max-width: 240px;
}

.logo_hack-wellness-care {
	max-width: 160px;
}

/* ナビゲーション
--------------------------------------------- */
.nav_footer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	font-size: 1rem;
	list-style: none;
	margin: 0;
	padding: 2rem 0 0;
}

.nav_footer li {
	display: inline-block;
}

.nav_footer a {
	position: relative;
	display: inline-block;
	font-size: .9rem;
	font-weight: 700;
}

.nav_footer a::after {
	content: '';
	position: absolute;
	background: var(--color-text-primary);
	width: 100%;
	height: 2px;
	left: 0;
	bottom: -1px;
	transform: scale(0, 1);
	transform-origin: left top;
	transition: transform .3s;
}

.nav_footer a:hover::after {
	transform: scale(1, 1);
}

@media screen and (min-width: 768px) {
	.nav_footer {
		flex-direction: row;
	}
}

/* コピーライト
--------------------------------------------- */
.wrapper_copyright {
	display: flex;
	justify-content: center;
	width: 90%;
	margin-top: 3rem;
	margin-right: auto;
	margin-left: auto;
}

copyright {
	font-size: .75rem;
}

/*--------------------------------------------------------------
# ページコンテンツ
--------------------------------------------------------------*/
.main_front-page .wp-block-image {
	margin: 0;
}

.main_front-page .wp-block-image img {
	width: 100%;
}

/* オファーボタン
--------------------------------------------- */
.btn_offer {
	position: relative;
}

.btn_offer a {
	position: absolute;
	display: block;
	width: 90%;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	transition: transform .2s;
}

.btn_offer a:hover {
	transform: translate(-50%, -3px);
}

.btn_offer_img {
	display: block;
}

/* 愛用者の声 動画
--------------------------------------------- */
.testimonial_video_wrapper {
	position: relative;
	overflow: hidden;
}

.testimonial_video_bg {
	position: relative;
	z-index: 1;
}

.testimonial_video_wrapper video {
	position: absolute;
	width: 86%;
	height: auto;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 0;
}

/* バナー
--------------------------------------------- */
#banner {
	position: fixed;
	bottom: 8px;
	left: 8px;
	width: 400px;
	z-index: 3;
}

@media screen and (max-width: 767px) {
	#banner {
		width: calc(100% - 16px);
		max-width: calc(100% - 16px);
	}
}

@media screen and (min-width: 768px) {
	#banner {
		max-width: 50%;
	}
}

/*--------------------------------------------------------------
# Instagram Feed
--------------------------------------------------------------*/
#sb_instagram {
	padding: 3rem 0 !important;
}

#sb_instagram .sbi_photo_wrap {
	border-radius: 4px;
	overflow: hidden;
}

/*--------------------------------------------------------------
# 404
--------------------------------------------------------------*/
.btn_back {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	background: var(--color-primary);
	color: #fff;
	width: fit-content;
	line-height: 1em;
	padding: .75em;
	border: 2px solid var(--color-primary);
	border-radius: 24px;
	transition: color .2s, background-color .2s;
}

.btn_back:hover {
	color: var(--color-primary);
	background: #fff;
}

.error-404 .inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	max-width: 90%;
	gap: 2rem;
	margin-right: auto;
	margin-left: auto;
	padding: 5rem 0;
}

.error-404 h2 {
	font-size: 1.25rem;
}