@import 'variables.css';

.spot-list,
.drop-list,
.gem-list {
    list-style-type: none; /* リストのドットを非表示にする */
    padding: 0;
    display: table; /* テーブルのような表示にする */
    width: 100%; /* 幅を100%にする */
    font-size: 14px;
    letter-spacing: 0.04em; /* 字間を調整 */
}

.spot-list li,
.drop-list li,
.gem-list li {
    display: table-row; /* 各リストアイテムを行として扱う */
}

.spot-list li a,
.drop-list li a,
.gem-list li a  {
    display: table-cell;
    border-bottom: 1px solid #eee;
    color: black;
    text-decoration: none; /* 下線を削除 */
    transition: background-color 0.3s ease; /* 背景色の変化を滑らかにする */
}

.spot-list li p,
.drop-list li p,
.gem-list li p   {
    display: table-cell;
    transition: background-color 0.3s ease;
}

/*
.spot-list a:hover {
    background-color: #FCF4D2;
}*/

.spot-list-container,
.drop-list-container,
.gem-list-container {
    display: flex;
    align-items: center;
    padding: 10px 0;
    display: flex;
    align-items: center; /* アイコンをテキストの中央に揃える */
    z-index: 1;
    line-height: 1.3; /* 複数行のテキストの行間 */
}

.spot-icon-image-container,
.drop-icon-image-container,
.gem-icon-image-container {
    width: 60px;
    aspect-ratio: 1;
    margin-right: 10px;
    overflow: hidden;
    visibility: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 20%;
    flex-shrink: 0;
}

.spot-icon-image,
.drop-icon-image,
.gem-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が親要素内に収まるように調整 */
    object-position: center; /* 画像を中央に配置 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央に配置 */
    background-color: #f0f0f0;
}

.spot-icon-image-container.show,
.drop-icon-image-container.show,
.gem-icon-image-container.show {
    visibility: visible; /* Show when image is loaded */
}

.spot-label,
.drop-label,
.gem-label {
    display: flex; /* フレックスボックスに変更 */
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center; /* 垂直方向に中央揃え */
    margin-right: 10px;
    width: 26px;  /* 円の幅 */
    height: 26px;
    aspect-ratio: 1;
    border-radius: 50%; /* 完全な円形にする */
    color: white; /* テキストの色 */
    text-align: center; /* テキストを中央に揃える */
    font-weight: bold; /* テキストを太字にする */
    font-size: 13px; /* テキストサイズ */
    line-height: normal; /* line-heightを通常に戻す */
    flex-shrink: 0;
    text-indent: 1px;
    padding-top: 0px;
    line-height: 1.0;
}

.spot-label {
    background-color: var(--spot-color);
}

.drop-label {
    background-color: var(--drop-color);
}

.gem-label {
    background-color: var(--gem-color);
}

.spot-name-container,
.drop-name-container,
.gem-name-container {
    display: flex;
    flex-direction: column; /* 縦方向に並べる */
}

.spot-name-line,
.drop-name-line,
.gem-name-line {
    margin: 0; /* デフォルトのマージンをリセット */
}

.spot-name-line,
.drop-name-line,
.gem-name-line {
    font-weight: bold; /* テキストを太字にする */
    font-size: 15px;
    margin-right: 10px;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 最大2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden; /* はみ出した部分を非表示 */
    text-overflow: ellipsis; /* 省略記号 (…) を表示 */
}

.spot-phrase-line,
.drop-phrase-line,
.gem-phrase-line {
    font-weight: normal;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最大2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden; /* はみ出した部分を非表示 */
    text-overflow: ellipsis; /* 省略記号 (…) を表示 */
}

