@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Jost&family=Noto+Sans+TC&family=Roboto&display=swap');

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial,
        "蘋方-繁", "PingFang TC", "黑體-繁", "Heiti TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
    line-height: 1;
    color: #5F5F5F;
}

img {
    display: block;
    width: 100%;
}

a, a:active, a:focus, a:hover {
    color: #888;
    text-decoration: underline solid #ccc;
    text-underline-offset: 4px;
}

button, input[type="button"], input[type="submit"] {
    cursor: pointer;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 65px;
    min-height: calc(100vh - 245px);
}

section {
    display: flex;
    position: relative;
}

#news~section,
footer {
    background-color: black;
}

.h_auto {
    overflow: hidden;
}

#banner img {
    object-fit: cover;
    height: 100%;
}

.product_item img {
    object-fit: cover;
    height: 100%;
}
.check_list img {
    object-fit: contain;
    width: 100px;
    height: 100px;
}

/* size styles --------------- */
.w50 {
    width: 50% !important;
}

/* text styles --------------- */
.title_h2,
.title_h3,
.list_li,
.content_p {
    font-family: "Noto Sans TC", sans-serif;
}

.title_h2 {
    font-size: 1.4rem;
    line-height: 2rem;
    letter-spacing: .1rem;
}

.title_h3 {
    font-size: 1.2rem;
    letter-spacing: .1rem;
}

.title_h3 span {
    padding-left: 1rem;
}

.title_h4 {
    font-weight: bold;
}

.list_li {
    font-size: .9rem;
    line-height: 1.6rem;
}

.content_p {
    font-size: .8rem;
    line-height: 2rem;
}

.text-danger {
    color: red;
    font-size: small;
    font-weight: initial;
}

/* btn styles --------------- */
.form_btn:hover,
.add_cart:hover,
.form_btn:focus,
.add_cart:focus {
    background-color: #343c22;
    color: white;
    text-decoration: none;
}

.add_cart {
    display: block;
    height: 35px;
    line-height: 35px;
    padding: 0 50px;
    font-size: .9rem;
    letter-spacing: .1rem;
    border-radius: 5px;
    color: white;
    background-color: #495237;
    transition: .35s;
}

.form_btn {
    display: inline-block;
    height: auto;
    padding: .8rem;
    border: none;
    font-size: .9rem;
    letter-spacing: .3rem;
    border-radius: 10px;
    color: white;
    background-color: #495237;
    transition: .35s;
    text-decoration: none;
}

.s_btn {
    display: inline-block;
    width: 5rem;
    font-size: .8rem;
    line-height: 2rem;
    font-weight: 300;
    text-align: center;
    border-radius: 2rem;
    background-color: #C1D301;
    color: white;
}

.s_btn:hover {
    background-color: #8b9800;
    text-decoration: none;
    color: white;
}

.btn_size {
    width: 100%;
    height: 3rem;
    line-height: 1.5rem;
    margin: 50px 0 10px;
}

.back_btn {
    width: 10rem;
    padding: 1rem;
    background-color: #495237;
    text-align: center;
    color: #F5F5F5;
    font-size: .9rem;
    border-radius: 2rem;
}

.back_btn:hover {
    background-color: #343c22;
}

@media (max-width: 576px) {

    .btn_size {
        margin: 20px 0 10px;
    }
}

.one_btn {
    display: flex;
    justify-content: center;
}

.one_btn>* {
    padding: .8rem 2rem;
}

.two_btn {
    display: flex;
    width: 100%;
}

.two_btn>* {
    flex: 1;
    font-weight: 400;
    text-align: center;
}

.two_btn a {
    margin-right: 20px;
}


/* topbar --------------- */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.25);
    background-color: #F5F5F5;
    width: 100vw;
    height: 65px;
}

#topbar .logo {
    width: 120px;
}

#topbar .nav_box {
    width: 87%;
    margin-left: 20px;
}

.navigation {
    display: flex;
    justify-content: space-between;
}

#topbar .menu {
    display: flex;
    align-items: center;
}

#topbar a {
    display: block;
    position: relative;
    font-family: Jost, sans-serif;
    color: black;
    text-decoration: none;
    padding: 10px;
}

#topbar a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: -1px;
    width: 0%;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease-in-out;
}

#topbar .menu a:hover::after,#topbar .icon div a:hover::after  {
    width: 100%;
}

#topbar .icon {
    display: flex;
    align-items: center;
}

#topbar .icon a {
    width: 55px;
}
#topbar .icon .dropdown div {
    width: 110px;
}
#topbar .icon .dropdown div a {
    width: 110px;
    font-size: 13px;
}
#search_box {
    position: relative;
    margin: 0 5px;
}

#search {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    padding: 10px;
    border: #5F5F5F 1px solid;
    opacity: 0;
}

#search_btn {
    position: absolute;
    right: 5px;
    top: 3px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #F5F5F5;
    border: none;
    background-image: url(../images/icon-search.svg);
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: .35s;
}

.dropdown,
.quantity {
    position: relative;
}

.dropdown div {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 8rem;
    overflow: hidden;
    background-color: rgba(245, 245, 245, 0.9);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    letter-spacing: .1rem;
    font-size: .9rem;
}
.member_mb {
    display: none;
}
@media (max-width: 820px) {
    .dropdown div {
        top: 0;
        left: -100%;
        background-color: rgba(255, 255, 255, 0.8);
    }
    .member_mb {
        display: block;
        text-align: center;
        border-top: solid 1px #000;
        padding: 15px 0;
        margin: 0 20px;
        line-height: 2rem;
    }
}

.dropdown li {
    border-bottom: #000 1px solid;
}

