html,body
{
  background-color: $bg-color;
  
}
*
{
  line-height: 150%;
  font-weight: 400;
}
body
{
  background-image: $bg-url;
  background-color: $bg-color;
}
*[role=link]
{
  &:hover
  {
    cursor: pointer;
  }
}
.wrap
{
  padding-left:24px;
  padding-right:24px;
  @media(min-width:1629px)
  {
    padding-right:calc(50% - 790px);
    padding-left:calc(50% - 790px);
  }
}
.m-wrap
{
  padding-left:24px;
  padding-right:24px;
  @media(min-width:1129px)
  {
    padding-right:calc(50% - 540px);
    padding-left:calc(50% - 540px);
  }
}
.breadcrumb
{
  display: flex;
  flex-wrap:wrap;
  padding-bottom:60px;
  li
  {
    color:#C4BCAC;
    a
    {
      transition-duration:.5s;
      color:#C4BCAC;
      font-size: 16px;
      font-weight: 400;
      line-height: 150%; /* 24px */
      letter-spacing: 1.6px;
      &:hover
      {
        color:$main-color;
      }
    }
    &::after
    {
      content:' - ';
      padding-right:5px;
    }
    &:last-child
    {
      &::after
      {
        display: none;        
      }
      a
      {
        color:$main-color;
      }
    }
  }
}

