/* ベースリセット */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 

    font-family: "Helvetica Light", "Helvetica Neue", Helvetica, Arial, sans-serif; 

    overflow: hidden; 

    background-color: #3bbff1; 

    overscroll-behavior-y: none; 

}

.app-background { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-image: url('images/bg.png'); background-size: cover; background-position: center top; z-index: -1; }

.scroll-container { display: flex; width: 100vw; height: 100vh; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }

.page { 

    flex: 0 0 100vw; width: 100vw; 

    height: 100vh; height: 100dvh; 

    scroll-snap-align: start; position: relative; 

    overflow-y: auto; 

    overflow-x: hidden; /* 👈 🚨この1行を追加！！（横のハミ出しを完全に防ぐ魔法） */

    padding-bottom: 35vw; 

}

.page-content { 

    width: 89.422vw; margin: 0 auto; 

    padding-top: 10vw; 

    display: flex; flex-direction: column; 

}



/* ▼ iPhone（iOS Safari）専用の魔法 ▼ */

@supports (-webkit-touch-callout: none) {

    .page-content { 

        padding-top: 19.288vw; 

    }

}

img { width: 100%; height: auto; display: block; object-fit: contain; }

a { text-decoration: none; }



.widget-top { width: 100%; aspect-ratio: 1006 / 504; display: block; }

.row-middle, .row-bottom { display: flex; justify-content: space-between; margin-top: 8.888vw; width: 100%; }

.half-box { width: 41.777vw; aspect-ratio: 470 / 504; }

.icon-grid-2x2 { display: grid; grid-template-columns: repeat(2, 17.955vw); gap: 5.866vw; justify-content: space-between; align-content: space-between; }

.icon-link { display: block; width: 17.955vw; height: 17.955vw; }

.icon-box { position: relative; width: 100%; height: 100%; }

.icon-box img { width: 100%; height: 100%; border-radius: 20%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.icon-name { position: absolute; top: 110%; left: 50%; transform: translateX(-50%); font-size: 3.1vw; color: #fff; font-weight: bold; white-space: nowrap; text-shadow: 1px 1px 2px rgba(0,0,0,0.6); }



/* 📅 カレンダー黄金座標 */

.calendar-container { position: relative; z-index: 50; }

.calendar-text { position: absolute; top: 48%; left: 0; width: 100%; height: 40%; display: flex; align-items: baseline; justify-content: flex-start; pointer-events: none; }

#cal-year { color: #e60012; font-size: 3.5vw; position: absolute; left: 12%; top: -25%; font-weight: 300; }

.cal-date-row { display: flex; align-items: baseline; position: absolute; left: 60%; transform: translateX(-50%); top: -57%; white-space: nowrap; }

#cal-date { color: #e60012; font-size: 13vw; line-height: 0.9; font-weight: 300; letter-spacing: -2px; }

#cal-day { color: #e60012; font-size: 4vw; margin-left: 5px; font-weight: bold; }



/* 2ページ目 */

.top-icons-row .icon-link, .bottom-icons-row .icon-link, .minne-row .icon-link { width: 18vw; flex-shrink: 0; }

.top-icons-row { display: flex; justify-content: space-between; width: 100%; }

.minne-row { display: flex; justify-content: flex-start; width: 100%; margin-top: 8vw; }

.arcade-banner { margin-top: 27.2vw; width: 100%; text-align: center; }

.arcade-banner img { width: 89.4vw; height: auto; }

.bottom-icons-row { display: flex; justify-content: flex-start; gap: 5.9vw; width: 100%; margin-top: 4.5vw; }

#hit-character { position: absolute; width: 56.533vw; right: -60vw; top: 20.5%; transition: right 1.5s ease-out; z-index: 150; cursor: pointer; }

#hit-character.show { right: 0vw; }



.dock-container { position: fixed; bottom: 3.111vw; left: 50%; transform: translateX(-50%); width: 93.777vw; height: 24.444vw; z-index: 100; display: flex; justify-content: center; align-items: center; }

.dock-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

.dock-icons { display: flex; gap: 4.888vw; padding: 0 3.111vw; width: 100%; }

.dock-icon { width: 18.222vw; height: 18.222vw; display: block; }

.dock-icon img { width: 100%; height: 100%; border-radius: 20%; }



.popup-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 200; opacity: 1; transition: 0.3s; }

.popup-overlay.hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }

.dark-mode { background: rgba(0,0,0,0.85); }

