@import url(https://fonts.googleapis.com/earlyaccess/roundedmplus1c.css);

/* =====================================================
   CSS変数定義 
   ===================================================== */
:root {
    --ui-bg: #fdf7fa;
    --ui-card: #ffffff;
    --ui-text: #3a3a3a;
    --ui-sub: #6c6b6b;
    --accent: #ff9ac8;
    --hot: #ff6b9c;
    --radius: 18px;
    --shadow: 0 6px 20px rgba(0,0,0,.08);
    --stage-width: 1080px;
}

/* パターン切り替え時のちらつき防止 */
.logo_title,
.header-sp-title {
    visibility: hidden;
}
.pattern-ready .logo_title,
.pattern-ready .header-sp-title {
    visibility: visible;
}

/* =====================================================
   共通ユーティリティクラス
   ===================================================== */
.hidden {
    display: none !important;
}

.only_sp {
    display: none;
}

.only_pc {
    display: inline;
}

/* =====================================================
   PC (1200px以上) - ベーススタイル
   ===================================================== */
body {
    font-family: 'Rounded Mplus 1c', system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", Helvetica, Arial, sans-serif;
    margin: 0px;
    color: var(--ui-text);
    background: url("../images/haikei_pc.png") center bottom 95px / cover no-repeat;
    min-height: 100vh;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.app.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.app.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* ページ遷移用オーバーレイ */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #fff9fb 0%, #fff5f8 50%, #fdf7fa 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ページ読み込み時の初期状態 */
.app.page-entering {
    opacity: 0;
    transform: scale(1.02);
}

.app.page-entered {
    opacity: 1;
    transform: scale(1);
}

header {
    width: 1020px;
    display: flex;
    justify-content: left;
    margin: 10px auto 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ブランドロゴ */
.brand-logo {
    height: 36px;
    width: auto;
}

/* SP用ヘッダータイトル画像（サブページ用） */
.header-sp-title {
    display: none;
}

.brand .dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: conic-gradient(from 30deg, rgb(76, 201, 240), rgb(123, 255, 178), rgb(255, 209, 102), rgb(255, 107, 107), rgb(76, 201, 240));
}

.brand h1 {
    margin: 0px;
    font-size: 16px;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.hero {
    max-width: 1080px;
    margin: 0 auto;
}

.hero img {
    display: block;
    width: 55%;
    height: auto;
    margin: 0px auto 20px;
}

.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    --b: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: var(--b);
    color: var(--ui-text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
    transition: 0.18s;
    text-decoration: none;
}

.btn.small {
    padding: 0.36rem 0.6rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.btn.accent {
    background: var(--accent);
    color: rgb(255, 255, 255);
    border-color: var(--hot);
}

main {
    /* padding: 12px; */
    display: grid;
    gap: 12px;
    justify-content: center;
}

.content-row {
    display: flex;
    gap: 25px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
}

.left-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-width: 680px;
    background: rgb(255, 255, 255);
    border-radius: 10px;
    padding: 20px;
    align-items: stretch;
    height: 460px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: none;
    background: rgb(255, 255, 255);
    display: grid;
    place-items: center;
    border: none;
    max-width: 1080px;
    width: 100%;
    flex: 1 1 0%;
}

.scene {
    position: absolute;
    inset: 0px;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.45s, transform 0.45s;
    background: transparent;
}

.scene.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.scene .scene-inner {
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 1600px;
    margin: auto;
}

.scene img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.overlay {
    position: absolute;
    inset: 0px;
    pointer-events: none;
}

/* タイトルカード（HOME等の表示）- 非表示 */
.titleCard {
    display: none;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.hotspot .pulse {
    width: 28px;
    height: 28px;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgb(255, 74, 74);
    box-shadow: rgba(255, 74, 74, 0.45) 0px 0px 10px 4px;
    animation: 2s ease 0s infinite normal none running pulse;
}

.hotspot .label {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: rgb(255, 255, 255);
    padding: 0.25rem 0.45rem;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.scene[data-id="home"] .hotspot:not(.nav) {
    display: none !important;
    pointer-events: none !important;
}

.scene:not(.active) .hotspot {
    pointer-events: none !important;
}

.hotspot.nav.highlight-room .pulse {
    background-color: rgba(255, 0, 0, 0.45);
    border-color: rgb(255, 0, 0);
    box-shadow: rgba(255, 0, 0, 0.7) 0px 0px 0px 0px;
    animation: 1.2s ease 0s infinite normal none running pulse;
}

.picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chip.active {
    background: rgba(76, 201, 240, 0.12);
    border-color: rgba(76, 201, 240, 0.3);
}

.modal-backdrop {
    position: fixed;
    inset: 0px;
    background: rgba(2, 5, 12, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1400;
}

.modal-backdrop.show {
    display: flex;
    animation: 0.18s ease 0s 1 normal none running fadeIn;
}

.modal {
    width: min(780px, 92vw);
    max-height: 91vh;
    background: var(--ui-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* border-radius: 16px; */
    box-shadow: var(--shadow);
    display: grid;
    /* overflow: visible; */
    position: relative;
    padding: 10px 40px 30px 20px;
    align-items: center;
    grid-template-columns: 400px 1fr;
}

.modal .body {
    display: grid;
    gap: 10px;
    /* padding: 0px 0px 0px 17px; */
}

.modal h2 {
    margin: 2rem 0px;
    font-size: 28px;
    font-weight: 700;
    color: var(--ui-text);
}
#modalTitle br {
    display: none;
}

/* =====================================================
   「詳しくはこちら」のモーダル（campaign_detail.html）スタイル
     - PCとSPで共通のスタイルをここにまとめる
   ===================================================== */
.campaign-modal-content {
    text-align: left;
    max-width: 775px;
    margin: auto;
}
.campaign-modal-content img{
    max-width: 100%;
    height: auto;
}
.campaign-modal-content h2 {
    max-width: 645px;
    margin: 0 auto 32px;
}
.detail-section {
    background: #fff;
    border: 1px solid #D9D9D9;
    padding: 24px 50px;
    margin-bottom: 20px;
}
.detail-section .img-ttl{
    max-width: 412px;
    margin: 0 auto 22px;
    position: relative;
}
.detail-section .img-ttl::after{
    content: "";
    display: block;
    position: absolute;
    width: 122px;
    height: 174px;
    top: -25px;
    right: -123px;
    background: url(../images/dasken3.png) no-repeat center / contain;
}
.detail-section .pc-flex-wrap.reverse{
    flex-direction: row-reverse;
    max-width: 530px;
    margin: 0 auto;
    gap: 30px;
}
.detail-section .pc-flex-wrap.reverse .img-wrap{
    width: 218px;
    max-width: 218px;
}
.detail-section .pc-flex-wrap{
    display: flex;
    gap: 20px;
    font-size: 18px;
    line-height: 1.55;
}
.detail-section h3 {
    font-size: 24px;
    margin: 0 auto 24px auto;
    border-bottom: 1px solid #D9D9D9;
    padding-bottom: 8px;
    color: #333;
    text-align: center;
}
.step-list .step-wrap{
    background-color: #FFF1EE;
    border-radius: 16px;
    padding: 20px;
}
.step-list .step-wrap + .step-wrap{
    margin-top: 24px;
}
.step-list .step-wrap .step-ttl{
    border: 2px solid #E5014F;
    background: #F7CFD8;
    color: #E5014F;
    font-size: 18px;
    text-align: center;
    width: 96px;
    line-height: 28px;
    border-radius: 18px;
    margin: 0 auto 20px;
}
.step-list .step-wrap .pc-flex-wrap + .pc-flex-wrap{
    padding-top: 52px;
}
.step-list .step-wrap .pc-flex-wrap + .pc-flex-wrap .img-wrap{
    position: relative;
}
.step-list .step-wrap .pc-flex-wrap + .pc-flex-wrap .img-wrap::after{
    content: "";
    display: block;
    position: absolute;
    width: 40px;
    height: 12px;
    background: url(../images/arrow_btm.svg) no-repeat center / contain;
    top: -34px;
    left: calc(50% - 20px);
}
.step-list .step-wrap .pc-flex-wrap .img-wrap{
    max-width: 317px;
    width: calc(100% - 316px);
}
.step-list .step-wrap .pc-flex-wrap .txt-wrap{
    max-width: 296px;
    width: 296px;
    min-width: 280px;
}
.step-list .step-wrap .note{
    font-size: 14px;
    margin-top: 8px;
}

.note-section {
    text-align: center;
    color: #666;
    text-shadow: 1px 1px #ffffff;
    margin-top: 10px;
}

.modal p {
    margin: 0.1rem 0px;
    color: var(--ui-sub);
    line-height: 1.6;
    font-size: 18px;
}

.modal .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 30px;
    width: 100%;
}

.modal .btn-img {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-size: 0;
    line-height: 0;
    width: 100%;
}

.modal .btn-img:hover {
    opacity: 0.8;
}

.modal .btn-img picture {
    display: block;
}

.modal .btn-img img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

.modal .cta2-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.modal .cta2-wrapper .hokori-badge {
    align-self: flex-end;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgb(51, 51, 51);
    border: none;
    font-size: 24px;
    z-index: 101;
    box-shadow: none;
}

#modalGiftClose{
    background:#ffffff;
    border:2px solid #333;
    padding: 3px 0 5px 4px;
}

.hokori-badge {
    display: none;
    position: relative;
    width: 120px;
    height: 120px;
    background-image: url("../images/hokori.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    text-indent: -9999px;
    padding: 0px;
    border-radius: 0px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    flex-shrink: 0;
    animation: hokoriWobble 3s ease-in-out infinite;
}

@media (max-width: 767px) {

    #modalExternal{
        width: min(90vw, 577px);
        height: auto;
    }
    #modalExternal .pc-flex-wrap{
        display: block;
    }
    #modalExternal img{
        max-width: 100%;
        height: auto;
    }
    #modalExternalBody{
        padding: 0;
    }
    #modalExternalBody .campaign-modal-content{
        padding: 0px;
    }
    .detail-section .img-ttl{
        margin-bottom: 4px;
        padding: 0 38px 0 10px;
    }
    .detail-section .img-ttl::after{
        width: 60px;
        height: 80px;
        top: -25px;
        right: -17px;
    }
    #modalExternal .pc-flex-wrap .txt-wrap,
    #modalExternal .pc-flex-wrap .txt-wrap p{
        font-size: 12px;
        text-align: center;
        color: #333;
    }
    #modalExternal .pc-flex-wrap.reverse .txt-wrap{
        margin-bottom: 12px;
    }
    #modalExternal .pc-flex-wrap.reverse .img-wrap{
        max-width: 121px;
        margin: auto;
    }
    .campaign-modal-content h2 {
        max-width: 240px;
        margin-bottom: 0;
    }
    .detail-section h3{
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 2px;

    }
    #modalExternalBody .detail-section {
        padding: 15px 25px 10px;
        margin-bottom: 15px;
    }
    .step-list .step-wrap{
        padding: 15px 40px;
    }
    .step-list .step-wrap .pc-flex-wrap .img-wrap,
    .step-list .step-wrap .pc-flex-wrap .txt-wrap{
        width: 100%;
        min-width: 100%;
    }
    .step-list .step-wrap .step-ttl{
        border: 1px solid #E5014F;
        font-size: 10px;
        width: 52px;
        line-height: 17px;
        margin: 0 auto 10px;
    }
    #modalExternal .step-list .step-wrap .note{
        font-size: 10px;
    }
    #modalExternal .step-list .only_sp{
        display: inline;
    }

