/**
 * 721o - 共通CSS
 */

/* ========== Reset ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ========== Base ========== */
html {
    font-size: 16px;
    line-height: 1.7;
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333;
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: #e05577;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #c03a5a;
}

img { max-width: 100%; height: auto; }

/* ========== Header ========== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e05577;
    letter-spacing: 0.02em;
}
.site-logo:hover { color: #c03a5a; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.header-nav a {
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}
.header-nav a:hover { color: #e05577; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #555;
    border-radius: 1px;
    transition: 0.2s;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    line-height: 1.4;
}
.btn-primary {
    background: #e05577;
    color: #fff;
    border-color: #e05577;
}
.btn-primary:hover {
    background: #c03a5a;
    border-color: #c03a5a;
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #e05577;
    border-color: #e05577;
}
.btn-outline:hover {
    background: #e05577;
    color: #fff;
}
.btn-sm {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 0.85rem 2.2rem;
    font-size: 1.05rem;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 40%, #f48fb1 100%);
    padding: 5rem 1rem;
    text-align: center;
}
.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}
.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.hero-stat {
    font-size: 0.9rem;
    color: #777;
}
.hero-stat strong {
    color: #e05577;
    font-size: 1.1rem;
}

/* ========== Section ========== */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #e05577;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

section {
    padding: 3.5rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-more {
    text-align: center;
    margin-top: 1.5rem;
}

/* ========== Features ========== */
.features {
    background: #fff;
    max-width: 100%;
    padding: 3.5rem 1rem;
}
.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
}
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #333;
}
.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

/* ========== How To ========== */
.howto {
    background: #fff5f7;
    max-width: 100%;
    padding: 3.5rem 1rem;
}
.steps {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}
.step {
    text-align: center;
    padding: 1.5rem 1rem;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e05577;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}
.step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

/* ========== Post List ========== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.post-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover {
    border-color: #f48fb1;
    box-shadow: 0 2px 8px rgba(224, 85, 119, 0.1);
}
.post-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    background: #fce4ec;
    color: #e05577;
    margin-bottom: 0.3rem;
}
.cat-HOBBY { background: #e3f2fd; color: #1565c0; }
.cat-SPORTS { background: #e8f5e9; color: #2e7d32; }
.cat-FOOD { background: #fff3e0; color: #e65100; }
.cat-TRAVEL { background: #e0f7fa; color: #00838f; }
.cat-STUDY { background: #f3e5f5; color: #7b1fa2; }
.cat-EVENT { background: #fce4ec; color: #c62828; }
.cat-LOCAL { background: #fff8e1; color: #f57f17; }

.post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}
.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #999;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 2rem 0;
    font-size: 0.95rem;
}

/* ========== Area Search ========== */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.area-group {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
.area-region {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e05577;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #fce4ec;
}
.area-prefs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
}
.area-link {
    font-size: 0.85rem;
    color: #555;
    padding: 0.15rem 0;
}
.area-link:hover {
    color: #e05577;
}

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, #e05577, #f48fb1);
    max-width: 100%;
    padding: 4rem 1rem;
    text-align: center;
}
.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
.cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}
.cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.cta .btn-primary {
    background: #fff;
    color: #e05577;
    border-color: #fff;
}
.cta .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    color: #c03a5a;
}

/* ========== Footer ========== */
.site-footer {
    background: #333;
    color: #aaa;
    padding: 2rem 1rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
}
.footer-links a {
    color: #aaa;
    font-size: 0.85rem;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 0.8rem;
    color: #777;
}

/* ========== Utilities ========== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ========== Forms ========== */
input, textarea, select {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
    font-family: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #e05577;
    box-shadow: 0 0 0 3px rgba(224, 85, 119, 0.1);
}

/* ========== Table ========== */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
th {
    background: #fafafa;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== Page Section ========== */
.page-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.page-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.page-header h1 { margin-bottom: 0; }

/* ========== Auth ========== */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2.5rem 2rem;
}
.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}
.auth-desc {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.auth-form .form-group {
    margin-bottom: 1rem;
}
.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #444;
}
.auth-form input {
    width: 100%;
}
.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}
.btn-block {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
}

