/* ===== プロダクトヘッダー ロゴ ===== */
.pheader-logo-link {
    display: flex;
    align-items: center;
}
.pheader-logo {
    width: 180px;
    height: auto;
    display: block;
}
@media (min-width: 768px) {
    .pheader-logo {
        width: clamp(180px, 14vw, 260px);
    }
}

/* ===== ロゴバナー（ボタン下部の横長1枚） ===== */
.psingle-logo-banner {
    margin: 0 -16px;
    background: #0a0a0a;
    padding: 16px;
}

.psingle-logo-banner img {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .psingle-logo-banner {
        margin: 0;
        padding: clamp(8px, 1.1vw, 12px) clamp(20px, 4vw, 40px);
    }
    .psingle-logo-banner img {
        width: clamp(120px, 24vw, 300px);
        max-width: 100%;
        margin: 0 auto;
    }
}

/* ===== 施策バナースライダー ===== */
.psingle-banner-section {
    background: #111;
    margin: 0 -16px;
    padding: 24px 0 20px;
}

.psingle-banner-slider {
    position: relative;
}

.psingle-banner-stage {
    position: relative;
    overflow: hidden;
}

.psingle-banner-track {
    display: flex;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.psingle-banner-slide {
    flex: 0 0 76%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0.4;
    /* transition を持つとループジャンプ後に視野内スライドの opacity 変化が
       0.35s かけてちらつくため、すべて即時変更にする */
}

.psingle-banner-slide.is-active {
    opacity: 1;
}

.psingle-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psingle-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.psingle-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.psingle-banner-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.psingle-banner-arrow--prev { left: 6px; }
.psingle-banner-arrow--next { right: 6px; }

.psingle-banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0 16px;
}

.psingle-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.psingle-banner-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (min-width: 768px) {
    .psingle-banner-section {
        margin: 0;
        padding: 28px 0 24px;
    }
    .psingle-banner-stage {
        /* PC: 全幅を使って3枚見えるように */
        max-width: none;
        margin: 0 auto;
    }
    .psingle-banner-slide {
        /* 約3枚見える幅（左右に次のスライドがのぞく） */
        flex: 0 0 30%;
    }
    .psingle-banner-track {
        gap: 20px;
    }
}

