/* 全ページ共通　body(リセットCSSはdestyle.cssで) */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

h1,
h2,
h3 {
    line-height: 1.3em;
}

/* 全ページ共通　ヘッダー */
header {
    max-width: 1920px;
    height: 105px;
    margin: 40px auto;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

/* 全ページ共通　ヘッダー保育園名 */
h1 {
    font-weight: 500;
    font-size: 41px;
    font-family: "Kiwi Maru";
    max-width: 300px;
    padding-left: 1rem;
}

h1 img {
    width: 100%;
}

/* 全ページ共通　ヘッダー・フッター中央ナビメニュー */
header nav,
footer nav {
    width: 550px;
    font-family: "Kiwi Maru";
}

header nav ul,
footer nav ul {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 1em;
    padding-right: 1em;
    font-size: 16px;
}

header nav ul {
    padding-bottom: 10px;
}

.nav_dl {
    padding-bottom: 10px;
}

/* 全ページ共通　ヘッダー・フッター右上　ブログ・インスタアイコン */
.nav_dl dl {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-wrap: nowrap;
    font-size: 14px;
    font-weight: 400;
    font-family: "Kiwi Maru";
    padding-right: 1em;
}

.nav_dl dt {
    text-align: right;
    padding-right: 1em;
    font-size: 12px;
}

.nav_dl dd img {
    width: 25px;
    padding-top: 20px;
}

/* 全ページ共通　ヘッダー・フッター　PC時ナビメニュー　ホバーアニメ */
header nav a,
footer nav a {
    position: relative;
    padding-bottom: 0.25em;
}

header nav a::before,
footer nav a::before {
    background: #ff949f;
    content: "";
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
    margin: auto;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform 0.3s;
}

header nav a:hover,
footer nav a:hover {
    color: #ff949f;
}

header nav a:hover::before,
footer nav a:hover::before {
    transform-origin: left top;
    transform: scale(1, 1);
}

header .nav_dl a:hover img,
footer .nav_dl a:hover img {
    filter: invert(70%) sepia(4%) saturate(4602%) hue-rotate(306deg) brightness(96%) contrast(116%);
}

header .nav_dl a:hover,
footer .nav_dl a:hover {
    color: #ff949f;
}

/* 全ページ共通　ボタン・下線つきリンクテキスト */
.pink_button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Kiwi Maru";
    font-size: 24px;
    color: #fff;
    background-color: #ff949f;
    border-radius: 20px;
    max-width: 320px;
    width: 100%;
    height: 76px;
    margin: 50px auto;
}

.link_text {
    display: block;
    margin: 0 auto;
    width: 200px;
    font-family: "Kiwi Maru";
    font-size: 18px;
    color: #472800;
    text-align: center;
    border-bottom: dotted 2px #472800;
}

/* 全ページ共通　ボタン・下線つきリンクテキスト ホバーアニメ*/
.pink_button:hover {
    background-color: #fff;
    border: 1px solid #ff949f;
    color: #ff949f;
    font-weight: 300;
    transition: 0.3s;
}

.link_text:hover {
    background-color: #472800;
    color: #fff;
    transition: 0.3s;
}

/* TOPページのみ　メインビジュアル */
.mv.top {
    height: calc(100vh - 184px) !important;
    background-size: cover;
    background-position: center;
}

/* ヘッダー右メニュー　PCレイアウト時非表示 */
.mv .nav_dl {
    display: none;
}

/* 全ページ共通　ドロワーメニュー */
.openbtn {
    position: fixed;
    top: 30px;
    right: 10px;
    z-index: 9999;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
}

.openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}
.openbtn span:nth-of-type(2) {
    top: 23px;
}
.openbtn span:nth-of-type(3) {
    top: 31px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30px;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30px;
}

#g-nav {
    position: fixed;
    z-index: -1;
    opacity: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    transition: all 0.3s;
    background-color: #fff;
}

#g-nav.panelactive {
    opacity: 1;
    z-index: 1;
}

