body {
    font-family: 'Helvetica Neue', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.version {
    position: absolute;
    top: 4px;
    right: 10px;
    font-size: 10px;
}

/* 水槽の背景 */
.tank {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #164967 0%, #192c38 100%);
    z-index: -1;
    overflow: hidden;
}

/* 浮かぶ文字 */
.floating-text {
    position: absolute;
    color: #ffffffdd;
    font-size: 16px;
    font-weight: 300;
    cursor: grab;
    user-select: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    white-space: pre-wrap;
}

.floating-text:active {
    cursor: grabbing;
    transform: scale(1.05);
}

#posts-list-intro>li {
    display: none;
}

/* 投稿フォーム */
#post-form {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#post-content {
    all: unset;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 16px;
    background: #ffffffcc;
    color: #333;
    line-height: 1.4;
    overflow-y: hidden;
    resize: none;
    box-sizing: border-box;
    min-height: 50px;
}

#post-btn {
    all: unset;
    background: #00bfa5;
    color: #fff;
    padding: 12px;
    text-align: center;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 191, 165, 0.5);
    transition: background 0.2s;
}

#post-btn:hover {
    background: #00a191;
}

/* 改行を反映したい投稿要素に適用 */

/* ごみ箱 */
.trash-bin {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 20px;
    height: 30px;
    /* background: #fff; */
    color: rgb(255, 255, 255);
    border-radius: 50px;
    font-size: 32px;
    font-weight: bold;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); */
    transition: background 0.2s;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* ヘッダー */
header {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 300px;
    padding: 12px 24px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

header h1 {
    margin: 50px 0 70px;
    font-size: 40px;
    color: #00bfa5;
    font-family: 'Times New Roman', Times, serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 span {
    display: inline-block;
    position: relative;
    /* ここで ―→ JS から渡されたカスタムプロパティを参照 */
    animation: float var(--dur) ease-in-out var(--delay) infinite alternate;
}

/* アニメーションは「--x-from → --x-to」「--y-from → --y-to」を往復 */
@keyframes float {
    from {
        transform: translate(var(--x-from), var(--y-from));
    }

    to {
        transform: translate(var(--x-to), var(--y-to));
    }
}

label {
    display: block;
}

p {
    margin: 0 0 10px;
}

.intro-isLogin>.intro {
    display: none;
}

.hamburgerMenu {
    width: 25px;
    height: 22px;
    position: absolute;
    cursor: pointer;
    right: 24px;
    top: 24px;
    display: none;
    z-index: 9999;
}

.hamburgerBar {
    background: #fff;
    width: 100%;
    height: 2px;
    aspect-ratio: 1;
    position: absolute;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.hamburgerBar:nth-child(1) {
    top: 0px;
    transform-origin: left;
}

.hamburgerBar:nth-child(2) {
    top: 10px;
}

.hamburgerBar:nth-child(3) {
    top: 20px;
    transform-origin: left;
}

.hamburgerLogin {
    display: block;
}

.headerLogin {
    top: 0;
    left: auto;
    right: -370px;
    transform: translate(0%, 0%);
    margin: 10px;
    transition: right 1s ease;
    overflow: auto;
    height: calc(100vh - 60px);
}

.headerLogin>h1 {
    margin: 10px 0 30px;
    font-size: 20px;
    text-align: start;
}

.headerCalled {
    right: 0px;
}

.hamburgerCalled>.hamburgerBar {
    width: 102%;
}

.hamburgerCalled>.hamburgerBar:nth-child(1) {
    transform: rotate(45deg);
    top: 1px;
}

.hamburgerCalled>.hamburgerBar:nth-child(2) {
    display: none;
}

.hamburgerCalled>.hamburgerBar:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
}

.user-config {
    flex-direction: column;
}

#user-info {}

.loginInputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ログインUI */
#login-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#login-section input,
#login-section button {
    all: unset;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

#login-section button {
    cursor: pointer;
    background: #00bfa5;
    transition: background 0.2s;
    justify-content: center;
}

#login-section button:hover {
    background: #009e90;
}

/* ================================ */
/* 追加：一括削除ポップアップのスタイル */
/* ================================ */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    color: #fff;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    position: relative;
}

.delete-popup-buttonWrap {
    display: flex;
    gap: 8px;
}

.popup-content button {
    all: unset;
    width: 50%;
    background: #00bfa5;
    color: #fff;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 191, 165, 0.5);
    transition: background 0.2s;
}

.popup-content>button:hover {
    background: #00a191;
}

#cancel-delete-all {
    background: #a7a7a7;
    box-shadow: 0 2px 10px rgba(84, 84, 84, 0.5);
}

/* #confirm-delete-all {
    background: #e74c3c;
    color: #fff;
} */


/* カスタムコンテキストメニュー */

#context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#context-menu li {
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
}

#context-menu li:hover {
    background: #00a191;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
}

.modal-content {
    color: #fff;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    position: relative;
}

#edit-modal-textarea {
    all: unset;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 16px;
    background: #ffffffcc;
    color: #333;
    line-height: 1.4;
    overflow-y: hidden;
    resize: none;
    box-sizing: border-box;
    min-height: 50px;
}

#edit-modal-save-btn {
    all: unset;
    background: #00bfa5;
    color: #fff;
    padding: 12px;
    text-align: center;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 191, 165, 0.5);
    transition: background 0.2s;
}

.close-btn {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.edit-modal-formWrap {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.delete-modal-formWrap {
    display: flex;
    gap: 8px;
}

.delete-modal-formWrap>button {
    all: unset;
    width: 50%;
    background: #00bfa5;
    color: #fff;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 191, 165, 0.5);
    transition: background 0.2s;
}

.delete-modal-formWrap>button:hover {
    background: #00a191;
}

#delete-modal-cancel-btn {
    background: #a7a7a7;
    box-shadow: 0 2px 10px rgba(84, 84, 84, 0.5);
}