/*
Theme Name: J-love Theme
Theme URI: https://bbs.j-love.jp
Author: J-love
Description: 旧ジャニーズアーティスト応援ファンサイト - チケット交換・ブログ・友達募集コミュニティ
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jlove-theme
*/

/* === reset === */

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

/* === variables === */

:root {
    --color-red: #d30000;
    --color-pink: #ff1493;
    --color-purple: #8a2be2;
    --color-blue: #00bfff;
    --color-yellow: #deee00;
    --color-dark: #0a0a0a;
    --color-gray: #1a1a1a;
    --color-light-gray: #2a2a2a;
    --color-text: #ffffff;
    --color-text-gray: #999999;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --nav-height: 64px;
}

/* === base === */

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #3f2e2e 0%, #1a1a1a 50%, #7d7c7c 100%);
    background-attachment: fixed;
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--color-pink); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === typography === */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

/* === utilities === */

.gradient-text {
    background: linear-gradient(135deg, var(--color-blue), var(--color-pink), var(--color-purple), var(--color-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

.neon-text {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
    animation: neon-pulse 2s ease-in-out infinite;
}

.text-pink   { color: var(--color-pink); }
.text-purple { color: var(--color-purple); }
.text-blue   { color: var(--color-blue); }
.text-red    { color: var(--color-red); }
.text-yellow { color: var(--color-yellow); }
.text-white  { color: var(--color-text); }

.glass-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === buttons === */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}
.btn:hover { transform: scale(1.05); }
.btn svg { width: 20px; height: 20px; }

.btn-primary {
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255,20,147,0.8), rgba(138,43,226,0.8));
    box-shadow: 0 0 20px rgba(255,20,147,0.3);
    color: white;
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--color-pink);
    border: 2px solid rgba(255,20,147,0.3);
}
.btn-outline:hover {
    background: rgba(255,20,147,0.1);
    border-color: var(--color-pink);
    color: var(--color-pink);
    opacity: 1;
}

.btn-cta {
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    box-shadow: var(--shadow);
}
.btn-cta:hover {
    box-shadow: 0 0 30px rgba(255,20,147,0.4);
    color: white;
    opacity: 1;
}

/* === navigation === */

.site-header,
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 8, 12, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 20, 147, 0.12);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255,20,147,0);
    transition: box-shadow 0.4s ease;
}
.nav-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,20,147,0.4) 30%, rgba(138,43,226,0.4) 70%, transparent 100%);
    pointer-events: none;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    gap: 24px;
}

/* ── Brand ── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    flex-shrink: 0;
}
.nav-brand:hover { opacity: 1; }
.nav-brand-link { display: flex; align-items: center; }

.nav-icon { width: 28px; height: 28px; color: var(--color-pink); filter: drop-shadow(0 0 6px rgba(255,20,147,0.5)); }

.nav-logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 40%, rgba(255,20,147,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Desktop nav wrapper ── */
.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

/* ── The actual <ul> list ── */
.nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Every nav link (wp_nav_menu generates plain <a>) ── */
.nav-list > li > a,
.nav-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}
.nav-list > li > a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
    transition: left 0.3s ease, right 0.3s ease;
    pointer-events: none;
}
.nav-list > li > a:hover,
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    opacity: 1;
}
.nav-list > li > a:hover::after,
.nav-link:hover::after {
    left: 16px;
    right: 16px;
}
.nav-list > li.current-menu-item > a,
.nav-list > li.current-page-ancestor > a,
.nav-link.active {
    color: var(--color-pink);
    background: rgba(255,20,147,0.08);
    text-shadow: 0 0 8px rgba(255,20,147,0.4);
}
.nav-list > li.current-menu-item > a::after,
.nav-link.active::after {
    left: 16px;
    right: 16px;
}

/* ── Auth buttons ── */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Hamburger ── */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    transform-origin: center;
}

/* ── Mobile drawer ── */
.mobile-menu {
    display: none;
    background: rgba(10, 8, 12, 0.97);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,20,147,0.1);
}
.mobile-menu.active {
    display: block;
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100svh - var(--nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu-content {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mobile nav list (wp_nav_menu generates <ul class="mobile-nav">) */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav > li > a,
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background 0.2s ease;
    border-left: 2px solid transparent;
}
.mobile-nav > li > a:hover,
.mobile-nav-link:hover {
    color: var(--color-pink);
    background: rgba(255,20,147,0.07);
    border-left-color: var(--color-pink);
    opacity: 1;
}
.mobile-nav > li.current-menu-item > a,
.mobile-nav-link.active {
    color: var(--color-pink);
    background: rgba(255,20,147,0.1);
    border-left-color: var(--color-pink);
}
.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* === hero === */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg-effects { position: absolute; inset: 0; pointer-events: none; }

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,20,147,0.2) 0%,
        rgba(138,43,226,0.2) 50%,
        rgba(0,191,255,0.2) 100%);
    opacity: 0.3;
}

.hero-circle {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(48px);
    animation: pulse 3s ease-in-out infinite;
}
.hero-circle-1 { top: 25%; left: 25%; background: rgba(255,20,147,0.1); }
.hero-circle-2 { bottom: 25%; right: 25%; background: rgba(138,43,226,0.1); animation-delay: 1s; }

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.hero-title h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    margin: 0;
}

.sparkles { width: 32px; height: 32px; animation: neon-pulse 2s ease-in-out infinite; }
.sparkles-left  { color: var(--color-pink); margin-right: 12px; }
.sparkles-right { color: var(--color-purple); margin-left: 12px; animation-delay: 0.5s; }

