@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/** common **/
a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}
.fs-12 {
    font-size: 12px;
}
.fs-14 {
    font-size: 14px;
}
.img-fixed {
    width: 110px;
    height: 156px;
}
.page-item.active .page-link {
    background-color: #e9ecef; /* グレーの背景色 */
    border-color: #e9ecef; /* グレーのボーダー */
    color: #000000; /* 文字色をダークに */
}
.truncate-multiline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 表示する行数 */
    line-clamp: 2;
    overflow: hidden;
}
.book-cover-img-l {
    width: 180px;
    height: 255px;
}
.author-icon-img-l {
    width: 100px;
    height: 100px;
}

.chapter-link-hover:hover {
    background-color: var(--bs-tertiary-bg);
}

footer ul.footerLinks li:not(:last-child)::after {
    content: '|';
    color: #6c757d;
    margin: 0 2px;
}

.custom-indicators {
    position: static; 
    margin-top: 10px;
    text-align: center;
}
/* インジケータの通常状態 */
.carousel-indicators [data-bs-target] {
    background-color: #8F9293; 
}

/* アクティブなインジケータ */
.carousel-indicators .active {
    background-color: #585C5E;
}

/* 本文に画像が入った場合に突き抜けないようにする */
#chapterContents img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ranking-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0.3em;
    margin-bottom: 20px;
    position: relative;
}
.ranking-title::before {
    width: 1.25em;
    height: 1.25em;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.00488 19H22.0049V21H2.00488V19ZM2.00488 5L7.00488 8L12.0049 2L17.0049 8L22.0049 5V17H2.00488V5Z' fill='%23ffb500'%3E%3C/path%3E%3C/svg%3E");
    content: '';
}
.ranking-title::after {
    content: '';
    background-size: 10px 10px;
    background-color: #e1eef5;
    background-image: repeating-linear-gradient(-45deg, #4c9ac0 0, #4c9ac0 3px, #fff 0, #fff 50%);
    width: 100%;
    height: 7px;
    position: absolute;
    bottom: -15px;
    left: 0;
}

#searchPopoverContent {
    z-index: 1050; /* Bootstrap popover と同じ z-index */
    width: 500px;
}

.check-option:hover {
    background-color: var(--bs-light);
}

/** charge button **/
.charge-button {
    width: 300px;
    height: 50px;
}

@media (max-width: 576px) {
  .charge-button {
    width: 240px;
    height: auto;
  }
}

/** chapter page **/
@media (max-width: 992px) { /* スマホ向けのメディアクエリ */
    #commentArea {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      max-height: 70vh;
      background-color: white;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
      display: none;
      z-index: 1000;
      overflow-y: auto;
      border-top: 1px solid #ccc;
      border-left: none; /* ボーダーを左から削除 */
    }
}
