/* ==========================================================================
   変数定義・リセット
   ========================================================================== */
   :root {
    --main-blue: #0066ff;
    --dark-bg: #f5f5f5;
    --text-color: #333;
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'MuseoModerno', "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

/* 共通コンテナ */
.l-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header (PC)
   ========================================================================== */
header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: var(--header-height);
    background-color: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo img { height: 40px; width: auto; }

.pc-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.pc-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.3s;
}

.pc-nav a:hover { color: var(--main-blue); }

/* PCではスマホ用要素を隠す */
.hamburger, .sp-nav { display: none; }

/* ==========================================================================
   Main / Hero
   ========================================================================== */
main { padding-top: var(--header-height); }

.hero-img {
    width: 100%;
    height: 600px;
    background: var(--main-blue) url('../img/mv.gif') no-repeat center / cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 80px;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content {
    width: 100%;
    z-index: 5;
    animation: fadeIn 2s ease-out forwards;
}

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

.badge-link img {
    height: 55px;
    width: auto;
    transition: transform 0.2s ease;
}

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

/* ==========================================================================
   Banners
   ========================================================================== */
.banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.banner-item {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ==========================================================================
   News & Introduction (共通レイアウト)
   ========================================================================== */
.news, .intro {
    display: flex;
    padding: 100px 0;
    gap: 80px;
    align-items: flex-start;
}

/* タイトルエリア固定幅 */
.section-title-area, .intro-visual {
    flex: 0 0 350px;
}

/* News 独自の調整 (指定の margin: 0 15%) */
.news { margin: 0 15%; }

.section-title h2, .intro-title {
    font-size: 4rem;
    font-family: 'MuseoModerno';
    line-height: 1;
}

.view-all { 
    display: inline-block;
    margin-top: 15px;
    padding: 8px 25px;
    border: 1px solid var(--main-blue);
    border-radius: 25px;
    color: var(--main-blue);
    text-decoration: none;
    font-size: 0.8rem;
}

/* News List デザイン */
.news-list { flex: 1; }

.news-item-row { border-bottom: 1px solid #eee; }

.news-item-row a {
    display: flex;
    align-items: center;
    padding: 20px 0;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.news-item-row a:hover {
    transform: translateX(10px);
    background-color: rgba(0, 102, 255, 0.03);
}

.news-item-row .date {
    flex: 0 0 120px;
    font-weight: bold;
    color: var(--main-blue);
}

.news-item-row .label {
    padding: 2px 12px;
    font-size: 0.75rem;
    background: #333;
    color: #fff;
    margin-right: 20px;
    border-radius: 2px;
}

/* Introduction 独自の調整 */
.intro-title { font-weight: 400; font-size: 5rem; line-height: 0.9; color: var(--main-blue); }
.intro-sub { font-size: 1.1rem; color: var(--main-blue); margin-left: 5px; }
.intro-text { flex: 1; color: var(--main-blue); line-height: 2; padding-top: 15px; }
.intro-text p { margin-bottom: 1.5rem; }

/* ==========================================================================
   Character
   ========================================================================== */
.character-sec {
    background-color: #2d2d2d;
    color: #fff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    border-radius: 50% 50% 0 0 / 15% 15% 0 0;
    margin-top: 100px;
}

.char-header-text {
    position: absolute;
    top: 90px; left: 50%;
    transform: translateX(-50%);
    font-family: 'MuseoModerno', sans-serif;
    font-size: 4rem; /* 指定されたサイズ */
    font-weight: 900;
    opacity: 0.1;
    white-space: nowrap;
}

.char-inner { position: relative; z-index: 2; text-align: center; }

.char-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 90px;
}

.char-box {
    aspect-ratio: 1 / 1;
    background-color: #e6e6e6;
}

.char-description { font-size: 1rem; line-height: 2; opacity: 0.9; }

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer { background: var(--main-blue); color: #fff; padding: 60px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-nav { display: flex; list-style: none; gap: 30px; flex-wrap: wrap; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: bold; }

/* ==========================================================================
   Mobile (768px以下) - メディアクエリを統合
   ========================================================================== */
@media (max-width: 768px) {
    /* Header/Nav */
    .pc-nav { display: none; }
    .hamburger {
        display: flex; flex-direction: column; justify-content: center;
        gap: 6px; background: none; border: none; cursor: pointer;
        z-index: 2000; position: relative;
    }
    .hamburger span { width: 30px; height: 2px; background: var(--main-blue); transition: 0.3s; }
    .menu-text { color: var(--main-blue); font-size: 10px; font-weight: bold; text-transform: uppercase; }
    .close-text { display: none; color: #fff; font-size: 10px; margin-top: 5px; }

    /* Hamburger Active */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }
    .hamburger.active .menu-text { display: none; }
    .hamburger.active .close-text { display: block; }

    /* SP Menu */
    .sp-nav {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--main-blue); z-index: 1500;
        opacity: 0; visibility: hidden; transition: 0.4s ease-in-out;
        padding: 100px 40px; overflow-y: auto;
    }
    .sp-nav.active { opacity: 1; visibility: visible; }
    .sp-nav-links { list-style: none; margin-bottom: 50px; }
    .sp-nav-links a {
        color: #fff; text-decoration: none; font-size: 2.2rem; font-weight: 900;
        display: block; margin-bottom: 30px; line-height: 1;
    }
    .sp-nav-links span { font-size: 0.9rem; display: block; font-weight: normal; margin-top: 5px; opacity: 0.8; }

    .sns-links { display: flex; justify-content: space-around; list-style: none; margin-top: 30px; }
    .sns-links a { color: #fff; text-decoration: none; text-align: center; font-size: 0.7rem; }
    .sns-links i { 
        display: block; font-size: 2rem; margin-bottom: 8px;
        background: #fff; color: var(--main-blue); 
        width: 50px; height: 50px; line-height: 50px; border-radius: 10px;
    }

    /* Hero / Badges */
    .hero-img { height: 80vh; padding-bottom: 40px; justify-content: center; }
    .store-badges { gap: 10px; }
    .badge-link img { height: 40px; }

    /* Layout stack */
    .banners { grid-template-columns: 1fr; margin-top: 20px; padding: 0 20px; }
    .news, .intro { flex-direction: column; padding: 60px 0; gap: 30px; margin: 0; }
    .section-title-area, .intro-visual { flex: none; width: 100%; }
    .intro-title { font-size: 3.5rem; }
    .news-item-row a { flex-direction: column; align-items: flex-start; }

    /* Character SP */
    .character-sec { padding: 120px 0 80px; border-radius: 50% 50% 0 0 / 5% 5% 0 0; }
    .char-header-text { font-size: 3.5rem; top: 30px; }
    .char-grid { grid-template-columns: 1fr; margin: 0 auto; width: 80%; }

    /* Footer SP */
    .footer-content { flex-direction: column; gap: 40px; text-align: center; }
    .footer-nav { justify-content: center; }
}

/* --- スクロールアニメーション用 --- */

/* 1. 最初は隠しておく（下から30pxの位置に透明で待機） */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* 2. 画面内に入った時に付与するクラス（元の位置に戻りつつ表示） */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 1. bodyをFlexboxにして、画面の高さを最小100%にする */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 画面全体の高さを確保 */
    
    /* 既存の設定はそのまま残す */
    font-family: 'MuseoModerno', "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

/* 2. main要素に「余ったスペースをすべて使う」指示を出す */
main {
    flex: 1; /* これでmainが伸びて、footerを下に押し出します */
    padding-top: var(--header-height);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
   .faq-section {
    display: flex;
    padding: 100px 0;
    gap: 80px;
}

.faq-list {
    flex: 1;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

/* 質問（Q）のスタイル */
.faq-question {
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.q-icon {
    font-family: 'MuseoModerno', sans-serif;
    background-color: var(--main-blue);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* 回答（A）のスタイル */
.faq-answer {
    padding-left: 47px; /* アイコン(32px) + gap(15px) 分のインデント */
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

/* --- Mobile FAQ (768px以下) --- */
@media (max-width: 768px) {
    .faq-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        padding-left: 0; /* スマホではインデントを解除して読みやすく */
        margin-top: 10px;
    }
}

/* キャラクターのグリッド配置 */
.char-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 80px 0; /* 上下の余白を調整 */
}

/* 画像を包む正方形の箱 */
.char-box {
    aspect-ratio: 1 / 1; /* 正方形を維持 */
    background-color: #333; /* 透過画像の場合の背景色（暗めがカッコいい） */
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.1); /* 隠し味程度の枠線 */
    transition: border-color 0.3s ease;
}

/* 画像の設定 */
.char-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいに隙間なく表示 */
    display: block;
    filter: grayscale(20%); /* ほんの少し彩度を落とすと雰囲気が深まります */
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* ホバー時の演出（画像を明るく、少しズーム） */
.char-box:hover img {
    transform: scale(1.08);
    filter: grayscale(0%); /* ホバーで色が鮮やかになる演出 */
}

.char-box:hover {
    border-color: var(--main-blue); /* ホバーで枠を青く光らせる */
}

@media (max-width: 768px) {
    /* --- CHARACTER スマホ版の修正 --- */
    
    .char-grid {
        display: grid;
        grid-template-columns: 1fr; /* ★3列から1列（縦並び）に変更 */
        gap: 40px;                  /* キャラ同士の上下の隙間 */
        width: 70%;                 /* 画面幅に対するキャラの大きさ（お好みで調整） */
        margin: 40px auto;          /* 左右中央に配置 */
    }

    .char-box {
        width: 100%;                /* 横幅いっぱいまで広げる */
        aspect-ratio: 1 / 1;        /* 正方形を維持 */
        border-radius: 10px;        /* 角を少し丸くするとスマホで見栄えが良いです */
    }

    /* 背景の巨大文字がスマホで邪魔な場合は少し小さく調整 */
    .char-header-text {
        font-size: 4rem;
        top: 20px;
    }

    .char-description {
        padding: 0 10%;
        line-height: 1.8;
    }
}