#g-nav.panelactive #g-nav-list {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav ul {
    display: none;
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#g-nav.panelactive ul {
    display: block;
}

#g-nav ul li {
    padding-bottom: 2em;
    display: flex;
    align-items: center;
}

#g-nav ul li a {
    display: flex;
    align-items: center;
}

#g-nav-list ul li a::before {
    content: "";
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

#g-nav-list ul li:nth-of-type(1) a::before {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/icon-deco01.png);
}

#g-nav-list ul li:nth-of-type(2) a::before {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/icon-deco02.png);
}

#g-nav-list ul li:nth-of-type(3) a::before {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/icon-deco03.png);
}

#g-nav-list ul li:nth-of-type(4) a::before {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/icon-deco04.png);
}

#g-nav-list ul li:nth-of-type(5) a::before {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/icon-deco05.png);
}

#g-nav ul li:nth-of-type(6) {
    padding-bottom: 0;
    border-bottom: #472800 2px dotted;
}

#g-nav-list ul li:nth-of-type(6) a {
    padding-bottom: 50px;
}

#g-nav-list ul li:nth-of-type(6) a::before {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/icon-deco06.png);
}

#g-nav-list ul li:nth-of-type(7) a::before {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/icon-blog.svg);
}

#g-nav-list ul li:nth-of-type(7) a {
    padding-top: 50px;
}

#g-nav-list ul li:nth-of-type(8) a::before {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/icon-insta.svg);
}

.openbtn {
    display: none;
}

/* 各セクション　コンテンツ部分共通設定 */
.contents {
    margin: 0 auto;
    background-color: #fff;
    max-width: 1088px;
}

/* 全ページ共通　各セクション見出し（h2）*/
.h2head_top {
    display: flex;
    align-items: center;
    justify-content: center;
}

.h2head_top_noline {
    text-align: center;
}

.h2head_top:before,
.h2head_top:after {
    border-top: 1px solid;
    content: "";
    width: 100%;
}

.h2head_top img,
.h2head_top_noline img {
    width: 50px;
    margin-left: 50px;
    margin-right: 50px;
}

h2 {
    font-family: "Kiwi Maru";
    color: #472800;
    font-size: 30px;
    text-align: center;
}

h2 span {
    display: block;
    font-size: 20px;
}

/* 全ページ共通　各セクション見出し（h2）十字あしらい */
.h2_cross {
    display: flex;
    justify-content: center;
    height: 120px;
}

.h2_cross::before {
    content: "";
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/deco_crossleft.png);
    background-repeat: no-repeat;
    width: 120px;
    background-position: left top;
    background-size: contain;
    margin-top: -20px;
}
.h2_cross::after {
    content: "";
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/deco_crossright.png);
    background-repeat: no-repeat;
    width: 120px;
    background-position: right bottom;
    background-size: contain;
}

/* 全ページ共通　各セクション見出し（h2）下　３つのドット装飾 */
.dot_deco {
    margin: 70px auto;
    width: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dot_deco p {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #472800;
}

/* SPのみ　スクロール */
.arrow {
    display: none;
}

/* TOPページ　Newsコンテンツ */
#news {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/deco-flower03.png), url(/blog/wp-content/themes/imaizumi-hoikuen/images/bkg-pink.jpg);
    background-size: 30%, cover;
    background-position: bottom right, center;
    background-repeat: no-repeat, no-repeat;
    padding: 100px 0;
}

#news .contents {
    padding: 50px 120px 60px;
}

.news_area {
    padding-top: 30px;
    padding-bottom: 70px;
    border-bottom: 1px solid #472800;
    font-family: "Noto Sans JP";
}

.news_area time {
    font-size: 16px;
    color: #472800;
    padding-bottom: 1em;
}

.news_area h3 {
    font-size: 19px;
    font-weight: 500;
    padding-bottom: 1em;
    color: #472800;
}

.news_area p {
    font-size: 16px;
    padding-bottom: 50px;
}

.news_area a {
    color: #472800;
    text-decoration: underline;
}

.news_red {
    color: #f00;
}

