/* 全体のスタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    text-align: center;
    background-color: #d9d9d9;
}

.wrapper{
    display: flex;
    flex-direction: column;
    padding-top: 50px; /* ヘッダーの高さに合わせる */
    box-sizing: border-box;
    width: 100%;
}

@media (max-width:768px) {
    .wrapper {
        padding-right: 0;
    }
}

@media (min-width:769px) {
    .wrapper {
        padding-right: 250px;
    }
}

.container {
    position: relative;
    top: 0;
    left: 0;
    flex: 1;
    padding: 0;
    box-sizing: border-box;
    z-index: 999;
}

/* ヘッダーのスタイル */
@media (max-width:768px) {
    header {
        justify-content: space-between;
        align-items: center;
        background-color: #235224;
        color: white;
        padding: 15px 15px;
        font-size: 18px;
        top: 0;
        left: 0;
        width: 100%;
        right: 250px;
        z-index: 1001;
        box-sizing: border-box;
        position: fixed;
    }
}

@media (min-width:769px) {
    header {
        justify-content: space-between;
        align-items: center;
        background-color: #235224;
        color: white;
        padding: 15px 15px;
        font-size: 18px;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
        box-sizing: border-box;
        position: absolute;
    }
}

.header-title {
    font-weight: bold;
    flex: 1;
    text-align: left;
    padding-left: 10px;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-right: 5px;
}

.hamburger-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 10px;
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: white
}

/* 画面幅 */
@media (max-width: 768px) {
    side-menu {
        display: none;
        position: fixed;
        flex-direction: column;
        width: 250px;
        right: 0;
        top: 50px;
        height: 100%;
        background-color: white;
        z-index: 1005;
        gap: 1px;
    }

    .hamburger-menu {
        display: block;
    }
}

/* サイドメニューのスタイル */
@media (min-width: 769px) {
    side-menu {
        display: block;
        position: fixed;
        flex-direction: column;
        width: 250px;
        right: 0;
        top: 0;
        height: 100%;
        background-color: white;
        z-index: 1005;
        gap: 1px;
    }
}

/* サイドメニューのスライドアニメーション */
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideOut {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

side-menu.slide-in {
    animation: slideIn 0.3s forwards;
}

side-menu.slide-out {
    animation: slideOut 0.3s forwards;
}

/* オーバーレイのフェードアニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000; /* サイドメニューより低いz-index */
}

#overlay.fade-in {
    animation: fadeIn 0.3s forwards;
}

#overlay.fade-out {
    animation: fadeOut 0.3s forwards;
}


.side-text {
    margin-top: 20px;
    margin-bottom: 30px; /* ボタンとの距離を開ける */
    font-size: 18px;
    font-weight: bold;
    color: black;
    text-align: center;
}

.side-button{
    background-color: white;
    display: flex;
    position: static;
    width: 250px;
    right: 0;
    height: 60px;
    color: black;
    flex-direction: column;
    margin: 7px auto;
    border: none;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-weight: bold;
    transition: background-color 0.07s ease, color 0.07s ease;
    cursor: pointer;
}

.side-button:hover{
    background-color: green;
    color: white
}

.button-text-ja{
    font-size: 20px;
}

.button-text-en{
    font-size: 15px;
    color: green
}

/* hover時に両方の文字を白にする */
.side-button:hover .button-text-ja,
.side-button:hover .button-text-en{
    color: white;
}

/* フッター */
footer {
    background-color: #262626;
    color: white;
    padding: 40px 20px 20px 20px;
    position: relative;
    bottom: auto;
    left: 0;
    right: 250px; /* サイドメニューの幅に合わせる */
    margin-top: auto;
    box-sizing: border-box;
}

.footer-content {
    color: darkgray;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-column {
    width: 250px;
    margin: 0;
    padding: 0;
}

.footer-title {
    font-size: clamp(17px, 2vw, 23px);
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-column ul {
    font-size: clamp(10px, 14px, 17px);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 5px 0;
}

.footer-column ul li a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    text-decoration: underline;
    color: #a3a3a3;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    color: #a3a3a3;
    font-weight: bold;
}

.about {
    text-align: left;
    margin-left: 2%;
    font-size: 30px;
    margin-bottom: 0;
    color: darkgreen;
    border-left: 7px solid darkgreen;
    padding-left: 0.5em;
}

.about-text {
    text-align: left;
    margin-left: 2%;
    font-size: 18px;
    color: #303030;
    margin-bottom: 50px;
}

.tableDescription {
    text-align: left;
    margin-left: 3%;
    padding-left: 0.5em;
    font-size: 25px;
    font-weight: bold;
    color: darkgreen;
    border-left: 7px solid darkgreen;
}

table {
    text-align: center;
    width: 90%;
    margin: 0 auto 40px;
    table-layout: fixed;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    height: 35px;
    font-size: 17px;
    overflow-wrap: break-word;
}

.roomNumber {
    width: 10%;
}

.roomOwner {
    width: 20%
}

.roomCohabitant {
    width: 40%
}

.roomPrice {
    width: 30%
}

#table-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

@media (min-width: 769px) {
    .dataTable {
        width: 50%;
    }
}

@media (max-width: 768px) {
    #table-container {
        flex-direction: column;
    }

    .dataTable {
        width: 95%;
    }
}