/* ========== Alerts ========== */
.alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}
.alert p { margin: 0.2rem 0; }
.alert-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
}
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* ========== Forms (extended) ========== */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #444;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
}
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 140px;
}
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.required {
    color: #e05577;
    font-size: 0.75rem;
}
.inline-form {
    display: inline;
}

/* ========== Filter Bar ========== */
.filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}
.filter-bar select,
.filter-bar input {
    width: auto;
    min-width: 120px;
}
.search-form {
    margin-bottom: 1rem;
}
.result-count {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
.page-info {
    font-size: 0.9rem;
    color: #777;
}

/* ========== Post Detail ========== */
.post-detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.post-detail-head {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.post-detail-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.post-detail-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.post-conditions {
    background: #fafafa;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.post-conditions strong { color: #555; }
.post-body {
    font-size: 0.95rem;
    line-height: 1.9;
}
.post-area {
    font-size: 0.75rem;
    color: #777;
    background: #f5f5f5;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.post-card-head {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.3rem;
}

/* ========== Replies ========== */
.replies-section {
    margin-bottom: 2rem;
}
.replies-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.reply-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.reply-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
}
.reply-head {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.reply-num {
    color: #e05577;
    font-weight: 700;
}
.reply-author { font-weight: 600; color: #444; }
.reply-date { color: #999; }
.reply-body {
    font-size: 0.9rem;
    line-height: 1.7;
}
.reply-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.2rem;
}
.login-prompt {
    text-align: center;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 10px;
    color: #777;
}
.back-link {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ========== User Cards (Search) ========== */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.user-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.2rem;
    transition: border-color 0.2s;
}
.user-card:hover { border-color: #f48fb1; }
.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f48fb1, #e05577);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.avatar-lg { width: 72px; height: 72px; font-size: 1.8rem; }
.avatar-sm { width: 36px; height: 36px; font-size: 0.9rem; }
.user-card-info { flex: 1; min-width: 0; }
.user-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.user-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}
.tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
}
.tag-MALE { background: #e3f2fd; color: #1565c0; }
.tag-FEMALE { background: #fce4ec; color: #c62828; }
.user-card-intro {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.4rem;
}
.user-card-actions { margin-top: 0.4rem; }
.liked-badge {
    font-size: 0.8rem;
    color: #e05577;
    font-weight: 600;
}

/* ========== Mypage ========== */
.mypage-profile-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.profile-summary h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}
.profile-intro {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}
.text-muted { color: #999; font-size: 0.9rem; }

.mypage-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.mypage-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fce4ec;
}
.like-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.like-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.5rem 0;
}

/* ========== Static Pages ========== */
.static-page { max-width: 800px; }
.updated-at {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 2rem;
}
.legal-notice {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}
.legal-notice strong { color: #e65100; }
.legal-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 0.8rem;
    color: #333;
}
.legal-content p,
.legal-content li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}
.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-content li { margin-bottom: 0.3rem; }
.info-table {
    margin-top: 1rem;
}
.info-table th {
    width: 180px;
    vertical-align: top;
    background: #fafafa;
}

/* ========== Contact ========== */
.contact-info {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #555;
}
.contact-form {
    max-width: 600px;
}
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #444;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
}

/* ========== SNS Links ========== */
.sns-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1565c0;
    padding: 0.2rem 0;
}
.sns-link:hover { color: #0d47a1; }
.user-card-sns { margin-top: 0.4rem; }
.profile-sns { margin-top: 0.5rem; }
.sns-guide {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f0f7ff;
    border: 1px solid #bbdefb;
    border-radius: 10px;
}
.sns-guide h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 0.5rem;
}
.sns-guide p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}
.form-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.3rem;
    line-height: 1.5;
}
.sns-input-group {
    background: #f8fbff;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    padding: 1rem;
}

