/* 基本設定 */
body {
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: #FFF9F0;
    overflow-x: hidden;
}

/* 動きのある背景パターン */
.bg-pattern {
    background-image: radial-gradient(#FFD166 2px, transparent 2px), radial-gradient(#06D6A0 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.15;
    animation: bgScroll 20s linear infinite;
}

@keyframes bgScroll {
    0% {
        background-position: 0 0, 20px 20px;
    }

    100% {
        background-position: 40px 40px, 60px 60px;
    }
}

/* ふわふわ浮かぶアニメーション */
.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-delay-1 {
    animation-delay: 1s;
}

.float-anim-delay-2 {
    animation-delay: 2s;
}

.float-anim-delay-3 {
    animation-delay: 3s;
}

@keyframes float {

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

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

/* ポップなボタンの動き */
.btn-bounce:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 0 #E5E5E5;
}

.btn-bounce:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 0 #E5E5E5;
}

/* スクロール時の出現アニメーション */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* カスタムカラー */
.text-brand-blue {
    color: #118AB2;
}

.bg-brand-blue {
    background-color: #118AB2;
}

.text-brand-yellow {
    color: #FFD166;
}

.bg-brand-yellow {
    background-color: #FFD166;
}

.text-brand-red {
    color: #EF476F;
}

.bg-brand-red {
    background-color: #EF476F;
}

.text-brand-green {
    color: #06D6A0;
}

.bg-brand-green {
    background-color: #06D6A0;
}

.bg-brand-orange {
    background-color: #FF9F1C;
}

/* 新規追加：野菜っぽいオレンジ */
.text-brand-orange {
    color: #FF9F1C;
}

/* テキストカラー追加 */

/* タブレットモックアップ用CSS (横画面iPad風) */
.mockup-tablet {
    border: 12px solid #333;
    border-radius: 32px;
    overflow: hidden;
    background: white;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* 横長のアスペクト比 */
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
}

.mockup-camera-side {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 60px;
    /* 左側のベゼルにカメラがある風の装飾 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.camera-dot {
    width: 6px;
    height: 6px;
    background: #111;
    border-radius: 50%;
    margin-left: 4px;
}

/* リストのチェックマーク */
.check-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}

.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #06D6A0;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* LLMボタン用の特殊なスタイル */
.llm-button {
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #d97706;
    /* 濃いオレンジのシャドウ */
}

.llm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #d97706;
}

.llm-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #d97706;
}

/* キャラクター画像用ユーティリティ */
.char-img-sm {
    width: 80px;
    height: auto;
}

.char-img-md {
    width: 120px;
    height: auto;
}

.char-img-lg {
    width: 180px;
    height: auto;
}

/* ふわふわ浮かぶアニメーション（画像用調整） */
.float-anim {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* スクリーンショットギャラリー用のスタイル */
.screenshot-track {
    display: flex;
    width: 200%;
    /* 2倍の幅でシームレスなループを可能にする */
    animation: scroll-x 40s linear infinite;
}

.screenshot-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-x {
    0% {
        transform: translateX(0);
    }

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

.screenshot-item {
    flex-shrink: 0;
    width: 300px;
    /* アイテムの固定幅 */
    aspect-ratio: 4 / 3;
    /* iPad横向き比率 */
    margin-right: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* モックアップ画面の装飾用 */
.mockup-game-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
}

/* 画像拡大モーダル */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #FF9F1C;
}