.modal h2 {
    margin: 0px;
}

.modal .actions {
    margin-top: 10px;
}

.modal p {
    font-size: 15px;
}
.modal {
    width: min(780px, 92vw);
    max-height: 84vh;
}

}

.modal[data-hokori="true"] .hokori-badge,
.modal[data-hokori="pending"] .hokori-badge {
    display: block;
}

.modal[data-hokori="true"] .hokori-badge {
    cursor: default;
    pointer-events: none;
    animation: none;
}

.modal img#modalImg {
    max-width: 355px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0px;
    /* border: 1px solid rgb(224, 224, 224); */
    padding: 10px;
    box-sizing: border-box;
}

/* ボタン画像スタイル - テキストボタンから画像ボタンへ変更 */
#modalCta1 img,
#modalCta2 img {
    max-width: 340px;
    height: auto;
}

#modalGift {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 40px;
    width: min(520px, 92vw);
    background: url("../images/bg_congrats.png") no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: rgb(255, 255, 255);
    border-radius: 16px;
    height: min(322px, 92vw);
}

#modalGift h2 {
    color: rgb(230, 0, 111);
    font-size: 34px;
    font-weight: 700;
    margin: 0 auto 0 10px;
    text-align: center;
    width: 100%;
}

#modalGift .body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    margin-top: 40px;
}