#table-money th {
    background-color: #ffda85;
}

#table-breaks th {
    background-color: lightblue;
}

.gold-text {
    color: #b06f00;
    font-weight: bold;
}

.blue-text {
    color: dodgerblue;
    font-weight: bold;
}

.first-place {
    background-color: #fff2ba;
}

.second-place {
    background-color: #e6e6e6;
}

.third-place {
    background-color: #dbc59e;
}

/* #table-container 内のテーブルのみ対象 */
#table-container table {
    border-collapse: collapse;
    width: 90%;
    border: none;
}

/* th, td の全側面のボーダーを解除 */
#table-container th,
#table-container td {
    padding: 7px;
    border-style: none;
}

/* ヘッダーの下側には太い線を追加 */
#table-money thead th {
    border-bottom: 4px solid orangered;
}

/* 本文の各セルの下側にのみ線を追加 */
#table-money tbody td {
    border-bottom: 1px solid orangered;
}

/* ヘッダーの下側には太い線を追加 */
#table-breaks thead th {
    border-bottom: 4px solid royalblue;
}

/* 本文の各セルの下側にのみ線を追加 */
#table-breaks tbody td {
    border-bottom: 1px solid royalblue;
}

.aboutLine {
    width: 98%;
    background-color: darkgreen;
    height: 1px;
}

.htjText {
    text-align: left;
}

.htjText ol {
    list-style-type: disc;
    padding: 0 1.2em;
    overflow: hidden;
    margin-left: 2%;
}

.htjText ol ol {
    margin-top: 5px;
    margin-left: 0;
}

.htjText li {
    padding: 5px 0;
}

.htjText a {
    color: #1a1a1a;
}

.htjText a:hover {
    color: dimgray;
}

.htjHeader {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-left: 1%;
    border-left: 7px solid darkgreen;
    padding-left: 0.5em;
}

.htjText .htjMainText {
    margin-top: 50px;
}

.htjText .htjSubText {
    font-size: 18px;
    margin-left: 2%;
}

.htjLine {
    width: 98%;
    background-color: darkgreen;
    height: 1px;
}

.serverWidget {
    display: flex;
    align-items: center;
    margin-left: 3%;
    padding: 10px;
    max-width: 500px;
    background-color: #242429;
    border-radius: 10px;
    margin-bottom: 30px;
}

.widgetLeft img {
    width: 50px;  /* 画像サイズは適宜変更 */
    height: 50px;
    border-radius: 10px;
}

.widgetCenter {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.widgetName {
    font-size: 1.2em;
    font-weight: bold;
    color: #DADADB;
    margin-left: 7%;
}

.widgetOnline {
    font-size: 0.9em;
    color: #A4A4AA;
    width: 100%;
    margin-left: 10%;
}

.widgetRight {
    margin-left: auto; /* スペースを空けて右端に配置 */
}

.widgetRight button {
    padding: 10px 18px;
    cursor: pointer;
    background-color: #00863A;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 18px;
}

.widgetCircle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #43A25A;
    margin-right: 3px;
}

.widgetRight button:hover {
    filter: brightness(0.9);
}

.serverWidgetMC {
    display: flex;
    align-items: center;
    margin-left: 3%;
    padding: 10px;
    max-width: 500px;
    background-color: #001c03;
    border-radius: 10px;
    margin-bottom: 30px;
}

.widgetLeftMC img {
    width: 50px;  /* 画像サイズは適宜変更 */
    height: 50px;
    border-radius: 10px;
}