/* ===== アコーディオン（MOVIE / 特徴 / 基本情報） ===== */
.psingle-accordions {
    margin: -83px -16px 0;
    background: linear-gradient(180deg, transparent 83px, #0a0a0a 83px);
    padding: 0 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 5;
}

.psingle-accordion {
    /* 個別ボーダーは不要（gap で分離） */
}

.psingle-accordion-btn {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 16px 20px;
    background: var(--theme1);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    /* iOS: <a> はリンク用フォント、<button> はフォーム用フォントになりがちなので統一 */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial,
        "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    letter-spacing: 0.1em;
    border: 2px solid var(--theme2);
    cursor: pointer;
    text-align: center;
    text-decoration: none;  /* <a>タグのアンダーラインをリセット */
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    margin: 0;              /* <a>タグのブラウザデフォルトマージンをリセット */
    transition: background 0.2s, opacity 0.2s;
}

.psingle-accordion-btn:hover {
    opacity: 0.85;
}

/* toB：ニューギン＠へ戻る */
.psingle-accordion-btn.psingle-newgin-at-btn {
    background: #39ad36;
    border-color: #39ad36;
}
.psingle-accordion-btn.psingle-newgin-at-btn:hover {
    opacity: 0.85;
}

.psingle-accordion-label {
    flex: 1;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}
.psingle-accordion-label-sub {
    font-size: 0.7em;
    opacity: 0.85;
}

.psingle-accordion-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: #fff;
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.psingle-accordion-btn[aria-expanded="true"] .psingle-accordion-arrow {
    transform: translateY(-50%) rotate(90deg);
}

/* ボタン背景画像あり */
.psingle-accordion-btn.has-bg {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #000;
    display: block;
}

.psingle-accordion-btn-bg {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.psingle-accordion-btn.has-bg .psingle-accordion-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.1em;
    pointer-events: none;
}

/* カミングスーン（公開日前） */
.psingle-accordion-btn.is-coming-soon,
.psingle-nav-link.is-coming-soon {
    cursor: default;
    pointer-events: none;
    background: #5a5a5a;
}

.psingle-accordion-btn.is-coming-soon.has-bg {
    background: #5a5a5a;
}

.psingle-accordion-btn.is-coming-soon.has-bg .psingle-accordion-btn-bg {
    opacity: 0;
}

.psingle-accordion-btn.is-coming-soon .psingle-accordion-label {
    opacity: 1;
    position: relative;
    z-index: 1;
    color: #d9d9d9;
}

.psingle-accordion-btn.is-coming-soon .psingle-accordion-arrow {
    opacity: 0;
}

.psingle-accordion-btn.is-coming-soon:hover,
.psingle-nav-link.is-coming-soon:hover {
    opacity: 1;
    background: #5a5a5a;
}

.psingle-coming-soon-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.psingle-coming-soon-overlay img {
    display: block;
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
}

.psingle-nav-link.is-coming-soon {
    position: relative;
    overflow: hidden;
    color: #d9d9d9;
}

.psingle-nav-link.is-coming-soon .psingle-nav-icon,
.psingle-nav-link.is-coming-soon .psingle-nav-label {
    opacity: 1;
    position: relative;
    z-index: 1;
    color: #d9d9d9;
}
.psingle-nav-link .psingle-coming-soon-overlay {
    display: none;
}

/* キラキラ用レイヤー（PC のみ表示・overflow でマスク） */
.psingle-accordion-btn-shine {
    display: none;
}

/* SP：にゅって展開アニメ（max-height方式） */
.psingle-accordion-body {
    background: #1a1a1a;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.28s ease,
                padding 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.psingle-accordion-body.is-open {
    max-height: 1200px;
    opacity: 1;
    padding: 16px;
}

@media (min-width: 768px) {
    .psingle-accordions {
        /* --band-h を起点に margin・padding を全て派生させて必ず一致させる */
        --band-h: clamp(58px, 8vw, 104px);
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: clamp(2px, 0.3vw, 6px);
        margin: calc(-1 * var(--band-h)) 0 0;
        padding: calc((var(--band-h) - clamp(30px, 4.8vw, 68px)) / 2) 0;
        background: transparent;
        position: relative;
        z-index: 10;
        justify-content: center;
        align-items: center;
        overflow: visible;
    }
    /* 半透明帯：アコーディオンと同じ高さで自動一致 */
    .psingle-accordions::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100%;
        background: var(--theme3, rgba(10, 55, 80, 0.78));
        pointer-events: none;
        z-index: -1;
    }
    .psingle-accordion {
        /* flex-basis を固定して <button>/<a> 混在でも全ボタン同幅に統一 */
        flex: 0 0 clamp(88px, 13vw, 200px);
        /* display: flex + align-items: stretch で子が <a> でも <button> でも確実に幅100%になる */
        display: flex;
        align-items: stretch;
        position: relative;
        z-index: 1;
        /* overflow: visible — ホバー scale が親に切られないように。キラキラのマスクは .psingle-accordion-btn-shine */
        overflow: visible;
    }
    /* カミングスーンは常に背面（隣のホバー浮き上がりに負けないよう親で制御） */
    .psingle-accordion:has(.is-coming-soon) {
        z-index: 0;
    }
    .psingle-accordion:not(:has(.is-coming-soon)):hover {
        z-index: 30;
    }
    /* モーダル展開中はバックドロップ(9050)より前面へ */
    .psingle-accordion:has(.psingle-accordion-body.is-open) {
        z-index: 9200;
    }
    /* デフォルトボタン（背景画像なし）*/
    .psingle-accordion-btn {
        flex: 1;            /* 親いっぱいに伸びる（<a>/<button> どちらでも確実） */
        width: 100%;
        height: clamp(30px, 4.8vw, 68px);
        padding: 0 clamp(10px, 2vw, 36px);
        font-size: clamp(10px, 1.3vw, 15px);
        min-width: 0;
        justify-content: center;
        /* ホバー scale はボタン本体に付けるため visible。キラキラは .psingle-accordion-btn-shine 内でマスク */
        overflow: visible;
        border-radius: 3px;
        transition: background 0.2s, opacity 0.2s,
                    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.22s ease;
    }
    /* シマー：角丸内にだけ表示（親ボタンは transform するのでマスクは子で行う） */
    .psingle-accordion-btn-shine {
        display: block;
        position: absolute;
        inset: 0;
        border-radius: 3px;
        overflow: hidden;
        pointer-events: none;
        z-index: 1;
    }
    .psingle-accordion-btn-shine::before {
        content: '';
        position: absolute;
        top: 0;
        left: -80%;
        width: 55%;
        height: 100%;
        background: linear-gradient(
            108deg,
            transparent 20%,
            rgba(255, 255, 255, 0.28) 50%,
            transparent 80%
        );
        animation: psingle-btn-sheen 3.6s ease-in-out infinite;
    }
    /* ホバー：浮き上がり＋拡大（カミングスーンは対象外） */
    .psingle-accordion-btn:not(.is-coming-soon):hover {
        opacity: 1;
        z-index: 4;
        transform: translateY(-5px) scale(1.08);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
    .psingle-accordion-btn.is-coming-soon {
        transform: none;
        box-shadow: none;
    }
    /* ＞矢印：PCでもSP同様に右側絶対配置 */
    .psingle-accordion-arrow {
        position: absolute;
        right: clamp(8px, 1vw, 16px);
        top: 50%;
        transform: translateY(-50%);
        font-size: clamp(10px, 1.2vw, 18px);
        line-height: 1;
        z-index: 2; /* シマーより前面 */
        transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .psingle-accordion-btn[aria-expanded="true"] .psingle-accordion-arrow {
        transform: translateY(-50%) rotate(90deg);
    }
    /* ホバー時に矢印を右へずらす */
    .psingle-accordion-btn:hover .psingle-accordion-arrow {
        transform: translateY(-50%) translateX(3px);
    }
    .psingle-accordion-btn[aria-expanded="true"]:hover .psingle-accordion-arrow {
        transform: translateY(-50%) translateX(3px) rotate(90deg);
    }
    .psingle-accordion-label {
        flex: none;
        text-align: left;
        position: relative; /* シマーの前面に出す */
        z-index: 2;
    }
    /* 背景画像あり：vwスケール（ホバー transform のため overflow は visible） */
    .psingle-accordion-btn.has-bg {
        height: clamp(30px, 4.8vw, 68px);
        width: clamp(112px, 17vw, 260px);
        overflow: visible;
    }
    .psingle-accordion-btn.has-bg .psingle-accordion-btn-bg {
        position: relative;
        z-index: 0;
    }
    .psingle-accordion-btn.has-bg .psingle-accordion-label {
        z-index: 2;
    }
    .psingle-accordion-btn.is-coming-soon.has-bg .psingle-accordion-label {
        justify-content: flex-start;
        padding-left: clamp(10px, 2vw, 20px);
        text-align: left;
    }
    .psingle-accordion-btn-bg {
        height: clamp(30px, 4.8vw, 68px);
        object-fit: cover;
        border-radius: 3px;
    }
    /* PC：fixed 画面中央モーダル */
    .psingle-accordion-body {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -44%);
        padding: 0;
        max-width: min(960px, 92vw);
        width: 92vw;
        max-height: 85vh;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        background: #1e1e1e;
        border-radius: 8px;
        box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8);
        right: auto;
    }
    /* 閉じている間は前面に置かない（z-index:9100 の透明 fixed がボタンより上だとホバーが死ぬ） */
    .psingle-accordion-body:not(.is-open) {
        z-index: 1;
    }
    .psingle-accordion-body.is-open {
        opacity: 1;
        pointer-events: auto;
        padding: 24px 28px;
        transform: translate(-50%, -50%);
        z-index: 9100;
    }
    /* MOVIEアコーディオン: 半透明背景 + 動画枠を白ボーダー */
    .psingle-accordion[data-section="movie"] .psingle-accordion-body {
        background: rgba(10, 10, 10, 0.82);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .psingle-accordion[data-section="movie"] .psingle-movie-thumb-wrap {
        border: 2px solid #fff;
    }
    /* バックドロップ */
    #psingle-acc-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9050;
        cursor: pointer;
    }
    #psingle-acc-backdrop.is-active {
        display: block;
    }
}