.quantity span {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    font-weight: bold;
    line-height: 1.2rem;
    text-align: center;
    font-size: .8rem;
    width: 1.2rem;
    height: 1.2rem;
    background-color: rgba(255, 0, 0, 0.9);
    color: white;
    border-radius: 50%;
}

/* 漢堡按鈕 */
@media (min-width: 821px) {
    .hamburger {
        display: none;
    }
}

@media (max-width: 820px) {
    #topbar .nav_box {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .hamburger {
        display: inline-block;
        cursor: pointer;
        background-color: transparent;
        border: none;
        padding: 0;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #5F5F5F;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navigation {
        position: absolute;
        top: 59px;
        right: -20px;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
        display: none;
        animation: navigation .35s both;
    }

    @keyframes navigation {
        from {
            opacity: 1;
        }

        to {
            opacity: 0;
        }
    }

    .navigation.show {
        display: block;
        animation: show .35s both;
    }

    @keyframes show {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    #topbar .menu {
        flex-direction: column;
        margin: 20px 50px;
    }

    #topbar .menu li {
        margin-bottom: 20px;
    }

    #topbar .icon {
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* index --------------- */
#home #banner {
    width: 100%;
    height: calc(100vh - 65px);
}

#home section {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 10vh 0;
}
#home ~ footer {
    margin-top: 0;
}

#home .title {
    margin-bottom: 5vh;
}

@media (max-width:820px) {
    #home #banner {
        height: 50vh;
    }

    #home .title {
        margin-bottom: 2vh;
    }
}

@media (max-width: 576px) {

    #home section {
        min-height: 50vh;
    }
}

/* 播放清單 */
#playlist {
    background-color: black;
}

#playlist .carousel {
    position: relative;
    display: flex;
    justify-content: center;
    width: 90%;
}

#playlist .carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
}

#playlist .carousel-wrapper {
    margin: 0 100px;
    overflow: hidden;
}

#playlist .carousel-items {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
}

#playlist .carousel-item {
    flex: 0 0 50%;
    padding-right: 20px;
}

#playlist .carousel-item iframe {
    width: 100%;
    height: 315px;
}

/* #playlist .carousel-item iframe:last-child {
    margin-right: 50px;
} */
#playlist .carousel-item img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

#playlist .carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 1;
    padding: 0 20px;
}

#playlist .carousel-controls button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #999;
    border: none;
    outline: none;
    color: #ccc;
    font-size: 2rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 45px;
}

#playlist .carousel-controls i {
    transition: transform 0.2s ease-in-out;
}

#playlist .carousel-controls button:hover i {
    transform: translateX(-2px);
}

#playlist .carousel-controls button:focus i {
    transform: scale(1.1);
}

@media (max-width:820px) {
    #playlist .carousel-wrapper {
        margin: 0 12%;
    }

    #playlist .carousel {
        width: 100%;
    }

    #playlist .carousel-container {
        width: 95%;
    }

    #playlist .carousel-item {
        flex: 0 0 100%;
        padding-right: 0;
    }

    #playlist .carousel-item iframe {
        height: 30vh;
    }
}

/* 最新消息 */
.news_title {
    position: absolute;
    top: 50px;
    left: 5%;
    width: 50%;
}

#news_list header {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1180px;
}

#news_list .title {
    position: absolute;
    top: 100px;
    left: 5%;
    width: 40%;
}

#news_list .title_h2 {
    position: relative;
    align-self: flex-end;
    margin-right: 15px;
}

#news_list .title_h2::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: -120%;
    width: 100px;
    height: 2px;
    background-color: #000;
}

/* 消息分類按鈕 */
#news_list nav {
    align-self: flex-end;
    margin: 30px 0;
}

#news_list nav ul {
    display: flex;
}

#news_list nav li:nth-child(-n+2) {
    border-right: 1px solid #000;
}

#news_list nav a {
    color: #000;
    padding: 5px 16px;
    transition: .4s;
}

#news_list nav a:hover {
    color: #8b9800;
}

#home .news-box {
    position: relative;
    overflow: hidden;
    width: 75%;
    max-width: 1180px;
    margin-top: 100px;
}

#news_list .news-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1180px;
}

#home .news-carousel {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
}

#news_list .news-carousel {
    display: flex;
    flex-wrap: wrap;
}

#home .news-item {
    flex: 0 0 31.85%;
    margin-right: 32px;
    font-size: .8rem;
    text-decoration: none;
}

#news_list .news-item {
    flex: 1;
    min-width: 31%;
    max-width: 31%;
    margin: 25px 1%;
    font-size: .8rem;
    text-decoration: none;
}

.news-item figure {
    width: 100%;
    height: 45vh;
    overflow: hidden;
}

#news_list .news-item figure {
    height: 40vh;
}

.news-item {
    display: block;
    color: #000;
}
.news-item figure {
	display: flex;
	justify-content: center;
	align-items: center;
}
.news-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: all .4s;
}

.news-item img:hover {
    width: 110%;
    height: 110%;
}

.news-item h4 {
    margin: 1.5rem 0 1rem 0;
}

.news-item p {
    margin-bottom: 1.5rem;
    line-height: 1.1rem;
    /* 多行省略 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-item .more {
    display: inline-block;
    margin-right: 20px;
    color: #000;
    transition: all .4s;
}

.news-item .more:hover {
    color: #8b9800;
    text-decoration: underline;
}

.news-controls {
    position: absolute;
    top: 50%;
    width: 90%;
    transform: translateY(-50%);
}

.news-prev,
.news-next {
    background-color: transparent;
    border: none;
    color: #000;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
}

.news-prev {
    position: absolute;
    left: 0;
}

.news-next {
    position: absolute;
    right: 0;
}

/* 消息詳情頁 */
#news_detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#news_detail section {
    width: 80%;
}