#modalGift p {
    color: rgb(90, 90, 90);
    font-size: 18px;
    line-height: 1.7;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

#modalGift .actions {
    width: 280px;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.gift-char-img {
    width: 120px;
    height: auto;
    margin: 10px auto 0;
    display: block;
}

#modalGiftCta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    /* min-width: 200px; */
    border-radius: 999px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    background: linear-gradient(135deg, rgb(255, 122, 170), rgb(255, 96, 140), rgb(255, 168, 94));
    background-size: 220% 220%;
    box-shadow: 0 10px 20px rgba(255, 96, 140, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: modalGiftCtaShimmer 3s ease-in-out infinite;
}

#modalGiftCta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 96, 140, 0.35);
}

#modalHokoriGetBackdrop {
    z-index: 1401;
}

/* ホコリちゃんゲットモーダル - PC */
#modalHokoriGet {
    width: min(520px, 90vw);
    padding: 30px 50px;
    background: rgb(255, 255, 255);
    border-radius: 16px;
    animation: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s 1 normal none running bounceIn;
}

#modalHokoriGet .body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: left;
    padding: 0;
    max-width: 100%;
}
#modalHokoriGet .close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 24px;
    color: rgb(51, 51, 51);
    box-shadow: none;
}

/* ホコリゲット画像 - PC */
.hokori-get-img {
    width: 180px;
    height: auto;
    display: block;
    flex-shrink: 0;
    background: rgb(224, 242, 250);
    padding: 15px;
    border-radius: 12px;
}