.news_small {
    font-size: 0.8em;
}

/* TOPページ　インスタコンテンツ */
#instagram {
    padding: 50px 0 100px;
}

/* TOPページ　各ページへのガイドエリア */
#guide {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/bkg-white.jpg);
    background-size: cover;
}

#guide .contents {
    padding: 50px 0;
    background-color: inherit;
    display: flex;
    flex-wrap: wrap;
}

#guide .contents a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 310px;
    margin-right: 40px;
    margin-bottom: 40px;
    border-radius: 20px;
    background-size: cover;
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/image-photo02.jpg);
    position: relative;
}

#guide .contents a span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 95%;
    border: #fff 5px solid;
    border-radius: 20px;
    z-index: 1;
}

#guide .contents a span p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Kiwi Maru";
    color: #472800;
    font-size: 30px;
    width: 200px;
    height: 200px;
    border-radius: 100px;
    background-color: #fff;
}

#guide .contents a:nth-of-type(1) {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/image-photo02.jpg);
}

#guide .contents a:nth-of-type(2) {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/image-photo18.jpg);
}

#guide .contents a:nth-of-type(3) {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/image-photo15.jpg);
}

#guide .contents a:nth-of-type(4) {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/image-photo17.jpg);
}

#guide .contents a:last-of-type {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/image-photo06.jpg);
    margin: 0 auto;
}

#guide .contents a:hover p {
    background-color: #472800;
    color: #fff;
    transition: 0.2s;
}

#guide .contents a::before {
    content: "";
    display: block;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    margin: auto;
    transition: 0.2s;
    opacity: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    width: 100%;
    height: 100%;
}

#guide .contents a:hover::before {
    opacity: 1;
}

/* TOPページ ブログエリア */
#blog {
    padding: 50px 0 100px;
}

/* ブログエリア　サブループ処理 */
#blog .blog_area article a {
    display: flex;
    align-items: flex-start;
    font-family: "Noto Sans JP";
    padding-bottom: 40px;
    border-bottom: 1px solid #ff949f;
    margin-bottom: 40px;
}

#blog .blog_area img {
    width: 350px;
    height: 216px;
    object-fit: cover;
    margin-right: 50px;
}

#blog .blog_area h2 {
    font-size: 19px;
    font-weight: 500;
    padding-bottom: 1em;
    color: #472800;
    font-family: "Noto Sans JP";
    text-align: left;
}

#blog .blog_area p {
    padding-bottom: 1em;
}

#blog .blog_area li {
    padding-bottom: 0.5em;
}

#blog .blog_area time {
    color: #472800;
}

/* TOPページ　アクセスエリア */
#access {
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/image-photo03b.jpg);
    background-size: cover;
    padding: 50px 0 100px;
    color: #fff;
}

#access h2 {
    color: #fff;
}

#access .contents {
    background-color: transparent;
}

#access .dot_deco p {
    background-color: #fff;
}

.access_area {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: "Kiwi Maru";
    margin-bottom: 70px;
}

.access_area h3 {
    padding-bottom: 0.75em;
    border-bottom: 2px solid #fff;
}

.access_area p {
    padding-top: 1em;
    font-weight: 300;
}

.access_button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Kiwi Maru";
    font-size: 18px;
    color: #472800;
    background-color: #fff;
    border-radius: 20px;
    width: 227px;
    height: 54px;
    margin: 100px auto 0;
}

.access_button:hover {
    background-color: #472800;
    border: 0px;
    color: #fff;
    font-weight: 300;
    transition: 0.3s;
}

/* TOPのみ　お電話でのお問い合わせ */
.contact {
    text-align: center;
    max-width: 1088px;
    margin: 0 auto;
    font-family: "Kiwi Maru";
    font-size: 30px;
}

.contact a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 54px;
}

.contact a:before,
.contact a:after {
    display: block;
    border-top: 1px solid;
    content: "";
    width: 100%;
    max-width: 280px;
}

