/**
 * Book Cafe
 * Normal posts + categories + fixed pages + shortcodes.
 */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */

.is-bookcafe,
.is-coffee-counter {
    --bookcafe-color-main: var(--nanako-color-main);
    --bookcafe-color-text: var(--nanako-color-text);
    --bookcafe-color-sub: var(--nanako-color-sub);
    --bookcafe-color-paper: var(--nanako-color-paper);
    --bookcafe-color-border: var(--nanako-color-border);

    --bookcafe-card-width: 160px;
    --bookcafe-card-body-width: 150px;
    --bookcafe-cover-min: 120px;
    --bookcafe-cover-max: 150px;
    --bookcafe-cover-ratio: 150 / 152;

    --bookcafe-space-sm: 1rem;
    --bookcafe-space-md: 1.5rem;
    --bookcafe-space-lg: 4.5rem;
    --bookcafe-space-xl: 4rem;
    --bookcafe-hover-lift: -4px;
}

/* --------------------------------------------------------------------------
   Shared headings and hero
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.is-bookcafe .bookcafe-welcome {
    color: var(--bookcafe-color-text);
}

.is-bookcafe .bookcafe-section-title {
    padding: 0 0 10px;
    color: var(--bookcafe-color-main);
    background: none;
    border-left: 0;
    border-bottom: 1px solid var(--bookcafe-color-border);
    text-align: center;
}

.is-bookcafe .bookcafe-section-lead {
    margin: -0.5rem 0 var(--bookcafe-space-md);
    color: var(--bookcafe-color-sub);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Book Cafe top menu
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 30px;
    background-image: url("https://nanakoroom.com/wp-content/uploads/2026/07/コーヒー豆２.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.is-bookcafe .bookcafe-menu__card {
    box-sizing: border-box;
    padding: 24px 18px;
    color: var(--bookcafe-color-text);
    background: #fff;
    border: 1px solid #dcd1c4;
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.is-bookcafe .bookcafe-menu__card:hover,
.is-bookcafe .bookcafe-menu__card:focus-visible {
    color: var(--bookcafe-color-text);
    background: #fbf9f5;
    box-shadow: 0 8px 18px rgba(74, 59, 50, 0.08);
    transform: translateY(-2px);
}

.is-bookcafe .bookcafe-menu__icon {
    color: var(--bookcafe-color-main);
    font-size: 1rem;
}

.is-bookcafe .bookcafe-menu__title {
    margin: 10px 0 8px;
    padding: 0;
    color: var(--bookcafe-color-main);
    background: none;
    border: 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.is-bookcafe .bookcafe-menu__description {
    margin: 0;
    color: var(--bookcafe-color-text);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Shared Coffee Counter link
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-coffee-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin: 28px 0 56px;
    padding: 20px 24px;
    color: var(--bookcafe-color-text);
    background: var(--bookcafe-color-paper);
    border: 1px solid var(--bookcafe-color-border);
}

.is-bookcafe .bookcafe-coffee-link__icon {
    font-size: 1.4rem;
}

.is-bookcafe .bookcafe-coffee-link__body {
    min-width: 0;
}

.is-bookcafe .bookcafe-coffee-link__eyebrow,
.is-bookcafe .bookcafe-coffee-link__text {
    margin: 0;
}

.is-bookcafe .bookcafe-coffee-link__eyebrow {
    color: var(--bookcafe-color-main);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.is-bookcafe .bookcafe-coffee-link__text {
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.is-bookcafe .bookcafe-coffee-link__action {
    display: inline-block;
    padding: 0.65em 1.2em;
    color: #fff;
    background: var(--bookcafe-color-main);
    border: 1px solid var(--bookcafe-color-main);
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.is-bookcafe .bookcafe-coffee-link__action:hover,
.is-bookcafe .bookcafe-coffee-link__action:focus-visible {
    color: var(--bookcafe-color-main);
    background: #fff;
}

/* --------------------------------------------------------------------------
   Bookshelf navigation
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-shelf-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 var(--bookcafe-space-lg);
}

.is-bookcafe .bookcafe-shelf-nav__link {
    display: inline-block;
    min-width: 7em;
    padding: 0.65em 1.2em;
    color: var(--bookcafe-color-main);
    background: #fff;
    border: 1px solid var(--bookcafe-color-border);
    text-align: center;
    text-decoration: none;
}

.is-bookcafe .bookcafe-shelf-nav__link:hover,
.is-bookcafe .bookcafe-shelf-nav__link:focus-visible,
.is-bookcafe .bookcafe-shelf-nav__link.is-current {
    color: #fff;
    background: var(--bookcafe-color-main);
    border-color: var(--bookcafe-color-main);
}

/* --------------------------------------------------------------------------
   Shelf introduction paper
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-shelf-intro {
    position: relative;
    box-sizing: border-box;
    max-width: 900px;
    margin: 30px auto 45px;
    padding: 70px 80px;
    color: var(--bookcafe-color-text);
    background: var(--bookcafe-color-paper);
    border: 1px solid var(--bookcafe-color-border);
    box-shadow: 0 20px 40px rgba(58, 46, 43, 0.08), 0 2px 8px rgba(58, 46, 43, 0.04);
    text-align: center;
}

.is-bookcafe .bookcafe-shelf-intro::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid #dfd5c6;
    pointer-events: none;
}

.is-bookcafe .bookcafe-shelf-intro__pin {
    position: absolute;
    top: -15px;
    z-index: 2;
    font-size: 24px;
}

.is-bookcafe .bookcafe-shelf-intro__pin--left {
    left: 20px;
    transform: rotate(-15deg);
}

.is-bookcafe .bookcafe-shelf-intro__pin--right {
    right: 20px;
    transform: rotate(15deg);
}

.is-bookcafe .bookcafe-shelf-intro__icon {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    color: var(--bookcafe-color-main);
}

.is-bookcafe .bookcafe-shelf-intro__label {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0 0 45px;
    padding-bottom: 8px;
    color: var(--bookcafe-color-text);
    border-bottom: 1px solid #e8e0d5;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.is-bookcafe .bookcafe-shelf-intro__description {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto 70px;
    color: var(--bookcafe-color-text);
    font-size: 1.05rem;
    line-height: 2;
}

.is-bookcafe .bookcafe-shelf-intro__footer {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e8e0d5;
    text-align: center;
}

.is-bookcafe .bookcafe-shelf-intro__signature {
    margin: 0;
    color: #bfaea0;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Book detail article
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-book-detail {
    position: relative;
    box-sizing: border-box;
    max-width: 900px;
    margin: 60px auto;
    padding: 70px 80px;
    color: var(--bookcafe-color-text);
    background: var(--bookcafe-color-paper);
    border: 1px solid var(--bookcafe-color-border);
    border-radius: 2px;
    box-shadow:
        0 20px 40px rgba(58, 46, 43, 0.08),
        0 2px 8px rgba(58, 46, 43, 0.04);
    font-family:
        "Georgia",
        "Times New Roman",
        "Noto Serif JP",
        "ヒラギノ明朝 ProN",
        "MS 明朝",
        serif;
}

.is-bookcafe .bookcafe-book-detail::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid #dfd5c6;
    pointer-events: none;
}

.is-bookcafe .bookcafe-book-detail__header,
.is-bookcafe .bookcafe-book-detail__title,
.is-bookcafe .bookcafe-book-detail__cover,
.is-bookcafe .bookcafe-book-detail__section,
.is-bookcafe .bookcafe-book-detail__footer {
    position: relative;
    z-index: 1;
}

/* Header */