#modalHokoriGet h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: rgb(51, 51, 51);
    line-height: 1.5;
    white-space: normal;
    word-break: keep-all;
    max-width: 100%;
}
#modalHokoriGet h2 br {
    display: block;
}

/* 外部コンテンツモーダル（campaign_detail.html等） */
#modalExternal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 30px;
    width: 92vw;
    max-width: 950px;
    background: url(../images/haikei_pc.png) no-repeat;
    background-size: cover;
    background-color: rgb(255, 255, 255);
    height: min(694px, 92vw);
    overflow: auto;
    position: relative;
}

#modalExternal .body {
    display: block;
    width: 100%;
    /* overflow-y: auto; */
}

#modalExternal .close {
    position: sticky;
    top: 0;
    align-self: flex-end;
    z-index: 10;
    height: 38px;
    font-size: 38px;
    right: 0;
}
footer.site-footer {
    background: rgb(255, 255, 255);
    padding: 20px 16px 26px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: auto; /* コンテンツが少なくても画面下に配置 */
}

/* フッター右下のリセットボタン（最終的に削除予定） */
.footer-reset {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: rgba(200, 200, 200, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgb(47, 127, 214);
    font-size: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgb(47, 127, 214);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .sep {
    color: rgb(155, 191, 231);
}

.footer-copy {
    margin-top: 10px;
    color: rgb(106, 162, 215);
    font-size: 12px;
}

.room-nav {
    display: flex;
    width: 461px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    background: rgb(255, 255, 255);
    flex-wrap: wrap;
    margin: 12px auto;
    border-radius: 12px;
    padding: 6px;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 6px 16px;
}

.room-nav .btn {
    padding: 0.45rem 0.95rem;
    background: transparent;
    color: rgb(97 94 94);
    border: none;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.2;
}

.room-nav .btn.active {
    background: rgb(90, 90, 90);
    color: rgb(255, 255, 255);
    font-weight: 600;
    padding: 0.5rem 1.1rem;
}

.side-menu {
    position: static;
    width: 195px;
    z-index: 1200;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    background: rgb(255, 255, 255);
}

.side-menu .side-header {
    background: transparent;
    color: rgb(106, 0, 106);
    text-align: center;
    padding: 0px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: none;
    display: block;
}

.side-menu .side-header img {
    width: 100%;
    height: auto;
    display: block;
}

.side-menu .side-list {
    list-style: none;
    margin: 0px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.side-menu .side-item {
    background: rgb(255, 255, 255);
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgb(153, 153, 153);
    font-size: 13px;
    font-weight: 500;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.side-menu .side-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.side-menu .side-item.all {
    font-weight: 700;
}

.side-menu .side-item.highlight {
    background: rgb(255, 217, 201);
    border-color: rgb(255, 184, 154);
    color: rgb(90, 43, 22);
}

.side-menu .side-sub {
    padding: 6px 12px;
    font-size: 12px;
    color: var(--ui-sub);
    background: transparent;
    text-align: left;
    margin-left: 6px;
}

.side-menu .side-item.active {
    background: rgb(250, 225, 237);
    color: rgb(230, 0, 111);
    border-color: rgb(230, 0, 111);
    font-weight: 700;
}

.hokori-left-menu {
    position: static;
    width: 222px;
    z-index: 120;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.promo-card {
    background: rgb(255, 255, 255);
    border-radius: 12px;
    overflow: visible;
    box-shadow: rgba(11, 22, 40, 0.12) 0px 12px 30px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    padding-top: 45px;
    margin-top: 20px;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
}

.promo-header {
    position: absolute;
    top: -50px;
    left: 56%;
    transform: translateX(-50%);
    width: 160px;
    z-index: 2;
    background: transparent;
    text-align: center;
    padding: 0px;
    border-bottom: none;
    display: block;
    animation: wobble 4s ease-in-out infinite;
}

.promo-header img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.promo-desc {
    margin: 0px;
    color: #5a5a5a;
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
    font-weight: bold;
}

.promo-visuals {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.promo-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgb(244, 244, 244);
    padding: 6px;
}

.promo-char {
    width: 120px;
    object-fit: contain;
    height: 114px;
}

.hokori-counter {
    color: rgb(51, 51, 51);
    font-weight: 600;
    font-size: 18px;
    background: rgb(251 237 229);
    padding: 12px 40px;
    border-radius: 5px;
    text-align: center;
    line-height: 1.4;
}

.hokori-counter .counter-label {
    display: block;
}

.hokori-counter .counter-value {
    display: block;
    font-size: 22px;
}

.promo-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.promo-actions .chip {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 12px;
}

.promo-actions .reset {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.promo-cta {
    width: 130px;
    justify-content: center;
    margin: 0px auto 0px;
    background: rgb(226 1 78);
    color: rgb(255, 255, 255);
    border-color: rgb(230, 0, 111);
    border-radius: 10px;
    padding: 9px 13px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-cta::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 40%;
    height: 140%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: promoCtaShine 2.6s infinite;
    pointer-events: none;
}

.promo-cta.is-cta-attention {
    animation: promoCtaClicky 1.6s infinite;
}

.promo-cta.is-cta-attention::after {
    animation: promoCtaShine 2.6s infinite;
}

/* =====================================================
   アニメーション
   ===================================================== */
@keyframes pulse {
    0% {
        box-shadow: rgba(255, 107, 107, 0.55) 0px 0px 0px 0px;
    }

    70% {
        box-shadow: rgba(255, 107, 107, 0) 0px 0px 0px 12px;
    }

    100% {
        box-shadow: rgba(255, 107, 107, 0) 0px 0px 0px 0px;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ホコリちゃんの揺れアニメーション */
@keyframes hokoriWobble {
    0%, 80% {
        transform: rotate(0deg) translateY(0);
    }
    84% {
        transform: rotate(-3deg) translateY(-3px);
    }
    88% {
        transform: rotate(3deg) translateY(2px);
    }
    92% {
        transform: rotate(-2deg) translateY(-2px);
    }
    96% {
        transform: rotate(2deg) translateY(1px);
    }
    100% {
        transform: rotate(0deg) translateY(0);
    }
}

@keyframes modalGiftCtaShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 吹き出しが揺れるアニメーション */
@keyframes wobble {
    0%, 85% {
        transform: translateX(-50%) rotate(0deg);
    }
    88% {
        transform: translateX(-50%) rotate(-2deg) translateY(-2px);
    }
    91% {
        transform: translateX(-50%) rotate(2deg) translateY(1px);
    }
    94% {
        transform: translateX(-50%) rotate(-1deg) translateY(-1px);
    }
    97% {
        transform: translateX(-50%) rotate(1deg);
    }
    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

@keyframes promoCtaClicky {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-2px);
    }
    80% {
        transform: translateY(2px);
    }
    90% {
        transform: translateY(-1px);
    }
}

@keyframes promoCtaShine {
    0% {
        left: -60%;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    60% {
        left: 120%;
        opacity: 0;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}

/* =====================================================
   タブレット (768px 〜 1199px)
   ===================================================== */
@media (min-width: 768px) and (max-width: 1199px) {
    header {
        width: 95%;
        max-width: 1020px;
        padding: 20px 20px 0px;
        margin: 10px auto;
        box-sizing: border-box;
    }

    .hero {
        max-width: 95%;
        margin: 0 auto;
    }

    .hero img {
        width: 55%;
        margin: 0px auto 10px;
    }

    .content-row {
        flex-direction: column;
        gap: 50px;
        padding: 0 16px;
        align-items: center;
    }

    .left-content {
        width: calc(100% - 32px);
        max-width: 700px;
        flex: none;
        padding: 16px;
        height: auto;
        min-height: auto;
        gap: 16px;
        flex-direction: column;
    }

    .side-menu {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .side-menu .side-header {
        width: 180px;
        margin: 0 0 10px 0;
    }

    .side-menu .side-header img {
        width: 100%;
    }

    .side-menu .side-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
    }

    .side-menu .side-item {
        padding: 8px 16px;
        font-size: 15px;
        border-radius: 20px;
    }

    .stage {
        min-height: auto;
        height: auto;
        flex: none;
        position: relative;
        width: 100%;
    }

    .scene {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
        display: grid !important;
    }

    .scene.active {
        display: grid;
    }

    .scene .scene-inner {
        position: relative;
        width: 100%;
        height: auto;
    }

    .scene .scene-inner picture {
        display: block;
    }

    .scene .scene-inner picture img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }

    .scene img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hokori-left-menu {
        width: calc(100% - 32px);
        max-width: 700px;
        min-width: auto;
        height: 40px;
        min-height: auto;
        padding-top: 16px;
        order: -1;
    }

    .promo-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 12px 16px 12px 120px;
        margin-top: 0;
        min-height: 48px;
        position: relative;
        overflow: visible;
        gap: 15px;
    }

    .promo-header {
        position: absolute;
        left: auto;
        right: calc(50% + 40px);
        top: -30px;
        width: 140px;
        transform: none;
        flex-shrink: 0;
    }

    .promo-body {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 0;
        flex: 0 1 auto;
    }

    .promo-desc,
    .promo-visuals,
    .promo-actions {
        display: none;
    }

    .promo-char {
        display: none;
    }

    .hokori-counter {
        font-size: 18px;
        padding: 10px 24px;
        margin: 0;
        border-radius: 8px;
        background: rgb(255, 241, 233);
        white-space: nowrap;
    }

    .hokori-counter .counter-label,
    .hokori-counter .counter-value {
        display: inline;
        font-size: inherit;
    }

    .promo-cta {
        width: auto;
        padding: 10px 20px;
        font-size: 16px;
        margin: 0;
    }

    .room-nav {
        max-width: 700px;
        margin: 12px auto;
        padding: 12px 16px;
    }

    .room-nav .btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* =====================================================
   SP スマートフォン (〜767px)
   ===================================================== */
@media (max-width: 767px) {
    .only_sp {
        display: block;
    }

    .only_pc {
        display: none;
    }

    html {
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        background: url("../images/haikei_sp.png") center top / cover no-repeat; 
    }

    /* ブランドロゴ */
    .brand-logo {
        height: 30px;
    }

    header {
        width: 100%;
        padding: 6px 16px 0px;
        box-sizing: border-box;
    }

    /* サブページ用：ヘッダー内にタイトル画像を表示 */
    .brand {
        flex: 1;
        justify-content: space-between;
    }

    .header-sp-title {
        display: block;
        height: 40px;
        width: auto;
        margin-left: auto;
    }

    /* サブページ用：通常のheroを非表示 */
    .hero.hero-subpage {
        display: none;
    }

    .hero img {
        width: 84%;
        margin: 0px auto 20px;
    }

    .content-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0px;
    }

    .left-content {
        width: calc(100% - 32px);
        margin: 0px auto;
        min-width: auto;
        padding: 16px;
        border-radius: 16px;
        gap: 16px;
        flex-direction: column;
        background: rgb(255, 255, 255);
        box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
        height: auto;
    }

    .side-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-radius: 0px;
        box-shadow: none;
        background: transparent;
        padding: 0px;
    }

    .side-menu .side-header {
        margin: 5px 0px 5px;
        text-align: left;
        width: 52%;
    }

    .side-menu .side-header img {
        width: 100%;
        height: auto;
    }

    .side-menu .side-list {
        display: flex;
        flex-flow: wrap;
        gap: 10px 8px;
        align-items: center;
        justify-content: left;
    }

    .side-menu .side-item {
        padding: 8px 16px;
        font-size: 17px;
        border-radius: 20px;
        margin: 0 5px 8px 0;
    }

    .stage {
        width: 100%;
        min-height: auto;
        border-radius: 12px;
        background: transparent;
        overflow: hidden;
        box-shadow: none;
        position: relative;
        display: block;
    }

    .stage .scene {
        position: relative;
        inset: auto;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .stage .scene-inner {
        position: relative;
    }

    .stage .scene-inner picture {
        display: block;
    }

    .stage .scene-inner picture img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        display: block;
    }

    .stage .overlay {
        position: absolute;
        inset: 0px;
    }

    .stage .titleCard {
        display: none;
    }

    .hokori-left-menu {
        width: calc(100% + 0px);
        margin: 0px auto;
        padding-top: 16px;
        order: -1;
        height: auto;
    }

    .promo-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 10px 8px 160px;
        overflow: visible;
        border-radius: 16px;
        box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
        margin-top: 0px;
        background: rgb(255, 255, 255);
        position: relative;
        min-height: 50px;
        flex: 0 0 auto;
    }

    .promo-header {
        position: absolute;
        left: 86px;
        top: -26px;
        transform: none;
        width: 145px;
        flex-shrink: 0;
        z-index: 2;
    }

    .promo-body {
        padding: 0px;
        flex-direction: row;
        align-items: center;
        gap: 25px;
        flex: 1 1 0%;
        justify-content: flex-end;
    }

    .promo-desc, .promo-visuals, .promo-actions {
        display: none;
    }

    .hokori-counter {
        font-size: 18px;
        padding: 8px 24px;
        margin: 0px;
        border-radius: 8px;
        background: rgb(255, 241, 233);
        color: rgb(51, 51, 51);
        white-space: nowrap;
        border: none;
        font-weight: 600;
    }

    .hokori-counter .counter-label, .hokori-counter .counter-value {
        display: inline;
    }

    .promo-cta {
        width: 36px;
        height: 30px;
        margin: 0px auto 6px;
        padding: 0px;
        border-radius: 6px;
        background: transparent;
        color: rgb(51, 51, 51);
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0px;
        flex-shrink: 0;
    }

    .promo-cta::before {
        content: ">";
        font-size: 40px;
        line-height: 1;
        color: rgb(51, 51, 51);
        font-weight: bold;
    }

    .promo-cta::after {
        display: none;
    }

    /* SP: ホコリちゃん3つ完了時 - 「応募はこちら」ボタン表示 */
    .promo-card.hokori-complete .hokori-counter {
        display: none;
    }

    .promo-card.hokori-complete .promo-cta {
        font-size: 15px;
        width: auto;
        height: auto;
        padding: 9px 18px;
        background: rgb(226, 1, 78);
        color: rgb(255, 255, 255);
        border: 1px solid rgb(230, 0, 111);
        border-radius: 10px;
        font-weight: 700;
        position: relative;
        overflow: hidden;
        margin: 0;
    }

    .promo-card.hokori-complete .promo-cta::before {
        display: none;
    }

    .promo-card.hokori-complete .promo-cta.is-cta-attention {
        animation: promoCtaClicky 1.6s infinite;
    }

    .promo-card.hokori-complete .promo-cta.is-cta-attention::after {
        content: "";
        position: absolute;
        top: -20%;
        left: -60%;
        width: 40%;
        height: 140%;
        background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0) 100%
        );
        transform: skewX(-20deg);
        animation: promoCtaShine 2.6s infinite;
        display: block;
        pointer-events: none;
    }

    /* 外部コンテンツモーダル - SP */
    #modalExternal {
        width: min(92vw, 500px);
        max-height: 80vh;
        height: auto;
        padding: 20px;
        overflow-y: auto;
    }

    .room-nav {
        width: calc(100% - 32px);
        margin: 12px auto;
        padding: 12px 16px;
        gap: 0px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-radius: 12px;
    }

    .room-nav .btn {
        padding: 10px 8px;
        text-align: center;
        justify-content: center;
        font-size: 16px;
        border-radius: 8px;
    }

    .room-nav .btn.active {
        padding: 10px 8px;
    }

    .modal {
        grid-template-columns: 1fr;
        padding: 10px;
        box-sizing: border-box;
    }

    .modal img#modalImg {
        max-width: 100%;
        max-height: 200px;
        padding: 5px;
        margin: 0px auto;
    }

    .modal h2 {
    font-size: 20px;
}
    .modal .body {
        padding: 10px;
    }
    .modal .btn-img{
        max-width: 340px;
        margin: auto;
    }

    .modal .close {
        top: 10px;
        right: 10px;
    }

    .hokori-badge {
        bottom: 10px;
        right: 10px;
    }
    #modalExternal .close{
        font-size: 24px;
        height: 24px;
        width: 20px;
    }

   /* ホコリちゃん3つゲットモーダル - SP */
    #modalGift {
        background-size: cover;
        background-position: center top;
        padding: 0;
    }
    #modalGift h2 {
         font-size: 26px;
    }
    #modalGift p {
         font-size: 14px;
    }
    #modalGift .body {
        margin-top: 42px;
        gap: 4px;
    }
    #modalGift .gift-char-img {
        width:90px;
    }
    
    /* ホコリちゃんゲットモーダル - SP */
    #modalHokoriGet {
        width: min(300px, 85vw);
        padding: 20px;
        background: rgb(255, 255, 255);
        border-radius: 16px;
    }

    #modalHokoriGet .body {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    #modalHokoriGet .close {
        top: 10px;
        right: 10px;
    }

    .hokori-get-img {
        width: 150px;
        background: rgb(224, 242, 250);
        padding: 12px;
        border-radius: 10px;
    }

    #modalHokoriGet h2 {
        font-size: 18px;
        text-align: center;
        color: rgb(51, 51, 51);
    }
}

