﻿/* ----------------------------------------------------------------
   単一投稿（お知らせ）— single-post.php：TOP.html と同系のフロート（bd-post-float）
   ---------------------------------------------------------------- */
.bd-post-float {
    --bd-post-float-accent: var(--bd-ocean-mid);
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.75rem 2.25rem;
    font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--bd-text);
    position: relative;
    border-radius: var(--bd-radius-lg);
    border: 1px solid var(--bd-border-soft);
    box-shadow: var(--bd-shadow-card);
    overflow: hidden;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.9) 45%,
        var(--bd-ocean-foam) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bd-post-float {
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, #ffffff 55%, var(--bd-ocean-foam) 100%);
    }
}

.bd-post-float::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--bd-ocean-deep),
        var(--bd-post-float-accent),
        var(--bd-ocean-light),
        transparent
    );
}

.bd-post-float::after {
    content: "";
    position: absolute;
    right: -18%;
    top: 10%;
    width: 42%;
    height: 42%;
    background: radial-gradient(circle at center, rgba(94, 179, 212, 0.1) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.bd-post-float > * {
    position: relative;
    z-index: 1;
}

.bd-post-float__header {
    margin-bottom: 1.5rem;
}

.bd-post-float__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: var(--bd-text-muted);
}

.bd-post-float__eyebrow {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    color: var(--bd-ocean-deep);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(26, 95, 138, 0.18);
    border-radius: 999px;
}

.bd-post-float__date {
    font-variant-numeric: tabular-nums;
}

.bd-post-float__title {
    margin: 0;
    font-size: clamp(1.35rem, 3.6vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    color: var(--bd-ocean-deep);
}

.bd-post-float__title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--bd-ocean-bright), var(--bd-ocean-light), transparent);
}

/* 本文＋画像（TOP の「ごあいさつ」ブロックと同様の白パネル） */
.bd-post-float__story {
    margin: 0 0 1.5rem;
}

.bd-post-float__story-card {
    padding: 1.35rem 1.3rem 1.45rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--bd-radius-md);
    border: 1px solid rgba(26, 95, 138, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 縦並び: body → image → image-body（figcaption） */
.bd-post-float__stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
}

.bd-post-float__text {
    line-break: strict;
    word-break: normal;
}

.bd-post-float__text p {
    margin: 0 0 1.15em;
    line-height: 1.82;
    /* 標準 16px 根拠で約 17px（従来 0.95rem ≒ 15px より一段） */
    font-size: 1.0625rem;
    color: var(--bd-text-muted);
}

.bd-post-float__text p:last-child {
    margin-bottom: 0;
}

.bd-post-float__figure {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: min(100%, 560px);
}

.bd-post-float__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--bd-radius-md);
    box-shadow: 0 6px 24px rgba(12, 45, 66, 0.12);
    vertical-align: middle;
}

.bd-post-float__caption {
    margin-top: 0.55rem;
    font-size: 0.9375rem;
    color: var(--bd-text-muted);
    line-height: 1.6;
}

/* ブロック本文エリア（ACF の下、または単独） */
.bd-post-float__editor {
    margin-top: 0.25rem;
}

.bd-post-float__editor:not(.bd-post-float__editor--solo) .bd-post-float__entry-content {
    padding-top: 1.35rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(26, 95, 138, 0.12);
}

.bd-post-float__editor--solo .bd-post-float__entry-content {
    padding: 1.35rem 1.3rem 1.4rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--bd-radius-md);
    border: 1px solid rgba(26, 95, 138, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.bd-post-float__entry-content > *:first-child {
    margin-top: 0;
}

/* ブロック本文も ACF 本文に近い読みやすさに揃える */
.bd-post-float .bd-post-float__entry-content .wp-block-paragraph {
    font-size: 1.0625rem;
    line-height: 1.82;
}

@media screen and (max-width: 768px) {
    .bd-post-float {
        padding: 1.5rem 1.15rem 1.85rem;
    }
}

/* 投稿ページ：ブロック本文の表示（画像・段落が潰れないように） */
.main-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.main-content .wp-block-heading {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.main-content .wp-block-paragraph {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.75;
}