/* ===== MOVIEサムネイルグリッド（複数動画時のみ） ===== */
.psingle-movie-thumbs {
    /* 1本のみの場合はグリッドなし */
}
.psingle-movie-thumbs.has-multiple {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.psingle-movie-thumbs.has-multiple .psingle-movie-item {
    flex: 0 0 calc(50% - 6px); /* gap 12px の半分を引く */
    min-width: 140px;
}

.psingle-movie-item {
    cursor: pointer;
}

.psingle-movie-thumb-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.psingle-movie-thumb-wrap img,
.psingle-movie-thumb-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.psingle-movie-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.psingle-movie-item:hover .psingle-movie-play-btn {
    background: rgba(0, 0, 0, 0.4);
}

.psingle-movie-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.psingle-movie-item-title {
    margin: 8px 0 0;
    font-size: 13px;
    text-align: center;
    color: #ddd;
    line-height: 1.4;
}

@media (min-width: 600px) {
    .psingle-movie-thumbs.has-multiple {
        gap: 16px;
    }
    .psingle-movie-thumbs.has-multiple .psingle-movie-item {
        flex: 0 0 calc(50% - 8px); /* gap 16px の半分 */
    }
}

@media (min-width: 768px) {
    .psingle-movie-thumbs:not(.has-multiple) {
        max-width: 480px;
        margin: 0 auto;
    }
    /* PC モーダル内：サムネイルを固定幅で中央揃え */
    .psingle-movie-thumbs.has-multiple .psingle-movie-item {
        flex: 0 0 300px;
    }
}

@media (min-width: 1100px) {
    /* 3本以上の動画は3列で中央揃え */
    .psingle-movie-thumbs.has-multiple .psingle-movie-item {
        flex: 0 0 280px;
    }
}

/* ===== 動画ライトボックス ===== */
.psingle-video-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* is-open で display:flex → is-animating で視覚的に表示（2段階） */
.psingle-video-overlay.is-open {
    display: flex;
}

/* バックドロップ：フェードイン/アウト */
.psingle-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.psingle-video-overlay.is-animating .psingle-video-backdrop {
    opacity: 1;
}

/* 動画ボックス：スケール＋フェード */
.psingle-video-inner {
    position: relative;
    width: 92%;
    max-width: 800px;
    opacity: 0;
    transform: scale(0.78);
    transition: opacity 0.3s ease,
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.psingle-video-overlay.is-animating .psingle-video-inner {
    opacity: 1;
    transform: scale(1);
}

.psingle-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}

.psingle-video-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.psingle-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.psingle-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== 画像ライトボックスビューア ===== */
.psingle-viewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.92);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.psingle-viewer.is-open {
    display: flex;
}

.psingle-viewer-backdrop {
    display: none; /* 背景クリックはviewerルート要素で代替 */
}

.psingle-viewer-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 18px 16px 10px;
    flex-shrink: 0;
}

.psingle-viewer-close-wrap {
    flex-shrink: 0;
}

