
html, body {
  height: 100%;
  margin: 0;
}

body > .d-flex {
  min-height: 100vh;
}

.main-content {
  width: 75%;
  padding: 1rem;
  box-sizing: border-box;
  padding-bottom: 2rem;
  transition: all 0.3s;
}

.main-content.expanded {
  margin-left: 80px;
}

@media (max-width: 767.98px) {
  .main-content {
    width: 100%;
    margin-left: 0;
  }

  .main-content.expanded {
    margin-left: 0;
  }
}

code {
 color: black;
 font-family: 'BIZ UDPGothic', Meiryo, sans-serif;
}

-------


.indent {
  display: inline-block;
  text-indent: 1em;
}

.underline-offset {
  text-underline-offset: 0.25em;
}

.update-card{
  overflow: visible;      
}

.card-link-bottom{
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;   
  font-size: 0.8rem;
  text-decoration: none;
}

/* サイドバー */
.sidebar {
  top: 0;
  left: 0;
  min-height: 100vh;
  width: 25% ;
  max-width: 280px;
  min-width: 0;
  white-space: normal; 
  word-break: break-word; 
  box-sizing: border-box;
  background-color: #FFC107  !important; 
  color: black;
  transition: all 0.3s;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
}

.sidebar .nav-link {
  color: black;
}

.sidebar .nav-link:hover {
  background-color: #E0A800  !important;
}

.sidebar-header-link{
  display: block;          
  text-decoration: none;   
  color: inherit;          
}

.sidebar-header-link:hover{
  background-color: #E0A800  !important;
}

#toggleSidebar {
  width: auto !important;
  display: inline-block !important;
  z-index: 1050;
}


@media (max-width: 768px) {
  .sidebar{
    width: 52px;
    max-width: 52px;
  }
  .sidebar .menu-label {
    display: none;
  }
}

/* ここまで*/

.sidebar .nav-link,
#najOffcanvasSidebar .nav-link {
  padding-left: calc(1.5rem + 1em);
  text-indent: -1em;
}

/* offcanvas */

#najOffcanvasSidebar.offcanvas { --bs-offcanvas-width: 290px; }

@media (min-width: 768px) {
  #najOffcanvasSidebar.offcanvas { --bs-offcanvas-width: 290px; }
}


.sidebar-link:hover { background-color: rgba(224, 168, 0, 1); }
.sidebar-sublink:hover { background-color: rgba(224, 168, 0, 0.8); }

.sidebar-arrow { font-size: .9rem; opacity: .9; }
a[aria-expanded="true"] .sidebar-arrow {
  transform: rotate(180deg);
  display: inline-block;
}

#najOffcanvasSidebar {
  border-radius: 0 !important;
}

#najOffcanvasSidebar .nav-link {
  color: black;
}

/* ここまで */


.card-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; 
}

.card-minwidth{
  min-width: 520px;   /* これ以下は縮めないライン */
}

@media (max-width: 767.98px) {
  .responsive-card {
    padding: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .article-photo {
    float: none !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
  }
}

.footnote {
  padding-left: 1em;
  text-indent: -2em;
  margin-bottom: 0;
}

/*フッター*/
footer {
  background-color: #FFC107  !important;
  padding: 1rem;
}

footer .nav {
  justify-content: right;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

footer small {
  display: block;
  text-align: right;
  padding-top: 0.5rem;
}


/* 行間指定 */
p {
  text-indent: 1rem;
  line-height: 1.5em;
}

th, td {
  line-height: 1.5em;
}

li {
  line-height: 1.5em;
}

h6 {
  line-height: 1.5em;
}

.line {
  display: block;
  line-height: 1.5rem;
}

.title-snippet {
  line-height: 0;
}


/* ここまで */

.nav-pills{
  --bs-nav-pills-link-active-bg: rgba(43, 48, 53, 01) ;
}

#top {
  color: inherit;
  text-decoration: none;
}

#uc {
  position: fixed;
  bottom: 0;
}

#basic {
  text-decoration: none;
}

#basic:hover {
  text-decoration: underline;
}

tr[data-href] {
  cursor: pointer;
}

.card-body a {
  position: relative;
  z-index: 2;
}

.dropdown-menu .dropdown-item {
  font-size: 0.875rem; 
}

.document-list {
  display: grid;
  grid-template-columns: 5em 1fr;
  column-gap: 1em;
  row-gap: 0.3em;
}

.document-list02 {
  display: grid;
  grid-template-columns: 2em 1fr;
  column-gap: 1em;
  row-gap: 0.3em;
}

.bullet-list {
  margin-left: 2em;
}

.bullet-list p {
  padding-left: 0.5em;
  text-indent: -0.5em;
  margin-bottom: 0.3em;
}



/*back-to-topボタン*/

#btn-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background-color: rgba(73, 80, 87, 0.85);
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: opacity 0.7s ease, transform 0.5s ease, visibility 0.5s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 99;
}

#btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#btn-back-to-top:hover {
  background-color: rgba(224, 168, 0, 0.95);
  transform: translateY(-2px);
}

#btn-back-to-top:active {
  transform: translateY(0);
}


/*プリントアウト関係*/

@media print {
  #sidebar,
  #najOffcanvasSidebar,
  #openSidebarBtn {
    display: none !important;
  }

  #content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 0 0 100% !important;
  }
}