@charset "utf-8";

/* ========== 変数 ========== */
:root {
    --_color-text: #3b3b3b;
    --font-family: "BIZ UDPGothic", sans-serif;
    --_global--background-color: #ffffff;
    --_global--transition-duration: .3s;
    --color_cta: #f28941;
    --color_cta-light: #fff2ea;
    --font-size_l: clamp(1.375rem, calc(1.2678571428571428rem + 0.5357142857142857vw), 1.75rem);
    --font-size_m: 1.125rem;
    --border-radius_l: 10px;
    --spacing_base: 32px;
    --spacing_s: 16px;
    --spacing_m: 48px;
    --spacing_l: 96px;
}

/* ========== 基本設定 ========== */
ul {
    padding-left: 0;
}

li {
    list-style: none;
}

.p_rel {
    position: relative;
}

.inline_b {
    display: inline-block;
}

.pc_none {
    display: none;
}

/* ========== 共通設定 ========== */
body {
    font-feature-settings: "palt";
    font-weight: 700;
}

/* 見出し */
h2:where(.wp-block-heading) {
    font-size: clamp(1.5rem, calc(1.2857142857142856rem + 1.0714285714285714vw), 2.25rem);
    letter-spacing: 0.05em;
}

h3:where(.wp-block-heading) {
    font-size: clamp(1.25rem, calc(1.1785714285714286rem + 0.35714285714285715vw), 1.5rem);
    letter-spacing: 0.05em;
}

.section_heading {
    margin-bottom: 56px;
}

.section_heading::after {
    content: "";
    display: block;
    width: 2rem;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 0.75rem;
    margin-inline: auto;
}

/* ボタン */
.smb-buttons {
    margin-top: var(--spacing_m);
}

.smb-btn:is(:active, :focus, :hover) {
    filter: brightness(1.0);
}

.smb-btn:not(:has(.svg-inline--fa)) {
    align-items: center;
    gap: 1.5rem;
    padding-inline: 2.75rem;
    padding-block: 1rem;
}

.smb-btn:not(:has(.svg-inline--fa))::after {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-top: solid 3px currentColor;
    border-right: solid 3px currentColor;
    rotate: 45deg;
}

.smb-btn:hover {
    opacity: 0.7;
}

.page-btns .smb-btn {
    min-width: 240px;
}

.page-btns .smb-btn:not(:has(.svg-inline--fa))::after {
    rotate: 135deg;
    translate: 0 -20%;
}

.smb-btn__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* テーブル */
table,
tbody {
    display: block;
    width: 100%;
}

.wp-block-table tbody {
    border-bottom: solid 2px var(--dark-sub-accent-color);
}

.wp-block-table tr {
    display: flex;
    flex-wrap: wrap;
    border-top: solid 2px var(--dark-sub-accent-color);
}

.wp-block-table tr td {
    display: block;
    padding-block: 1.75rem;
    padding-inline: 1.5rem;
    border: none;
}

.wp-block-table tr td:first-child {
    width: 33.333%;
    text-align: center;
    vertical-align: middle;
    background-color: var(--sub-accent-color);
}

.wp-block-table tr td:last-child {
    width: 66.666%;
}

.wp-block-table a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

/* 投稿 */
.c-entry-summary__meta {
    justify-content: flex-start;
}

.c-meta__item--author,
.c-meta__item--modified {
    display: none;
}

.c-entry-summary__term {
    font-size: 0.875rem !important;
    border-radius: 0 0 0 var(--border-radius_l);
}

.c-entry-summary__figure {
    border-radius: var(--border-radius_l);
}

.c-entries--simple,
.c-entries--text,
.c-entries--text2 {
    border-top-color: var(--sub-accent-color);
}

.c-entries--simple .c-entries__item,
.c-entries--text .c-entries__item,
.c-entries--text2 .c-entries__item {
    border-bottom-color: var(--sub-accent-color);
}

.c-entries--simple .c-entry-summary__title {
    color: var(--accent-color);
}

/* スライダー */
.spider__canvas {
    padding-inline: 16px;
}

.spider>.spider__arrow {
    background-color: var(--accent-color);
    border-radius: 50%;
}

.spider__arrow[data-direction=prev]:before {
    border-bottom-width: 3px;
    border-left-width: 3px;
}

.spider__arrow[data-direction=next]:before {
    border-right-width: 3px;
    border-top-width: 3px;
}

/* ヘッダー */
/* ロゴ */
header .l-1row-header__branding {
    padding-block: 0;
}

