@charset "UTF-8";

/* =======================================================
   Variables (パステル・夢幻カジュアル・暖色系)
======================================================= */
:root {
    --color-primary: #8e54e9;
    /* 夢幻的な紫 */
    --color-secondary: #4776E6;
    /* 鮮やかな青 */
    --color-accent: #FF9A9E;
    /* 暖色系のアクセント（ピンク） */
    --color-text: #333333;
    --color-text-invert: #FFFFFF;
    --color-bg: #fcf9ff;
    /* 全体の薄い背景色 */
    --color-bg-dark: #1e144a;
    /* 宇宙・夜空系の濃い背景 */
    --color-border: #e0d4f5;

    --font-base: 'M PLUS Rounded 1c', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-round: 50%;

    --shadow-soft: 0 8px 24px rgba(142, 84, 233, 0.15);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =======================================================
   Reset & Base
======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* スムーススクロール */
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================================
   Typography & Common
======================================================= */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.section-title img {
    max-width: 100%;
    max-height: 160px;
    height: auto;
    filter: drop-shadow(2px 2px 0px rgba(255, 154, 158, 0.3));
}

.section-title span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.1em;
    margin-top: 5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #FECFEF 100%);
    color: var(--color-text-invert);
    border: 2px solid #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 154, 158, 0.4);
}

.btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-invert);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }

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

    100% {
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* =======================================================
   Header / Navigation
======================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    /* 初期状態は非表示（透明＆上に隠す） */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s ease-in-out;
}

/* スクロール時の表示状態 */
.header.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.global-nav ul {
    display: flex;
    gap: 20px;
}

.global-nav a {
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.95rem;
}

.global-nav a:hover {
    color: var(--color-accent);
}

/* =======================================================
   1. Hero Section
======================================================= */
.hero-section {
    height: 100vh;
    min-height: 600px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    /* Cover entire screen */
}

/* パララックス風背景 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark) url('../images/hero-bg.jpg') no-repeat center center / cover;
    background-attachment: fixed;
    /* Parallax effect */
    z-index: -1;
}

/* 背景画像がない場合のフォールバック（星空グラデーション） */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 20, 74, 0.3) 0%, rgba(71, 118, 230, 0.6) 100%);
    z-index: 0;
}

/* ヒーローキャラクターアニメーション */
.hero-characters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* キャラクターへのクリックイベントを無効化 */
    overflow: hidden;
}

.hero-chara {
    position: absolute;
    will-change: transform;
}

/* エルフ (左上) */
.hero-chara-elfu {
    top: 15%;
    left: 10%;
    width: 140px;
    animation: floatElfu 4s ease-in-out infinite alternate;
}

/* ドラゴン (左下) */
.hero-chara-dragon {
    bottom: 15%;
    left: 5%;
    width: 180px;
    animation: floatDragon 5s ease-in-out infinite alternate;
}

/* ハムスター (中央) */
.hero-chara-hamu {
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 中央寄せのベース */
    width: 320px;
    animation: floatHamu 3.5s ease-in-out infinite alternate;
}

/* ウサギ (右上) */
.hero-chara-usagi {
    top: 20%;
    right: 5%;
    width: 160px;
    animation: floatUsagi 4.5s ease-in-out infinite alternate;
}

