/* ==========================================================================
   開催レポート（/report/ と /report/{slug}/）
   既存の色・角丸・書体の値を使い、影や装飾は足さない
   ========================================================================== */

.rp-single {
    max-width: 800px;
}

.rp-article {
    max-width: 760px;
}

.rp-article__title {
    line-height: 1.5;
}

/* 開催日・講師・セミナー */
.rp-meta {
    display: grid;
    gap: 8px;
    margin: 22px 0 clamp(28px, 4vw, 40px);
    padding-bottom: clamp(20px, 3vw, 28px);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.8;
}

.rp-meta__row {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 12px;
}

.rp-meta dt {
    color: var(--muted);
    font-weight: 700;
}

.rp-meta dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: break-word;
    word-break: normal;
}

.rp-meta a {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rp-article__thumb {
    margin-bottom: 0;
}

/* 本文 */
.rp-body {
    overflow-wrap: break-word;
    word-break: normal;
}

.rp-intro {
    margin-top: clamp(28px, 4vw, 40px);
}

.rp-body h2,
.rp-body h3 {
    scroll-margin-top: calc(var(--header-h) + 20px);
}

.rp-body ul,
.rp-body ol {
    padding-left: 1.4em;
}

.rp-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.7;
}

.rp-body th,
.rp-body td {
    padding: 10px 14px;
    border: 1px solid var(--line);
    vertical-align: top;
}

.rp-body th {
    background: var(--paper);
    color: var(--navy);
    font-weight: 700;
    white-space: nowrap;
}

.rp-figure {
    margin: 2em 0 0;
}

.rp-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.rp-figure--diagram img {
    border-color: var(--line);
    background: #fff;
}

/* 画像は原寸を別タブで開ける（スマホで図の文字をピンチで読むため） */
.rp-figure__open {
    display: block;
    cursor: zoom-in;
}

.rp-figure__hint {
    display: none;
}

@media (max-width: 600px) {
    .rp-figure__hint {
        display: block;
        margin-top: 6px;
        color: var(--muted);
        font-size: 12px;
        text-align: right;
    }
}

