body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
    padding-bottom: 80px; /* フッターの高さ分のパディングを追加 */
}
.navbar {
    /* background-color: #343a40; */
    background-color: #283446;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.navbar img {
    max-width: 150px;
}
.navbar div {
    display: flex;
}
.navbar a {
    font-size: 0.9em;
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    display: inline-block; /* リンクをインラインブロックに設定 */
}
.navbar a::after {
    content: '';
    display: block;
    height: 2px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s;
    width: 100%;
    margin-top: 5px;
}
.navbar a:hover::after {
    transform: scaleX(1);
}

/* Navigation Bar */
.nav-bar {
    background-color: #00B3FF !important;
    padding: 10px 30px;
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-bar .nav-button,
div.nav-bar .nav-button,
.nav-bar a.nav-button {
    font-size: 0.9em !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    margin: 0 !important;
    height: auto !important;
}

.nav-bar .nav-button svg,
div.nav-bar .nav-button svg,
.nav-bar a.nav-button svg {
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-bar .nav-button:hover,
div.nav-bar .nav-button:hover,
.nav-bar a.nav-button:hover,
a.nav-button:hover {
    background-color: transparent !important;
    color: #ffc107 !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.nav-bar .nav-button::after,
div.nav-bar .nav-button::after,
.nav-bar a.nav-button::after {
    content: '';
    display: block;
    height: 2px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s;
    width: 100%;
    margin-top: 5px;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.nav-bar .nav-button:hover::after,
div.nav-bar .nav-button:hover::after,
.nav-bar a.nav-button:hover::after {
    transform: scaleX(1);
}

/* 認証リンクのスタイル */
.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-links form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    padding-bottom: 2%;
}

/* 認証リンクのスタイル - より具体的なセレクタで強制適用 */
.auth-links a,
.navbar .auth-links a,
div.auth-links a,
.navbar div.auth-links a {
    font-size: 0.9em !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    margin: 0 !important;
    height: auto !important;
}

.auth-links a svg {
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
}

.auth-links a:hover,
.navbar .auth-links a:hover,
div.auth-links a:hover,
.navbar div.auth-links a:hover {
    background-color: transparent !important;
    color: #ffc107 !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.auth-links a::after {
    content: '';
    display: block;
    height: 2px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s;
    width: 100%;
    margin-top: 5px;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.auth-links a:hover::after {
    transform: scaleX(1);
}

.logout-btn,
.navbar .logout-btn,
div.logout-btn,
.navbar div.logout-btn {
    font-size: 0.9em !important;
    color: #ffffff !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.logout-btn svg {
    display: block;
    flex-shrink: 0;
}

.logout-btn:hover,
.navbar .logout-btn:hover,
div.logout-btn:hover,
.navbar div.logout-btn:hover {
    background-color: transparent !important;
    color: #ffc107 !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.logout-btn::after {
    content: '';
    display: block;
    height: 2px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s;
    width: 100%;
    margin-top: 5px;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.logout-btn:hover::after {
    transform: scaleX(1);
}
.header {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    padding: 0px 10px 10px 10px;
    text-align: center;
    border-bottom: 4px solid #0056b3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    font-family: futura;
}
.header p {
    font-size: 1.3em;
    font-weight: 300;
}
.header input, .header button {
    padding: 12px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}
.header input {
    width: 240px;
    border: 1px solid #ccc;
    border-radius: 25px;
    transition: border-color 0.3s;
}
.header input:focus {
    border-color: #ffc107;
    outline: none;
}
.header button {
    background-color: #ffc107;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 25px;
    padding: 12px 15px; /* 横幅を小さくする */
}
.header button:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}
.content {
    display: flex;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    min-height: 100vh;
}
.main {
    flex: 3;
    margin-right: 20px;
    overflow: hidden;
}
.sidebar {
    flex: 1;
}
/* .tabs {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
} */
/* .tabs div {
    padding: 15px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
    color: #555;
    position: relative; 
    font-size: 1em;
} */
/* .tabs div::after {
    content: '';
    display: block;
    height: 2px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s;
    width: 100%;
    margin-top: 5px;
    position: absolute;
    left: 0;
    bottom: 0;
} */
/* .tabs div:hover::after, .tabs .active::after {
    transform: scaleX(1);
} */
.list {
    list-style: none;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 5px 15px;
}

.list li {
    /* background: #ffffff; */
    /* margin-bottom: 12px; */
    /* padding: 12px; */
    /* border-radius: 10px; */
    padding: 7px 0px;
    display: flex;
    align-items: center;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    /* transition: transform 0.2s, box-shadow 0.2s; */
    border-bottom: 1px solid #e0e0e0;
}
.list li:last-child {
    border-bottom: none;
}
/* .list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
} */
.list img {
    width: 4.5em; 
    height: 4.5em;
    object-fit: cover; /* 画像をコンテナに合わせてトリミング */
    display: block; /* インライン要素の隙間を解消するために追加 */
}
.details {
    flex-grow: 1;
}
.details strong {
    margin: 6px 0 2px 0;
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    position: relative; /* 必要な位置を設定 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* 最大行数を1に設定 */
    overflow: hidden; /* 省略記号を表示するために必要 */
    text-overflow: ellipsis; /* 省略記号を表示 */
}
.details strong a {
    text-decoration: none; /* 通常時は下線なし */
    transition: color 0.3s; /* 色の変更にトランジションを追加 */
}
.details strong a:hover {
    text-decoration: underline; /* ホバー時に下線を付ける */
}
.details strong::after {
    content: '';
    display: block;
    height: 2px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s;
    width: 100%;
    margin-top: 5px;
    position: absolute;
    left: 0;
    bottom: 0;
}
.list li:hover .details strong {
    color: #007bff; /* ホバー時の色変更 */
}
.sidebar .rank {
    padding: 15px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.rank h3 {
    margin-top: 0;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    font-size: 1.2em;
    font-weight: 1000;
    margin-bottom: 0;
}
.rank ul {
    list-style: none;
    padding: 0;
    margin-top: 0;
}
.rank ul span {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}
.rank ul span:last-child {
    border-bottom: none;
}
.rank ul span span {
    flex: 1;
    justify-content: center;
    margin-right: 10px;
    border-radius: 50%; /* 丸くする */
    font-weight: bold; /* 太字 */
    width: 25px; /* 幅を調整 */
    height: 25px; /* 高さを調整 */
}
.gold {
    background-color: gold; /* 金色 */
}

.silver {
    background-color: silver; /* 銀色 */
}

.bronze {
    background-color: #cd7f32; /* 銅色 */
}
.default {
    border: none;
}
.rank li {
    flex: 8;
    font-size: 0.9em;
    margin: 10px;
    color: #555;
    /* padding: 4px 0; */
    position: relative;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 最大行数を3に設定 */
    overflow: hidden; /* 省略記号を表示するために必要 */
    text-overflow: ellipsis; /* 省略記号を表示 */
}
.rank li a {
    text-decoration: none; /* 通常時は下線なし */
    color: inherit; /* 親要素の色を継承 */
    transition: color 0.3s; /* 色の変更にトランジションを追加 */
}

.rank li a:hover {
    text-decoration: underline; /* ホバー時に下線を付ける */
    color: blue; /* ホバー時に青くする */
}
.ask-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background-color: #ffc107;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 20px;
}
.ask-button:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    .main {
        margin-right: 0;
    }
}

/* Pagination */

.pagination {
    display: flex;
    justify-content: center;
    /* margin-top: 10px;
    margin-bottom: 10px; */
    padding-left: 0;
    list-style: none;
}

#pagination {
    width: 100%;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination .page-link:hover {
    background-color: #f1f1f1;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
    background-color: #fff;
    border-color: #ddd;
}

/* Thread Page */

.thread-header {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

/* Thread title size aligned to comment text */
.thread-header .thread-title {
    font-size: 1em !important;
    line-height: 1.4 !important;
    margin: 10px 0 !important;
}

.thread-meta {
    font-size: 0.8em;
    color: #6c757d;
}

.media-content {
    margin-bottom: 10px;
}
.media-content img,
.comment-body img {
    max-width: 50%;
    height: auto;
}

/* .comments-section {
    margin-top: 12px;
} */

.comment {
    /* background: #ffffff;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    border-bottom: 1px solid #e0e0e0;
}
.comment-area {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}  
/* .comment-area .comment:first-of-type {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
} */
.comment-area .comment:last-of-type {
    border: none;
    margin-bottom: -15px;
}

.comment-header {
    margin-top: 10px;
    font-size: 0.8em;
    color: #6c757d;
}

.comment-time {
    color: #6c757d;
    /* font-size: 0.85em; */
}

.comment-body {
    /* margin-top: 10px; */
    margin: 10px 0;
}



.comment-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.comment-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.file-upload {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.file-upload label {
    display: flex;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 10px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-upload label:hover {
    background-color: #0056b3;
}

.file-upload span {
    color: #6c757d;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-button {
    display: flex;
    background-color: #28a745;
    color: white;
    padding: 13px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.submit-button[style*="background-color: #dc3545"]:hover {
    background-color: #c82333 !important;
}

.reply-id {
    color: #007bff; /* リンクの色 */
    text-decoration: underline; /* 下線を付ける */
    cursor: pointer; /* ポインタを表示 */
    transition: color 0.3s, text-decoration 0.3s; /* ホバー時のエフェクトに移行を追加 */
    font-weight: bold;
}

.reply-id:hover {
    color: #0056b3; /* ホバー時の色 */
    text-decoration: none; /* ホバー時に下線を消す */
}

/* Footer */

.footer {
    background-color: #283446; /* navbarと同じ色 */
    color: #ffffff; /* 文字色 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px 8px 25px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1); /* 上部に影を付ける */
    z-index: 1000;
}

.footer div {
    display: flex;
}

.footer a {
    font-size: 0.9em;
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    display: inline-block; /* リンクをインラインブロックに設定 */
}

.footer a::after {
    content: '';
    display: block;
    height: 2px;
    background: #ffc107; /* 強調色 */
    transform: scaleX(0);
    transition: transform 0.3s;
    width: 100%;
    margin-top: 5px;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.footer a:hover {
    background-color: transparent !important;
    color: #ffc107 !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.footer a:hover::after {
    transform: scaleX(1);
}

.footer p {
    font-size: 0.7em;
}

/* Create Thread Page */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.form-group #name {
    height: auto;
}
.form-group #email {
    height: auto;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.submit-button svg {
    margin-right: 6px;
}

/* Dropdown */

.category-selector {
    margin: 7px 0; 
    display: flex;
    flex-direction: column;
}

.category-selector label {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.styled-select {
    /*padding: 12px 15px;*/
    font-size: 16px;
    border: 2px solid #555; /* Bootstrap primary color */
    border-radius: 25px;
    background-color: #ffffff; /* White background */
    appearance: none; /* Remove default arrow */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff"><path d="M7 10l5 5 5-5z"/></svg>'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 20%;
    margin: 4px 0;
    margin-bottom: 20px;
}

.styled-select:hover {
    border-color: #0056b3; /* Darker border on hover */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Shadow on hover */
}

.styled-select:focus {
    outline: none;
    border-color: #0056b3; /* Darker shade on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Subtle shadow */
}

.styled-select option {
    padding: 10px; /* Option padding */
    background-color: #f8f9fa; /* Light background for options */
    color: #333; /* Text color */
}

/* Hover effects for options */
.styled-select option:hover {
    background-color: #e9ecef; /* Light gray on hover */
    color: #007bff; /* Primary color on hover */
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .styled-select {
        font-size: 14px;
        padding: 10px;
    }
}

.privacy-policy {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.privacy-policy h1 {
    font-size: 2em;
    color: #283446;
    margin-bottom: 10px;
}

.privacy-policy h3 {
    font-size: 1.5em;
    color: #007bff;
    margin-top: 20px;
}

.privacy-policy p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

.privacy-policy .last-updated {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 20px;
}

.privacy-policy ul {
    margin: 10px 0 20px 20px;
}

.privacy-policy a {
    color: #007bff;
    text-decoration: underline;
}

.privacy-policy a:hover {
    color: #0056b3;
    text-decoration: none;
}

.thankyou {
    text-align: center;
}

/* 認証ページのスタイル */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #283446;
    font-size: 2em;
    font-weight: 700;
    margin: 0;
}

.auth-content {
    color: #333;
}

.auth-content .form-group {
    margin-bottom: 20px;
}

.auth-content label {
    display: block;
    color: #283446;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.auth-content input[type="text"],
.auth-content input[type="email"],
.auth-content input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.auth-content input[type="text"]:focus,
.auth-content input[type="email"]:focus,
.auth-content input[type="password"]:focus {
    outline: none;
    border-color: #ffc107;
}

.auth-content .checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-content .checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.auth-content .checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 0.9em;
}

.auth-content .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.auth-content .btn-primary {
    background: linear-gradient(135deg, #007bff, #00c6ff) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-size: 1em !important;
}

.auth-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.auth-content .link-secondary {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.auth-content .link-secondary:hover {
    color: #ffc107;
}

.auth-content .error-message {
    color: #dc3545;
    font-size: 0.8em;
    margin-top: 5px;
}

/* プロフィールページのスタイル */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 20px;
}

.profile-header h1 {
    color: #283446;
    font-size: 2em;
    font-weight: 700;
    margin: 0;
}

.profile-content {
    color: #333;
}

.profile-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #f8f9fa;
}

.profile-section h2 {
    color: #283446;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

.profile-section .form-group {
    margin-bottom: 20px;
}

.profile-section label {
    display: block;
    color: #283446;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.profile-section input[type="text"],
.profile-section input[type="email"],
.profile-section input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.profile-section input[type="text"]:focus,
.profile-section input[type="email"]:focus,
.profile-section input[type="password"]:focus {
    outline: none;
    border-color: #ffc107;
}

.profile-section .btn-primary {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
    margin-right: 10px;
}

.profile-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.profile-section .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}

.profile-section .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.profile-section .error-message {
    color: #dc3545;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Google Login Styles */
.google-login-section {
    margin-top: 30px;
    text-align: center;
}

.divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e1e5e9;
}

.divider span {
    background-color: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.9em;
}

/* PC版認証ページのボタン - 最高優先度 */
.auth-container .auth-card .auth-content .btn-primary,
.auth-content .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, #007bff, #00c6ff) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-size: 1em !important;
}

.auth-container .auth-card .auth-content .google-login-section .google-login-btn,
.auth-content .google-login-section .google-login-btn,
.google-login-section .google-login-btn,
.google-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #007bff, #00c6ff) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1em !important;
    transition: all 0.3s !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
}

.google-login-btn:hover {
    background: linear-gradient(135deg, #0056b3, #0099cc);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.google-login-btn svg {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

/* Facebookボタン - 最高優先度で確実に適用 */
.auth-container .auth-card .auth-content .google-login-section .facebook-login-btn,
.auth-content .google-login-section .facebook-login-btn,
.google-login-section .facebook-login-btn,
.facebook-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #1877f2, #42a5f5) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1em !important;
    transition: all 0.3s !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}

.facebook-login-btn:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
    color: white;
    text-decoration: none;
}

.facebook-login-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.tabs .styled-select {
    margin-bottom: 20px !important;
}

/* Navbar search input - ensure text is visible */
.navbar form input[type="text"],
.navbar form input[type="search"] {
    color: #333 !important;              /* input text color */
    background-color: #ffffff !important; /* input background */
    border: 1px solid #ced4da !important;
    border-radius: 25px !important;
    padding: 8px 14px !important;
    font-size: 0.95em !important;
    width: 240px !important;
    box-sizing: border-box !important;
}

.navbar form input[type="text"]::placeholder,
.navbar form input[type="search"]::placeholder {
    color: #6c757d !important;           /* placeholder color */
    opacity: 1 !important;
}

.navbar form input[type="text"]:focus,
.navbar form input[type="search"]:focus {
    outline: none !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.4) !important;
}

/* Ad banner (Desktop) */
.ad-banner {
    max-width: 1200px;
    margin: 10px auto 0px auto;
    text-align: center;
    color: #666;
    font-size: 0.95em;
    display: table;
}
.ad-banner span {
    display: inline-block;
}

/* Center ad banner content */
.ad-banner { text-align: center; }
.ad-banner a { display: inline-block; }
.ad-banner img { display: block; margin: 0 auto; }

/* Sidebar bottom ad (Desktop) */
.sidebar-bottom-ad {
    margin: 16px 0 0 0;
    padding: 12px;
    text-align: center;
}
.sidebar-bottom-ad img { display: inline-block; }

/* Ad components adjustments */
.ad-banner, .sidebar-bottom-ad {
    border: none !important;
    background-color: transparent !important;
}