/* ↓ html編輯器，↓ 以下為示意用css ↓ */
#news_detail section {
    flex-direction: column;
    padding: 50px 0;
}

#news_detail h2,
#news_detail h3,
#news_detail img {
    margin-top: 30px;
}
#news_detail .title_h2 {
    position: relative;
}
#news_detail .title_h2 span{
    position: absolute;
    right: 0;
    font-size: 1rem;
}
#news_detail section>* {
    margin-bottom: 20px;
    line-height: 1.5rem;
}

/* ↑ html編輯器，↑ 以上為示意用css-end ↑ */



@media (max-width: 820px) {
    #home #news .title {
        width: 70%;
    }

    #home .news-box {
        margin-top: 40px;
    }

    #home .news-item {
        flex: 0 0 50%;
    }

    #home .news-item figure {
        height: 30vh;
    }


    #news_list .news-item {
        min-width: 48%;
        max-width: 48%;
    }
}

@media (max-width: 576px) {
    #home #news .title {
        width: 70%;
    }

    #home .news-box {
        margin-top: 20px;
    }

    #home .news-item {
        flex: 0 0 100%;
    }

    #home .news-prev,
    #home .news-next {
        padding: 0;
    }

    #home .news-item figure {
        height: 35vh;
    }

    #news_list .title {
        top: 130px;
        width: 50%;
    }

    #news_list .title_h2::before {
        width: 0;
    }

    #news_list .news-item {
        min-width: 95%;
        max-width: 95%;
    }
}

/* TGOP */
.tgop-content {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1px;
    border-top: 1px solid #000;
}

.tgop-item {
    position: relative;
    width: 25%;
    color: #000;
    padding: 65px 58px;
    border: 1px solid #000;
    transition: color .4s cubic-bezier(.07, .81, .3, .99)
}

@media (max-width:820px) {
    .tgop-item {
        width: 50%;
    }
}

@media (max-width:576px) {
    .title {
        width: 80%;
        margin-bottom: 3vh;
    }

    .tgop-item {
        width: 100%;
    }
}

.tgop-img::before,
.tgop-item::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: ""
}

.tgop-item::before {
    display: block;
    background-color: white;
    transition: border .4s cubic-bezier(.07, .81, .3, .99)
}

.tgop-item:hover {
    color: #fff
}

.tgop-item:hover::before {
    background-color: black;
}

.tgop-img {
    position: relative;
    z-index: 1;
}

.tgop-img img {
    width: 100%
}

.tgop-img::before {
    /* background-color: rgba(0, 0, 0, .6); */
    opacity: 0;
    transition: .4s cubic-bezier(.07, .81, .3, .99)
}

.tgop-item:hover .tgop-img {
    filter: grayscale(100%)
}

.tgop-item:hover .tgop-img::before,
.tgop-item:hover .tgop-hover {
    opacity: 1
}

.tgop-top,
.tgop-left,
.tgop-right,
.tgop-bottom {
    position: absolute;
    font-family: Jost, sans-serif;
    font-weight: 300;
    font-size: .75rem;
    text-align: center
}

.tgop-top,
.tgop-bottom {
    left: 50%;
    width: 100%;
    transform: translateX(-50%)
}

.tgop-left,
.tgop-right {
    top: 50%;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    transform: translateY(-50%)
}

.tgop-top {
    top: 25px
}

.tgop-right {
    right: 22px
}

.tgop-bottom {
    bottom: 25px;
    letter-spacing: .3rem;

    font-weight: 300;
}

.tgop-left {
    left: 22px
}

.tgop-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-block;
    font-family: Helvetica, sans-serif;
    font-size: 3.571428571vw;
    font-weight: 300;
    color: #fff;
    letter-spacing: .08em;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s cubic-bezier(.07, .81, .3, .99);
    transform: translate(-50%, -50%) skewX(-10deg)
}

/* our artists */
.artists-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 80%;
}

.artists-list a {
    display: block;
    color: white;
    text-decoration: none;
    text-align: center;
    filter: grayscale(0%);
}

.artists-list a:hover {
    filter: grayscale(100%);
    transition: 1s filter;
}

.artists-item {
    width: 23%;
    margin: 5px 0;
    padding: 0 5px;
}

.artists-item figure {
    position: relative;
    width: 100%;
    height: 35vh;
    overflow: hidden;
}

.artists-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.artists-item p {
    font-weight: 300;
    margin: 20px 0;
    letter-spacing: .3rem;
}

@media (max-width:820px) {
    .artists-item {
        width: 33.3333%;
    }

    .artists-item figure {
        height: 30vh;
    }
}

@media (max-width:820px) {
    .artists-item {
        width: 50%;
    }
}

@media (max-width:576px) {
    .artists-item {
        width: 100%;
    }
}


/* --------------- 人物詳情 --------------- */
#about {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0 100px;
}

#about::after {
    content: "";
    position: absolute;
    right: 10%;
    bottom: -20px;
    width: 10%;
    border-top: #000 1px solid;
}

#about section {
    display: flex;
    flex-direction: column;
    width: 65%;
}

#about h2 {
    margin-bottom: 50px;
}

#about .container {
    display: flex;
    align-items: center;
    margin: 2vh;
}

#about .photo-box {
    position: relative;
    width: 350px;
    height: 60vh;
    border: #495237 1px solid;
}

#about figure {
    position: absolute;
    top: 6vh;
    left: 17%;
    width: 350px;
}

#about figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-family: "Noto Sans TC", sans-serif;
    letter-spacing: 1rem;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.2);
}

#about .content {
    flex: 1;
    margin: 100px 0 0 20%;
}

#about .content svg {
    padding-right: .5rem;
}

#about .content p {
    margin: 1.5rem 0;
}

