/*
Theme Name: Total Care Child
Template: total-care-theme
Version: 1.0
*/

/* =========================
Base
========================= */

body {
    margin: 0;
    font-family: sans-serif;
    color: #333;
	overflow-x: hidden;
    line-height: 1.7;
    background: #fff;
    font-size: 1rem;
}

body{
overflow-x: hidden;
}

@media (max-width: 768px) {
	body {
		font-size: .9rem;
	}
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-header {
	display: none;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus{
  left: 10px;
  top: 10px;
  z-index: 9999;
}

/* back to top */

.total_care-back-top{
padding: 40px 20px 60px;

display: flex;
justify-content: center;
}

.total_care-back-top-btn{
display: inline-flex;
align-items: center;
justify-content: center;

width: 220px;
height: 56px;

border: 1px solid #dcdcdc;

font-size: .72rem;
font-weight: 700;
letter-spacing: .16em;

color: #555;
background: #fff;

transition:
background .3s ease,
color .3s ease,
transform .3s ease;
}

.total_care-back-top-btn:hover{
background: #1f2430;
color: #fff;

transform: translateY(-3px);
}

/* =========================
Layout
========================= */

.container {
    width: min(1200px, 90%);
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

.page .entry-title {
	display: none;
}

.entry-footer {
	display: none;
}

.page:not(.home) .site-footer {
	margin-top: 60px;
}

/* =========================
Heading
========================= */

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    line-height: 1.4;
}

.section-head{
  margin-bottom: 40px;
  border-bottom: 1px solid #dcdcdc;
}

.section-head h2{
  display: inline-block;
  position: relative;
  margin: 0;
  padding-bottom: 10px;

  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #1e2430;
}

.section-head h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;

  width: 100%;
  height: 4px;

  background: #1e2430;
}

/* =========================
Button
========================= */

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #007b8a;
    color: #fff;
    border-radius: 999px;
}

/* =========================
Header
========================= */

.site-header {
position: sticky;
top: 0;
width: 100%;
background: #fff;
z-index: 999;
transition: padding .3s;
overflow: visible !important;
}

.header-inner {
max-width: 1320px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
min-height: 90px;
padding: 0 20px;
}

#masthead{
  background: rgba(255,255,255,.9);
backdrop-filter: blur(10px);
}

.header-right {
display: flex;
align-items: center;
gap: 24px;
}

.header-nav {
    margin-left: 60px;
}

.header-nav a {
position: relative;
color: #333;
text-decoration: none;
font-weight: 400;
font-size: .9rem;
padding: 10px 0;
transition: .3s;
}

.header-nav a::after {
content: "";
position: absolute;
left: 0;
bottom: -4px;
width: 0;
height: 2px;
background: #0f8b99;
transition: .3s;
}

.header-nav a:hover::after {
width: 100%;
}

.header-nav > div > ul {
display: flex;
gap: 40px;
list-style: none;
margin: 0;
padding: 0;
}

.menu-item-has-children {
position: relative;
}

