.app {
  font-family: 'Avenir Next', sans-serif;
  color: #031d3d;
  padding-bottom: 152px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 38px;
  box-sizing: border-box;
  display: flex;
}

button {
  border: none;
  background: none;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.accordions__controls {
  display: flex;
  justify-content: flex-end;
  padding-top: 38px;
  padding-bottom: 19px;
}
.accordions__control {
  font-weight: 600;
  font-size: 18px;
  color: #FF3E96;
  transition: color .3s ease-in-out;
}
.accordions__control:hover, .accordions__control:focus {
  color: #ffffff;
}
.accordions__header {
  font-size: 1.6em;
  font-weight: 600;
  background-color: #f0f0f0;
  position: relative;
  border-bottom: solid 1px #d3d3d3;
}
.accordions__container {
  display: flex;
}
.accordions__title {
  position: relative;
  padding: 20px 0;
  padding-right: 38px;
  flex: 1;
  z-index: 2;
  background-color: #f0f0f0;
}
.accordions__title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  border-bottom: solid 1px #d3d3d3;
  z-index: 1;
}
.accordions__button {
  width: 30%; /*加設寛度*/
  color: white;
  padding-left: 38px;
  line-height: 1;
  transition: padding .3s ease-in-out;
}
.accordions__button::before {
  content: '';
  background-color: #FF3E96;
  position: absolute;
  top: 0;
  left: 50%;
  right: 0;
  bottom: 0;
  bottom: -1px;
  z-index: 1;
  border-bottom: solid 1px #8B008B;
  cursor: pointer;
  transition: background-color .3s ease-in-out, border-color .3s ease-in-out;
}
.accordions__button:hover {
  padding-right: 38px;
}
.accordions__button:hover::before {
  background-color: #8B008B;
}
.accordions__button:focus::before {
  background-color: #8B008B;
}
.accordions__button:active, .accordions__button--active {
  padding-right: 38px;
}
.accordions__button:active::before, .accordions__button--active::before {
  background-color: #031d3d !important;
  border-bottom: solid 1px #031730;
}
.accordions__button:active .accordions__icon, .accordions__button--active .accordions__icon {
  transform: rotate(45deg);
}
.accordions__icon {
  position: relative;
  z-index: 2;
  transition: transform .3s ease-in-out;
}
.accordions__content {
  /* background-color: white; */
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 1.2s ease-in-out, opacity .4s ease-in-out .4s, transform .4s ease-in-out .4s;
  transform: translateY(38px);
}
.accordions__content--expanded {
  max-height: 200vh;
  opacity: 1;
  padding-bottom: 76px;
  transform: none;
  display: flex;flex-flow: row nowrap; 
}
.accordions__content img{ width: 85%; height: auto;}
.accordions__content p{ width: 12%; height: auto; padding: 1%  0 0 2%; padding: 1%  0 0 2%; font-size: 1.2em; line-height: 2.2em; }
.accordions__content p a{ text-decoration: none; color: rgb(255, 255, 255); font-weight: 500; background: rgba(0, 0, 0, 0.6); padding: 5px 10px;}
.accordions__content p a:hover{ color:  rgb(247, 53, 156);}
.rich-text {
  font-size: 18px;
  line-height: 32px;
}
.rich-text p {
  margin-top: 38px;
}


.accordions__content figure{ width:100%; height: auto; padding: 1%  0 0 1%;font-size: 1.2em; line-height: 2.2em; display: inline-flex; }
.accordions__content figure img{ width: 85%; height: auto;}
.accordions__content figure figcaption {width: 40%; text-align: left;}
.accordions__content figure figcaption a{ text-decoration: none; color: rgb(255, 255, 255); font-weight: 500; background: rgba(0, 0, 0, 0.6); padding: 5px 10px;}
.accordions__content figure figcaption a:hover{ color:  rgb(247, 53, 156);}