@media (max-width:820px) {
    #about {
        margin: 0;
    }

    #about section {
        width: 80%;
    }

    #about h2 {
        margin-top: 30px;
    }

    #about .container {
        flex-direction: column;
        margin-right: 15%;
    }

    #about .photo-box {
        margin-top: 30px;
        height: 550px;
    }

    #about figure {
        top: 70px;
    }

    #about .content {
        margin: 80px 0 0 20%;
    }
}

@media (max-width:576px) {
    #about section {
        width: 90%;
    }

    #about .container {
        align-items: flex-start;
        margin-right: 2vh;
    }

    #about .photo-box {
        width: 90%;
        height: 400px;
        margin-bottom: 50px;
    }

    #about figure {
        width: 90%;
        top: 50px;
    }

    #about .content {
        margin: 20px 0 0;
    }

    #about h2 {
        margin-bottom: 20px;
    }
}

/* 3-one */
#one {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#one #banner {
    width: 100%;
    height: calc(100vh - 65px);
}

#one #banner picture {
    width: 100%;
}

#one #banner img {
    height: 100%;
    object-fit: cover;
}

#one_about {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    padding: 5vh 25%;
    background-color: #495237;
}

#one_about>* {
    flex: 1;
    margin: 20px 15px;
}

#one_about p {

    font-weight: 300;
    font-size: .8rem;
    color: #FCFB7C;
    line-height: 1.5rem;
}

@media (max-width:820px) {
    #one #banner {
        height: 50vh;
    }
}

@media (max-width:576px) {
    #one_about {
        flex-direction: column;
        padding: 5vh 15%;
    }
}

/* --------------- product list 產品列表頁 --------------- */
#products {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

#products h2 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #5F5F5F;
    border-top: #999 1px solid;
    border-bottom: #999 1px solid;
    padding: 1rem 10.3%;
    margin: 2rem 0 1rem;
}

#products h2 a {
    color: #5F5F5F;
    font-size: .8rem;
    border-bottom: 1px solid transparent;
    transition: .35s;
}

#products h2 a:hover {
    color: #000;
    border-bottom: #000 1px solid;
}

.product_list {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
}

.product_item {
    width: 33%;
    margin: 0.15%;
}

.product_item_b {
    margin: 0.15%;
}

/* --------------- product details 產品詳情頁 --------------- */
.product_details_box {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
#product_details_box {
    display: block;
}

/* 產品相片 */
#photo_box {
    position: relative;
    display: flex;
    width: 50%;
}

#photo_box footer {
    position: absolute;
    bottom: 0;
    width: 100vw;
}

/*
#photo_box .photo_list {
    margin-bottom: 242px;
}
*/

/* 產品內容 */
.product_details {
    position: fixed;
    top: 15%;
    right: 6%;
    z-index: 2;
    width: 35%;
    height: 100vh;
    padding-top: 80px;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
}

.product_details_absolute {
    position: absolute;
    bottom: 150px;
    top: auto;
    right: -92%;
    width: 70%;
}

@media (min-width:577px) {
    .photo_list_m {
        display: none;
    }
}

@media (max-width:820px) {
    #photo_box .photo_list {
        margin-bottom: 55vh;
    }

    .product_details_absolute {
        bottom: 300px;
        right: -90%;
    }
}

@media (max-width:576px) {
    .photo_list_m {
        display: block;
    }

    #photo_box {
        flex-direction: column;
        width: 100%;
    }

    #photo_box .photo_list {
        margin: 0 0 550px;
    }

    .product_details {
        position: relative;
        width: 95%;
        top: 0;
        right: 0;
        left: 0;
        z-index: 2;
        height: auto;
        padding: 60px 50px 50px;
    }

    .photo_list figure:first-child {
        display: none;
    }
}

.product_details>* {
    margin: 30px 0;
}

.product_details .price {
    font-size: 1.2rem;
}

.product_details h3 {
    font-weight: 600;
}

.product_details .shape li {
    display: inline-block;
    font-size: .8rem;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 15px 0 0;
    background-color: #F5F5F5;
    border: solid 1px transparent;
    cursor: pointer;
}

.product_details .shape li:active {
    border: solid 1px black;
}

.product_details .shape .radios input,
.product_details .shape .checkboxs input {
    display: none;
}
.product_details .shape label {
    padding: 10px;
    cursor: pointer;
    font-size: .8rem;
    text-align: center;
    border-radius: 5px;
    display: inline-block;
    margin: 15px 15px 0 0;
    background-color: #F5F5F5;
    border: solid 1px #eee;
}
.product_details .shape input:checked + label {
    border: solid 1px black;
}
.product_details .shape label img {
    width: initial;
    max-height: 35px;
    display: block;
    margin-bottom: 5px;
}

.product_details .btns {
    display: flex;
}

.product_details .btns a {
    cursor: pointer;
    text-decoration: none;
}

.product_details .favourite {
    display: block;
    width: 35px;
    height: 35px;
    padding: 0 30px;
    margin-left: 20px;
    border-radius: 5px;
    background-image: url("../images/favourite.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #F5F5F5;
}

.product_details .favourite:hover,
.product_details .favourite.active {
    background-image: url("../images/favourite-active.svg");
}

.product_details .feature {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    width: 70%;
}

.product_details .feature_title {
    margin: 0 0 10px;
}

/* --------------- 會員專區 共用 --------------- */
.box-title {
    width: 100%;
    text-align: center;
    padding: 20px 50px;
    margin-bottom: 50px;
    border-bottom: #ccc solid 1px;
    font-size: 1.2rem;
    letter-spacing: .1rem;
    font-family: "Noto Sans TC", sans-serif;
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    margin: 50px 0 100px;
    padding-bottom: 50px;
    border: #ccc solid 1px;
    font-family: 'Jost', sans-serif;
}

.form div {
    font-size: .9rem;
    font-weight: 300;
}

.form>div>div>div {
    display: flex;
}

.label,
.vcode,
.checkout_recipient p {
    display: inline-block;
    width: 20%;
    height: 2rem;
    line-height: 2rem;
    margin-right: 5%;
}

@media (max-width:820px) {
    .checkout_recipient p {
        width: 80%;
    }
}

.input_basic,
select {
    width: 100%;
    height: 2rem;
    padding: 0 .5rem;
    border: #C1D301 1px solid;
    border-radius: 5px;
    color: #5F5F5F;
}

@media (max-width:820px) {
    #birthday {
        min-width: 67%;
    }
}

