@media screen and (min-width: 768px) {
}
@media screen and (min-width: 992px) {
}
@media screen and (min-width: 1200px) {
  /* ----------------------選單---------------------- */
  .fixed_header .nav_box {
    background: url(../img/bg.png);
    background-repeat: repeat;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  }
  .nav_box .group:after,
  .nav_box .group:before {
    position: absolute;
    bottom: 0;
    width: calc(50% - 125px);
    height: 6px;
    position: absolute;
    content: "";
    display: block;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-top-color: #666;
    border-bottom-color: #666;
  }

  .nav_box .group:after {
    left: 0;
  }
  .nav_box .group:before {
    right: 0;
  }

  .nav_box .top_area .left .logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav_box .top_area .left .website_logo {
    display: none;
    font-weight: 600;
  }

  .nav_box .main_area {
    margin: 0 160px;
  }
  .nav_box .main_area .main_menu {
    display: flex;
  }
  .nav_box .main_area .main_menu .dropdown {
    flex: 1;
  }
  .nav_box .main_area .main_menu .dropdown.main_logo {
    transform: translateY(15%);
  }

  .fixed_header .nav_box .main_area .main_menu .dropdown.main_logo {
    transform: none;
  }
  .nav_box .main_area .main_menu .dropdown .item {
    text-align: center;
    height: 100%;
    padding: 15px 0;
    justify-content: center;
    line-height: 1;
    flex-direction: column;
    gap: 10px 0px;
  }

  .fixed_header .nav_box .main_area .main_menu .dropdown .item {
    padding: 0px 0 10px 0;
    gap: 5px 0;
  }

  .fixed_header .nav_box .main_area .main_menu .dropdown.main_logo .item {
    gap: 0;
  }

  .nav_box .main_area .main_menu .dropdown .item span {
    white-space: nowrap;
  }

  .nav_box .main_area .main_menu .dropdown .dropdown-menu {
    position: absolute !important;
    inset: auto !important;
    bottom: 0px !important;
    transform: translate(20px, calc(100% - 20px)) !important;
    border: none;
    z-index: 9999;
    padding: 0;
    border-radius: 0;
    min-width: 100%;
    padding: 5px;
    background: url(../img/bg.png);
    background-repeat: repeat;
    border: 1px solid #ccc;
    display: none;
  }

  .nav_box .main_area .main_menu .dropdown:hover .dropdown-menu,
  .nav_box .main_area .main_menu .dropdown:focus-within .dropdown-menu {
    display: flex;
    flex-direction: column;
  }
  .fixed_header .nav_box .main_area .main_menu .dropdown .dropdown-menu {
    transform: translate(20px, calc(100% - 10px)) !important;
  }
  .nav_box .main_area .main_menu .dropdown .dropdown-menu li a {
    padding: 5px 10px;
  }
  .nav_box .main_area .main_menu .dropdown .dropdown-menu li a:hover,
  .nav_box .main_area .main_menu .dropdown .dropdown-menu li a:focus {
    background: #ddd;
    color: initial;
  }

  /* ----------------------框架---------------------- */

  /* ----------------------國際鐵道締結大事記 ---------------------- */

  .history .item.caption {
    align-items: center;
  }
  .history .item.item_same {
    transform: translate(0, -100%);
    margin: 0 0 -90px 0;
  }
  .history .item.item_left {
    margin-right: 50%;
  }
  .history .item.item_right {
    margin-left: 50%;
  }
  .history .item .group .office {
    display: none;
  }

  /* ----------------------友好活動---------------------- */

  .friendly_table .rwd-row .item {
    margin: 25px 0;
  }
  .friendly_table .rwd-row .item:not(:last-of-type) {
    border-right: 1px solid #666;
  }
  .justify-center {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* ----------------------線上影展---------------------- */

  .big_swiper .swiper-wrapper .swiper-slide {
    display: flex;
    gap: 0 60px;
  }

  .big_swiper .swiper-wrapper .swiper-slide .left {
    width: calc(100% - 400px);
  }

  .big_swiper .swiper-wrapper .swiper-slide .info {
    width: 400px;
  }

  .big_swiper .swiper-button.btn-next {
    right: 440px;
  }

  .reverse .big_swiper .swiper-wrapper .swiper-slide {
    flex-direction: row-reverse;
  }

  .reverse .big_swiper .swiper-button.btn-next {
    right: 0px;
  }

  .reverse .big_swiper .swiper-button.btn-prev {
    left: 440px;
  }

  .big_swiper .swiper-button {
    top: 50% !important;
    transform: translate(0, -50%) !important;
  }
}
@media screen and (min-width: 1400px) {
  /* ----------------------框架---------------------- */
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1140px;
  }
}
@media screen and (max-width: 1440px) {
  /* ----------------------swiper ---------------------- */
  .banner_swiper .pause-btn {
    right: 20%;
  }
}