.widgetCenterMC {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.widgetNameMC {
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    color: #DADADB;
    margin-left: 5%;
}

.widgetOnlineMC {
    font-size: 0.9em;
    color: #A4A4AA;
    width: 100%;
    margin-left: 6%;
}

.widgetRightMC {
    margin-left: auto; /* スペースを空けて右端に配置 */
}

.widgetRightMC button {
    padding: 10px 18px;
    cursor: pointer;
    background-color: #00863A;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 18px;
}

.widgetCircleMC {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: skyblue;
    margin-right: 5px;
}

.widgetRightMC button:hover {
    filter: brightness(0.9);
}

code {
    font-weight: bold;
    color: darkgreen;
}

.contactText {
    text-align: left;
}

.contactSubText {
    margin-left: 2%;
    font-size: 20px;
}

.miningServer {
    text-align: left;
    margin-left: 3%;
    margin-right: 3%;
}

.miningServerHeader {
    font-size: 25px;
    font-weight: bold;
    color: darkgreen;
    margin-bottom: 0;
    border-left: 7px solid darkgreen;
    padding-left: 0.5em;
}

.miningServerLine {
    width: 100%;
    background-color: darkgreen;
    height: 1px;
}

.miningServerText {
    font-size: 20px;
    margin-left: 2%;
}

.miningServerClick {
    color: #1a1a1a;
    font-weight: bold;
    margin-left: 12px;
}

.miningServerClick:hover {
    color: #303030;
}

.miningServerList {
    display: flex;
}

.pageImg {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
}

/* 中央テキストのスタイル */
.imgMainText {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: clamp(70px, 6vw, 100px);
    color: white;
}

.imgMainTextSpan {
    font-size: clamp(50px, 6vw, 100px);
}

.imgMainSubTextSpan {
    font-size: clamp(40px, 4vw, 70px);
}

.imgMainPicture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 画像(不具合修正中) */
.cave {
    background-image: url("/img/cave.avif");
}

.nether {
    background-image: url("/img/nether.avif");
}

.end {
    background-image: url("/img/end.avif");
}

.ocean {
    background-image: url("/img/ocean.avif");
}

.temple {
    background-image: url("/img/temple.avif");
}

.demise {
    background-image: url("/img/demise.avif");
}

.gold {
    background-image: url("/img/gold.avif");
}

.heaven {
    background-image: url("/img/heaven.avif");
}

.mining-server {
    background-image: url("/img/mining-server.avif");
}

.how-to-join {
    background-image: url("/img/how-to-join.avif");
}

.moderators {
    background-image: url("/img/moderators.avif");
}

.announcements {
    background-image: url("/img/announcements.avif");
}

.recruitment {
    background-image: url("/img/recruitment.avif");
}

.contact-us {
    background-image: url("/img/contact-us.avif");
}

.ranking {
    background-image: url("/img/ranking.avif");
}

.room {
    background-image: url("/img/room.avif");
}

.about-us {
    background-image: url("/img/about-us.avif");
}

.textBlack {
    color: #242429;
}

.moderatorsHeader {
    text-align: left;
    margin-left: 2%;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 0;
}

.moderatorsLine {
    margin-top: 5px;
    width: 97%;
    background-color: purple;
    height: 1px;
}

.moderatorsList {
    display: flex;
    align-items: flex-start;
    height: 300px;
    padding: 1%;
}

.moderatorsList:not(:last-child) {
    margin-bottom: 20px;
}

@media (min-width: 769px) {
    .moderatorsListMobile {
        display: none;
    }

    .moderatorsListMobileDescription {
        display: none;
    }
}

@media (max-width: 768px) {
    .moderatorsList {
        display: none;
    }
}

.moderatorsListMobileCategory {
    width: 20%;
}

.moderatorsListMobileRole {
    width: 40%;
}

.moderatorsListMobileName {
    width: 40%;
}

.moderatorsListMobileDescription {
    font-size: 20px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: bold;
}

.moderatorsImage {
    margin: 0;
    padding: 0;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.moderatorsTextBlock {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.moderatorsTextHeader {
    font-size: 60px;
    font-weight: bold;
}

.moderatorsTextRole {
    font-size: 25px;
    margin-left: 10px;
    font-weight: bold;
    color: #004a17;
}

.moderatorsTextMain {
    font-size: 35px;
    margin-left: 30px;
    color: #2e2e2e;
    font-weight: bold;
}

.betaPage {
    border: 6px solid red;
    height: auto;
    width: auto;
}

.betaPageHeader {
    font-size: 30px;
    font-weight: bold;
}

.pageWrapper {
    text-align: left;
    margin: 20px 2% 40px;
    padding: 30px 10px 10px 10px;
    background-color: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.announcementsThread {
    display: flex;
    gap: 10px;
    margin-left: 2%;
    margin-right: 2%;
    padding: 20px 10px 20px 20px;
    border: 2px solid dimgray;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 15px;
    height: auto;
    min-height: 100px;
}

.announcementsThreadTextDiv {
    width: 90%;
}

.announcementsThreadTitle {
    font-weight: bold;
    font-size: 30px;
}

.announcementsThreadHeadline {
    font-size: 20px;
    color: #2e2e2e;
    margin-left: 20px;
}

@media (min-width: 769px) {
    .announcementsThreadButtonDiv {
        width: 10%;
        align-content: center;
    }
}

@media (max-width: 768px) {
    .announcementsThreadButtonDiv {
        display: none;
    }
}

.announcementsThreadButton {
    width: 100px;
    height: 60px;
    color: white;
    background-color: #42b355;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.announcementsThreadButton:hover {
    background-color: #4ad461;
}

.recruitmentAffiliation {
    width: 20%;
}

.recruitmentRoleName {
    width: 10%;
}

.recruitmentTerms {
    width: 35%;
}

.recruitmentDetails {
    width: 35%;
}