/*---------------------------------------------------------- book detail*/
@media only screen and (max-width: 1320px) {
  .book-detail .borrowed .swiper-slide .cover {
    width: 100%;
    height: 13vw; } }

@media only screen and (max-width: 1024px) {
  .book-detail .borrowed .swiper-slide .cover {
    width: 100%;
    height: 17vw; } }

@media only screen and (max-width: 768px) {
  .book-detail .help ul li a {
    font-size: 0.875rem; }
  .book-detail .borrowed .swiper-slide .cover {
    width: 100%;
    height: 30vw; } }

@media only screen and (max-width: 767px) {
  .book-detail .query {
    flex-wrap: wrap; }
    .book-detail .query div {
      width: 48.5%;
      margin-bottom: 8px;
      display: flex;
      align-items: center; }
      .book-detail .query div:nth-child(even) {
        margin-left: 3%; }
        .book-detail .query div:nth-child(even) p {
          text-align: right; }
      .book-detail .query div:nth-last-of-type(1) {
        width: 48%;
        justify-content: flex-end; }
      .book-detail .query div p {
        width: 70px;
        font-weight: 500;
        margin: 0 5px 0 0; }
    .book-detail .query select,
    .book-detail .query input[type=text] {
      width: 100%;
      flex: 1;
      margin: 0; }
    .book-detail .query .btn-dark {
      min-width: 70%;
      margin-top: 0; }
    .book-detail .query .btn-box {
      float: none; }
      .book-detail .query .btn-box * {
        width: 100%;
        margin: 5px 0;
        height: 38px;
        line-height: 38px; }
  .book-detail .help ul li {
    width: calc((100% - 10px) / 2); }
    .book-detail .help ul li:nth-child(2n+1) {
      margin-left: 0; }
    .book-detail .help ul li:nth-child(4n) {
      margin-left: 15px; }
    .book-detail .help ul li:nth-child(n+3) {
      margin-top: 10px; }
  .book-detail .pages-top {
    text-align: left; }
  .book-detail .mobile {
    display: block; }
  .book-detail table.list tr td:nth-of-type(10) .btn-light {
    width: auto;
    padding: 0 10px; }
  .book-detail .volume .query div {
    margin-left: 0; }
    .book-detail .volume .query div:first-child {
      width: 100%; }
    .book-detail .volume .query div p {
      width: auto; }
    .book-detail .volume .query div .btn-dark {
      min-width: 100px; }
  .book-detail .volume .item {
    display: block; }
    .book-detail .volume .item .location {
      width: 100%;
      background-color: #cfcfcf; }
    .book-detail .volume .item .info {
      width: 100%; }
      .book-detail .volume .item .info table.list {
        background-color: #f9f9f9; }
        .book-detail .volume .item .info table.list tbody tr {
          background-color: #fff; } }

@media only screen and (max-width: 600px) {
  .book-detail .function-option {
    text-align: center;
    margin: 0 0 10px; }
    .book-detail .function-option .option {
      margin: 0;
      min-height: initial;
      background: none;
      border: none;
      padding: 0; }
  .book-detail .book-content .left {
    float: none;
    margin: 0 auto 20px; }
  .book-detail .book-content .right {
    width: 100%;
    float: none; }
    .book-detail .book-content .right .detail-type {
      text-align: left; }
  .book-detail .sort-option {
    width: 100%;
    top: auto;
    margin: 20px 0 10px;
    display: flex;
    align-items: center; }
    .book-detail .sort-option select {
      width: 100%; }
  .book-detail .borrowed .swiper-slide .cover {
    width: 100%;
    height: 38vw; } }

@media only screen and (max-width: 480px) {
  .book-detail .book-content .right .title {
    padding-bottom: 35px; }
    .book-detail .book-content .right .title .rank-star {
      bottom: 12px;
      left: 5px; }
  .book-detail .book-content .right .detail p:first-child {
    padding-right: 5px; }
  .book-detail .query-ctrl {
    display: block; }
  .book-detail .query {
    display: none; }
    .book-detail .query div {
      width: 100%; }
      .book-detail .query div:nth-child(even) {
        margin-left: 0; }
        .book-detail .query div:nth-child(even) p {
          text-align: left; }
      .book-detail .query div:nth-last-of-type(1) {
        width: 100%;
        margin-top: 10px;
        justify-content: center; }
      .book-detail .query div p {
        width: 70px; }
  .book-detail .help ul {
    display: block; }
    .book-detail .help ul li {
      width: 100%;
      margin-left: 0; }
      .book-detail .help ul li:nth-child(4n) {
        margin-left: 0; }
      .book-detail .help ul li:nth-child(n+2) {
        margin-top: 10px; }
  .book-detail .borrowed .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -5px; }
  .book-detail .borrowed .swiper-slide .cover {
    height: 70vw; }
  .book-detail .volume .query div {
    width: 100%; }
    .book-detail .volume .query div:last-child {
      width: 100%;
      justify-content: center; }
    .book-detail .volume .query div .btn-dark {
      min-width: 70%; } }

/*---------------------------------------------------------- bulletin*/
@media only screen and (max-width: 768px) {
  .bulletin .detail .branch-type {
    margin-bottom: 5px;
    position: relative;
    top: auto;
    right: auto; } }

@media only screen and (max-width: 768px) {
  .bulletin .detail .branch-type div {
    width: 50%;
    padding: 0 15px; } }

@media only screen and (max-width: 600px) {
  .bulletin .detail .branch-type div {
    width: 100%;
    height: auto;
    line-height: 20px;
    padding: 8px 15px; }
    .bulletin .detail .branch-type div + div {
      border: none;
      border-top: 2px solid #044d83; } }

@media only screen and (max-width: 768px) {
  .bulletin .detail .title span {
    float: none;
    display: block;
    text-align: right;
    margin-top: 10px; } }

/*---------------------------------------------------------- recommend*/
@media only screen and (max-width: 768px) {
  .recommend .function-option, .reserves .function-option, .subject-res .function-option, .subject .function-option, .theme-ntpu .box-bg .function-option {
    margin-top: 30px; }
    .recommend .function-option .sort, .reserves .function-option .sort, .subject-res .function-option .sort, .subject .function-option .sort, .theme-ntpu .box-bg .function-option .sort {
      margin-bottom: 0; }
  .recommend .tab-content table.list, .reserves .tab-content table.list, .subject-res .tab-content table.list, .subject .tab-content table.list, .theme-ntpu .box-bg .tab-content table.list {
    margin-top: 20px; }
    .recommend .tab-content table.list tbody tr td .pop-btn, .reserves .tab-content table.list tbody tr td .pop-btn, .subject-res .tab-content table.list tbody tr td .pop-btn, .subject .tab-content table.list tbody tr td .pop-btn, .theme-ntpu .box-bg .tab-content table.list tbody tr td .pop-btn {
      height: auto; }
  .recommend .tab-content .condition > div, .reserves .tab-content .condition > div, .subject-res .tab-content .condition > div, .subject .tab-content .condition > div, .theme-ntpu .box-bg .tab-content .condition > div {
    display: block; }
    .recommend .tab-content .condition > div select, .reserves .tab-content .condition > div select, .subject-res .tab-content .condition > div select, .subject .tab-content .condition > div select, .theme-ntpu .box-bg .tab-content .condition > div select, .recommend .tab-content .condition > div input, .reserves .tab-content .condition > div input, .subject-res .tab-content .condition > div input, .subject .tab-content .condition > div input, .theme-ntpu .box-bg .tab-content .condition > div input {
      width: 100% !important; }
      .recommend .tab-content .condition > div select + input, .reserves .tab-content .condition > div select + input, .subject-res .tab-content .condition > div select + input, .subject .tab-content .condition > div select + input, .theme-ntpu .box-bg .tab-content .condition > div select + input, .recommend .tab-content .condition > div input + input, .reserves .tab-content .condition > div input + input, .subject-res .tab-content .condition > div input + input, .subject .tab-content .condition > div input + input, .theme-ntpu .box-bg .tab-content .condition > div input + input {
        margin-top: 5px; } }

@media only screen and (max-width: 720px) {
  .recommend .condition, .reserves .condition, .subject-res .condition, .subject .condition, .theme-ntpu .box-bg .condition {
    width: 100%;
    margin: 5px auto; }
    .recommend .condition > div, .reserves .condition > div, .subject-res .condition > div, .subject .condition > div, .theme-ntpu .box-bg .condition > div {
      flex-wrap: wrap; }
      .recommend .condition > div + div, .reserves .condition > div + div, .subject-res .condition > div + div, .subject .condition > div + div, .theme-ntpu .box-bg .condition > div + div {
        margin-top: 15px; }
    .recommend .condition > div:not(.branch):not(.date) select, .reserves .condition > div:not(.branch):not(.date) select, .subject-res .condition > div:not(.branch):not(.date) select, .subject .condition > div:not(.branch):not(.date) select, .theme-ntpu .box-bg .condition > div:not(.branch):not(.date) select {
      margin: 0 0 5px 0; }
      .recommend .condition > div:not(.branch):not(.date) select:nth-of-type(1), .reserves .condition > div:not(.branch):not(.date) select:nth-of-type(1), .subject-res .condition > div:not(.branch):not(.date) select:nth-of-type(1), .subject .condition > div:not(.branch):not(.date) select:nth-of-type(1), .theme-ntpu .box-bg .condition > div:not(.branch):not(.date) select:nth-of-type(1) {
        width: calc(45% - 5px); }
      .recommend .condition > div:not(.branch):not(.date) select:nth-of-type(2), .reserves .condition > div:not(.branch):not(.date) select:nth-of-type(2), .subject-res .condition > div:not(.branch):not(.date) select:nth-of-type(2), .subject .condition > div:not(.branch):not(.date) select:nth-of-type(2), .theme-ntpu .box-bg .condition > div:not(.branch):not(.date) select:nth-of-type(2) {
        width: 55%; }
      .recommend .condition > div:not(.branch):not(.date) select + select, .reserves .condition > div:not(.branch):not(.date) select + select, .subject-res .condition > div:not(.branch):not(.date) select + select, .subject .condition > div:not(.branch):not(.date) select + select, .theme-ntpu .box-bg .condition > div:not(.branch):not(.date) select + select {
        margin-left: 5px; }
    .recommend .condition > div:not(.branch):not(.date) input[type=text], .reserves .condition > div:not(.branch):not(.date) input[type=text], .subject-res .condition > div:not(.branch):not(.date) input[type=text], .subject .condition > div:not(.branch):not(.date) input[type=text], .theme-ntpu .box-bg .condition > div:not(.branch):not(.date) input[type=text] {
      width: 100%; }
    .recommend .condition > div:not(.branch):not(.date):first-child select:nth-of-type(1), .reserves .condition > div:not(.branch):not(.date):first-child select:nth-of-type(1), .subject-res .condition > div:not(.branch):not(.date):first-child select:nth-of-type(1), .subject .condition > div:not(.branch):not(.date):first-child select:nth-of-type(1), .theme-ntpu .box-bg .condition > div:not(.branch):not(.date):first-child select:nth-of-type(1) {
      width: calc(45% - 5px);
      margin: 0 5px 0 0; }
    .recommend .condition > div:not(.branch):not(.date):first-child input[type=text], .reserves .condition > div:not(.branch):not(.date):first-child input[type=text], .subject-res .condition > div:not(.branch):not(.date):first-child input[type=text], .subject .condition > div:not(.branch):not(.date):first-child input[type=text], .theme-ntpu .box-bg .condition > div:not(.branch):not(.date):first-child input[type=text] {
      width: 55%; }
    .recommend .condition > div:not(.branch):not(.date):first-child .color-remind, .reserves .condition > div:not(.branch):not(.date):first-child .color-remind, .subject-res .condition > div:not(.branch):not(.date):first-child .color-remind, .subject .condition > div:not(.branch):not(.date):first-child .color-remind, .theme-ntpu .box-bg .condition > div:not(.branch):not(.date):first-child .color-remind {
      display: block;
      padding-left: 0.5rem; }
    .recommend .condition > div.branch input, .reserves .condition > div.branch input, .subject-res .condition > div.branch input, .subject .condition > div.branch input, .theme-ntpu .box-bg .condition > div.branch input,
    .recommend .condition > div.branch select,
    .reserves .condition > div.branch select,
    .subject-res .condition > div.branch select,
    .subject .condition > div.branch select,
    .theme-ntpu .box-bg .condition > div.branch select {
      flex: 1; }
    .recommend .condition > div.branch .tree-btn, .reserves .condition > div.branch .tree-btn, .subject-res .condition > div.branch .tree-btn, .subject .condition > div.branch .tree-btn, .theme-ntpu .box-bg .condition > div.branch .tree-btn {
      width: 100%;
      text-align: right; }
      .recommend .condition > div.branch .tree-btn .pop-btn-tree, .reserves .condition > div.branch .tree-btn .pop-btn-tree, .subject-res .condition > div.branch .tree-btn .pop-btn-tree, .subject .condition > div.branch .tree-btn .pop-btn-tree, .theme-ntpu .box-bg .condition > div.branch .tree-btn .pop-btn-tree {
        min-width: inherit; }
    .recommend .condition > div.date, .reserves .condition > div.date, .subject-res .condition > div.date, .subject .condition > div.date, .theme-ntpu .box-bg .condition > div.date {
      display: flex; }
      .recommend .condition > div.date select, .reserves .condition > div.date select, .subject-res .condition > div.date select, .subject .condition > div.date select, .theme-ntpu .box-bg .condition > div.date select {
        flex: 1; }
    .recommend .condition > div.btn-box [class*='btn-'], .reserves .condition > div.btn-box [class*='btn-'], .subject-res .condition > div.btn-box [class*='btn-'], .subject .condition > div.btn-box [class*='btn-'], .theme-ntpu .box-bg .condition > div.btn-box [class*='btn-'] {
      width: calc(50% - 15px); }
  .recommend .tab-content table.fill-form + .btn-box [class*='btn-'], .reserves .tab-content table.fill-form + .btn-box [class*='btn-'], .subject-res .tab-content table.fill-form + .btn-box [class*='btn-'], .subject .tab-content table.fill-form + .btn-box [class*='btn-'], .theme-ntpu .box-bg .tab-content table.fill-form + .btn-box [class*='btn-'] {
    width: calc(50% - 15px); } }

@media only screen and (max-width: 480px) {
  .recommend .condition > div p.w-auto, .reserves .condition > div p.w-auto, .subject-res .condition > div p.w-auto, .subject .condition > div p.w-auto, .theme-ntpu .box-bg .condition > div p.w-auto {
    margin-right: 5px; }
  .recommend .condition > div.branch > input, .reserves .condition > div.branch > input, .subject-res .condition > div.branch > input, .subject .condition > div.branch > input, .theme-ntpu .box-bg .condition > div.branch > input,
  .recommend .condition > div.branch > select,
  .reserves .condition > div.branch > select,
  .subject-res .condition > div.branch > select,
  .subject .condition > div.branch > select,
  .theme-ntpu .box-bg .condition > div.branch > select {
    width: calc(100% - 85px); }
  .recommend .condition > div .date-range, .reserves .condition > div .date-range, .subject-res .condition > div .date-range, .subject .condition > div .date-range, .theme-ntpu .box-bg .condition > div .date-range {
    flex: 1;
    padding: 0;
    margin: 0; }
    .recommend .condition > div .date-range span:not(.symbol), .reserves .condition > div .date-range span:not(.symbol), .subject-res .condition > div .date-range span:not(.symbol), .subject .condition > div .date-range span:not(.symbol), .theme-ntpu .box-bg .condition > div .date-range span:not(.symbol) {
      width: calc((100% - 15px) / 2); }
    .recommend .condition > div .date-range input[type=text], .reserves .condition > div .date-range input[type=text], .subject-res .condition > div .date-range input[type=text], .subject .condition > div .date-range input[type=text], .theme-ntpu .box-bg .condition > div .date-range input[type=text] {
      width: 101%; } }

@media only screen and (max-width: 320px) {
  .recommend .condition > div p, .reserves .condition > div p, .subject-res .condition > div p, .subject .condition > div p, .theme-ntpu .box-bg .condition > div p {
    width: 100%; } }

/*---------------------------------------------------------- reserves*/
/*---------------------------------------------------------- subject*/
/*---------------------------------------------------------- subject reservation*/
@media only screen and (max-width: 1024px) {
  .subject-res table.list tr th:nth-of-type(1) {
    width: 6%; }
  .subject-res table.list tr th:nth-of-type(2) {
    width: 10%; }
  .subject-res table.list tr th:nth-of-type(3) {
    width: 10%; }
  .subject-res table.list tr th:nth-of-type(4) {
    width: 11%; }
  .subject-res table.list tr th:nth-of-type(5) {
    width: 8%; }
  .subject-res table.list tr th:nth-of-type(6) {
    width: 10%; }
  .subject-res table.list tr th:nth-of-type(7) {
    width: 15%; }
  .subject-res table.list tr th:nth-of-type(8) {
    width: 10%; }
  .subject-res table.list tr th:nth-of-type(9) {
    width: 6%; }
  .subject-res table.list tr th:nth-of-type(10) {
    width: 6%; }
  .subject-res table.list tr th:nth-of-type(11) {
    width: 8%; } }

@media only screen and (max-width: 768px) {
  .subject-res .reverse {
    margin: 15px 0 0; } }

/*---------------------------------------------------------- new book*/
@media only screen and (max-width: 768px) {
  .newbook > .float-box > .right .box-bg {
    margin-bottom: 20px; }
  html:lang(en) .newbook > .float-box > .right .condition {
    width: 100%; } }

@media only screen and (max-width: 650px) {
  .newbook > .float-box > .right .condition {
    width: 100%; }
    .newbook > .float-box > .right .condition div {
      display: block; }
      .newbook > .float-box > .right .condition div p {
        margin-bottom: 5px; }
      .newbook > .float-box > .right .condition div select,
      .newbook > .float-box > .right .condition div input[type=text] {
        width: 100%; }
      .newbook > .float-box > .right .condition div .size-m {
        width: 42% !important; }
      .newbook > .float-box > .right .condition div.date .size-s {
        width: 32% !important; }
      .newbook > .float-box > .right .condition div.date br {
        display: block; }
      .newbook > .float-box > .right .condition div.date label {
        margin-top: 5px;
        margin-left: 0;
        display: inline-block; }
        .newbook > .float-box > .right .condition div.date label + label {
          margin-left: 15px; }
      .newbook > .float-box > .right .condition div.location input[type=text] {
        width: calc(100% - 80px); }
      .newbook > .float-box > .right .condition div.classification span:last-child {
        display: block;
        margin: 0; }
      .newbook > .float-box > .right .condition div.btn-box {
        text-align: center; }
        .newbook > .float-box > .right .condition div.btn-box [class*='btn-'] {
          margin: 0 10px; } }

@media only screen and (max-width: 550px) {
  .newbook > .float-box > .right .newbook-list {
    display: block;
    position: relative; }
    .newbook > .float-box > .right .newbook-list .links a {
      display: inline-block; }
    .newbook > .float-box > .right .newbook-list .more {
      position: absolute;
      bottom: 10px;
      right: 10px; } }

@media only screen and (max-width: 414px) {
  .newbook > .float-box > .right .condition div span {
    margin: 0 5px; }
  html:lang(en) .newbook > .float-box > .right .condition div.date label {
    margin-right: 10px; }
  html:lang(en) .newbook > .float-box > .right .condition div.date label + label {
    margin-left: 0; }
  .newbook > .float-box > .right .newbook-list .links {
    margin-top: 5px; }
  .newbook > .float-box > .right .newbook-list .more {
    top: 8px; } }

@media only screen and (max-width: 375px) {
  .newbook > .float-box > .right .condition div.btn-box [class*='btn-'] {
    width: 100%;
    margin: 0; }
    .newbook > .float-box > .right .condition div.btn-box [class*='btn-'] + [class*='btn-'] {
      margin-top: 15px; } }

/*---------------------------------------------------------- classification*/
@media only screen and (max-width: 768px) {
  .classification .box-border {
    padding-top: 0;
    padding-left: 0;
    padding-right: 5px; }
    .classification .box-border > ul {
      margin-left: -5px; }
      .classification .box-border > ul > li:first-child h3 {
        margin-top: 0.8em; } }

@media only screen and (max-width: 320px) {
  .classification .box-border > ul {
    margin-right: 5px; }
    .classification .box-border > ul li h3 {
      margin-bottom: 0.5em; } }

/*---------------------------------------------------------- area reservation*/
@media only screen and (max-width: 768px) {
  .area .chose-time .time ul li {
    display: block; }
    .area .chose-time .time ul li + li {
      margin-top: 10px; }
    .area .chose-time .time ul li .room {
      width: 100%;
      margin: 0 0 5px 0; }
  .area .detail .info {
    width: 100%;
    height: auto;
    float: none;
    margin-top: 20px; }
    .area .detail .info > div p {
      display: none; }
    .area .detail .info > div a {
      display: block; }
    .area .detail .info article {
      height: auto;
      display: none; }
  .area .detail .order-list {
    width: 100%;
    height: auto;
    float: none; } }

@media only screen and (max-width: 600px) {
  .area .chose-time .time ul li:first-child .period {
    display: flex; }
  .area .chose-time .time ul li .room {
    padding-right: 30px; }
    .area .chose-time .time ul li .room .mobile-period-btn {
      display: block; }
  .area .chose-time .time ul li .period {
    display: none; }
  .area .chose-time .description {
    text-align: left;
    padding: 5px; }
    .area .chose-time .description span {
      display: block; }
      .area .chose-time .description span + span {
        margin-left: 0; }
  .area .detail .order-list ul li {
    display: flex; } }

@media only screen and (max-width: 480px) {
  .area .fill-data {
    display: flex;
    align-items: center; }
    .area .fill-data select {
      flex: 1;
      margin-left: 5px; }
  .area .chose-time .date {
    margin: 0 0 10px 0; }
    .area .chose-time .date span {
      display: block;
      border: none;
      margin: 0 0 5px;
      padding: 0; }
  .area .chose-time .time ul li .period span {
    width: 64px; }
  .area .detail .order-list > div div {
    position: relative; }
    .area .detail .order-list > div div input {
      float: right;
      position: relative;
      top: -3px; } }

@media only screen and (max-width: 375px) {
  .area .chose-time .time ul li .period span {
    width: 61px; } }

/*---------------------------------------------------------- erm*/
@media only screen and (max-width: 767px) {
  .erm table.list tr td .count {
    display: none; }
  .erm table.list tr td .rwd {
    display: block; }
  .erm table.list tr td:last-child a {
    margin: 0 8px; }
    .erm table.list tr td:last-child a + a {
      margin-left: 8px; } }

@media only screen and (max-width: 480px) {
  .erm .query-condition .condition span {
    width: 115px;
    padding: 5px; }
  .erm .query-condition .condition > div {
    padding: 5px; } }

@media only screen and (max-width: 375px) {
  .erm .query-condition .condition span {
    width: 105px; } }

/*---------------------------------------------------------- theme*/
@media only screen and (max-width: 480px) {
  .theme .function-option .share {
    position: relative;
    bottom: auto;
    right: auto; } }