.is-bookcafe .bookcafe-book-detail__header {
    margin-bottom: 25px;
    text-align: center;
}

.is-bookcafe .bookcafe-book-detail__icon {
    margin-bottom: 10px;
    color: var(--bookcafe-color-main);
    font-size: 1rem;
}

.is-bookcafe .bookcafe-book-detail__category {
    display: inline-block;
    margin: 0;
    padding-bottom: 5px;
    color: var(--bookcafe-color-main);
    border-bottom: 1px solid #e8e0d5;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}

/* Title */

.is-bookcafe .bookcafe-book-detail__title {
    margin: 0 0 25px;
    padding: 0;
    color: #2c1f1d;
    background: none;
    border: 0;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-align: center;
}

.is-bookcafe .bookcafe-book-detail__meta {
    display: block;
    margin-top: 8px;
    color: var(--bookcafe-color-sub);
    font-size: 0.65em;
    letter-spacing: 0.02em;
}

/* Cover */

.is-bookcafe .bookcafe-book-detail__cover {
    margin: 0 auto 35px;
    text-align: center;
}

.is-bookcafe .bookcafe-book-detail__cover-link {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--bookcafe-color-border);
    box-shadow: 0 4px 10px rgba(58, 46, 43, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.is-bookcafe .bookcafe-book-detail__cover-link:hover,
.is-bookcafe .bookcafe-book-detail__cover-link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 7px 16px rgba(58, 46, 43, 0.15);
}

.is-bookcafe .bookcafe-book-detail__image {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
}

.is-bookcafe .bookcafe-book-detail__image-note {
    display: block;
    margin-top: 8px;
    color: var(--bookcafe-color-main);
    font-size: 0.7rem;
}

.is-bookcafe .bookcafe-book-detail__link-note,
.is-bookcafe .bookcafe-book-detail__edition-note {
    display: block;
}

.is-bookcafe .bookcafe-book-detail__edition-note {
    margin-top: 0.4rem;
    line-height: 1.7;
}

/* Sections */

.is-bookcafe .bookcafe-book-detail__section {
    margin-bottom: 40px;
}

.is-bookcafe .bookcafe-book-detail__section-title {
    display: block;
    margin: 0 0 15px;
    padding: 0 0 4px;
    color: var(--bookcafe-color-main);
    background: none;
    border: 0;
    border-bottom: 1px solid #f0e9df;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.1em;
}

.is-bookcafe .bookcafe-book-detail__list {
    margin: 0 !important;
    padding-left: 20px !important;
    list-style-type: circle;
}

.is-bookcafe .bookcafe-book-detail__list li {
    margin-bottom: 10px;
    color: var(--bookcafe-color-text);
    line-height: 1.8;
}

/* Owner's note */

.is-bookcafe .bookcafe-book-detail__comment {
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.55);
    border-left: 3px solid var(--bookcafe-color-border);
}