.psingle-viewer-close-wrap.is-anim {
    animation: psingle-viewer-close-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.psingle-viewer-close-wrap.is-anim .psingle-viewer-close {
    animation: psingle-viewer-close-pulse 2.2s ease-in-out 0.7s infinite;
}

.psingle-viewer-close {
    --psingle-viewer-close-accent: #20b8c8;
    --psingle-viewer-close-accent-rgb: 32, 184, 200;
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    background: #fff;
    color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(var(--psingle-viewer-close-accent-rgb), 0.45);
    transition:
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}

@keyframes psingle-viewer-close-enter {
    0% {
        transform: translateX(120px);
        opacity: 0;
    }
    65% {
        transform: translateX(-10px);
        opacity: 1;
    }
    85% {
        transform: translateX(4px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes psingle-viewer-close-pulse {
    0%, 100% {
        box-shadow:
            0 4px 14px rgba(0, 0, 0, 0.45),
            0 0 0 2px rgba(var(--psingle-viewer-close-accent-rgb), 0.45);
    }
    50% {
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.55),
            0 0 0 4px rgba(var(--psingle-viewer-close-accent-rgb), 0.65),
            0 0 18px rgba(var(--psingle-viewer-close-accent-rgb), 0.45);
    }
}

.psingle-viewer-close:hover {
    background: var(--psingle-viewer-close-accent);
    color: #fff;
    border-color: var(--psingle-viewer-close-accent);
    animation-play-state: paused;
    box-shadow: 0 6px 20px rgba(var(--psingle-viewer-close-accent-rgb), 0.5);
}

.psingle-viewer-close:active {
    filter: brightness(0.92);
}

.psingle-viewer-close-label {
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .psingle-viewer-close-wrap.is-anim,
    .psingle-viewer-close-wrap.is-anim .psingle-viewer-close {
        animation: none;
    }
}

.psingle-viewer-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.psingle-viewer-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    perspective: 1400px;
    perspective-origin: center center;
}
.psingle-viewer-img-wrap.is-dragging {
    cursor: grabbing;
}
.psingle-viewer-img-wrap.psingle-viewer-img-wrap--page-turn {
    /* めくり中は紙の影を少し強める */
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}
.psingle-viewer-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    user-select: none;
    pointer-events: none;
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    will-change: transform, opacity;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .psingle-viewer-img-wrap {
        perspective: none;
    }
    .psingle-viewer-img {
        transform-style: flat;
        transition-duration: 0.01ms;
    }
}

.psingle-viewer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    flex-shrink: 0;
    touch-action: manipulation;
}

.psingle-viewer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--theme1);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, filter 0.2s;
    flex-shrink: 0;
}

.psingle-viewer-btn:hover  { filter: brightness(0.88); }
.psingle-viewer-btn:active { transform: scale(0.92); }

.psingle-viewer-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* サムネイル一覧（最下部） */
.psingle-viewer-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px calc(50% - 32px);
    overflow-x: auto;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
}

.psingle-viewer-thumbs::-webkit-scrollbar { display: none; }

.psingle-viewer-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border: 2px solid transparent;
    border-radius: 2px;
    overflow: hidden;
    padding: 0;
    background: #333;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.psingle-viewer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psingle-viewer-thumb.is-active {
    border-color: var(--theme1);
    opacity: 1;
}

.psingle-viewer-thumb:hover {
    opacity: 0.85;
}

/* ===== P機種閲覧時：フッターのSPメニューを非表示 ===== */
/* P機種閲覧時：フッターのSPメニューを非表示 */
nav.sp_menu.sp {
    display: none !important;
}

/* ===== フッター（プロダクト専用） ===== */
.footer--products {
    background: #0a0a0a;
    padding: 28px 16px;
    text-align: center;
}

.footer--products .footer_sns h2 {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    margin: 0 0 16px;
    line-height: 1.5;
}

.footer--products .f_sns_links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer--products .f_sns_links a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    transition: opacity 0.2s;
    line-height: 1;
}

.footer--products .f_sns_links a:hover {
    opacity: 1;
}

.footer--products .f_sns_links svg {
    width: 24px;
    height: 24px;
    display: block;
    color: #fff;
}

.footer-copyright {
    margin-top: 28px;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-copyright__logo {
    height: 56px;
    width: auto;
    display: block;
}

.footer-copyright__text {
    margin: 0;
    font-size: 10px;
    color: #fff;
    letter-spacing: 0.06em;
}

/* P機種閲覧時：ヘッダーのSPスタイル上書き */
@media screen and (max-width: 768px) {
    .header_top_sp {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 35px;
        background-color: #f00;
    }
    .header_top_sp > a {
        display: flex;
        align-items: center;
    }
    .h_logo_sp {
        margin: 0;
        height: 22px;
    }
}

/* アーカイブ全体 */
.pmachine-archive {
    padding: 0 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f3f3f3;
}

.pmachine-page-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 -16px 24px;
    padding: 18px 20px;
    text-align: center;
    background: #333;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .pmachine-archive {
        padding: 0 24px 24px;
    }
    .pmachine-page-title {
        margin-left: -24px;
        margin-right: -24px;
    }
}