header .c-site-branding__title {
    line-height: 1;
}

header .c-site-branding__title>a.custom-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: clamp(172px, calc(129.71428571428572px + 13.214285714285715vw), 320px);
    padding: 0.75rem;
    position: absolute;
    top: 50%;
    left: var(--_container-margin-left);
    translate: 0 -50%;
    container-type: inline-size;
}

header .custom-logo-link::after {
    content: "東三国訪問看護店";
    font-size: 7cqw;
}

header .c-site-branding__title>a.custom-logo-link>img {
    width: 100%;
}

/* グローバルナビ */
.p-global-nav .c-navbar__item>a>span {
    gap: 0.25rem;
}

.p-global-nav .c-navbar__item>a {
    padding-block: 0.75rem;
    font-size: 1rem;
}

.p-global-nav .c-navbar__item:has(.c-navbar__submenu)>a {
    flex-direction: row;
    gap: 0.5rem;
}

.p-global-nav .c-navbar__item:has(.c-navbar__submenu)>a::after {
    content: "";
    display: block;
    width: 0.5em;
    height: 0.5em;
    border-right: solid 3px currentColor;
    border-bottom: solid 3px currentColor;
    rotate: 45deg;
    translate: 0 -10%;
    transition: all var(--_global--transition-duration) ease-in-out;
}

.p-global-nav .c-navbar__item:has(.c-navbar__submenu):hover>a::after {
    rotate: 225deg;
}

.c-navbar__submenu {
    border-radius: var(--_global--border-radius);
}

#menu-g_nav-sub {
    gap: 1rem;
}

.c-sub-nav .c-navbar__item>a {
    transition: all var(--_global--transition-duration) ease-in-out;
}

.c-sub-nav .c-navbar__item>a:hover {
    text-decoration: none;
    opacity: 0.75;
}

.c-sub-nav .sub-nav__phone>a {
    flex-direction: column;
}

.c-sub-nav .sub-nav__phone>a .main {
    color: var(--color_cta);
    font-size: 1.25rem;
    line-height: 1.5;
}

.c-sub-nav .sub-nav__contact>a {
    gap: 0.5rem;
    color: white;
    font-size: 1rem;
    background: var(--color_cta);
    border-radius: var(--_global--border-radius);
    padding-inline: 0.75rem;
    padding-block: 0.75rem;
}


/* ハンバーガーメニュー */
.l-header .c-hamburger-btn__bar {
    height: 2px;
    background-color: var(--accent-color);
}

.c-hamburger-btn__label {
    font-family: inherit;
    color: var(--accent-color);
}

/* ドロワーナビ */
#drawer-nav {
    color: var(--accent-color);
    background: white;
    border-radius: 0 24px 24px 0;
    border: solid 2px var(--accent-color);
    border-left: none;
    padding-top: 64px;
}

#menu-sp_nav .c-drawer__item {
    border-bottom: solid 2px var(--sub-accent-color);
}

#menu-sp_nav .c-drawer__item a {
    padding-block: 0.25rem;
}

.c-drawer__sub-nav .c-drawer__item {
    padding-block: 0;
}

.c-drawer__sub-nav .sub-nav__phone>a {
    display: flex;
    flex-direction: column;
    color: var(--_color-text);
}

.c-drawer__sub-nav .sub-nav__phone>a .main {
    color: var(--color_cta);
    font-size: 1rem;
}

.c-drawer__sub-nav .sub-nav__contact {
    color: white;
    background-color: var(--color_cta);
    border-radius: var(--_global--border-radius);
    margin-top: 1rem;
}

.c-drawer__sub-nav .sub-nav__contact>a {
    padding-inline: 1rem;
    padding-block: 0.5rem;
}

.c-drawer__sub-nav .svg-inline--fa {
    margin-right: 0.25rem;
}

/* フッター */
.l-footer {
    border-top-color: var(--accent-color);
    position: relative;
}

footer .c-site-branding__title a {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    width: fit-content;
}

footer .c-site-branding__title a::after {
    content: "東三国訪問看護店";
    line-height: 1;
    font-size: 1.25rem;
}

footer .c-site-branding__title .custom-logo {
    width: 240px;
}

.l-footer__body {
    color: white;
    background-color: var(--accent-color);
}

.l-footer--footer-2 .l-footer__widget-area {
    padding-bottom: 0;
}

.footer__link a {
    color: white;
}

.footer__link a .svg-inline--fa {
    margin-left: 0.25rem;
}