.sub-menu {
position: absolute;
top: 100%;
left: 0;
background: #ffff;
min-width: 260px;
padding: 15px;
margin: 0;
list-style: none;
opacity: 0;
visibility: hidden;
transition: .3s;
box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.menu-item-has-children:hover .sub-menu {
opacity: 1;
visibility: visible;
}

.sub-menu li {
margin-bottom: 10px;
color: #132e35;
}

.sub-menu li:last-child {
margin-bottom: 0;
}

.sub-menu a {
display: block;
padding: 12px 20px;
line-height: 1.5;
}

.admin-bar .site-header {
top: 32px;
}

.hamburger {
display: none;
border: none;
background: none;
font-size: 28px;
line-height: 1;
cursor: pointer;
}


@media (max-width: 782px) {
.admin-bar .site-header {
top: 46px;
}
}

@media (max-width: 768px) {

.header-nav {
    display: none;
}

.hamburger {
display: block;
}

.header-inner {
min-height: 80px;
}

.header-right {
gap: 12px;
}

.site-logo {
flex-shrink: 0;
width: 120px;
}
}

/* ==============================
header logo
============================== */

.custom-logo {
    width: 100%;
    height: auto;
    display: block;
}

.site-logo {
    flex-shrink: 0;
    width: 220px;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #007b8a;
}

.site-logo img {
max-height: 70px;
width: auto;
}

@media (max-width: 768px) {

	.site-logo {
	width: 40%;
	max-width: 160px;
	padding-right: 15px;
}
	
	.site-logo img {
		width: 100%;
		height: auto;
		display: block;
	}

}

/* =========================
Header Actions
========================= */

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-entry-btn img,
.header-line-btn img {
	display: block;
	height: auto;
}

/* entry button */

.header-entry-btn img {
	height: 42px;
	width: auto;
}

/* line button */

.header-line-btn img {
	width: 42px;
	height: 42px;
}

@media (max-width: 768px) {

	.header-entry-btn img {
		height: 38px;
		width: auto;
	}

	.header-line-btn img {
		height: 38px;
		width: auto;
	}

}

/* ==============================
humberger
============================== */

.hamburger {
	position: relative;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.hamburger span {
	position: absolute;
	right: 0;
	height: 2px;
	background: #333;
	border-radius: 999px;
	transition: .3s;
}

/* 通常時 */

.hamburger span:nth-child(1) {
	top: 10px;
	width: 32px;
}

.hamburger span:nth-child(2) {
	top: 18px;
	width: 24px;
}

.hamburger span:nth-child(3) {
	top: 26px;
	width: 16px;
}

/* 開いた時 */

.hamburger.active span:nth-child(1) {
	top: 18px;
	width: 32px;
	transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	top: 18px;
	width: 32px;
	transform: rotate(-45deg);
}

/* =========================
Mobile Menu
========================= */

.menu-mainnav-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.mobile-menu {
	position: fixed;

	top: 80px;
	right: -100%;

	width: 100%;
	height: calc(100vh - 68px);

	background: #132e35;

	padding: 80px 32px;

	box-sizing: border-box;

	transition: right .3s ease;

	z-index: 999;

	overflow-y: auto;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.mobile-menu.active {
	right: 0;

	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* menu list */

.mobile-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu li {
	border-bottom: 1px solid rgba(255,255,255,.2);
}

.mobile-menu li:first-child {
	border-top: 1px solid rgba(255,255,255,.2);
}

.mobile-menu li a {
	display: block;

	padding: 18px 0;

	color: #fff;

	text-decoration: none;

	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .12em;

	transition: .3s;
}

.mobile-menu li a:hover {
	opacity: .7;
	padding-left: 8px;
}

.mobile-menu nav,
.mobile-menu ul,
.mobile-menu li {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* =========================
Mobile submenu
========================= */

@media (max-width: 768px) {

	.mobile-menu .sub-menu {
		display: none;

		position: static;

		background: transparent;

		padding: 0 0 12px 16px;

		opacity: 1;
		visibility: visible;

		box-shadow: none;
	}

	.menu-item-has-children.submenu-open .sub-menu {
		display: block;
	}
}

/* =========================
Footer
========================= */

.gl-footer {
    background: #008a7d;
    color: #fff;
    padding: 80px 0 5px;
    margin-top: 40px;
}

.gl-footer-columns {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
}

.gl-footer-col {
	flex: 1;
}

.gl-footer-col-1 {
	text-align: left;
}

.gl-footer-col-2 {
	text-align: center;
}

.gl-footer-col-3 {
	text-align: right;
}

.gl-footer-logo img {
	max-width: 280px;
	width: 100%;
	height: auto;
}

.gl-footer-copy {
	margin-top: 40px;
	text-align: center;
	font-size: 14px;
	color: rgba(255,255,255,.8);
}

/* sns */

.gl-footer-sns-title {
    margin-bottom: 24px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: #fff;
    text-align: left;
}

.gl-footer-sns-item {
	display: flex;
	align-items: center;

	gap: 16px;

	margin-bottom: 12px;

	color: #fff;
	text-decoration: none;
}

.gl-footer-sns-item img {
	width: 25px;
	height: 25px;
	object-fit: contain;
}

.gl-footer-sns-item span {
	font-size: .8rem;
	font-weight: 600;
}

@media (max-width: 768px) {

	.gl-footer-columns {
		flex-direction: column;
		text-align: center;
	}

	.gl-footer-col-1,
	.gl-footer-col-2,
	.gl-footer-col-3 {
		text-align: center;
	}

}

/* ========================================
BACK TO TOP
======================================== */

.gl-back-top {
	position: fixed;

	left: 24px;
	bottom: 24px;

	z-index: 999;

	opacity: 0;
	visibility: hidden;

	transition: .3s;
}

.gl-back-top.is-active {
	opacity: 1;
	visibility: visible;
}

.gl-back-top-btn {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 56px;
	height: 56px;

	background: var(--gl-main-color);

	border-radius: 50%;

	color: #fff;

	text-decoration: none;

	box-shadow: 0 4px 12px rgba(0,0,0,.15);

	transition: .3s;
}

.gl-back-top-btn:hover {
	transform: translateY(-4px);
}

.gl-back-top-btn svg {
	width: 20px;
	height: 20px;
}

/* ========================================
FV
======================================== */

.gl-fv {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: -90px;
}


/* ========================================
SWIPER
======================================== */

.fv-slider,
.fv-slider .swiper-wrapper,
.fv-slider .swiper-slide {
	height: 100%;
}

.fv-slider .swiper-slide {
	position: relative;
}

.fv-slider .swiper-slide img.gl-fv-bg {
	width: 100%;
	height: 100%;

	object-fit: cover;
}


/* ========================================
COPY
======================================== */

.gl-fv-copy {
	position: absolute;
	left: 8%;
	top: 70%;
	transform: translateY(-50%);
	width: min(550px, 60vw);
	height: auto;
	z-index: 10;
}


/* ========================================
OVERLAY
======================================== */

.fv-slider .swiper-slide::before {
	content: "";

	position: absolute;
	inset: 0;

	background: rgba(0, 0, 0, .25);

	z-index: 1;
}

.gl-fv-copy {
	z-index: 2;
}


/* ========================================
SP
======================================== */

@media (max-width: 768px) {

	.gl-fv {
		min-height: 600px;
	}

	.gl-fv-copy {
		left: 10px;
		right: 10px;

		width: auto;
		top: 70%;
	}

}

