/* ============================================================
   066.jp Pages — Shared CSS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #090b10;
  --bg2:      #0f1219;
  --bg3:      #161b27;
  --border:   rgba(255,255,255,.08);
  --accent:   #7b61ff;
  --accent2:  #00d2ff;
  --btn-text: #ffffff;
  --btn-border: transparent;
  --text:     #e8eaf0;
  --muted:    #6b7280;
  --red:      #ff5858;
  --green:    #22c55e;
  --radius:   12px;
  --shadow:   0 4px 32px rgba(0,0,0,.5);
  --font:     'Inter','Noto Sans JP','Helvetica Neue',sans-serif;
}

html  { scroll-behavior: smooth; }
body  { background: var(--bg); color: var(--text); font-family: var(--font);
        font-size: 15px; line-height: 1.6; min-height: 100vh; overflow-x: hidden;
        display: flex; flex-direction: column; }
a     { color: var(--accent2); text-decoration: none; }

/* ── Marquee ─────────────────────────────── */
.marquee-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: flex; flex-direction: column; overflow: hidden; opacity: .038; user-select: none; }
.marquee-track { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap;
  font-size: 3rem; font-weight: 800; letter-spacing: .03em; padding: .8rem 0; color: var(--accent); }
.marquee-track span { flex-shrink: 0; }
.marquee-track1 { animation: mq1 30s linear infinite; }
.marquee-track2 { animation: mq2 24s linear infinite; color: var(--accent2); }
.marquee-track3 { animation: mq1 38s linear infinite; }
@keyframes mq1 { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq2 { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── Nav ─────────────────────────────────── */
.global-nav { position: sticky; top: 0; z-index: 100;
  background: rgba(9,11,16,.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); padding: .75rem 2rem;
  display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { font-size: 1.4rem; font-weight: 800; margin-right: auto;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem; margin-left: -.5rem; transition: opacity .2s; }
.nav-logo:hover { opacity: .8; }
.nav-logo .logo-icon { flex-shrink: 0; }
.nav-link { font-size: .9rem; color: var(--muted); transition: color .2s; padding: .5rem; }
.nav-link:hover { color: var(--text); }

/* ── Hero ────────────────────────────────── */
.hero, .faq-hero {
  position: relative; z-index: 1; text-align: center; border-bottom: 1px solid var(--border); }
.hero { padding: 7rem 2rem 5rem;
  background: radial-gradient(ellipse 70% 50% at 50% 0%,
    color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%); }
.faq-hero { padding: 5rem 2rem 3rem;
  background: radial-gradient(ellipse 60% 50% at 50% 0%,
    color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%); }
.hero-inner { max-width: 680px; margin: 0 auto; }
.badge { display: inline-block; margin-bottom: 1.5rem; padding: .3rem 1rem;
  border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  font-size: .8rem; letter-spacing: .08em; color: var(--accent); }
.hero h1, .faq-hero h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 800;
  line-height: 1.15; background: linear-gradient(135deg,#fff 0%,rgba(255,255,255,.55) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; }
.hero-sub { color: var(--muted); font-size: 1.05rem; }

/* ── Listings ────────────────────────────── */
.listings, .faq-section { position: relative; z-index: 1; padding: 3rem 2rem 5rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.4rem; font-weight: 700; }
.count { color: var(--muted); font-size: .85rem; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.tag-filter { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; align-items: center; }
.tag-btn { padding: .45rem .9rem; border-radius: 99px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .18s; font-family: var(--font); }
.tag-btn:hover  { border-color: var(--accent); color: var(--accent); }
.tag-btn.active { background: var(--accent); border-color: var(--accent); color: var(--btn-text); }
.tag-btn-hs { border-color: rgba(234,179,8,.3); color: rgba(234,179,8,.7); }
.tag-btn-hs:hover  { border-color: #eab308; color: #eab308; }
.tag-btn-hs.active { background: #eab308; border-color: #eab308; color: #000; }
.tag-divider { color: var(--border); font-size: 1.2rem; margin: 0 .15rem; user-select: none; }
.sort-wrap select { background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: .5rem .8rem; font-size: .85rem; outline: none;
  font-family: var(--font); cursor: pointer; min-height: 40px; }

/* ── Grid / Card ─────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.25rem; }
.empty { text-align: center; color: var(--muted); padding: 5rem 0; }
.hidden { display: none !important; }

.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 12%, transparent); }
.card-header { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.tag { font-size: .75rem; font-weight: 700; padding: .35rem .7rem; border-radius: 99px; letter-spacing: .03em; }
.tag-free { background: rgba(34,197,94,.15); color: var(--green); }
.tag-paid { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }

.username { font-family: 'JetBrains Mono','Fira Code',monospace; font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .3rem; word-break: break-all; line-height: 1.05; }

.desc { font-size: .88rem; color: var(--muted); margin-bottom: .75rem; }
.ptag-row { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .75rem; }
.ptag { font-size: .7rem; padding: .2rem .55rem; border-radius: 6px;
  background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }
.ptag-hs { background: rgba(234,179,8,.1); color: #eab308; border-color: rgba(234,179,8,.25); }

.card-footer { display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-top: .75rem; }
.account-date { font-size: .85rem; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.btn-contact { background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--btn-text); border: 1px solid var(--btn-border);
  border-radius: 8px; padding: .5rem 1.1rem; font-size: .88rem;
  font-weight: 600; cursor: pointer; transition: opacity .2s; min-height: 36px; flex-shrink: 0; }
.btn-contact:hover { opacity: .85; }

.sale-badge { position: absolute; top: 0; left: 0;
  background: var(--red); color: #fff; font-size: .75rem; font-weight: bold;
  padding: .25rem .75rem; border-top-left-radius: var(--radius);
  border-bottom-right-radius: 8px; z-index: 2; box-shadow: 2px 2px 8px rgba(0,0,0,.3); }

/* ── Skeleton ────────────────────────────── */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.25rem; }
.skeleton-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.sk-line { border-radius: 6px; background: rgba(255,255,255,.07); animation: sk 1.4s ease-in-out infinite; }
.sk-price { height: 24px; width: 40%; margin-bottom: 1rem; margin-left: auto; }
.sk-name  { height: 32px; width: 80%; margin-bottom: .75rem; }
.sk-desc  { height: 16px; width: 60%; }
@keyframes sk { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* ── FAQ ─────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; color: var(--text);
  padding: 1.25rem; display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; font-weight: 600; cursor: pointer; text-align: left;
  gap: 1rem; font-family: var(--font); transition: background .15s; }
.faq-q:hover { background: rgba(255,255,255,.03); }
.faq-icon { font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; padding: 0 1.25rem;
  color: var(--muted); font-size: .93rem; line-height: 1.7;
  transition: max-height .3s ease, padding .3s ease; }
.faq-a.open { max-height: 600px; padding: .25rem 1.25rem 1.25rem; }

/* ── Modal ───────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none !important; }
.modal-box { background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; max-width: 420px;
  width: 90%; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: .5rem; }
.modal-box h3 { margin-bottom: .75rem; }

/* ── Buttons ─────────────────────────────── */
.btn-primary { display: block; width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--btn-text); border: 1px solid var(--btn-border);
  border-radius: 8px; padding: .75rem 1.5rem; font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: opacity .2s; min-height: 44px; }
.btn-primary:hover:not(:disabled) { opacity: .85; }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }

/* ── Footer ──────────────────────────────── */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border);
  padding: 1.5rem 2rem; text-align: center; color: var(--muted);
  font-size: .82rem; margin-top: auto; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 4rem 1rem 3rem; }
  .controls { flex-direction: column; align-items: flex-start; }
  .username { font-size: 1.5rem; }
}
