/*
Theme Name: Olive Theme
Description: ケアステーションオリーブのオリジナルWordPressテーマ
Author: yuko
Version: 1.0
*/

@charset "UTF-8";

html {
    font-size: 100%;
    overflow-x: hidden;
}
/* 全体はゴシック系（Noto Sans JPを含む） */
body {
    font-family:
        'Noto Sans JP',
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Roboto",
        "Helvetica Neue",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;
}

/* M PLUS Rounded を使いたいところにこのクラスを指定 */
.mplus {
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}
li {
    list-style: none;
}
a {
    color: #009453;
    text-decoration: none;
}
a:hover {
    opacity: 0.7;
}
 /* 横幅 */
.wapper {
    max-width: 940px;
    padding: 0 20px;
    margin: 0 auto;
}

.wapper-1080 {
    max-width: 1120px;
    padding: 0 20px;
    margin: 0 auto;
}


/* ヘッダー */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #fff;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

#header .logo {
    flex: 0 0 280px;
    overflow: hidden;
    white-space: nowrap;
}

#header .logo img {
    width: 100%;
    height: auto;
    display: block;
}


#header .navi {
    flex: 0 0 calc(100% - 280px);
    overflow: hidden;
    margin-left: 48px;   /* ← ロゴとの間に余白をつける */
    padding-right: 40px; /* ← ナビ右端の余白（任意） */
}

#header .navi .menu {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 20px;
}




#header .navi .menu li {
    font-size: 13px;
    margin-left: 10px;
    border-bottom: 2px solid #cae5cd;
    padding-bottom: 5px;
}

#header .logo a {
    display: block;
}


/* コンテンツが隠れないように */
main {
    margin-top: 80px !important;
}



/* フッターここから */
/* 背景緑の上辺が凹み曲線 */
#footer {
    position: relative;
    background-color: #45b035; /* お好みの色に変更 */
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* 擬似要素で上部の凹みを作成 */
#footer::before {
    content: '';
    position: absolute;
    top: 0; /* 凹みの深さ */
    left: 0;
    width: 100%;
    height: 120px;
    background-color: #fff; /* footerと同じ色 */
    clip-path: ellipse(75% 100% at 50% 0%);
    z-index: 2;
}


/* 中身のラッパーを上に出す */
#footer .wapper {
    position: relative;
    z-index: 1;
    margin-top: 8%;
}

#footer .wapper p {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    
}
#footer .wapper .tel2 {
    font-size: 27px;
    margin-bottom: 0.8%;
}
#footer .phone-icon {
    height: 0.8em; /* ← 少し小さく調整 */
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -5px; /* ← 追加：少し上に上げる */
}

#footer .menu2 {
    display: grid;
    grid-template-columns: auto auto;  /* 2列 */
    column-gap: 20px;                  /* 間隔を20pxにする */
    font-size: 12px;
    line-height: 2;
    width: fit-content;                /* 中身の幅に合わせる */
    margin: 20px auto;                 /* コンテンツを中央に配置 */
}

#footer .menu2 ul {
    list-style: none;    /* リストマーカーを消す */
    padding: 0;
    margin: 0;
    text-align: center;
}

#footer .menu2 li {
    margin: 0;
    padding: 0;
}

#footer .menu2 a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
}


/* スマートフォン */
@media screen and (max-width: 767px) {
    .pc {
        display: none;
    }
    main {
        padding-top: 60px;
    }

    #header {
        position: fixed;
        top: 0;
        left: 0;
        height: 60px;
        width: 100%;
        z-index: 1000;
    }
/* ハンバーガーメニューがそれより上に来るように */
    #header .hamburger,
    #header .navi {
        z-index: 9999;
    }  

    #header .logo {
        width: 95vw;     /* 画面幅の95% */
        margin-top: 10px;
        padding: 0 5px 0 10px;
        box-sizing: border-box;
    }


    #header .navi {
        width: 80%;
        height: 90%;
        background-color: #fff;
        position: fixed;
        top: 0;
        right: -95%;
        z-index: 20;
        transition: all 0.6s;
    }
    #header .navi.active {
        right: 0;
    }
    #header .navi .menu {
        width: 100%;
        height: 100vh;
        flex-direction: column;
        padding: 50px 0 50px 20px;
        overflow: auto;
        display: flex;
    }
    #header .navi .menu li {
        padding: 30px 0 10px 0;
        margin-left: 0;
        border-bottom: 1px solid #009453;
        width: 100%;
        max-width: 280px;
        font-size: 17px;
        box-sizing: border-box;
    }
    
    /* くの字の矢印 */
    #header .navi .menu li::before {
        content: "";
        width: 5px;
        height: 5px;
        display: inline-block;
        border-top: 1px solid #727171;
        border-right: 1px solid #727171;
        position: relative;
        top: -2px;
        margin-top: 19px;
        left: 260px;
        margin-right: 5px;
        transform: rotate(45deg);
        
    }
    
     #header .hamburger {
    display: block;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 30;
    background-color: #39a869;
  }

  #header .hamburger span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    display: inline-block;
    position: absolute;
    left: 10px;
    transition: all 0.4s;
  }

  #header .hamburger span:nth-of-type(1) {
    top: 13px;
  }
  #header .hamburger span:nth-of-type(2) {
    top: 23px;
  }
  #header .hamburger span:nth-of-type(3) {
    top: 33px;
  }

  #header .hamburger.active span:nth-of-type(1) {
    top: 24px;
    transform: rotate(-45deg);
  }
  #header .hamburger.active span:nth-of-type(2) {
    opacity: 0;
  }
  #header .hamburger.active span:nth-of-type(3) {
    top: 24px;
    transform: rotate(45deg);
  }

    /* フッターここから */
    /* 背景緑の上辺が凹み曲線 */
    #footer {
        position: relative;
        background-color: #45b035; /* お好みの色に変更 */
        padding: 60px 20px 60px;
        text-align: center;
        color: #fff;
        overflow: hidden;
        margin-top: -4px; /* ← 追加！ */
    }
    #footer::before {
        content: '';
        position: absolute;
        top: 0; /* 凹みの深さ */
        left: 0;
        width: 100%;
        height: 100px;
        background-color: #fff; /* footerと同じ色 */
        clip-path: ellipse(75% 100% at 50% 0%);
        z-index: 2;
    }

    #footer .wapper {
        position: relative;
        z-index: 1;
        margin-top: 15%;
    }
    #footer .wapper p {
        font-size: 15px;
        line-height: 1.5;
        text-align: center;
    
    }
    #footer .wapper .tel2 {
        font-size: 34px;
        margin-bottom: 0.8%;
    }
    #footer .menu2 {
        display: grid;
        width: 280px;
        column-gap: 50px;
        grid-template-columns: repeat(2,auto);
        font-size: 15px;
        line-height: 2;
        margin: 10% auto;
    }
    
    #footer .end {
        color: #fff;
        font-size: 10px;
        margin-bottom: 10%;
        margin-top: 3%;
        text-align: center;
    }

    /* iPhoneで白文字を確実に */
    #footer,
    #footer a,
    #footer .end,
    #footer .wapper p,
    #footer .tel2 {
        color: #fff !important;
    }
}