@media (max-width: 1440px) and (min-width: 1200px) {
  /* ----------------------框架---------------------- */

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1080px;
  }
  .nav_box .top_area .left .logo {
    width: 120px;
  }

  .nav_box .main_area {
    margin: 0 140px;
  }
  .banner_swiper .swiper-wrapper .swiper-slide {
    max-width: 900px;
  }
  .class_detail {
    max-width: 900px;
  }
}

@media screen and (max-width: 1280px) {
  /* ----------------------swiper ---------------------- */
  .banner_swiper .pause-btn {
    right: 17%;
  }
}
@media screen and (max-width: 1199px) {
  /* ----------------------無障礙---------------------- */
  a.sr-only,
  a[accesskey] {
    display: none;
  }
  /* ----------------------選單---------------------- */
  .nav_box {
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  }

  .nav_box:after {
    position: fixed;
    left: 0;
    width: 100%;
    height: 1px;
    content: "";
    display: block;
    background: #ddd;
    top: 60px;
  }

  .open_mobile_menu .nav_box {
    height: 100vh;
    overflow-x: auto;
  }
  .nav_box .top_area {
    height: 60px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 9999;
    gap: 0 10px;
  }

  .nav_box .top_area .left {
    display: flex;
    align-items: center;
    font-weight: 600;
    line-height: 1.2;
  }

  .nav_box .top_area .left .logo {
    width: 110px;
  }
  .open_mobile_menu .nav_box .top_area .left .logo {
    display: none;
  }

  .nav_box .top_area .left .website_logo {
    padding: 0 0 0 10px;
    margin: 0 0 0 10px;
    border-left: 2px solid #757575;
  }

  .open_mobile_menu .nav_box .top_area .left .website_logo {
    padding: 0;
    margin: 0;
    border: none;
  }

  .nav_box .top_area .more_link .map {
    display: none;
  }

  .open_mobile_menu .nav_box .top_area .more_link .map {
    display: flex;
  }

  .open_mobile_menu .nav_box .top_area .more_link .language {
    display: flex;
  }

  .nav_box .top_area .more_link {
    display: flex;
    position: absolute;
    right: 40px;
    top: 16px;
    gap: 0 10px;
  }

  .nav_box .main_area .main_menu .dropdown {
    border-bottom: 1px dashed #ddd;
  }
  .nav_box .main_area .main_menu .dropdown:not(.main_logo) {
    display: none;
  }

  .open_mobile_menu .nav_box .main_area .main_menu .dropdown:not(.main_logo) {
    display: flex;
    flex-direction: column;
  }
  .nav_box .main_area .main_menu .dropdown.main_logo {
    display: none;
  }
  .nav_box .main_area .main_menu .dropdown .item {
    padding: 10px 0;
    gap: 0px 10px;
    position: relative;
  }

  .nav_box .main_area .main_menu .dropdown:has(.dropdown-menu) .item:after {
    position: absolute;
    content: "";
    display: block;
    right: 0;
    top: 15px;
    font: 1.25em "icomoon" !important;
    content: "\e905";
    -o-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    transition: all 0.2s linear;
  }

  .nav_box
    .main_area
    .main_menu
    .dropdown:has(.dropdown-menu)
    .item[aria-expanded="true"]:after {
    transform: rotate(180deg);
  }

  .nav_box .main_area .main_menu .dropdown.main_logo .item i {
    display: none;
  }

  .nav_box .main_area .main_menu .dropdown-menu {
    position: static !important;
    transform: translateY(-5px) !important;
    border: none;
    padding: 0 0 20px 0;
    background: transparent;
  }

  .nav_box .main_area .main_menu .dropdown-menu li a.dropdown-item {
    padding: 5px 0 5px 35px;
    position: relative;
    color: #757575;
  }

  .nav_box .main_area .main_menu .dropdown-menu li ul {
    padding: 0;
    margin: 0 0 20px 35px;
    list-style: none;
  }

  .m-menubar {
    width: 28px;
    height: 38px;
    cursor: pointer;
    display: flex;
    transform: translate(0, 6px);
  }

  .m-menubar .bar {
    width: 100%;
    height: 2px;
    background: black;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
  }

  .m-menubar .bar::before {
    content: "";
    display: block;
    position: relative;
    top: 10px;
    width: 100%;
    height: 2px;
    background: black;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    border-radius: 3px;
  }

  .m-menubar .bar::after {
    content: "";
    display: block;
    position: relative;
    top: 17px;
    width: 100%;
    height: 2px;
    background: black;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    border-radius: 3px;
  }

  .m-menubar.showbar .bar {
    background: transparent;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }

  .m-menubar.showbar .bar::before {
    top: 10px;
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
  }

  .m-menubar.showbar .bar::after {
    top: 8px;
    -webkit-transform: rotate(-225deg);
    transform: rotate(-225deg);
  }

  /* ----------------------締結總類 ---------------------- */
  .class_detail .caption.two_column {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .class_detail .caption.two_column .item {
    width: 100%;
  }
  .class_detail .caption.two_column .item:not(:last-of-type) {
    border-bottom: 1px solid #666;
    padding: 0 0 15px 0;
    margin: 0 0 15px 0;
  }
  .class_detail .caption.two_column:after {
    display: none;
  }

  /* ----------------------swiper ---------------------- */
  .banner_swiper .swiper-wrapper .swiper-slide {
    max-width: none;
  }
  .banner_swiper {
    margin: 0px 0 20px 0;
  }
  .banner_swiper .pause-btn {
    right: 40px;
  }

  /* ----------------------框架---------------------- */
  .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
  }
  .breadcrumb li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .breadcrumb li.active .breadcrumb-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ----------------------國際鐵道締結大事記 ---------------------- */

  .history:before {
    left: 24px;
    transform: none;
  }
  .history .item.item_left {
    align-items: start;
    padding: 15px 0 15px 50px;
  }
  .history .item.item_right {
    padding: 15px 0 15px 50px;
  }
  .history .item.caption {
    padding: 15px 0 15px 0px;
  }

  .history .item.caption:before {
    left: 25px;
  }

  .history .item.item_left:not(.item_pic):after,
  .history .item.item_right:not(.item_pic):after {
    top: 22px;
    left: 17px;
  }

  .history .item.item_left:after {
    right: auto;
  }

  .history .item .group {
    display: flex;
    flex-wrap: wrap;
    gap: 0 5px;
    flex-direction: row-reverse;
    align-items: center;
  }
  .history .item .group .office {
    background: #f2e6da;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 4px 8px;
  }

  /* ----------------------締結總類 ---------------------- */
  .class_map {
    display: none;
  }

  .class_type_position {
    position: static;
    display: flex;
    justify-content: flex-end;
  }

  .class_type {
    flex-direction: row;
    width: 100%;
  }

  .class_link {
    margin: 20px 0 0 0;
  }

  .class_link:after {
    display: none;
  }

  .line_break li {
    display: inline;
    text-align: justify;
  }

  .bg-circle {
    width: 26px;
    height: 26px;
  }

  /* ----------------------友好活動---------------------- */

  .friendly_table:not(.num_col) .rwd-row {
    flex-direction: column;
    display: flex;
    margin: 0 0 40px 0;
    border: 1px solid #666;
    border-top: none;
  }

  .friendly_table.two_col .rwd-row {
    border-top: 1px solid #666;
  }

  .friendly_table .rwd-row:last-of-type {
    margin-bottom: 0px;
  }

  .friendly_table .rwd-row.title {
    display: none;
  }

  .friendly_table .rwd-row .item {
    width: 100%;
    padding: 15px 15px;
  }

  .friendly_table.three_col
    .rwd-row
    .item:not(:first-of-type):not(:last-of-type),
  .friendly_table.two_col .rwd-row .item:not(:last-of-type) {
    padding-bottom: 35px;
  }

  .friendly_table.three_col .rwd-row .item:nth-of-type(n + 3),
  .friendly_table.two_col .rwd-row .item:nth-of-type(n + 2) {
    padding-top: 35px;
  }
  .friendly_table .rwd-row .item.th {
    display: inline;
  }
  .friendly_table .rwd-row .item:not(:last-of-type):not(.th):after {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 0;
    content: "";
    display: block;
    width: calc(100% - 40px);
    height: 1px;
    border-bottom: 1px solid #666;
  }

  .friendly_table.num_col .rwd-row {
    grid-template-columns: 50px 1fr;
  }

  .friendly_table.num_col .rwd-row .item:not(:last-of-type):not(.th):after {
    width: 1px;
    height: calc(100% - 40px);
    top: 50%;
    left: auto;
    bottom: auto;
    right: 0;
    transform: translate(0, -50%);
    border-right: 1px solid #666;
  }

  .friendly_table .rwd-row .item.th {
    border-top: 4px double #666666;
    border-bottom: 4px double #666666;
    font-weight: 600;
    font-size: 1.25em;
    text-align: center;
  }

  .friendly_table .rwd-row .item:not(.th) .rwd-label {
    display: flex;
    width: 100%;
  }

  .position_set {
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translate(50%, 50%);
    flex-direction: row;
    gap: 0px 20px;
    padding: 10px 15px;
  }

  .position_set li .arrow {
    padding: 1px 15px;
  }

  .position_set li .arrow-left {
    border-width: 0 16px 21px 16px;
    border-color: transparent transparent #534f4d transparent;
    left: 50%;
    top: 0;
    transform: translate(-50%, -100%);
  }

  .position_set li .arrow-left:before {
    top: 2px;
    left: -15px;
    border-width: 0 15px 20px 15px;
    border-color: transparent transparent #f19b97 transparent;
  }

  .position_set li .arrow-right {
    border-width: 21px 16px 0 16px;
    border-color: #534f4d transparent transparent transparent;
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translate(50%, 100%);
  }

  .position_set li .arrow-right:before {
    top: auto;
    bottom: 2px;
    right: -15px;
    border-width: 20px 15px 0 15px;
    border-color: #f19b97 transparent transparent transparent;
  }

  .small-center {
    align-items: center;
  }

  .other_style {
    padding: 40px 0 0 0;
  }

  /* -----------------------線上影展---------------------- */

  .sp_area {
    padding: 0 0px;
    margin: 0 0 20px 0;
  }

  .friendly_swiper_group {
    max-width: 720px;
    margin: 0 auto;
    gap: 30px 0;
  }

  .thumbs_swiper {
    display: none;
  }

  .big_swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 20px 0px;
    padding: 0 40px;
  }

  .big_swiper .swiper-button.btn-next {
    right: 5px;
  }

  .big_swiper .swiper-button.btn-prev {
    left: 5px;
  }
}
@media screen and (max-width: 1024px) {
  /* ----------------------swiper ---------------------- */

  .banner_swiper .swiper-button {
    width: 30px;
    height: 30px;
  }

  .banner_swiper .swiper-button.btn-prev {
    left: 20px;
  }

  .banner_swiper .swiper-button.btn-next {
    right: 20px;
  }

  .banner_swiper .pause-btn {
    right: 20px;
    width: 30px;
    height: 30px;
    font-size: 0.6em;
    bottom: 10px;
  }

  /* ----------------------締結總類 ---------------------- */
  .class_link {
    column-count: auto;
  }
}
@media screen and (max-width: 991px) {
  /* ----------------------共用---------------------- */

  /* ----------------------選單---------------------- */

  /* ----------------------框架---------------------- */
  /* ----------------------頁尾---------------------- */
  .footer ul.other li .ccessiblity {
    position: static;
    margin: 10px auto 0 auto;
    width: 100px;
  }

  /* ----------------------影音專區---------------------- */
  .movie_list {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }

  .movie_list li:empty {
    display: none;
  }

  .movie_list li .title {
    padding: 10px 0;
  }

  /* ----------------------友好活動---------------------- */
  .other_img.arrow_img {
    gap: 20px;
    margin: 0;
  }
  .other_img.arrow_img li:not(.arrow_li) img {
    width: auto;
  }

  .other_img.arrow_img li .img_border {
    padding: 5px;
  }
}

