:root {
    --cb-color: rgb(255, 224, 137);
    --cb-pattern: rgb(255, 255, 255);
    --ba-white: #d6d1ca;
    --sc-color: rgb(43, 103, 188);
    --ba-black: #202123;
    --ne-circle: #ff69b4;
    --si-hover: rgb(198, 195, 206);
    --si-active: rgb(128, 127, 133);
    --si-delete: #ca3232;
    --si-footer: rgb(180, 179, 181);
    --si-decide: #2ead61;
    --ba-cream: rgb(111, 111, 109);
}

[data-theme="dark"] {
    --cb-color: #1d1d1d;
    --cb-pattern: rgb(69, 69, 69);
    --ba-white: #202123;
    --sc-color: rgb(43, 103, 188);
    --ba-black: #d6d1ca;
    --ne-circle: #ff69b4;
    --si-hover: rgb(111, 111, 109);
    --si-active: rgb(128, 127, 133);
    --si-delete: #ca3232;
    --si-footer: rgb(111, 111, 109);
    --si-decide: #10a37f;
    /* color: #0000ff; */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0 !important;
    position: relative;
    background-color: rgb(254, 249, 230);
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

svg {
    margin-right: 5px;
}

.scroll-body {
    overflow-y: auto;
}

.scroll-body.no-scroll {
    overflow: hidden;
    position: fixed;
}


/* キャンバス - 境界線を追加 */
#canvas {
    background-color: var(--cb-color);
    position: absolute;
    top: 0;
    left: 0;
    width: 2000000px;
    height: 2000000px;
    min-width: 100vw;
    min-height: 100vh;
    background-image:
        radial-gradient(circle, var(--cb-pattern) 4px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0;
    display: none;
}

#canvas.active {
    display: block;
}

h1 {
    margin-top: 100px;
}


hr {
    border: none;
    border-top: 2.5px solid var(--ba-black);
    width: 90%;
    margin: 0 auto;
}


input {
    background-color: var(--cb-pattern);
    border-radius: 3px;
    height: 50px;
    border: none;
    outline: none;
}

input::placeholder {
    font-size: 8px;
}

.searchbox {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background-color: var(--sc-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 10;
    border-width: 3px;
    /* 太さ */
    border-style: solid;
    /* スタイル */
    border-color: var(--ba-black);
    /* 色 */
}

.searchbox input {
    width: 70%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    text-align: center;
    background-color: white;
}

.searchbox input::placeholder {
    font-size: 12px;
}

.line {
    position: absolute;
    width: 5px;
    height: 0;
    background-color: var(--cb-pattern);
    transform-origin: center top;
    animation: extendLine 1s ease forwards;
    z-index: 1;
}

@keyframes extendLine {
    to {
        height: 300px;
    }
}

.new-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--sc-color);
    justify-content: center;
    transform: translate(-50%, -50%);
    animation: appearCircle 0.5s ease 1s forwards;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.new-circle p {
    margin: 0 auto;
}

@keyframes appearCircle {
    to {
        width: 150px;
        height: 150px;
    }
}

/* アニメーションなしの線(履歴復元時用) */
.line-no-animation {
    position: absolute;
    width: 3px;
    background-color: var(--cb-pattern);
    transform-origin: center top;
    z-index: 1;
}

