/* display:flex を持つ要素は UA の [hidden] より詳細度が高いので明示的に打ち消す */
        [hidden] {
            display: none !important;
        }

        /* ---------- 左右の立ち絵 ----------
           body::before(-2)=背景画像 / body::after(-1)=暗幕 の間に敷く。
           main は position:static なので z-index:-1 でも本文の下に回る。 */
        .ar-deco {
            /* fixed をやめてドキュメントへ絶対配置（ページと一緒に流れる）。
               body に position 指定が無いので基準は初期包含ブロック＝ドキュメント原点。 */
            position: absolute;
            z-index: 0;
            /* 左右の余白（50vw - 560px）に追従しつつ、できるだけ大きく */
            width: clamp(260px, calc(50vw - 545px), 430px);
            opacity: 0;
            pointer-events: none;
            user-select: none;
            filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
            /* 本文より遅れて下へずらすことで「スクロールが鈍い」視差になる。--dy は archive.js が更新 */
            transform: translate3d(0, var(--dy, 0px), 0);
            transition: opacity 1.1s ease 0.2s;
            will-change: transform, opacity;
            display: none;
        }

        .ar-deco.is-in {
            opacity: 0.95;
        }

        .ar-deco img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* main(最大1200px)の外側に置く。狭い画面では本文に被るので出さない
           左は上寄り、右はそれより下げて高さをずらす */
        .ar-deco-left {
            right: calc(50% + 560px);
            top: 180px;
        }

        .ar-deco-right {
            left: calc(50% + 560px);
            top: 620px;
        }

        @media (min-width: 1560px) {
            .ar-deco {
                display: block;
            }
        }

        .ar-intro {
            background: rgba(250, 250, 250, 0.9);
            color: #000;
            border-radius: 12px;
            padding: 20px 24px;
            margin-bottom: 16px;
            line-height: 1.7;
        }

        .ar-intro h1,
        .ar-intro h2 {
            font-size: 1.3rem;
            color: var(--color-primary);
            margin: 0 0 8px;
            font-weight: bold;
        }

        .ar-intro p {
            margin: 0;
            font-size: 0.92rem;
            color: #333;
        }

        /* ---------- 検索フォーム ---------- */
        .ar-form {
            background: rgba(250, 250, 250, 0.9);
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 14px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: flex-end;
        }

        .ar-field {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .ar-field.grow {
            flex: 1 1 260px;
        }

        .ar-field label {
            font-size: 0.75rem;
            font-weight: 700;
            color: #666;
        }

        .ar-form input[type="search"],
        .ar-form select {
            padding: 9px 12px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 0.95rem;
            background: #fff;
            color: #222;
            font-family: inherit;
        }

        .ar-form input[type="search"]:focus,
        .ar-form select:focus {
            outline: 2px solid var(--color-primary);
            outline-offset: 1px;
        }

        .ar-btn {
            padding: 9px 18px;
            border-radius: 8px;
            border: 1px solid var(--color-primary);
            background: var(--color-primary);
            color: #fff;
            font-size: 0.92rem;
            font-weight: 700;
            cursor: pointer;
            transition: opacity 0.15s, transform 0.12s;
            font-family: inherit;
        }

        .ar-btn:hover {
            opacity: 0.88;
            transform: translateY(-1px);
        }

        .ar-btn.ghost {
            background: #fff;
            color: var(--color-primary);
        }

        /* ---------- 状態表示 ---------- */
        .ar-status {
            color: #fff;
            font-size: 0.85rem;
            margin: 0 0 12px 2px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        }

        .ar-status.is-error {
            color: #ffb4b4;
        }

        /* ---------- カード ---------- */
        .ar-results {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 18px;
        }

        .ar-card {
            background: rgba(252, 252, 252, 0.96);
            border-radius: 14px;
            overflow: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
            transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
        }

        .ar-card:hover,
        .ar-card:focus-within {
            transform: translateY(-6px);
            box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
        }

        /* ---------- サムネイル ---------- */
        .ar-thumb {
            position: relative;
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #e3e3e8;
            overflow: hidden;
            text-decoration: none;
        }

        .ar-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transform: scale(1.001);
            transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
                filter 0.4s ease;
        }

        .ar-card:hover .ar-thumb img,
        .ar-card:focus-within .ar-thumb img {
            transform: scale(1.09);
            filter: saturate(1.08) brightness(1.04);
        }

        .ar-veil {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(177, 30, 124, 0.55) 100%);
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
        }

        .ar-card:hover .ar-veil,
        .ar-card:focus-within .ar-veil {
            opacity: 1;
        }

        .ar-play {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.94);
            color: var(--color-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.65);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
            transition: opacity 0.28s ease,
                transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
            pointer-events: none;
        }

        .ar-play i {
            margin-left: 3px;
        }

        .ar-card:hover .ar-play,
        .ar-card:focus-within .ar-play {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .ar-dur {
            position: absolute;
            right: 7px;
            bottom: 7px;
            padding: 2px 7px;
            border-radius: 5px;
            background: rgba(0, 0, 0, 0.78);
            color: #fff;
            font-size: 0.7rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            transition: opacity 0.28s ease;
            pointer-events: none;
        }

        .ar-card:hover .ar-dur,
        .ar-card:focus-within .ar-dur {
            opacity: 0;
        }

        /* ---------- 本文（高さを揃えるため各行に下限を持たせる） ---------- */
        .ar-body {
            padding: 12px 14px 14px;
            display: flex;
            flex-direction: column;
            gap: 7px;
            flex: 1;
            min-width: 0;
        }

        .ar-date {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--color-primary);
            letter-spacing: 0.02em;
        }

        .ar-badge {
            font-size: 0.66rem;
            padding: 1px 7px;
            border-radius: 999px;
            background: var(--color-primary);
            color: #fff;
            font-weight: 700;
        }

        .ar-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin: 4px 0 2px;
        }
        .ar-badges:empty { display: none; }
        .ar-badges .ar-badge {
            font-size: 0.66rem;
            padding: 1px 7px;
            border-radius: 999px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            line-height: 1.5;
        }
        .ar-badge-minutes {
            background: rgba(122,131,247,.12);
            color: #5a5ee0;
            cursor: pointer;
        }
        .ar-badge-minutes:hover {
            background: rgba(122,131,247,.25);
        }
        .ar-badge-transcript {
            background: rgba(34,187,106,.12);
            color: #17a05e;
        }
        /* YouTube自動字幕（＝生成字幕ではないもの）は赤で区別する */
        .ar-badge-transcript-yt {
            background: rgba(220,38,38,.13);
            color: #dc2626;
        }
        .ar-badge-chapters {
            background: rgba(240,166,33,.14);
            color: #c77d0a;
            cursor: pointer;
        }
        .ar-badge-chapters:hover {
            background: rgba(240,166,33,.25);
        }

        /* タイムスタンプ ポップアップ */
        .ar-chap-lock {
            overflow: hidden !important;
        }
        .ar-chap-overlay {
            position: fixed;
            /* 旧WebView対策: inset と四辺を併記 */
            top: 0; right: 0; bottom: 0; left: 0;
            inset: 0;
            z-index: 1000;
            background: rgba(10, 12, 24, .55);
            background-color: rgba(10, 12, 24, .55);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        .ar-chap {
            background: #fff;
            background-color: #fff;
            /* WebViewで背景が抜ける描画バグ対策: 合成レイヤーを強制 */
            transform: translateZ(0);
            border-radius: 14px;
            box-shadow: 0 18px 50px rgba(0,0,0,.35);
            overflow: auto;
            max-height: min(82vh, 720px);
            width: min(480px, 100%);
            display: flex;
            flex-direction: column;
            font-size: 0.82rem;
            overscroll-behavior: contain;
            touch-action: pan-y;
            -webkit-overflow-scrolling: touch;
        }
        .ar-chap-scene {
            position: relative;
            aspect-ratio: 16 / 9;
            width: 100%;
            height: auto;
            background: #111;
            overflow: hidden;
            flex: none;
        }
        .ar-chap-scene img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .ar-chap-scene-veil {
            position: absolute;
            inset: 0;
            background: linear-gradient(0deg, rgba(10,12,24,.45), transparent 60%);
            pointer-events: none;
        }
        .ar-chap-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 9px 14px;
            background: #f8f8f8;
            border-bottom: 1px solid #ededed;
        }
        .ar-chap-title {
            font-weight: 700;
            color: #1a1a1a;
        }
        .ar-chap-title i { color: #c77d0a; margin-right: 3px; }
        .ar-chap-close {
            border: 0;
            background: transparent;
            font-size: 1.3rem;
            line-height: 1;
            color: #777;
            cursor: pointer;
            padding: 2px 6px;
        }
        .ar-chap-close:hover { color: #1a1a1a; }
        .ar-chap-video {
            padding: 7px 14px;
            border-bottom: 1px solid #f0f0f0;
            font-weight: 600;
        }
        .ar-chap-video a {
            color: #1a6fd6;
            text-decoration: none;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .ar-chap-body {
            overflow-y: auto;
            padding: 4px 0;
        }
        .ar-chap-list {
            display: block;
        }
        .ar-chap-item {
            display: flex;
            align-items: baseline;
            gap: 10px;
            padding: 7px 14px;
            color: #1a1a1a;
            text-decoration: none;
        }
        .ar-chap-item:hover { background: #f2f6ff; }
        .ar-chap-time {
            font-variant-numeric: tabular-nums;
            font-weight: 700;
            color: #1a6fd6;
            white-space: nowrap;
            min-width: var(--ar-time-w, auto);
            flex: none;
        }
        .ar-chap-mark {
            flex: none;
            width: 1.4em;
            color: #9aabbd;
            font-weight: 700;
        }
        .ar-chap-item.is-major {
            background: #f6f9ff;
            border-left: 3px solid #1a6fd6;
            padding-left: 11px;
        }
        .ar-chap-item.is-major:not(:first-child) { margin-top: 7px; }
        .ar-chap-item.is-major .ar-chap-mark { color: #1a6fd6; }
        .ar-chap-item.is-major .ar-chap-label { font-weight: 700; color: #111; }
        .ar-chap-item.is-sub {
            padding-left: calc(14px + 1.1em);
            border-left: 1px solid #e3eaf3;
        }
        .ar-chap-item.is-sub .ar-chap-label { color: #444; }
        .ar-chap-item.is-sub:hover .ar-chap-label { color: #1a6fd6; }
        .ar-chap-label {
            color: #333;
        }
        .ar-chap-loading, .ar-chap-empty {
            padding: 18px 12px;
            color: #888;
            text-align: center;
        }

        /* 要約モーダル（ar-chap の枠を共用） */
        .ar-min-list {
            display: block;
            padding: 4px 0 10px;
        }
        .ar-min-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 9px 14px;
            color: #1a1a1a;
            text-decoration: none;
            border-bottom: 1px solid #f0f2f7;
        }
        .ar-min-item:last-child { border-bottom: none; }
        .ar-min-item:hover { background: #f2f6ff; }
        .ar-min-time {
            font-variant-numeric: tabular-nums;
            font-weight: 700;
            color: #1a6fd6;
            white-space: nowrap;
            padding-top: 1px;
            min-width: var(--ar-time-w, auto);
            flex: none;
        }
        .ar-min-body {
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-width: 0;
        }
        .ar-min-topic {
            font-weight: 700;
            color: #1a1a1a;
        }
        .ar-min-text {
            font-size: 0.84rem;
            line-height: 1.55;
            color: #555;
        }
        .ar-min-facts {
            margin: 2px 0 0;
            padding-left: 16px;
            font-size: 0.78rem;
            line-height: 1.5;
            color: #888;
        }
        .ar-min-facts li { margin: 1px 0; }

        /* 章(section)＞トピックの階層表示 */
        .ar-min-group { display: block; }
        .ar-min-section {
            display: flex;
            align-items: baseline;
            gap: 10px;
            padding: 11px 14px 6px;
            background: #f6f9fe;
            border-top: 1px solid #e7edf7;
        }
        .ar-min-group:first-child .ar-min-section { border-top: none; }
        .ar-min-section-time {
            font-size: 0.86rem;
            color: #1a6fd6;
        }
        .ar-min-section-title {
            font-weight: 700;
            font-size: 0.92rem;
            color: #14213d;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .ar-min-child { padding-left: 30px; }
        .ar-min-child .ar-min-time {
            color: #5b87c9;
            font-weight: 600;
        }
        .ar-min-child:last-child { padding-bottom: 12px; }

        /* ジャンプリンク（時刻・トピック・章見出しの時刻） */
        .ar-min-item a, .ar-min-section a {
            color: inherit;
            text-decoration: none;
        }
        .ar-min-item a:hover, .ar-min-section a:hover { text-decoration: underline; }
        .ar-min-item a.ar-min-time,
        .ar-min-section a.ar-min-time { color: #1a6fd6; }
        .ar-min-item a.ar-min-topic { color: #1a1a1a; }

        /* 明言した事実（既定は畳んだ状態） */
        .ar-min-facts-box {
            margin: 2px 0 0;
            font-size: 0.78rem;
            line-height: 1.5;
            color: #888;
        }
        .ar-min-facts-box > summary {
            cursor: pointer;
            color: #6b7a99;
            user-select: none;
            list-style: none;
        }
        .ar-min-facts-box > summary::-webkit-details-marker { display: none; }
        .ar-min-facts-box > summary::before {
            content: "▸ ";
            font-size: 0.72rem;
        }
        .ar-min-facts-box[open] > summary::before { content: "▾ "; }
        .ar-min-facts-box > summary:hover { color: #1a6fd6; }
        .ar-min-facts-box .ar-min-facts { margin-top: 3px; }

        /* コメント用コピー（タイムスタンプ／章目次） */
        .ar-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: #f6f9fe;
            border-bottom: 1px solid #e7edf7;
        }
        .ar-copy-btn {
            border: 1px solid #1a6fd6;
            background: #1a6fd6;
            color: #fff;
            border-radius: 6px;
            padding: 6px 12px;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
        }
        .ar-copy-btn:hover { background: #155cb5; border-color: #155cb5; }
        .ar-copy-btn.is-copied { background: #1f9d55; border-color: #1f9d55; }
        .ar-copy-note {
            font-size: 0.72rem;
            color: #6b7a99;
        }
        .ar-copy-preview {
            width: 100%;
            font-size: 0.75rem;
            color: #6b7a99;
        }
        .ar-copy-preview > summary {
            cursor: pointer;
            user-select: none;
        }
        .ar-copy-preview > pre {
            margin: 6px 0 0;
            padding: 8px 10px;
            background: #fff;
            border: 1px solid #e2e8f2;
            border-radius: 6px;
            font-size: 0.78rem;
            line-height: 1.6;
            color: #333;
            white-space: pre-wrap;
            word-break: break-word;
            max-height: 240px;
            overflow: auto;
        }

        .ar-title {
            font-size: 0.95rem;
            line-height: 1.45;
            margin: 0;
            color: #1a1a1a;
            font-weight: 700;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 2.9em;
        }

        .ar-title mark {
            background: #ffe36e;
            color: #000;
            border-radius: 2px;
            padding: 0 1px;
        }

        .ar-cats {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            min-height: 19px;
        }

        .ar-cat {
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 999px;
            background: var(--color-highlight-bg);
            color: var(--color-secondary);
            font-weight: 700;
        }

        .ar-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 0.75rem;
            color: #666;
            min-height: 17px;
        }

        .ar-meta span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .ar-url {
            font-size: 0.72rem;
            color: #0b66c3;
            text-decoration: none;
            display: flex;
            align-items: flex-start;
            gap: 5px;
            line-height: 1.4;
        }

        .ar-url span {
            word-break: break-all;
        }

        .ar-url:hover {
            text-decoration: underline;
        }

        .ar-url .fa-youtube {
            color: #ff0033;
            margin-top: 2px;
            flex-shrink: 0;
        }

        /* 該当箇所が無いカードは URL を最下部に寄せて列を揃える */
        .ar-card:not(.has-hits) .ar-url {
            margin-top: auto;
        }

        .ar-card.has-hits .ar-hits {
            margin-top: auto;
        }

        /* ---------- 検索ヒット ---------- */
        .ar-hits {
            padding-top: 9px;
            border-top: 1px dashed #d8d8e0;
        }

        .ar-hits-title {
            font-size: 0.74rem;
            font-weight: 700;
            color: #777;
            margin-bottom: 6px;
        }

        .ar-hits-total {
            font-weight: 500;
            color: #9a9a9a;
        }

        .ar-hit-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .ar-hit {
            background: #f4f4f8;
            border-radius: 8px;
            padding: 8px 10px;
        }

        .ar-hit-head {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
        }

        .ar-hit-kind {
            font-size: 0.66rem;
            font-weight: 700;
            padding: 1px 7px;
            border-radius: 999px;
            color: #fff;
        }

        .ar-kind-transcript {
            background: #7b4bd6;
        }

        .ar-kind-comment {
            background: #2e8b57;
        }

        .ar-kind-chat {
            background: #d67b1e;
        }

        .ar-hit-extras {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .ar-hit-sc {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.66rem;
            font-weight: 700;
            background: #ffd54a;
            color: #6b4e00;
            border: 1px solid #e0ab0a;
            padding: 1px 6px;
            border-radius: 999px;
            line-height: 1.4;
        }

        .ar-hit-sc b {
            font-weight: 800;
            color: #b8860b;
        }

        .ar-hit-member {
            font-size: 0.66rem;
            font-weight: 700;
            color: #6b6be0;
            border: 1px solid #9f9fe8;
            padding: 1px 6px;
            border-radius: 999px;
            line-height: 1.4;
        }

        .ar-hit-author {
            font-size: 0.7rem;
            font-weight: 600;
            color: #335;
        }

        .ar-hit-at {
            margin-left: auto;
            font-size: 0.7rem;
            color: #666;
            font-variant-numeric: tabular-nums;
        }

        .ar-hit-text {
            margin: 0 0 5px;
            font-size: 0.82rem;
            line-height: 1.55;
            color: #222;
            word-break: break-word;
        }

        .ar-hit-text mark {
            background: #ffe36e;
            color: #000;
            font-weight: 700;
            padding: 0 1px;
            border-radius: 2px;
        }

        .ar-hit-url {
            font-size: 0.68rem;
            color: #0b66c3;
            word-break: break-all;
            text-decoration: none;
            display: inline-flex;
            align-items: flex-start;
            gap: 4px;
            line-height: 1.4;
        }

        .ar-hit-url:hover {
            text-decoration: underline;
        }

        /* ---------- 2件目以降の折りたたみ ---------- */
        .ar-more {
            margin-top: 8px;
        }

        .ar-more>summary {
            list-style: none;
            cursor: pointer;
            user-select: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 11px;
            border-radius: 999px;
            background: var(--color-highlight-bg);
            color: var(--color-primary);
            font-size: 0.74rem;
            font-weight: 700;
            transition: background 0.18s ease;
        }

        .ar-more>summary::-webkit-details-marker {
            display: none;
        }

        .ar-more>summary:hover {
            background: #f2cde6;
        }

        .ar-more>summary i {
            font-size: 0.62rem;
            transition: transform 0.25s ease;
        }

        .ar-more[open]>summary i {
            transform: rotate(180deg);
        }

        .ar-more .ar-more-close {
            display: none;
        }

        .ar-more[open] .ar-more-open {
            display: none;
        }

        .ar-more[open] .ar-more-close {
            display: inline;
        }

        .ar-more .ar-hit-list {
            margin-top: 8px;
            max-height: 300px;
            overflow-y: auto;
        }

        /* ---------- 空・スケルトン ---------- */
        .ar-empty {
            grid-column: 1 / -1;
            background: rgba(250, 250, 250, 0.9);
            border-radius: 12px;
            padding: 36px 20px;
            text-align: center;
            color: #444;
            line-height: 1.7;
            margin: 0;
        }

        .ar-skeleton {
            pointer-events: none;
        }

        .ar-skeleton .sk {
            display: block;
            height: 12px;
            border-radius: 6px;
            background: linear-gradient(90deg, #e6e6ec 25%, #f2f2f6 50%, #e6e6ec 75%);
            background-size: 200% 100%;
            animation: arShimmer 1.2s infinite;
        }

        .ar-skeleton .sk-sm {
            width: 40%;
        }

        .ar-skeleton .sk-md {
            width: 70%;
        }

        .ar-skeleton .sk-lg {
            width: 92%;
            height: 18px;
        }

        .ar-skeleton .ar-thumb {
            background: linear-gradient(90deg, #e6e6ec 25%, #f2f2f6 50%, #e6e6ec 75%);
            background-size: 200% 100%;
            animation: arShimmer 1.2s infinite;
        }

        @keyframes arShimmer {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        /* ---------- ページャ ---------- */
        .ar-pager {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin: 24px 0 8px;
        }

        .ar-pages {
            display: inline-flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px;
        }

        .ar-pg {
            min-width: 38px;
            height: 38px;
            padding: 0 11px;
            border-radius: 9px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            background: rgba(255, 255, 255, 0.9);
            color: var(--color-text);
            font-size: 0.85rem;
            font-weight: 700;
            font-family: inherit;
            font-variant-numeric: tabular-nums;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            transition: background 0.18s ease, color 0.18s ease,
                border-color 0.18s ease, transform 0.14s ease;
        }

        .ar-pg:hover:not(:disabled):not(.is-current) {
            background: #fff;
            border-color: var(--color-primary);
            color: var(--color-primary);
            transform: translateY(-2px);
        }

        .ar-pg:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        .ar-pg.is-current {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #fff;
            cursor: default;
        }

        .ar-gap {
            align-self: center;
            padding: 0 2px;
            color: #fff;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        }

        .ar-load-more {
            display: flex;
            justify-content: center;
            margin: 18px 0 4px;
        }

        .ar-back {
            display: block;
            text-decoration: none;
            color: inherit;
            margin-top: 20px;
        }

        .ar-back div {
            background-color: #fff;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
            border-radius: 12px;
        }

        @media (max-width: 600px) {
            .ar-results {
                grid-template-columns: 1fr;
            }

            .ar-form {
                padding: 14px;
            }

            .ar-field.grow,
            #ar-author-wrap {
                flex-basis: 100%;
            }

            .ar-pg-txt {
                display: none;
            }

            .ar-pg {
                min-width: 36px;
                height: 36px;
                padding: 0 8px;
            }
        }

        @media (prefers-reduced-motion: reduce) {

            .ar-deco {
                transition: none !important;
                transform: none !important;
            }

            .ar-card,
            .ar-thumb img,
            .ar-veil,
            .ar-play,
            .ar-dur,
            .ar-pg,
            .ar-btn,
            .ar-more>summary i {
                transition: none !important;
            }

            .ar-card:hover,
            .ar-card:focus-within {
                transform: none;
            }

            .ar-card:hover .ar-thumb img,
            .ar-card:focus-within .ar-thumb img {
                transform: none;
            }

.ar-skeleton .sk,
                .ar-skeleton .ar-thumb {
                    animation: none;
                }
            }

        /* ---------- SEO向けサーバーサイド描画（検索エンジン用） ---------- */
        .ar-seo-recent,
        .ar-seo-cats-sec {
            background: rgba(250, 250, 250, 0.9);
            color: #000;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 14px;
        }

        .ar-seo-recent h2,
        .ar-seo-cats-sec h2 {
            font-size: 1.05rem;
            color: var(--color-primary);
            margin: 0 0 6px;
        }

        .ar-seo-desc {
            margin: 0 0 10px;
            font-size: 0.85rem;
            color: #444;
        }

        .ar-seo-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 10px;
        }

        .ar-seo-list li {
            margin: 0;
        }

        .ar-seo-list a {
            display: flex;
            gap: 10px;
            align-items: center;
            text-decoration: none;
            color: #1a1a1a;
            padding: 8px;
            border-radius: 10px;
            background: #fff;
            transition: background 0.18s ease;
        }

        .ar-seo-list a:hover {
            background: #f6e8f0;
        }

        .ar-seo-thumb img {
            width: 96px;
            height: 54px;
            object-fit: cover;
            border-radius: 6px;
            display: block;
            background: #ddd;
        }

        .ar-seo-meta {
            display: block;
            min-width: 0;
            line-height: 1.45;
        }

        .ar-seo-title {
            display: block;
            font-weight: 700;
            font-size: 0.85rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .ar-seo-date,
        .ar-seo-cats {
            display: block;
            font-size: 0.72rem;
            color: #666;
        }

        .ar-seo-more {
            margin: 10px 0 0;
            font-size: 0.85rem;
            text-align: right;
        }

        .ar-seo-more a {
            color: var(--color-primary);
            font-weight: 700;
        }

        .ar-cat-links {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 4px 0 0;
        }

        .ar-cat-links a {
            padding: 6px 14px;
            border-radius: 999px;
            background: #fff;
            border: 1px solid rgba(177, 30, 124, 0.4);
            color: var(--color-primary);
            font-size: 0.85rem;
            font-weight: 700;
            text-decoration: none;
            transition: background 0.18s ease, color 0.18s ease;
        }

        .ar-cat-links a:hover {
            background: var(--color-primary);
            color: #fff;
        }
