:root {
    --osaka-yellow: #FFE600;
    --osaka-red: #EE1C25;
    --osaka-blue: #009FE8;
    --osaka-black: #222;
    --bg-dot-size: 40px;
}

* {
    box-sizing: border-box;
}

.pc_only {
    display: none;
}

.sp_only {
    display: none;
}

@media screen and (max-width: 768px) {
    .pc_only {
        display: none;
    }

    .sp_only {
        display: block;
    }
}

html {
    font-size: 18px;
    /* 横スクロール強制禁止 */
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    background-color: var(--osaka-yellow);
    background-image: radial-gradient(var(--osaka-red) 20%, transparent 20%), radial-gradient(var(--osaka-red) 20%, transparent 20%);
    background-position: 0 0, 20px 20px;
    background-size: var(--bg-dot-size) var(--bg-dot-size);
    color: var(--osaka-black);
    overflow-x: hidden;
    width: 100%;
    letter-spacing: 0.08em;
    line-height: 1.8;
}

/* --- フォント設定 --- */
h1 {
    font-family: 'Dela Gothic One', sans-serif;
    letter-spacing: 0.05em;
}

h2 {
    font-family: 'Mochiy Pop P One', sans-serif;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

h3 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* --- 共通 --- */
.gaya-text {
    text-shadow: 2px 2px 0 #FFF, 4px 4px 0 var(--osaka-black);
}

.section-wrapper {
    position: relative;
    max-width: 900px;
    width: 90%;
    margin: 60px auto;
    /* ひょっこり要素を後ろに隠すために必要 */
    z-index: 5;
}

.section-box {
    background: #fff;
    border: 5px solid var(--osaka-black);
    box-shadow: 12px 12px 0 var(--osaka-black);
    border-radius: 20px;
    padding: 50px 30px;
    position: relative;
    z-index: 10;
    /* ひょっこり要素より手前に */
}

/* --- 画像プレースホルダー --- */
.img-placeholder {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
}

/* --- メインビジュアル --- */
.hero {
    width: 100%;
    /* 100vwから変更（スクロールバー対策） */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(circle, #fff 0%, var(--osaka-yellow) 80%);
    padding: 20px;
}

/* --- メインビジュアルの浮遊アイコン --- */
.float-icon {
    position: absolute;
    width: 400px;
    /* デフォルトサイズ（PC用） */
    height: 400px;
    /* デフォルトサイズ（PC用） */
    z-index: 20;
    pointer-events: none;
}

.float-icon img {
    width: 100%;
    height: auto;
    display: block;
}

/* 動きのバリエーション */
@keyframes floatA {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatB {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* 配置とアニメーション設定 */
.pos-1 {
    width: 15%;
    height: auto;
    top: 10%;
    left: 5%;
    animation: floatA 3s infinite ease-in-out;
}

.pos-2 {
    width: 15%;
    height: auto;
    top: 10%;
    right: 5%;
    animation: floatB 4s infinite ease-in-out 0.5s;
}

.pos-3 {
    width: 25%;
    height: auto;
    top: 43%;
    left: 5%;
    animation: floatB 3.5s infinite ease-in-out 1s;
}

.pos-4 {
    width: 20%;
    height: auto;
    top: 45%;
    right: 0;
    animation: floatA 4.5s infinite ease-in-out 1.5s;
}

.pos-5 {
    width: 23%;
    height: auto;
    bottom: -5%;
    left: 0;
    animation: floatA 3.2s infinite ease-in-out 0.2s;
}

.pos-6 {
    width: 35%;
    height: auto;
    bottom: -3%;
    right: 0;
    animation: floatB 3.8s infinite ease-in-out 0.8s;
}

.pos-7 {
    width: 20%;
    top: 7%;
    left: 25%;
    height: auto;
    animation: floatB 5s infinite ease-in-out;
}

.pos-8 {
    bottom: 0;
    right: 35%;
    width: 20%;
    height: auto;
    animation: floatA 4.2s infinite ease-in-out;
}

.pos-9 {
    top: 60%;
    left: 25%;
    width: 10%;
    height: auto;
    animation: floatA 4.2s infinite ease-in-out;
}

.pos-10 {
    top: 3%;
    right: 30%;
    width: 17%;
    height: auto;
    animation: floatA 4.2s infinite ease-in-out;
}

/* --- ひょっこりアニメーション要素 --- */
.peek-obj {
    position: absolute;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    width: 200px;
    height: 200px;
}

.peek-obj img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 左上（維持） */
.peek-top-left {
    top: -50px;
    left: -30px;
    transform: translate(30px, 30px) rotate(-10deg);
    opacity: 0;
}

.peek-top-left.visible {
    transform: translate(-50px, -80px) rotate(-15deg);
    opacity: 1;
}

/* 右から（維持） */
.peek-right {
    top: 20%;
    right: 0;
    transform: translate(-50px, 0);
    opacity: 0;
}

.peek-right.visible {
    transform: translate(80px, 0) rotate(10deg);
    opacity: 1;
}

/* 左下 */
.peek-bottom-left {
    top: 20px;
    left: -40px;
    transform: translate(0, 0);
    opacity: 0;
}

.peek-bottom-left.visible {
    transform: translate(-90px, 50px) rotate(-20deg);
    opacity: 1;
}

/* ★右上から上に飛び出す（回転なし・跳ねない）★ */
.peek-top-right {
    top: 0;
    right: 30px;
    transform: translate(0, 50px);
    opacity: 0;
    /* 素直な動き */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.peek-top-right.visible {
    transform: translate(0, -200px);
    opacity: 1;
}

.hero-img-container {
    width: 80%;
    max-width: 600px;
    margin-bottom: 10px;
    animation: heroBounce 1.5s infinite alternate ease-in-out;
    z-index: 30;
    position: relative;
}

.hero-img-container img {
    width: 100%;
    height: auto;
    border: 8px solid white;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--osaka-red);
    text-shadow: 5px 5px 0 #FFF, 10px 10px 0 var(--osaka-black);
    line-height: 1.1;
    z-index: 30;
    margin: 10px 0 30px 0;
}

.theme-tag {
    font-size: 1.5vw;
    background: #000;
    color: #fff;
    padding: 15px 40px;
    transform: rotate(2deg);
    border-radius: 50px;
    border: 3px solid white;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    z-index: 30;
}

/* 下見てってや */
.scroll-down-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: arrowJump 0.8s infinite alternate;
    z-index: 50;
}

.scroll-text {
    font-size: 1.2rem;
    font-weight: 900;
    background: #fff;
    padding: 5px 15px;
    border: 2px solid #000;
    border-radius: 20px;
    margin-bottom: 5px;
    white-space: nowrap;
}

.scroll-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #000;
}

@keyframes arrowJump {
    from {
        transform: translateX(-50%) translateY(0);
    }

    to {
        transform: translateX(-50%) translateY(10px);
    }
}

/* --- マーキー --- */
.marquee {
    background: var(--osaka-black);
    color: var(--osaka-yellow);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-2deg);
    margin: 40px 0;
    width: 110%;
    margin-left: -5%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 20;
}

.marquee-content {
    display: inline-block;
    /* 時間を少し短くしてスピード感を出しても良いかもです */
    animation: marquee 20s linear infinite;
    font-size: 2.5rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    letter-spacing: 0.15em;
    /* アニメーション開始直後のチラつき防止 */
    padding-left: 0;
}

@keyframes marquee {

    /* 修正：100%（自身の幅）ではなく 100vw（画面幅）を始点にする */
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- 導入 --- */
.intro {
    text-align: center;
    font-size: 1.3rem;
    line-height: 2.4;
}

.intro span {
    background: var(--osaka-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 1.4rem;
    margin: 0 5px;
}

/* --- TIME LIMIT --- */
.time-limit-section {
    background: #000;
    border: 10px solid #FFE600;
    outline: 5px solid #000;
    border-radius: 10px;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 230, 0, 0.5);
}

.time-header {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 3rem;
    color: #FFE600;
    text-shadow: 0 0 10px #FFE600;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    line-height: 1;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.count-box {
    background: #333;
    border: 2px solid #555;
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
}

.count-num {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    line-height: 1;
    display: block;
}

.count-label {
    color: #FFE600;
    font-size: 1rem;
    font-weight: bold;
}

.info-panel {
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 5px;
    transform: rotate(-1deg);
    box-shadow: 5px 5px 0 #888;
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.info-row {
    border-bottom: 2px dashed #ccc;
    padding: 10px 0;
    font-size: 1.4rem;
    font-weight: 900;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    display: inline-block;
    background: var(--osaka-red);
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 1rem;
    vertical-align: middle;
    margin-right: 10px;
    transform: skew(-10deg);
}

/* --- アクセス --- */
.access-block {
    margin-bottom: 40px;
}

.access-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.icon-box-small {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.icon-box-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.access-label {
    font-size: 1.5rem;
    background: var(--osaka-black);
    color: var(--osaka-yellow);
    padding: 5px 20px;
    transform: skew(-10deg);
    display: inline-block;
}

.access-label span {
    display: block;
    transform: skew(10deg);
}

.access-text {
    font-size: 1.3rem;
    padding-left: 10px;
    line-height: 1.6;
}

.highlight {
    font-size: 1.5rem;
    color: var(--osaka-blue);
    background: linear-gradient(transparent 70%, #bceeff 70%);
}

.map-box {
    background: #f0f0f0;
    height: 350px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    border: 4px dashed #333;
    border-radius: 10px;
    font-size: 1.2rem;
}

/* --- フッター --- */
.footer-msg {
    width: 100%;
    text-align: center;
    padding: 120px 20px;
    background: var(--osaka-red);
    color: #fff;
    position: relative;
}

.footer-msg h2 {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    transform: rotate(-3deg);
    -webkit-text-stroke: 3px var(--osaka-black);
    text-shadow: 5px 5px 0 #000;
    letter-spacing: 0.1em;
    line-height: 1.4;
    color: #fff;
}

/* --- セクションアニメーション --- */
.slide-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in.from-left {
    transform: translateX(-50px);
}

.slide-in.from-right {
    transform: translateX(50px);
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
           ここからレスポンシブ対応（スマホ・タブレット用）
           ========================================= */
@media screen and (max-width: 768px) {

    /* ベースの文字サイズを少し小さくして調整 */
    html {
        font-size: 14px;
    }

    /* ヒーローセクション */

    .theme-tag {
        font-size: 1.15rem;
        padding: 10px 20px;
        width: 100%;
        /* 幅を広めに */
    }

    /* 浮遊アイコンのサイズ調整（PC比率だと小さすぎるので大きくする） */
    .pos-1 {
        width: 50% !important;
        top: 20%;
    }

    .pos-2 {
        width: 50% !important;
        top: 20%;
        right: -5%;
    }

    .pos-3 {
        width: 50% !important;
    }

    .pos-4 {
        width: 50% !important;
        right: -15%;
    }

    .pos-5 {
        width: 50% !important;
        left: -10%;
    }

    .pos-6 {
        width: 100% !important;
        right: -30%;
    }

    .pos-7 {
        width: 50% !important;
        top: 2%;
        left: 5%;
    }

    .pos-8 {
        width: 50% !important;
        bottom: 14%;
        right: 52%;
    }

    .pos-9 {
        width: 30% !important;
        top: 30%;
        left: -2%;
    }

    .pos-10 {
        top: 3%;
        right: 5%;
        width: 30% !important;
    }

    /* マーキー（文字サイズ調整） */
    .marquee-content {
        font-size: 1.5rem;
    }

    @keyframes marquee {
        0% {
            transform: translateX(100vw);
        }

        100% {
            transform: translateX(-100%);
        }
    }

    /* セクション共通 */
    .section-wrapper {
        margin: 40px auto;
    }

    .section-box {
        padding: 2rem 1rem;
        margin: 0 auto;
        width: 100%;
    }

    /* ひょっこり画像のサイズ調整（スマホでデカすぎないように） */
    .peek-obj {
        width: 120px;
        height: 120px;
    }

    /* 移動距離の調整 */
    .peek-top-right.visible {
        transform: translate(0, -120px);
        right: 0;
    }

    .peek-bottom-left {
        top: 40px;
        left: auto;
        right: 0;
    }

    .peek-bottom-left.visible {
        transform: translate(30px, 50px) rotate(10deg);
        z-index: 13;
    }

    /* TIME LIMIT */
    .time-header {
        font-size: 2rem;
        text-shadow: none;
    }

    .count-num {
        font-size: 2.5rem;
    }

    .count-box {
        min-width: 60px;
        padding: 5px;
    }

    .info-panel {
        padding: 15px;
    }

    .info-row {
        font-size: 1.1rem;
    }

    /* アクセス */
    .access-label {
        font-size: 1.2rem;
        padding: 5px 15px;
    }

    .access-text {
        font-size: 1rem;
        padding-left: 0;
    }

    .map-box {
        height: 250px;
    }

    /* フッター */
    .footer-msg {
        padding: 80px 20px;
    }

    .footer-msg h2 {
        -webkit-text-stroke: 1px var(--osaka-black);
    }

    .footer-msg .img-placeholder {
        width: 80px;
        height: 80px;
        bottom: 10px;
        right: 10px;
    }
}

/* タブのスタイル */
.tab-container {
    display: flex;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    border: 3px solid var(--osaka-black);
    background: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
}

.tab-btn.active {
    background: var(--osaka-yellow);
    box-shadow: 4px 4px 0 var(--osaka-black);
    transform: translateY(-2px);
}

/* コンテンツの切り替え */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ルート案内（横スクロール形式） */
.route-step-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0 20px 0;
    -webkit-overflow-scrolling: touch;
}

.route-step {
    flex: 0 0 300px;
    /* PC/SP共通で適度なサイズ */
    background: #f9f9f9;
    border: 2px solid var(--osaka-black);
    border-radius: 10px;
    padding: 10px;
}

.route-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.route-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* スクロールバーのデザイン（任意） */
.route-step-container::-webkit-scrollbar {
    height: 8px;
}

.route-step-container::-webkit-scrollbar-thumb {
    background: var(--osaka-black);
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .route-step {
        flex: 0 0 310px;
        /* PC/SP共通で適度なサイズ */
    }

    .tab-btn {
        padding: 5px;
    }
}

#footer {
    display: none;
}