.input_basic:focus {
    border: #C1D301 2px solid;
    outline: none;
    transition: 0.35s;
}

.input_box {
    flex-direction: column;
}

.input_box>div {
    margin: 2vh 0;
}

.input_box input::placeholder {
    color: #ccc;
}

#register_form .radio-label,
#manage_form .radio-label {
    margin: 1rem 50px 0 -4%;
    line-height: 1rem;
}

#manage #pwd-box, #manage #confirm-box {
    display: none;
}

/* 社群登入按鈕區 */
.media_btn {
    background-color: transparent;
    border: #C1D301 solid 1px;
    border-radius: 10px;
    width: 16rem;
    height: 60px;
    line-height: 40px;
    margin: 10px 0;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    transition: .4s;
    color: #5F5F5F;
    text-align: center;
    text-decoration: none;
}

.media_btn:hover {
    background-color: #C1D301;
    color: white;
    text-decoration: none;
}

.media_btn img {
    width: auto;
    height: 100%;
    margin-right: 10px;
}

.media_btn span {
    width: 100%;
}

/* --------------- login 登入頁 --------------- */
#login_form .two_btn {
    width: 60%;
}
#login_form .two_btn  input:first-child {
    margin-right: 20px;
}

#login_form .login {
    display: flex;
    width: 100%;
}

/* 登入欄位區 */
#login_form .login_box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: #ccc solid 1px;
}

.login_input {
    width: 60%;
}

.login_input>div {
    display: flex;
}

#login_form .checkbox {
    width: 47%;
    margin: 3vh 0;
}

#login_form .checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
}

#login_form .checkbox a {
    color: #495237;
    text-decoration: none;
}

#login_form .checkbox a:hover {
    text-decoration: underline;
}

/* 社群登入按鈕區 */
#login_form>div>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#login_form .social_media {
    flex: 1;
    flex-direction: column;
}

@media (max-width:820px) {
    .login_input>div {
        flex-direction: column;
    }

    #login_form {
        width: 85%;
    }

    #login_btn,
    #login_form .checkbox {
        width: 60%;
    }

    #login_form .login_box {
        padding: 0;
    }

    #login_form .login_input div {
        margin: 1vh 0;
    }
}

@media (max-width:576px) {
    #login_form .login {
        flex-direction: column;
    }

    #login_form .login_box {
        border-right: none;
        border-bottom: #ccc solid 1px;
        margin-bottom: 20px;
    }
}

/* --------------- success 帳號建立成功頁 --------------- */
.alert {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 310px);
}

.alert_box {
    width: 45%;
    padding: 50px 5%;
    text-align: center;
    border: #C1D301 solid 1px;
    border-radius: 10px;
}

.alert_box .icon {
    background-color: #C1D301;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    position: relative;
}

.alert_box .icon:after {
    content: '';
    position: absolute;
    left: 31%;
    top: 14%;
    width: 28px;
    height: 45px;
    border: solid #fff;
    border-width: 0 10px 10px 0;
    transform: rotate(45deg);
}

.alert_box h2 {
    margin: 5vh 0;
}

.alert_box aside {
    line-height: 2rem;
}

.alert_box aside a {
    color: #C1D301;
    padding-left: 3px;
}

.alert_box aside a:hover {
    color: #8b9800;
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .alert_box {
        width: 65%;
    }
}

@media (max-width: 820px) {
    .alert {
        height: calc(100vh - 572px);
    }

    .alert_box {
        width: 90%;
        padding: 20px 50px;
    }
}

@media (max-width:576px) {
    .alert {
        height: auto;
        margin: 5vh 0;
    }

    .alert_box {
        padding: 20px;
    }

    .forgot_input div {
        flex-direction: column;
    }

    .forgot_input .label {
        width: 100%;
    }
}

/* --------------- register 註冊頁 --------------- */
.register {
    display: flex;
    justify-content: center;
}

.register_input {
    width: 100%;
}

.register_input>div {
    display: flex;
}

.register_input .radios {
    display: flex;
    align-items: center;
}

.input_box .tel_box,
.input_box .birthday_box {
    position: relative;
    margin-bottom: 3rem;
}

#register_form .remark {
    position: absolute;
    left: 20.5%;
    bottom: -1.4rem;
    font-size: .8rem;
}


#icp {
    width: 20%;
    font-size: 1rem;
}

.tel_box span {
    line-height: 2rem;
    padding: 0 2%;
}

#tel {
    width: 72%;
}

.add_box>select {
    width: 48%;
}

#add1 {
    margin-right: 2%;
}

#add3 {
    width: 100%;
    margin-left: 21%;
}

.checkbox label {
    line-height: 1.2rem;
}

.checkbox a {
    color: #495237;
    padding: 0 5px;
}

#register_form .media_btn:first-child {
    margin-right: 15px;
}

@media (min-width:821px) {
    .register,
    #manage {
        min-width: 500px;
    }
}