/* フィルター・ソート */
.pmachine-filters {
    margin-bottom: 28px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.filter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.filter-section--intro {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 480px) {
    .filter-section--intro {
        flex-direction: column;
        align-items: center;
    }
    .filter-intro-wrap {
        width: 100%;
        max-width: 100%;
    }
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.filter-intro-wrap {
    display: inline-flex;
    min-width: 150px;
    flex: 1;
    max-width: 200px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease;
}
.filter-tab:active {
    transform: scale(0.94) translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.filter-tabs .filter-tab:first-child,
.filter-tabs .filter-tab:last-child {
    border-radius: 0;
}

.filter-tab.is-active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.filter-tab:not(.is-active):hover {
    background: #f5f5f5;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease;
}
.filter-btn:active {
    transform: scale(0.94) translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.filter-btn.is-active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.filter-btn:not(.is-active):hover {
    background: #f5f5f5;
}

/* style.css の select 汎用スタイルを上書き（height:30px等で文字切れするため） */
.filter-select {
    width: 100% !important;
    min-width: 130px;
    max-width: none !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 10px 32px 10px 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.pmachine-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 20px;
    padding-top: 8px;
}

/* フィルター切替時のトランジション */
.pmachine-archive--transitioning .pmachine-grid {
    opacity: 0;
    transform: scale(0.98) translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pmachine-archive--transitioning .pmachine-grid .pmachine-card {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .pmachine-archive--transitioning .pmachine-grid {
        transition-duration: 0.01ms;
    }
    .filter-tab:active,
    .filter-btn:active,
    .psingle-content-btn:active,
    .psingle-list-btn:active,
    .btn-main:active,
    .btn-sub:active,
    .psingle-spec-actions .btn-main:active,
    .psingle-spec-actions .btn-sub:active,
    .psingle-nav-link:active,
    .psingle-nav-list button.psingle-nav-link:active,
    .psingle-hamburger:active {
        transform: none;
    }
}

/* カードグリッド */
.pmachine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
    .pmachine-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 28px;
    }
}

/* カード */
.pmachine-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 機種リスト登場アニメーション（にゅっと表示） */
@keyframes pmachine-card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pmachine-grid .pmachine-card {
    animation: pmachine-card-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.pmachine-grid .pmachine-card:nth-child(1) { animation-delay: 0.05s; }
.pmachine-grid .pmachine-card:nth-child(2) { animation-delay: 0.1s; }
.pmachine-grid .pmachine-card:nth-child(3) { animation-delay: 0.15s; }
.pmachine-grid .pmachine-card:nth-child(4) { animation-delay: 0.2s; }
.pmachine-grid .pmachine-card:nth-child(5) { animation-delay: 0.25s; }
.pmachine-grid .pmachine-card:nth-child(6) { animation-delay: 0.3s; }
.pmachine-grid .pmachine-card:nth-child(7) { animation-delay: 0.35s; }
.pmachine-grid .pmachine-card:nth-child(8) { animation-delay: 0.4s; }
.pmachine-grid .pmachine-card:nth-child(9) { animation-delay: 0.45s; }
.pmachine-grid .pmachine-card:nth-child(10) { animation-delay: 0.5s; }
.pmachine-grid .pmachine-card:nth-child(11) { animation-delay: 0.55s; }
.pmachine-grid .pmachine-card:nth-child(12) { animation-delay: 0.6s; }
.pmachine-grid .pmachine-card:nth-child(13) { animation-delay: 0.65s; }
.pmachine-grid .pmachine-card:nth-child(14) { animation-delay: 0.7s; }
.pmachine-grid .pmachine-card:nth-child(15) { animation-delay: 0.75s; }
.pmachine-grid .pmachine-card:nth-child(n+16) { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
    .pmachine-grid .pmachine-card {
        animation: none;
    }
}

/* カードヘッダー（導入日・種別：機種名の下・左詰めで横並び） */
.pmachine-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
    width: 100%;
}

/* サムネイル（画像エリア） */
.pmachine-thumb {
    overflow: hidden;
}

.pmachine-thumb img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

/* 導入日バッジ（カードヘッダー左） */
.badge-date {
    background: #004bff;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 0;
}

/* 機種タイプバッジ（色分け） */
.badge-type {
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    border-radius: 0;
}
.badge-type--slot {
    background: #00a968;
}
.badge-type--pachinko {
    background: #e60012;
}

/* カード本文 */
.pmachine-body {
    padding: 15px;
}

.pmachine-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

/* メインボタン：機種サイト */
.btn-main {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 0;
    margin-top: 8px;
    text-decoration: none;
    color: #ffffff;
    background: #ff0000;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
}
.btn-main:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-main:hover {
    background: #cc0000;
}

/* ボタングループ */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-sub {
    flex: 1;
    text-align: center;
    background: #eee;
    padding: 8px;
    border-radius: 0;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
}
.btn-sub:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-sub:hover {
    background: #e0e0e0;
}

.btn-sub.btn-store-list {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* 店舗リスト 地域選択オーバーレイ */
.store-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.store-search-overlay.is-open {
    display: flex;
}

.store-search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.store-search-overlay-inner {
    position: relative;
    background: #fff;
    padding: 24px;
    max-width: 360px;
    width: 90%;
}

.store-search-overlay-inner h3 {
    margin: 0 0 16px;
    font-size: 1.125rem;
}

.store-search-overlay-inner .filter-select {
    width: 100%;
    margin-bottom: 16px;
}

.store-search-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== single-products シングルページ（SANKYO風） ===== */
/* スクロールバー出現時の横ずれ防止（イントロ終了後など） */
html:has(body.single-products),
html:has(body.singular[class*="products"]) {
    scrollbar-gutter: stable;
}

html.psingle-scroll-lock {
    overflow: hidden;
}

/* 画像はみ出し防止 */
body.single-products,
body.singular[class*="products"] {
    overflow-x: hidden;
    background: #0a0a0a;
}

.psingle {
    --theme1: #c00000;
    --theme2: #e08000;
    position: relative;
    padding: 0 16px 0px;
    max-width: 900px;
    margin: 0 auto;
    background: #0a0a0a;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.psingle-header {
    /* position: absolute → 通常フローの帯レイアウトに変更 */
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* SP: psingle の padding: 0 16px を打ち消して全幅に */
    margin: 0 -16px;
    padding: 10px 12px;
    background: #4a7fa8; /* ニューギングループ帯カラー */
    z-index: auto;
}
.psingle-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* 機種一覧に戻るボタン */
.psingle-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    color: #4a7fa8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}
.psingle-list-btn:active {
    transform: scale(0.94) translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.psingle-list-btn:hover {
    opacity: 0.85;
    color: #4a7fa8;
}
/* .psingle-list-btn-icon は削除済み（アイコンなしに変更） */

/* メイン画像：コンテンツ幅100％（はみ出し防止） */
.psingle-mainvisual {
    position: relative;
    margin: 0 -16px 0;
    overflow: hidden;
    /* background: #f5f5f5; */
}

.psingle-mainvisual picture {
    display: block;
}
.psingle-mainvisual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

/* 導入日（アコーディオンボタン下の独立セクション） */
.psingle-release-bar {
    background: #0a0a0a;
    margin: 0 -16px;
    padding: 14px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .psingle-release-bar {
        margin: 0;
        padding: 16px 20px 18px;
    }
}

.psingle-badge-date {
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 600;
    color: #f00;
}

/* 好評稼動中！（導入日が過去のとき・ふわふわアニメ） */
.psingle-badge-status {
    margin: 0;
    padding: 6px 18px;
    font-size: 1em;
    font-weight: 700;
    color: #f00;
    border: 2px solid #f00;
    border-radius: 999px;
}
.psingle-badge-status--fuwafuwa {
    animation: psingle-fuwafuwa 2.5s ease-in-out infinite;
}
@keyframes psingle-fuwafuwa {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-4px); opacity: 0.9; }
}

/* 大見出し（スペック全体） */
.psingle-section-title {
    background: #f00;
    color: #fff;
    padding: 18px 20px;
    margin: 0 -16px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* コンテンツセクション */
.psingle-contents {
    background: #fff;
}
/* コンテンツ・最新情報の青い帯（SANKYO風：分かりやすい） */
.psingle-content-band {
    background: #f00;
    color: #fff;
    padding: 14px 20px;
    margin: 0 -16px 16px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .psingle-content-band {
        margin-left: 0;
        margin-right: 0;
    }
}

/* スペック表：文字サイズ・行間を統一 */
.psingle-spec {
    font-size: 14px;
    line-height: 1.6;
}
.psingle-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.psingle-spec-table th,
.psingle-spec-table td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: top;
}

.psingle-spec-table th {
    background: #f00;
    color: #fff;
    width: 35%;
    font-weight: 600;
    font-size: 14px;
}

.psingle-spec-table td {
    background: #fff;
}
.psingle-spec-table td small {
    font-size: 13px;
    line-height: inherit;
}
.psingle-spec-table thead th {
    font-size: 14px;
}

/* 中見出し（配当表・リール配列・筐体画像など） */
.psingle-subtitle {
    background: #333;
    color: #fff;
    padding: 12px 16px;
    margin: 24px 0 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    border-left: 4px solid #f00;
}

.psingle-reel,
.psingle-payout,
.psingle-furiwake,
.psingle-cabinet {
    overflow: hidden;
    max-width: 100%;
}

.psingle-reel img,
.psingle-payout img,
.psingle-furiwake img,
.psingle-furiwake-img,
.psingle-cabinet img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* スペック専用ページ */
/* スペックページ：黒帯＋赤帯を画面幅いっぱいに連結 */
.psingle-spec-head {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.psingle-spec-head .psingle-header {
    margin: 0;
}
.psingle-spec-head .psingle-section-title {
    margin: 0 0 24px;
}
.psingle-spec-page .psingle-spec {
    margin-top: 0;
}
.psingle-spec-badge {
    font-size: 0.75em;
    font-weight: 500;
    opacity: 0.9;
}
.psingle-spec-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    align-items: center;
}
.psingle-spec-actions .btn-main,
.psingle-spec-actions .btn-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 14px;
    line-height: 1.4;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid transparent;
    margin: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease;
}
.psingle-spec-actions .btn-main:active,
.psingle-spec-actions .btn-sub:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}
.psingle-spec-actions .btn-main {
    background: #f00;
    color: #fff;
    border-color: #f00;
}
.psingle-spec-actions .btn-main:hover {
    background: #c00;
    border-color: #c00;
    color: #fff;
}
.psingle-spec-actions .btn-sub {
    background: #eee;
    color: #333;
    border-color: #ccc;
}
.psingle-spec-actions .btn-sub:hover {
    background: #e0e0e0;
}

/* 表の終わりの後：※書き（脚注） */
.psingle-spec-notes {
    margin-top: 20px;
    padding: 16px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

/* コンテンツセクション（SANKYO風：上位層・メインビジュアル直下） */
.psingle-contents {
    margin-bottom: 0;
}

.psingle-contents .psingle-content-band {
    margin-bottom: 16px;
}

.psingle-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    min-height: 0;
}

/* 四角い角丸ボタン（SANKYO風・アイコン付き） */
.psingle-content-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.psingle-content-btn:active {
    transform: scale(0.94) translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.psingle-content-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #0066c0;
}

.psingle-content-icon-svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: block;
}