/* 全ページ共通　フッター */
footer {
    padding-top: 70px;
    padding-bottom: 100px;
    background-image: url(/blog/wp-content/themes/imaizumi-hoikuen/images/deco-flower01.png), url(/blog/wp-content/themes/imaizumi-hoikuen/images/bkg-white.jpg);
    background-size: 100%, cover;
    background-position: left bottom, left;
    background-repeat: no-repeat, no-repeat;
}

.footer_wrap {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

footer h3 {
    font-weight: 500;
    font-size: 41px;
    font-family: "Kiwi Maru";
    max-width: 300px;
    padding-left: 1rem;
}

footer h3 img {
    width: 100%;
}

footer nav .sp-only {
    display: none;
}

small {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 50px;
}

#pagetop {
    display: none;
}

/* PC・Tabレイアウト時　電話番号クリック時動作OFF */
@media (min-width: 601px) {
    a[href^="tel:"] {
        pointer-events: none;
    }
}

/* --------------------タブレット用レイアウト 1,087px以下-------------------- */
@media screen and (max-width: 1087px) {
    /* ヘッダー左・中央ナビメニュー調整 */
    header {
        display: block;
        height: 170px;
    }

    h1 {
        padding-left: 0;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    header nav {
        margin: 0 auto;
        padding-top: 3em;
    }

    /* ホバーアニメ非表示 */
    header nav a:hover,
    footer nav a:hover {
        color: inherit;
    }

    header nav a::before,
    footer nav a::before {
        content: unset;
    }

    .mv.top {
        height: calc(100vh - 250px) !important;
    }

    /* ヘッダー右側調整 */
    header .nav_dl {
        display: none;
    }

    .mv .nav_dl {
        display: block;
        color: #fff;
        width: 100px;
        margin: 0 0 0 auto;
    }

    .mv .nav_dl dl,
    .mv .nav_dl dt {
        padding: 0;
        text-align: center;
    }

    .mv .nav_dl dl {
        display: block;
        padding-top: 50px;
    }

    .mv .nav_dl dd {
        font-size: 16px;
    }

    .mv .nav_dl img {
        filter: brightness(0) invert(1);
        width: 50px;
    }

    /* h2 */
    h2 {
        font-size: 20px;
    }
    h2 span {
        font-size: 16px;
    }
    .h2head_top img,
    .h2head_top_noline img {
        width: 30px;
    }

    .h2_cross::before {
        width: 80px;
    }

    .h2_cross {
        height: 90px;
    }

    .h2_cross::after {
        width: 80px;
    }

    /* コンテンツ幅・セクション　共通設定 */
    .contents,
    #news .contents {
        padding: 50px 10% 60px;
    }

    /* newsコンテンツ */
    #news {
        background-image: none;
        padding: 0;
    }

    .news_area {
        border-bottom: 0px solid #000;
        padding-bottom: 0;
    }

    /* instaコンテンツ */
    #instagram {
        padding: 0;
    }

    /* ボタン */
    .pink_button {
        font-size: 20px;
    }

    /* guideコンテンツ */
    #guide .contents {
        justify-content: space-evenly;
    }

    #guide .contents a {
        width: 280px;
        height: 180px;
        margin-right: 0;
    }

    #guide .contents a:last-of-type {
        margin: 0;
        margin-bottom: 40px;
    }

    #guide .contents a span p {
        width: 140px;
        height: 140px;
        font-size: 20px;
    }

    /* blogコンテンツ */
    #blog {
        padding: 0;
    }

    #blog .blog_area article a {
        display: block;
        margin-bottom: 50px;
    }

    #blog .blog_area img {
        margin-bottom: 50px;
    }

    #blog .blog_area h2 {
        text-align: left;
    }

    /* accessコンテンツ */
    #access {
        padding: 0;
    }

    .access_area {
        display: block;
    }

    .access_button {
        display: none;
    }

    .access_area iframe {
        width: 100%;
        padding-top: 50px;
    }

    .contact {
        padding-bottom: 100px;
    }

    .contact a:before,
    .contact a:after {
        display: none;
    }

    .contact a {
        display: block;
        margin: 0 auto;
    }

    /* footer */
    footer {
        background-color: #4c4c4c;
        background-image: none;
        padding: 50px 50px 30px;
        color: #fff;
        position: relative;
    }
    .footer_wrap {
        display: block;
    }

    footer h3 {
        display: none;
    }

    footer nav {
        margin: 0;
        padding: 0 0 1em;
    }

    footer nav ul {
        padding-left: 0;
        flex-wrap: wrap;
    }

    footer .nav_dl dl {
        justify-content: flex-start;
        filter: brightness(0) invert(1);
    }

    footer .nav_dl dl dt {
        order: 2;
        padding: 0 0 0 1em;
    }
    footer .nav_dl dl dd {
        order: 1;
    }

    #pagetop {
        display: block;
        position: absolute;
        width: 50px;
        bottom: 100px;
        right: 50px;
    }
}

