/* --- 背景図形 (元のコードを維持) --- */
html::before { content: ''; position: fixed; bottom: -40px; left: -40px; width: 250px; height: 250px; background: #34A853; z-index: -1; transform: rotate(45deg); pointer-events: none; }
html::after { content: ''; position: fixed; bottom: -30px; right: -30px; width: 200px; height: 200px; background: #4285F4; clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); z-index: -1; pointer-events: none; }
body::before { content: ''; position: fixed; top: -50px; left: -50px; width: 200px; height: 200px; background: radial-gradient(circle, #FBBC05, #FBBC05); border-radius: 50%; z-index: -1; pointer-events: none; }
body::after { content: ''; position: fixed; top: -30px; right: -100px; border-left: 150px solid transparent; border-right: 150px solid transparent; border-bottom: 160px solid #EA4335; z-index: -1; transform: rotate(60deg); pointer-events: none; }

/* --- ベース設定 --- */
body {
    margin: 0;
    padding: 0; /* 上のパディングを0に */
    background-color: #f1f3f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    font-family: "Google Sans", sans-serif;
}

/* --- Android Pie風 メインボックス --- */
.main-container {
    background: #ffffff;
    border-radius: 40px; /* Pieらしい深い角丸 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* 柔らかい影 */
    width: 92%; /* PC版でボックスを少し大きく */
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px; /* 内部の余白を贅沢に */
    box-sizing: border-box;
}

/* --- 紹介セクション (横並び) --- */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}
.about_text {
    flex: 1.2;
}
.about_text h2 {
    color: #1A73E8;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 20px 0;
}
.about_text b {
    color: #5f6368;
    line-height: 1.8;
}
.about_img_size {
    width: 240px;
    height: auto;
}
.about_device {
    flex: 0.8;
    display: flex;
    justify-content: center;
}
.about_device_img_size {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* --- ボタンセクション (Android Pie カプセル風) --- */
/* --- ボタンセクション (Android Pie 改良版) --- */
.button_box {
    display: flex;
    flex-direction: row; /* PCでは横並び */
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
    padding: 0 10px;
}

/* --- ボタンの基本設定 --- */
.button_main {
   text-decoration: none;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%; /* 親要素内で広げる */
   height: 60px; /* PC版も少し高さを確保 */
   border-radius: 30px; /* 綺麗なカプセル型 */
   font-weight: bold;
   transition: all 0.2s ease;
   box-sizing: border-box;
}


.button_main h1 {
    font-size: 16px;
    margin: 0;
    letter-spacing: 0.5px;
}

/* メイン：ダウンロード */
.button_main:first-child {
    background-color: #1A73E8;
    color: #ffffff;
}

/* サブ：規約・ポリシー */
.button_main:not(:first-child) {
    background-color: #ffffff;
    color: #1A73E8;
    border: 1px solid #dadce0;
}



/* タップ・ホバー時の反応 */
.button_main:active {
    transform: scale(0.96); /* 押した時に少し凹む演出 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* --- スマホ専用調整 --- */
/* --- スマホ向け調整 (ここが重要) --- */
@media (max-width: 768px) {
  .button_box {
    width: 90%; /* 左右に少し余裕を持たせる */
    gap: 16px;  /* ボタン同士の間隔を広げる */
    padding: 20px 0;
  }

  .button_main {
    height: 72px;      /* 高さを大きくして押しやすく調整 */
    font-size: 20px;   /* 文字を大きくして視認性アップ */
    border-radius: 36px; /* 高さの半分を指定してカプセル型を維持 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Android Pie風の浮き出た影 */
    margin: 0;         /* 余計なマージンをリセット */
  }

  /* タップした瞬間のフィードバック (Pieらしい動き) */
  .button_main:active {
    transform: scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}


/* --- スライダー (一番下) --- */
.carousel {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4; /* 区切り線 */
}
.carousel__viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}
.carousel__track {
    display: flex;
}
.carousel__slide img {
    height: 220px; /* スライダー画像も少し大きく */
    margin-right: 20px;
    border-radius: 12px;
    object-fit: contain;
}

/* --- レスポンシブ (スマホ) --- */
@media (max-width: 768px) {
    .main-container { padding: 30px; border-radius: 24px; }
    .about { flex-direction: column; text-align: center; }
    .button_box { flex-direction: column; }
    .button_main { width: 100%; }
}




/* ボタンの並び */
.footer-buttons {
    display: flex;
    gap: 12px;
}

/* 共通チップデザイン：Android Pie風 */
.social-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f3f4;
    color: #3c4043;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.social-chip:hover {
    background-color: #e8f0fe;
    color: #1A73E8;
    border-color: #d2e3fc;
    transform: translateY(-1px);
}

/* Discordホバー時は専用色にしてもOK（お好みで） */
.discord-button:hover {
    background-color: #EEF0FF; /* 少しだけ紫がかった青 */
    color: #5865F2; /* Discord Blurple */
    border-color: #C2C9FF;
}

.social-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* スマホ対応：フッター内の要素を中央に配置 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
    
    .footer-buttons {
        justify-content: center;
        width: 100%;
    }

    .social-chip {
        width: fit-content;
    }
}
/* --- フッターを画面最下部に固定の白い帯として配置 --- */
.main-footer {
    position: relative;
    z-index: 10; /* 図形(z-index: 1)より絶対上に持ってくる */
    background-color: #ffffff;
    width: 100%;
    border-top: 1px solid #f1f3f4;
    margin-top: 50px; /* 箱との間の隙間（背景が見える部分） */
    padding: 20px 0;
}

/* フッター内の中身を中央寄せにするための枠 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 92%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- コンテナの修正（浮いた感じをあえて活かす、または密着させる） --- */
.main-container {
    background: #ffffff;
    border-radius: 40px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px; /* ここをしっかり取る */
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

/* スマホ対応：フッターを縦並びに */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column-reverse;
        gap: 15px;
    }
    .main-container {
        padding: 30px; /* スマホのときはパディングを小さくして箱を広げる */
        margin-top: 20px;
    }
}
/* Xボタン：Android Pie風チップデザイン */
.x-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f3f4; /* 薄いグレー背景 */
    color: #3c4043;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px; /* カプセル型 */
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.x-button:hover {
    background-color: #e8f0fe; /* ほんのり青く */
    color: #1A73E8;
    border-color: #d2e3fc;
}

.x-icon {
    width: 16px;
    height: 16px;
    fill: currentColor; /* 文字色と同じ色にする */
}

/* スマホ対応 */
@media (max-width: 768px) {
    .main-footer {
        padding: 30px 20px;
        margin-left: -30px;  /* スマホのpaddingに合わせる */
        margin-right: -30px;
        flex-direction: column-reverse;
        gap: 20px;
    }
    .x-button {
        width: fit-content;
        margin: 0 auto;
    }
    
}








/* ヘッダー全体の設定 */
.global-header {
    width: 100%;
    /* 薄暗い色：背景図形を殺さない程度の絶妙な半透明グレー */
    background: #ffffff; 
    backdrop-filter: blur(4px); /* 背景を少しぼかすと高級感が出ます */
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
    margin-bottom: 20px;
    padding: 12px 0;
}


/* カードの幅と一致させるためのインナー */
.header-inner {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* これで左と右に分かれる */
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-item {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #000000; /* Google Sub Text Color */
    transition: color 0.2s ease;
    position: relative;
}

.nav-item:hover {
    color: #1A73E8; /* ホバーでGoogle Blueに */
}

.home-btn {
    font-weight: 700 !important; /* ホームだけ少し太くして視認性アップ */
    color: #202124 !important;    /* ホームは少し濃い色に */
}

/* 右側のリンク集 */
.nav-links {
    display: flex;
    gap: 24px;
}

/* スマホ版（お任せ）：カードの幅が狭まるので、中央寄せにしてタップしやすく */
@media (max-width: 650px) {
    .header-inner {
        flex-direction: row; /* 横並びを維持 */
        justify-content: center;
        padding: 0 10px;
    }
    
    .nav-links {
        gap: 12px; /* スマホでは間隔を少し狭く */
    }

    .nav-item {
        font-size: 0.7rem; /* 文字をさらに小さくして収める */
        color: #000000;
    }
    
    .global-header {
        padding: 10px 0;
    }
}



/* --- 登場アニメーションの定義 --- */
@keyframes entranceFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px); /* 30px下から開始 */
    }
    100% {
        opacity: 1;
        transform: translateY(0);    /* 定位置へ */
    }
}

.main-container {
    /* ...既存のスタイル... */
    
    /* アニメーションの適用 */
    animation: entranceFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    
    /* 読み込みまで隠しておくための設定（チラつき防止） */
    opacity: 0; 
    will-change: transform, opacity;
}

/* 中身を少し遅らせて出す（Staggered Animation） */
.main-content > * {
    animation: entranceFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 各要素の遅延時間 */
.main_logo { animation-delay: 0.2s; }
.title_text { animation-delay: 0.3s; }
.description { animation-delay: 0.4s; }
.download-btn { animation-delay: 0.5s; }