.psingle-content-btn .content-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.psingle-content-btn .content-label-sub {
    font-size: 11px;
}

.psingle-content-btn:hover {
    background: #fff5f5;
    border-color: #f00;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.1);
}

.psingle-content-btn.btn-store-list {
    border: 1px solid #ddd;
    cursor: pointer;
    font-family: inherit;
}

/* 更新履歴セクション（ACF無料版・テキストエリア形式） */
.psingle-update-history {
    margin-top: 32px;
}

.psingle-update-history .psingle-content-band {
    margin-bottom: 12px;
}

.psingle-update-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.psingle-update-history-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    line-height: 1.6;
}

.psingle-update-history-list li:last-child {
    border-bottom: none;
}

.psingle-update-history-list .update-date {
    display: block;
    margin-bottom: 4px;
    color: #666;
    font-weight: 600;
}

/* 更新履歴・最新情報：アコーディオン（デフォルト3件、にょきっと開閉） */
.psingle-accordion-extra-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}
.psingle-accordion-block.is-expanded .psingle-accordion-extra-wrap {
    grid-template-rows: 1fr;
}
.psingle-accordion-extra-wrap > ul {
    overflow: hidden;
    min-height: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.psingle-accordion-extra-inner li {
    border-bottom: 1px solid #eee;
}
.psingle-accordion-extra-inner li:last-child {
    border-bottom: none;
}
.psingle-accordion-actions {
    margin: 16px 0 0;
    text-align: center;
}
.psingle-accordion-toggle {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
}
.psingle-accordion-toggle:hover {
    background: #eee;
}
.psingle-accordion-toggle:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.psingle-update-history-list .update-text a {
    display: inline; /* リンク直後の意図しない改行を防止（テーマの block 指定を上書き） */
    font-size: 12px; /* 本文と同じサイズに統一 */
    color: #f00;
    text-decoration: underline;
}

.psingle-update-history-list .update-text a:hover {
    text-decoration: none;
}

/* 更新履歴内の「設置店検索」→ モーダルを開くボタン（リンク風） */
.psingle-update-history-list .update-history-store-btn {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 12px; /* 本文と同じサイズに統一 */
    color: #f00;
    text-decoration: underline;
    cursor: pointer;
}
.psingle-update-history-list .update-history-store-btn:hover {
    text-decoration: none;
}

/* 最新情報セクション（SANKYO風：青い帯＋日付付きリスト） */
.psingle-news {
    margin-top: 32px;
}

.psingle-news .psingle-content-band {
    margin-bottom: 12px;
}

.psingle-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.psingle-news-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.6;
}