@media (max-width:820px) {

    #register_form,
    #manage_form {
        width: 90%;
    }

    #register_form .label,
    #manage_form .label {
        width: 35%;
    }

    #register_form .social_media {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #register_form .media_btn:first-child {
        margin-right: 0;
    }
}

/* --------------- manage 會員資料維護 --------------- */
.manage_input p {
    width: 100%;
    line-height: 1.7rem;
}

.manage_input h4 {
    font-weight: 400;
    font-size: 1.1rem;
    color: #8b9800;
    margin: 2rem 0 1.2rem 0;
}

@media (min-width:821) {
    .form>div {
        width: 45%;
        max-width: 650px;
    }
}

@media (max-width:820px) {

    .form>div {
        width: 80%;
    }

    #icp {
        width: 30%;
    }

    #tel {
        width: 58%;
    }

    #register_form .remark {
        left: 30%;
    }

    #register_form .radio-label {
        width: 43%;
        margin-right: 10px;
    }

    .vcode {
        width: 35%;
        margin-right: 5%;
    }

    .vcode img {
        width: auto;
        max-height: 35px;
    }

    #add3 {
        margin-left: 29%;
    }
}

/* --------------- order_list 訂單列表頁 --------------- */
#order_list {
    flex-direction: column;
    width: 80%;
    margin: 20px 0;
}

#order_list input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

#order_list .row {
    display: flex;
    margin: 50px 0;
}

#order_list .row .col {
    flex: 1;
}

/*
#order_list .row .col:last-child {
    margin-left: 1em;
}
*/

/* Accordion styles */
#order_list .tabs {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
    border: #C1D301 solid 1px;
}

#order_list .tab {
    width: 100%;
    color: #000;
    overflow: hidden;
}

#order_list .tab:nth-child(-n+2) {
    border-bottom: #C1D301 1px solid;
}

#order_list .tab-label {
    display: flex;
    justify-content: space-between;
    padding: 1em;
    background: white;
    font-weight: bold;
    cursor: pointer;
    /* Icon */
}

#order_list .tab-label span {
    flex: 1;
}

#order_list .tab-label:hover {
    background: #C1D301;
    color: white;
}

#order_list .tab-label::after {
    content: "❯";
    width: 1em;
    height: 1em;
    text-align: center;
    transition: all 0.35s;
}

#order_list .tab-content {
    max-height: 0;
    padding: 0 1em;
    color: #000;
    background: white;
    transition: all 0.35s;
    opacity: 0;
}

#order_list .tab-content .pickup {
    line-height: 2rem;
}

#order_list .tab-content .pickup p {
    font-size: .9rem;
}

#order_list .tab-close {
    display: flex;
    justify-content: flex-end;
    padding: 1em;
    font-size: 0.75em;
    background: #C1D301;
    cursor: pointer;
}

#order_list .tab-close:hover {
    background: #C1D301;
}

#order_list input:checked+.tab-label {
    background: #C1D301;
}

#order_list input:checked+.tab-label::after {
    transform: rotate(90deg);
}

#order_list input:checked~.tab-content {
    max-height: 100%;
    padding: 1em;
    opacity: 1;
}
#order_list img {
    width: 100px;
    height: 100px;
}
@media (max-width: 767px) {
    #order_list {
        width: 95%;
    }
    #order_list .tab-label span > span {
        display: none;
    }
}

/* --------------- favourite 收藏商品頁 --------------- */
#favourite {
    flex-direction: column;
    width: 70%;
    margin: 50px 0;
}

@media (max-width:820px) {
    #favourite .check_list ul li:nth-child(7) {
        position: absolute;
        top: 45px;
        right: -10%;
    }
}

/* ------- 購物車 ------- */
/* --------------- check 訂單明細頁 --------------- */
#check {
    overflow-x: hidden;
    margin-top: 20px;
}

#checkout-cart {
    width: 80%;
}

#check section {
    flex-direction: column;
    padding: 30px 0 20px 0;
    font-size: .85rem;
}

.check_list {
    margin: 20px 0;
    padding: 20px 0;
    border-top: #C1D301 2px solid;
    border-bottom: #C1D301 2px solid;
}

.check_list .item {
    padding: 10px;
    border-top: #C1D301 1px solid;
}

.check_list h2 {
    margin: 1rem 0;
    padding: 1rem 0;
    font-size: 1.3rem;
}

.check_list h2 span {
    padding-left: 1rem;
}

.check_list ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.check_list ul li {
    text-align: center;
    margin: 1rem;
}