/* 以下為 手機版－－－－－－－－－－－－－－－－－－ 以下為 手機版－－－－－－－－－－－－－－－－－－ 以下為 手機版－－－－－－－－－－－－－－－－－－ 以下為 手機版－－－－－－－－－－－－－－－－－－ */
@media screen and (max-width: 766px) {
  .app {
    font-family: 'Avenir Next', sans-serif;
    color: #031d3d;
    padding-bottom: 152px;
  }
  
  .container {
    width: 100%;
    max-width: 766px;
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
  }
  
  button {
    border: none;
    background: none;
    font-size: inherit;
    color: inherit;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    outline: none;
  }
  
  .accordions__controls {
    display: flex;
    justify-content: flex-end;
    padding-top: 38px;
    padding-bottom: 19px;
  }
  .accordions__control {
    font-weight: 600;
    font-size: 18px;
    color: #FF3E96;
    transition: color .3s ease-in-out;
  }
  .accordions__control:hover, .accordions__control:focus {
    color: #031d3d;
  }
  .accordions__header {
    font-size: 1.3em;
    font-weight: 600;
    background-color: #f0f0f0;
    position: relative;
    border-bottom: solid 1px #d3d3d3;
  }
  .accordions__container {
    display: flex;
  }
  .accordions__title {
    position: relative;
    padding: 20px 0;
    padding-right: 38px;
    flex: 1;
    z-index: 2;
    background-color: #f0f0f0;
  }
  .accordions__title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    border-bottom: solid 1px #d3d3d3;
    z-index: 1;
  }
  .accordions__button {
    width: 30%; /*加設寛度*/
    color: white;
    padding-left: 38px;
    line-height: 1;
    transition: padding .3s ease-in-out;
  }
  .accordions__button::before {
    content: '';
    background-color: #FF3E96;
    position: absolute;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    bottom: -1px;
    z-index: 1;
    border-bottom: solid 1px #8B008B;
    cursor: pointer;
    transition: background-color .3s ease-in-out, border-color .3s ease-in-out;
  }
  .accordions__button:hover {
    padding-right: 38px;
  }
  .accordions__button:hover::before {
    background-color: #8B008B;
  }
  .accordions__button:focus::before {
    background-color: #8B008B;
  }
  .accordions__button:active, .accordions__button--active {
    padding-right: 38px;
  }
  .accordions__button:active::before, .accordions__button--active::before {
    background-color: #031d3d !important;
    border-bottom: solid 1px #031730;
  }
  .accordions__button:active .accordions__icon, .accordions__button--active .accordions__icon {
    transform: rotate(45deg);
  }
  .accordions__icon {
    position: relative;
    z-index: 2;
    transition: transform .3s ease-in-out;
  }
  .accordions__content {
    /* background-color: white; */
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.2s ease-in-out, opacity .4s ease-in-out .4s, transform .4s ease-in-out .4s;
    transform: translateY(38px);
  }
  .accordions__content--expanded {
    max-height: 200vh;
    opacity: 1;
    padding-bottom: 45px;
    transform: none;
    display: flex;flex-flow: row nowrap; 
  }
  .accordions__content img{ width: 85%; height: auto;}
  .accordions__content p{ width: 12%; height: auto; padding: 1%  0 0 2%; padding: 1%  0 0 2%; font-size: 1.2em; line-height: 2.2em; }
  .accordions__content p a{ text-decoration: none; color: rgb(255, 255, 255); font-weight: 500; background: rgba(0, 0, 0, 0.6); padding: 5px 10px;}
  .accordions__content p a:hover{ color:  rgb(247, 53, 156);}
  .rich-text {
    font-size: 18px;
    line-height: 32px;
  }
  .rich-text p {
    margin-top: 38px;
  }
  
  .accordions__content figure{ width:100%; height: auto; padding:0 ; font-size: 1.1em; line-height: 2.2em; display: inline-flex; position: relative;}
  .accordions__content figure img{ width: 100%; height: auto;z-index: 10;}
  .accordions__content figure figcaption {width: 100%;height: 45px; padding-left: 3.5%;z-index: 50; position: absolute; bottom: -45px; background: rgba(0, 0, 0, 0.6); text-align: center;}
  .accordions__content figure figcaption a{ text-decoration: none; color: rgb(255, 255, 255); font-weight: 500; /*background: rgba(0, 0, 0, 0.3);*/ padding: 5px 10px;}
  .accordions__content figure figcaption a:hover{ color:  rgb(247, 53, 156);}

}
