:root {
    /* Figma "Design Tokens / Components" ページ由来のダッシュボードUI用カラートークン */
    --parkx-color-text: #2e2a26;
    --parkx-color-text-light: #6d665d;
    --parkx-color-text-muted: #9b948b;
    --parkx-color-surface: #fdfbf7;
    --parkx-color-surface-subtle: #fbf4eb;
    --parkx-color-border: #f1e5d4;
    --parkx-color-border-strong: #eee6d8;
    --parkx-color-primary: #f7e9d8;
    --parkx-color-primary-hover: #ebc89d;
    --parkx-color-info: #5d89b3;
    --parkx-color-sponsor: #ffaa00;
    --parkx-color-sponsor-yell: #e55b98;
    --parkx-color-success: #739c53;
    --parkx-color-warning: #d48a3c;
    --parkx-color-progress-bg: #e8e1d4;
    --parkx-color-danger: #e0574c;
    --parkx-color-survey: #4a90e2;
    --parkx-color-inactive: #ddd;
    --parkx-color-border-inactive: #808080;

    --parkx-space-4: 4px;
    --parkx-space-8: 8px;
    --parkx-space-12: 12px;
    --parkx-space-16: 16px;
    --parkx-space-20: 20px;
    --parkx-space-24: 24px;
    --parkx-space-32: 32px;
    --parkx-space-40: 40px;

    --parkx-radius-xs: 8px;
    --parkx-radius-sm: 10px;
    --parkx-radius-md: 16px;
    --parkx-radius-lg: 24px;
    --parkx-radius-xl: 32px;
    --parkx-radius-full: 999px;

    --parkx-text-xs: 12px;
    --parkx-text-sm: 14px;
    --parkx-text-md: 16px;
    --parkx-text-lg: 20px;
    --parkx-text-xl: 28px;
}

html {
    overflow: hidden;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.sp,
.sp-flex {
    display: none !important;
}

rt {
    height: 1em;
}

article {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

section {
    margin: 0;
}

header {
    display: flex;
    max-width: 1024px;
    width: 100%;
    padding: 0 48px;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 16px;
    z-index: 100;
}

header>.logo {
    height: 45px;
}

header>.logo>img {
    height: 100%;
    aspect-ratio: 551/164;
}

.header-menu {
    display: flex;
    height: 64px;
    padding: 8px 24px 8px 16px;
    align-items: center;
    gap: 40px;
    border-radius: 8px;
    background: #FFF;
}

.header-menu>.header-menu-text {
    display: flex;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #000;
    color: #000;
    font-size: 15px;
    font-style: normal;
    font-weight: 800;
    line-height: 11px;
}

.header-menu-item-list {
    display: flex;
    height: 32px;
    align-items: center;
    gap: 17px;
}

.header-menu-item.shindan {
    display: flex;
    width: 73px;
    height: 40px;
    padding: 2px 16px 0 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    aspect-ratio: 73/40;
    border-radius: 8px;
    border: 2px solid #002D75;
    background: #FFF;
}

.header-menu-item.shindan>img {
    width: 48px;
    height: 43px;
    flex-shrink: 0;
    aspect-ratio: 48/43;
}

.header-menu-item.zukan {
    display: flex;
    width: 100px;
    padding: 4px 32px 2px 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    aspect-ratio: 25/8;
    border-radius: 64px;
    border: 2px solid #3395FF;
    background: #FFF;
}

.header-menu-item.zukan>img {
    width: 65px;
    height: auto;
    aspect-ratio: 5/2;
}

.header-menu-item.stamp {
    display: flex;
    width: 84px;
    height: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    aspect-ratio: 21/10;
}

.header-menu-item.stamp>img {
    width: 84px;
    height: auto;
}

.header-menu-item.result {
    display: flex;
    padding: 4px 24px 2px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 64px;
    border: 2px solid #6C0;
    background: #6C0;
    align-self: stretch;
    color: #FFF;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 800;
    line-height: 15px;
    position: relative;
}

.header-menu-item.result>img {
    width: 60px;
    height: auto;
    position: absolute;
    right: -32px;
    bottom: -9px;
}

#get-stamp-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.85);
    z-index: 9999;
}

.get-stamp-container {
    width: 1024px;
    height: 768px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    flex-shrink: 0;
    position: relative;
}

.get-stamp-text {
    width: 448px;
    height: 56px;
}

.get-stamp-text>img {
    width: 100%;
    height: auto;
}

.stamp-image {
    width: 473px;
    height: auto;
}

.get-stamp-buttons {
    display: inline-flex;
    align-items: flex-start;
    gap: 16px;
}

.get-stamp-button {
    display: flex;
    height: 47px;
    padding: 10px 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    background: #4E4E4E;
    color: #FFF;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

#complete-stamp-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../img/miraiiparkx/complete-stamp-overlay-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999;
}

.complete-stamp-container {
    width: 1024px;
    height: 768px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
    position: relative;
    padding-bottom: 65px;
}

.complete-stamp-text {
    width: 768px;
    height: auto;
}

.complete-stamp-text>img {
    width: 100%;
    height: auto;
}

.stamprally-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 19px;
}

