/* ドロップダウンの親要素に相対位置を指定 */
#header_navi .has-child {
    position: relative;
    display: block;
}

/* 子メニューの基本スタイル（初期状態は非表示） */
#header_navi .sub-menu {
    display: none;
    /* jQueryで開閉するため初期状態は消しておく */
    position: absolute;
    top: 100%;
    /* 親メニューのすぐ下 */
    left: 0;
    text-align: left;
    background-color: #ffffff;
    /* 背景色 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* 浮き上がるような影 */
    z-index: 100;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 子メニュー内のリンクのスタイル */
#header_navi .sub-menu li a {
    display: block;
    padding: 12px 15px;
    color: #333333;
    font-size: 0.9rem;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.2s ease;
}

/* 子メニュー内のリンクにホバーした時 */
#header_navi .sub-menu li:hover {
    background-color: #FAA1BD;
    transition: .5s all;
}

#header_navi .sub-menu li:hover>a {
    color: #fff;
    transition: .5s all;
}

/* スマホ表示（ハンバーガーメニュー展開時）の調整 */
@media screen and (max-width: 768px) {
    #header_navi .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    #header_navi .sub-menu li a {
        padding-left: 30px;
        text-align: center;
    }
}

/* PC表示: 開閉ボタンは不要 */
.menu-toggle {
    display: none;
}

/* スマホ表示（768px以下） */
@media screen and (max-width: 768px) {
    #header_navi .has-child {
        position: relative;
    }

    /* リンクの横幅を調整してボタンのスペースを作る */
    #header_navi .has-child a {
        display: inline-block;
        width: calc(100% - 50px);
        height: auto;
    }

    /* 開閉ボタンの配置と形 */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 60px;
        cursor: pointer;
    }

    /* 三角形アイコン */
    .menu-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        margin-top: -3px;
        margin-left: -5px;
        border-style: solid;
        border-width: 6px 5px 0 5px;
        border-color: #333 transparent transparent transparent;
        transition: transform 0.3s ease;
        /* 回転を滑らかに */
    }

    /* アクティブ時の回転状態 */
    .menu-toggle.is-active::before {
        transform: rotate(180deg);
    }

    /* サブメニューの初期状態（スマホ時） */
    #header_navi .sub-menu {
        position: static;
        width: 100%;
        display: none;
        /* jQueryで制御 */
    }
}

.top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #07AAA0;
    padding: 13px 23px;
    border-radius: 5px;
    line-height: 1.5;
}

.top-btn a {
    font-size: 16px;
    text-decoration: none !important;
    color: #fff !important;
}


.br_sp {
    display: none;
}

.container {
    font-family: "zen maru Gothic";
}

.flex_box {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
}

.news_paper {
    flex: 1;
}

.side_img {
    float: none;
    width: auto;
    flex: 1;
}


.subtitle_header {
    border-top: 5px solid #ffe5f1;
    border-bottom: 1px solid #ddd;
    padding: 25px 0 30px;
}

.subtitle_header h1 {
    color: #222;
    font-weight: normal;
    width: 100%;
    max-width: none;
    text-align: center;
    font-size: 1.05em;
    padding: 0;
    margin: auto;
}

.header_block {
    display: flex;
    margin: 15px 15px 30px;
}

.header_logo {
    flex: 1;
}

.header_address {
    flex: 7;
    text-align: end;
    line-height: 1.8;
}

.header_address p {
    letter-spacing: .05em;
}

.header_address .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 60px;
    background: #FF6596;
    border-radius: 100px;
    margin: .5em .5em 0 auto;
    padding: 0;
}

