.bg-body-tertiary { padding-top: 0px !important; background-color: #f7f5f3 !important;}
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #5b7fa6 !important; }
.bg-hero { margin-top: 0 !important; padding-top: 2rem; /* 固定ロゴ・メニューのスペース確保 */ padding-bottom: 1rem; background-color: #f7f5f3; font-family: "univers-next-pro", sans-serif; font-weight: 700; font-style: normal; color: #5b7fa6; padding-left: 8rem;}
.col-md-9, .col-md-3 {background-color: #f7f5f3 !important;}




/* kyoto-logo */
.logo-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-fixed:hover {
    transform: scale(1.05);
}


/* ---------------------------------------------------- */
/* Hamburger Menu and Side Panel */
/* ---------------------------------------------------- */
/* 右上固定のメニューボタン */
.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    border: 1px solid #5b7fa6;
    background-color: #5b7fa6;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    width: 80px;
    height: 80px;
}

.menu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-button i {
    color: #f2efea;
    font-size: 2rem;
}

.menu-button p {
    margin: 0;
    color: #f2efea;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.offcanvas {
  backdrop-filter: blur(20px);
  background:  #f2efea;
}
.toc-title {
  border-bottom: 2px solid #5E8BE3 ;
  color: #333;
}
.list-group-item {
  background: transparent;
  border: none;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}
.list-group-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #5b7fa6;
  transform: translateX(5px);
}

/* ---------------------------------------------------- */
/* Other Styles (Existing) */
/* ---------------------------------------------------- */



/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }
footer {
    margin-top: auto;
    
}

/* ContentTable */
#toc {
  position: sticky;
  top: 95px;
  align-self: flex-start;
  margin-top: 60px;
  background-color: #f2efec; /* Soft, warm beige background */
  border: 2px solid #e0ddd8; /* Subtle border in complementary tone */
  border-radius: 8px; /* Rounded corners for softer appearance */
  padding: 1.5rem; /* Comfortable padding */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Gentle shadow for depth */
  margin-bottom: 1rem; /* Space below the nav */
}
#toc .nav-link {
  color: #000000;
  font-weight: bold;
  border-left: 2px solid transparent;
}
#toc .nav-link.active {
  color: #b85450;
  font-weight: bold;
}
#toc .sub-link {
  font-size: 0.9em;
  padding-left: 25px;
  color: #555;
}
#toc .sub-link.active {
  color: #b85450;
  font-weight: normal;
}


/*-------------taptotop--------------------*/
/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 180px;
    height: 60px;
    background-color: #e0ddd8;
    border: none;
    cursor: pointer;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}

.scroll-to-top:active {
    transform: scale(0.95);
}

.scroll-to-top i {
    color: #5b7fa6;
    transition: color 0.3s ease;
}

.scroll-to-top:hover i {
    color: #4a6b94;
}

/* Tap to Top text (hidden by default, shows on hover) */
.scroll-to-top::after {
    content: 'Tap to Top';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-to-top:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 40px;
    }
    .scroll-to-top::after {
        display: none;
    }
}
/*-----------main content 見出し---------------*/
.vl {
  height: 4px;
  width: calc(100% - 80px);
  background-color: #c67b7b;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/*URLの色指定   */    
.references a,  a[href^="#["], a[href^="https://www.infront.kyoto-u.ac.jp"], #references + div a {
    color: #000000 !important;
    text-decoration: none !important; 
    background-image: linear-gradient(transparent 60%, rgba(198, 123, 123, 0.4) 60%) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
/*----------footer-------*/
/* footer内のソーシャルメディアアイコンを大きく */
footer .social-icon {
    gap: 20px; /* アイコン間の余白 */
}

footer .social-icon .list-inline-item {
    width: auto; /* col-3の幅制限を解除 */
    flex: 0 0 auto;
}

footer .social-icon img {
    width: 60px;  /* お好みのサイズに（例: 80px, 100px, 120pxなど） */
    height: 60px;
    object-fit: contain;
}
/*-----------sectiondouble h2 color-------------*/
.section-double {
    color: #5b7fa6 !important;
    border-left: 10px double;
    padding: 0.3em 0.5em;

}

/*---------------h5 最小文字サイズはこれで統一---------------------*/
h5, ul, ol { font-weight: normal; font-size: 1.25rem; width: calc(100% - 80px); line-height: 1.5; margin-bottom: 1.5rem;}
h4 {background: linear-gradient(90deg, rgba(91, 127, 166, 0.1) 0%, transparent 100%); padding: 0.8rem 1.2rem; border-radius: 8px; border-left: 5px solid #5b7fa6; margin-top: 2rem; margin-bottom: 1rem; font-weight: 600;}

/*footerでh4のスタイルを上書き */
footer h4 {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    /* font-sizeとfont-weightは継承される */
}

 .accordion-item iframe {
            border: none;
            width: 100%;
            height: 500px; /* 必要に応じて高さを調整 */
        }
.accordion-button {
    background-color: #f0f4f8;
    border-color: #d0d8e0;
}
.accordion-item {
    width: calc(100% - 80px);
}
.figure-title {
    font-size: 1.2rem;
    font-weight: bold;
}
/*----------------figureテンプレート------------*/
.results-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.results-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 9px 0;
}

/* 画像が2つある場合は横並びに */
.results-icon .image-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.results-icon .image-container img {
    width: calc(50% - 10px);
    margin: 9px 0;
}

.results-icon .figure-description,
.results-icon .figure-title {
    font-size: 1.2rem;
    text-align: left;
    align-self: flex-start;
    margin: 0;
    padding: 0;
    text-indent: 0;
    color: rgb(34, 34, 34);
    line-height: 27px;
    width: 100%;
}

/*---------------table １行目--------------*/
.protocol-table thead th {
    background-color: #8b7d7d !important;
    color: #f0f0f0;
}

/*---------------Viral Transmission Table調整----------*/
.protocol-table th:nth-child(1),
.protocol-table td:nth-child(1) {
    width: 10%;
}

.protocol-table th:nth-child(2),
.protocol-table td:nth-child(2) {
    width: 35%;
}

.protocol-table th:nth-child(3),
.protocol-table td:nth-child(3) {
    width: 20%;
}

.protocol-table th:nth-child(4),
.protocol-table td:nth-child(4) {
    width: 35%;
}

/* p(a)の値を左揃えに */
.protocol-table td[style*="align"] {
    text-align: left !important;
}

.protocol-table .formula-left {
    text-align: left !important;
}

/* Table 3 p(a)の数式を左揃えに */
.protocol-table .formula-left .MathJax,
.protocol-table .formula-left .MathJax_Display,
.protocol-table .formula-left mjx-container {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/*---------------表中折り返しを防ぐ----------*/
.no-wrap {
    white-space: nowrap;
}

/*---------------MathJax式番号を右端揃え----------*/
.MathJax_Display {
    text-align: center !important;
}

.MathJax .eqn-number,
.MathJax .mjx-tag {
    float: right !important;
}