@media screen and (max-width: 767px) {
  /* ----------------------友好活動---------------------- */

  .other_style {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .other_img li {
    gap: 15px;
  }
}

@media screen and (max-width: 640px) {
  /* ----------------------框架---------------------- */
  .page_title {
    flex-direction: column;
  }

  .page_title .group {
    display: flex;
    justify-content: flex-end;
  }

  /* ----------------------table ---------------------- */
  .no-more-tables table,
  .no-more-tables thead,
  .no-more-tables tbody,
  .no-more-tables th,
  .no-more-tables td,
  .no-more-tables tr {
    display: block;
  }

  .no-more-tables thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .no-more-tables tr {
    border-bottom: 1px solid #eee;
    margin: 10px 0;
    padding: 10px 0;
  }

  .no-more-tables td {
    border: none;
    position: relative;
    padding: 1px 12px 1px 110px !important;
    white-space: normal;
    text-align: left;
  }

  .no-more-tables td:before {
    position: absolute;
    top: 1px;
    left: 6px;
    width: 100px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  .no-more-tables td:before {
    content: attr(data-title);
    white-space: break-spaces;
    color: #757575;
    font-weight: normal;
  }
  .img_align.two_col li {
    width: 100%;
  }
  .img_align.two_col li:nth-child(odd),
  .img_align.two_col li:nth-child(even) {
    justify-content: center;
  }

  /* ----------------------swiper ---------------------- */
  .banner_swiper .swiper-wrapper .swiper-slide:not(.swiper-slide-active):after {
    display: none;
  }

  /* ----------------------締結總類 ---------------------- */
  .class_type {
    padding: 10px 15px;
  }

  /* ----------------------影音專區---------------------- */
  .movie_list {
    grid-template-columns: 1fr;
    gap: 40px 20px;
  }

  .movie_list li .title {
    padding: 5px 0;
  }
  /* ----------------------國際鐵道締結大事記 ---------------------- */
  .related {
    align-items: flex-start;
  }
}
@media screen and (max-width: 414px) {
  /* ----------------------選單---------------------- */
  .nav_box .top_area .left .logo {
    width: 100px;
  }

  .nav_box .top_area .left {
    font-size: 0.9em;
  }

  .nav_box .top_area .more_link .language li a {
    padding: 2px 6px;
  }
  .nav_box .top_area .left .website_logo {
    display: flex;
    flex-direction: column;
  }

  .open_mobile_menu .nav_box .top_area .left .website_logo {
    flex-direction: row;
  }
}
