@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ■■■■■ .tableclose ■■■■■ */
.tableclose label input,
.tableclose:has(label[data-show="1"] input[type="checkbox"]) table tr:nth-of-type(n+2),
.tableclose:has(label[data-show="2"] input[type="checkbox"]) table tr:nth-of-type(n+3),
.tableclose:has(label[data-show="3"] input[type="checkbox"]) table tr:nth-of-type(n+4),
.tableclose:has(label[data-show="4"] input[type="checkbox"]) table tr:nth-of-type(n+5),
.tableclose:has(label[data-show="5"] input[type="checkbox"]) table tr:nth-of-type(n+6),
.tableclose:has(label[data-show="6"] input[type="checkbox"]) table tr:nth-of-type(n+7),
.tableclose:has(label[data-show="7"] input[type="checkbox"]) table tr:nth-of-type(n+8),
.tableclose:has(label[data-show="8"] input[type="checkbox"]) table tr:nth-of-type(n+9),
.tableclose:has(label[data-show="9"] input[type="checkbox"]) table tr:nth-of-type(n+10),
.tableclose:has(label[data-show="10"] input[type="checkbox"]) table tr:nth-of-type(n+11),
.tableclose:has(label:not([data-show]) input[type="checkbox"]) table tr:nth-of-type(n+5) {
    display: none;
}
.tableclose:has(label input[type="checkbox"]:checked) table tr {
    display: table-row !important;
}

.tableclose label {
    display: inline-block;
    position: relative;
    padding: 5px 15px;
    margin: 5px 0 20px;
    background: var(--color_main);
    background: linear-gradient(175deg, var(--color_main_thin) 0%,var(--color_main) 80%);
    color: #fff !important;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4em;
}
.tableclose label:hover {
    background: var(--color_main) !important;
    box-shadow: rgba(0,0,0,0.6) 2px 2px 5px;
    top: -2px;
    left: -1px;
}
.tableclose label:active {
    box-shadow: rgba(0,0,0,0.6) 0 1px 5px;
    top: 0;
    left: 0;
}
.tableclose label:after {
    content: "▲クリックで開く";
}
.tableclose label:has(input:checked):after {
    content: "▲クリックで閉じる";
}
.tableclose label[data-open-text]:after {
    content: attr(data-open-text);
}
.tableclose label[data-close-text]:has(input:checked):after {
    content: attr(data-close-text);
}


/* リッチリスト */
dl.rich_list {
	margin: 20px 0;
	padding: 0;
}
dl.rich_list dt {
	position: relative;
	background: var(--color_main);
	padding: 12px 15px 10px;
	margin: 0 0 10px;
	border: 0 !important;
	line-height: 1.2em;
	font-weight: bold;
	color: #fff;
	border-radius: 7px;
}
dl.rich_list dt:before {
	content: "";
	display: block;
	position: absolute;
	border-style: solid;
	border-width: 12px 7px 0;
	border-color: var(--color_main) transparent transparent;
	left: 50px;
	bottom: -12px;
}
dl.rich_list dt[style]:before {
	background: inherit;
	border-color: transparent #fff #fff;
}
dl.rich_list dd {
	padding: 0;
	margin: 0 0 15px !important;
	border: 0 !important;
	line-height: 1.5em;
}
.post_content dl.rich_list dd .h5,
dl.rich_list dd .h5 {
	margin: 0 0 5px !important;
	padding: 5px 0 2px 30px;
	background: url(./images/icon-check.png) no-repeat left top !important;
	border: 0 !important;
	background-size: 28px 28px !important;
	font-weight: bold;
	line-height: 1.2em;
	color: #030 !important;
}
dl.rich_list dd p br:first-child,
dl.rich_list dd .h5+br {
	display: none;
}
dl.rich_list dd .h5 b {
	color: #e22;
}
dl.rich_list dd p {
	margin: 0 0 0 20px !important;
	padding: 0;
	line-height: inherit;
}
.article-body dl.rich_list dd ul li {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.3em !important;
}
.article-body dl.rich_list dd ul li:before {
	background: #a8a8f4;
	top: 5px;
}
@media (max-width: 600px) {
	dl.rich_list dt {
		padding: 10px 12px 8px;
	}
}
/* リッチリスト拡張（開閉付き：2024/10/18）＋ 開閉ブロックinブロック（2024/11/12） */
.openclose-inblock > .lazyblock-inner-blocks,
.rich_list_close dl.rich_list {
    margin-bottom: 0;
    padding-bottom: 0;
}
.openclose-inblock,
.rich_list_close {
    margin-bottom: 20px;
    position: relative;
}
.openclose-inblock > .lazyblock-inner-blocks > *:nth-child(n+2),
.rich_list_close dl.rich_list dt:nth-of-type(n+2),
.rich_list_close dl.rich_list dd:nth-of-type(n+2) {
    max-height: 1500px;
    transition: all 0.7s ease-in-out;
}
.openclose-inblock:has(input:checked) > .lazyblock-inner-blocks > *:not(:last-child) {
    margin-bottom: 30px;
}
.openclose-inblock:has(input:not(:checked)) > .lazyblock-inner-blocks > *:nth-child(n+2),
.rich_list_close:has(input:not(:checked)) dl.rich_list dt:nth-of-type(n+2),
.rich_list_close:has(input:not(:checked)) dl.rich_list dd:nth-of-type(n+2) {
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0 !important;
    padding-top: 0;
    padding-bottom: 0 !important;
    max-height: 0;
    transition: all 0.2s ease-in-out;
}
.openclose-inblock input,
.rich_list_close input {
    display: none;
}
.openclose-inblock:has(input:not(:checked)) label:before,
.rich_list_close:has(input:not(:checked)) label:before {
    content: attr(data-text-open);
}
.openclose-inblock:has(input:checked) label:before,
.rich_list_close:has(input:checked) label:before {
    content: attr(data-text-close);
}
.openclose-inblock label,
.rich_list_close label {
    position: relative;
    display: block;
    margin: auto;
    width: fit-content;
    background: var(--color_main);
    color: var(--color_bg);
    padding: 5px 20px;
    border-radius: 40px;
    box-shadow: rgba(0,0,0,0.5) 2px 2px 5px;
    border: 1px solid #fff;
    cursor: pointer;
    transition: all 0.5s linear;
    font-size: 90%;
    line-height: 1.2em;
    z-index: 2;
}
.openclose-inblock label:hover,
.rich_list_close label:hover {
    filter: brightness(1.1);
    left: -1px;
    top: -1px;
    box-shadow: rgba(0,0,0,0.5) 3px 3px 5px;
    transition: all 0.2s linear;
}
.openclose-inblock:after,
.rich_list_close:after {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    bottom: 20px;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
}
.openclose-inblock:has(input:checked):after,
.rich_list_close:has(input:checked):after {
    display: none;
}
.rich_list ul:not([class]) li,
ul[class="wp-block-list"] li,
.cap_box_content ul:not([class]) li {
    list-style: disc;
}
.rich_list dd ul {
    margin-left: 15px;
}