/* =====================================================
   SP 小型スマートフォン (〜390px)
   ===================================================== */
@media (max-width: 390px) {
    .promo-card {
        padding: 10px 8px 8px 60px;
        gap: 6px;
    }

    .promo-header {
        left: 66px;
        top: -15px;
        width: 120px;
    }

    .hokori-counter {
        font-size: 13px;
        padding: 6px 14px;
        white-space: normal;
        margin-left: 50px;
    }

    .promo-cta {
        width: 24px;
        height: 24px;
    }

    .promo-cta::before {
        font-size: 22px;
    }

    .left-content {
        width: calc(100% - 24px);
        padding: 12px;
    }

    .hokori-left-menu {
        width: calc(100% - 16px);
        padding-top: 12px;
    }

    .room-nav {
        width: calc(100% - 24px);
        padding: 10px 12px;
    }

    .room-nav .btn {
        padding: 8px 4px;
        font-size: 13px;
    }

    .side-menu .side-item {
        padding: 5px 10px;
        margin: 0px 5px 5px 0px;
        font-size: 14px;
    }

    .side-menu .side-header {
        width: 48%;
    }
}

/* =====================================================
   SP 超小型スマートフォン (〜360px)
   ===================================================== */
@media (max-width: 360px) {
    .promo-card {
        padding: 8px 6px 6px 70px;
        gap: 4px;
    }

    .promo-header {
        left: 70px;
        top: -22px;
        width: 110px;
    }

    .hokori-counter {
        font-size: 12px;
        padding: 5px 10px;
    }

    .promo-cta {
        width: 22px;
        height: 22px;
    }

    .promo-cta::before {
        font-size: 20px;
    }

    .left-content {
        width: calc(100% - 20px);
        padding: 10px;
    }

    .hokori-left-menu {
        width: calc(100% - 12px);
        padding-top: 10px;
    }

    .room-nav {
        width: calc(100% - 20px);
        padding: 8px 10px;
    }

    .room-nav .btn {
        padding: 6px 2px;
        font-size: 12px;
    }

    .side-menu .side-item {
        padding: 4px 8px;
        font-size: 13px;
    }

    .side-menu .side-header {
        width: 42%;
    }

    header {
        padding: 12px 12px 0px;
    }

    .hero img {
        width: 88%;
    }
}

