
/* --- 規約ページ専用：真ん中の白い箱 --- */
.terms-card {
    background: #ffffff;
    border-radius: 40px; /* Pieらしい深い角丸 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 90%;
    max-width: 1000px;
    margin: 40px auto; /* 上下に余白を持たせて中央配置 */
    padding: 60px;
    box-sizing: border-box;
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mini-logo { height: 35px; }

.author_info {
    text-align: right;
    font-size: 0.9rem;
    color: #5f6368;
}

.terms-title {
    color: #1A73E8;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.notice-box {
    background: #e8f0fe;
    padding: 20px;
    border-radius: 20px;
    color: #1967d2;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

.terms-content h2 {
    font-size: 1.2rem;
    color: #202124;
    border-left: 5px solid #1A73E8;
    padding-left: 15px;
    margin: 30px 0 15px;
}

.terms-content p {
    line-height: 1.8;
    color: #5f6368;
    margin-bottom: 15px;
}

.alert { color: #EA4335; font-weight: bold; }

.terms-footer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

a {
    text-decoration: none;
    color: #EA4335;
    font-weight: bold;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .terms-card {
        padding: 30px;
        border-radius: 24px;
        margin: 20px auto;
    }
    .terms-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .author_info { text-align: center; }
}


/* --- 登場アニメーションの定義 --- */
@keyframes entranceFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px); /* 30px下から開始 */
    }
    100% {
        opacity: 1;
        transform: translateY(0);    /* 定位置へ */
    }
}

.terms-card {
    /* ...既存のスタイル... */
    
    /* アニメーションの適用 */
    animation: entranceFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    
    /* 読み込みまで隠しておくための設定（チラつき防止） */
    opacity: 0; 
    will-change: transform, opacity;
}

/* 中身を少し遅らせて出す（Staggered Animation） */
.terms-card > * {
    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; }