.is-bookcafe .bookcafe-book-detail__comment-text {
    margin: 0;
    color: var(--bookcafe-color-text);
    line-height: 2;
}

.is-bookcafe .bookcafe-book-detail__comment-text p {
    margin: 0 0 1.5em !important;
}

.is-bookcafe .bookcafe-book-detail__comment-text p:last-child {
    margin-bottom: 0 !important;
}

/* Footer */

.is-bookcafe .bookcafe-book-detail__footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e8e0d5;
    text-align: center;
}

.is-bookcafe .bookcafe-book-detail__signature {
    margin: 0;
    color: #bfaea0;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Mobile */

@media (max-width: 767px) {

    .is-bookcafe .bookcafe-book-detail {
        margin: 20px auto;
        padding: 40px 24px;
        border: 0;
    }

    .is-bookcafe .bookcafe-book-detail::before {
        inset: 8px;
    }

    .is-bookcafe .bookcafe-book-detail__title {
        font-size: 1.35rem;
    }

    .is-bookcafe .bookcafe-book-detail__image {
        max-width: 180px;
    }

    .is-bookcafe .bookcafe-book-detail__section {
        margin-bottom: 32px;
    }

    .is-bookcafe .bookcafe-book-detail__comment {
        padding: 20px;
    }
	.is-bookcafe .bookcafe-book-detail__list, 
	.is-bookcafe .bookcafe-book-detail__comment-text {
	font-size: 0.94rem;
}
}

/* --------------------------------------------------------------------------
   Book Blend
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-blend {
    box-sizing: border-box;
    width: 100%;
    max-width: 920px;
    margin: 30px auto 70px;
    padding: 58px 52px;
    color: var(--bookcafe-color-text);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            var(--bookcafe-color-paper)
        );
    border: 1px solid var(--bookcafe-color-border);
    box-shadow:
        0 18px 40px rgba(58, 46, 43, 0.07),
        0 2px 8px rgba(58, 46, 43, 0.03);
}


/* Introduction */

.is-bookcafe .bookcafe-blend__intro {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.is-bookcafe .bookcafe-blend__icon {
    margin-bottom: 10px;
    font-size: 1.6rem;
    line-height: 1;
}

.is-bookcafe .bookcafe-blend__eyebrow {
    margin: 0 0 10px;
    color: var(--bookcafe-color-main);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.is-bookcafe .bookcafe-blend__title {
    margin: 0;
    padding: 0;
    color: var(--bookcafe-color-text);
    background: none;
    border: 0;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.is-bookcafe .bookcafe-blend__description {
    max-width: 620px;
    margin: 22px auto 0;
    color: var(--bookcafe-color-sub);
    font-size: 0.94rem;
    line-height: 2;
}


/* Form */

.is-bookcafe .bookcafe-blend__form {
    margin-top: 46px;
}

.is-bookcafe .bookcafe-blend__groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.is-bookcafe .bookcafe-blend__group {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 25px 20px 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--bookcafe-color-border);
}

.is-bookcafe .bookcafe-blend__group-title {
    width: auto;
    margin: 0 auto;
    padding: 0 10px;
    color: var(--bookcafe-color-main);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
}

.is-bookcafe .bookcafe-blend__group-description {
    min-height: 3.4em;
    margin: 4px 0 18px;
    color: var(--bookcafe-color-sub);
    font-size: 0.75rem;
    line-height: 1.7;
    text-align: center;
}

.is-bookcafe .bookcafe-blend__options {
    display: grid;
    gap: 9px;
}

.is-bookcafe .bookcafe-blend__option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.is-bookcafe .bookcafe-blend__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    opacity: 0;
    clip-path: inset(50%);
}

.is-bookcafe .bookcafe-blend__option-label {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.72em 0.8em 0.72em 2.25em;
    color: var(--bookcafe-color-text);
    background: #fff;
    border: 1px solid #e7ded4;
    font-size: 0.84rem;
    line-height: 1.5;
    text-align: left;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.is-bookcafe .bookcafe-blend__option-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.9em;
    box-sizing: border-box;
    width: 0.9em;
    height: 0.9em;
    background: #fff;
    border: 1px solid #cdbfb2;
    border-radius: 2px;
    transform: translateY(-50%);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.is-bookcafe .bookcafe-blend__option-label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 1.17em;
    width: 0.25em;
    height: 0.48em;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transform:
        translate(-50%, -58%)
        rotate(45deg);
    transition: opacity 0.2s ease;
}

.is-bookcafe .bookcafe-blend__option:hover
.bookcafe-blend__option-label {
    border-color: #cdbfb2;
    transform: translateY(-1px);
}

.is-bookcafe .bookcafe-blend__checkbox:checked
+ .bookcafe-blend__option-label {
    color: #fff;
    background: var(--bookcafe-color-main);
    border-color: var(--bookcafe-color-main);
}

.is-bookcafe .bookcafe-blend__checkbox:checked
+ .bookcafe-blend__option-label::before {
    background: var(--bookcafe-color-main);
    border-color: #fff;
}

.is-bookcafe .bookcafe-blend__checkbox:checked
+ .bookcafe-blend__option-label::after {
    opacity: 1;
}

.is-bookcafe .bookcafe-blend__checkbox:focus-visible
+ .bookcafe-blend__option-label {
    outline: 2px solid var(--bookcafe-color-main);
    outline-offset: 3px;
}

.is-bookcafe .bookcafe-blend__or-note {
    margin: 14px 0 0;
    color: #a08f82;
    font-size: 0.68rem;
    line-height: 1.6;
    text-align: center;
}


/* Submit button */

.is-bookcafe .bookcafe-blend__submit-area {
    margin-top: 34px;
    text-align: center;
}

.is-bookcafe .bookcafe-blend__submit {
    display: inline-block;
    min-width: 220px;
    padding: 0.9em 2em;
    color: #fff;
    background: var(--bookcafe-color-main);
    border: 1px solid var(--bookcafe-color-main);
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.is-bookcafe .bookcafe-blend__submit:hover,
.is-bookcafe .bookcafe-blend__submit:focus-visible {
    color: var(--bookcafe-color-main);
    background: #fff;
    box-shadow: 0 7px 16px rgba(58, 46, 43, 0.1);
    transform: translateY(-2px);
}

.is-bookcafe .bookcafe-blend__reset {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    padding-bottom: 0.1em;
    color: var(--bookcafe-color-sub);
    border-bottom: 1px solid #d8c8b8;
    font-size: 0.78rem;
    text-decoration: none;
}

.is-bookcafe .bookcafe-blend__reset:hover,
.is-bookcafe .bookcafe-blend__reset:focus-visible {
    color: var(--bookcafe-color-main);
    border-bottom-color: var(--bookcafe-color-main);
}


/* Results */

.is-bookcafe .bookcafe-blend__results {
    margin-top: 58px;
    padding-top: 48px;
    border-top: 1px solid var(--bookcafe-color-border);
}

.is-bookcafe .bookcafe-blend__summary {
    max-width: 650px;
    margin: 0 auto 32px;
    text-align: center;
}

.is-bookcafe .bookcafe-blend__summary-eyebrow {
    margin: 0 0 8px;
    color: var(--bookcafe-color-main);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.is-bookcafe .bookcafe-blend__results-title {
    margin: 0;
    padding: 0;
    color: var(--bookcafe-color-text);
    background: none;
    border: 0;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
}

.is-bookcafe .bookcafe-blend__selected {
    display: grid;
    gap: 8px;
    max-width: 520px;
    margin: 22px auto 0;
}

.is-bookcafe .bookcafe-blend__selected-row {
    display: grid;
    grid-template-columns: 7em minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #ded3c8;
    font-size: 0.84rem;
    line-height: 1.7;
    text-align: left;
}

.is-bookcafe .bookcafe-blend__selected-axis {
    color: var(--bookcafe-color-sub);
    font-weight: 600;
}

.is-bookcafe .bookcafe-blend__selected-values {
    color: var(--bookcafe-color-text);
}

/* Book Blend：今回選ばれた条件 */
.is-bookcafe .bookcafe-blend__selected-values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

/* 選択された条件のタグ */
.is-bookcafe .bookcafe-blend__selected-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.8em;
    border: 1px solid rgba(122, 92, 69, 0.16);
    border-radius: 999px;
    background-color: rgba(122, 92, 69, 0.1);
    color: inherit;
    font-size: 0.92em;
    line-height: 1.5;
}

/* 複数選択時の「または」 */
.is-bookcafe .bookcafe-blend__selected-separator {
    color: var(--bookcafe-color-sub);
    font-size: 0.82em;
}

/* Today's coffee */

.is-bookcafe .bookcafe-blend__coffee {
    position: relative;
    box-sizing: border-box;
    max-width: 680px;
    margin: 38px auto 54px;
    padding: 38px 44px;
    overflow: hidden;
    color: var(--bookcafe-color-text);
    background: #f5eee6;
    border: 1px solid #dfd2c5;
    text-align: center;
}

.is-bookcafe .bookcafe-blend__coffee::before,
.is-bookcafe .bookcafe-blend__coffee::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(140, 109, 83, 0.16);
    border-radius: 50%;
}

.is-bookcafe .bookcafe-blend__coffee::before {
    top: -36px;
    left: -30px;
}

.is-bookcafe .bookcafe-blend__coffee::after {
    right: -30px;
    bottom: -36px;
}

.is-bookcafe .bookcafe-blend__coffee-label {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: var(--bookcafe-color-main);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.is-bookcafe .bookcafe-blend__coffee-title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    color: var(--bookcafe-color-text);
    background: none;
    border: 0;
    font-size: 1.18rem;
    font-weight: 500;
}

.is-bookcafe .bookcafe-blend__coffee-name {
    position: relative;
    z-index: 1;
    margin: 20px 0 12px;
    color: var(--bookcafe-color-main);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.8;
}

.is-bookcafe .bookcafe-blend__coffee-description {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0 auto;
    color: var(--bookcafe-color-text);
    font-size: 0.88rem;
    line-height: 2;
}


/* Recommended books */

.is-bookcafe .bookcafe-blend__books-heading {
    margin-top: 0;
    text-align: center;
}

.is-bookcafe .bookcafe-blend__results-count {
    margin: 8px 0 0;
    color: var(--bookcafe-color-sub);
    font-size: 0.78rem;
}

.is-bookcafe .bookcafe-blend__books.bookcafe-book-grid {
    margin-top: 38px;
    margin-bottom: 10px;
}


/* Messages */

.is-bookcafe .bookcafe-blend__message {
    max-width: 620px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--bookcafe-color-border);
    text-align: center;
}

.is-bookcafe .bookcafe-blend__message p {
    margin: 14px 0 0;
    color: var(--bookcafe-color-sub);
    font-size: 0.88rem;
    line-height: 1.9;
}

.is-bookcafe .bookcafe-blend__error {
    color: #8b3d35;
    text-align: center;
}


/* Book Blend responsive */

@media (max-width: 767px) {

    .is-bookcafe .bookcafe-blend {
        padding: 42px 24px;
    }

    .is-bookcafe .bookcafe-blend__title {
        font-size: 1.14rem;
    }

    .is-bookcafe .bookcafe-blend__description {
        font-size: 0.88rem;
        line-height: 1.9;
    }

    .is-bookcafe .bookcafe-blend__groups {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .is-bookcafe .bookcafe-blend__group {
        padding: 24px 20px 20px;
    }

    .is-bookcafe .bookcafe-blend__group-description {
        min-height: 0;
    }

    .is-bookcafe .bookcafe-blend__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .is-bookcafe .bookcafe-blend__option-label {
        height: 100%;
        padding: 0.7em 0.5em 0.7em 1.9em;
        font-size: 0.78rem;
    }

    .is-bookcafe .bookcafe-blend__option-label::before {
        left: 0.65em;
    }

    .is-bookcafe .bookcafe-blend__submit {
        width: 100%;
        min-width: 0;
    }

    .is-bookcafe .bookcafe-blend__results {
        margin-top: 46px;
        padding-top: 38px;
    }

    .is-bookcafe .bookcafe-blend__selected-row {
        grid-template-columns: 1fr;
        gap: 2px;
        text-align: center;
    }

    .is-bookcafe .bookcafe-blend__coffee {
        margin: 32px auto 44px;
        padding: 32px 24px;
    }

    .is-bookcafe .bookcafe-blend__coffee-description {
        font-size: 0.84rem;
        line-height: 1.9;
    }

    .is-bookcafe .bookcafe-blend__message {
        padding: 25px 20px;
    }
}

@media (max-width: 420px) {

    .is-bookcafe .bookcafe-blend {
        padding-right: 18px;
        padding-left: 18px;
    }

    .is-bookcafe .bookcafe-blend__group {
        padding-right: 14px;
        padding-left: 14px;
    }

    .is-bookcafe .bookcafe-blend__option-label {
        padding-left: 1.75em;
        font-size: 0.74rem;
    }

    .is-bookcafe .bookcafe-blend__option-label::before {
        left: 0.55em;
    }
}

/* --------------------------------------------------------------------------
   Book card grid and component
   -------------------------------------------------------------------------- */

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, var(--bookcafe-card-width)));
    justify-content: center;
    column-gap: var(--bookcafe-space-md);
    row-gap: var(--bookcafe-space-xl);
    margin: var(--bookcafe-space-xl) 0;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__link {
    display: block;
	flex: 1;
    max-width: var(--bookcafe-card-width);
    margin: 0 auto;
    color: var(--bookcafe-color-text);
    text-align: center;
    text-decoration: none;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__link:hover,
:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__link:focus-visible {
    color: var(--bookcafe-color-text);
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(var(--bookcafe-cover-min), 14vw, var(--bookcafe-cover-max));
    aspect-ratio: var(--bookcafe-cover-ratio);
    margin: 0 auto var(--bookcafe-space-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid #f5f5f5;
    box-shadow: 0 0 12px rgba(74, 59, 50, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75%;
    height: 75%;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__placeholder {
    color: var(--bookcafe-color-sub);
    font-size: 0.75rem;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__link:hover .bookcafe-card__cover,
:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__link:focus-visible .bookcafe-card__cover {
    box-shadow: 0 6px 18px rgba(74, 59, 50, 0.12);
    transform: translateY(var(--bookcafe-hover-lift));
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__link:hover .bookcafe-card__image img,
:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__link:focus-visible .bookcafe-card__image img {
    transform: scale(1.03);
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__body {
    width: var(--bookcafe-card-body-width);
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__author,
:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__title,
:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__description {
    margin: 0;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__author {
    color: var(--bookcafe-color-sub);
    font-size: 0.82rem;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__title {
    padding: 0;
    color: var(--bookcafe-color-text);
    background: none;
    border: 0;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.45;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__author + .bookcafe-card__title {
    margin-top: 0.3rem;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__description {
     font-size: 0.94rem;
}

/* Book Card：しおり風カテゴリーラベル */

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin: 0 0 0.55rem;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__category {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 4.6em;
    padding: 0.22rem 0.7rem 0.22rem 0.85rem;
    color: var(--bookcafe-color-main);
    background: #fbf7f1;
    border: 1px solid var(--bookcafe-color-border);
    border-radius: 2px;
    font-size: 0.68rem;
    line-height: 1.45;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__category::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 0.45rem;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.65;
}

/* 浅煎り */
:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__category--light {
    color: #9a7556;
    background: #fcf6ec;
}

/* 深煎り */
:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__category--deep {
    color: #765846;
    background: #f2e9e1;
}

/* 店主の休憩室 */
:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__category--column {
    color: #7a6b62;
    background: #f5f1ec;
}

/* --------------------------------------------------------------------------
   Book Card affiliate link
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-card__affiliate {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(120, 95, 75, 0.14);
    text-align: center;
}

.is-bookcafe .bookcafe-card__affiliate-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;

    color: var(--bookcafe-color-sub);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.is-bookcafe .bookcafe-card__affiliate-link:hover {
    color: var(--bookcafe-color-main);
    opacity: 0.8;
}

.is-bookcafe .bookcafe-card__affiliate-icon {
    color: currentColor;
    font-size: 0.9rem;
    line-height: 1;

    transition: transform 0.2s ease;
}

.is-bookcafe .bookcafe-card__affiliate-link:hover
.bookcafe-card__affiliate-icon {
    transform: translateX(0.14em);
}

/* --------------------------------------------------------------------------
   More link
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-more {
    margin: var(--bookcafe-space-md) 0 var(--bookcafe-space-xl);
    text-align: center;
}

.is-bookcafe .bookcafe-more__link {
    display: inline-block;
    padding: 0.75em 1.8em;
    color: var(--bookcafe-color-main);
    background: var(--bookcafe-color-paper);
    border: 1px solid var(--bookcafe-color-border);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.is-bookcafe .bookcafe-more__link:hover,
.is-bookcafe .bookcafe-more__link:focus-visible {
    color: #fff;
    background: var(--bookcafe-color-main);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Book-to-coffee pairing
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-pairing {
    box-sizing: border-box;
    max-width: 760px;
    margin: 40px auto;
    padding: 30px 34px;
    color: var(--bookcafe-color-text);
    background: var(--bookcafe-color-paper);
    border: 1px solid var(--bookcafe-color-border);
    text-align: center;
}

.is-bookcafe .bookcafe-pairing__eyebrow {
    margin: 0 0 8px;
    color: var(--bookcafe-color-main);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.is-bookcafe .bookcafe-pairing__title {
    margin: 0;
    padding: 0;
    color: var(--bookcafe-color-text);
    background: none;
    border: 0;
    font-size: 1.15rem;
    font-weight: 500;
}

.is-bookcafe .bookcafe-pairing__coffee {
    margin: 22px 0 0;
    color: var(--bookcafe-color-main);
    font-size: 1rem;
    font-weight: 600;
}

.is-bookcafe .bookcafe-pairing__note {
    margin: 14px auto 24px;
    line-height: 1.9;
}

.is-bookcafe .bookcafe-pairing__link {
    display: inline-block;
    padding-bottom: 0.15em;
    color: var(--bookcafe-color-main);
    border-bottom: 1px solid #d8c8b8;
    text-decoration: none;
}

.is-bookcafe .bookcafe-pairing__link:hover,
.is-bookcafe .bookcafe-pairing__link:focus-visible {
    color: var(--bookcafe-color-text);
    border-bottom-color: var(--bookcafe-color-text);
}

/* --------------------------------------------------------------------------
   Related links
   -------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-related {
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 24px;
    padding: 1em;
    clear: both;
    color: var(--bookcafe-color-text);
    background: var(--bookcafe-color-paper);
    border: 1px solid var(--bookcafe-color-border);
    font-size: 0.9rem;
    line-height: 1.8;
}

.is-bookcafe .bookcafe-related__title {
    margin: 0 0 18px;
    padding: 0 0 10px;
    color: var(--bookcafe-color-main);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--bookcafe-color-border);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
}

.is-bookcafe .bookcafe-related__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em 0.7em;
    margin: 0 0 12px;
}

.is-bookcafe .bookcafe-related__row:last-child {
    margin-bottom: 0;
}

.is-bookcafe .bookcafe-related__label {
    flex: 0 0 auto;
    color: var(--bookcafe-color-sub);
    font-weight: 600;
    white-space: nowrap;
}

.is-bookcafe .bookcafe-related__shelf-link,
.is-bookcafe .bookcafe-related__tag {
    display: inline-block;
    color: var(--bookcafe-color-main);
    border-bottom: 1px solid #d8c8b8;
    text-decoration: none;
}

.is-bookcafe .bookcafe-related__shelf-link:hover,
.is-bookcafe .bookcafe-related__shelf-link:focus-visible,
.is-bookcafe .bookcafe-related__tag:hover,
.is-bookcafe .bookcafe-related__tag:focus-visible {
    color: var(--bookcafe-color-text);
    border-bottom-color: var(--bookcafe-color-text);
}

.is-bookcafe .bookcafe-related__tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.2em 0.7em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .is-bookcafe .bookcafe-menu {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .is-bookcafe .bookcafe-menu__title {
        font-size: 0.95rem;
        font-weight: 600;
    }

    .is-bookcafe .bookcafe-coffee-link {
        grid-template-columns: auto 1fr;
        padding: 18px;
    }

    .is-bookcafe .bookcafe-coffee-link__action {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .is-bookcafe .bookcafe-shelf-intro {
        margin: 0 auto 40px;
        padding: 40px 28px;
        border: 0;
    }

    .is-bookcafe .bookcafe-shelf-intro::before {
        inset: 12px;
    }

    .is-bookcafe .bookcafe-shelf-intro__label {
        margin-bottom: 30px;
        font-size: 0.9rem;
        letter-spacing: 0.08em;
    }

    .is-bookcafe .bookcafe-shelf-intro__description {
        margin-bottom: 45px;
        line-height: 1.9;
    }

    .is-bookcafe .bookcafe-blend {
        padding: 42px 24px;
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 0.35rem;
        row-gap: var(--bookcafe-space-lg);
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__link {
        max-width: 110px;
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__cover {
        width: min(100%, 132px);
        margin-bottom: var(--bookcafe-space-sm);
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__image {
        width: 78%;
        height: 78%;
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__body {
        width: 105px;
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__author {
        font-size: 0.6rem;
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__title {
        font-size: 0.9rem;
        line-height: 1.35;
    }
	
@media (max-width: 767px) {
    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__categories {
        margin-bottom: 0.4rem;
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__category {
        min-width: 4.3em;
        padding: 0.14rem 0.4rem 0.14rem 0.5rem;
        font-size: 0.55rem;
        letter-spacing: 0.03em;
			}

			:is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__category::before {
				width: 3px;
				height: 3px;
				margin-right: 0.3rem;
			}
		}

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-card__description {
        line-height: 1.6;
		font-size: 0.75rem;
    }
	
	.is-bookcafe .bookcafe-card__affiliate-link {
		gap: 0.15em;
		font-size: 0.6rem;
		letter-spacing: 0;
		white-space: nowrap;
	}

	.is-bookcafe .bookcafe-card__affiliate-icon {
		font-size: 0.75rem;
	}

    .is-bookcafe .bookcafe-more__link {
        padding: 0.7em 1.5em;
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .is-bookcafe .bookcafe-related__row {
        display: block;
    }

    .is-bookcafe .bookcafe-related__label {
        display: block;
        margin-bottom: 0.25em;
    }
}

/* ==========================================================================
   Book Blend：項目をつなぐ「×」とボタン上の矢印
   ========================================================================== */

/* 「×」を置くための基準 */
.is-bookcafe .bookcafe-blend__group {
    position: relative;
}

/* 「×」を置くため、3つの項目の間隔を少し広げる */
.is-bookcafe .bookcafe-blend__groups {
	gap: 32px;
}

/* PCでは、横並びになった2項目の間だけに「×」を表示 */
@media (min-width: 768px) {

    .is-bookcafe .bookcafe-blend__group:nth-child(odd):not(:last-child)::after {
        content: "×";
        position: absolute;
        top: 50%;
        right: -16px;
        z-index: 2;
        padding: 3px;
        color: var(--bookcafe-color-main);
        background: transparent;
        font-family: sans-serif;
        font-size: 1.15rem;
        font-weight: 900;
        line-height: 1;
        opacity: 0.55;
        transform: translate(50%, -50%);
    }
}



/* --------------------------------------------------------------------------
「この一杯を淹れる」ボタン上の矢印
-------------------------------------------------------------------------- */

.is-bookcafe .bookcafe-blend__submit-area {
	position: relative;
	margin-top: 34px;
	padding-top: 42px;
	text-align: center;
}

/* 「この一杯を淹れる」へつながる3つの▼ */
.is-bookcafe .bookcafe-blend__submit-area::before {
    content: "▼\A▼\A▼";
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    width: 1em;
    color: var(--bookcafe-color-main);
    font-family: Georgia, serif;
    font-size: 0.55rem;
    line-height: 1.15;
    white-space: pre;
    text-align: center;
    opacity: 0.55;
    transform: translate(-50%, -5px);
}

/* 以前の矢印先端を非表示 */
.is-bookcafe .bookcafe-blend__submit-area::after {
    content: none;
}

/* --------------------------------------------------------------------------
   スマホ表示
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {

    .is-bookcafe .bookcafe-blend__groups {
        --bookcafe-blend-mobile-gap: 2.5rem;

        gap: var(--bookcafe-blend-mobile-gap);
    }

    .is-bookcafe .bookcafe-blend__group:not(:last-child)::after {
        content: "×";
        position: absolute;
		top: auto;
        left: 50%;
        right: auto;

        /*
         * グループ間の余白の中央に配置
         */
        bottom: calc(
            var(--bookcafe-blend-mobile-gap) / -2
        );

        z-index: 2;
        padding: 0.2em;
        color: var(--bookcafe-color-main);
        background: transparent;
        font-family: Georgia, serif;
        font-size: 1.05rem;
        line-height: 1;

        transform: translate(-50%, 50%);
    }

    :is(.is-bookcafe, .is-coffee-counter) .bookcafe-book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        column-gap: 0.35rem;
        row-gap: var(--bookcafe-space-lg);
    }

    /* 1冊だけなら中央 */
    :is(.is-bookcafe, .is-coffee-counter)
    .bookcafe-book-grid:has(> .bookcafe-card:only-child) {
        grid-template-columns: minmax(0, 110px);
        justify-content: center;
    }

    /* 2冊だけなら中央 */
    :is(.is-bookcafe, .is-coffee-counter)
    .bookcafe-book-grid:has(> .bookcafe-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 110px));
        justify-content: center;
    }
}