/* ========== Profile Form ========== */
.profile-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2rem;
}
.profile-form .form-group label input[type="checkbox"] {
    margin-right: 0.4rem;
}

/* ========== Post Form ========== */
.post-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2rem;
}

/* ========== Responsive ========== */

/* --- Tablet (1024px) --- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { gap: 1.5rem; }
    .area-grid { grid-template-columns: repeat(3, 1fr); }
    .user-grid { grid-template-columns: repeat(2, 1fr); }
    .page-section { padding: 1.5rem 1rem; }
    .post-detail { padding: 1.5rem; }
    .user-profile-card { gap: 1.5rem; padding: 1.5rem; }
    .mypage-profile-card { padding: 1.5rem; }
    .settings-section { padding: 1.2rem; }
    .profile-form, .post-form { padding: 1.5rem; }
}

/* --- Mobile (768px) --- */
@media (max-width: 768px) {
    /* Header: hamburger menu */
    .header-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        gap: 0.8rem;
        z-index: 99;
    }
    .header-nav.open { display: flex; }
    .menu-toggle { display: flex; }
    .theme-dark .header-nav { background: #16213e; border-bottom-color: #2a2a4a; }

    /* Hero */
    .hero { padding: 3rem 1rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; }

    /* Grid layouts → single/dual column */
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 1rem; }
    .area-grid { grid-template-columns: repeat(2, 1fr); }
    .user-grid { grid-template-columns: 1fr; }

    /* Cards & profiles */
    .mypage-profile-card { flex-direction: column; align-items: center; text-align: center; }
    .user-profile-card { flex-direction: column; align-items: center; text-align: center; }
    .profile-actions { justify-content: center; }
    .profile-detail h1 { text-align: center; }

    /* Forms */
    .filter-bar { flex-direction: column; }
    .filter-bar select, .filter-bar input { width: 100%; min-width: auto; }
    .filter-keyword { min-width: auto; width: 100%; }
    .form-row { flex-direction: column; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; text-align: center; }

    /* Posts */
    .post-detail { padding: 1.2rem; }
    .post-detail-meta { flex-wrap: wrap; gap: 0.5rem; }
    .post-actions { flex-wrap: wrap; }
    .post-card-has-thumb { flex-direction: column; }
    .post-card-thumb { width: 100%; height: 160px; }
    .post-card-head { flex-wrap: wrap; }

    /* Reply */
    .reply-head { flex-wrap: wrap; }
    .reply-actions { flex-wrap: wrap; }

    /* Auth */
    .auth-card { padding: 1.5rem 1.2rem; }
    .auth-page { padding: 2rem 1rem; }

    /* Settings */
    .settings-form .form-group { max-width: 100%; }

    /* Notifications */
    .notification-item { flex-direction: column; gap: 0.3rem; align-items: flex-start; }

    /* Search */
    .search-form { margin-bottom: 0.5rem; }

    /* Page header */
    .page-header { flex-direction: column; gap: 0.8rem; align-items: flex-start; }

    /* Notices */
    .notices-section { padding: 0.5rem; }

    /* Profile/Post forms */
    .profile-form, .post-form { padding: 1.2rem; }
    .sns-input-group { padding: 0.8rem; }

    /* Footer */
    .footer-links { flex-direction: column; gap: 0.4rem; text-align: center; }

    /* Sections full width */
    .features, .howto, .cta { padding: 2.5rem 1rem; }
    section { padding: 2rem 1rem; }
}

