/* ローディング画面 */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #222;
    z-index: 9999;
    text-align: center;
    overflow: hidden;
}

#splash_text {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    color: #fff;
    width: 80%;
    height: 2rem;
}

#splash_text svg {
    position: absolute;
    z-index: 1002;
}

.loader_cover {
    width: 100%;
    height: 50%;
    background-color: #222;
    transition: all 0.8s ease;
    position: absolute;
    left: 0;
}

.loader_cover-up {
    top: 0;
    transform-origin: center top;
}

.loader_cover-down {
    bottom: 0;
    transform-origin: center bottom;
}

/* 全体レイアウト */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #f4f4f4;
    color: #333;
}

#container {
    max-width: 800px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* タブナビゲーション */
.tab {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab li {
    list-style: none;
    flex: 1;
    text-align: center;
}

.tab li a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    background: #eee;
    color: #333;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

.tab li.active a {
    background: #555;
    color: #fff;
    font-weight: bold;
}

/* コンテンツエリア */
.area {
    display: none;
    padding: 20px;
    border-top: none;
    animation: fadeIn 0.6s forwards;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.area.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#pej01 {
    background-image: url(../png/Image.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    height: 600px;
    width: 100%;

    padding-top: 50px;
    overflow: hidden;
}

/* ボタン */
button {
    padding: 10px 20px;
    background-color: #0078d7;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #005ea6;
}


#info {
    margin-bottom: 10px;
    font-size: 18px;
}

#game {
    width: 500px;
    height: 500px;
    background-color: lavender;
    position: relative;
    overflow: hidden;
    border: 2px solid #ccc;
}

#ball {
    width: 50px;
    height: 50px;
    background-color: pink;
    border-radius: 50%;
    position: absolute;
    left: 100px;
    top: 100px;
    cursor: pointer;
}

#result {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    display: none; /* 初期は非表示 */
}