/* =====================================================
   SP iPhone SE / 超小型スマートフォン (〜320px)
   ===================================================== */
@media (max-width: 320px) {
    .promo-card {
        padding: 6px 4px 6px 80px;
        gap: 3px;
    }

    .promo-header {
        left: 55px;
        top: -16px;
        width: 103px;
    }

    .hokori-counter {
        font-size: 11px;
        padding: 4px 8px;
        margin-left: 10px;
    }

    .promo-cta {
        width: 20px;
        height: 20px;
    }

    .promo-cta::before {
        font-size: 18px;
    }

    .left-content {
        width: calc(100% - 16px);
        padding: 8px;
        gap: 10px;
    }

    .hokori-left-menu {
        width: calc(100% - 8px);
        padding-top: 8px;
    }

    .room-nav {
        width: calc(100% - 16px);
        padding: 6px 8px;
    }

    .room-nav .btn {
        padding: 5px 2px;
        font-size: 11px;
    }

    .side-menu .side-item {
        padding: 3px 6px;
        font-size: 12px;
    }

    .side-menu .side-header {
        width: 38%;
    }

    header {
        padding: 10px 8px 0px;
    }

    .hero img {
        width: 92%;
        margin-bottom: 15px;
    }

    .brand-logo {
        height: 20px;
    }

    .header-sp-title {
        height: 32px;
    }

    .stage .scene-inner picture img {
        border-radius: 8px;
    }

    .modal {
        padding: 8px;
    }

    .modal img#modalImg {
        max-height: 150px;
    }

    .modal h2 {
        font-size: 18px;
    }

    .modal p {
        font-size: 14px;
    }
}
@media screen and (max-width: 767px) {
    /* 初期状態は閉じておく */
    #springMenuList {
        display: none;
        transition: all 0.3s;
    }
    /* openクラスがついたら表示 */
    #springMenuList.open {
        display: block;
    }
    /* トリガーの見た目（任意） */
    #spMenuTrigger {
        cursor: pointer;
    }
}