/* --- Small mobile (480px) --- */
@media (max-width: 480px) {
    /* Hero */
    .hero { padding: 2rem 0.8rem; }
    .hero-title { font-size: 1.3rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; max-width: 280px; }

    /* Area grid single column */
    .area-grid { grid-template-columns: 1fr; }

    /* Feature cards */
    .feature-card { padding: 1.2rem 1rem; }

    /* Post meta stack */
    .post-meta { flex-direction: column; gap: 0.2rem; }
    .post-detail-meta { flex-direction: column; gap: 0.3rem; }
    .post-author-info { flex-wrap: wrap; }

    /* Avatar smaller */
    .avatar-lg { width: 56px; height: 56px; font-size: 1.4rem; }

    /* Tables horizontal scroll */
    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }

    /* Profile tags wrap */
    .profile-tags { justify-content: center; }
    .user-card-tags { justify-content: flex-start; }

    /* Mypage sections */
    .mypage-section { padding: 1rem; }

    /* Age gate */
    .age-gate { padding: 1rem; }
    .age-gate-card { padding: 2rem 1.2rem; }

    /* Contact form */
    .contact-form { max-width: 100%; }

    /* Legal pages */
    .legal-content ul, .legal-content ol { padding-left: 1rem; }
    .info-table th { width: auto; display: block; }
    .info-table td { display: block; }
}

/* ==========================================================
   URA DARK THEME
   ========================================================== */