.psingle-news-list li:last-child {
    border-bottom: none;
}

.psingle-news-list .news-date {
    display: block;
    margin-bottom: 4px;
    color: #666;
    font-weight: 600;
}

.psingle-news-list .news-text a {
    color: #f00;
    text-decoration: underline;
}

.psingle-news-list .news-text a:hover {
    text-decoration: none;
}

/* スペックセクション（下層：コンテンツより下、スクロールで到達） */
.psingle-spec {
    margin: 40px -16px 0;
    padding: 32px 16px 24px;
    border-top: 2px solid #e0e0e0;
    background: #fafafa;
    overflow: hidden;
}

.psingle-spec .psingle-section-title {
    margin: 0 -16px 24px;
}

/* 動画ページ（スペシャルムービー・複数対応） */
.psingle-movie {
    margin-bottom: 24px;
}
.psingle-movie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.psingle-movie-item {
    width: 100%;
}
.psingle-movie-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.psingle-movie-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.psingle-movie-empty {
    padding: 32px 0;
    text-align: center;
    color: #666;
}

@media (min-width: 768px) {
    .psingle {
        max-width: none;
        padding: 0 0 56px;
    }
    .psingle-header {
        /* PC: psingle に padding がないので margin リセット */
        margin: 0;
        padding: 12px 20px;
    }
    .psingle-mainvisual {
        margin: 0;
        overflow: visible;
    }
    .psingle-content-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .psingle-content-btn,
    .psingle-content-btn .content-label {
        font-size: 15px;
    }
    .psingle-content-btn .content-label-sub {
        font-size: 12px;
    }
    .psingle-section-title {
        margin-left: 0;
        margin-right: 0;
        padding-left: 40px;
        padding-right: 40px;
    }
    .psingle-spec {
        margin: 48px 0 0;
        padding: 40px 40px 32px;
    }
    .psingle-spec .psingle-section-title {
        margin-left: -40px;
        margin-right: -40px;
        padding-left: 40px;
        padding-right: 40px;
    }
    .psingle-movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .psingle-movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .psingle-movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* ハンバーガーボタン */
.psingle-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.psingle-hamburger:active {
    transform: scale(0.9);
}
.psingle-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #4a7fa8;
}
.psingle-hamburger:hover span {
    background: #3a6a90;
}

/* ハンバーガーメニュー（右からスライドアニメ） */
.psingle-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.psingle-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s;
}
.psingle-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.psingle-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    height: 100%;
    background: #181818;
    box-shadow: -4px 0 40px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}
/* 左側のテーマカラー縦ライン */
.psingle-nav-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--theme1) 0%, var(--theme2) 100%);
    z-index: 1;
}
.psingle-nav-overlay.is-open .psingle-nav-panel {
    transform: translateX(0);
}