#menu-footer {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1rem 1.5rem;
}

#menu-footer .menu-item {
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: solid 1px currentColor;
}

#menu-footer .menu-item a {
    transition: all var(--_global--transition-duration)  ease-in-out;
}

#menu-footer .menu-item a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.l-footer--footer-2 .l-footer__footer {
    color: white;
    background-color: var(--accent-color);
}

/* ========== パターン ========== */
/* pattern_cta */
.pattern_cta {
    padding-block: var(--spacing_m);
    padding-inline: 32px;
    background-color: var(--color_cta);
    border-radius: var(--border-radius_l);
}

.pattern_cta__heading {
    color: white;
}

.pattern_cta__heading::after {
    background-color: white;
}

.pattern_cta__header {
    display: flex;
    flex-direction: column;
}

.pattern_cta__copy {
    color: var(--color_cta);
    font-size: 1.25em;
    background-color: white;
    border-radius: var(--_global--border-radius);
    padding: 1rem;
    width: 90%;
    position: relative;
}

.pattern_cta__copy::after {
    --r: 4px;
    content: "";
    display: block;
    width: 24px;
    aspect-ratio: 1/cos(30deg);
    -webkit-mask:
        linear-gradient(0deg, #0000 calc(3*var(--r)/2), #000 0),
        radial-gradient(var(--r) at 50% calc(100% - 2*var(--r)), #000 98%, #0000 101%);
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    background: white;
    position: absolute;
    bottom: 1px;
    left: 50%;
    translate: -50% 100%;
}

.pattern_cta__image {
    width: 80%;
    margin-top: var(--spacing_base);
    flex-grow: 1;
    display: grid;
    place-items: center;
}

.pattern_cta__item {
    background: white;
    border-radius: var(--_global--border-radius);
    padding-block: 20px;
	padding-inline: 12px;
}

.pattern_cta__title {
    color: var(--color_cta);
    font-size: var(--font-size_m);
}

.pattern_cta__btns {
    min-width: 80%;
}

.pattern_cta__btn .smb-btn {
    padding-block: 1rem;
    background-color: var(--color_cta);
}

/* pattern_message */
.pattern_message__content {
    border: solid 4px var(--sub-accent-color);
    border-radius: var(--border-radius_l);
    padding-inline: 16px;
    padding-block: var(--spacing_base);
}

.pattern_message__sub-heading {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pattern_message__sub-heading::before {
    content: "";
    display: block;
    width: 4rem;
    aspect-ratio: 1;
}

:where(.--daihyo) .pattern_message__sub-heading::before {
    background: url("/wp-content/uploads/2025/10/message_boy.png") no-repeat center center / cover;
}

:where(.--kannri) .pattern_message__sub-heading::before {
    background: url("/wp-content/uploads/2025/10/message_girl.png") no-repeat center center / cover;
}

.pattern_message__text {
    padding-top: 24px;
    border-top: solid 2px var(--sub-accent-color);
}

/* pattern_link */
.pattern_link {
    padding-block: calc(var(--smb-section--padding) / 2);
}

.pattern_link__box {
    color: white;
    background-color: var(--accent-color);
    transition: all var(--_global--transition-duration) ease-in-out;
}

.pattern_link__box:hover {
    opacity: 0.7;
}

.pattern_link__icon {
    width: 64px;
    margin-left: 0 !important;
}

.pattern_link__text {
    font-size: 1.25em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pattern_link__text::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    border-top: solid 4px currentColor;
    border-right: solid 4px currentColor;
    rotate: 45deg;
}

/* ========== HOME ========== */
/* home_hero */
.home_hero__content {
    padding-inline: min(2.222vw, 32px);
}

.home_hero__copy {
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(1.75rem, calc(0.5192307692307692rem + 1.9230769230769231vw), 2.25rem);
}

.home_hero__copy :where(span) {
    display: inline-block;
    flex-basis: 100%;
}

.home_hero__copy-image {
    margin-bottom: 1rem;
}

.home_hero__copy img {
    display: inline-block;
    width: min(100%, 576px);
    line-height: 1;
}

.home_hero__list {
    font-size: clamp(1rem, calc(0.6923076923076923rem + 0.4807692307692308vw), 1.125rem);
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 0.75rem;
}

.home_hero__list li {
    flex: 1;
    color: white;
    background-color: var(--accent-color);
    border-radius: var(--_global--border-radius);
    margin-top: 0;
    padding-block: 1rem;
    padding-inline: 1rem;
    position: relative;
}

.home_hero__list li::after {
    --r: 3px;
    content: "";
    display: block;
    width: 20px;
    aspect-ratio: 1/cos(30deg);
    -webkit-mask:
        linear-gradient(0deg, #0000 calc(3*var(--r)/2), #000 0),
        radial-gradient(var(--r) at 50% calc(100% - 2*var(--r)), #000 98%, #0000 101%);
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    background: var(--accent-color);
    position: absolute;
    bottom: 1px;
    left: 1rem;
    translate: 10% 100%;
}

.home_hero__sub-copy {
    font-size: clamp(1.125rem, calc(0.8173076923076923rem + 0.4807692307692308vw), 1.25rem);
}

.home_hero__image {
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

/* home_support */
.home_support__heading {
    background-color: white;
    border-radius: var(--border-radius_l);
    padding-block: 1rem;
    padding-inline: 2rem;
    width: fit-content;
    margin-left: 0 !important;
    position: relative;
}

.home_support__heading::after {
    --r: 4px;
    content: "";
    display: block;
    width: 24px;
    aspect-ratio: 1 / cos(30deg);
    -webkit-mask: linear-gradient(0deg, #0000 calc(3 * var(--r) / 2), #000 0), radial-gradient(var(--r) at 50% calc(100% - 2 * var(--r)), #000 98%, #0000 101%);
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    background: white;
    position: absolute;
    bottom: 1px;
    left: 2rem;
    translate: 10% 100%;
}

.home_support__text {
    font-size: var(--font-size_m);
    line-height: 2;
}

.home_support__deco {
    width: 85%;
    margin-right: 0 !important;
}

.home_support__cover {
    margin-top: var(--spacing_l);
}

.home_support__item {
    background-color: white;
    padding: var(--spacing_s);
    border-radius: var(--border-radius_l);
}

.home_support__item-inner {
    gap: var(--spacing_s);
}

.home_support__icon {
    width: 55%;
}

.home_support__image {
    border-radius: var(--_global--border-radius);
    overflow: hidden;
}

/* home_magokoro */
.home_magokoro {
    padding-block: calc(var(--smb-section--padding) * 1.5);
}

.home_magokoro__body {
    margin-left: 9.5% !important;
}

.home_magokoro__heading {
    font-size: var(--font-size_l);
    padding-block: 24px;
}

.home_magokoro__content {
    line-height: 2;
    padding-block: 40px 80px;
    padding-inline: var(--spacing_m);
    background-color: var(--sub-accent-color);
    border-radius: var(--border-radius_l);
}

.home_magokoro__copy {
    font-size: var(--font-size_m);
}

.home_magokoro__image {
    border-radius: var(--border-radius_l);
    overflow: hidden;
    height: 100%;
}

.home_magokoro__image img {
    height: 100% !important;
    object-fit: cover;
}

.home_magokoro__aside {
    width: calc(66.666% - var(--_margin1));
    margin-top: -5%;
    margin-left: 0 !important;
    gap: var(--spacing_base);
}

.home_magokoro__deco {
    width: 50%;
}

.home_magokoro__btns {
    flex-grow: 1;
}

/* home_cta--middle */
.home_cta.--middle {
    background-color: var(--color_cta-light);
}

/* ========== 下層ページ ========== */
body.page .l-contents__inner {
    padding-bottom: 0;
    margin-top: 0;
}

/* 下層ページヘッダー */
.c-page-header {
    background-color: var(--sub-accent-color);
}

.c-page-header[data-has-image=true] {
    height: unset;
}

.c-page-header[data-has-image=true] .c-page-header__content {
    color: unset;
}

.c-page-header__bgimage>img,
.c-page-header__bgimage>picture>img {
    display: none;
}

/* ========== 店舗情報 ========== */
.about_overview__table iframe {
    margin-top: 1rem;
}

/* ========== サービス紹介 ========== */
/* service_intro */
.service_intro__image {
    border-radius: var(--_global--border-radius);
    overflow: hidden;
}

/* service_support */
.service_support__lead {
    font-size: var(--font-size_m);
    line-height: 2.5;
}

.service_support__aside.-has-dog::after {
    content: "";
    display: block;
    width: 10%;
    aspect-ratio: 26 / 23;
    background: url("/wp-content/uploads/2025/10/support_deco_2.png") no-repeat center center / cover;
    position: absolute;
    right: 0;
    bottom: 0;
    translate: 30% 30%;
}

.service_support__aside-inner {
    gap: var(--spacing_base);
}

.service_support__aside-image {
    align-self: flex-end;
    flex-basis: max(10%, 120px);
}

.service_support__aside-text {
    font-size: var(--font-size_m);
    flex-grow: 1;
    background-color: white;
    padding-inline: max(3.125%, 16px);
    padding-block: 40px;
    border-radius: var(--_global--border-radius);
    position: relative;
    width: 90%;
}

.service_support__aside-text::before {
    --r: 6px;
    content: "";
    display: block;
    height: 30px;
    aspect-ratio: cos(30deg);
    -webkit-mask: linear-gradient(90deg, #0000 calc(3 * var(--r) / 2), #000 0), radial-gradient(var(--r) at calc(2 * var(--r)) 50%, #000 98%, #0000 101%);
    clip-path: polygon(0 50%, 100% 100%, 100% 0);
    background: white;
    position: absolute;
    left: 1px;
    bottom: 40px;
    translate: -100% 0;
}

/* service_area */
.service_area {
    padding-bottom: calc(var(--smb-section--padding) * 2)
}

.service_area__column {
    padding-bottom: 40px;
}

.service_area__column::after {
    content: "";
    display: block;
    width: 100%;
    height: 72px;
    background: url("/wp-content/uploads/2025/10/area_deco-scaled.png") repeat-x center top / 78%;
    position: absolute;
    bottom: 0;
    left: 0;
    translate: 0 100%;
}

.service_area__list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service_area__list li {
    text-align: center;
    color: var(--accent-color);
    padding-block: 0.25rem;
    padding-inline: 0.5rem;
    border: solid 2px currentColor;
    border-radius: 100px;
    margin-top: 0;
    min-width: 6rem;
}

.service_area__copy {
    font-size: 1.75rem;
}

.service_area__image {
    border-radius: var(--border-radius_l);
    overflow: hidden;
    border: solid 3px var(--accent-color);
}

/* ========== マゴコロボタンの紹介 ========== */
/* magokoro_intro */
.magokoro_intro__image {
    border-radius: var(--border-radius_l);
    overflow: hidden;
}

/* magokoro_point */
.magokoro_point__inner {
    background-color: white;
    border-radius: var(--_global--border-radius);
    padding-block: 24px;
    padding-inline: 16px;
    height: 100%;
}

.magokoro_point__icon {
    width: 55%;
}

.magokoro_point__title {
    font-size: var(--font-size_m);
}

/* magokoro_service */
.magokoro_service__sub-heading {
    color: var(--accent-color);
    background-color: var(--sub-accent-color);
    border-radius: var(--_global--border-radius);
    padding-block: 0.5rem;
    padding-inline: 1.5rem;
    position: relative;
}

.magokoro_service__sub-heading::after {
    --r: 4px;
    content: "";
    display: block;
    width: 24px;
    aspect-ratio: 1 / cos(30deg);
    -webkit-mask: linear-gradient(0deg, #0000 calc(3 * var(--r) / 2), #000 0), radial-gradient(var(--r) at 50% calc(100% - 2 * var(--r)), #000 98%, #0000 101%);
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    background: var(--sub-accent-color);
    position: absolute;
    bottom: 1px;
    left: 1.5rem;
    translate: 10% 100%;
}

.magokoro_service__news {
    gap: var(--spacing_s);
}

.magokoro_service__news:nth-child(n+2) {
    margin-top: var(--spacing_m);
}


.magokoro_service__news-title {
    color: var(--accent-color);
    font-size: var(--font-size_m);
}

.magokoro_service__news-title .svg-inline--fa {
    margin-right: 0.5rem;
    font-size: 1.25em;
}

.magokoro_service__concierge {
    margin-top: var(--spacing_l);
}

.magokoro_service__btn {
    margin-top: var(--spacing_l);
}

.magokoro_service__btn-inner {
    column-gap: 64px;
}

.magokoro_service__btn-num {
    font-size: var(--font-size_m);
    color: white;
    background-color: var(--accent-color);
    padding: 1.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    flex-shrink: 0;
}

.magokoro_service__fee {
    margin-top: var(--spacing_l);
}

/* ========== ケアマネージャーの皆様へ ========== */
/* care_intro */
.care_intro__image {
    border-radius: var(--border-radius_l);
    overflow: hidden;
}

/* care_support */
.care_support_column:nth-child(n+2) {
    margin-top: var(--spacing_l);
}

.care_support_image {
    border-radius: var(--border-radius_l);
    overflow: hidden;
}

.care_support_sub-heading {
    color: var(--accent-color);
    background-color: white;
    padding-block: 0.5rem;
    padding-inline: 1.5rem;
    border-radius: var(--_global--border-radius);
    position: relative;
}

.care_support_sub-heading::after {
    --r: 4px;
    content: "";
    display: block;
    width: 24px;
    aspect-ratio: 1 / cos(30deg);
    -webkit-mask: linear-gradient(0deg, #0000 calc(3 * var(--r) / 2), #000 0), radial-gradient(var(--r) at 50% calc(100% - 2 * var(--r)), #000 98%, #0000 101%);
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    background: white;
    position: absolute;
    bottom: 1px;
    left: 1.5rem;
    translate: 10% 100%;
}

.care_support_sub-item {
    flex: 1;
    gap: var(--spacing_s);
    align-self: stretch;
    background-color: white;
    border-radius: var(--_global--border-radius);
    padding-block: 16px;
    padding-inline: 20px;
}

.care_support_sub-title {
    color: var(--accent-color);
    font-size: var(--font-size_m);
}

/* care_flow */
.care_flow .smb-section__body {
    position: relative;
}

.care_flow .smb-section__body::before {
    content: "";
    display: block;
    width: 100%;
    height: 72px;
    background: url("/wp-content/uploads/2025/10/area_deco-scaled.png") repeat-x center bottom / 78%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.care_flow__cover {
    gap: var(--spacing_l) var(--spacing_base);
    margin-top: 88px;
    align-items: stretch;
    padding-bottom: 140px;
}

.care_flow__cover::before,
.care_flow__cover::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.care_flow__cover::before {
    height: 160px;
    background: url("/wp-content/uploads/2025/10/flow_deco1.png") no-repeat center center / cover;
    aspect-ratio: 5 / 9;
    left: 0;
    translate: -35% 0;
}

.care_flow__cover::after {
    height: 182px;
    background: url("/wp-content/uploads/2025/10/flow_deco2.png") no-repeat center center / cover;
    aspect-ratio: 35 / 23;
    right: 0;
    translate: 5% 0;
}

.care_flow__item {
    flex-basis: calc(100% / 4 - var(--spacing_base));
    background-color: var(--sub-accent-color);
    padding-block: 48px 32px;
    padding-inline: 20px;
    border-radius: var(--_global--border-radius);
    position: relative;
}

.care_flow__item:nth-child(n+2)::before {
    --r: 2px;
    content: "";
    height: 22px;
    aspect-ratio: cos(30deg);
    --_g: calc(tan(60deg)*var(--r)) left var(--r), #000 98%, #0000 101%;
    -webkit-mask:
        conic-gradient(from 60deg at calc(3*var(--r)/2 - 100%), #000 60deg, #0000 0) 0 0/calc(100% - 3*var(--r)/2) 100% no-repeat,
        radial-gradient(var(--r) at calc(100% - 2*var(--r)) 50%, #000 98%, #0000 101%),
        radial-gradient(var(--r) at top var(--_g)),
        radial-gradient(var(--r) at bottom var(--_g));
    clip-path: polygon(100% 50%, 0 100%, 0 0);
    background: var(--accent-color);
    position: absolute;
    top: 33%;
    left: 0;
    translate: -125% 0;
}

.care_flow__num {
    display: grid;
    place-items: center;
    color: white;
    background-color: var(--accent-color);
    border: solid 2px var(--sub-accent-color);
    padding: 1.25rem;
    width: 4.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% -50%;
}

.care_flow__icon {
    display: grid;
    place-items: center;
    background-color: white;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 19%;
    width: min(90%, 212px);
}

.care_flow__icon img {
    border-radius: 0;
}

.care_flow__title {
    font-size: var(--font-size_m);
}

/* care_faq */
.care_faq__accordion .smb-accordion__item__title {
    padding-block: 20px;
    border-radius: var(--_global--border-radius);
}

.care_faq__accordion .smb-accordion__item__title__label::before {
    content: "Q.";
    display: inline-block;
    color: var(--accent-color);
    font-size: 1.5em;
    margin-right: 0.5rem;
}

/* ========== お問い合わせ ========== */
/* contact_intro */
.contact_intro__box {
    --smb-box--border-radius: var(--border-radius_l);
    background-color: var(--accent-color);
    padding: 40px;
}

.contact_intro__inner {
    background-color: white;
    border-radius: var(--_global--border-radius);
    padding-block: 40px;
    padding-inline: 16px;
}

.contact_intro__title {
    color: var(--accent-color);
    font-size: var(--font-size_m);
}

.contact_intro__btn .smb-btn {
    font-size: 1.5rem;
}

/* contact_form */
.contact_form__heading::after {
    background-color: var(--accent-color);
}

/* お問い合わせフォーム */
.smf-control-description a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.smf-form--business .smf-item {
    border: none;
    border-top: solid 2px var(--accent-color);
    border-bottom: solid 2px var(--accent-color);
}

.smf-form--business .smf-item__col {
    padding-block: 40px;
}

.smf-form--business .smf-item__col--label {
    background-color: var(--sub-accent-color);
    border-right: none;
}

.smf-item__description {
    color: var(--accent-color);
}

.address-input,
.form_input__address-item {
    max-width: 100%;
}

.smf-item__controls .has-link-color a {
    color: var(--accent-color);
}


/* プログレスバー */
[data-screen=back] .smf-progress-tracker__item--input .smf-progress-tracker__item__number,
[data-screen=complete] .smf-progress-tracker__item--complete .smf-progress-tracker__item__number,
[data-screen=confirm] .smf-progress-tracker__item--confirm .smf-progress-tracker__item__number,
[data-screen=input] .smf-progress-tracker__item--input .smf-progress-tracker__item__number,
[data-screen=invalid] .smf-progress-tracker__item--input .smf-progress-tracker__item__number {
    background-color: var(--accent-color);
}

/* 送信ボタン */
.smf-action .smf-button-control__control {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    width: 100%;
    max-width: 400px;
    padding-block: 1rem;
    background-image: none;
}

/* 戻るボタン */
.smf-action .smf-button-control__control[data-action="back"] {
    background-color: white;
    color: var(--accent-color);
}

.smf-button-control {
    margin-left: 0 !important;
}

.smf-action .smf-button-control__control {
    margin-top: 24px;
}

/* ========== お知らせ ========== */
.p-related-posts__title {
    color: var(--accent-color);
}

.c-entry-aside__title:after,
.c-entry-aside__title:before {
    background-color: currentColor;
}

.c-pagination__item,
.c-pagination__item-ellipsis,
.c-pagination__item-link {
    border-radius: var(--_global--border-radius);
    border: solid 2px var(--accent-color);
}

.c-pagination__item-ellipsis,
.c-pagination__item-link {
    color: var(--accent-color);
}

/* ========== プライバシーポリシー ========== */
.privacy-policy li {
    list-style: inherit;
}


/* ~~~~~~~~~~~~~~~~~~~~ large-size ~~~~~~~~~~~~~~~~~~~~ */
@media screen and (max-width: 1023px) {

    /* ========== 共通設定 ========== */
    /* ヘッダー */
    .l-header {
        padding-block: 0.5rem;
    }

    header .c-site-branding__title>a.custom-logo-link {
        padding: 0;
    }

    /* フッター */
    #menu-footer {
        grid-template-columns: repeat(2, auto);
    }

    /* ========== HOME ========== */
    /* home_hero */
    .home_hero__column {
        flex-direction: column;
    }

    .home_hero__list {
        font-size: clamp(0.875rem, calc(0.8181818181818181rem + 0.2840909090909091vw), 1rem);
    }

    .home_hero__copy :where(span) {
        flex-basis: auto;
    }

    .home_hero__copy-image {
        flex-basis: 100%;
    }

    .home_hero__sub-copy {
        font-size: clamp(1rem, calc(0.9431818181818181rem + 0.2840909090909091vw), 1.125rem);
    }

    .home_hero__copy {
        font-size: clamp(1.25rem, calc(1.0227272727272727rem + 1.1363636363636365vw), 1.75rem);
    }

    .home_hero__image-cover {
        padding-left: var(--_container-margin-left);
    }

    /* home_magokoro */
    .home_magokoro__column {
        flex-direction: column-reverse;
        gap: var(--spacing_m);
    }

    .home_magokoro__heading {
        padding-block: 0;
    }

    .home_magokoro__body {
        margin-left: 0 !important;
    }

    .home_magokoro__image img {
        aspect-ratio: 3/2;
    }

    .home_magokoro__aside {
        width: 100%;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~ medium-size ~~~~~~~~~~~~~~~~~~~~ */
@media screen and (max-width: 781px) {

    /* ========== パターン ========== */
    /* pattern_cta */
    .pattern_cta {
        padding-inline: 16px;
    }

    .pattern_cta__copy {
        width: 100%;
    }

    /* ========== HOME ========== */
    /* home_magokoro */
    .home_magokoro__content {
        padding-inline: 20px;
    }

    /* ========== マゴコロボタンの紹介 ========== */
    /* magokoro_service */
    .magokoro_service__concierge {
        flex-direction: column-reverse;
    }

    /* ========== ケアマネージャーの皆様へ ========== */
    /* care_support */
    .care_support_column:nth-child(n+2) {
        flex-direction: column-reverse;
        margin-top: var(--spacing_m);
    }

    /* care_flow */
    .care_flow__cover::before {
        height: 126px;
    }

    .care_flow__cover::after {
        height: 150px;
    }

    .care_flow__item {
        flex-basis: 100%;
        flex-direction: row !important;
        flex-wrap: nowrap;
    }

    .care_flow__item:nth-child(n+2)::before {
        display: none;
    }

    .care_flow__icon {
        padding: 6.5%;
    }

    .care_flow__content {
        align-items: flex-start !important;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~ small-size ~~~~~~~~~~~~~~~~~~~~ */
@media screen and (max-width: 639px) {

    /* ========== 共通設定 ========== */
    /* ボタン */
    .smb-btn:not(:has(.svg-inline--fa)) {
        padding-inline: 2rem;
    }

    /* テーブル */
    .wp-block-table tr td:is(:first-child, :last-child) {
        box-sizing: border-box;
        width: 100%;
    }

    .wp-block-table tr td {
        padding-inline: 1rem;
    }

    .wp-block-table tr td:first-child {
        text-align: left;
    }


    /* 投稿(シンプル)*/
    .c-entries--simple .c-entry-summary__content {
        display: block;
    }

    .c-entries--simple .c-entry-summary__figure {
        float: inherit;
        width: 100%;
        margin-bottom: 20px;
    }

    /* フッター */
    #menu-footer {
        grid-template-columns: repeat(1, auto);
    }

    /* ========== HOME ========== */
    /* home_hero */
    .home_hero {
        padding-top: 24px;
    }

    .home_hero__list {
        text-align: center;
    }

    .home_hero__list li::after {
        width: 16px;
        left: 50%;
        translate: -50% 100%;
    }

    .home_hero__list li {
        flex: auto;
    }

    /* home_support */
    .home_support__grid-main {
        --smb-grid--gap: 16px !important;
        --smb-grid--column-min-width: 132px !important;
    }

    .home_support__grid-pro {
        --smb-grid--gap: 16px !important;
    }

    /* home_magokoro */
    .home_magokoro__aside {
        flex-direction: column;
        margin-top: -64px;
    }

    .home_magokoro__deco {
        align-self: flex-end;
        width: 172px;
    }

    .home_magokoro__btns {
        width: 100%;
    }

    /* ========== サービス紹介 ========== */
    /* service_support */
    .service_support__lead,
    .service_support__sub-lead {
        text-align: left;
    }

    .service_support__aside-inner {
        flex-direction: column-reverse;
    }

    .service_support__aside-text {
        width: 100%;
    }

    .service_support__aside-text::before {
        --r: 6px;
        width: 30px;
        height: auto;
        aspect-ratio: 1/cos(30deg);
        -webkit-mask:
            linear-gradient(0deg, #0000 calc(3*var(--r)/2), #000 0),
            radial-gradient(var(--r) at 50% calc(100% - 2*var(--r)), #000 98%, #0000 101%);
        clip-path: polygon(50% 100%, 100% 0, 0 0);
        bottom: 1px;
        left: 50%;
        translate: -50% 100%;
    }

    .service_support__aside-image {
        align-self: center;
        width: 40%;
    }

    .service_support__aside.-has-dog::after {
        width: 30%;
        right: 38%;
        translate: 100% 0;
    }

    /* service_area */
    .service_area__column::after {
        background-size: 160%;
    }

    /* ========== ケアマネージャーの皆様へ ========== */
    /* care_flow */
    .care_flow .smb-section__body::before {
        background-size: 160%;
    }

    /* ========== お問い合わせ ========== */
    .contact_intro__box {
        padding-inline: 16px;
    }

    .contact_intro__btn .smb-btn {
        font-size: 1.125rem;
    }

    /* サンクスページ */
    .form_thanks__text p {
        text-align: left;
    }
}