    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        }

    body {
        font: Arial, monospace;
        text-align: center;
        background-color: #ffffff;
        margin: 0;
        overflow-x: hidden; /* 横スクロールを無効化 */
        overflow-y: auto;
        }

    body.modal-open {
        overflow: hidden;
    }        

    .header {
        position: fixed;
        top: 0;
        left: 0;
        text-align: center;
        background-color: #000000;
        width: 100%;
        height: 120px;
        z-index: 1000;
    }

    .body-padding {
        margin-top: 150px;
        margin-bottom: 150px;
    }

    .header h1{
        margin: 0;
    }

    .header a {
        color: white;
        text-decoration: none;
    }

    .header p {
        color: white;
        font-size: 14px;
        margin: 0;
        padding-bottom: 5px;
    } 

    .footer {
        position: fixed;
        bottom: 0;
        color: white;
        font-size: 14px;
        text-align: center;
        width: 100%;
        padding: -10px;
        background-color: #000000;
    }

    .main_title {
        width: 100%;
    }

    .main_title h2, .main_title h3, .main_title h4 {
        width: 100%;
        text-align: center;
        color: rgb(255, 255, 255);
        background-color: rgb(66, 66, 66);
        padding: 10px;
        margin: 0;
    }

    .main_title h3, .main_title h4 {
        background-color: rgb(99, 99, 99);
    }

    .main_title p {
        margin: 10px;
        padding: 5px;
        text-align: left;
    }

    .main_container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 10px;
    }

    .main_container a {
        text-decoration: none;
        flex: 1 1 calc(50% - 20px);
        box-sizing: border-box;
        margin: 5px;
        max-width: calc(50% - 20px);

    }

    .main_container p {
        font-weight: bold;
        background-color: rgb(162, 162, 162);
        color: rgb(36, 36, 36);
        text-align: center;
        padding: 10px;
        border-radius: 5px;
        margin: 0;

    }

    .calculation_container {
        text-align: center;
        width: 100%;

    }

    .calculation_container h2 {
        color: rgb(255, 255, 255);
        background-color: rgb(66, 66, 66);
        padding: 10px;
        overflow: hidden;
        margin-bottom: 24px;
    }

    .calculation_container p {
        color: rgb(255, 255, 255);
        background-color: rgb(99, 99, 99);
        font-size: 20px;
        font-weight: bold;
        padding: 10px;
    }

    .calculation_container input {
        color: #0d0d0d;
        padding: 10px;
        margin: 10px;
        font-size: 16px;
        background-color: rgb(180, 180, 180);
        border-radius: 5px;
        border: none;
        cursor: pointer;
    }

    .calculation_container button {
        font-size: 20px;
        font-weight: bold;
        padding: 10px;
        margin: 10px;
        margin-top: 20px;
        border-radius: 5px;
        color: rgb(255, 255, 255);
        background-color: rgb(33, 33, 33);
        border: none;
        cursor: pointer;
        width: 150px;
    }

    .result {
        margin-top: 20px;
        font-size: 20px;
        color: #333;
    }

    .menu {
        display: flex;
        justify-content: flex-start;
        overflow-x: scroll;
        white-space: nowrap;
        scrollbar-width: thin;
        background-color: #131313;
    }

    .menu nav {
        color: white;
        padding: 10px;
    }

    .menu nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    .menu nav ul li {
        margin-right: 20px;
        flex-shrink: 0;
    }

    .menu nav ul li a {
        color: white;
        text-decoration: none;
        display: inline-block;
    }

    .menu nav ul li a:hover {
        text-decoration: underline;
    }

    .menu::-webkit-scrollbar {
        height: 0;
    }

.probability {
    color: white;
    background-color: #000000;
    text-align: center;
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

.probability h2 {
    margin: 0;
    padding-top: 5px;
}

.probability p {
    font-size: 12px;
    margin: 0;
}


/* === モーダルの背景 === */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000; /* サイドメニューよりも前面に表示 */
}

/* モーダルの内容 */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}


/* ==== プライバシーポリシー ==== */

.pripoli {
    display: inline;
}

.pripoli h1 {
    text-align: center;
    background-color: #3f3f3f;
    color: white;
}

.pripoli h2 {
    text-align: center;
    background-color: #797979;
    color: white;
}

.pripoli h3 {
    text-align: center;
    background-color: #b8b8b8;
    color: white;
}

.pripoli p {
    padding: 15px;
    margin-top: -10px;
    margin-bottom: -10px;
}

.pripoli ul {
    text-align: left;
}

.contact {
    text-align: center;
    width: 100%;
    margin: 0;
}

.contact h2 {
    background-color: #333;
    color: white;
    padding: 5px;
    margin-bottom: 10px;
}

.contact form {
    font-size: 18px;
    background-color: #e7e7e7;
    color: rgb(19, 19, 19);
    padding: 5px;
}

