/* ===================================================================
CSS information

 File Name  : day_service.css
 Style Info : コンテンツに関するスタイル指定
=================================================================== */
/* 基本設定 */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    margin: 0;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h2,
h3,
p {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: #333;
}

a:link {
    color: #333;
}



/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    transition: background-color 0.3s ease;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    font-size: 15px;
    font-weight: bold;
}



/* スクロール時にヘッダーに追加されるクラス */
header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* mainタグにヘッダー分の余白を追加 */
main {
    /* padding-top: 75px; */
}

/* slider */
.hero {
    position: absolute;
    right: 4%;
    bottom: 40%;
    width: 30%;
}

.hero-img img {
    display: block;
    width: 100%;
    height: auto;
    z-index: 10;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    background-image: url('/wp-content/themes/cubetheme/home_care/img/home_care_slider.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

.hero-section h1 {
    display: inline-block;
    position: relative;
    font-size: 5rem;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}

.hero-section h1::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 25%;
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(50px);
    opacity: 0.8;
}

.hero-section h1::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 75%;
    width: 250px;
    height: 250px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(50px);
    opacity: 0.8;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}







/* セクション共通スタイル */
section {
    padding: 60px 0;
    text-align: center;
}

section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    color: #51B851;
    font-weight: 500;
    padding-top: 40px;
    font-size: 4rem;
}

section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background-image: url('/wp-content/themes/cubetheme/home_care/img/h2_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
}

section h3 {
    font-size: 2.5rem;
}

p {
    font-size: 2rem;
}

/* イントロ */
.intro p {
    line-height: 1.8;
}

/* 特徴セクション */


.features-container {
    display: flex;
    gap: 30px;
}

.feature-img1 {
    /* flex: 1; */
    position: relative;
    background-color: #A0E0C6;
    padding: 30px;
    border-radius: 50px;
    text-align: left;
}

.feature-img2 {
    /* flex: 1; */
    position: relative;
    background-color: #A5E1A1;
    padding: 30px;
    border-radius: 50px;
    text-align: left;
}

.feature-box h3 {
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.feature-box p {
    line-height: 2;
}

#caremane::before {
    content: '';
    display: inline-block;
    width: 17%;
    height: 32%;
    background-image: url(/wp-content/themes/cubetheme/home_care/img/icon_01.png);
    position: absolute;
    left: 50px;
    top: -30px;
    background-size: contain;
    background-repeat: no-repeat;
}

#careplan::after {
    content: '';
    display: inline-block;
    width: 20%;
    height: 35%;
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_02.png');
    position: absolute;
    right: 10px;
    top: -40px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* 当社の強み */

.strength-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    align-items: stretch;
}



.strength-box {
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: start;

    background-color: #A5E1A1;
    border-radius: 50px;
    padding: 5rem 3.5rem;
    box-sizing: border-box;
    text-align: left;
}

.strength-box p {
    color: #333;
    font-size: 2rem;
    line-height: 1.6;
    margin: 0;
}

.strength-box::after {
    content: "";
    grid-row: 2;
    width: 100px;
    height: 100px;
    background: no-repeat center / contain;
}

.strength-img1::after {
    background-image: url("/wp-content/themes/cubetheme/home_care/img/icon_08.png");
}

.strength-img2::after {
    background-image: url("/wp-content/themes/cubetheme/home_care/img/icon_09.png");
}

.strength-img3::after {
    background-image: url("/wp-content/themes/cubetheme/home_care/img/icon_06.png");
}




/* ご利用いただける方セクション */
.for-whom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.for-whom .badge-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.for-whom .badge-box .badge-color1 {
    background-color: #A0E0C6;
}

.for-whom .badge-box .badge-color2 {
    background-color: #A5E1A1;
}

.for-whom .badge {
    color: #333;
    font-size: 24px;
    padding: 10px 40px;
    border-radius: 15px;
    display: block;
    margin-bottom: 30px;
}

.for-whom p {
    line-height: 2;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

/* ご利用までの流れセクション */
.process {
    background-color: #A0E0C6;
    border-radius: 60px;
}

#process_h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
    padding-top: 40px;
    font-size: 4rem;
}

