@charset "UTF-8";
/* ============================ */
/*            RESET             */
/* ============================ */

a{
    color:#215c38;
}
a:hover{
    color: #37FF00;
    text-decoration: none;
}
html, body {
    position: relative;
    height: 100%;
    width: 100%;
}
body {
    background: #f6f5f4;
    font-family: "nexa-text", source-han-sans-traditional, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color:#215c38;
}

strong{
    font-weight: 600;
}

/* ============================ */
/*            HEADER            */
/* ============================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px;
  z-index: 500;
  background-color: transparent;
}
.logo {
    width: 120px;
    height: 36px;
    z-index: 5;
    position: fixed;
    background-color: #215c38;
    -webkit-mask-image: url('/image/YIKAI_LOGO.svg');
    mask-image: url('/image/YIKAI_LOGO.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.3s ease;
  }
  
  .logo:hover {
    background-color: #37FF00;
  }


/* ============================ */
/*          MENU BUTTON         */
/* ============================ */

.dog01{
    background-color: #215c38;
    width: 40px;
    height: 40px;
    position: fixed;
    top: 40px;
    right: 30px;
    z-index: 10002;
    display: inline-block;
    cursor: pointer;
    border-radius:200px;
    transition-duration: 0.2s;
    transition-delay: 0.1s;
}

#icon_01[type="checkbox"]:hover~.dog01{
    background-color: #37FF00;
}

#icon_01 {
    display: none;
}   

/* ============================ */
/*          MENU PANEL          */
/* ============================ */

.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; /* 改成一開始就全螢幕，避免卡頓 */
    height: 100vh;
    background-color: #d1cfc9;
    color: #215c38;
    padding: 80px 30px 40px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;

    /* 動畫效果從小圓形開始展開 */
    clip-path: circle(0% at 95% 5%);
    -webkit-clip-path: circle(0% at 95% 5%);

    /* 速度變慢一點 */
    transition:
      clip-path 0.9s ease,
      -webkit-clip-path 0.9s ease,
      opacity 0.5s ease 0.1s;
    
}

#icon_01[type="checkbox"]:checked ~ .menu {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;

    /* 放大成覆蓋整個螢幕的圓形遮罩 */
    clip-path: circle(150% at 95% 5%);
    -webkit-clip-path: circle(150% at 95% 5%);
}

/* ============================ */
/*       MENU INNER TEXT        */
/* ============================ */

.menu h2{
    margin-bottom: 40px;
    font-size: 2em;
    font-family: nexa, sans-serif;
    font-weight: 600;
    font-style: normal;
}

.menu a:hover{
    font-family: nexa, sans-serif;
    font-weight: 400;
    font-style: italic;
}

.menu ul {
    opacity: 0;
    transition: opacity 0.3s ease 0.5s;
}

#icon_01[type="checkbox"]:checked ~ .menu ul {
    opacity: 1;
}

#icon_01:not(:checked) ~ .menu ul {
    transition-delay: 0s;
}

.menu ul li{
    font-size: 20px;
    margin-bottom: 20px;
}

/* ============================ */
/*             FOOTER           */
/* ============================ */

#copyright{
    padding-left: 30px;
    position: fixed;
    bottom: 20px;
    left: 0px;
    z-index: 4;
}
#link{
    padding-left: 30px;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 600;
}
footer{
    margin-top: 40px;
}
  