@charset "utf-8";

html {
    font-size: 100%;
    scroll-behavior: smooth;
}
body {
    color: #1f1f1f;
    font-family: 'EB Garamond', 'Zen Old Mincho',serif;
}
img {
    max-width: 100%;
    vertical-align: bottom;
}
li {
    list-style: none;
}
a {
    color: #1f1f1f;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    opacity: 0.7;
}

#header {
    position: fixed;   /* ←これを追加 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* PCでは非表示 */
#header .hamburger {
    display: none;
  }
  #header .navi {
    margin-left: auto;
  }

#header .navi .menu {
    display: flex;
    align-items: center;
}
#header .navi .menu li {
    font-size: 14px;
    margin: 0 20px;
    position: relative;
    color: #3b3535;
}
#header .menu li::after {
    content: "";
    width: 1px;
    height: 16px;
    background-color: #3b3535;
    transform: rotate(30deg);
    position: absolute;
    top: 3px;
    right: -20px;
  }
 #header .menu li:last-child::after {
    content: none;
 }

/*------------------------------------------
タブレット
------------------------------------------*/
@media screen and (max-width: 1024px) {
    
}

/*------------------------------------------
スマートフォン
------------------------------------------*/
@media screen and (max-width: 767px) {
    /* スマホ用 */

    /* ヘッダー */
    #header {
      height: 56px;           /* 高さを小さく */
      padding: 0 12px;
      z-index: 100;
    }
  
    /* ヘッダー固定分の余白 */
    main {
      padding-top: 56px;
    }
  
    /* メニュー */
    #header .navi .menu {
      justify-content: flex-end;
    }
  
    #header .navi .menu li {
      font-size: 12px;
      margin: 0 8px;          /* 横の余白を縮める */
    }
  
    /* 区切り線はスマホでは消す */
    #header .menu li::after {
      display: none;
    }
  
    /*ハンバーガメニュー*/
    #header .hamburger {
        display: block;
        width: 50px;
        height: 50px;
        cursor: pointer;
        position: absolute;
        top: 3px;
        right: 10px;
        z-index: 200;
    }
    #header .hamburger span {
        width: 30px;
        height: 3px;
        background-color: #000;
        display: inline-block;
        position: absolute;
        left: 10px;
        transition: all 0.4s;
    }
    #header .hamburger span:nth-of-type(1) {
        top: 16px;
    }
    #header .hamburger span:nth-of-type(2) {
        top: 25px;
    }
    #header .hamburger span:nth-of-type(3) {
        top: 34px;
    }
    #header .navi {
        display: block;
        width: 80%;
        height: 100vh;
        background-color: #f4f4f4;
        position: fixed;
        top: 0;
        right: -80%;
        z-index: 150;
        transition: all 0.6s;
    }
    #header .navi .menu {
        display: none;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;  /*上寄せ*/
        align-items: center;          /*横中央*/
        padding: 60px 0;
        overflow: auto;
    }
    #header .navi .menu li {
        padding: 10px 0;
        margin-left: 0;
    }
    #header .navi.active {
        right: 0;
    }
    #header .navi.active .menu {
        display: flex;
      }
      
    #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);
    }
}