#process_h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_dot.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
}


.process-steps {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    text-align: left;
    position: relative;
}

.process-steps::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 100%;
    left: 21px;
    transform: translateY(-50%);
}



.process-steps .step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    height: 100%;
    width: 4px;
    background-color: #fff;
}


.process-steps .step h3 {
    display: inline-block;
    padding: 1rem;
    width: 30%;
    position: relative;
    z-index: 10;
}

.process-steps .step p {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 50px;
    align-items: center;
    padding: 2rem 0 2rem 10rem;
}

.process-steps .step .step1::before,
.process-steps .step .step2::before,
.process-steps .step .step3::before,
.process-steps .step .step4::before,
.process-steps .step .step5::before {
    content: "";
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}


.process-steps .step .step1::before {
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_03.png');
    width: 90px;
    height: 90px;
}

.process-steps .step .step2::before {
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_04.png');
    width: 120px;
    height: 120px;
}

.process-steps .step .step3::before {
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_05.png');
    width: 120px;
    height: 120px;
}

.process-steps .step .step4::before {
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_06.png');
    width: 120px;
    height: 120px;
}

.process-steps .step .step5::before {
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_07.png');
    width: 120px;
    height: 120px;
}


.process h3 {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 0;
}

.process h3 span {
    color: #A0E0C6;
    padding: 0 1rem;
    font-size: 2.5rem;
}

.process p {
    line-height: 1.6;
}

/* お問い合わせセクション */
.contact {
    background-color: #fff;
}

.contact-title {
    color: #333;
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 5px;
}

.contact h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.contact-subtitle {
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    border-radius: 8px;
}

.contact-methods a {
    display: grid;
    grid-template-columns: 1fr;
    /* gap: 8px; */
    background-color: #A0E0C6;
    border-radius: 50px;
    padding: 5rem;
}

.contact-box {
    position: relative;
}


.contact-box p {
    line-height: 2;
}

.contact-box .phone-number,
.contact-box .mail {
    /* font-size: 4rem;
    color: #333;
    padding: 1.5rem 0;
    margin: 10px 0; */
    display: grid;
    font-size: 4rem;
    color: #333;
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    align-items: center;
    font-weight: bold;
    margin: 30px;
}

.contact-box .phone-number::before {
    /* content: '';
    position: absolute;
    top: 20%;
    left: 14%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_tel.png');
    background-size: cover;
    background-position: center; */


    aspect-ratio: 70 / 73;
    content: "";
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_tel.png');
    background-size: cover;
    margin-left: 10px;
}

.contact-box .mail::before {
    /* content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_mail.png');
    background-size: cover;
    background-position: center; */

    aspect-ratio: 70 / 73;
    content: "";
    background-image: url('/wp-content/themes/cubetheme/home_care/img/icon_mail.png');
    background-size: cover;
    margin-left: 10px;
}

.contact-box .contact-button:hover {
    background-color: #00502a;
}

.contact-box span {
    font-size: 1.5rem;
    letter-spacing: normal;
}

.white {
    color: #fff;
    font-size: 2rem;
}


.area-box {
    margin: 4rem 0;
    text-align: center;
}

.area-box h3 {
    margin-bottom: 2.5rem;
    color: #555;
    font-size: 2.5rem;
}

.area-box .area {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


.area-box .area .badge {
    display: inline-block;
    color: #333;
    font-size: 2rem;
    padding: 15px 24px;
    border-radius: 30px;
    background-color: #A5E1A1;
}




/* フッター */
footer {
    background-color: #A5E1A1;
    padding-top: 40px;
}

footer a {
    text-decoration-line: underline;
}


.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
}

.footer-info {
    text-align: left;
}

.footer-info .logo h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 2;
}


.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.footer-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 30px;
    border-radius: 50px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.footer-btn:hover {
    /* background-color: #f0f0f0;
  color: #000; */
}

.footer-nav a {
    font-size: 1.5rem;
}

.red {
    color: #ff0000 !important;
}

.copyright {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    color: #777;
}

.copyright p {
    font-size: 1.5rem;
}


