@charset "UTF-8";
/* --------------------------------------------------
  Template by espace（https://espace.i-ra.site/）
  Copyright: 2020 espace.

  利用規約を遵守の上、ご利用ください。
  二次配布、販売は禁止しています。
  --------------------------------------------------*/

:root {
    /** PC設定 **/
    /* 1行に表示する枚数 */
    --lnk-count-pc: 8;
    /* 画像間のスペース */
    --lnk-gap-pc: 20px;

    /** スマホ設定 **/
    /* 1行に表示する枚数 */
    --lnk-count-sp: 5;
    /* 画像間のスペース */
    --lnk-gap-sp: 10px;

    /** 装飾設定 **/
    /* 角丸 */
    --lnk-radius: 10px;
    /* 線幅 */
    --lnk-border-width: 1px;
    /* 線色 */
    --lnk-border-color: #333;
    /* 影色 */
    --lnk-shadow-color: rgba(51, 51, 51, 0.25);

    /** 新着マーク設定 **/
    /* 背景色 */
    --lnk-new-bg-color: #333;
    /* 文字色 */
    --lnk-new-text-color: #fff;

    /** キャプション設定 **/
    /* 背景色 */
    --lnk-caption-bg-color: rgba(0, 0, 0, 0.2);
    /* 文字色 */
    --lnk-caption-text-color: #fff;
}

.lnk-base {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lnk-gap-pc);
}
.lnk-base > * {
    position: relative;
    width: calc((100% - (var(--lnk-count-pc) - 1) * var(--lnk-gap-pc)) / var(--lnk-count-pc));
    padding-top: calc((100% - (var(--lnk-count-pc) - 1) * var(--lnk-gap-pc)) / var(--lnk-count-pc));
    box-sizing: border-box;
    overflow: visible;
}
.lnk-base > *.new::before {
    content: "new";
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    padding: 5px;
    background: var(--lnk-new-bg-color);
    color: var(--lnk-new-text-color);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    z-index: 1;
}
.lnk-base > * img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lnk-base.lnk-center {
    justify-content: center;
}
.lnk-base.lnk-right {
    justify-content: flex-end;
}
.lnk-base.lnk-evenly {
    justify-content: space-evenly;
}
.lnk-base.lnk-between {
    justify-content: space-between;
}
.lnk-base.lnk-border > * {
    border: var(--lnk-border-width) solid var(--lnk-border-color);
}
.lnk-base.lnk-shadow > * {
    box-shadow: 2px 2px 5px var(--lnk-shadow-color);
}
.lnk-base.lnk-rounded > * {
    border-radius: var(--lnk-radius);
}
.lnk-base.lnk-rounded > *.new::before {
    border-bottom-right-radius: var(--lnk-radius);
}
.lnk-base.lnk-circle > * {
    border-radius: 50%;
}
.lnk-base.lnk-circle > *.new::before {
    width: 100%;
}
.lnk-base.lnk-caption > *::after {
    content: attr(data-text);
    position: absolute;
    display: block;
    box-sizing: border-box;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 0 5px;
    background: var(--lnk-caption-bg-color);
    color: var(--lnk-caption-text-color);
    font-size: 12px;
    line-height: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lnk-base.lnk-caption-circle > *::after {
    padding: 0 26%;
}

@media only screen and (max-width: 768px) {
    .lnk-base {
        gap: var(--lnk-gap-sp);
    }
    .lnk-base > * {
        width: calc((100% - (var(--lnk-count-sp) - 1) * var(--lnk-gap-sp)) / var(--lnk-count-sp));
        padding-top: calc(
            (100% - (var(--lnk-count-sp) - 1) * var(--lnk-gap-sp)) / var(--lnk-count-sp)
        );
    }
}
/* --------------------------------------------------
  ツールチップ（body直下に生成、overflow制限を回避）
  -------------------------------------------------- */
#lnk-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    transform: translateY(4px);
}

#lnk-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

#lnk-tooltip .lnk-tooltip-bubble {
    background: #494340;
    color: #f0ebe3;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 10px;
}

#lnk-tooltip .lnk-tooltip-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #494340;
    margin-bottom: -1px;
}