/* アニメーションなしの円(履歴復元時用) */
.circle-no-animation {
    position: absolute;
    border-radius: 50%;
    background-color: var(--ne-circle);
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* キーワードの線 */
.keyword-line {
    z-index: 1;
    width: 5px;
    height: 0;
    background-color: var(--cb-pattern);
    position: absolute;
    transform-origin: top center;
}

/* キーワードの円 */
.keyword-circle {
    z-index: 5;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #5f94d5;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}

.keyword-circle.center {
    cursor: default;
}

.keyword-circle span {
    margin-top: 20px;
}

/* サイドバー */
.sidebar {
    width: 260px;
    background-color: var(--cb-pattern);
    display: flex !important;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 100;
    height: 100vh;
}

.sidebar.hidden {
    margin-left: -260px;
}

.sidebar-header {
    padding: 12px;
}


/* チャット履歴 */
.chat-history {
    flex: 1;
    padding: 8px;
}

.sidebar-move {
    overflow-y: auto;
    height: 100%;
}

.sidebar span {
    pointer-events: none;
}

.chat-item {
    padding: 12px;
    color: var(--ba-black);
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    text-align: left;
}

.chat-item:hover {
    background-color: var(--si-hover);
}

.chat-item.active {
    background-color: var(--si-active);
}

.chat-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-item-delete {
    opacity: 0;
    background: none;
    border: none;
    color: var(--ba-black);
    cursor: pointer;
    padding: 4px;
    font-size: 20px !important;
    transition: opacity 0.2s;
}

.chat-item:hover .chat-item-delete {
    opacity: 1;
}

.chat-item-delete:hover {
    color: var(--si-delete);
}

/* サイドバーフッター */
.sidebar-footer {
    background-color: var(--si-footer);
    /* padding: 12px; */
}

.user-profile {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    padding: 20px;
    height: 80px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.user-info {
    user-select: none;
    display: flex;
    flex-direction: column;
    color: var(--ba-black);
    gap: 4px;
    flex: 1;
}

.username {
    margin-left: 6px;
    text-align: left;
    white-space: nowrap;
    width: 178px;
    overflow: hidden;
}

.card-button {
    background: none;
    border: none;
    color: var(--ba-black);
    font-size: 15px;
    /* padding: o; */
    width: 100%;
    height: 25px;
    margin-top: 12px;
    margin-left: 24px;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.card-button:hover {
    color: var(--cb-pattern);
}

.avatar {
    background-color: var(--ba-cream);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}


/* ログイン画面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    z-index: 100;
    background-color: var(--ba-white)
}

.login-box {
    background-color: var(--ba-black);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
}

.login-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-btn {
    width: 80%;
    height: 50px;
    font-size: 20px;
    border-radius: 15px;
    margin: 5px 0;
    display: flex;
    color: white;
    background-color: #202123;
    border: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.btn-icon {
    font-weight: bold;
    font-size: 18px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--ba-white);
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--ba-black);
}

.divider span {
    padding: 0 16px;
    font-size: 14px;
}

.email-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
}

.email-form input {
    padding: 12px;
    background-color: var(--ba-black);
    border-radius: 15px;
    color: var(--cb-pattern);
    font-size: 20px;
    outline: none;
}

.email-form input:focus {
    border-color: var(--si-decide);
}

.email-form input::placeholder {
    font-size: 20px;
}

.signup-link {
    text-align: center;
    font-size: 14px;
    color: var(--ba-white);
    margin-top: 8px;
}

.signup-link a {
    color: var(--si-decide);
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.verification-notice {
    background-color: var(--ba-black);
    border: 1px solid var(--si-decide);
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.verification-notice strong {
    color: var(--si-decide);
}

.container {
    display: flex;
    height: 100vh;
}

.toggle-sidebar {
    position: absolute;
    top: 12px;
    left: 272px;
    width: 40px;
    height: 40px;
    background-color: var(--cb-pattern);
    border: 2px solid var(--ba-black);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.toggle-sidebar:hover {
    background-color: var(--si-hover);
}

.toggle-sidebar.sidebar-closed {
    left: 12px;
}

.material-symbols-outlined {
    color: var(--ba-black);
}

.sidebar-button {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 2px solid var(--ba-black);
    border-radius: 6px;
    color: var(--ba-black);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.sidebar-button:not(:first-child) {
    margin-top: 5px;
}

.sidebar-button:hover {
    background-color: var(--si-hover);
}

.sidebar-button .icon {
    font-size: 20px;
    font-weight: 300;
}

.center-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--sc-color);
    border: 3px solid var(--ba-black);
    color: var(--ba-black);
    z-index: 10;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* クリック可能を示す */
    transition: background-color 0.2s ease;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.center-button span {
    font-size: 40px;
    margin-top: 32px;
}

.reserve-button,
.link-div {
    background-color: var(--cb-pattern);
    margin-top: auto;
    font-size: 19px;
    width: 100%;
    height: 100%;
}

.reserve-button {
    height: 50px;
    padding-top: 5px;
}

.link-div {
    height: 25px;
    font-size: 13px;
    transition: opacity 0.3s;
}

.reserve-button.active {
    background-color: var(--si-active);
}

.center-button:active {
    background-color: rgb(148, 174, 209);
    /* ホバー効果を追加 */
}

.center-button:has(.reserve-button:active) {
    background-color: var(--sc-color);
    /* デフォルトの色に固定 */
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

.sidebar-footer.active .card-content {
    max-height: 1000px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* ボタン間の間隔 */
    width: 100%;
    /* padding: 2rem 2rem 0 2rem; */
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.sidebar-footer .card-body {
    opacity: 1;
}

/* 設定 */

.setting {
    position: fixed;
    display: flex;
    background-color: var(--ba-white);
    border-radius: 10px;
    border: 2px solid var(--ba-black);
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.setting.active {
    display: flex;
}

.setting-side {
    background-color: var(--ba-cream);
    color: var(--ba-white);
    width: 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.setting-main {
    flex: 1;
    padding: 20px;
    color: var(--ba-black);
    overflow-y: auto;
}

.settingTab {
    padding: 15px 0px;
    margin-bottom: 5px;
    width: 90%;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    border-radius: 10px;

}

.settingTab:hover {
    background-color: var(--si-active);
}

.settingTab.active {
    background-color: var(--ba-black);
}

.close-div {
    background-color: var(--ba-white);
    width: 100%;
    height: 50px;
    border-radius: 50px 0 0;
}

.cross {
    background-color: transparent;
    border: none;
    margin-top: 5px;
    margin-left: 5px;
    margin-right: auto;
}

.cross .material-symbols-outlined {
    color: var(--ba-black);
    font-size: 28px;
    cursor: pointer;
}

.cross .material-symbols-outlined:hover {
    color: var(--ba-white);
}

.project-cross,
.search-cross {
    margin-top: 10px;
    margin-left: 15px;
    height: 30px;
}

.project-cross .material-symbols-outlined,
.search-cross .material-symbols-outlined {
    font-size: 35px;
}

.project-cross .material-symbols-outlined:hover,
.search-cross .material-symbols-outlined:hover {
    color: var(--si-active);
}

.search-cross {
    height: 40px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

#cancelItem {
    display: none;
}

#cancelItem.active {
    display: flex;
}


.setting-theme {
    display: flex;
    justify-content: center;
    align-items: center;
}

#deleteAll,
#logoutAll,
#cancelSubscription {
    background-color: transparent;
    text-align: center;
    color: var(--si-delete);
    border: var(--si-delete) solid 2px;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
}

/* タブコンテンツ */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* 検索 */

.search-chat-div {
    position: fixed;
    background-color: var(--ba-white);
    width: calc(90% - 206px);
    height: 70%;
    top: 50%;
    left: calc(50% + 130px);
    transform: translate(-50%, -50%);
    border-radius: 10px;
    border: 2px solid var(--ba-black);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.search-chat-div.active {
    display: flex;
}

.search-chat-div input {
    width: calc(90% - 30px);
    padding: 10px;
    margin: 12px;
    background-color: var(--cb-pattern);
    border: 1.5px solid var(--ba-black);
    border-radius: 6px;
    color: var(--ba-black);
    font-size: 18px;
}

.search-chat-div input::placeholder {
    font-size: 18px;
}

.search-items {
    flex: 1;
    overflow-y: auto;
    width: 90%;
    text-align: left;
    padding: 0 12px 12px 12px;
}

.search-item {
    padding: 12px;
    background-color: var(--ba-cream);
    border-radius: 6px;
    margin-top: 8px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.search-item:hover {
    background-color: var(--ba-black);
}

.search-item.active {
    background-color: var(--si-decide);
}

.search-item-title {
    color: #d6d1ca;
    font-size: 16px;
    font-weight: 500;
}

.search-item-date {
    color: #d6d1ca;
    font-size: 14px;
}

.search-no-results {
    text-align: center;
    color: var(--ba-white);
    padding: 20px;
    font-size: 14px;
}

.project-container {
    display: none;
}

.project-container.active {
    display: block;
}

.project-margin {
    padding: 4px;
}

.render-project {
    padding: 12px;
    background-color: var(--ba-cream);
    border-radius: 6px;
    margin-top: 8px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: flex-start;
    align-self: stretch;
    gap: 4px;
}

.render-project:hover {
    background-color: var(--ba-black);
}

.render-project:active {
    background-color: var(--si-decide);
}

.render-project-title {
    color: var(--ba-white);
    font-size: 16px;
    font-weight: 500;
}

.project-div {
    position: fixed;
    background-color: var(--ba-white);
    width: calc(90% - 206px);
    height: 70%;
    top: 50%;
    left: calc(50% + 130px);
    transform: translate(-50%, -50%);
    border-radius: 10px;
    border: 2px solid var(--ba-black);
    z-index: 1001;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    color: var(--ba-black);
}

.project-div.active {
    display: flex;
    /* block から flex に変更 */
}

.projects {
    align-items: center;
    text-align: center;
    display: none;
    /* ← 追加 */
}

.project-input {
    width: 100%;
    padding: 10px;
    background-color: var(--cb-pattern);
    border: 1.5px solid var(--ba-black);
    color: var(--ba-black);
    font-size: 18px;
    border-radius: 5px;
}

.project-input::placeholder {
    font-size: 18px;
}


.new-project-div {
    display: flex;
    align-items: center;
    width: 90%;
    padding: 12px;
}

.projectOpen {
    font-size: 16px;
    color: var(--ba-black);
    background-color: transparent;
    border-width: 0;
    border-radius: 6px;
    padding: 12px 20px;
    text-align: left;
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.projectOpen:hover {
    background-color: var(--si-hover);
}

.project-search {
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    /* display: block; */
    width: 90%;
    height: 100%;
    padding: 0 12px 12px 12px;
}

.project-search>[data-i18n] {
    font-size: 20px;
    margin: auto;
    text-align: center;
}

.project-search div.hidden {
    display: none;
}

.projectNewChat {
    display: flex;
    font-size: 14px;
    color: var(--ba-black);
    background-color: transparent;
    border: none;
    text-align: left;
    align-items: center;
    padding: 12px;
    margin-top: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.projectNewChat:hover {
    background-color: var(--si-hover);
}


.newProject {
    background-color: transparent;
    font-size: 14px;
    color: var(--ba-black);
    border: 0;
    text-align: left;
    display: flex;
    align-items: center;
    border-radius: 6px;
    justify-content: space-between;
    margin-top: 4px;
    width: 100%;
    padding: 12px 20px;
    cursor: pointer;
}

.newProject:hover {
    background-color: var(--si-hover);
}

.newProject.active {
    background-color: var(--si-active);
}

.projects .chat-item {
    padding: 12px;
    background-color: transparent;
    margin-top: 4px;
}

.projects .chat-item:hover {
    background-color: var(--si-hover);
}

/* ★ この部分を追加 */
.projects .chat-item.active {
    background-color: var(--si-active);
}

.project-item-container {
    display: none;
}

.projectH3 {
    display: block;
}

.projectH3.hidden {
    display: block;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--ba-cream);
    border: none;
    border-radius: 6px;
    color: var(--ba-white);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.custom-select-trigger:hover {
    background-color: var(--ba-black);
    border-color: var(--si-decide);
}

.custom-options,
.theme-options {
    /* position: absolute; */
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--ba-cream);
    border: 2px solid var(--ba-black);
    border-radius: 6px;
    margin-top: 4px;
    display: none;
    z-index: 1000;
    overflow-y: auto;
    max-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: var(--ba-white) var(--ba-cream);
}

/* スクロールバーのスタイリング（Webkit系ブラウザ） */
.custom-options::-webkit-scrollbar,
.theme-options::-webkit-scrollbar {
    width: 8px;
}

.custom-options::-webkit-scrollbar-track,
.theme-options::-webkit-scrollbar-track {
    background-color: var(--ba-cream);
    border-radius: 4px;
}

.custom-options::-webkit-scrollbar-thumb,
.theme-options::-webkit-scrollbar-thumb {
    background-color: var(--ba-white);
    border-radius: 4px;
}

.custom-options::-webkit-scrollbar-thumb:hover,
.theme-options::-webkit-scrollbar-thumb:hover {
    background-color: var(--si-decide);
}

.custom-options.active,
.theme-options.active {
    display: block;
}

.custom-option,
.theme {
    padding: 12px 16px;
    width: 100%;
    color: var(--ba-white);
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: var(--ba-cream);
    border: none;
}

.custom-option:hover,
.theme:hover {
    background-color: var(--ba-black);
}

.custom-option.selected,
.theme.selected {
    background-color: var(--si-decide);
    color: var(--ba-white);
    font-weight: 600;
}

.hide-div {
    position: absolute;
    backdrop-filter: blur(1px);
    background-color: rgba(0, 0, 0, 0.226);
    z-index: 999;
    width: 100%;
    height: 100%;
    display: none;
}

#hide2 {
    z-index: 4999;
}

.hide-div.active {
    display: block;
}

/* .benri {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: red;
    z-index: 10000000;
} */


/* サブスク */

.select-body {
    background-color: var(--cb-color);
    overflow-y: auto;
}

.monthly-plans {
    width: 100%;
    display: none;
}

.monthly-plans.active {
    display: flex;
}

.oneDay-plans {
    width: 100%;
    padding: 0 80px;
    display: none;
}

.oneDay-plans.active {
    display: flex;
}

.back-canvas {
    margin-top: 20px;
    text-decoration: none;
    display: flex;
    margin-left: 50px;
    width: 30px;
}

.back-canvas .material-symbols-outlined {
    font-size: 30px;
}

.update-div {
    font-size: 35px;
    margin-bottom: 10px;
}

.register-box {
    background-color: rgb(255, 239, 196);
    padding: 20px 30px;
    margin: 15px;
    border-radius: 12px;
    border: 1px solid rgb(194, 182, 149);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.register-box h1 {
    display: flex;
    margin-bottom: 8px;
    margin-top: 0;
    margin-right: 0;
    font-size: 32px;
    color: var(--ba-black);
}

.subscription-features {
    background-color: var(--ba-black);
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0 20px;
}

.subscription-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.subscription-features li {
    color: var(--ba-white);
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--ba-black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-features li:last-child {
    border-bottom: none;
}

.price-info {
    color: var(--si-decide);
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
}

.price-info small {
    font-size: 16px;
    color: var(--ba-black);
}

.plan-description {
    display: flex;
    margin-left: 0;
    color: var(--ba-black);
    font-size: 16px;
    margin-bottom: 20px;
}

.subscribe-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: var(--ba-black);
    border: 1px solid var(--ba-black);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin: 10px 0;
}

.subscribe-btn.active {
    border-color: var(--si-delete);
    color: var(--si-delete);
}

.notice-div {
    color: var(--ba-cream);
    margin-top: 30px;
}

/* stripe */

.subscribe-body {
    background-color: var(--cb-color);
    overflow-y: auto;
}

.subscribe-top {
    text-align: center;
    align-items: center;
    display: flex;
    width: 100%;
    margin-top: 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    margin-left: 50px;
    color: var(--ba-black);
    text-decoration: none;
}

.back-btn span {
    font-size: 30px;
}

.subscribe-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* height: 100%; */
    justify-content: center;
}

#plan-name {
    color: var(--ba-black);
    margin: 0;
    margin-left: 30px;
}

.input-div {
    width: 40%;
    height: 90%;
}

.checkout-div {
    box-sizing: border-box;
    margin-top: 10px;
    padding: 30px;
    border-radius: 50px;
    background-color: rgb(255, 239, 196);
    border: 2px solid var(--ba-black);
    margin-bottom: 30px;
    width: 45%;
}



.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--ba-black);
}

#payment-element {
    margin-bottom: 20px;
}

#submit-button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: var(--si-decide);
    color: var(--cb-pattern);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
}



#submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #d6d1ca;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

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

#error-message {
    color: #ff6b6b;
    margin-top: 5px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.error-message,
.success-message,
.loading-spinner {
    display: none;
}

.loading-spinner.show {
    display: block;
}

.error-message.show,
.success-message.show {
    display: block;
}

.features {
    width: 100%;
}

.features h3 {
    font-size: 16px;
    margin-top: 10px;
    color: #202123;
}

.features ul {
    list-style: none;
}

.features li {
    padding: 8px 0;
    color: #202123;
    display: flex;
    align-items: center;
}


.select-payment {
    display: flex;
    flex-direction: column;
    background-color: var(--cb-pattern);
    width: 100%;
    height: 100px;
    border-radius: 30px;
    padding: 10px 20px;
    border: 2px solid var(--ba-black);
}

.select-payment.active {
    border-color: var(--si-decide);
}

.select-payment div {
    font-size: 30px;
    margin-right: auto;
}

.select-payment span {
    font-size: 15px;
    margin-right: auto;
}

.select-payment:first-child {
    margin-right: 10px;
}

.payment-div {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 239, 196);
    border-radius: 50px;
    margin-top: 30px;
    width: 45%;
    padding: 30px;
    border: 2px solid var(--ba-black);
}

.pay-detail {
    background-color: var(--cb-pattern);
    box-sizing: border-box;
    width: 100%;
    border-radius: 20px;
    padding: 10px 15px;
    border: 2px solid var(--ba-black);
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: left;
}

.pay-detail h3 {
    color: var(--ba-black);
    font-weight: normal;
    font-size: 20px;
}

.payment-div hr {
    margin: 5px;
    width: 100%;
}

.price-container {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.price-container:first-child {
    margin: 0;
}

.logo-button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    margin-top: 10px;
}

.logo-button img {
    width: 60%;
    display: block;
}

.logo-header {
    height: 100px;
    width: 100%;
    padding: 12px;
}

.gsi-material-svg {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    -webkit-box-sizing: border-box;
    border: none;
    height: 20px;
    padding: 0;
    width: 20px;
    background-color: transparent;
}

header {
    background-color: rgb(254, 249, 230);
    width: 100%;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    margin-top: 10px;
}

.terms-header {
    background-color: var(--cb-color);
}

.logo {
    height: 50px;
    margin-left: 20px;
}

.bottom-div {
    background-color: rgb(38, 38, 38);
    height: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.main-content {
    background-color: rgb(255, 224, 137);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 85vh;
}

.main-content.white {
    background-color: rgb(255, 250, 237);
}

.movie {
    background-color: gray;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 55px;
    overflow: hidden;
}

.google-login,
.email-form input,
.email-button {
    width: 80%;
    height: 50px;
    font-size: 25px;
    border-radius: 15px;
    margin: 5px 0;
    color: white;
    background-color: #202123;
}

input {
    box-sizing: border-box;
    padding: 10px;
}

.about-mining {
    display: flex;
    padding: 60px 40px;
    background-color: rgb(255, 255, 255);
    border-radius: 50px;
    width: 88%;
    margin-top: 50px;
    margin-bottom: 50px;
}

.mining-h1 {
    width: 50%;
    height: auto;
}

.mining-h1.fr {
    width: 30%;
}

.about {
    font-size: 50px;
    line-height: 1;
    white-space: nowrap;
}

.about.fr {
    font-size: 30px;
}

.homepage-h3 {
    box-sizing: border-box;
    width: 55%;
}

.about-div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50vw;
}

.homepage-a,
.home-language {
    color: white;
    text-decoration: none;
    font-size: 17px;
    margin-left: 15px;
    /* white-space: nowrap */
    cursor: pointer;
}

.language-icon {
    margin-right: 5px;
}

.language-div {
    width: 300px;
    height: 300px;
    background-color: var(--ba-white);
    border: 2px solid var(--ba-black);
    position: absolute;
    right: 10px;
    display: none;
    margin-bottom: 430px;
    border-radius: 10px;
    overflow: hidden;
    overflow-y: auto;
    font-size: 15px;
    overscroll-behavior: none;
    z-index: 11;
}

.language-div.active {
    display: flex;
    flex-direction: column;
}

.language-option {
    padding: 5px;
}

.language-option:hover {
    background-color: #a5a19c;
}

.language-option.selected {
    background-color: var(--si-decide);
    color: var(--ba-white);
}

.home-language {
    background-color: var(--ba-white);
    color: var(--ba-black);
    padding: 10px 30px;
    border-radius: 300px;
    margin: auto;
    margin-right: 25px;
    display: flex;
    text-align: center;
    align-items: center;
}

video {
    height: 100%;
    pointer-events: none;
}

.menu {
    font-size: 45px !important;
    margin-right: 20px;
    cursor: pointer;
}


#settingArrow {
    color: var(--ba-white) !important;
}

.sub-text {
    width: 50px;
    height: 30px;
    margin-top: 18px;
}

.canvas-btn {
    display: flex;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.reserve-description {
    display: none;
    width: 200px;
    height: 120px;
    border-radius: 10px;
    border: 2px solid var(--ba-black);
    background-color: var(--ba-white);
    z-index: 1000;
    margin-right: 10px;
    margin-top: auto;
    margin-bottom: 5px;
    padding: 0;
    padding-top: 5px;
}

.reserve-description.active {
    display: flex;
}

.alert-div {
    position: fixed;
    display: none;
    flex-direction: column;
    background-color: var(--ba-white);
    border: 2px solid var(--ba-black);
    color: var(--ba-black);
    min-height: 150px;
    z-index: 5000;
    width: calc(60% - 206px);
    left: calc(50% + 130px);
    /* ← サイドバー分ずれている */
    transform: translate(-50%, -50%);
    top: 50%;
    border-radius: 20px;
    padding: 20px;
    justify-content: space-between;
}

.select-body .alert-div {
    left: 50%;
}

.alert-div.active {
    display: flex;
}

.alert_sentence {
    font-size: 20px;
    text-align: left;
}

.alert-options {
    display: flex;
    justify-content: flex-end;
}

.alert-cancel,
.alert-decide {
    background-color: transparent;
    border-radius: 10px;
    padding: 5px 10px;
    border: 2px solid var(--ba-black);
    font-size: 15px;
    margin-bottom: 0;
    margin-left: 8px;
    color: var(--ba-black);
    text-align: center;
}

.alert-decide {
    border: none;
    color: var(--ba-white);
    background-color: var(--si-delete);
}

.refresh-span {
    position: absolute;
    bottom: 20px;
    right: 20px;
    transform: translateX(-50%);
    color: var(--cb-pattern);
}

.side-menu {
    width: 40%;
    height: 100%;
    background-color: #202123e9;
    position: absolute;
    right: 0;
    display: none;
    flex-direction: column;
    text-align: left;
    padding: 20px;
    padding-right: 25px;
    padding-left: 30px;
    z-index: 11;
}

.side-menu.active {
    display: flex;
}

.side-menu a {
    margin-top: 20px;
    font-size: 25px;
    color: var(--cb-pattern);
}

.side-menu span {
    font-size: 45px;
    margin-left: auto;
    margin-bottom: 30px;
    color: var(--cb-pattern);
}

.hide-home,
.hide-home2 {
    width: 100%;
    height: 100%;
    position: fixed;
    backdrop-filter: blur(1px);
    background-color: rgba(0, 0, 0, 0.226);
    display: none;
    z-index: 10;
    top: 0;
}

.hide-home.active,
.hide-home2.active {
    display: flex;
}

.code-digit {
    width: 60px !important;
    height: 60px !important;
    font-size: 24px;
    margin: 8px !important;
    text-align: center;
    border-radius: 8px;
    color: #ececf1;
}

.code-input-container {
    display: flex;
    justify-content: center;
    width: 80%;
}

.code-section {
    display: none;
}

.code-section.active {
    display: flex;
    flex-direction: column;
}

.resend-btm {
    color: rgb(75, 111, 220);
    font-size: 20px;
}

#passwordSection {
    display: none;
    width: 100%;
}

#passwordSection input {
    width: 80%;
}

