@charset "utf-8";
/**
 * Responsive UX – TELEMO / RONEPS
 * Desktop layout stays fluid (no artificial 1050px cap).
 * Compact / phone behaviors only below 900px.
 */

img,
video {
  max-width: 100%;
  height: auto;
}

/* Injected controls – hidden on desktop */
.nav-button-wrap {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}
.nav-button-wrap:hover,
.nav-button-wrap:focus {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}
.nav-button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}
.nav-button span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-button-wrap.is-active .nav-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-button-wrap.is-active .nav-button span:nth-child(2) {
  opacity: 0;
}
.nav-button-wrap.is-active .nav-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #d8dde3;
  border-radius: 10px;
  background: #f7f9fb;
  color: #2a4a6b !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.sidebar-toggle::before {
  content: "";
  width: 18px;
  height: 14px;
  flex: 0 0 auto;
  background:
    linear-gradient(#2a4a6b, #2a4a6b) 0 0 / 100% 2px no-repeat,
    linear-gradient(#2a4a6b, #2a4a6b) 0 6px / 100% 2px no-repeat,
    linear-gradient(#2a4a6b, #2a4a6b) 0 12px / 70% 2px no-repeat;
}
.sidebar-toggle[aria-expanded="true"] {
  background: #eef6ef;
  border-color: #b7d0bc;
}

.resp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}
.resp-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---- Search / filter box polish (all sizes) ---- */
.searchBox {
  box-sizing: border-box;
}
.searchBox .search_table {
  width: 100%;
}
.searchBox .search_table th,
.searchBox .search_table td {
  vertical-align: middle;
}
.searchBox a.button,
.searchBox .search,
.searchBox .btn {
  margin-top: 4px;
  margin-bottom: 4px;
}

/* ---- Large desktop: use available width ---- */
@media screen and (min-width: 1200px) {
  .header_top,
  .cbp-hsmenu,
  .Location p,
  #wrap #contents,
  #main,
  .visualbox,
  .visual .slider,
  .visual .slider > li {
    max-width: 1280px;
    width: 96%;
  }
}

/* ---- Compact screens ---- */
@media screen and (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  body,
  #wrap {
    background-image: none !important;
    background-color: #f5f7f6;
  }

  .header_top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100% !important;
    max-width: none !important;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .util {
    float: none;
    margin: 0;
  }

  .wrap_menu {
    position: sticky;
    top: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
  }

  .nav-button-wrap {
    display: inline-flex;
  }

  /* Hide inline top menu; open as drawer */
  .cbp-hsmenu {
    position: fixed !important;
    top: 0;
    right: 0;
    left: auto !important;
    width: min(300px, 86vw) !important;
    max-width: none !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 60px 0 20px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #3f6b4c !important;
    box-shadow: -10px 0 28px rgba(0, 0, 0, 0.2);
    transform: translateX(105%);
    transition: transform 0.22s ease;
    z-index: 1200;
    float: none !important;
  }

  .cbp-hsmenu.is-open {
    transform: translateX(0);
  }

  .cbp-hsmenu > li,
  .cbp-hsmenu > li:first-child,
  .cbp-hsmenu > li:last-child {
    float: none !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .cbp-hsmenu > li > a,
  .cbp-hsmenu > li:first-child > a {
    display: block !important;
    width: 100% !important;
    padding: 14px 18px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px !important;
    box-sizing: border-box;
  }

  .Location p {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 12px;
    text-align: left;
    background: none;
    font-size: 12px;
  }

  #wrap #contents,
  #main {
    width: 100% !important;
    max-width: none !important;
    padding: 12px 12px 80px;
    box-sizing: border-box;
    background: transparent;
  }

  #contents_L,
  #contents_R,
  #main_L,
  #main_R {
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px !important;
  }

  #contents_R,
  #main_R {
    padding: 14px;
    background: #fff;
    border: 1px solid #e6ebe7;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  #contents_L:not(.is-open) {
    display: none;
  }

  #contents_L.is-open {
    display: block;
    padding: 10px;
    background: #fff;
    border: 1px solid #e6ebe7;
    border-radius: 12px;
    box-sizing: border-box;
  }

  /* Search form: stack cleanly */
  .searchBox {
    padding: 12px !important;
    border-radius: 10px;
  }

  .searchBox .search_table,
  .searchBox .search_table tbody,
  .searchBox .search_table tr,
  .searchBox .search_table th,
  .searchBox .search_table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .searchBox .search_table th {
    padding: 8px 4px 2px;
    font-weight: 700;
  }

  .searchBox .search_table td {
    padding: 2px 4px 10px;
  }

  .searchBox .search_table input[type="text"],
  .searchBox .search_table select {
    width: 100% !important;
    max-width: 100%;
    min-height: 38px;
    box-sizing: border-box;
  }

  .searchBox .list_R,
  .titlealign .list_R {
    position: static !important;
    float: none !important;
    width: 100%;
    text-align: left;
    margin: 8px 0;
  }

  .searchBox a.button,
  .searchBox .search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 4px 6px 4px 0;
  }

  /* Tables scroll instead of crushing */
  .table-responsive,
  .article_table,
  .form_table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive table,
  .article_table table {
    min-width: 520px;
  }

  ul.tabs,
  ul.tabsblue {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  ul.tabs li,
  ul.tabsblue li {
    float: none;
    flex: 0 0 auto;
  }

  #contents h3,
  h3 {
    font-size: 18px;
    padding: 4px 0 10px;
    margin-bottom: 8px;
  }

  .list_R,
  .pagefuntion {
    position: static;
    float: none;
    margin-top: 8px;
  }

  .login-popup,
  .new-popup,
  .modalpopup {
    left: 50% !important;
    top: 50% !important;
    width: min(94vw, 640px) !important;
    max-height: 88vh;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    border-radius: 12px;
  }

  #wrap #footer {
    position: relative;
    height: auto;
    padding: 14px 12px;
  }
}

/* ---- Phone ---- */
@media screen and (max-width: 600px) {
  .header_top p img,
  .logo img {
    max-height: 40px;
    width: auto;
  }

  .util ul li :after {
    display: none;
  }

  #wrap #contents,
  #main {
    padding: 10px 10px 72px;
  }

  #contents_R,
  #main_R,
  #contents_L.is-open {
    padding: 12px;
    border-radius: 10px;
  }

  .pagination ul > li > a {
    min-width: 32px;
    height: 32px;
    padding-top: 8px;
  }

  .L_data,
  .R_data,
  .L_table,
  .R_table {
    float: none;
    width: 100%;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbp-hsmenu,
  .resp-backdrop,
  .nav-button span {
    transition: none !important;
  }
}