.hero-subtitle {
    font-size: 2.3rem;
    color: var(--color-text-gray);
    margin-bottom: 32px;
    line-height: 1.4;
}

.hero-description-f {
    font-size: 18px;
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-gray);
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 64px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding-top: 25px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: center; }
.stat-number { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; margin-bottom: 8px; }
.stat-label  { color: var(--color-text-gray); font-size: 16px; }

/* === ticket board === */

.tickets-section {
    padding-top: 80px;
    padding-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
}
.section-description {
    font-size: 20px;
    color: #ffeaea;
    max-width: 512px;
    margin: 0 auto;
}

.search-filter-card { margin-bottom: 32px; padding: 24px; }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 500;
}

.filter-input-wrap { position: relative; }
.filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-text-gray);
    pointer-events: none;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.filter-select { padding-left: 12px; }
.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: rgba(255,20,147,0.5);
}
.filter-select option { background: #1a1a1a; }

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.ticket-card {
    padding: 24px;
    transition: all 0.3s ease;
}
.ticket-card:hover {
    border-color: rgba(255,20,147,0.77);
    transform: translateY(-4px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.ticket-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.ticket-card-badges .ticket-badge { margin-bottom: 0; }

.ticket-badge {
    display: inline-block;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}
.badge-pink   { background: rgba(255,20,147,0.2); color: #ffd2eb; border: 1px solid rgba(255,20,147,0.3); }
.badge-purple { background: rgba(138,43,226,0.2); color: #e6caff; border: 1px solid rgba(138,43,226,0.3); }
.badge-red    { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-blue   { background: rgba(0,191,255,0.2); color: var(--color-blue); border: 1px solid rgba(0,191,255,0.3); }
.badge-green  { background: rgba(16,185,129,0.2); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
.badge-orange { background: rgba(251,146,60,0.2); color: #fdba74; border: 1px solid rgba(251,146,60,0.35); }

/* 募集種別バッジ — カードで目立つよう大きめ */
.bosyu-badge {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 4px;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    padding: 3px 10px;
    text-transform: none;
}
/* single.php でさらに大きく */
.bosyu-badge-lg {
    font-size: 13px;
    padding: 5px 14px;
}

.ticket-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}
.ticket-price { font-size: 24px; font-weight: 700; color: var(--color-pink); }
.ticket-seat  { font-size: 12px; color: var(--color-text-gray); }

.ticket-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}
.ticket-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-gray);
}
.ticket-meta-item.full-width { grid-column: 1 / -1; }
.ticket-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.ticket-user { display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.user-name { font-size: 14px; font-weight: 500; color: white; }
.user-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-gray);
}
.user-rating svg { width: 12px; height: 12px; }

/* === popular groups === */

.popular-groups-section { padding: 80px 24px; }

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.group-card {
    background: rgba(26,26,26,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.group-card:hover {
    transform: scale(1.05);
    border-color: rgba(255,20,147,0.3);
}

.group-image {
    position: relative;
    width: 100%;
    height: 192px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.group-card:hover .group-image { opacity: 1; }

/* サムネイル画像ありの場合は暗めのオーバーレイを追加してテキストを見やすくする */
.group-image-has-thumb {
    background-color: #111;
}
.group-image-has-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}
/* テキストが overlay の上に来るように */
.group-image-has-thumb .group-name,
.group-image-has-thumb .group-trend {
    position: relative;
    z-index: 1;
}
/* group-join-btn をリンクとして使う場合の調整 */
a.group-join-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.group-trend {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(34,197,94,0.2);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.group-trend svg { width: 12px; height: 12px; }

.group-name { font-size: 24px; font-weight: 700; color: white; }

.group-info { display: flex; flex-direction: column; gap: 16px; }
.group-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s ease;
}
.group-card:hover .group-title { color: var(--color-pink); }

.group-excerpt {
    font-size: 13px;
    color: #aaaaaa;
    line-height: 1.6;
    margin-top: -4px;
}

.group-stats { display: grid; grid-template-columns: 1fr; gap: 16px; }
.group-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-gray);
    font-size: 14px;
}
.group-stat svg { width: 16px; height: 16px; }

.group-join-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--color-text-gray);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.group-join-btn:hover {
    background: rgba(255,20,147,0.2);
    border-color: rgba(255,20,147,0.3);
    color: var(--color-pink);
}

/* === gradients === */

.gradient-pink   { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.gradient-purple { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.gradient-blue   { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.gradient-green  { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-red    { background: linear-gradient(135deg, #ef4444, #ec4899); }
.gradient-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

/* === ログイン状態切替 (WordPress が body.logged-in / body.logged-out を自動付与) */
/* 未ログイン時：会員向けエリアを非表示 */
body.logged-out .nav-auth-member,
body:not(.logged-in) .nav-auth-member {
    display: none !important;
}
/* ログイン時：ゲスト向けエリアを非表示 */
body.logged-in .nav-auth-guest {
    display: none !important;
}

.nav-auth-guest,
.nav-auth-member {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* ハンバーガーオープン状態 */
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--color-pink);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--color-pink);
}

/* === ログアウトボタン */
.btn-logout {
    background: linear-gradient(135deg, rgba(255,20,147,0.6), rgba(138,43,226,0.6)) !important;
}
.btn-logout:hover {
    background: linear-gradient(135deg, rgba(255,20,147,0.9), rgba(138,43,226,0.9)) !important;
}

/* === jtomo / jblog / jnews cards === */

.post-card {
    padding: 24px;
    transition: all 0.3s ease;
}
.post-card:hover {
    border-color: rgba(255,20,147,0.4);
    transform: translateY(-3px);
}

.post-card-header { margin-bottom: 12px; }
.post-card-title { font-size: 17px; font-weight: 600; margin: 8px 0; }
.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-pink); opacity: 1; }
.post-card-meta { font-size: 13px; color: var(--color-text-gray); }
.post-card-excerpt { font-size: 14px; color: #f9dede; margin-bottom: 16px; }

/* === jtomo conditions === */

.jyouken-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jyouken-tag {
    background: rgba(255,20,147,0.15);
    color: var(--color-pink);
    border: 1px solid rgba(255,20,147,0.25);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
}

/* === BuddyPress overrides === */

#buddypress { color: var(--color-text); }
#buddypress a { color: var(--color-pink); }
#buddypress .generic-button a,
#buddypress a.button,
#buddypress button,
#buddypress input[type=submit] {
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
}

/* === footer === */

.site-footer {
    background: rgba(10,10,10,0.9);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 48px 24px 24px;
    margin-top: 80px;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { font-size: 22px; font-weight: 700; color: var(--color-text); }
.footer-desc { font-size: 14px; color: var(--color-text-gray); line-height: 1.7; }
.footer-heading { font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--color-text-gray); transition: color 0.2s; }
.footer-links a:hover { color: var(--color-pink); opacity: 1; }
.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--color-text-gray);
}

/* === animations === */

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
        transform: scale(1.02);
    }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 1; transform: none; }

