/*-----------------------------------------------
    reset
-----------------------------------------------*/

:root {
  --font-size: 15px;
  --font-size-m: 14px;
  --font-family: 'Montserrat', 'Noto Sans JP', 'Noto Sans TC',
                      'PingFang TC', 'Heiti TC', 'Microsoft JhengHei', Arial, sans-serif;
  --purple:   #6f42c1;
  --pink:     #d63384;
  --red:      #dc3545;
  --orange:   #fd7e14;
  --yellow:   #ffc107;
  --green:    #198754;
  --blue:     #0dcaf0;
}

html {
  box-sizing: border-box;
  font-size: var(--font-size);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  word-break: inherit;
  color: inherit;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  word-break: break-word;
  color: #000;
  background: #fff;
  margin: auto;

}

@media screen and (max-width: 1440px) {
  body,html {
    font-size: var(--font-size-m);
  }
}

button,
input,
select,
textarea,
option {
  font: inherit;
  color: inherit;
  line-height: inherit;
  background: transparent;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/*-----------------------------------------------
    font
-----------------------------------------------*/

p {
  margin: 0 0 1em 0;
  line-height: 1.75;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1em 0;
  font-weight: normal;
  line-height: 1.6;
  word-break: break-word;
  color: inherit;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }


strong, b {
  font-weight: bold;
}

small {
  font-size: 0.875em;
  opacity: 0.8;
}

em, i {
  font-style: italic;
}


section,
article,
header,
footer,
.df-width {
  position: relative;
}



.ellipsis {
    display: -webkit-box;
    height: 72px;
    overflow: hidden;
    text-overflow: ellipsis;

    /*
    height: 72px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    */
}


/*-----------------------------------------------
    wrapper
-----------------------------------------------*/

.wrapper,
#wrapper {
    margin: auto;
    max-width: 1920px;
    overflow: hidden;
}

@media screen and (min-width:1921px) {

    .wrapper,
    #wrapper {
        max-width: initial;
    }
}

/*-----------------------------------------------
    df-width
-----------------------------------------------*/

.df-width {
    position: relative;
    margin: auto;
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
    max-width: 768px;
}

/*-----------------------------------------------
    df-link
-----------------------------------------------*/

a {
  color: #000;
  text-decoration: none;
  outline: none;
  transition: all 0.3s;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a:focus,.a:hover {
  outline: none;
  text-decoration: none;
}



/*寫在a裡修改 */
.hover {
  color: #000;
  text-decoration: none;
  transition: all 0.3s;
}
.hover:hover {
  color: #06c;
  text-decoration: underline;
}

.full-link {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}


/*-----------------------------------------------
    df-img
-----------------------------------------------*/

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}


/*-----------------------------------------------
    df-button
-----------------------------------------------*/
button {
  all: unset;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn {
  padding: 0.5em 1em;
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 0.9rem;
  background-color: transparent;
  color: #000;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/*-----------------------------------------------
    df-list
-----------------------------------------------*/


ul {
  padding: 0;
  margin: 0;
  height: 100%;
  /*! list-style: none; */
}

ul li {
  margin: 0;
  padding: 0;
}

ol {
  /*! padding-left: 1.5em; */
  /*! margin: 0; */
}

ol li {
  /*! list-style: decimal inside; */
  margin: 0.2em 0;
  list-style: none;
  text-align: justify;
}

ol li a {
  color: #007bff;
  text-decoration: none;
}


@media screen and (max-width: 768px) {
  ol li,
  ol li a {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
    position: relative;
  }
}

/*-----------------------------------------------
    df-video
-----------------------------------------------*/
video[autoplay]:not([muted]) {
  display: none;
}

.df-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.df-video::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #5e5e5e;
  pointer-events: none;
  box-sizing: border-box;
}

/* 實際嵌入的影片元素 */
.df-video-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/*-----------------------------------------------
    df-hr
-----------------------------------------------*/

hr {
    display: block;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
    height: 5px;
    border: 0;
    border-top: 1px solid #eee;
    /*border-bottom:5px dotted #fff;*/
}



/*  df-box
-------------------------------------------------
    - df-close
    - df-mask
    - box-content
    - box-open & close
------------------------------------------------*/

/*-----------------------------------------------
    df-close
-----------------------------------------------*/
.df-close:hover {
    transform: rotateZ(180deg);
}

.df-close {
    display: inline-block;
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 10;
    opacity: 1;
    width: 35px;
    height: 35px;
    cursor: pointer;
    overflow: hidden;
    transition: all .5s;
    transform-origin: 50% 50%;
}

.df-close::before,
.df-close::after {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 0.18rem;
    border-radius: 5px;
    content: '';
    background: #fff;
}

.df-close::before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.df-close::after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/*-----------------------------------------------
    df-mask
-----------------------------------------------*/
.df-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, .9);
}