.theme-dark {
    background-color: #1a1a2e;
    color: #e0e0e0;
}
.theme-dark a { color: #bb86fc; }
.theme-dark a:hover { color: #d4a5ff; }

/* Header */
.theme-dark .site-header { background: #16213e; border-bottom-color: #2a2a4a; }
.theme-dark .site-logo { color: #bb86fc; }
.theme-dark .site-logo:hover { color: #d4a5ff; }
.theme-dark .header-nav a { color: #ccc; }
.theme-dark .header-nav a:hover { color: #bb86fc; }
.theme-dark .menu-toggle span { background: #ccc; }

/* Buttons */
.theme-dark .btn-primary { background: #bb86fc; border-color: #bb86fc; color: #1a1a2e; }
.theme-dark .btn-primary:hover { background: #9c5ddb; border-color: #9c5ddb; color: #fff; }
.theme-dark .btn-outline { color: #bb86fc; border-color: #bb86fc; }
.theme-dark .btn-outline:hover { background: #bb86fc; color: #1a1a2e; }
.btn-danger { background: #cf6679; border-color: #cf6679; color: #fff; }
.btn-danger:hover { background: #b44d5e; border-color: #b44d5e; }

/* Hero ura */
.hero-ura {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 40%, #4a1942 100%);
}
.theme-dark .hero-title { color: #f0e6ff; }
.theme-dark .hero-subtitle { color: #b0a0c0; }
.theme-dark .hero-stat { color: #888; }
.theme-dark .hero-stat strong { color: #bb86fc; }

/* CTA ura */
.cta-ura { background: linear-gradient(135deg, #4a1942, #bb86fc); }
.theme-dark .cta h2 { color: #fff; }
.theme-dark .cta p { color: rgba(255,255,255,0.85); }
.theme-dark .cta .btn-primary { background: #fff; color: #4a1942; border-color: #fff; }

/* Section */
.theme-dark .section-title { color: #e0e0e0; }
.theme-dark .section-title::after { background: #bb86fc; }

/* Features */
.theme-dark .features { background: #16213e; }
.theme-dark .feature-card { background: #1a1a2e; border-color: #2a2a4a; }
.theme-dark .feature-card h3 { color: #e0e0e0; }
.theme-dark .feature-card p { color: #999; }

/* Howto */
.theme-dark .howto { background: #1e1e3a; }
.theme-dark .step h3 { color: #e0e0e0; }
.theme-dark .step p { color: #999; }
.theme-dark .step-num { background: #bb86fc; color: #1a1a2e; }

/* Cards */
.theme-dark .post-card { background: #16213e; border-color: #2a2a4a; }
.theme-dark .post-card:hover { border-color: #bb86fc; box-shadow: 0 2px 8px rgba(187,134,252,0.15); }
.theme-dark .post-title { color: #e0e0e0; }
.theme-dark .post-meta { color: #888; }
.theme-dark .post-area { background: #2a2a4a; color: #aaa; }

.theme-dark .user-card { background: #16213e; border-color: #2a2a4a; }
.theme-dark .user-card:hover { border-color: #bb86fc; }
.theme-dark .user-card-name { color: #e0e0e0; }
.theme-dark .user-card-intro { color: #999; }
.theme-dark .tag { background: #2a2a4a; color: #bbb; }
.theme-dark .avatar-placeholder { background: linear-gradient(135deg, #bb86fc, #6c3483); }

/* Detail / Reply */
.theme-dark .post-detail { background: #16213e; border-color: #2a2a4a; }
.theme-dark .post-detail-title { color: #f0e6ff; }
.theme-dark .post-detail-meta { color: #888; border-bottom-color: #2a2a4a; }
.theme-dark .post-body { color: #ddd; }
.theme-dark .reply-card { background: #1a1a2e; border-color: #2a2a4a; }
.theme-dark .reply-num { color: #bb86fc; }
.theme-dark .reply-author { color: #ccc; }
.theme-dark .reply-form { background: #16213e; border-color: #2a2a4a; }
.theme-dark .login-prompt { background: #16213e; color: #999; }

/* Forms */
.theme-dark input, .theme-dark textarea, .theme-dark select {
    background: #1a1a2e; border-color: #3a3a5a; color: #e0e0e0;
}
.theme-dark input:focus, .theme-dark textarea:focus, .theme-dark select:focus {
    border-color: #bb86fc; box-shadow: 0 0 0 3px rgba(187,134,252,0.15);
}
.theme-dark .form-group label { color: #ccc; }
.theme-dark .auth-form label { color: #ccc; }
.theme-dark .required { color: #cf6679; }

/* Panels */
.theme-dark .post-form { background: #16213e; border-color: #2a2a4a; }
.theme-dark .profile-form { background: #16213e; border-color: #2a2a4a; }
.theme-dark .auth-card { background: #16213e; border-color: #2a2a4a; }
.theme-dark .auth-desc { color: #999; }
.theme-dark .auth-link { color: #999; }
.theme-dark .filter-bar { background: #16213e; border-color: #2a2a4a; }
.theme-dark .mypage-profile-card { background: #16213e; border-color: #2a2a4a; }
.theme-dark .mypage-section { background: #16213e; border-color: #2a2a4a; }
.theme-dark .mypage-section-title { border-bottom-color: #3a3a5a; }
.theme-dark .profile-intro { color: #bbb; }

/* Alert */
.theme-dark .alert-error { background: #3b1a1e; color: #ef9a9a; border-color: #5a2a2e; }
.theme-dark .alert-success { background: #1a3b1e; color: #a5d6a7; border-color: #2a5a2e; }

/* Legal */
.theme-dark .legal-notice { background: #2a2210; border-color: #4a3a1a; }
.theme-dark .legal-notice strong { color: #ffb74d; }
.theme-dark .legal-content h2 { color: #e0e0e0; }
.theme-dark .legal-content p, .theme-dark .legal-content li { color: #bbb; }
.theme-dark th { background: #1a1a2e; color: #ccc; }
.theme-dark td { color: #bbb; }
.theme-dark th, .theme-dark td { border-bottom-color: #2a2a4a; }
.theme-dark .info-table th { background: #16213e; }

/* SNS */
.theme-dark .sns-link { color: #bb86fc; }
.theme-dark .sns-guide { background: #1a1e3a; border-color: #2a2a5a; }
.theme-dark .sns-guide h3 { color: #bb86fc; }
.theme-dark .sns-guide p { color: #bbb; }
.theme-dark .sns-input-group { background: #1a1e3a; border-color: #2a2a5a; }

/* Footer */
.theme-dark .site-footer { background: #0d0d1a; }
.theme-dark .footer-links a { color: #888; }
.theme-dark .footer-links a:hover { color: #bb86fc; }
.theme-dark .footer-copy { color: #555; }

/* ura nav link */
.ura-link { font-size: 0.8rem !important; opacity: 0.6; }
.ura-link:hover { opacity: 1; }

/* Ura category colors */
.cat-TONIGHT { background: #4a1942; color: #f48fb1; }
.cat-CASUAL { background: #1a237e; color: #9fa8da; }
.cat-MASSAGE { background: #33291a; color: #ffb74d; }
.cat-VOYEUR { background: #1b3a2a; color: #81c784; }
.cat-COSPLAY { background: #3e1a4a; color: #ce93d8; }
.cat-OFFLINE { background: #2a3a1a; color: #aed581; }
.cat-FREE { background: #2a2a4a; color: #b0bec5; }

/* Responsive dark — handled in main responsive block above */

/* ========== Notification Badge ========== */
.nav-notif { position: relative; }
.notif-badge {
    position: absolute;
    top: -6px; right: -10px;
    background: #e05577;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.theme-dark .notif-badge { background: #cf6679; }

.notification-list { display: flex; flex-direction: column; gap: 0.5rem; }
.notification-item {
    padding: 0.8rem 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.notification-item.unread { border-left: 3px solid #e05577; }
.notification-item p { font-size: 0.9rem; color: #333; margin: 0; flex: 1; }
.notification-date { font-size: 0.8rem; color: #999; white-space: nowrap; }
.theme-dark .notification-item { background: #16213e; border-color: #2a2a4a; }
.theme-dark .notification-item.unread { border-left-color: #bb86fc; }
.theme-dark .notification-item p { color: #ddd; }

/* ========== Post Status ========== */
.post-closed { opacity: 0.6; }
.post-expired { opacity: 0.4; }
.post-status-closed {
    font-size: 0.7rem; font-weight: 700;
    padding: 0.1rem 0.5rem; border-radius: 4px;
    background: #e0e0e0; color: #666;
}
.theme-dark .post-status-closed { background: #3a3a5a; color: #aaa; }
.post-actions {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-top: 1.2rem; padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}
.theme-dark .post-actions { border-top-color: #2a2a4a; }
.btn-muted { opacity: 0.5; font-size: 0.8rem; }
.btn-muted:hover { opacity: 1; }
.post-ttl { color: #e65100; font-size: 0.75rem; }

/* ========== Online Indicator ========== */
.online-badge, .online-indicator {
    font-size: 0.7rem; font-weight: 600;
    padding: 0.1rem 0.4rem; border-radius: 4px;
}
.online-badge.online, .online-indicator.online { background: #c8e6c9; color: #2e7d32; }
.online-badge.recent, .online-indicator.recent { background: #fff9c4; color: #f57f17; }
.online-badge.away { background: #f5f5f5; color: #999; }
.online-badge.offline { background: #eee; color: #bbb; }
.theme-dark .online-badge.online, .theme-dark .online-indicator.online { background: #1b3a2a; color: #81c784; }
.theme-dark .online-badge.recent, .theme-dark .online-indicator.recent { background: #3a3a1a; color: #fff176; }

/* ========== User Profile Page ========== */
.user-profile-card {
    display: flex; gap: 2rem;
    background: #fff; border: 1px solid #eee;
    border-radius: 12px; padding: 2rem; margin-bottom: 2rem;
}
.profile-detail h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.profile-intro-full { font-size: 0.9rem; color: #555; line-height: 1.8; margin: 1rem 0; }
.profile-sns-box { margin: 0.8rem 0; }
.profile-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.theme-dark .user-profile-card { background: #16213e; border-color: #2a2a4a; }
.theme-dark .profile-detail h1 { color: #f0e6ff; }
.theme-dark .profile-intro-full { color: #bbb; }

/* ========== Settings ========== */
.settings-section {
    background: #fff; border: 1px solid #eee;
    border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.settings-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.settings-form .form-group { margin-bottom: 0.8rem; max-width: 400px; }
.settings-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; color: #444; }
.settings-form input { width: 100%; }
.settings-danger { border-color: #f5c6cb; }
.settings-danger h2 { color: #c62828; }
.theme-dark .settings-section { background: #16213e; border-color: #2a2a4a; }
.theme-dark .settings-form label { color: #ccc; }
.theme-dark .settings-danger { border-color: #5a2a2e; }
.theme-dark .settings-danger h2 { color: #ef9a9a; }

/* ========== Block List ========== */
.block-list { display: flex; flex-direction: column; gap: 0.5rem; }
.block-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.6rem 0; border-bottom: 1px solid #eee;
}
.block-name { flex: 1; font-weight: 600; }
.theme-dark .block-item { border-bottom-color: #2a2a4a; }

/* ========== Filter Keyword ========== */
.filter-keyword { min-width: 150px; }

/* ========== Match Badge ========== */
.match-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    padding: 0.1rem 0.5rem; border-radius: 4px;
    background: #fce4ec; color: #e05577;
    margin-left: 0.3rem;
}
.theme-dark .match-badge { background: #4a1942; color: #f48fb1; }

/* ========== Post Author Info (ura) ========== */
.post-author-info {
    display: flex; gap: 0.5rem; font-size: 0.75rem; color: #888;
    margin-bottom: 0.2rem;
}
.theme-dark .post-author-info { color: #999; }

/* ========== Reply Edit/Actions ========== */
.reply-actions { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.reply-edit-form { margin-top: 0.5rem; }
.reply-edit-form textarea { width: 100%; margin-bottom: 0.4rem; }
.reply-edited { font-size: 0.75rem; color: #aaa; font-style: italic; }

/* ========== User Badge ========== */
.user-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.3;
    white-space: nowrap;
}
.badges-inline { display: inline; }
.plan-label {
    font-size: 0.7rem; font-weight: 600;
    padding: 0.1rem 0.4rem; border-radius: 3px;
}
.plan-PREMIUM { background: #ffd700; color: #000; }
.plan-STANDARD { background: #c0c0c0; color: #333; }
.plan-FREE { background: #eee; color: #999; }

/* ========== Notices ========== */
.notices-section { max-width: 900px; margin: 0 auto; padding: 1rem; }
.notice-item {
    background: #fffde7; border: 1px solid #fff9c4; border-radius: 8px;
    padding: 0.8rem 1rem; margin-bottom: 0.5rem;
}
.notice-item strong { font-size: 0.9rem; color: #f57f17; }
.notice-item p { font-size: 0.85rem; color: #555; margin: 0.3rem 0 0; }
.theme-dark .notice-item { background: #2a2a10; border-color: #4a4a1a; }
.theme-dark .notice-item strong { color: #fff176; }
.theme-dark .notice-item p { color: #bbb; }

/* ========== Post Thumbnail ========== */
.post-card-has-thumb {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.post-card-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.post-thumbnail {
    margin-bottom: 1rem;
}
.post-thumbnail-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
}
.post-thumbnail-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    display: block;
}
.theme-dark .post-thumbnail-preview { border: 1px solid #3a3a5a; }
.theme-dark .post-card-thumb { border: 1px solid #3a3a5a; }

/* ========== Reply Image ========== */
.reply-image { margin-top: 0.5rem; }
.reply-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    object-fit: contain;
}
.theme-dark .reply-img { border: 1px solid #3a3a5a; }

/* ========== Profile Image ========== */
.avatar-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-img.avatar-lg { width: 72px; height: 72px; }
.profile-image-preview { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; margin-bottom: 0.5rem; display: block; }
.theme-dark .profile-image-preview { border: 1px solid #3a3a5a; }

/* ========== Age Gate ========== */
.age-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}
.age-gate-card {
    text-align: center;
    max-width: 480px;
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 16px;
    padding: 3rem 2rem;
}
.age-gate-card h1 {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}
.age-gate-card p {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.age-gate-warn {
    color: #cf6679;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.5rem;
}