.check_list .img_size {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.check_list .close:hover {
    color: #8b9800;
}

.check_list .item_name {
    font-weight: bold;
}

.check_list .item_title {
    display: none;
}

.check_list ul li:nth-child(1) {
    width: 100px;
    text-align: left;
    margin-right: 20px;
}

.check_list ul li:nth-child(2) {
    width: calc(40% - 150px);
    text-align: left;
}

.check_list ul li:nth-child(3) {
    width: calc(10% - 20px);
}

.check_list ul li:nth-child(4) {
    width: calc(10% - 20px);
}

.check_list ul li:nth-child(5) {
    width: calc(10% - 20px);
}

.check_list ul li:nth-child(6) {
    width: calc(10% - 20px);
}

.check_list ul li:nth-child(7) {
    width: calc(10% - 20px);
}

.check_list ul li:nth-child(7) a {
    font-size: 1.7rem;
    color: #C1D301;
}

@media (max-width:1200px) {
    .check_list .item {
        position: relative;
        justify-content: flex-start;
    }

    .check_list {
        border-top: none;
    }

    .check_list ul li {
        margin: 10px 0;
        text-align: left;
    }

    .check_list .item_name {
        display: none;
    }

    .check_list .item_title {
        display: inline-block;
        padding-right: 1rem;
        font-weight: bold;
    }

    .check_list ul li:nth-child(1) {
        width: 100px;
    }

    .check_list ul li:nth-child(2) {
        width: 80%;
    }

    .check_list ul li:nth-child(3) {
        width: 20%;
    }

    .check_list ul li:nth-child(4) {
        width: 20%;
    }

    .check_list ul li:nth-child(5) {
        width: 12%;
        margin-right: 5%;
    }

    .check_list ul li:nth-child(6) {
        width: 20%;
    }

    .check_list ul li:nth-child(7) {
        width: 20%;
    }
}

@media (max-width: 820px) {
    .check_list .item li {
        text-align: left;
        padding: 10px;
    }

    .check_list .item_title {
        margin-bottom: 5px;
    }

    .check_list ul li:nth-child(1) {
        width: 100px;
    }

    .check_list ul li:nth-child(2) {
        width: 70%;
    }

    .check_list ul li:nth-child(3) {
        width: 25%;
    }

    #favourite .check_list ul li:nth-child(3) {
        width: 35%;
    }

    .check_list ul li:nth-child(4) {
        width: 23%;
    }

    #favourite .check_list ul li:nth-child(4) {
        width: 35%;
    }

    .check_list ul li:nth-child(5) {
        width: 20%;
        margin-right: 10px;
    }

    .check_list ul li:nth-child(6) {
        width: 23%;
    }

    .check_list ul li:nth-child(7) {
        width: 10%;
    }
}

@media (max-width:650px) {
    .check_list .item_title {
        padding-right: .5rem;
    }

    .check_list .item li {
        padding: 5px;
    }

    #favourite .check_list .item li,
    #order_list .check_list .item li {
        width: 100%;
    }

    .check_list ul li:nth-child(1) {
        width: 100px;
    }

    .check_list ul li:nth-child(2) {
        width: 55%;
    }

    .check_list ul li:nth-child(3) {
        width: 21%;
    }

    #favourite .check_list ul li:nth-child(3) {
        width: 50%;
    }

    .check_list ul li:nth-child(4) {
        width: 23%;
    }

    #favourite .check_list ul li:nth-child(4) {
        width: 50%;
    }

    .check_list ul li:nth-child(5) {
        width: 27%;
    }

    .check_list ul li:nth-child(6) {
        width: 23%;
    }

    .check_list .close {
        position: absolute;
        top: 1rem;
        right: 0;
    }
}

/* 金額小計 */
.check_total {
    display: flex;
    margin: 2rem 1rem;
}

@media (max-width:820px) {
    .check_total {
        flex-direction: column;
    }
}

#send_form {
    flex: 1.5;
    padding-right: 3%;
}

.check_total .lumpsum {
    flex: 1;
}

.check_total .radios {
    margin: 2rem .5rem;
}

.check_total .radios > * {
    flex: 1;
}

.check_total .radio-label {
    display: inline-block;
    margin: 1rem 30px 0 -3%;
    line-height: 1rem;
}

@media (max-width:576px) {
    .check_total .radio-label {
        width: 65%;
    }

    .check_total .radios {
        margin: 2rem 0;
    }
}

.check_total .market {
    position: relative;
}

.checkout_market {
    font-size: 1rem;
    margin: 20px 0;
}

.checkout_market span {
    margin: 0 20px;
}

.check_total .market span {
    width: 100%;
    position: absolute;
    top: 110%;
    left: 2.3rem;
    font-size: 12px;
    color: #999;
}

.check_total a {
    position: absolute;
    left: 150%;
}

.lumpsum li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: #C1D301 1px solid;
    padding: .5rem;
}

.lumpsum li .label {
    margin: 0 1rem;
}

.lumpsum li:nth-child(3) {
    border: none;
}

.lumpsum li:last-child {
    border: #C1D301 2px solid;
}

.lumpsum .price .nt {
    color: #ccc;
    margin-left: 20px;
}

.lumpsum .price span:last-child {
    display: inline-block;
    width: 5.5rem;
    text-align: right;
    padding-right: 1rem;
}

.lumpsum .total span:last-child {
    width: calc(5.5rem - 2px);
    padding-right: calc(1rem - 2px);
}

@media (max-width: 820px) {
    .check_total .lumpsum {
        flex: 2;
    }

}

@media (max-width: 650px) {
    .lumpsum .price span:last-child {
        width: 4rem;
    }

    .check_total .lumpsum {
        margin-top: 30px;
    }
}

/* 注意事項 */
.order_remark {
    display: flex;
    margin-top: 20px;
}

.order_remark div:first-child {
    flex: 1.5;
    padding-right: 10%;
    margin: 0 2rem;
}

.order_remark div:last-child {
    flex: 1;
}

.order_remark div>* {
    margin: 1rem 0;
}

@media (max-width: 820px) {
    .order_remark div:first-child {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .order_remark {
        flex-direction: column;
    }

    .order_remark div:first-child {
        padding-right: 0;
    }

    .order_remark div:last-child {
        margin: 0 2rem;
    }

    .check_total a {
        left: 110%;
    }
}

/* 付款方式 */
#pay_form,
#add_form {
    border: #C1D301 2px solid;
    border-radius: 10px;
    padding: 15px 50px 20px;
    margin: 20px 0;
}

#pay_form .radio-label {
    display: inline-block;
    margin: 1rem 50px 0 -3%;
    line-height: 1rem;
}

#pay_form .checkout_pay {
    margin: 0;
}

@media (max-width: 576px) {
    #pay_form {
        padding: 15px 30px 20px;
    }

    #pay_form .radio-label {
        width: 100%;
        margin: 10px 0;
    }
}

/* 收件資料 */
#add_form .order_box {
    display: flex;
}

#add_form .order_box>* {
    flex: 1;
    margin: 50px;
}