#passwordHint {
    display: none;
}

.error-div {
    position: fixed;
    background-color: yellow;
    border-radius: 5px;
    border: 2px solid var(--ba-black);
    height: 50px;
    /* width: 200px; */
    right: -500px;
    top: 15px;
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 18px;
    transition: right 0.5s ease;
}

.error-div.active {
    display: flex;
    right: 15px;
    left: auto;
}

.error-div .material-symbols-outlined {
    font-size: 30px;
    margin-right: 5px;
}

.contact-div,
.contact-content {
    display: flex;
    background-color: white;
    /* padding: 0; */
    font-size: 20px;
    /* padding-left: 10px; */
    border-radius: 10px;
    align-items: center;
    border: 2px solid var(--ba-black);
    width: 70%;
    margin: 4px;
    height: 50px;
    overflow: hidden;
    text-align: left;
}

.contact-div.active {
    border-color: var(--si-delete);
}

.contact-info {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 350px;
    padding-left: 10px;
    background-color: var(--ba-white);
}

.contact-info.active {
    color: var(--si-delete);
}

.contact-div input {
    width: 100%;
    font-size: 17px;
}

textarea {
    resize: none;
    padding: 10px;
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 17px;
    border: none;
    font-family: inherit;
}

.contact-content {
    height: 200px;
    margin-bottom: 20px;
}