.header_address .btn a {
    font-size: 1.5em;
    color: #fff;
    font-weight: bold;
    letter-spacing: .05em;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_nav_menu {
    height: 60px;
    width: 100%;
    background-image: linear-gradient(90deg, #ff9ccb, #ff9ccb 11%, #ff9999 48%, #ff9ccb);
}

.header_nav_wrap {
    height: 100%;
}

ul.header_nav {
    width: 100%;
    height: 100%;
    max-width: 1050px;
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

ul.header_nav li {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ffa0bf;
}

ul.header_nav li:last-child {
    border-right: 1px solid #ffa0bf;
}

ul.header_nav li:hover {
    background: #FAA1BD;
}

ul.header_nav li:hover>a {
    color: #fff;
}

ul.header_nav a {
    font-size: 1.25em;
    color: #fff;
    font-weight: bold;
    letter-spacing: .1em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}


.header_slider {
    position: relative;
    aspect-ratio: 5 / 2.5;
}

.header_slider img {
    aspect-ratio: 5 / 2.5;
    object-fit: cover;
}

.top_slider_pc {
    display: block;
}

.top_slider_sp {
    display: none;
}

.slider_desc {
    width: 100%;
    text-align: justify;
    line-height: 2;
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);
}

.header_slider .slider {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0 auto;
    position: relative;
}

.header_slider .slider:after {
    content: "";
    width: 100%;
    height: 100%;
    background: #bbbbbb6e;
    display: block;
    position: absolute;
    top: 0;
}

.slider_text {
    /* background-image: linear-gradient(90deg, #ffeaf4, #ffffffd9 11% 67%, #fff7fa6e 87%, transparent); 
    padding: 15px 30px 15px 60px; */
    width: 100%;
}

.slider_text h3 {
    color: #424242;
    width: fit-content;
    min-width: 425px;
    background: #fff;
    margin-top: 15px;
    padding: 0 15px 0 40px;
    font-size: 2em;
    letter-spacing: .15em;
    /* text-shadow: 2px 3px 10px rgb(255 175 243 / 59%); */
}

.slider_text span {
    font-size: .75em;
    /*  color: #fff; */
}

.slider_desc .btn {
    margin: 45px 0 0 30px;
    box-shadow: 5px 5px 15px 0px rgb(255 217 252 / 35%);
}

/* 3行見出し：左→右に流れ込む */
.slider_text h3 {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInLR 0.9s cubic-bezier(.2, .8, .2, 1) forwards;
}

/* 1段目 / 2段目 / 3段目で開始タイミングをずらす */
.slider_text h3:nth-child(1) {
    animation-delay: 0.25s;
}

.slider_text h3:nth-child(2) {
    animation-delay: 0.5s;
}

.slider_text h3:nth-child(3) {
    animation-delay: 0.75s;
}

@keyframes slideInLR {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 動きが苦手な人向け（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
    .slider_text h3 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}





#main {
    padding: 100px 0;
    margin: 0px auto;
    /* background-image: linear-gradient(186deg, #fef8fb, #fff4f6); */
    background: #FEFAFA;
}

.contents {
    margin: 0 auto;
    display: block;
}

.btn {
    background: #ff417f;
    width: fit-content;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: anchor-center;
    padding: 25px 50px;
    border-radius: 100px;
    margin-top: 15px;
    transition: all .5s ease-out;
}

.btn:hover {
    transition: .5s all ease-out;
    background: #ff719f;
}

.about_activity .btn,
.news_paper .btn {
    margin: 30px auto;
}

.btn a {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    letter-spacing: .15em;
    font-family: system-ui;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about_activity {
    flex: 1;
    max-width: 650px;
    background: url(../images/top/pink_back2.jpg);
    background-size: cover;
    background-position: center;
    border: 2px solid #ffffff;
    border-radius: 35px;
    box-shadow: 5px 5px 10px 0px rgb(218 218 218 / 35%);
    padding: 30px 0;
}

.about_activity h3 {
    font-size: 1.5em;
    margin: 0 auto 25px;
    text-align: center;
    letter-spacing: .1em;
}

.image_slider_block.slick-slide {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.slick-initialized .slick-slide>div {
    width: fit-content;
}

.image_slider_block img {
    width: 100%;
    max-width: 300px;
}

/* modal */
.image_slider img {
    cursor: pointer;
    display: block;
    width: 100%;
    height: auto;
}

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.img-modal.is-open {
    display: block;
}

.img-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

.img-modal__content {
    position: relative;
    max-width: 1000px;
    width: min(92vw, 1000px);
    margin: 6vh auto;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
}

.img-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 28px;
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1;
}

/* モーダル内画像 */
.modal_slider img {
    width: 100%;
    height: auto;
    display: block;
}

body.modal-open {
    overflow: hidden;
}

.event_desc {
    font-size: 18px;
    color: #222222;
    text-align: left;
    width: 90%;
    max-width: 850px;
    margin: auto;
    line-height: 2;
    margin-bottom: 100px;
}

.event_desc p {
    margin-bottom: 25px;
}

.news_paper {
    flex: 1;
    border: 2px solid #fff;
    border-radius: 35px;
    padding: 30px;
    margin: 0 50px;
    box-shadow: 5px 5px 10px 0px rgb(218 218 218 / 35%);
    background: url(../images/top/pink_back2.jpg);
    background-size: cover;
}

.news_paper h2 {
    font-size: 1.5em;
    color: #A1445B;
    background: none;
    display: block;
}



@media screen and (min-width: 1250px) {
    .header_slider {
        position: relative;
        aspect-ratio: 5 / 2;
    }

    .header_slider img {
        aspect-ratio: 5 / 2;
        object-fit: cover;
    }
}

@media screen and (max-width: 1250px) {
    .news_paper {
        margin: 0 25px;
    }
}

@media screen and (max-width: 1125px) {
    .flex_box {
        flex-direction: column;
    }

    .news_paper {
        margin: 0 auto 100px;
    }

    .about_activity {
        margin: auto;
        width: 100%;
    }
}

@media screen and (max-width: 1000px) {
    .header_slider {
        aspect-ratio: 9 / 8;
    }

    .header_slider .slider .slick-list,
    .header_slider .slider .slick-track,
    .header_slider .slider .slick-slide {
        height: 100%;
    }

    .slick-slide img {
        height: 100%;
        object-fit: cover;
        object-position: right;
    }
}

@media screen and (max-width: 750px) {
    .slider_text h3 {
        text-align: center;
        margin: 15px auto;
        width: 90%;
        background: none;
        font-size: 1.25em;
        padding: 0;
        display: block;
        min-width: auto;
    }

    .header_slider {
        margin-top: 100px;
        aspect-ratio: 5 / 3;
        display: flex;
        flex-direction: column-reverse;
    }

    .slider_desc {
        position: relative;
        left: 0;
        top: 0;
        transform: inherit;
        margin: 20px auto;
    }

    .slider_desc .btn {
        margin: 45px auto;
    }

    .news_paper,
    .about_activity {
        width: 95%;
        max-width: none;
    }
}

@media screen and (max-width: 600px) {
    .top-btn {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    .header_slider .slider:after {
        background: none;
    }

    .slider_text h3 {
        color: #ff879e;
    }

    .slider_text span {
        color: #ffaaaa;
    }
}

@media screen and (max-width: 500px) {
    .br_sp {
        display: block;
    }

    .header_block {
        flex-direction: column;
    }

    .header_logo {
        margin: 15px;
    }

    .header_address {
        text-align: center;
        margin: auto;
    }
}

/* ハンバーガーメニューここから */
/* ===== ハンバーガーボタン（デフォルトは非表示） ===== */
.hamburger {
    display: none;
    width: 44px;
    height: 60px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 10002;
    /* メニューより上 */
}

.hamburger__line {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px auto;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
}

/* ===== オーバーレイ ===== */
.nav_overlay {
    display: none;
}

/* ===== SPメニュー（初期は画面外） ===== */
.header_nav_wrap {}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    .subtitle_header {
        padding-top: 75px;
    }

    .header_nav_menu {
        display: flex;
        justify-content: end;
        position: fixed;
        top: 0;
        z-index: 999;
    }

    ul.header_nav {
        flex-direction: column;
        justify-content: flex-start;
    }

    ul.header_nav li {
        height: auto;
        border-bottom: 1px solid #ffa0bf;
        border-left: none;
    }

    ul.header_nav li:last-child {
        border-right: none;
    }

    .hamburger {
        display: block;
        margin-right: 15px;
    }

    .header_nav_wrap {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80vw, 340px);
        background: #fff;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 10001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .12);
    }

    /* オーバーレイ */
    .nav_overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 10000;
    }

    /* 開いた状態 */
    .header_nav_menu.is-open .header_nav_wrap {
        transform: translateX(0);
    }

    .header_nav_menu.is-open .nav_overlay {
        display: block;
    }

    /* メニュー縦並び */
    .header_nav {
        display: block;
        /* flex指定がある場合の保険 */
        padding: 70px 18px 18px;
        /* 上部に余白（ボタン分） */
        margin: 0;
        list-style: none;
    }

    .header_nav li {
        margin: 0;
    }

    ul.header_nav a {
        color: #ff719f;
        display: block;
        padding: 14px 8px;
        text-decoration: none;
    }

    /* ハンバーガーを×に変形 */
    .header_nav_menu.is-open .hamburger__line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .header_nav_menu.is-open .hamburger__line:nth-child(2) {
        opacity: 0;
    }

    .header_nav_menu.is-open .hamburger__line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 背景スクロール抑止 */
    body.nav-open {
        overflow: hidden;
    }
}