/* --- モバイルメニュー用のCSS追加 --- */
/* ハンバーガーアイコン */
.hamburger-menu {
    display: none;
    /* PCでは非表示 */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* モバイル用ナビゲーション */
/* PCではdisplay: none;を適用しないように修正 */

/* メニューが開いているときに`position`などを設定 */
header nav.menu-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
}


/* --- レスポンシブデザイン --- */
@media (max-width: 768px) {

    p {
        font-size: 1.3rem;
    }

    section h3 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    /* slider */
    .hero-section {
        height: auto;
    }

    .hero {
        right: 0%;
        bottom: 30%;
        font-size: 1.5rem;
    }

    .hero-section h1 {
        display: inline-block;
        font-size: 1.3rem;
        padding: 10px 20px;
    }

    .hero-section h1::before {
        top: 50%;
        left: 50%;
        width: 200px;
        height: 100px;
        filter: blur(40px);
    }

    .hero-section h1::after {
        content: none;
    }

    .hero::before {
        right: 0%;
        top: 50%;
        transform: translateY(-50%);
        width: 150px;
        height: 100px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%);
    }

    .hero::after {
        content: none;
    }


    /* 特徴セクション */
    .features-container {
        display: block;
    }

    .feature-img1 {
        margin-bottom: 5rem;
    }


    .feature-box h3 {
        font-size: 1.6rem;
    }

    #caremane {
        margin-left: 30px;
    }

    /* #careplan {
        margin-right: 30px;
    } */


    #caremane::before {
        width: 25%;
        height: 35%;
        left: -15px;
        top: -30px;
    }

    /* 当社の強み */
    .strength-boxes {
        grid-template-columns: 1fr;
    }

    .strength-box p {
        color: #333;
        font-size: 1.5rem;
        line-height: 1.6;
        margin: 0;
    }


    /* ご利用までの流れセクション */
    #process_h2 {
        font-size: 2rem;
    }

    /* お問い合わせセクション */

    .contact-title {
        color: #333;
        font-size: 18px;
        font-weight: normal;
        margin-bottom: 5px;
    }

    .contact-methods {
        display: block;
    }

    .contact-methods a {
        padding: 2rem;
        margin: 20px;
    }

    .contact-box .phone-number,
    .contact-box .mail {
        font-size: 1.8rem;
    }


    .contact-box .phone-number::before {
        top: 15%;
        left: 3%;
        width: 35px;
        height: 35px;
    }

    .contact-box .mail::before {
        top: 40%;
        left: 1%;
        width: 35px;
        height: 35px;
    }

    .white {
        color: #fff;
        font-size: 1.6rem;
    }

    .area-box .area {
        display: block;
        justify-content: center;
        gap: 1rem;
    }

    .area-box .area .badge {
        display: block;
        margin: 15px;
    }



    /* フッター */
    footer {
        background-color: #A5E1A1;
        padding-top: 40px;
    }

    .footer-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }

    .footer-btn {
        width: auto;
        background-color: white;
        padding: 10px;
        border-radius: 50px;
        font-size: 14px;
        text-align: center;
    }

    .footer-nav a {
        font-size: 1rem;
    }

    .copyright p {
        font-size: 1rem;
    }

    .process-steps .step h3 {
        width: 90%;
    }

    .process h3 span {
        font-size: 2rem;
    }

    .process-steps .step p {
        display: grid;
        gap: 0px;
        padding: 2rem 0 1rem 5rem;
        grid-template-columns: subgrid;
    }

    /* セクション共通スタイル */
    section h2 {
        font-size: 2rem;
    }


    /* --- モバイルメニュー用のCSS --- */
    /* PCでは非表示にしたハンバーガーアイコンを、スマホでは表示 */
    .hamburger-menu {
        display: flex;
    }

    /* PC用のナビゲーションをスマホでは非表示 */
    header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    /* メニューが開いているときの表示 */
    header nav.menu-open {
        display: flex;
        transform: translateY(0);
    }

    /* ナビゲーションリスト */
    header nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    header nav ul li a {
        font-size: 20px;
    }
}