/* --------------------スマホ用レイアウト 600px以下-------------------- */
@media screen and (max-width: 600px) {
    /* ヘッダー左・中央ナビメニュー調整 */
    header {
        height: 80px;
        margin: 2em 0;
        display: flex;
        align-items: center;
    }

    h1 {
        font-size: 24px;
        min-width: auto;
        max-width: 250px;
    }

    h1 span {
        font-size: 10px;
    }

    header nav {
        display: none;
    }

    .mv.top {
        height: calc(100vh - 290px) !important;
    }

    /* ドロワーメニュー表示 */
    .openbtn {
        display: block;
    }

    /* ヘッダー右側調整 */
    .mv .nav_dl dl {
        padding-top: 30px;
    }
    .mv .nav_dl dd {
        font-size: 12px;
    }

    .mv .nav_dl img {
        filter: brightness(0) invert(1);
        width: 20px;
    }

    /* SPのみ　スクロール */
    .arrow {
        display: block;
        text-align: center;
        margin-top: 30px;
    }

    .arrow p {
        font-size: 11px;
    }

    .arrow img {
        width: 10px;
        vertical-align: text-top;
    }

    /* h2 */
    h2 {
        font-size: 16px;
    }
    h2 span {
        font-size: 12px;
    }

    .h2head_top:before,
    .h2head_top:after {
        display: none;
    }

    .h2_cross::before,
    .h2_cross::after {
        display: none;
    }

    .dot_deco {
        display: none;
    }

    /* コンテンツ幅・セクション　共通設定 */
    .contents,
    #news .contents {
        padding-bottom: 0;
    }

    /* newsコンテンツ */
    .news_area time {
        font-size: 12px;
    }

    .news_area h3,
    .news_area p {
        font-size: 16px;
    }

    /* instaコンテンツ */
    #instagram .contents {
        padding: 0;
    }

    /* ボタン */
    .pink_button {
        font-size: 16px;
        height: auto;
        padding: 0.5em 0;
        margin-bottom: 20px;
    }

    .link_text {
        font-size: 14px;
        margin-bottom: 30px;
        width: max-content;
    }

    /* guideコンテンツ */
    #guide .contents a {
        max-width: 300px;
        width: 100%;
        margin-bottom: 20px;
    }

    /* blogコンテンツ */
    #blog .blog_area {
        padding-top: 40px;
    }

    #blog .blog_area article a {
        margin-bottom: 40px;
    }

    #blog .blog_area img {
        margin: 0 0 30px 0;
        width: 100%;
    }

    #blog .blog_area time {
        font-size: 12px;
    }

    #blog .blog_area h2 {
        font-size: 16px;
    }

    .blog_contents img {
        width: 100%;
        height: auto;
    }

    .blog_contents:last-of-type {
        padding-bottom: 50px;
    }

    /* accessコンテンツ */
    .contact p {
        font-size: 19px;
    }

    .contact a {
        font-size: 24px;
        border-bottom: 1px solid #fff;
        width: max-content;
    }

    /* footer */
    footer nav {
        width: 100%;
    }
    footer nav ul {
        justify-content: flex-start;
    }
    footer nav .sp-only {
        display: inline-block;
    }
}