/*-----------------------------------------------
    df-box
-----------------------------------------------*/
.df-box {
    position: fixed;
    top: 0;
    left: 0;
    margin: auto;
    z-index: 100;
    width: 100%;
    height: 100%;
}

/*-----------------------------------------------
    box-content
-----------------------------------------------*/
.box-content {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    padding: 10px;
    z-index: 2;
    width: 95%;
    height: 80vh;
    max-width: 800px;
    border-radius: 5px;
    transition: all .3s ease;
    transform: translate(-50%, -50%);
    background: #fff;
}

.box-text {
    margin: 0;
    padding: 2%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
    text-align: justify;
}

/*-----------------------------------------------
    box-open & close
-----------------------------------------------*/


.box-open {
  opacity: 1;
  /*transform: scale(1);*/
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: all .3s cubic-bezier(.39, .575, .565, 1);
}

.box-close {
  opacity: 0;
  /*transform: scale(0);*/
  transform: translateY(-1000px);
  visibility: hidden;
  pointer-events: none;
  transition: all .2s cubic-bezier(.39, .575, .565, 1);
}



/*-----------------------------------------------
    df-form：通用表單欄位樣式
-----------------------------------------------*/

.df-form {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 5% auto;
  padding: 13px 14px;

  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;

  color: #333;
  background-color: #fff;
  border: 1px solid #7b7b7b;
  border-radius: 3px;

  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}

.df-form:focus {
  border-color: #66afe9;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(102, 175, 233, 0.6);
  outline: none;
}


/*-----------------------------------------------
    blur
-----------------------------------------------*/

@keyframes blur {
  0% {
    opacity: 0;
    -webkit-filter: blur(15px);
    filter: blur(15px);
  }
  100% {
    opacity: 1;
    -webkit-filter: blur(0);
    filter: blur(0);
  }
}


/*-----------------------------------------------
    df-gotop
-----------------------------------------------*/

.gotop {
  display: none;
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 99;

  width: 2.5rem;
  height: 2.5rem;
  border-radius: 100px;
  box-sizing: border-box;

  background: #000;
  color: #fff;

  cursor: pointer;
  opacity: 0.5;

  transform: scale(1);
  transform-origin: 50%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gotop::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: auto;

  width: 0.8rem;
  height: 0.8rem;

  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;

  transform: rotate(-45deg);
  box-sizing: border-box;
  display: block;
}

.gotop:focus {
  outline: none;
}

.gotop:hover {
  opacity: 0.9;
  transform: scale(1.2);
}


@media screen and (min-width: 1921px) {
  .gotop {
    right: 21rem;
  }
}


@media screen and (max-width: 767px) {
  .gotop {
    right: 5px;
    transform: scale(0.7);
  }

  .gotop:hover {
    transform: scale(1);
  }
}


/*-----------------------------------------------
    RWD
-----------------------------------------------*/

.pc,
.tablet,
.mobile {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  /*! overflow: hidden; */
  position: relative;
}


.pc {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  width: auto;
  height: auto;
}


@media screen and (max-width: 768px) {
  .pc {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
     width: 0;
    height: 0;
    z-index: -10;
  }

  .tablet {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    width: auto;
   /* height: auto;*/
   height: 100%;
  }
}


@media screen and (max-width: 480px) {
  .mobile {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    width: auto;
    /*height: auto;*/
    height: 100%;
  }
}
