/* Book hero */
.book-hero {
    padding: 32px 0 24px;
    background: #ffffff;
}

.book-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 360px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.book-hero__title {
    font-family: "Noto Sans JP";
    font-size: 40px;
    font-weight: 800;
    color: #1c1c1c;
    margin: 0;
}

.book-card__date{
    font-family: "Noto Sans JP";
    font-size: 12px;
    color: #636363;
    font-weight: 500;
}

.book-hero__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.book-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-filter-label-text {
    font-family: "Noto Sans JP";
    font-size: 12px;
    color: #555555;
}

/* Custom dropdown */
.book-filter-dropdown {
    position: relative;
    min-width: 220px;
    font-family: "Noto Sans JP";
}

.book-filter-dropdown__current {
    width: 100%;
    padding: 8px 32px 8px 16px;
    border-radius: 12px;
    border: 1px solid #14722A;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    color: #1c1c1c;
    cursor: pointer;
}

.book-filter-dropdown__arrow {
    font-size: 10px;
}

.book-filter-dropdown__list {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #d0d7de;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    list-style: none;
    margin: 4px 0 0 0;
    padding: 4px 0;
    display: none;
    z-index: 20;
}

.book-filter-dropdown.is-open .book-filter-dropdown__list {
    display: block;
}

.book-filter-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 14px;
    color: #1c1c1c;
    cursor: pointer;
}

.book-filter-dropdown__item:hover {
    background: #f5f5f5;
}

.book-filter-dropdown__check {
    font-size: 12px;
    color: #2681C4;
    opacity: 0;
}

.book-filter-dropdown__item.is-active .book-filter-dropdown__check {
    opacity: 1;
}

.book-filter-dropdown__item.is-active .book-filter-dropdown__item-text {
    color: #2681C4;
    font-weight: 400;
    font-size: 18px;
}

.book-filter-tabs {
    display: flex;
    gap: 8px;
}

.book-filter-tab {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: "Noto Sans JP";
    font-size: 12px;
    color: #2681C4;
    text-decoration: none;
}

.book-filter-tab.is-active {
    background: #2681C4;
    color: #ffffff;
    border-color: #2681C4;
}

/* Book list */
.book-list-section {
    padding: 24px 0 80px;
    background: #FAFAFA;
}

.book-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.book-card {
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    background: #ffffff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    text-decoration: none;
}

.book-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Noto Sans JP";
    font-size: 11px;
    color: #777777;
}

.book-card__badge {
    padding: 2px 4px;
    border-radius: 2px;
    background: #F3F4FF;
    color: #5c6ac4;
    font-size: 10px;
}

.book-card__title {
    font-family: "Noto Sans JP";
    font-size: 20px;
    font-weight: 700;
    color: #1c1c1c;
    line-height: 1.5;
    margin: 0;
}

.book-card__excerpt {
    font-family: "Noto Sans JP";
    font-size: 14px;
    color: #1C1C1C;
    line-height: 1.5;
    margin: 0;
}

.book-card__meta {
    margin-top: 4px;
    font-family: "Noto Sans JP";
    font-size: 10px;
    color: #14722A;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.book-card__meta-item::after {
    content: "／";
}
.book-card__meta-item:last-child::after {
    content: "";
}

.book-card__link {
    margin-top: 4px;
    font-family: "Noto Sans JP";
    font-size: 11px;
    color: #2681C4;
    text-decoration: underline;
    align-self: flex-start;
}

.book-empty {
    padding: 40px 0;
    text-align: center;
    font-family: "Noto Sans JP";
}

/* Pagination */
.book-pagination {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #E5E5E5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.book-pagination__btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #E5E5E5;
    font-family: "Noto Sans JP";
    font-size: 12px;
    color: #1c1c1c;
    background: #ffffff;
    text-decoration: none;
}

.book-pagination__btn--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.book-pagination__numbers {
    display: flex;
    gap: 4px;
}

.book-pagination__number {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #E5E5E5;
    font-family: "Noto Sans JP";
    font-size: 12px;
    color: #1c1c1c;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.book-pagination__number.is-active {
    background: #2681C4;
    color: #ffffff;
    border-color: #2681C4;
}
.location-more-text{
    color: #ffffff ;
}
/* Responsive */
@media (max-width: 1024px) {
    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .book-hero__container,
    .book-list-container {
        padding: 0 16px;
    }

    .book-hero__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }
    .book-filter-form{
        margin-top: 20px;
    }
    .book-hero{
        padding-top: 20px;
    }
}