.contact-content .contact-info {
    padding-top: 10px;
    align-items: flex-start;
    /* 縦：上揃え */
    justify-content: flex-start;
}

.contact-submit {
    width: 70%;
    height: 50px;
    margin: 8px;
    background-color: var(--si-decide);
    border-radius: 10px;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cb-pattern);
    font-weight: bold;
    margin-bottom: 50px;
    cursor: pointer;
}

.contact-h1 {
    margin: 30px;
    margin-top: 50px;
}

.contact-msg {
    display: none;
    width: 70%;
    height: 50px;
    border-radius: 10px;
    border: 2px solid var(--si-delete);
    color: var(--si-delete);
    text-align: center;
    align-items: center;
    font-size: 20px;
    padding: 10px;
}

.contact-msg.active {
    display: flex;
}

.contact-msg.success {
    border-color: var(--si-decide);
    color: var(--si-decide);
}

.terms-contents {
    display: flex;
    width: 70%;
    margin-bottom: 80px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.article {
    margin: 28px 0 10px;
    font-size: 30px;
}

.terms {
    font-size: 17px;
}

.terms-subject {
    margin-bottom: 50px;
    font-size: 35px;
    margin-top: 80px;
}

.info-div {
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* height: 65px; */
    min-height: 65px;
}

.info-content {
    background-color: rgb(255, 250, 237);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-subject {
    background-color: var(--cb-color);
    width: 300px;
    border: 2px solid var(--ba-black);
    border-top: none;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.info-subject:first {
    border-top: 2px solid var(--ba-black);
}

.info-table {
    margin-bottom: 70px;
    width: 80%;
    font-size: 18px;
}

#topSub,
#topInfo {
    border-top: 2px solid var(--ba-black);
}

.info {
    border: 2px solid var(--ba-black);
    width: 600px;
    display: flex;
    border-top: none;
    border-left: none;
    text-align: left;
    align-items: center;
    padding: 10px;
    padding-left: 10px;
}

.cookie-div {
    width: calc(100% - 30px);
    height: 100px;
    border-radius: 10px;
    align-self: center;
    justify-content: space-between;
    background-color: var(--ba-white);
    position: fixed;
    bottom: 10px;
    color: var(--ba-black);
    display: flex;
    align-items: center;
    font-size: 20px;
    padding-right: 20px;
    z-index: 2000;
}

.cookie-sentence {
    margin-left: 30px;
    padding-right: 30px;
    font-size: 15px;
    text-align: left;
    width: 60%;
}

.cookie-sentence a {
    color: var(--ba-black);
}

.accept,
.reject,
.choice {
    background-color: var(--si-decide);
    padding: 20px 15px;
    height: 40px;
    border-radius: 5px;
    border: 2px solid var(--ba-black);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    white-space: nowrap;
}

.reject,
.choice {
    background-color: var(--ba-white);
}

.setting-cookie {
    position: fixed;
    background-color: #202123e9;
    height: 100%;
    width: 40%;
    top: 0;
    display: none;
    flex-direction: column;
    padding: 30px;
    justify-self: flex-end;
    right: 0;
    color: var(--cb-pattern);
    z-index: 2000;
}

.setting-cookie.active {
    display: flex;
}

.cookie-decide {
    display: flex;
}

.active-cookie {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 18px;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

#analyticsCookie {
    display: none;
    /* チェックボックス自体を非表示 */
}

.cookie-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: 0.3s;
}

/* スライドする丸 */
.cookie-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* チェック時の色 */
#analyticsCookie:checked+.cookie-slider {
    background-color: #2ead61;
}