/* === single article === */

.article-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 96px 24px 80px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-gray);
    font-size: 14px;
    margin-bottom: 32px;
    transition: color 0.2s;
}
.article-back:hover { color: var(--color-pink); opacity: 1; }
.article-back svg { width: 16px; height: 16px; }

.article-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.article-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    color: #f0f0f0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 36px;
}

.article-author-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-author-inline img { border-radius: 50%; }
.article-author-inline-name { font-size: 14px; font-weight: 600; color: #e0e0e0; }

.article-date {
    font-size: 13px;
    color: var(--color-text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-date svg { width: 14px; height: 14px; }

.article-thumbnail {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}
.article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.entry-content {
    font-size: 17px;
    line-height: 1.9;
    color: #d8d8d8;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
}
.entry-content p { margin-bottom: 1.6em; }
.entry-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #f0f0f0;
    margin: 2.4em 0 0.8em;
    padding-left: 14px;
    border-left: 3px solid var(--color-pink);
    line-height: 1.4;
}
.entry-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e8e8e8;
    margin: 2em 0 0.7em;
    line-height: 1.4;
}
.entry-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 1.6em 0 0.6em;
}
.entry-content ul,
.entry-content ol {
    list-style: revert;
    padding-left: 1.6em;
    margin-bottom: 1.6em;
}
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
    border-left: 3px solid rgba(255,20,147,0.5);
    padding: 12px 20px;
    margin: 1.8em 0;
    background: rgba(255,20,147,0.05);
    border-radius: 0 8px 8px 0;
    color: var(--color-text-gray);
    font-style: italic;
}
.entry-content a {
    color: var(--color-pink);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.entry-content a:hover { opacity: 0.8; }
.entry-content img { border-radius: 8px; margin: 1.6em 0; max-width: 100%; height: auto; }
.entry-content strong { color: #f0f0f0; font-weight: 700; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.entry-content th,
.entry-content td { padding: 10px 14px; border: 1px solid rgba(255,255,255,0.1); text-align: left; }
.entry-content th { background: rgba(255,255,255,0.05); font-weight: 600; }

.article-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 48px 0 36px;
}

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.article-tags a {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--color-text-gray);
    transition: all 0.2s;
    text-decoration: none;
}
.article-tags a:hover {
    background: rgba(255,20,147,0.1);
    border-color: rgba(255,20,147,0.3);
    color: var(--color-pink);
    opacity: 1;
}

.article-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}
.article-author-card img { border-radius: 50%; flex-shrink: 0; }
.article-author-card-info { display: flex; flex-direction: column; gap: 6px; }
.article-author-card-label { font-size: 12px; color: var(--color-text-gray); letter-spacing: 0.08em; text-transform: uppercase; }
.article-author-card-name { font-size: 16px; font-weight: 700; color: #f0f0f0; }

.article-ticket-box {
    background: rgba(255,20,147,0.06);
    border: 1px solid rgba(255,20,147,0.2);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.article-ticket-box-title { font-size: 15px; font-weight: 600; color: var(--color-pink); margin-bottom: 4px; }

.group-artist-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* === responsive === */

@media (max-width: 900px) {
    .nav-content { padding: 0 16px; gap: 8px; }
    .nav-brand { flex-shrink: 1; min-width: 0; }
    .nav-logo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-menu, .nav-buttons { display: none !important; }
    .mobile-menu-btn { display: flex; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-stats { grid-template-columns: 1fr; gap: 24px; }
    .groups-grid { grid-template-columns: 1fr; }
    .group-stats { grid-template-columns: 1fr; }
    .tickets-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; justify-content: center; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .groups-grid { grid-template-columns: repeat(2, 1fr); }
    .group-stats { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .groups-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
}

/* === form pages === */

.form-page {
    padding-top: 112px;
    padding-bottom: 80px;
    min-height: 100vh;
    position: relative;
}

/* ambient glow behind form */
.form-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 20% 30%, rgba(255,20,147,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 80% 70%, rgba(138,43,226,0.07) 0%, transparent 60%);
    z-index: 0;
}
.form-page > * { position: relative; z-index: 1; }

/* === page header === */

.form-page-header {
    margin-bottom: 36px;
}

.form-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-pink);
    background: rgba(255,20,147,0.08);
    border: 1px solid rgba(255,20,147,0.22);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 16px;
}

.form-page-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.form-page-desc {
    color: var(--color-text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* === login wall (未ログイン) === */

.form-login-wall {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 64px 48px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    background: rgba(14,10,20,0.6);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
.form-login-wall::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,20,147,0.45) 40%, rgba(138,43,226,0.45) 60%, transparent);
}

.form-login-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: rgba(255,20,147,0.1);
    border: 1px solid rgba(255,20,147,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-pink);
}