.contact label, .contact input, .contact textarea {
    font-size: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 5px;
    width: 75%;
    border: none;
    border-radius: 3px;
}

.contact textarea {
    height: 250px;
}

.contact button {
    color: #ffffff;
    background-color: cornflowerblue;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    margin-bottom: 20px;
    width: 25%;
    border: none;
}



/*----*/
/* 選択肢モーダル */
#location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1300;
}

#location-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

#location-options {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#location-options li {
    padding: 10px;
    margin: 5px 0;
    background: #f0f0f0;
    cursor: pointer;
}

#location-options li:hover {
    background: #ddd;
}


/* 親要素をflexboxに設定 */
.profile-container {
    display: flex;
    gap: 20px; /* カラム間のスペースを確保 */
    justify-content: space-between; /* 横並びを均等配置 */
    align-items: flex-start; /* カラムを上揃え */
    width: 100%; /* 親要素を全幅にする */
    height: auto; /* 必要に応じて高さを自動調整 */
    flex-wrap: nowrap; /* 折り返しを無効化 */
}

/* 各カラムの設定 */
.profile-1,
.profile-2 {
    flex: 1 1 50%; /* 各カラムを50%幅に設定 */
    box-sizing: border-box; /* パディングやボーダーを含むサイズ調整 */
}

/* プロフィール画像のスタイル */
.profile-1 img {
    max-width: 90%; /* 横幅を親要素内に収める */
    height: auto; /* アスペクト比を維持 */
    display: block;
    margin: 0 auto; /* 中央揃え */
}

/* テーブルのスタイル */
.profile-2 table {
    width: 90%; /* テーブルをカラム幅にフィット */
    border-collapse: collapse;
    margin-bottom: 20px;
}

.profile-2 table th {
    padding: 10px;
    text-align: center;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
}

/* カラムの最小幅を強制 */
.profile-container > div {
    min-width: 200px; /* 各カラムの最小幅を設定 */
}


.profile-main {
    flex: 1 1 100%; /* 全幅にする */
    text-align: center;
    background-color: #e4e4e4;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.profile_title h2 {
    width: 100%;
    text-align: center;
    color: rgb(255, 255, 255);
    background-color: rgb(66, 66, 66);
    padding: 10px;
    margin: 0;
    margin-bottom: 20px;
}


.diary-h2 {
    color: white;
    background-color: #3f3f3f;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 10px;
    width: 100%;
}


.diary-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 500px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}
.diary-item {
    display: flex;
    align-items: center;
    justify-content: left;
    width: 100%;
    height: 150px;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}

.diary-item a {
    color: #000000;
    font-weight: bold;
    font-size: 22px;
    text-decoration: none;
}

.diary-item img {
    max-width: 100%;
    max-height: 130px;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
}
.pagination a.active {
    background-color: #0056b3;
    font-weight: bold;
}

.roto {
    margin: 0 auto;
    border-collapse: collapse;
    text-align: center;
    max-width: 600px;
    box-sizing: border-box;
    width: 90%;
}

.roto h2{
    color: white;
    background-color: #3f3f3f;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 15px;
    width: 100%;   
}

.roto button {
    color: #ffffff;
    background-color: cornflowerblue;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    margin-bottom: 20px;
    width: 300px; /* デフォルトの幅 */
    border: none;
    display: block;
    margin: 10px auto;
}


.roto hr {
    margin-top: 10px;
    margin-bottom: 10px;
}

.roto p {
    font-size: 16px;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 15px;
}
.roto thead th {
    background-color: #f1f1f1;
    color: #040404;
    font-weight: bold;
}
.roto th, .roto td {
    text-align: center; /* テキストを中央揃え */
    vertical-align: middle; /* 垂直方向も中央揃え */
    padding: 10px;
    white-space: nowrap; /* 改行を防ぐ */
    font-size: 16px;
}


/* 一番くじstyles.css */
.one_cal form { margin: 20px auto; 
    width: 300px; 
}
.one_cal label {
    font-weight: bold;
}
.one_cal input { 
    width: 100%; 
    padding: 8px; 
    margin: 5px 0; 
    font-size: 18px;
}
.one_cal button { 
    padding: 10px; 
    margin: 10px; 
    font-size: 20px;
    cursor: pointer;
    color: #ffffff;
    background-color: #333;
    border: none;
    border-radius: 5px;
}

.one_cal h2 {
    width: 100%;
    text-align: center;
    color: rgb(255, 255, 255);
    background-color: rgb(66, 66, 66);
    padding: 10px;
    margin: 0;
}

.one_cal p {
    margin: 10px;
    padding: 10px;
    font-size: 18px;
}

.one_cal_reslut { 
    font-size: 1.5rem; 
    color: blue; }

.one_cal_modal-bg {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.one_cal_modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    z-index: 10000; /* モーダルの中身はさらに前面に */
    position: relative;
}
.one_cal_close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
}