/* チェック時に丸を右に移動 */
#analyticsCookie:checked+.cookie-slider::before {
    transform: translateX(24px);
}

.decide-cookie {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.cookie-cancel,
.cookie-save {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: var(--cb-pattern);
    color: var(--ba-black);
    font-size: 20px;
    height: 50px;
    width: 40%;
}

.cookie-setting {
    font-size: 25px;
    margin-bottom: 5px;
}

.bottom-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 80%;
}

.setting-cookie-div {
    color: var(--ba-white);
    display: flex;
    margin-bottom: 10px;
    cursor: pointer;
}

.terms-h1 {
    margin-bottom: 30px;
}

.account-div {
    color: var(--ba-black);
    font-size: 18px;
}

#accountDiv {
    display: none;
}

.cookie-option {
    display: flex;
}

.success-div {
    position: absolute;
    display: flex;
    flex-direction: column;
    background-color: var(--ba-white);
    border: 2px solid var(--ba-black);
    width: 60%;
    padding: 50px;
    transform: translate(-50%, -50%);
    border-radius: 30px;
    top: 50%;
    left: 50%;
    align-items: center;
    justify-content: center;
}

.success-sentence {
    font-size: 30px;
}

.blur-div {
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, 0.226);
    position: fixed;
    display: none;
    z-index: 10;
}