.form-login-msg {
    font-size: 18px;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.5;
}

.form-login-sub {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.6;
    max-width: 320px;
}

.form-login-wall .btn { min-width: 180px; justify-content: center; }

/* === form card === */

.post-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(14,10,20,0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,20,147,0.05),
        0 8px 32px rgba(0,0,0,0.45),
        0 32px 72px rgba(0,0,0,0.3);
    position: relative;
}

/* top accent */
.post-form::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,20,147,0.5) 40%, rgba(138,43,226,0.5) 60%, transparent);
    pointer-events: none;
    z-index: 1;
}

/* === form sections === */

.form-section {
    padding: 32px 36px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.form-section:last-child { border-bottom: none; }

.form-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,20,147,0.7);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* when form has no sections, use direct padding */
.post-form > .form-group,
.post-form > .form-row,
.post-form > .form-actions {
    padding: 0 36px;
}
.post-form > .form-group:first-of-type { padding-top: 36px; }
.post-form > .form-actions { padding-bottom: 36px; }
.post-form > .form-group + .form-group { margin-top: 24px; }
.post-form > .form-row + .form-group,
.post-form > .form-group + .form-row { margin-top: 24px; }
.post-form > .form-row:first-of-type { padding-top: 36px; }
.post-form > .form-actions { margin-top: 32px; }

/* === form group === */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* === label === */

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(200,200,220,0.65);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-required {
    color: var(--color-pink);
    font-size: 14px;
    line-height: 1;
}

/* === inputs === */

.form-input,
.form-select,
.form-textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 15px;
    padding: 14px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
    line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255,255,255,0.2);
    font-style: italic;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(255,20,147,0.5);
    box-shadow:
        0 0 0 3px rgba(255,20,147,0.1),
        0 0 16px rgba(255,20,147,0.06);
    background: rgba(255,20,147,0.025);
    outline: none;
}

/* select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}
.form-select option { background: #110c1a; color: #f0f0f0; }

/* textarea */
.form-textarea { resize: vertical; line-height: 1.75; }
.form-textarea-large { min-height: 300px; }

/* hint */
.form-textarea-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
    line-height: 1.6;
    margin-top: 2px;
}

/* === file input === */

.form-file-wrap {
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.form-file-wrap:hover {
    border-color: rgba(255,20,147,0.3);
    background: rgba(255,20,147,0.02);
}
.form-file-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}
.form-file-text { flex: 1; }
.form-file-label-text {
    font-size: 14px;
    font-weight: 500;
    color: #d0d0d0;
    display: block;
    margin-bottom: 2px;
}

.form-file {
    display: none;
}

/* legacy direct input[type=file] (no wrapper) */
input[type="file"].form-file-plain {
    display: block;
    color: var(--color-text-gray);
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}
input[type="file"].form-file-plain::file-selector-button {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    color: #d8d8d8;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    margin-right: 12px;
    padding: 8px 16px;
    transition: background 0.2s;
}
input[type="file"].form-file-plain::file-selector-button:hover { background: rgba(255,255,255,0.1); }

/* fallback when .form-file used directly on input */
input[type="file"].form-file {
    display: block;
    color: var(--color-text-gray);
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}
input[type="file"].form-file::file-selector-button {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    color: #d8d8d8;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    margin-right: 12px;
    padding: 8px 16px;
    transition: background 0.2s;
}
input[type="file"].form-file::file-selector-button:hover { background: rgba(255,255,255,0.1); }

/* === thumbnail preview === */

.form-thumb-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
}
.form-thumb-preview img {
    border-radius: 8px;
    height: 72px;
    object-fit: cover;
    width: 120px;
    flex-shrink: 0;
}
.form-thumb-label { color: rgba(255,255,255,0.35); font-size: 12px; line-height: 1.5; }

/* === alert / status messages === */

.form-alert {
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.form-alert-error {
    background: rgba(211,0,0,0.08);
    border: 1px solid rgba(211,0,0,0.25);
    border-left: 3px solid rgba(211,0,0,0.7);
    color: #ff8080;
}
.form-alert-success {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    border-left: 3px solid rgba(16,185,129,0.7);
    color: #4ade80;
}

/* === actions row === */

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
}
.form-actions .btn-cta {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.form-actions .btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.form-actions .btn-outline {
    color: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.1);
}
.form-actions .btn-outline:hover {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
    opacity: 1;
}

/* === responsive form === */

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .post-form > .form-group,
    .post-form > .form-row,
    .post-form > .form-actions { padding-left: 20px; padding-right: 20px; }
    .post-form > .form-group:first-of-type { padding-top: 24px; }
    .post-form > .form-actions { padding-bottom: 24px; }
    .form-section { padding: 24px 20px; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn { justify-content: center; width: 100%; }
    .form-login-wall { padding: 40px 24px; }
}

/* === post actions bar (edit / delete) === */

.post-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 16px;
}