/* =========================================
   SP用サイドメニュー アコーディオン矢印設定
   ========================================= */
@media screen and (max-width: 767px) {
    
    /* トリガー部分（クリックする文字）の調整 */
    #spMenuTrigger {
        position: relative; /* 矢印の基準位置にする */
        cursor: pointer;
        padding-right: 30px; /* 矢印が重ならないように右に余白 */
        /* 必要に応じて背景色などを設定してください */
        /* background: #f0f0f0; */
        /* padding: 10px; */
    }

    /* 矢印アイコンの作成 (初期状態：下向き) */
    #spMenuTrigger::after {
        content: '';
        position: absolute;
        top: 40%;        /* 上からの位置調整 */
        right: 15px;     /* 右端からの位置 */
        width: 8px;      /* 矢印のサイズ */
        height: 8px;     /* 矢印のサイズ */
        border-right: 2px solid #333;  /* 線の太さと色（文字色に合わせる） */
        border-bottom: 2px solid #333; /* 線の太さと色 */
        transform: rotate(45deg);      /* 45度回転させて下矢印にする */
        transition: transform 0.3s ease; /* 回転をなめらかにする */
    }

    /* 開いた状態の矢印 (上向きに回転) */
    #spMenuTrigger.open::after {
        transform: rotate(225deg); /* ぐるっと回して上矢印にする */
        top: 45%; /* 回転した時の微妙な位置ズレを補正 */
    }
}

/* モーダルの閉じるボタン（×）のフォーカス枠を消す */
#modalClose:focus {
    outline: none;
    box-shadow: none;
}