.white-box { background: #fff; width: 80%; padding: 30px; border-radius: 20px; text-align: center; font-weight: bold; }

.close-btn { background: #007aff; color: #fff; border: none; padding: 10px 30px; border-radius: 10px; margin-top: 20px; font-weight: bold; }

.transparent-box { width: 90%; }

.widget-top, .calendar-container, .sale-widget { position: relative; }

.widget-name { position: absolute; top: 104%; left: 50%; transform: translateX(-50%); font-size: 3.1vw; color: #ffffff; font-weight: bold; white-space: nowrap; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); pointer-events: none; z-index: 10; }

.arcade-text { color: #ffffff; font-size: 2.8vw; font-weight: bold; margin-top: 2.2vw; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.6); white-space: nowrap; }



#phone-popup .white-box p { color: #333; }



/* ーーー カレンダー別ページ（Ver1.0 最新版） ーーー */

#special-calendar-page {

    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;

    background-color: rgba(0, 0, 0, 0.95); z-index: 20000;

    display: flex; justify-content: center; transition: 0.3s;

}

#special-calendar-page.hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }



.sc-container { width: 100%; max-width: 450px; height: 100%; display: flex; flex-direction: column; background-color: #1a1a1a; }



/* ヘッダー */

.sc-header { 

    display: flex; align-items: center; justify-content: center;

    padding: 60px 20px 15px 20px; 

    border-bottom: 2px solid #333; 

    background-color: #111; flex-shrink: 0; 

    position: relative;

}

.sc-title { color: #fff; font-size: 20px; font-weight: bold; letter-spacing: 1px; }

.sc-close-btn { 

    position: absolute; right: 20px; bottom: 12px;

    background: none; border: none; color: #fff; font-size: 35px; line-height: 1; cursor: pointer; 

}



.sc-scroll-area { flex-grow: 1; overflow-y: auto; padding: 0 20px 50px 20px; text-align: left; }



/* 🌟 新カレンダーVer1.0（横スワイプ・ぼかし・地図対応） 🌟 */

.calendar-day-group {

    border-bottom: 1px solid #333;

}

.calendar-day-group.is-today {

    background-color: #2a2a2a; 

    border-radius: 2vw;

    margin: 4vw 0;

    padding-bottom: 2vw;

    border-left: 1.5vw solid #f39c12;

    border-bottom: none;

}

.calendar-date-header {

    padding: 4vw 2vw;

    font-size: 4.5vw;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.calendar-day-group.has-events .calendar-date-header {

    color: #ffffff;

    cursor: pointer;

}

.calendar-day-group.no-events .calendar-date-header {

    color: #777777; /* 予定がない日は少し暗く */

}

.today-label {

    color: #f39c12;

    font-size: 3.5vw;

    margin-left: 2vw;

}

.accordion-arrow {

    font-size: 4vw;

    color: #888;

    transition: transform 0.3s ease;

}

.calendar-day-group.open .accordion-arrow {

    transform: rotate(180deg);

}



/* アコーディオンとプレビューぼかしの魔法 */

.calendar-accordion-body {

    max-height: 35vw;

    overflow: hidden;

    transition: max-height 0.4s ease-out;

    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);

    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);

}

.calendar-day-group.open .calendar-accordion-body {

    max-height: 300vw; /* 開いた時は全開 */

    -webkit-mask-image: none;

    mask-image: none;

}

.calendar-accordion-inner {

    width: 100%;

    overflow-x: auto;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

}

.calendar-accordion-inner::-webkit-scrollbar { display: none; }



.calendar-swipe-wrapper {

    display: flex;

    gap: 4vw;

    padding: 2vw 2vw 4vw 2vw;

    width: max-content;

}



.calendar-event-card {

    width: 75vw;

    background-color: #222;

    border-radius: 3vw;

    padding: 4vw;

    scroll-snap-align: center;

}



.event-header {

    display: flex;

    align-items: center;

    gap: 2vw;

    margin-bottom: 2vw;

}



.event-category {

    background-color: #f39c12;

    color: #fff;

    font-size: 3vw;

    padding: 1vw 2vw;

    border-radius: 1vw;

    font-weight: bold;

}



.event-title {

    color: #ffffff;

    font-size: 4.5vw;

    margin: 0;

    font-weight: bold;

}



.event-body {

    color: #dddddd;

    font-size: 3.5vw;

    line-height: 1.6;

    white-space: pre-wrap;

}



.event-image {

    width: 100%;

    border-radius: 2vw;

    margin-top: 3vw;

}



/* 🗺️ 地図エリアの魔法 */

.event-map-area {

    margin-top: 3vw;

    margin-bottom: 3vw;

}

.event-address-text {

    font-size: 3.5vw;

    font-weight: bold;

    color: #ffffff;

    margin-bottom: 0;

}

.event-map-link {

    display: inline-block;

    font-size: 3.5vw;

    color: #f39c12;

    text-decoration: none;

    margin-top: 1vw;

}



/* 1. PC閲覧制限 */

@media screen and (min-width: 768px) {

    .scroll-container, .dock-container, .app-background { display: none !important; }

    body { background-color: #222; }

    body::before {

        content: "このアプリはスマートフォン専用です。\Aスマホからアクセスしてください📱";

        white-space: pre-wrap; color: #fff; text-align: center; font-size: 24px; font-weight: bold;

        position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 1.8;

    }

}



/* 👇👇 ここにページネーション（● ○）の魔法を追加しました！ 👇👇 */

.page-indicator {

    position: fixed;

    bottom: 31vw; /* Dockのすぐ上に配置 */

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 2.5vw; /* ドット同士の間隔 */

    z-index: 100;

    pointer-events: none; /* タップの邪魔にならないようにする魔法 */

}

.dot {

    width: 2.2vw;

    height: 2.2vw;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.4); /* 非アクティブ（半透明の白） */

    transition: background-color 0.3s;

}

.dot.active {

    background-color: rgba(255, 255, 255, 1); /* アクティブ（真っ白） */

}

/* 👆👆 ここまで 👆👆 */