.success-button {
    margin-top: 30px;
    font-size: 20px;
    padding: 5px;
    width: 70%;
    border-radius: 100px;
    background-color: var(--cb-pattern);
    color: var(--ba-black);
    border: 2px solid var(--ba-black);
}

.change-sentence {
    display: none;
    font-size: 15px;
    /* text-align: center; */
    justify-content: center;
}

#sideClose {
    cursor: pointer;
}

/* === モバイル対応 === */
@media (max-width: 768px) {

    /* 設定モーダル */
    .setting {
        width: 95%;
        height: 80%;
        flex-direction: column;
    }

    .setting-side {
        flex-direction: row;
        width: 100%;
        height: auto;
    }

    .settingTab {
        width: 30%;
        margin: 5px;
    }

    .setting .cross {
        margin-right: 5px;
    }

    /* 検索・プロジェクトダイアログ */
    .search-chat-div,
    .project-div {
        width: 92%;
        left: 50%;
        height: 75%;
    }

    .checkout-div,
    .payment-div {
        width: 90%;
    }

    .monthly-plans,
    .oneDay-plans {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .register-box {
        width: 90%;
    }

    .update-div {
        font-size: 25px;
        margin-bottom: 20px;
        margin: 0 20px 20px;
    }

    .about-mining {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px;
    }

    .homepage-h3 {
        margin-top: 10px;
        width: 100%;
    }

    .homepage-a {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .a-container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    video {
        width: 300%;
        height: auto;
    }

    .movie {
        height: auto;
    }

    .side-menu,
    .setting-cookie {
        width: 70%;
        height: 100%;
    }

    .alert-div {
        width: 85%;
        left: 50%;
        /* ← +130pxをリセット */
        transform: translate(-50%, -50%);
    }

    .hide-home,
    .hide-home2 {
        background-color: transparent;
        height: 100%;
    }

    .info-table {
        width: 90%;
        /* font-size: 13px; */
    }

    .terms-subject {
        font-size: 30px;
        margin-bottom: 20px;
        margin-top: 50px;
    }

    .terms-contents {
        width: 80%;
    }

    .cookie-div {
        display: flex;
        flex-direction: column;
        height: auto;
        justify-content: center;
        padding: 0
    }

    .cookie-sentence {
        margin-top: 10px;
        margin-bottom: 10px;
        width: 90%;
    }

    .cookie-decide {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .accept,
    .reject,
    .choice {
        margin-bottom: 10px;
        font-size: 15px;
        padding: 8px;
        margin-right: 5px;
    }

    .accept {
        margin-right: 0;
    }

    .home-language {
        /* padding: 10px; */
        /* font-size: 14px; */
    }

    .back-canvas {
        margin-left: 35px;
    }

    .account-div {
        font-size: 15px;
        margin: 0 20px;
    }

    .success-div {
        padding: 20px;
    }

    .success-sentence {
        font-size: 20px;
    }

    .contact-div {
        width: 90%;
    }
}