/*
Theme Name:Original Theme
Description:えにし訪問看護ステーションサイトのオリジナルテーマです。
Version:1.0
*/

* {
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

html,
body{
    margin: 0;
    padding: 0;
}

body{
    margin:0;
    font-family: "Zen Kaku Gothic New", sans-serif;
    line-height: 1.8;
    color: #1d1d1d;
    background: #F7F6F2;
}

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

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

/* ====ヘッダー==== */

.site-header{
    height: 90px;
    display: flex;
    align-items: center;
    background: #F7F6F2;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    flex-shrink: 0;
}

.header-logo a{
    display: block;
    flex-shrink: 0;
}

.header-logo img{
    width: 300px;
    display: block;
}

.site-title{
    margin: 0;
    font-size:11px;
    font-weight: normal;
    line-height: 1.2;
    color: #1d1d1d;
    white-space:nowrap;
}

.header-nav-area{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding: 0 16px;
    margin-right: 24px;
}

.global-nav{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.main-menu,
.sub-menu{
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu{
    gap: 17px;
    line-height: 1;
}

.sub-menu{
    gap: 12px;
    line-height: 1;
    margin-top: 6px;
}

.main-menu a{
    font-size: 18px;
    font-weight: bold;
    line-height: 1.8;
    color: #1d1d1d;
}

.sub-menu a{
    font-size: 13px;
    font-weight: normal;
    line-height: 1.8;
    color: #1d1d1d;
    font-weight: 600;
}

.sub-menu li{
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-menu li::before{
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid #ccc;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.main-menu a:hover,
.sub-menu a:hover{
    opacity: 0.7;
}

.header-button{
    width: 170px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #078D56;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    border-radius: 999px;
}

.header-button:hover{
    opacity: 0.85;
}

/* ====ファーストビュー==== */

.first-view{
    width: 100%;
    background: #333;
}

.first-view-inner{
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
}

.first-view-inner img{
    width: 100%;
    height: auto;
    display: block;
}

/* ====フッター==== */

.site-footer{
    padding: 24px;
    background: #222;
    color: #fff;
    text-align: center;
}

.site-footer p{
   margin: 0;
   color: #fff !important;
}

.site-footer small{
    font-size: 12px;
}

/* ====How==== */

.how-section{
    padding: 40px 0;
    background: #F7F6F2;
    text-align: center;
}

.section-inner{
    max-width: 1080px;
    width: calc(100%-40px);
    margin: 0 auto;
}

.how-section .section-label{
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: bold;
    color: #777;
    letter-spacing: 0.12em;
    color: #21A36E;
}

.how-section h2{
    margin: 0 0 20px;
    font-size: 38px;
    line-height: 1.5;
    color: #1d1d1d;
}

.how-section .section-lead{
    max-width: 720px;
    margin: 0 auto 38px;
    font-size: 16px;
    line-height: 2;
}

.how-section ul{
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.how-section li{
    flex: 1;
    padding: 32px;
    background: #fdfdfd;
    border-radius: 20px;
}

.how-section li img{
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 0 20px;
    border-radius: 14px;
}

.how-section li h3{
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.5;
    color: #21A36E;
}

.how-section li p{
    margin: 0;
    font-size: 18px;
    line-height: 1.9;
    color: #1d1d1d;
    font-weight: 500;
}

/* ====ボディ==== */

.about-section,
.area-section{
    padding: 80px 0;
    background: #F7F6F2;
}

.about-section .section-inner,
.area-section .section-inner{
    display: flex;
    align-items: center;
    gap: 56px;
}

.area-section .section-inner > img{
    width: 50%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.area-section .section-inner > div{
    flex: 1;
}

.about-section h2,
.area-section h2{
    margin: 0 0 24px;
    font-size: 38px;
    line-height: 1.5;
    color: #1d1d1d;
}

.about-section .section-inner > div > p,
.area-section .section-inner > div > p{
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 2;
    color: #1d1d1d;
    font-weight: 500;
}

.about-section .section-inner > div > .section-label,
.area-section .section-inner > div > .section-label{
    margin: 0 0 14px;
    color: #21A36E
}

.about-section .section-inner > div > p:last-child,
.area-section .section-inner > div > p:last-child{
    margin-bottom: 0;
}


/* ====サービス==== */

.service-section{
    padding: 80px 0;
    background: #F7F6F2;
    text-align: center;
}

.service-section h2{
    margin: 0 0 20px;
    font-size: 38px;
    line-height: 1.5;
    color: #1d1d1d;
}

.service-section .section-label{
    color: #21A36E;
    font-size: 18px;
}

.service-section .section-lead{
    max-width: 780px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 2;
}

.service-section ul{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.service-section li{
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.service-section li img{
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.service-section li h3{
    margin: 24px 24px 12px;
    font-size: 20px;
    line-height: 1.5;
    color: #21A36E;
}

.service-section li p{
    margin: 0 24px 28px;
    font-size: 18px;
    line-height: 1.9;
    color: #1d1d1d;
    font-weight: 500;
}

/* ==== Area ====*/

.area-lead{
    margin-bottom: 24px;
    line-height: 2;
}

.badge{
    display: inline-block;
    padding: 4px 16px;
    margin: 0 4px;
    border: 2px solid #2ca86b;
    border-radius: 999px;
    color: #2ca86b;
    font-weight: 700;
    font-size: 0.95rem;
}

.area-content{
    display:flex;
    flex-direction:column;
}

/* ====CTA==== */

.cta-section{
    padding: 80px 0;
    background: #078D56;
    color: #fff;
    text-align: center;
    border-radius: 40px 40px 0 0;
}

.cta-section .section-label{
    color: #fff;
}

.cta-section h2{
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.5;
}

.cta-section .section-lead{
    max-width: 780px;
    margin: 0 auto 36px;
    font-size: 16px;
    line-height: 2;
    font-weight: 500;
}

.cta-section a{
    display: inline-block;
    min-width: 260px;
    padding: 18px 36px;
    color: #078D56;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    background: #fff;
    border-radius: 999px;
}

.cta-section a:hover{
    opacity: 0.8;
}

.cta-section small{
    display: block;
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.8;
    color: #fdfdfd;
}

/* ====トップページ全体の仕上げ==== */

.how-section,
.about-section,
.area-section,
.service-section,
.cta-section{
    padding-top: 120px;
    padding-bottom: 120px;
}

.how-section h2,
.about-section h2,
.area-section h2,
.service-section h2,
.cta-section h2{
    margin: 0 0 40px;
    font-size: 36px;
    line-height: 1.5;
}

.how-section li,
.service-section li{
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.section-label{
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.12em;
}

/* ====レスポンシブ==== */

@media (max-width: 768px) {
   
    .section-inner{
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 auto;
    }

    .how-section,
    .service-section,
    .cta-section,
    .about-section,
    .area-section{
        padding-top: 48px;
        padding-bottom: 48px;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .how-section h2,
    .service-section h2,
    .cta-section h2,
    .about-section h2,
    .area-section h2{
        font-size: 28px;
        line-height: 1.5;
    }

    .section-lead{
        margin-bottom: 32px;
        font-size: 15px;
        line-height: 1.9;
    }

    .area-section .area-text,
    .about-section .about-text >p{
        text-align: left;
    }

    .about-section .section-label{
        text-align: center !important;;
    }

    /* ====FV：スマホではスマホ用画像を比率のまま表示==== */

    .first-view{
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .first-view-inner{
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .first-view-inner picture{
        display: block;
        width: 100%;
    }

    .first-view-inner img{
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

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

    .site-header{
        height: auto;
        padding: 14px 0;
    }

    .site-header .section-inner{
        display: block;
    }

    .site-title{
        margin: 0 0 10px;
        text-align: center;
    }

    .site-title img{
        max-height: 36px;
    }


    /* ====How：スマホでは必ず１列 ====*/

    .how-section ul{
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .how-section li{
        width: 100%;
        margin: 0 0 20px;
        padding: 24px;
    }

    .how-section li:last-child{
        margin-bottom: 0;
    }

    .how-section li img{
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        margin: 0 0 20px;
    }

    .how-section li h3{
        margin: 0 0 12px;
        font-size: 20px;
        line-height: 1.5;
    }

    .how-section li p{
        margin: 0;
        font-size: 16px;
        line-height: 1.9;
    }

    /* ====Body==== */

    .area-section .section-inner{
        display: flex;
        flex-direction: column;
    }

    .area-section .section-inner > img{
        width: 100%;
        height: auto;
        margin-bottom: 0px;
        order: 4;
    }

    .about-section .section-inner > div > p,
    .area-section .section-inner > div > p{
        font-size: 16px;
        line-height: 1.9;
    }

    /* ====Service==== */

    .service-section ul{
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .service-section li img{
        height: auto;
    }

    .service-section li p{
        font-size: 16px;
    }

    /* ====CTA==== */

    .cta-section a{
        width: 100%;
        min-width: 0;
        padding: 18px 24px;
    }
}

/* ====================
スマホ用ハンバーガーメニュー
==================== */

/* ====PCではハンバーガーボタンを非表示==== */

.menu-toggle{
    display: none;
}

/* ====PC用：header-nav-areaの中でナビとボタンを横並びにする==== */

.header-nav-area{
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0;
}

.header-nav-area .global-nav{
    margin-right: 30px;
}

.header-nav-area .header-button{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ====スマホ表示==== */

@media (max-width: 768px) {

    .site-header{
        position: relative;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 65px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .header-logo{
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        padding-left: 0;
    }

    .header-logo a{
        display: block;
        line-height: 1;
    }

    .header-logo img{
        width: 250px;
        height: auto;
        display: block;
    }

    .site-title{
        margin: 0;
        font-size: 12px;
        line-height: 1.2;
    }

    .menu-toggle{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #ccc;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        flex-shrink: 0;
    }

    .menu-toggle span{
        display: block;
        width: 22px;
        height: 2px;
        margin: 0 auto;
        background: #333;
    }

    .header-nav-area{
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        padding: 0 16px 20px;
        box-sizing: border-box;
        background: #f7f7f7;
        z-index: 1001;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .header-nav-area.is-open{
        display: block;
    }

    .header-nav-area .global-nav{
        margin-right: 0;
    }

    .main-menu,
    .sub-menu{
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-menu li,
    .sub-menu li{
        display: block;
        border-bottom: 1px solid #e3e3e3;
    }

    .main-menu a,
    .sub-menu a{
        display: block;
        padding: 22px 0;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        text-align: center;
        font-weight: 600;
    }

    .sub-menu{
        margin-top: 0;
    }

    .sub-menu li{
        gap: 0;
    }

    .sub-menu li:before{
        display: none;
    }

    .header-nav-area .header-button{
        width: 100%;
        max-width: none;
        height: 56px;
        margin-top: 20px;
        font-size: 14px;
    }
}

/* ====固定ページ==== */

.page-main{
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-content{
    max-width: 800px;
    margin: 0 auto;
}

.page-title{
    margin-bottom: 32px;
    font-size: 32px;
    line-height: 1.5;
    text-align: center;
}

.page-body{
    font-size: 18px;
    line-height: 1.9;
}

.page-body h2{
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-size: 24px;
    line-height: 1.5;
    border-bottom: 1px solid #ddd;
}

.page-body h3{
    margin-top: 36px;
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.5;
}

.page-body p{
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.page-body ul,
.page-body ol{
    margin-bottom: 24px;
    padding-left: 1.5em;
}

.page-body li{
    margin-bottom: 8px;
}

.page-body table{
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.page-body th,
.page-body td{
    padding: 14px 16px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.page-body th{
    width: 30%;
    background: #f7f7f7;
    font-weight: 700;
}

@media screen and (max-width: 768px) {

    .page-main{
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-content{
        max-width: 100%;
    }

    .page-title{
        margin-bottom: 24px;
        font-size: 26px;
    }
    
    .page-body{
        font-size: 15px;
    }
    
    .page-body h2{
        margin-top: 40px;
        font-size: 22px;
    }

    .page-body h3{
        margin-top: 32px;
        font-size: 18px;
    }

    .page-body table{
        font-size: 14px;
    }

    .page-body th,
    .page-body td{
        display: block;
        width: 100%;
    }

}

/* ====お知らせ一覧====*/

.blog-main,
.archive-main{
    padding-top: 60px;
    padding-bottom: 60px;
}

.blog-heading,
.archive-heading{
    margin-bottom: 40px;
    text-align: center;
}

.blog-title,
.archive-title{
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1.5;
}

.blog-lead{
    font-size: 16px;
    line-height: 1.8;
}

.blog-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card{
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
}

.blog-card-link{
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card-image{
    aspect-ratio: 3 / 2;
    background: #f7f7f7;
}

.blog-card-image img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body{
    padding: 24px;
}

.blog-date{
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #777;
}

.blog-card-title{
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.5;
}

.blog-excerpt{
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
}

.blog-pagination{
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .page-numbers{
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.blog-pagination .current{
    background: #333;
    color: #fff;
}

/*====記事詳細====*/

.single-main{
    padding-top: 60px;
    padding-bottom: 60px;

}

.single-content{
    max-width: 800px;
    margin: 0 auto;
}

.single-header{
    margin-bottom: 40px;
    text-align: center;
}

.single-date{
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: #777;
}

.single-title{
    font-size: 32px;
    line-height: 1.5;
}

.single-eyecatch{
    margin-bottom: 40px;
}

.single-eyecatch img{
    display: block;
    width: 100%;
    height: auto;
}

.single-body{
    font-size: 18px;
    font-weight: 500;
    line-height: 1.9;
}

.single-body h2{
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-size: 24px;
    line-height: 1.5;
    border-bottom: 1px solid #ddd;
}

.single-body h3{
    margin-top: 36px;
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.5;
}

.single-body p{
    margin-bottom: 20px;
}

.single-body ul,
.single-body ol{
    margin-bottom: 24px;
    padding-left: 1.5em;
}

.single-body li{
    margin-bottom: 8px;
}

.single-nav{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
}

.single-nav a,
.back-to-blog a{
    text-decoration: underline;
}

.back-to-blog{
    margin-top: 32px;
    text-align: center;
}

@media screen and (max-width:768px) {

    .blog-main,
    .archive-main,
    .single-main{
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .blog-heading,
    .archive-heading{
        margin-bottom: 32px;
    }

    .blog-title,
    .archive-title,
    .single-title{
        font-size: 26px;
    }

    .blog-list{
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-body{
        padding: 20px;
    }
    
    .single-header{
        margin-bottom: 32px;
    }

    .single-eyecatch{
        margin-bottom: 32px;
    }

    .single-body{
        font-size: 18px;
    }

    .single-body h2{
        margin-top: 40px;
        font-size: 22px;
    }

    .single-body h3{
        margin-top: 32px;
        font-size: 18px;
    }

    .single-nav{
        display: block;
    }

    .single-nav-prev,
    .single-nav-next{
        margin-bottom: 16px;
    }

}

/* ====お問い合わせフォーム====*/

.page-body .wpcf7-form{
    max-width: 640px;
    margin: 0 auto;
}

.page-body .wpcf7-form label{
    display: block;
    font-weight: 700;
}

.page-body .wpcf7-form input[type="text"],
.page-body .wpcf7-form input[type="email"],
.page-body .wpcf7-form input[type="tel"],
.page-body .wpcf7-form select,
.page-body .wpcf7-form textarea{
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid #ccc;
    font-size: 18px;
    line-height: 1.6;
}

.page-body .wpcf7-form textarea{
    min-height: 180px;
}

.page-body .wpcf7-form input[type="submit"]{
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: #078D56;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.page-body .wpcf7-form input[type="submit"]:hover{
    opacity: 0.8;
}

.page-body .wpcf7-not-valid-tip{
    margin-top: 6px;
    font-size: 14px;
    color: #c00;
}

.page-body .wpcf7-response-output{
    margin: 24px 0 0;
    padding: 16px;
}