/* アニメーションキーフレーム (少しずつ動きを変える) */
@keyframes floatElfu {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

    100% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes floatDragon {
    0% {
        transform: translateY(0px) rotate(2deg);
    }

    100% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes floatHamu {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(-25px);
    }
}

@keyframes floatUsagi {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-18px) rotate(-4deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 50px;
}

.hero-logo-container {
    margin-bottom: 40px;
    animation: float 4s ease-in-out infinite;
}

.hero-logo {
    max-width: 80%;
    width: 600px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-pre-order {
    margin-bottom: 30px;
    animation: float 4s ease-in-out infinite;
    animation-delay: 0.5s;
    /* ロゴと少しずらして動かす */
}

.pre-order-img {
    max-width: 60%;
    width: 400px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.store-badge img {
    height: 60px;
    transition: transform 0.2s;
}

.a_btn_yoyaku img {
    /* 正方形のアイコンが横長のバッジと並んだ際に違和感のないよう高さを合わせる */
    height: 60px;
    width: auto;
    border-radius: 12px; /* アイコンの角丸に合わせる（画像自体が角丸でない場合のため） */
}

.store-badge:hover img {
    transform: scale(1.05);
}

.hero-start-dash {
    margin-top: 20px;
}

.start-dash-link {
    display: inline-block;
}

.start-dash-img {
    max-width: 80%;
    width: 450px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    border-radius: var(--radius-md);
    transition: transform 0.2s;
}

.start-dash-link:hover .start-dash-img {
    transform: scale(1.05);
}

.hero-pre-order-10 {
    margin-top: 30px;
}

.pre-order-10-img {
    max-width: 70%;
    width: 350px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* =======================================================
   2. Pre-register Section
======================================================= */
.preregister-section {
    background: url('../images/ss_bg_1.jpg') no-repeat center center / cover;
    position: relative;
    z-index: 1;
}



.preregister-content {
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 4px solid var(--color-border);
}

.preregister-img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    cursor: pointer;
}

/* Modal (事前登録画像拡大用) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.is-show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-accent);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =======================================================
   3. News Section
======================================================= */
.news-section {
    background: #fff;
}

.news-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.news-list-area {
    flex: 1;
    min-width: 300px;
}

.news-list li {
    border-bottom: 1px dashed var(--color-border);
}

.news-list a {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.news-list a:hover {
    background: rgba(142, 84, 233, 0.05);
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-right: 15px;
}

.news-category {
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 12px;
    color: #fff;
    margin-right: 15px;
    white-space: nowrap;
}

.tag-update {
    background-color: var(--color-secondary);
}

.tag-campaign {
    background-color: var(--color-accent);
}

.tag-info {
    background-color: var(--color-primary);
}

.news-title {
    font-weight: 700;
}

.news-sns-area {
    width: 300px;
}

.btn-sns-x {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
}

.btn-sns-x:hover {
    transform: translateY(-5px);
}

/* キラッと光るエフェクト */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

/* =======================================================
   4. Story & World Section
======================================================= */
.story-section {
    background: var(--color-bg-dark);
    color: var(--color-text-invert);
    position: relative;
    overflow: hidden;
}

.story-section .section-title {
    color: #fff;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.story-section .section-title span {
    color: #aebce8;
}

.story-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/ss_bg_4.jpg') no-repeat center center / cover;
    opacity: 0.4;
    z-index: 0;
}

.story-container {
    position: relative;
    z-index: 1;
}

.story-content {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
}

.story-picture {
    display: block;
    width: 100%;
}

.story-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.story-text-box p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-image-wrap {
    margin-top: 30px;
}

/* =======================================================
   5. Characters Section
======================================================= */
.chara-section {
    background: url('../images/ss_bg_3.jpg') no-repeat center center / cover;
    position: relative;
    z-index: 1;
}



.chara-section .section-title {
    color: var(--color-primary);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

.chara-swiper {
    width: 100%;
    padding-bottom: 40px; /* ページネーション用 */
    margin-top: 40px;
}

.chara-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 5px solid var(--color-primary);
    height: auto; /* Swiperスライドの高さを揃えるため */
    opacity: 0.5; /* 非アクティブ時は少し薄くする */
    transform: scale(0.9); /* 少し小さく見せる */
}

.swiper-slide-active.chara-card {
    opacity: 1;
    transform: scale(1);
}

.chara-card:hover {
    transform: translateY(-10px) scale(1); /* ホバー時は通常サイズで上へ */
}

/* PC等広い画面の時は全カードを通常表示に戻す */
@media (min-width: 768px) {
    .chara-card {
        opacity: 1;
        transform: scale(1);
    }
}

/* ページネーションの色設定 */
.chara-pagination.swiper-pagination-bullets {
    bottom: 0;
}
.chara-pagination .swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.3;
}
.chara-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.chara-img-wrap {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.chara-img-wrap img {
    height: 200px;
    width: auto;
    object-fit: contain;
}

.chara-name {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.chara-desc {
    font-size: 0.95rem;
    color: #555;
}

/* =======================================================
   6. System Section (Swiper)
======================================================= */
.system-section {
    background: url('../images/ss_bg_2.jpg') no-repeat center center / cover;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Swiperがはみ出ないように */
    color: #fff;
}



.system-desc {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.system-swiper {
    width: 100%;
    padding-bottom: 50px;
    /* ページネーション用スペース */
}

.system-swiper .swiper-slide {
    width: 260px;
    /* スマホ画面想定の幅 */
    display: flex;
    justify-content: center;
    transition: opacity 0.3s;
}

.system-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.5;
}

.system-swiper .swiper-slide img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 4px solid #fff;
}

/* Swiper custom colors */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: #fff;
}

/* =======================================================
   Footer
======================================================= */
.footer {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.app-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}

.app-icon img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.app-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-text-invert);
}