.btn-danger {
    background: transparent;
    border: 1px solid rgba(211, 0, 0, 0.4);
    border-radius: 8px;
    color: #ff6b6b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
    letter-spacing: 0.02em;
    padding: 10px 20px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-danger:hover {
    background: rgba(211, 0, 0, 0.12);
    border-color: rgba(211, 0, 0, 0.6);
    color: #ff4444;
    opacity: 1;
    transform: none;
}

/* === BP compose: 送信先バッジ === */

.jlove-recipient-badge {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.jlove-recipient-label {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.jlove-recipient-name {
    background: rgba(255,20,147,0.1);
    border: 1px solid rgba(255,20,147,0.25);
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
}

/* === user dropdown menu === */

.user-menu { position: relative; }

.user-menu-trigger {
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 40px;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    transition: background 0.2s, border-color 0.2s;
}
.user-menu-trigger:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,20,147,0.35);
}
.user-avatar-wrap { position: relative; flex-shrink: 0; }
.user-avatar-wrap img { border-radius: 50%; display: block; }
.user-display-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-chevron { flex-shrink: 0; transition: transform 0.2s; }
.user-menu-trigger[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }

.user-dropdown {
    background: #131313;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,20,147,0.08);
    display: none;
    min-width: 200px;
    overflow: hidden;
    padding: 8px 0;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 200;
}
.user-dropdown.open { display: block; animation: dropdownIn 0.18s ease; }

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

.user-dropdown-item {
    align-items: center;
    color: #c8c8c8;
    display: flex;
    font-size: 14px;
    gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.user-dropdown-item:hover { background: rgba(255,255,255,0.05); color: #fff; opacity: 1; }
.user-dropdown-item svg { flex-shrink: 0; opacity: 0.6; }
.user-dropdown-item:hover svg { opacity: 1; }

.user-dropdown-divider { border-top: 1px solid rgba(255,255,255,0.07); margin: 6px 0; }

.user-dropdown-section-label {
    color: rgba(255,255,255,0.3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 18px 2px;
    text-transform: uppercase;
}

.user-dropdown-logout { color: #ff8080; }
.user-dropdown-logout:hover { background: rgba(211,0,0,0.08); color: #ff5555; }

/* unread badge on avatar */
.user-unread-badge {
    align-items: center;
    background: #e8002d;
    border: 2px solid #0a0a0a;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 9px;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 0 3px;
    position: absolute;
    right: -4px;
    top: -4px;
    z-index: 2;
}

/* message badge inside dropdown item */
.user-dropdown-badge {
    align-items: center;
    background: #e8002d;
    border-radius: 100px;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    min-width: 20px;
    padding: 2px 5px;
}

/* mobile unread badge */
.mobile-user-avatar-wrap { position: relative; flex-shrink: 0; }
.mobile-user-avatar-wrap img { border-radius: 50%; display: block; }
.mobile-unread-badge {
    align-items: center;
    background: #e8002d;
    border-radius: 100px;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    min-width: 20px;
    padding: 2px 5px;
}
.mobile-nav-messages { display: flex; align-items: center; }

/* mobile user section */
.mobile-user-section { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 12px; padding-top: 16px; }
.mobile-user-header {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 0 20px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #f0f0f0;
}
.mobile-user-header img { border-radius: 50%; }
.mobile-user-nav { padding-top: 0; }

/* === floating action button === */

.fab-btn {
    align-items: center;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    border-radius: 32px;
    bottom: 28px;
    box-shadow: 0 8px 32px rgba(255,20,147,0.4), 0 2px 8px rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    padding: 14px 22px;
    position: fixed;
    right: 24px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 100;
    letter-spacing: 0.03em;
}
.fab-btn:hover {
    box-shadow: 0 12px 40px rgba(255,20,147,0.55), 0 2px 8px rgba(0,0,0,0.3);
    color: #fff;
    opacity: 1;
    transform: translateY(-3px) scale(1.03);
}
.fab-icon { flex-shrink: 0; }

@media (max-width: 480px) {
    .fab-label { display: none; }
    .fab-btn { border-radius: 50%; padding: 16px; }
}

/* === guide page === */

.guide-page {
    padding-top: var(--nav-height);
}

/* ── hero ── */
.guide-hero {
    position: relative;
    padding: 80px 24px 72px;
    text-align: center;
    overflow: hidden;
}
.guide-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.guide-hero-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}
.guide-hero-circle-1 {
    width: 320px; height: 320px;
    top: -60px; left: -80px;
    background: rgba(255,20,147,0.12);
}
.guide-hero-circle-2 {
    width: 260px; height: 260px;
    bottom: -40px; right: -60px;
    background: rgba(138,43,226,0.12);
}
.guide-hero-content { position: relative; z-index: 1; }
.guide-hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-pink);
    background: rgba(255,20,147,0.1);
    border: 1px solid rgba(255,20,147,0.25);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 20px;
}
.guide-hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.guide-hero-desc {
    font-size: 17px;
    color: var(--color-text-gray);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto;
}

/* ── sections ── */
.guide-section {
    padding: 80px 0;
}
.guide-section--alt {
    background: rgba(255,255,255,0.015);
}
.guide-section-header {
    text-align: center;
    margin-bottom: 52px;
}
.guide-section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #f0f0f0;
}
.guide-section-desc {
    font-size: 16px;
    color: var(--color-text-gray);
}

/* ── features grid ── */
.guide-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.guide-feature-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.guide-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,20,147,0.3);
}
.guide-feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.guide-feature-icon svg { width: 22px; height: 22px; }
.guide-feature-icon--pink   { background: rgba(255,20,147,0.15); color: var(--color-pink); }
.guide-feature-icon--blue   { background: rgba(0,191,255,0.15);  color: var(--color-blue); }
.guide-feature-icon--purple { background: rgba(138,43,226,0.15); color: var(--color-purple); }
.guide-feature-icon--green  { background: rgba(16,185,129,0.15); color: #34d399; }
.guide-feature-title {
    font-size: 17px;
    font-weight: 700;
    color: #f0f0f0;
}
.guide-feature-desc {
    font-size: 14px;
    color: #aaaaaa;
    line-height: 1.7;
}

/* ── steps ── */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.guide-step {
    display: flex;
    gap: 28px;
    padding: 32px 36px;
    align-items: flex-start;
    transition: border-color 0.25s ease;
}
.guide-step:hover { border-color: rgba(255,20,147,0.3); }
.guide-step-num {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    min-width: 56px;
}
.guide-step-body { flex: 1; }
.guide-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 10px;
}
.guide-step-desc {
    font-size: 15px;
    color: #aaaaaa;
    line-height: 1.75;
    margin-bottom: 12px;
}
.guide-step-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-pink);
    background: rgba(255,20,147,0.07);
    border: 1px solid rgba(255,20,147,0.2);
    border-radius: 8px;
    padding: 8px 14px;
}
.guide-step-note svg { flex-shrink: 0; }