/* Footer */
.l-footer__inner nav {
	margin-top: 30px;
}
.l-footer__foot {
	background: var(--color_main);
	color: #fff;
}
@media screen and (min-width: 960px) {
	.l-footer__foot .copyright {
		font-size: 16px;
	}
}
.l-footer__widgetArea {
	background: linear-gradient(to bottom, transparent 0,rgba(32,16,0,0.10) 2px, transparent 10px);
}
footer .l-footer__widgetArea .footer_logo {
	margin-top: 50px;
}

/* Header */
div.head-logo {
    font-size: 2em;
    margin: 0.67em 0;
}
header .new_inner a {
	color: #323232;
	line-height: 1.1em !important;
	margin: 0;
	padding: 0;
}
header .new_inner a i {
	font-style: normal !important;
}
#main_nab nav ul li {
	min-height: 10px;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}
header .new_inner a:hover {
	color: var(--color_main);
}
header .new_inner div.head-logo {
    flex-basis: 24.22145%;
    max-width: 250px;
}
header .new_inner h1 a,
header .new_inner div.head-logo a {
    display: block;
    overflow: hidden;
    text-indent: -99999em;
    height: 6.48789%;
    max-height: 75px;
    line-height: 3em !important;
}
header .new_inner div.head-logo a:before {
    content: "";
    background: red;
    display: block;
    padding-top: 30%;
    background: url(/wp-content/themes/familydr/img/logo.png) no-repeat center / cover;
}
.customize-support header {
	top: 40px;
}
@media screen and (min-width: 960px) {
    header .new_inner div.head-logo {
        margin-bottom: 20px;
    }
	.customize-support header {
		top: 30px;
	}
}
@media screen and (max-width: 959px) {
    header .new_inner div.head-logo {
        margin-top: 20px;
		margin-bottom: 15px;
    }
	header .new_inner div.head-logo a {
        max-height: 60px;
    }
	.customize-support #main_nav,
	.customize-support .sp_nav_toggle,
	.customize-support #side_contact {
		margin-top: 40px !important;
	}
	header #main_nav nav > ul .sub_menu > * {
		line-height: 1.4em !important;
	}
}
@media screen and (max-width: 599px) {
    header .new_inner div.head-logo a {
        max-height: 31px;
    }
	header .new_inner div.head-logo {
        margin-bottom: 10px;
		margin-top: 15px;
    }
}


/* main */
@media screen and (min-width: 960px) {
    body {
        padding-top: 120px;
    }
}
@media screen and (max-width: 959px) {
    body {
        padding-top: 95px;
    }
}
@media screen and (max-width: 599px) {
    body {
        padding-top: 61px;
    }
}

/* パンくず */
.p-breadcrumb__item {
	font-size: 12.5px;
}
@media screen and (min-width: 960px) {
	.p-breadcrumb__item {
		font-size: 16px;
	}
}