body {
    font-family: 'M PLUS Rounded 1c', sans-serif !important;
    margin: 0;
    padding: 0;
}

button {
    font-family: 'M PLUS Rounded 1c';
}

/* ヘッダー */

.total_sub {
    font-size: 10px;
    font-weight: bold;
    color: #FFF; /* ホワイトテキスト */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* ダークテーマに合う影 */
    margin-left: 10px;
    display: inline-block;
    padding: 8px 6px;
    border-radius: 5px;
    background-color: #333; /* ダークグレーの背景 */
    border: 1px solid #444; /* さらにダークなグレーの境界線 */
    transition: all 0.3s ease;
}

.total_sub i { /* アイコンのスタイリング */
    color: #FFD700; /* ゴールド色で高級感をプラス */
    margin: 0 5px; /* アイコンとテキストの間隔を調整 */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #ffffff; /* ピュアホワイトの背景色 */
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1); /* シャドウで立体感を出す */
}

.header-left {
    font-size: 24px;
    font-weight: bold;
}

.header-left a {
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
}

.header-right, .header-center {
    display: flex;
    gap: 10px;
    text-decoration: none;
}

.main-buttons:nth-last-child {
    border-right: 1px solid #2C3E50;
}

.header-right button, .header-center button, .menu button {
    border-left: 1px solid #2C3E50;
    border-right: 1px solid #2C3E50;
    border-top: none;
    border-bottom: none;
    padding: 10px 10px;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
    font-size: 0.9em;
    background-color: #ffffff;
    color: #2C3E50;
    cursor: pointer;
    width: 109%;
}


.header-center button:nth-last-child{
    border-right:1px solid #2C3E50;
}


.header-right button {
    color: black;
    width: 113%;
    font-size: 12px;
}

/* #contactButton {
    background-color: #409f16;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.9em;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
} */

.header-right button:hover,
.header-right .discord-login-link:hover,
#contactButton:hover {

    transform: scale(1.05);
    background-color: #EAEDED; /* ダークブルーのシェードアップ */
}

/* 右上のログインリンクをボタンと同じ見た目に */
.header-right .discord-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-left: 1px solid #2C3E50;
    border-right: 1px solid #2C3E50;
    border-top: none;
    border-bottom: none;

    padding: 10px 10px;
    font-size: 12px;          /* .header-right button と合わせる */
    width: 113%;              /* 同じく */
    background-color: #ffffff;
    color: #2C3E50;
    text-decoration: none;
    cursor: pointer;

    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

/* visited で紫にならないように */
.header-right .discord-login-link:visited {
    color: #2C3E50;
}


.header-center button:hover, .menu button:hover {
    transform: scale(1.05);
    background-color: #EAEDED; /* ホバー時の軽やかなグレイ */
}

.header-center a{
    width: 120px;
    text-decoration: none;
    color: inherit;
}

.header-center button{
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-center button img{
    margin-right: 3px;
}

.dropdown {
  position: relative;
  display: inline-block;
  width: 120px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 140px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.9em;
}

.dropdown-content a {
  color: #333;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.header-right #login-options a {
    display: block;
    padding: 10px 20px;
    margin: 3px 0;
    background-color: #f9f9f9;
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 5px;
    color: black;
    text-align: center;
}

.header-right #login-options a:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

.button-link {
    display: inline-block;
    background-color: #ffffff00;
    color: white;
    padding: 5px 15px;
    border: none;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-link:hover {
    background-color: #dddddd;
}

.notification-badge {
    position: absolute;
    top: -4px;
    left: 100px;
    padding: 2px 7px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 0.75em;
}

#login-options {
    top: 54px;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    right: 10px;
}

.hamburger-menu {
    display: none;
}

.menu-icon {
    font-size: 30px;
    cursor: pointer;
}

.menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 66px;
    right: 0;
    background-color: #ffffff;
    width: auto;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000; /* メニューが他のコンテンツの上に表示されるようにする */
}

.menu a {
    padding: 5px 0;
}

#menu-toggle {
    display: none;
}

#menu-toggle:checked + .menu-icon + .menu {
    display: flex;
}

#contactButton {
    background-color: #409f16;
    position: fixed;
    bottom: 34px; /* 初期位置 */
    right: 60px;
    z-index: 10;
    padding: 56px 23px;
    border-radius: 68px;
    transition: bottom 0.3s;
    width: 135px;
}





.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-button {
    background: transparent;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-right-user-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 6px;
}

.user-menu {
    display: none;
    position: absolute;
    top: 45px;
    right: -19px;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
    min-width: 160px;
}

.user-menu a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.user-menu a:hover {
    background-color: #f5f5f5;
}

.user-dropdown:hover .user-menu {
    display: block;
}




















/* 幅が1150px以下の場合に非表示にする */
@media (max-width: 1000px) {
    .main-buttons {
        display: none !important;
    }

    .header-right .mypage-logout {
        display: none;
    }

    .discord-login-form {
        display: none;
    }

    .hamburger-menu {
        display: block;
        margin-left: auto;
    }

    #login_button{
        display: none;
    }

    .user-dropdown {
        display: none;
    }

}




/* フッダー */

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.content {
    flex: 1;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.footer-left {
    text-align: left;
    margin-bottom: 10px;
}

.service-name {
    font-size: 20px;
    font-weight: bold;
    color: #343a40;
}

.copyright {
    font-size: 14px;
    color: #6c757d;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sitemap, .policy-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-right a {
    text-decoration: none;
    color: #343a40;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-start;
        width: 100%;
    }

    .sitemap, .policy-links {
        justify-content: flex-start;
        gap: 10px;
    }
}






/* 処理中 */

.processing-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.processing-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s infinite linear;
    margin-bottom: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* ヒントを表示する */
/* ヒントポップアップ（背景） */
.hint-popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}




/* 通知バッチ */
.collab-btn-tuchi{
    top: -1px;
}

.notification-badge2 {
    position: absolute;
    top: -1px;
    padding: 2px 7px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 0.75em;
}



/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {

    .header-right, .header-center {
        display: block;
        gap: 5px;
        text-decoration: none;
    }

    .menu{
        display: none;
        flex-direction: column;
        position: absolute;
        top: 66px;
        right: 0;
        background-color: #ffffff;
        width: auto;
        box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0;
    }

    .menu a{
        padding: 0;
    }

    .header-right button {
        color: black;
        width: 113%;
        font-size: 12px;
        height: 52px;
        padding: 0 20px;
    }

    .header-right button, .header-center button, .menu button {
        border-left: none;
        border-right: none;
        border-top: 1px solid #2C3E50;
        border-bottom: none;
        transition: transform 0.3s, background-color 0.3s, color 0.3s;
        font-size: 0.9em;
        background-color: #ffffff;
        color: #2C3E50;
        cursor: pointer;
        width: 109%;
    
    
    }

    .user-dropdown{
        display: none;
    }

}



/* cookie同意画面 */
.cookie-consent-popup {
    position: fixed;
    left: 0;
    width: 100%;
    background-color: rgb(0 0 0 / 69%); /* 半透明の背景色 */
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000; /* 他の要素の上に表示 */
    display: none; /* 初期状態では非表示 */
}

.cookie-consent-popup p {
    margin: 0;
    padding: 0;
}

.cookie-consent-popup button {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #f1f1f1;
    color: black;
    border: none;
    cursor: pointer;
}

.cookie-consent-popup button:hover {
    background-color: #dcdcdc;
}