/* ── rules ── */
.guide-rules {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}
.guide-rule-item {
    display: flex;
    gap: 20px;
    padding: 24px 32px;
    align-items: flex-start;
    border-left: 3px solid transparent;
    transition: background 0.2s;
}
.guide-rule-item:hover { background: rgba(255,255,255,0.03); }
.guide-rule-item--ok  { border-left-color: #34d399; }
.guide-rule-item--ng  { border-left-color: #f87171; }
.guide-rule-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.guide-rule-icon svg { width: 14px; height: 14px; }
.guide-rule-item--ok .guide-rule-icon { background: rgba(52,211,153,0.15); color: #34d399; }
.guide-rule-item--ng .guide-rule-icon { background: rgba(248,113,113,0.15); color: #f87171; }
.guide-rule-body { flex: 1; }
.guide-rule-title {
    font-size: 16px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 6px;
}
.guide-rule-desc {
    font-size: 14px;
    color: #999999;
    line-height: 1.7;
}
.guide-rule-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 4px 0;
}

/* ── services grid ── */
.guide-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.guide-service-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.guide-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,20,147,0.3);
}
.guide-service-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.guide-service-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.guide-service-icon svg { width: 20px; height: 20px; }
.guide-service-icon--pink   { background: rgba(255,20,147,0.15); color: var(--color-pink); }
.guide-service-icon--blue   { background: rgba(0,191,255,0.15);  color: var(--color-blue); }
.guide-service-icon--purple { background: rgba(138,43,226,0.15); color: var(--color-purple); }
.guide-service-icon--yellow { background: rgba(222,238,0,0.12);  color: var(--color-yellow); }
.guide-service-title {
    font-size: 17px;
    font-weight: 700;
    color: #f0f0f0;
}
.guide-service-desc {
    font-size: 14px;
    color: #999999;
    line-height: 1.7;
    flex: 1;
}
.guide-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-pink);
    text-decoration: none;
    transition: gap 0.2s;
}
.guide-service-link:hover { gap: 10px; opacity: 1; }