.rp-figure figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* 目次 */
.rp-toc {
    max-width: 760px;
    margin-top: clamp(32px, 4vw, 44px);
    padding: clamp(20px, 3vw, 28px) clamp(20px, 3.5vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.rp-toc__title {
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

.rp-toc__list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: rp-toc;
}

.rp-toc__item {
    border-top: 1px solid var(--line);
}

.rp-toc__item:first-child {
    border-top: 0;
}

.rp-toc__item:not(.is-sub) {
    counter-increment: rp-toc;
}

.rp-toc__item a {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.rp-toc__item:not(.is-sub) > a::before {
    content: counter(rp-toc, decimal-leading-zero);
    flex: none;
    width: 1.8em;
    color: var(--blue);
    font-family: var(--font-num);
    font-size: 17px;
    line-height: 1.45;
}

.rp-toc__item.is-sub {
    border-top: 0;
}

.rp-toc__item.is-sub a {
    padding: 2px 0 8px calc(1.8em + 12px);
    color: var(--muted);
    font-size: 14px;
}

.rp-toc__item a:hover {
    color: var(--blue-dark);
}

/* 今後のセミナー予定（目次の下の横スライド） */
.rp-upcoming {
    max-width: 760px;
    margin-top: clamp(28px, 4vw, 40px);
    padding: clamp(20px, 3vw, 28px) 0 clamp(20px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    overflow: hidden;
}

.rp-upcoming__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 clamp(20px, 3.5vw, 32px);
}

.rp-upcoming__title {
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.rp-upcoming .carousel-nav__btn {
    width: 40px;
    height: 40px;
    border-color: var(--line-strong);
    background: #fff;
    color: var(--navy);
}

.rp-upcoming .carousel-nav__btn .icon {
    width: 18px;
    height: 18px;
}

.rp-upcoming .carousel-nav__btn:hover:not(:disabled) {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.rp-upcoming__carousel {
    margin-top: 16px;
}

.rp-upcoming__track {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 2px clamp(20px, 3.5vw, 32px) 4px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(20px, 3.5vw, 32px);
    scrollbar-width: none;
    cursor: grab;
}

.rp-upcoming__track::-webkit-scrollbar {
    display: none;
}

.rp-upcoming__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.rp-upcoming__track.is-dragging a {
    pointer-events: none;
}

.rp-upcoming__track:focus-visible {
    outline-offset: -3px;
}

.rp-mini {
    flex: 0 0 clamp(200px, 30%, 228px);
    scroll-snap-align: start;
}

.rp-mini__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    transition: border-color .3s;
}

.rp-mini__link:hover {
    border-color: var(--blue);
}

.rp-mini__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mist);
}

.rp-mini__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.rp-mini__media .ws-thumb-fallback {
    padding: 8% 9%;
    gap: 4px;
}

.rp-mini__media .ws-thumb-fallback__label {
    font-size: 12px;
}

.rp-mini__media .ws-thumb-fallback__title {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

.rp-mini__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
}

.rp-mini__when {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rp-mini__date {
    color: var(--navy);
    font-family: var(--font-num);
    font-size: 24px;
    line-height: 1;
}

.rp-mini__meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.rp-mini__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.rp-upcoming__progress {
    height: 2px;
    margin: 16px clamp(20px, 3.5vw, 32px) 0;
    overflow: hidden;
    border-radius: 2px;
    background: var(--line);
}

.rp-upcoming__progress span {
    display: block;
    height: 100%;
    background: var(--blue);
    transform-origin: left;
    transform: scaleX(.2);
    transition: transform .2s linear;
}

.rp-upcoming__empty {
    margin: 14px clamp(20px, 3.5vw, 32px) 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* この回のセミナーページ */
.rp-linked {
    margin-top: clamp(40px, 5vw, 56px);
}

.rp-linked__label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.rp-linked__list {
    display: grid;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.rp-linked__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--navy);
    transition: border-color .3s;
}

.rp-linked__item:hover {
    border-color: var(--blue);
}

.rp-linked__date {
    flex: none;
    font-family: var(--font-num);
    font-size: 24px;
    line-height: 1;
}

.rp-linked__title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.rp-linked__item .icon {
    flex: none;
    width: 18px;
    height: 18px;
}

/* 一覧（/report/） */
.rp-card__speaker {
    margin-top: auto;
    padding-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 767px) {
    .rp-upcoming {
        border-radius: var(--radius-sm);
    }

    .rp-mini {
        flex-basis: min(64vw, 228px);
    }

    .rp-meta__row {
        grid-template-columns: 4.5em minmax(0, 1fr);
    }
}

/* 開催レポートは一般的な折り返し（行の右端まで詰める）。main.css の文節折り・balance をこのページでは外す */
.rp-single :is(h1, h2, h3, p, li, dd, dt, a, span, figcaption) { word-break: normal; text-wrap: wrap; line-break: strict; }

/* 題と見出しは文節で折り返し、行はできるだけ右まで詰める（2026-11-04 依頼者指示: 右の余白を空けすぎない。
   変な所で切れるよりは切りのいい所で改行する）。balance は行をそろえるため右が空くので使わず、pretty（最後の行の1〜2字だけを防ぐ）にする */
.rp-single .rp-article .rp-article__title,
.rp-single .rp-body :is(h2, h3) {
    word-break: auto-phrase;
    text-wrap: pretty;
}

/* よくある質問（問いをクリックで開け閉め。2026-11-04 依頼者指定） */
.rp-faq__item {
    border-top: 1px solid var(--line);
}
.rp-faq__item:last-of-type {
    border-bottom: 1px solid var(--line);
}
.rp-faq__q {
    position: relative;
    display: block;
    padding: 18px 44px 18px 0;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}
.rp-faq__q::-webkit-details-marker {
    display: none;
}
.rp-faq__q::before,
.rp-faq__q::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 14px;
    height: 2px;
    background: var(--blue);
    transition: transform .2s;
}
.rp-faq__q::after {
    transform: rotate(90deg);
}
.rp-faq__item[open] > .rp-faq__q::after {
    transform: rotate(0deg);
}
.rp-faq__q:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.rp-faq__a {
    padding: 0 0 18px;
}
.rp-faq__a > :first-child {
    margin-top: 0;
}
.rp-faq__a > :last-child {
    margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
    .rp-faq__q::before,
    .rp-faq__q::after {
        transition: none;
    }
}
.rp-single .rp-faq .rp-faq__q span {
    word-break: auto-phrase;
    text-wrap: pretty;
}
