@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP&display=swap");

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}

*::-webkit-scrollbar {
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.6);
    border-radius: 3px;
}

:root {
    --main_color: lightblue;
    --text_color: black;
    --button_text_color: black;
    --background_color: white;
}

svg {
    fill: var(--button_text_color);
}

html {
    touch-action: manipulation;
    overscroll-behavior: none;
    background-color: black;
}

p,
label,
tbody {
    color: var(--button_text_color);
}

input[type="button"],
input[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    height: 100svh;
    width: 100vw;
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: normal;
    font-style: normal;
    background: rgba(255, 255, 255);
    overscroll-behavior-y: none;
}

.body_div {
    height: 100%;
    width: 100%;
    background: var(--background_color);
}

/* ヘッダー */
.header {
    background-color: var(--main_color);
    color: var(--button_text_color);
    display: flex;
}

.header h1 {
    margin: 0;
    margin-left: 1%;
}

.donation-banner {
    background-color: #ffcc00;
    color: #000;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-right: 1%;
    margin-left: auto;
}
.donation-banner:hover {
    background-color: #ffa500;
}

/* メイン */
.main_column {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* フッター */

.footer {
    position: fixed;
    overflow-y: auto;
    bottom: 30px;
    display: flex;
    overflow-y: visible;
    color: var(--button_text_color);
}

.user_icon_back {
    background-color: var(--main_color);
    border-radius: 100px 100px 0 0;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    width: fit-content;
    height: fit-content;
}

.user_icon {
    margin-left: 0;
    width: 150px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
}

.settings_icon_back {
    background-color: var(--main_color);
    border-radius: 100px 100px 0 0;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    width: fit-content;
    height: fit-content;
    position: absolute;
    right: -40%;
    bottom: 0;
}

.settings_icon {
    margin-left: 0;
    width: 50px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
}

.footer_user_name {
    bottom: 0;
    background-color: var(--main_color);
    width: 100vw;
    position: fixed;
    min-height: 30px;
    height: fit-content;
    overflow: hidden;
    user-select: none;
    white-space: nowrap;
    overflow-x: scroll;
}

.footer_user_name p {
    margin: auto;
    font-weight: bold;
    margin-left: 10px;
}

.display_none {
    display: none;
}

/* ローディング */
#loading_anime_area {
    position: fixed;
    /* 画面全体を基準に配置 */
    top: 50%;
    /* 上下中央 */
    left: 50%;
    /* 左右中央 */
    transform: translate(-50%, -50%);
    /* 完全に中央揃え */
    width: 50px;
    /* サイズ */
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    /* 外側の薄い円 */
    border-top: 5px solid var(--main_color, #3498db);
    /* 強調部分の色 */
    border-radius: 50%;
    /* 丸くする */
    animation: spin 1s linear infinite;
    /* 回転アニメーション */
}

/* 回転アニメーション */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        /* 初期位置 */
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        /* 1回転 */
    }
}

/* jquery confirmのレイアウトを微調整 */
.jconfirm-holder {
    width: 90%;
    margin: 0 auto;
}

.refresh-icon {
    position: fixed;
    top: -10vh;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.2s ease-out;
    width: 2em;
    height: 2em;
    fill: #5f6368;
    background-color: var(--main_color);
    padding: 0.3em;
    border-radius: 50%;
    overflow: hidden;
    filter: drop-shadow(0 0 5px gray) drop-shadow(0 0 10px gray);
    transform-origin: center center;
    z-index: 2147483647;
}

/* ニュースエリア */
.news-container {
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px 40px 10px 10px;
    position: relative;
    display: none;
}

.news-content-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.news-content {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-container svg {
    fill: black;
}

.close-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
}
