/* ===== character Detail (Soravie) ===== */
.character-detail {
    --accent: #d36f9e;
    --accent-strong: #bf4a80;
    --card-bg: #fff;
    --card-border: #f3d1e0;
    --text: #222;
}

.character-detail .badge {
    display: none;
}

/* コンテンツ幅 */
.character-detail .container {
    max-width: 1360px;
    margin-inline: auto;
    padding: 0 20px;
}

/* 本体グリッド */
.detail-card {
    position: relative;
    display: grid;
    grid-template-columns: 420px 1fr;
    grid-template-areas: "media body";
    gap: clamp(16px, 3vw, 40px);
    background: var(--card-bg);
    /*border: 13px solid var(--card-border);
    border-radius: 16px;*/
    padding: clamp(16px, 2.5vw, 24px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.detail-card.is-reverse {
    grid-template-columns: 1fr 420px;
    grid-template-areas: "body media";
}

/* アーチ背景（上部） */
.hero-arch {
    --arch-h: 140px;
    grid-column: 1 / -1;
    height: var(--arch-h);
    margin: -89px -24px 8px;
    /*border-top-left-radius: 12px;
    border-top-right-radius: 12px;*/
    background:
        radial-gradient(120% 100% at 50% -10%, #b9e2ef 0 60%, transparent 61%) top/100% var(--arch-h) no-repeat,
        repeating-linear-gradient(0deg, #fff0 0 6px, #e9f6fb 6px 18px);
}

/* 画像 */
.hero-thumb {
    grid-area: media;
    position: relative;
}

.hero-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

/* Sticky（PCのみ） */
@media (min-width: 821px) {
    .hero-thumb.is-sticky {
        position: sticky;
        top: calc(16px + var(--header-offset, 0px));
        align-self: start;
    }
}

/* タイプバッジ */
.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    background: #fff;
    border: 2px solid var(--card-border);
    color: var(--accent-strong);
    padding: .25rem .5rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
}

.badge.is-character {
    color: #5b8bd7;
    border-color: #cbe0ff;
}

/* テキスト側 */
.detail-head {
    grid-area: body;
    color: var(--text);
}

.ribbon {
    display: inline-block;
    font-weight: 800;
    letter-spacing: .06em;
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--card-border);
    padding: .2rem .6rem;
    border-radius: 8px;
    position: relative;
}

.ribbon::before,
.ribbon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 2px;
    background: var(--card-border);
}

.ribbon::before {
    left: -12px;
}

.ribbon::after {
    right: -12px;
}

.detail-title {
    margin: .3rem 0 .6rem;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.2;
}

.u-mark {
    background: linear-gradient(transparent 65%, #ffe3ef 0 92%, transparent 0);
    border-radius: 4px;
    padding: 0 .2em;
}

.role {
    margin: .1rem 0 .6rem;
    color: #666;
    font-weight: 700;
    letter-spacing: .06em;
}

.hr-dot {
    height: 1px;
    border: none;
    margin: .9rem 0 1.1rem;
    background: radial-gradient(circle, #bbb 2px, transparent 3px) repeat-x left center;
    background-size: 8px 1px;
}

.intro {
    line-height: 1.9;
    font-size: 1rem;
}

/* タグ & リンク */
.tags {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.tag {
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #444;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .85rem;
}

.links {
    margin-top: 1.1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.chip {
    border: 2px solid var(--card-border);
    background: #fff;
    color: var(--accent-strong);
    padding: .35rem .7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
    transition: transform .15s ease;
}

.chip:hover {
    transform: translateY(-2px);
}

.chip-x {
    color: #111;
}

/* 必要なら色追加 */

/* モバイル：縦積み */
@media (max-width: 820px) {

    .detail-card,
    .detail-card.is-reverse {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "body";
    }

    .hero-arch {
        --arch-h: 120px;
        margin: -16px -16px 8px;
    }
}