﻿

/* コンテンツボックス */
.contents-box {
    display: flex;
    align-items: center; /* 縦の中央揃え */
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px; /* 間隔を調整 */
    padding: 10px; /* 内側余白を調整 */
    overflow: hidden; /* はみ出し防止 */
    height: auto; /* 高さを自動調整 */
    transition: box-shadow 0.3s ease;
}

.contents-box:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* 画像部分 */
.image-wrap {
    flex-shrink: 0; /* サイズ固定 */
    width: 60px;
    height: 60px;
    margin-right: 10px; /* テキストとの間隔 */
    overflow: hidden;
    border-radius: 5px;
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が枠内に収まる */
}

/* テキスト部分 */
.data {
    display: flex;
    flex-direction: row; /* 横並び */
    gap: 10px; /* 各要素間の余白 */
    flex-wrap: wrap; /* 狭い場合は折り返し */
    align-items: center;
    max-width:650px;
}

.data .title {
    font-size: 14px;
    font-weight: bold;
    color: #444;
    white-space: nowrap; /* テキストを1行に制限 */
    overflow: hidden; /* はみ出し防止 */
    text-overflow: ellipsis; /* 省略記号を表示 */
    /*max-width:750px;*/
}

.data p {
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data .accession-number {
    font-size: 10px;
    color: #888;
}

/* コンテナ全体 */
.contents-container {
    display: flex;
    flex-wrap: wrap; /* 複数列対応 */
    justify-content: space-between;
}

.contents-box {
    flex: 0 1 calc(33.333% - 10px); /* 横3列に調整 */
}

p.dataOpacName {
    width:740px;
    color: #666; /* 落ち着いた色合い */
    font-size: 1em; /* ベースに合わせたフォントサイズ */
    font-weight: bold; /* 強調しつつ控えめに */
    background-color: #f3f3f3; /* 背景色を柔らかく */
    padding: 2px 10px; /* コンパクトな余白 */
    border-left: 3px solid #ddd; /* 左側にアクセント線 */
    margin-top: 5px; /* 上部に余白を追加 */
}


/* トップへ戻るボタンのスタイル */
#back-to-top {
    position: fixed; /* 常に画面上に表示 */
    bottom: 20px; /* 画面下からの距離 */
    right: 20px; /* 画面右からの距離 */
    padding: 10px 15px;
    font-size: 14px;
    background-color: #007BFF; /* ボタンの色 */
    color: #fff; /* テキストの色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #0056b3; /* ホバーカラー */
}


/*ソートセレクトボックス*/
  .arrow-select-container {
    font-family: Arial, sans-serif;
    margin: 0 10px 20px 20px;
    display: flex; /* 子要素を横並びに */
    justify-content: flex-end; /* 子要素を右端に配置 */
    align-items: center; /* 縦方向の中央揃え */
    gap: 10px; /* ラベルとセレクトボックスの間隔 */
  }

  .custom-select-label {
    color: #333;
  }

  .custom-select {
    position: relative;
    width: 150px; /* セレクトボックスの幅 */
  }

  select {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    appearance: none;
    cursor: pointer; /* カーソルをポインターに設定 */
  }

  .custom-select::after {
    content: '▼'; /* 矢印のアイコン */
    position: absolute;
    top: 50%;
    right: 8px; /* 矢印の位置調整 */
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #333;
  }


        /* ヒントのスタイル */
        .tooltip-text {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            color: #333;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 10px;
            z-index: 1000;
            font-size: 14px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-top: 5px;
        }

        .tooltip-container {
            position: relative;
            display: inline-block;
        }