#head
{
  padding-top:45px;
  display: flex;
  #logo
  {
    display: flex;
    align-items:center;
    a
    {
      display: block;
      picture
      {
        display: block;
        img
        {
          display: block;
          height: 65px;
        }
      }
    }
  }
  #contact-menu
  {
    ul
    {
      display: flex;
      flex-wrap:wrap;
      li
      {
        border-radius: 30px;
        background: $bg-color;
        box-shadow: 0px 4px 9px 0px rgba(91, 63, 41, 0.30);
        padding:6px;
        text-align: center;
        height:100px;
        a
        {
          padding:18px 10px 0 10px;
          height: 100%;
          color:$main-color;
          font-size: 16px;
          font-weight: 400;
          line-height: 24px; /* 24px */
          letter-spacing: 1.6px;
          border-radius: 30px;
          border:1px dashed $main-color;
          display: block;
          i
          {
            margin-bottom:4px;
            width: 100%;
            
            display: block;
            font-size:28px;
          }
        }
      }
    }
  }
  @media(min-width:1500px)
  {
    padding-bottom:45px;
    justify-content:space-between;
    label[for=main-menu-input]{
      display: none;
    }
    #main-menu
    {
      height: 100px;
      border-radius: 30px;
      box-shadow: 0px 4px 9px 0px rgba(91, 63, 41, 0.30);
      padding:6px;
      text-align: center;
      height:100px;
      background-color: $bg-color;
      ul
      {
        height: 100%;
        color:$main-color;
        font-size: 20px;
        font-weight: 400;
        line-height: 30px;
        letter-spacing: 2px;

        border-radius: 30px;
        border:1px dashed $main-color;
        display: block;
        display: flex;
        li
        {
          line-height:86px;
          a
          {
            color:$main-color;
            padding:0 20px;
          }
          &:first-child
          {
            a
            {
              padding-left: 40px;
            }
          }
          &:last-child
          {
            a
            {
              padding-right:40px;
            }
          }
        }
      }
    }
    #contact-menu
    {
      li
      {
        margin-right:20px;
        &:last-child
        {
          margin-right:0px;
        }
      }
    }
  }
  @media(max-width:1499px)
  {
    padding-top:35px;
    padding-bottom:35px;
    flex-wrap: wrap;
    #logo
    {
      width: calc(100% - 70px);
      a
      {
        picture
        {
          img
          {
            height: 40px;
          }
        }
      }
    }
    #main-menu
    {
      display: none;
    }
    #contact-menu
    {
      display: none;
    }
    label[for=main-menu-input]
    {
      position: relative;
      height:40px;
      background-color:$main-color;
      border-radius: 30px;
      width: 70px;
      text-align: center;
      input
      {
        position: absolute;
        top:0px;
        left:0px;
        cursor: pointer;
        border:0px;
        padding:0px;
        margin:0px;
        width: 100%;
        height:100%;
        opacity: 0;
      }
      i
      {

        color:$bg-color;
        line-height: 40px;
        &.close
        {
          display: none;
        }
      }
    }
    &:has(input#main-menu-input:checked)
    {
      //開啟狀態
      background-color: $bg-color;
      label[for=main-menu-input]
      {
        i
        {
          &.close
          {
            display: inline-block;
          }
          &.open
          {
            display: none;
          }
        }
      }
      padding-bottom:200px;
      background-image: url('<?=userimg($background->menuBg)?>');
      background-repeat: no-repeat;
      background-position: bottom center;
      background-size: contain;
      #main-menu
      {
        padding-top:60px;
        display: block;
        width: 100%;
        max-width:100%;
        display: flex;
        justify-content:center;
        ul
        {
          li
          {
            margin-bottom:40px;
            a
            {
              font-size: 20px;
              font-weight: 400;
              line-height: 30px;
              color:$main-color;
              &::before
              {
                content: ' ';
                width: 21px;
                height: 15px;
                background-color: #CFBC90;
                border-radius: 100%;
                display: inline-block;
                margin-right:15px;
              }
            }
            &:nth-child(5n)
            {
              a
              {
                &::before
                {
                  background-color: #CA7654;
                }
              }
            }
            &:nth-child(5n + 1)
            {
              a
              {
                &::before
                {
                  background-color: #CFBC90;
                }
              }
            }
            &:nth-child(5n + 2)
            {
              a
              {
                &::before
                {
                  background-color: #9CCCD3;
                }
              }
            }
            &:nth-child(5n + 3)
            {
              a
              {
                &::before
                {
                  background-color: #C4BCAC;
                }
              }
            }
            &:nth-child(5n + 4)
            {
              a
              {
                &::before
                {
                  background-color: #E4C191;
                }
              }
            }
          }
        }
      }
      #contact-menu
      {
        display: block;
        width: 100%;
        
        ul
        {
          justify-content:center;
          li
          {
            margin-right:20px;
            &:last-child
            {
              margin-right:0;
            }
          }
        }
        
        
      }
    }
  }
}


#foot-contact
{
  background-color: #FFFBF1;
  background-image: url('<?=userimg($background->contactBg->data)?>');
  background-position: top center;
//  background-size: cover;
  background-size:contain;
  background-repeat: no-repeat;
  position: relative;
  padding-top:150px;
  padding-bottom:50px;
  h3
  {
    position: relative;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 2.4px;
    margin-bottom:50px;
    &::after
    {
      position: absolute;
      content:' ';
      width: 21px;
      height: 15px;
      display: block;
      background-color: #CA7654;
      border-radius: 100%;
      top:-14px;
      left:calc(50% - 10px);
    }
  }

  ul
  {
    margin-bottom:50px;
    display: flex;
    flex-wrap:wrap;
    justify-content:center;
    li
    {
      background-color: #F7F3E7;
      border-radius: 30px;
      box-shadow: 0px 4px 9px 0px rgba(91, 63, 41, 0.30);
      padding:15px;
      margin:25px;
      a
      {
        border-radius: 30px;
        border:1px dashed $main-color;
        padding:35px;
        color:$main-color;
        text-align: center;
        display: flex;
        flex-direction:column;
        >i
        {
          font-size:50px;
          margin-bottom:15px;
        }
        span
        {
          font-size: 20px;
          font-weight: 400;
          line-height: 150%; /* 30px */
          letter-spacing: 2px;
          color:#C4BCAC;
          &:has(i)
          {
            margin-top:15px;
            border:1px dashed $main-color;
            background-color: $main-color;
            border-radius: 30px;
            padding:5px 10px;
            color:$bg-color;
          }
        }
      }
    }
  }

  .more
  {
    text-align: center;
    a
    {
      font-size: 20px;
      font-weight: 400;
      line-height: 150%; /* 30px */
      letter-spacing: 2px;
      color:$main-color;
      i
      {
        padding:5px 16px;
        background-color: $main-color;
        border-radius: 30px;
        color:$bg-color;
      }
    }
  }
}

#footer
{
  background-image: $bg-url;
  padding-top:120px;
  
  .bg
  {
    padding-bottom:120px;
    background-image: url('<?=userimg($background->footBg)?>');
    background-position: left bottom;
    background-size:contain ;
    background-repeat: no-repeat;
    display: flex;
    align-items:center;
    flex-direction:column;
    picture
    {
      margin-bottom:10px;
      img
      {
        max-width: 100%;
        display: block;
        margin-left:auto;
        margin-right:auto;
      }
    }
    h3
    {
      margin-bottom:30px;
      position: relative;      
      svg
      {
        position: absolute;
        top:0px;
        left:0px;
        width: 100%;
        height: 100%;
      }
      span
      {
        display: block;
        padding:20px;
        position: relative;
        z-index: 1;
        font-size: 24px;
        font-weight: 400;
        line-height: 36px;
        letter-spacing: 2.4px;
        color:$main-color;
      }
    }

    .foot-menu
    {
      display: flex;
      flex-wrap:wrap;
      text-align: center;
      font-size: 20px;
      line-height: 30px;
      letter-spacing: 2px;
      margin-bottom:50px;
      >li
      {
        >span
        {
          font-size: 20px;
          line-height: 30px;
          letter-spacing: 2px;
          color:$main-color;
          display: block;
          padding-bottom:10px;
          margin-bottom:5px;
          border-bottom: 1px dashed $main-color;
        }
        ul
        {
          li
          {
            margin-bottom:10px;
            a
            {
              color:#C4BCAC;
              transition-duration:.5s;
              font-size: 16px;
              line-height: 24px;
              letter-spacing: 1.6px;
              &:hover
              {
                color:$main-color;
              }
            }
          }
        }
      }

      @media(min-width:768px)
      {
        >li
        {
          margin:0 25px;
          &:first-child
          {
            margin-left:0;
          }
          &:last-child
          {
            margin-right:0;
          }
        }
      }
      @media(max-width:767px)
      {
        >li
        {
          width: calc(50% - 10px);
          margin:10px;
          &:nth-child(2n)
          {
            margin-right:0;
          }
          &:nth-child(2n + 1)
          {
            margin-left: 0;
          }
        }
      }
    }
    .social-menu
    {
      display: flex;
      justify-content:center;
      position: relative;
      width: 830px;
      margin-bottom:50px;
      &::after
      {
        content:' ';
        width: 100%;
        border-top:1px dashed $main-color;
        position: absolute;
        top:50%;
        left:0;
      }
      li
      {
        position: relative;
        background-image: $bg-url;
        z-index: 1;
        a
        {
          display: block;
          padding:0 10px;
          color:$main-color;
          font-size:25px;
        }
      }
      @media(max-width:830px)
      {
        width: 100%;
      }
    }
    .contact-list
    {
      display: flex;
      flex-wrap:wrap;
      width: 830px;
      li
      {
        margin-left:20px;
        a
        {
          font-size: 16px;
          line-height: 150%; /* 24px */
          letter-spacing: 1.6px;
          color:#C4BCAC;
          transition-duration:.5s;
          &:hover
          {
            color:$main-color;
          }
        }
      }
      @media(max-width:830px)
      {
        width: 100%;
      }
    }
  }
}