/* 共通スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #2b5876, #4e4376);
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* ヘッダー */
header {
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

    header h1 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    header .highlight {
        color: #ffcc00;
        font-weight: bold;
    }

/* メインセクション */
main {
    margin-bottom: 40px;
}

section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 地震情報スタイル */
.earthquake-info {
    border: 1px solid #ccc; /* 外枠を追加 */
    border-radius: 8px; /* 角を丸くする */
    padding: 16px; /* 内側の余白 */
    margin: 16px 0; /* 上下の間隔 */
    background-color: rgba(255, 255, 255, 0.8); /* デフォルト背景色を薄く設定 */
    transition: background-color 0.3s; /* 背景色の変更をスムーズに */
    color: #fff; /* テキスト色を白に設定 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* テキスト影 */
}

/* 地震情報背景色 */
.max-scale-1 {
    background-color: rgba(173, 216, 230, 0.7);
}
/* 薄い青 (震度1) */
.max-scale-2 {
    background-color: rgba(144, 238, 144, 0.7);
}
/* 薄い緑 (震度2) */
.max-scale-3 {
    background-color: rgba(255, 255, 102, 0.7);
}
/* 薄い黄 (震度3) */
.max-scale-4 {
    background-color: rgba(255, 165, 0, 0.7);
}
/* 薄いオレンジ (震度4) */
.max-scale-45 {
    background-color: rgba(255, 140, 0, 0.7);
}
/* 濃いオレンジ (震度5弱) */
.max-scale-5 {
    background-color: rgba(255, 99, 71, 0.7);
}
/* 薄い赤 (震度5強) */
.max-scale-55 {
    background-color: rgba(220, 20, 60, 0.7);
}
/* 濃い赤 (震度6弱) */
.max-scale-6 {
    background-color: rgba(178, 34, 34, 0.7);
}
/* 暗赤 (震度6強) */
.max-scale-7 {
    background-color: rgba(128, 0, 0, 0.7);
}
/* 暗い赤茶 (震度7) */
.max-scale-unknown {
    background-color: rgba(211, 211, 211, 0.7);
}
/* 薄い灰色 (震度不明) */

/* 見出しスタイル */
.about h2, .social-links h2, .activities h2, .discord-bot h2, .latest-earthquakes h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ffcc00;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* リスト */
ul {
    list-style: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

/* ソーシャルリンク */
.social-links .links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease-in-out;
}

    .btn:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.2);
    }

/* 各ソーシャルメディアボタン */
.twitter {
    background: #1DA1F2;
}

.youtube {
    background: #FF0000;
}

.discord {
    background: #7289da;
}

/* フッター */
footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .social-links .links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 10px;
    }

    .btn {
        font-size: 1em;
        padding: 8px 15px;
    }
}

/* フェードイン用クラス */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
