body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.calendar-container {
    max-width: 1000px;
    margin: 20px auto;
    background-color: #3c3c3c;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

@media (min-width: 768px) {
    .calendar-container {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* メインビジュアルのスタイル */
.main-visual-container {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.main-visual-container img {
    max-width: 100%;
    height: auto;
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(60, 60, 60, 0), #3c3c3c);
}

/* 利用方法と注意事項のスタイル */
.info-container {
    position: relative;
    z-index: 1;
    padding: 20px;
    background-color: #3c3c3c;
    border-radius: 8px;
    margin-top: -50px;
}

.usage-section, .notice-section {
    margin-bottom: 20px;
}

.usage-section h2, .notice-section h2 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.usage-section ol {
    padding-left: 20px;
}

.usage-section li, .notice-section p {
    margin-bottom: 10px;
}

h1 {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.schedule-row {
    display: flex;
    border-bottom: 1px solid #4c4c4c;
    padding: 10px 0;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-time {
    flex: 0 0 100px;
}

.schedule-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.schedule-group-a {
    background-color: #444444;
}

.schedule-group-b {
    background-color: #444444;
}

.time-link {
    color: #b0b0b0;
    text-decoration: none;
    cursor: pointer;
}

.time-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.participant-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.participant-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 5px;
    margin-bottom: 5px;
    object-fit: cover;
}

.participant-icon.kigurumi {
    border: 2px solid #ffd700;
}

.participant-icon.attend {
    border: 2px solid #ffffff;
}

.participant-icon.inactive {
    opacity: 0.5;
    filter: grayscale(100%);
}

.participant-status {
    font-size: 0.4em;
    text-align: center;
    margin-top: 2px;
}

#participationStatus {
    margin-bottom: 15px;
}

#joinGroupButton {
    display: block !important;
    margin-top: 10px;
}

.nav-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #4c4c4c;
}

.nav-tabs .nav-link {
    color: #b0b0b0;
}

.nav-tabs .nav-link.active {
    color: #ffffff;
    background-color: #3c3c3c;
    border-color: #4c4c4c #4c4c4c #3c3c3c;
}

.tab-content {
    background-color: #3c3c3c;
    border: 1px solid #4c4c4c;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 5px 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #3c3c3c;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #4c4c4c;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #4c4c4c;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #e0e0e0;
}

.close {
    color: #b0b0b0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #ffffff;
    text-decoration: none;
}

.modal-body {
    margin-bottom: 15px;
}

#chatModal .modal-content {
    display: flex;
    flex-direction: column;
    height: 80%;
    width: 90%;
    max-width: none;
    margin: 5% auto;
}

#chatModal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #4c4c4c;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.message {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
}

.message.sent {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 10px;
    border-radius: 20px;
    background-color: #4c4c4c;
    font-size: 0.8em;
}

.message.sent .message-content {
    background-color: #505050;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
}

.user-icon.inactive {
    opacity: 0.5;
    filter: grayscale(100%);
}

.user-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #b0b0b0;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-menu-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #3c3c3c;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.user-menu-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.user-menu-content a:hover {
    background-color: #4c4c4c;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

#loginButton {
    transition: all 0.3s ease;
}

#loginButton:hover {
    background-color: #ffffff;
    color: #2c2c2c;
}

#userMenu {
    cursor: pointer;
}

#userIcon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

#userMenu:hover #userIcon {
    transform: scale(1.1);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #dc3590;
    border-color: #dc3590;
}

.btn-secondary:hover {
    background-color: #9f2768;
    border-color: #9f2768;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #ffffff;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}

#twitter-login, #discord-login {
    transition: all 0.3s ease;
}

#twitter-login:hover, #discord-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* モバイル表示時のスタイル */
@media (max-width: 767px) {
    #chatModal .modal-content {
        height: 100vh;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .modal-content {
        width: 95%;
        margin: 15% auto;
    }

    .navbar-brand {
        font-size: 0.75rem;
    }

    #detailsModal .modal-dialog {
        margin: 10px;
    }

}

