:root {
    --primary-color: #77B5FE; /* 濃い水色 */
    --secondary-color: #87CEEB; /* 薄い水色 */
    --light-gray: #f8f8f8;
    --dark-gray: #333;
    --text-color: #000; /* テキストの色 */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color); /* テキストの色 */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header, footer, main {
    padding: 20px;
}

header {
    background-color: #fff;
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

h1 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-color);
}

main {
    max-width: 800px;
    margin: 0 auto;
}

.hero {
    background-color: var(--secondary-color);
    padding: 40px;
    text-align: center;
}

.hero-image {
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.info {
    margin-top: 40px;
}

.info ul {
    list-style: none;
    padding: 0;
}

.info li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--primary-color);
    color: #777;
}

/* 言語切り替えボタン */
.lang-switcher {
    display: flex;
    gap: 5px;
    position: relative;
}

.lang-button {
    padding: 8px 12px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.lang-button:hover {
    background-color: #5e8fca;
}

.lang-button.active {
    background-color: #4573a7;
    color: white;
    font-weight: bold;
}

/* ハンバーガーメニュー */
.menu-button {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 1.5em; /* アイコンサイズを大きくする */
}

.menu-button:focus {
    outline: none;
}

.global-nav {
    display: none;
}

.global-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.global-nav li {
    margin-bottom: 10px;
}

.global-nav a {
    text-decoration: none;
    color: var(--dark-gray);
}

/* 読み込み画面 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ヘッダーのリンク */
header a {
    text-decoration: none; /* 下線を消す */
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    h1 {
        font-size: 20px;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hero {
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .menu-button {
        display: block;
    }

    .global-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .global-nav.active {
        display: flex;
        justify-content: flex-start; /* 追加 */
    }
}