.app-specs {
    font-size: 0.85rem;
    color: #ccc;
}

.app-specs li {
    display: flex;
    margin-bottom: 2px;
}

.spec-label {
    width: 120px;
    flex-shrink: 0;
}

.spec-val {
    color: #fff;
}

.footer .store-badges {
    justify-content: flex-start;
    margin-top: 25px;
    gap: 15px;
}

.footer .store-badge img {
    height: 45px;
}

.footer-links ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* =======================================================
   Responsive (for SP)
======================================================= */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .header {
        height: auto;
        padding: 10px 0;
    }

    .global-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .global-nav a {
        font-size: 0.8rem;
    }

    .hero-section {
        margin-top: 0;
        height: 100vh;
    }

    .hero-content {
        margin-top: 10px;
    }

    .hero-logo-container {
        margin-bottom: 20px;
    }

    .hero-logo {
        width: 250px;
    }

    .hero-pre-order {
        margin-bottom: 15px;
    }

    .pre-order-img {
        width: 200px;
    }

    .hero-start-dash {
        margin-top: 15px;
    }

    .start-dash-img {
        width: 280px;
    }

    .hero-pre-order-10 {
        margin-top: 15px;
    }

    .pre-order-10-img {
        width: 220px;
    }

    .hero-bg {
        background-image: url('../images/hero-bg-mb.jpg');
        background-attachment: scroll;
        /* モバイルでの表示安定化のため */
    }

    /* キャラクターのスマホ向け調整 */
    .hero-chara-elfu {
        width: 90px;
        top: 12%;
        left: -2%;
    }

    .hero-chara-dragon {
        width: 130px;
        bottom: 20%;
        left: -5%;
    }

    .hero-chara-hamu {
        width: 220px;
        top: 12%;
        left: 50%;
    }

    .hero-chara-usagi {
        width: 110px;
        top: 18%;
        right: -2%;
    }

    .store-badges {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .store-badge img {
        height: 40px;
        /* 画面幅に収まるよう調整 */
    }

    .section {
        padding: 60px 0;
    }

    .section-title img {
        max-width: 75%; /* タイトル画像が横幅いっぱいにならないよう調整 */
    }

    .preregister-content {
        padding: 15px;
    }

    .preregister-img {
        margin-bottom: 15px;
    }

    .story-content {
        padding: 30px 20px;
    }

    .footer-top {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .app-info {
        flex-direction: column;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .footer .store-badges {
        justify-content: center;
        width: 100%;
    }

    .footer-links {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-links ul {
        justify-content: center;
    }

    .spec-label {
        width: 100%;
        margin-bottom: 2px;
    }

    .app-specs li {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .news-sns-area {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .news-sns-area .btn-sns-x {
        max-width: 300px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .news-sns-area .btn-sns-x img {
        max-width: 100%;
        height: auto;
    }
}
/* =======================================================
   Scroll Reveal Animations
======================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 順番に表示させるためのディレイ (必要に応じてHTMLに付与) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
