/*---------------------------*/
/*experiments----------------*/
/*---------------------------*/

/*h4のスタイルを上書き */
.experiments 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は継承される */
}

.experiments .protocol-button {
  border-radius: 4px;
  box-shadow: 0 0 10px #0000001a;
  padding: 0.5rem;
  display: flex;
  justify-content: start;
  align-items: center;
  width: calc(100% - 80px) !important; /* メニューボタンとscroll-to-topボタンのスペースを確保 */
  max-width: calc(100vw - 200px) !important; /* 画面幅に応じた最大幅 */
}
.experiments .protocols-rows .row:nth-of-type(odd) .protocol-button {
  background-color: #f7f2f2;
}
.experiments .protocols-rows .row:nth-of-type(even) .protocol-button {
  background-color: #f5f5f5;
}

.protocol-icon-wrapper {
  width: 30px;
}
.protocol-icon {
  color: #6c757d;
}
.experiments .card-body {
  position: relative;
  border-radius: 0 0 4px 4px;
  padding: 2rem 2rem 1rem 3rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  border: none;
  width: calc(100% - 80px);
}
.experiments .protocols-rows .row:nth-of-type(odd) .card-body {
  background-color: #f8f9fa;
}
.experiments .protocols-rows .row:nth-of-type(even) .card-body {
  background-color: #f8f9fa;
}

.protocol-button:focus {
    outline: none;
    box-shadow: none;
}

.experiments .card-body::before {
    content: '';
    position: absolute;
    width: 0.5rem;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
}
.experiments .protocols-rows .row:nth-of-type(odd) .card-body::before {
    background-color: #d29999;
}
.experiments .protocols-rows .row:nth-of-type(even) .card-body::before {
    background-color: #c9c5c6;
}

.experiments  .protocol-general {
    padding: 1rem;
    font-weight:var(--fw-semi-bold)
}
.experiments .protocol-table .cell-general {
    padding: 1rem;
    vertical-align: middle;
}
.experiments .protocol-table.table-striped tbody tr:nth-child(odd) {
    background-color: #fdfcfc !important;
}
.experiments .protocol-table.table-striped tbody tr:nth-child(even) {
    background-color: #f9f7f7 !important;
}
.experiments .protocol-table thead th {
    background-color: #8b7d7d !important;
    color: #f0f0f0;
}
.experiments .sequence-content-wrapper table {
    word-break: break-all;
}
.experiments .go-to-results-wrapper {
    width: 10%;
    float: right;
    margin-left: 1.5rem;
    border-radius: 13px;
}

.experiments .protocol-subgroup {
    width: 100%;
    margin-top: 5px;
}

.experiments .protocols-rows {
    width: 100%;
}

.experiments .protocols-rows .row {
    width: 100%;
    margin: 0;
}




/* Bootstrapのcol-*クラスの制限を上書き */
.page-content-wrapper.col-lg-8,
.page-content-wrapper.col-12 {
    max-width: 100% ;
    width: 100% ;
    flex: 0 0 100% ;
}

/* セクションタイトルの下線アクセント */
.experiments .section-title {
    position: relative;
    background: transparent !important;
    padding: 15px 0 10px 0;
    margin-bottom: 10px;
    color: #333333;
    font-size: 2rem;
    font-weight: 600;
}

.experiments .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 100px);
    height: 4px;
    background-color: #c67b7b;
    border-radius: 2px;
}

/*---------------sidenav------------------*/
/* サイドナビゲーションの新しいスタイル */
.nav-section {
    border-bottom: 1px solid #faf6f2;
    border: none;
    background-color: #f2efec;
}


.nav-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #333;
    font-size: 1.1rem;
}

.nav-section-header:hover {
    background: transparent;
    color: #c67b7b;
}

.nav-section-header.active {
    background: transparent !important;
    color: #c67b7b !important;
}

.nav-section-header[aria-expanded="true"] .nav-section-icon {
    transform: rotate(180deg);
}

.nav-subsection {
    background: transparent;
    border-top: 1px solid #f0f0f0;
}


.nav-subsection .nav-link {
    padding: 8px 16px 8px 32px;
    color: #666;
    text-decoration: none;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-subsection .nav-link:hover {
    background: transparent;
    color: #c67b7b;
    border-left-color: #c67b7b;
}

.nav-subsection .nav-link.active {
    background: transparent !important;
    color: #c67b7b !important;
    border-left-color: #c67b7b !important;
    font-weight: 500 !important;
}



.protocol-button[data-bs-toggle="collapse"] + .collapse {
    margin-top: 0;
}
/* Start hereタブでサイドナビを表示（safetyページと同じレイアウト） */
body.tab-overview .col-md-3 {
    display: block !important;
}

body.tab-overview .col-md-9 {
    max-width: calc(100% - 250px) !important;
}







