/* =========================================================
   Web public pages: shared layout, author card and share UI
   ========================================================= */

/* ---------------------------------------------------------
   Public page layout
   --------------------------------------------------------- */
.web-public-page-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1620px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 28px;
    padding-left: 28px;
}

.web-public-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 820px);
    align-items: flex-start;
    justify-content: start;
    gap: 28px;
    width: 100%;
}

.web-public-layout::after {
    display: none;
}

.web-public-breadcrumb {
    min-width: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.web-public-sidebar-breadcrumb {
    margin: 0 0 10px;
    padding: 0 2px;
}

.web-public-breadcrumb a {
    color: #337ab7;
    text-decoration: none;
}

.web-public-breadcrumb a:hover,
.web-public-breadcrumb a:focus {
    color: #23527c;
    text-decoration: underline;
}

.web-public-breadcrumb i {
    margin: 0 8px;
    color: #94a3b8;
    font-size: 11px;
}

/* 1ページ作品のパンくず内タイトル */
.web-public-episode-breadcrumb-title {
    font-size: 13px;
}

/*
 * 連載トップでは、パンくずは通常スクロールさせ、
 * プロフィールカードだけを画面内に残す。
 */
.web-series-page .web-public-author-sidebar {
    position: static;
    align-self: stretch;
}

.web-series-page .web-public-author-stack {
    position: sticky;
    top: 80px;
}

.web-series-page .web-public-author-card {
    position: static;
}

.web-public-author-sidebar {
    position: sticky;
    top: 80px;
    grid-column: 1;
    justify-self: start;
    width: 280px;
    min-width: 280px;
}

.web-public-main-column {
    grid-column: 2;
    justify-self: start;
    box-sizing: border-box;
    width: 820px;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

@media (min-width: 1580px) {
    .web-public-layout {
        grid-template-columns:
            minmax(280px, 1fr)
            820px
            minmax(280px, 1fr);
        justify-content: stretch;
    }

    .web-public-layout::after {
        content: "";
        display: block;
        grid-column: 3;
    }

    .web-public-author-sidebar {
        grid-column: 1;
        justify-self: start;
    }

    .web-public-main-column {
        grid-column: 2;
        justify-self: center;
        width: 820px;
        margin-right: auto;
        margin-left: auto;
    }
}

/* ---------------------------------------------------------
   Author card
   --------------------------------------------------------- */
.web-public-author-card {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #fff;
    box-shadow: none;
    text-align: left;
}

.web-public-author-card-title {
    margin: 0 0 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.web-public-author-image-wrap {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 10px;
    text-align: center;
}

.web-public-author-image,
.web-public-author-image-placeholder {
    box-sizing: border-box;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #f8fafc;
}

.web-public-author-image {
    display: block;
    object-fit: cover;
}

.web-public-author-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 26px;
}

.web-public-author-name {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.web-public-author-profile {
    margin: 0 0 10px;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    overflow-wrap: anywhere;
}

.web-public-author-profile-title {
    display: none;
}

.web-public-author-shop-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.web-public-author-shop-link:hover,
.web-public-author-shop-link:focus {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Share buttons
   - Shared by the series top and episode-reading pages.
   - Keep all SNS sizing here; do not override it in reader-reactions.css.
   --------------------------------------------------------- */
.web-public-share {
    width: 100%;
    margin: 0 auto 24px;
    padding: 0;
    text-align: center;
}

/* リアクションがなく、本文の直後にSNSボタンが来る場合だけ余白を広げる */
.web-episode-reader-area+.web-episode-share {
	margin-top: 40px;
}

.web-public-share .author-share-box {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.web-public-share .author-share-label {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.web-public-share .author-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.web-public-share .author-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 0;
    min-height: 22px;
    height: auto;
    padding: 3px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.web-public-share .author-share-btn:hover,
.web-public-share .author-share-btn:focus {
    color: #fff;
    text-decoration: none;
    opacity: .9;
}

.web-public-share .author-share-btn::before {
    display: inline-block;
    font-family: "Font Awesome 5 Brands";
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.web-public-share .share-x {
    background: #111827;
}

.web-public-share .share-x::before {
    content: "\f099";
}

.web-public-share .share-facebook {
    background: #1877f2;
}

.web-public-share .share-facebook::before {
    content: "\f39e";
}

.web-public-share .share-line {
    background: #06c755;
}

.web-public-share .share-line::before {
    content: "\f3c0";
}

.web-public-share .share-copy {
    border-color: #cbd5e1;
    background: #64748b;
    font-family: inherit;
}

.web-public-share .share-copy::before {
    content: "\f0c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.web-public-share .author-share-message,
.web-public-share .share-copy-message {
    margin-top: 7px;
    color: #2a7bd6;
    font-size: 11px;
    text-align: center;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1199px) {
    .web-public-page-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .web-public-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        justify-content: stretch;
        gap: 22px;
    }

    .web-public-layout::after {
        display: none;
    }

    .web-public-author-sidebar {
        width: 280px;
        min-width: 280px;
    }

    .web-public-main-column {
        width: 100%;
        max-width: 820px;
    }
}

@media (max-width: 991px) {
    .web-public-layout {
        display: block;
    }

    .web-public-author-sidebar,
    .web-public-main-column {
        width: 100%;
        max-width: 820px;
        margin-right: auto;
        margin-left: auto;
    }

    .web-public-author-sidebar {
        position: static;
        margin-bottom: 18px;
    }

    .web-public-author-card {
        display: block;
        padding: 14px;
    }

    .web-series-page .web-public-author-stack {
        position: static;
    }

    .web-public-author-image-wrap {
        width: auto;
        height: auto;
        margin: 0 0 10px;
    }
}

@media (max-width: 600px) {
    .web-public-page-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .web-public-share {
        margin-bottom: 12px;
    }

    .web-public-share .author-share-buttons {
        gap: 5px;
    }

    .web-public-share .author-share-btn {
        padding: 3px 7px;
        font-size: 9px;
    }
}