/* 介護サービスについて */
.contents.service, .contents.map, .contents.newspaper{
    background: none;
    margin-bottom: 100px;
}

.about h3 {
    position: relative;
    font-size: 1.75em;
    color: #FF608F;
}

.service_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.service_block {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 25px;
    margin: 25px;
    border-radius: 20px;
}

.service_title {
    display: flex;
    justify-content: space-between;
    text-align: justify;
}

.service_title h4 {
    font-size: 1.45em;
    max-width: 225px;
}

.service_title p {
    font-size: 1.25em;
}

.service_title img {
    height: 105px;
    width: auto;
}

.service_block .btn {
    background: #FFF59B;
    border: #E4D33A;
    border-radius: 20px;
    height: 65px;
    width: 100%;
    margin-top: 35px;
}

.service_block .btn a {
    color: #222;
    font-size: 1.25em;
    letter-spacing: .1em;
}

.service_block .btn:hover {
    background: #E4D33A;
}

.contact_tel {
    width: fit-content;
    margin: auto;
}

.contact_tel .btn {
    background: #ff417f;
    height: 75px;
    font-size: 1.5em;
}

.contact_tel .btn:hover {
    background: #ff719f;
    transition: .5s all ease-out;
}

.slick-slide img#top_slider2,
.slick-slide img#top_slider4,
.slick-slide img#top_slider6,
.slick-slide img#top_slider7 {
    object-position: center;
}