#add_form .order_box>div>* {
    margin-bottom: 1rem;
}

#add_form .checkout_recipient>div {
    display: flex;
}

#add_form h3 {
    text-align: left;
    border: none;
    padding: 0 0 2rem;
}

.recipient_titel {
    display: flex;
    justify-content: space-between;
}

.recipient_titel div:last-child {
    font-size: .8rem;
}

#add_form input {
    width: 72%;
}

#add_form .add_box select {
    width: 34.5%;
}

#add_form #add3 {
    margin-left: 26%;
}

#add_form .remark {
    margin: 10px 0 0 26%;
}

.recipient {
    border-left: #C1D301 1px solid;
    padding-left: 10%;
}

.checkout_recipient {
    border: none;
    padding: 0 10%;
}

.invoice {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: #C1D301 1px solid;
}

.checkout_recipient .invoice {
    flex-direction: column;
}

.invoice h3 {
    margin-bottom: 0;
}

.invoice>div {
    margin-bottom: 1rem;
}

.invoice .radios {
    margin-top: 2rem;
}

.e_invoice {
    margin-right: 20px;
}

.invoice .radios div {
    margin-bottom: 1rem;
}

.invoice .radios select {
    width: 72%;
}

#add_form .two_btn {
    width: 40%;
    /* min-width: 400px; */
    margin: 0 auto;
}

.order_number {
    text-align: right;
    margin: 30px 0 10px;
}

@media (max-width: 820px) {
    .order_box {
        flex-direction: column;
    }

    #add_form .recipient {
        border-left: none;
        padding: 3rem 0 0;
        margin-top: 0;
    }

    #add_form .two_btn {
        width: 60%;
    }

    #add_form .two_btn .btn_size {
        margin: 20px 10px;
    }
}

@media (max-width: 576px) {
    #add_form {
        padding: 5px;
    }

    #add_form .recipient {
        padding: 0;
    }

    #add_form .order_box>* {
        margin: 20px;
    }

    #add_form .checkout_recipient>div {
        flex-direction: column;
    }

    #add_form div>* {
        width: 95%;
        margin: 10px 0;
    }

    #add_form .order_label {
        width: 5rem;
        font-weight: bold;
        font-size: 1rem;
    }

    #add_form .add_box select {
        width: 45.5%;
    }

    #add_form #add3 {
        margin-left: 0;
        width: 95%;
    }

    #add_form #icp {
        width: 25%;
    }

    #add_form #tel {
        width: 60%;
    }

    #add_form .remark {
        margin-left: 35%;
    }

    #add_form .recipient_titel {
        flex-direction: column;
    }

    #add_form .recipient_titel div:first-child {
        margin-bottom: 1rem;
    }

    #add_form .recipient_titel svg {
        width: auto;
    }

    #add_form .invoice .radios select {
        width: 100%;
    }

    #add_form .two_btn {
        width: 95%;
    }

    .order_number {
        text-align: left;
        margin: 30px 0 0;
    }

}

/* --------------- 頁尾區 --------------- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 50px 10% 50px;
    margin-top: 50px;
    color: #999;
    min-height: 245px;
}
#product_details_box ~ footer {
    margin-top: 0;
}

footer p {
    margin: 15px 0;
}

footer .head {
    flex: 1;
}

footer h1 {
    max-width: 200px;
}

footer .head p {
    width: 205px;

    font-size: 14px;
    letter-spacing: 2.5px;
}

footer ul {
    display: flex;
}

footer a {
    margin: 0 10px;
    font-size: .8rem;
    letter-spacing: .2rem;
    display: block;
    color: #ccc;
    text-align: center;
    text-decoration: none;
}

footer .other {
    display: flex;
    justify-content: center;
    flex: 5;
}
footer .other a,
footer .other a:hover,
footer .other a:focus,
footer .other a:active {
    color: #ccc;
    text-decoration: none;
}
footer .other figure {
    position: relative;
    width: 100px;
    height: 100px;
}
footer .other img {
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: opacity .35s;
}
footer .other img:first-child {
    opacity: 1;
}
footer .other img:nth-child(2) {
    opacity: 0;
}
footer .other a:hover img:first-child {
    opacity: 0;
}
footer .other a:hover img:nth-child(2) {
    opacity: 1;
}
footer .social {
    flex: 1;
}

footer .social a {
    display: block;
    width: 50px;
    height: 50px;
    background-size: 100%;
    background-position: center;
    transition: background-image .35s;
}

.icon-fb {
    background-image: url(../images/icon-fb.svg);
}

.icon-ig {
    background-image: url(../images/icon-ig.svg);
}

.icon-yt {
    background-image: url(../images/icon-yt.svg);
}

.icon-line {
    background-image: url(../images/icon-line.svg);
}

.icon-fb:hover {
    background-image: url(../images/icon-fb-hover.svg);
}

.icon-ig:hover {
    background-image: url(../images/icon-ig-hover.svg);
}

.icon-yt:hover {
    background-image: url(../images/icon-yt-hover.svg);
}

.icon-line:hover {
    background-image: url(../images/icon-line-hover.svg);
}

footer .mail {
    margin-top: 25px;
    height: 30px;
}

#gotop {
    display: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 10px;
    border-radius: 50%;
    background-color: #ccc;

    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2;
}

@media (max-width:820px) {
    footer {
        flex-direction: column;
        align-items: center;
        min-height: 572px;
    }

    footer>* {
        margin: 20px;
    }
}

@media (max-width: 576px) {
    footer {
        min-height: auto;
    }

    .other figure {
        width: 60px;
        height: 60px;
    }

    footer>* {
        margin: 0;
        padding: 2vh 0;
    }

    footer .head,
    .other,
    .social {
        flex: none;
    }
}