/* ×閉じるボタン */
.psingle-nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.psingle-nav-close:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* ナビリスト */
.psingle-nav-list {
    list-style: none;
    margin: 0;
    padding: 64px 0 0 5px;
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
.psingle-nav-list li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    min-width: 0;
}
.psingle-nav-link,
.psingle-nav-list button.psingle-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 18px 20px;
    text-align: left;
    text-decoration: none;
    color: #ddd;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.02em;
}
.psingle-nav-link:active,
.psingle-nav-list button.psingle-nav-link:active {
    background: rgba(255,255,255,0.05);
}
.psingle-nav-link--primary {
    color: #fff;
}
.psingle-nav-link--primary .psingle-nav-icon {
    color: var(--theme1);
}
.psingle-nav-link.psingle-newgin-at-btn .psingle-nav-icon {
    color: #39ad36;
}
.psingle-nav-link--external {
    color: #fff;
}
.psingle-nav-link--external .psingle-nav-icon {
    color: var(--theme1);
}
.psingle-nav-link:hover,
.psingle-nav-list button.psingle-nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.psingle-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: #888;
}
/* インライン SVG のサイズ（クラス指定不要で統一） */
.psingle-nav-icon svg,
.psingle-nav-icon-svg {
    width: 22px;
    height: 22px;
    display: block;
}
.psingle-nav-label {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* 下部固定フッター：機種一覧に戻る */
.psingle-nav-footer {
    flex-shrink: 0;
    min-width: 0;
    overflow-x: hidden;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0 0 0 5px;
}
.psingle-nav-back {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--theme1);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}
.psingle-nav-back:hover {
    background: rgba(255,255,255,0.05);
}
.psingle-nav-back-arrow {
    font-size: 16px;
    line-height: 1;
}

/* パンくず（SANKYO風：下部・はみ出し前に改行） */
.psingle-breadcrumb {
    /* margin-top: 32px; */
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.6;
    /* background: rgba(255, 0, 0, 0.08); */
    margin-left: -16px;
    margin-right: -16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    overflow-wrap: break-word;
    overflow-wrap: break-word;
}
.psingle--tob .psingle-breadcrumb {
    display: none;
}
.psingle-breadcrumb a,
.psingle-breadcrumb .sep,
.psingle-breadcrumb .current {
    font-size: 12px;
}
.psingle-breadcrumb a {
    color: #f00;
    text-decoration: underline;
    min-width: 0;
    overflow-wrap: break-word;
}
.psingle-breadcrumb a:hover {
    text-decoration: none;
}
.psingle-breadcrumb .sep {
    margin: 0 6px;
    color: #666;
}
.psingle-breadcrumb .current {
    color: #c9c9c9;
    min-width: 0;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .psingle-breadcrumb {
        margin-left: 0;
        margin-right: 0;
        padding-left: 40px;
        padding-right: 40px;
        justify-content: center;
    }
}

/* toB：©直下の ECサイトに戻るボタン */
.psingle-tob-ec-return {
    margin: 0 -16px;
    padding: 12px 16px 16px;
    background: #0a0a0a;
    text-align: center;
}
.psingle-copyright + .psingle-tob-ec-return {
    padding-top: 4px;
}
.psingle-copyright:has(+ .psingle-tob-ec-return) {
    padding-bottom: 8px;
}
.psingle-tob-ec-btn {
    display: inline-block;
    max-width: min(320px, 88%);
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s ease;
}
.psingle-tob-ec-btn:hover {
    opacity: 0.92;
    transform: scale(1.02);
}
.psingle-tob-ec-btn:active {
    transform: scale(0.98);
}
.psingle-tob-ec-btn img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    .psingle-tob-ec-return {
        margin: 0;
        padding: 0 24px 20px;
    }
    .psingle-tob-ec-btn {
        max-width: 360px;
    }
}

/* toB：素材・機種一覧ボタン（ACF 画像を横並び） */
.psingle-tob-actions {
    margin: 0 -16px;
    padding: 20px 12px 8px;
    background: #0a0a0a;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.psingle-tob-btn {
    flex: 1 1 calc(50% - 8px);
    max-width: min(280px, calc(50% - 5px));
    display: block;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s ease;
}
.psingle-tob-btn:hover {
    opacity: 0.92;
    transform: scale(1.02);
}
.psingle-tob-btn:active {
    transform: scale(0.98);
}
.psingle-tob-btn--static {
    cursor: default;
}
.psingle-tob-btn--static:hover,
.psingle-tob-btn--static:active {
    opacity: 1;
    transform: none;
}
.psingle-tob-btn img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

@media (min-width: 768px) {
    .psingle-tob-actions {
        margin: 0;
        padding: 28px 40px 12px;
        gap: 16px;
    }
    .psingle-tob-btn {
        flex: 0 1 320px;
        max-width: 360px;
    }
}

/* 権利表記（コンテンツボタン直下・黒エリア） */
.psingle-copyright {
    margin: 0 -16px;
    padding: 12px 16px 16px;
    background: #0a0a0a;
    text-align: center;
    font-size: 11px;
    line-height: 1.8;
    color: #fff;
}
.psingle-copyright img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .psingle-copyright {
        margin: 0;
        padding: 16px 24px 20px;
        font-size: 12px;
    }
    .psingle-copyright img {
        max-width: 400px;
    }
}

/* ===== イントロ演出 ===== */
.psingle-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.psingle-intro.is-fadeout {
    opacity: 0;
}
.psingle-intro-inner {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.psingle-intro-inner.is-visible {
    opacity: 1;
}
.psingle-intro-logo {
    max-width: 60vw;
    max-height: 40vh;
    width: auto;
    height: auto;
    display: block;
}


/* ===== ボタンシマーアニメーション（PC） ===== */
@keyframes psingle-btn-sheen {
    0%        { left: -80%; }
    /* 0〜22% で左→右にスイープ、残り時間は停止（3.6s * 0.22 ≈ 0.8s でスイープ） */
    22%       { left: 120%; }
    100%      { left: 120%; }
}