/* ── account (registration / withdrawal) ── */
.guide-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
.guide-account-card {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.guide-account-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-account-icon svg { width: 24px; height: 24px; }
.guide-account-icon--pink { background: rgba(255,20,147,0.15); color: var(--color-pink); }
.guide-account-icon--gray { background: rgba(255,255,255,0.06); color: #999; }
.guide-account-title {
    font-size: 20px;
    font-weight: 800;
    color: #f0f0f0;
}
.guide-account-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: guide-step-counter;
}
.guide-account-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #cccccc;
    line-height: 1.6;
    counter-increment: guide-step-counter;
}
.guide-account-list li::before {
    content: counter(guide-step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    color: white;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}
.guide-account-note {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #888;
    line-height: 1.7;
}
.guide-account-note strong { color: #c0c0c0; display: block; margin-bottom: 4px; }
.guide-account-note code {
    background: rgba(255,20,147,0.12);
    color: var(--color-pink);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
}
.guide-account-btn { align-self: flex-start; }

/* ── cta section ── */
.guide-cta-section {
    position: relative;
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
}
.guide-cta-bg { position: absolute; inset: 0; pointer-events: none; }
.guide-cta-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.guide-cta-circle-1 {
    width: 400px; height: 400px;
    top: -100px; left: 50%;
    transform: translateX(-70%);
    background: rgba(255,20,147,0.1);
}
.guide-cta-circle-2 {
    width: 300px; height: 300px;
    bottom: -80px; right: 10%;
    background: rgba(138,43,226,0.1);
}
.guide-cta-content { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.guide-cta-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.guide-cta-desc {
    font-size: 17px;
    color: var(--color-text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}
.guide-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .guide-step { flex-direction: column; gap: 12px; padding: 24px 20px; }
    .guide-step-num { font-size: 2rem; }
    .guide-rule-item { padding: 20px; }
    .guide-account-card { padding: 28px 20px; }
    .guide-cta-buttons { flex-direction: column; align-items: center; }
}

/* === mypage === */

.mypage-wrap {
    min-height: 100vh;
    padding-top: 112px;
    padding-bottom: 80px;
}

.mypage-profile {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding: 32px;
}
.mypage-profile-avatar img { border-radius: 50%; display: block; }
.mypage-profile-info { flex: 1; min-width: 180px; }
.mypage-username { font-size: 22px; font-weight: 800; color: #f0f0f0; margin-bottom: 4px; }
.mypage-email, .mypage-since { color: var(--color-text-gray); font-size: 13px; margin-top: 4px; }

.mypage-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.mypage-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mypage-stat-num { font-size: 28px; font-weight: 800; line-height: 1; }
.mypage-stat-label { color: var(--color-text-gray); font-size: 12px; letter-spacing: 0.05em; }

.mypage-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
    gap: 4px;
}
.mypage-tab {
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--color-text-gray);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    gap: 7px;
    margin-bottom: -1px;
    padding: 12px 20px;
    transition: color 0.2s, border-color 0.2s;
}
.mypage-tab:hover { color: #f0f0f0; }
.mypage-tab.active { border-bottom-color: var(--color-pink); color: #fff; }
.mypage-tab-count {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 11px;
    padding: 2px 7px;
}
.mypage-tab.active .mypage-tab-count { background: rgba(255,20,147,0.2); color: var(--color-pink); }

.mypage-panel-actions { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.mypage-new-btn { gap: 7px; }

.mypage-post-list { display: flex; flex-direction: column; gap: 12px; }

.mypage-post-item {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    transition: border-color 0.2s;
}
.mypage-post-item:hover { border-color: rgba(255,20,147,0.25); }

.mypage-post-thumb { flex-shrink: 0; }
.mypage-post-thumb img { border-radius: 8px; height: 64px; object-fit: cover; width: 96px; }

.mypage-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.mypage-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.mypage-post-status {
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 2px 8px;
}
.status-publish { background: rgba(0,191,255,0.12); color: #00bfff; }
.status-draft, .status-pending { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }

.mypage-post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mypage-post-title a { color: #f0f0f0; text-decoration: none; }
.mypage-post-title a:hover { color: var(--color-pink); }

.mypage-post-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.mypage-post-date { color: var(--color-text-gray); font-size: 12px; }
.mypage-post-actions { display: flex; gap: 8px; }

.mypage-empty {
    color: var(--color-text-gray);
    padding: 48px 0;
    text-align: center;
}

@media (max-width: 640px) {
    .mypage-profile { flex-direction: column; align-items: flex-start; }
    .mypage-tabs { overflow-x: auto; }
    .mypage-tab { white-space: nowrap; }
    .mypage-post-item { flex-direction: column; }
    .mypage-post-thumb img { width: 100%; height: 160px; }
}

/* === violation report section === */

.report-section {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 48px;
    padding-top: 24px;
    /* float した .wprc-container を包むための BFC */
    display: flow-root;
}

/* wprc plugin — float 無効化してドキュメントフローに収める */
.report-section .wprc-container {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}
.report-section .wprc-switch {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: 1px solid rgba(220, 90, 70, 0.28) !important;
    border-radius: 8px !important;
    color: rgba(210, 110, 90, 0.75) !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    padding: 7px 14px !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}
.report-section .wprc-switch:hover {
    background: rgba(220, 90, 70, 0.08) !important;
    border-color: rgba(220, 90, 70, 0.5) !important;
    color: rgba(230, 120, 100, 0.95) !important;
}
.report-section .wprc-content {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(200, 60, 40, 0.04) !important;
    border: 1px solid rgba(200, 80, 60, 0.14) !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
    padding: 24px !important;
}
.report-section .wprc-message {
    font-size: 14px;
    color: #c0a0a0;
    margin-bottom: 12px;
}
/* 2カラムレイアウトをシングルカラムに */
.report-section .left-section,
.report-section .right-section {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 14px;
}
.report-section .clear { clear: both; display: none; }
/* フォーム要素 */
.report-section .wprc-form input[type="text"],
.report-section .wprc-form input[type="email"],
.report-section .wprc-form textarea,
.report-section .wprc-form select {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    color: #f0f0f0 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    transition: border-color 0.2s !important;
    width: 100% !important;
}
.report-section .wprc-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-color: #2a1f1f !important;
    padding-right: 36px !important;
}
.report-section .wprc-form select option { background: #2a1f1f; color: #f0f0f0; }
.report-section .wprc-form input:focus,
.report-section .wprc-form textarea:focus,
.report-section .wprc-form select:focus {
    border-color: rgba(220, 90, 70, 0.55) !important;
    outline: none !important;
}
.report-section .wprc-form textarea { min-height: 90px; resize: vertical; }
.report-section label {
    color: #a09090;
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.report-section .wprc-submit {
    background: rgba(200, 65, 45, 0.75) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    margin-top: 8px !important;
    padding: 10px 22px !important;
    transition: background 0.2s !important;
}
.report-section .wprc-submit:hover {
    background: rgba(200, 65, 45, 1) !important;
}
/* 送信完了・エラーメッセージ */
.report-section .wprc-success-message,
.report-section .success {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 8px;
    color: #6ee7b7;
    font-size: 13px;
    padding: 10px 16px;
    margin-top: 8px;
}
.report-section .wprc-error-message,
.report-section .error {
    background: rgba(220, 90, 70, 0.08);
    border: 1px solid rgba(220, 90, 70, 0.25);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    padding: 10px 16px;
    margin-top: 8px;
}


/* ============================================================
   === AUTH PAGES (ログイン・登録カスタムページ) ===
   ============================================================ */

.jlove-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050308;
    position: relative;
    overflow: hidden;
    padding: 48px 16px 64px;
    box-sizing: border-box;
}

.jlove-auth-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 12% 15%, rgba(220,20,120,.22) 0%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 88% 85%, rgba(100,30,200,.20) 0%, transparent 58%),
        radial-gradient(ellipse 45% 35% at 55% 45%, rgba(0,160,220,.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.jlove-auth-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* Logo */
.jlove-auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.jlove-auth-logo-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220,20,120,.18), rgba(100,30,200,.18));
    border: 1px solid rgba(220,20,120,.30);
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(220,20,120,.18), 0 0 0 6px rgba(220,20,120,.05);
    animation: auth-logo-glow 4s ease-in-out infinite alternate;
    flex-shrink: 0;
}

@keyframes auth-logo-glow {
    0%   { box-shadow: 0 0 24px rgba(220,20,120,.18), 0 0 0 6px rgba(220,20,120,.05); }
    100% { box-shadow: 0 0 48px rgba(220,20,120,.32), 0 0 0 8px rgba(220,20,120,.08); }
}

.jlove-auth-site-name {
    font-family: 'Cormorant Garamond', 'Noto Sans JP', serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: .05em;
    background: linear-gradient(135deg, #fff 20%, rgba(220,100,180,.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.jlove-auth-site-name span {
    font-size: 0.8em;

}

.jlove-auth-tagline {
    color: rgba(180,180,200,.55);
    font-size: 13px;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Form card */
.jlove-auth-form {
    background: rgba(12, 8, 18, .92);
    backdrop-filter: blur(32px) saturate(1.8);
    -webkit-backdrop-filter: blur(32px) saturate(1.8);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 40px 40px 36px;
    margin: 0 0 16px;
    box-shadow:
        0 0 0 1px rgba(220,20,120,.06),
        0 4px 8px rgba(0,0,0,.5),
        0 16px 48px rgba(0,0,0,.65),
        inset 0 1px 0 rgba(255,255,255,.07);
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.jlove-auth-form::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220,20,120,.5) 35%, rgba(160,60,240,.5) 65%, transparent);
    pointer-events: none;
}

/* Fields */
.jlove-auth-field {
    margin-bottom: 20px;
}

.jlove-auth-field label {
    display: block;
    color: rgba(200,200,225,.60);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.jlove-auth-field input[type="text"],
.jlove-auth-field input[type="password"],
.jlove-auth-field input[type="email"] {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    color: rgba(240,240,248,.95);
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 15px;
    height: auto;
    padding: 14px 18px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .3s, box-shadow .3s, background .3s;
    outline: none;
}

.jlove-auth-field input:hover {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
}

.jlove-auth-field input:focus {
    border-color: rgba(220,20,120,.55);
    box-shadow: 0 0 0 3px rgba(220,20,120,.10), 0 0 24px rgba(220,20,120,.08);
    background: rgba(220,20,120,.03);
}

.jlove-auth-field input::placeholder { color: rgba(255,255,255,.18); }

/* Password wrap */
.jlove-auth-pass-wrap {
    position: relative;
}

.jlove-auth-pass-wrap input {
    padding-right: 48px !important;
}

.jlove-toggle-pass {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,.4);
    padding: 8px 10px;
    cursor: pointer;
    transition: color .2s;
    line-height: 0;
}

.jlove-toggle-pass:hover { color: rgba(220,20,120,.8); }

/* Remember */
.jlove-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(180,180,200,.65);
    font-size: 13px;
    margin-bottom: 20px;
}

.jlove-auth-remember input[type="checkbox"] {
    accent-color: #dc1478;
    width: 15px;
    height: 15px;
}

/* Submit */
.jlove-auth-submit {
    background: linear-gradient(135deg, #dc1478 0%, #7b20c8 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 16px 24px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(220,20,120,.35), inset 0 1px 0 rgba(255,255,255,.15);
    transition: opacity .2s, box-shadow .2s, transform .15s;
    line-height: 1.5;
}

.jlove-auth-submit:hover {
    opacity: .9;
    box-shadow: 0 8px 40px rgba(220,20,120,.55), inset 0 1px 0 rgba(255,255,255,.15);
    transform: translateY(-1px);
}

.jlove-auth-submit:active {
    transform: translateY(0);
    opacity: 1;
}

/* Note */
.jlove-auth-note {
    color: rgba(180,180,200,.45);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Notices */
.jlove-auth-notice {
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 14px 16px;
}

.jlove-auth-error {
    background: rgba(211,0,0,.10);
    border: 1px solid rgba(211,0,0,.28);
    border-left: 3px solid rgba(211,0,0,.7);
    color: #ff8080;
}

.jlove-auth-success {
    background: rgba(16,185,129,.10);
    border: 1px solid rgba(16,185,129,.28);
    border-left: 3px solid rgba(16,185,129,.7);
    color: #4ade80;
}

/* Links */
.jlove-auth-links {
    text-align: center;
    margin-top: 16px;
}

.jlove-auth-links a {
    color: rgb(255 210 233 / 85%);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}

.jlove-auth-links a:hover {
    color: #dc1478;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jlove-auth-sep {
    color: rgba(255,255,255,.2);
    margin: 0 8px;
    font-size: 12px;
}

/* Hide site header/footer on auth pages */
body:has(.jlove-auth-page) .site-header,
body:has(.jlove-auth-page) .site-footer,
body:has(.jlove-auth-page) .wp-block-template-part {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .jlove-auth-form {
        border-radius: 16px;
        padding: 28px 24px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .jlove-auth-logo-icon { animation: none; }
    .jlove-auth-field input,
    .jlove-auth-submit { transition: none; }
}