/* アニメーション効果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s;
}

.modal.show .modal-content {
    animation: slideIn 0.3s;
}

/* フォーム要素のスタイル */
.form-control, .form-select {
    background-color: #4c4c4c;
    border-color: #5c5c5c;
    color: #e0e0e0;
}

.form-control:focus, .form-select:focus {
    background-color: #4c4c4c;
    border-color: #007bff;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ボタンのスタイル */
.btn {
    transition: all 0.3s ease;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* チェックボックスのスタイル */
.form-check-input {
    background-color: #4c4c4c;
    border-color: #5c5c5c;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* スクロールバーのスタイル */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #3c3c3c;
}

::-webkit-scrollbar-thumb {
    background: #5c5c5c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c6c6c;
}

/* 利用規約とプライバシーポリシーのスクロール可能な枠 */
.terms-container {
    margin-bottom: 20px;
}

.scrollable-content {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #4c4c4c;
    padding: 10px;
    border-radius: 4px;
    background-color: #2c2c2c;
}

.scrollable-content p {
    margin-bottom: 0;
    font-size: 0.7em;
}

/* ナビゲーションバーのロゴサイズ調整 */
.navbar-logo {
    height: 45px; /* ナビゲーションバーの高さに合わせて調整 */
    width: auto;
}

/* フッタースタイル */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #2c2c2c;
    color: #e0e0e0;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    z-index: 10;
}

.footer.visible {
    opacity: 1;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* スタッフ連絡モーダルのスタイル */
#contactStaffModal .modal-content {
    background-color: #3c3c3c;
    color: #e0e0e0;
}

#contactStaffModal .form-control {
    background-color: #4c4c4c;
    border-color: #5c5c5c;
    color: #e0e0e0;
}

#contactStaffModal .form-control:focus {
    background-color: #4c4c4c;
    border-color: #007bff;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 詳しい使い方ボタンのスタイル */
#detailsButton {
    margin-left: 10px;
    font-size: 0.4em;
}

/* 詳しい使い方モーダルのスタイル */
#detailsModal .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

#detailsModal img {
    max-width: 100%;
    height: auto;
    border: 1px solid #4c4c4c;
    border-radius: 4px;
}

#detailsModal h6 {
    margin-top: 20px;
    color: #007bff;
}

#detailsModal p {
    margin-bottom: 20px;
}

.participant-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #4c4c4c;
    border-radius: 4px;
    padding: 10px;
}

.participant-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.participant-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.participant-name {
    flex-grow: 1;
}

.participant-type {
    font-size: 0.8em;
    color: #b0b0b0;
}

/* 参加タイプボタンの基本スタイル */
.participation-type-btn {
    width: 45%;
    margin: 0 2.5%;
    border-width: 2px;  /* ボーダーを太くして視認性を向上 */
    transition: all 0.3s ease;  /* スムーズな遷移効果を追加 */
}

/* 未選択状態のボタンスタイル */
.participation-type-btn:not(.selected) {
    opacity: 0.8;  /* 透明度を上げて、よりはっきりと表示 */
    border-color: #6c757d;  /* ボーダー色を濃くして視認性を向上 */
}

/* 選択状態のボタンスタイル */
.participation-type-btn.selected {
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);  /* シャドウを濃くして目立たせる */
    transform: scale(1.05);  /* わずかに大きくして強調 */
}

/* 着ぐるみ参加ボタンの選択時スタイル */
#kigurumiButton.selected {
    background-color: #007bff;  /* 濃い青色 */
    color: white;
    border-color: #0056b3;
}

/* アテンド可ボタンの選択時スタイル */
#attendButton.selected {
    background-color: #dc3545;  /* 濃い赤色 */
    color: white;
    border-color: #bd2130;
}