.stamprally-name {
    display: inline-flex;
    padding: 8px 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    color: #215B6B;
    text-align: center;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.stamprally-board {
    width: 224px;
    height: auto;
}

.complete-stamp-buttons {
    display: inline-flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px;
    margin-top: 3px;
}

.character-container {
    position: absolute;
    right: 161px;
    bottom: 226px;
}

.character-container>.speech-bubble {
    display: flex;
    min-height: 42px;
    padding: 8px 24px;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    border-radius: 80px;
    background: #FFF;
    color: rgba(18, 18, 18, 0.3);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
    position: relative;
}

.character-container>.speech-bubble>svg {
    position: absolute;
    top: 47px;
    right: 13px;
}

.character-container>img {
    width: 120px;
    height: auto;
    position: absolute;
    top: 5px;
    right: -74px;
}

/* 自動スクロールコンテナ */
.auto-scroll {
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* スクロール本体 */
.auto-scroll__inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}

/* スクロール有効時だけ付与 */
.auto-scroll.is-scroll .auto-scroll__inner {
    animation: autoScroll 15s linear infinite;
}

/* ループ用（複製あり） */
.auto-scroll.is-loop {
    gap: 0;
}

.auto-scroll.is-loop .auto-scroll__inner  {
    padding-right: 40px;
}

@keyframes autoScroll {
    from { transform: translateX(50%); }
    to   { transform: translateX(-50%); }
}

@media screen and (max-width: 450px) {

    /* スマホ用 */
    .pc {
        display: none !important;
    }

    .sp {
        display: block !important;
    }

    .sp-flex {
        display: flex !important;
    }

    header {
        padding: 0 24px;
        align-items: flex-start;
    }

    header>.logo {
        height: 40px;
    }

    .header-menu {
        height: 40px;
        padding: 8px 16px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 8px;
        background: #FFF;
        box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.25);
    }

    .header-menu>.header-menu-text {
        border: none;
        align-items: center;
        gap: 24px;
        padding: 0;
    }

    .hamburger {
        display: flex;
        width: 24px;
        height: 24px;
        padding: 5px 0;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 4px;
        position: relative;
        cursor: pointer;
    }

    .hamburger-line {
        width: 100%;
        height: 2px;
        background: #000;
        transition: 0.3s;
    }

    .header-menu.active {
        height: auto;
        gap: 8px;
    }

    .header-menu.active .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .header-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .header-menu.active .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .header-menu-item-list {
        display: none;
    }

    .header-menu.active .header-menu-item-list {
        display: flex;
        padding: 8px 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        height: auto;
    }

    .header-menu-item.result {
        width: 104px;
        height: 35px;
        font-size: 11px;
        line-height: 11px;
        padding: 0;
    }

    .header-menu-item.result>img {
        width: 48px;
        height: auto;
        right: -24px;
        bottom: -2px;
    }

    .get-stamp-container {
        width: 100%;
        height: auto;
        gap: 29px;
    }

    .get-stamp-text {
        width: 320px;
        height: 37px;
    }

    .stamp-image {
        width: 345px;
    }

    .get-stamp-button {
        height: 36px;
        padding: 8px 24.5px;
        font-size: 12px;
    }

    .complete-stamp-container {
        width: 100%;
        height: auto;
        gap: 27px;
    }
    
    .complete-stamp-text {
        width: 345px;
        height: 45px;
    }

    .stamprally-container {
        gap: 22px;
    }

    .stamprally-name {
        font-size: 16px;
    }

    .stamprally-board {
        width: 200px;
    }

    .complete-stamp-buttons {
        padding: 0;
        margin-top: 2px;
    }

    .character-container {
        position: absolute;
        top: 428px;
        right: 52px;
        bottom: auto;
    }
}