:root {
    --text: #000000;
    --white: #ffffff;
    --basic: #28d1d1;
    --primary: #a98c8c;
    --bg_brown: #f6f3f3;
    --bg_brue: #e9fafa;
}

html {
    font-family: "Kaisei Decol", serif;
    font-size: 62.5%;
    font-weight: 400;
}

p {
    font-size: 1.6rem;
}

a {
    text-decoration: none;
}

a:hover {
    opacity: 0.6;
}

span {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
}


h1 {
    font-size: 2.4rem;
    font-weight: bold;
    text-align: center;
}

/* header */

#menu {
    width: 79%;
    margin: 0 auto;
    display: block;
}

.top-menu {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 11;
}

#logo {
    width: 125px;
    height: 125px;
    margin-left: -50px;
}

.top-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 65%;
    margin-left: 25px;
    margin-right: -50px;
    height: 125px;
    font-size: 2rem;
}

.brown {
    color: var(--primary);
}

.brue {
    color: var(--basic);
}

.sp-nav {
    display: none;
}

.appointment {
    display: flex;
    z-index: 9999;
}

.apo_wrapper {
    background-color: #97d5d5;
    width: 163px;
    height: 81px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apo_inner {
    width: 146px;
    height: 63px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.apo_txt {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: -12px;
}

.openbtn1, #g-nav, #g-nav-list {
    display: none;
}

/* greeting ごあいさつ */

#about {
    margin-top: 126px;
}

.about_img {
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.sub1_img {
    text-align: center;
    margin: 0 auto;
    border: 1px dotted var(--text);
}

.about_img img {
    display: block;
    max-width: 100%;
    height: auto;
}

.about_img h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2.4rem;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1;
}

/* Greeting ごあいさつ */

h2 {
    font-size: 2rem;
    text-align: center;
    margin: 50px auto;
}

.about_wrapper {
    display: flex;
    margin: 20 auto;
}

.aisatsu {
    font-size: medium;
    text-align: left;
    margin: 0 auto;
    line-height: 3rem;
}

.owner_wrapper {
    display: flex;
    width: 75%;
    justify-content: center;
    margin: 0 auto;
}

.owner_img {
    width: 30vw;
    height: auto;
    margin-right: 100px;
}

.name {
    margin-top: 30px;
    text-decoration: underline;
}

.cv {
    line-height: 2rem;
}

.comment_wrapper {
    display: block;
    width: 75%;
    margin: 50px auto;
    text-align: center;
}

.comment {
    line-height: 2.8rem;
    margin-top: 50px;
    color: var(--primary);
    text-align: left;
    font-size: 1.6rem;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
}

h3 {
    font-size: 2.4rem;
    text-align: center;
    margin: 20px auto;
}

/* こだわり */

.nailcare_wrapper {
    width: 75%;
    display: flex;
    margin: 0 auto;
}

.title {
    text-decoration: underline;
    font-size: medium;
}

.content {
    line-height: 2.5rem;
}

.nailcare_box {
    width: 75%;
    margin: 0 50px 50px 0;
}

.nailcare_img {
    width: 30%;
    height: auto;
    text-align: right;
}

.kids_wrapper {
    width: 75%;
    display: flex;
    margin: 0 auto;
}

.kids_img {
    margin: 50px 50px 50px 0;
}

.kids_box {
    margin: 50px 0;
}


/*===========
inview
===========*/

.fadeIn {
    opacity: 0;
    transition: 2s;
  }
  .fadeIn.is-show {
    opacity: 1;
  }
  
  /*===========
  .imgBox
  ===========*/
  
  .imgBox {
    text-align: center;
    margin: 50px 0;
  }
  .imgBox img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
  }


/* footer */

footer {
    background-color: var(--basic)
}

.footer_inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px;
    padding: 20px 0;
}

#copyright {
    font-size: 1.3rem;
}

.arrow {
    margin-right: 20px;
}


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

    .logo {
        width: 50%;
        height: 50%;
    }

    .pc_menu {
        display: none;
    }

    .openbtn1, #g-nav, #g-nav-list {
        display: block;
    }


/*========= ナビゲーションのためのCSS ===============*/

#g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;
    left: -120%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: var(--white);
    /*動き*/
    transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
    left: 0;
}


/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*リストのレイアウト設定*/

#g-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#g-nav li {
    list-style: none;
    text-align: center;
    display: block;
    margin-bottom: 20px;
}

#g-nav li a {
    color: var(--basic);
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

#logo {
    width: 100px;
    height: 100px;
    margin-top: 20px;
    margin-left: 20px;
}

.appointment {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
}

.apo_wrapper {
    width: 63px;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apo_inner {
    width: 46px;
    height: 46px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.apo_txt {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary);
    margin-top: 2px;
}

.apo_tiara {
    width: 90%;
    height: auto;
}

    /*========= ボタンのためのCSS ===============*/
.openbtn1 {
    display: block;
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 6%;
    right: 25%;
    cursor: pointer;
    width: 80px;
    height: 80px;
}

/*×に変化*/
.openbtn1 span {
    display: block;
    transition: all .4s;
    position: absolute;
    right: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--primary);
    width: 45%;
}

.openbtn1 span:nth-of-type(1) {
    top: 15px;
}

.openbtn1 span:nth-of-type(2) {
    top: 23px;
}

.openbtn1 span:nth-of-type(3) {
    top: 31px;
}

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

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

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

    /* others */

    p {
        font-size: 1rem;
    }

    .about_img h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }

    .aisatsu {
        font-size: 1rem;
        line-height: 2rem;
    }

    .comment {
        font-size: 1rem;
    }

    #about {
        width: 75%;
        margin: 150px auto auto auto;
    }

    .owner_wrapper {
        display: flex;
        flex-direction: column;
    }

    .owner_img {
        width: 100px;
        height: 100px;
    }

    .name {
        text-align: center;
    }

    .comment_wrapper {
        width: 90%;
        margin: 0 auto;
    }

    .comment {
        width: 90%;
        margin: 50px auto;
    }
    .title {
        font-size: small;
    }

    .content {
        line-height: 2rem;
    }

    .nailcare_img {
        width: 100px;
        height: 100px;
    }

    .kids_img {
        width: 100px;
        height: 100px;
    }

    
}


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

#logo {
    width: 100px;
    height: 100px;
    margin-top: 20px;
    margin-left: 20px;
}

.appointment {
    margin-right: 20px;
}

.apo_wrapper {
    width: 63px;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apo_inner {
    width: 46px;
    height: 46px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.apo_txt {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary);
    margin-top: 2px;
}

.apo_tiara {
    width: 90%;
    height: auto;
}

    /*========= ボタンのためのCSS ===============*/
.openbtn1 {
    display: block;
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 6%;
    right: 30%;
    cursor: pointer;
    width: 80px;
    height: 80px;
}

    p {
        font-size: 1rem;
    }

    .about_img h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }

    .aisatsu {
        font-size: 1rem;
    }

    .comment {
        font-size: 1rem;
    }
    
    .owner_wrapper {
        display: flex;
        flex-direction: column;
        width: 80%;
    }
    .owner_img {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .name {
        text-align: center;
    }

    .comment_wrapper {
        width: 90%;
    }

    .comment {
        margin: 0 auto;
        width: 90%;
        line-height: 2rem;
    }

    .title {
        font-size: small;
    }

    .content {
        line-height: 2rem;
    }

    .nailcare_img {
        width: 100px;
        height: 100px;
    }

    .kids_img {
        width: 100px;
        height: 100px;
    }

}