/* MakeMate — app.css
   ライトモード デフォルト / ダークモード [data-theme="dark"] */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design tokens (light) ─────────────────────────────────── */
:root {
  --bg-base:   #f8f6f1;
  --bg-card:   #ffffff;
  --bg-raised: #f2ede5;
  --bg-muted:  #e8e2d8;
  --bg-input:  #f8f6f1;

  --bd:        rgba(0,0,0,.08);
  --bd-2:      rgba(0,0,0,.14);
  --bd-focus:  rgba(215,80,0,.4);

  --tx:        #1c1a22;
  --tx-2:      #5a5868;
  --tx-3:      #a09eb2;

  --orange:    #d96800;
  --or-dim:    rgba(217,104,0,.08);
  --or-bd:     rgba(217,104,0,.22);

  --card-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --card-hover-shadow: 0 4px 24px rgba(0,0,0,.09);

  --nav-bg:    rgba(248,246,241,.92);
  --dc-bg:     #eef0ff;
  --dc-bd:     rgba(88,101,242,.16);

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --font-sans: 'Figtree','Noto Sans JP',sans-serif;
  --font-mono: 'JetBrains Mono',monospace;
}

/* ── Dark mode tokens ───────────────────────────────────────── */
[data-theme="dark"] {
  --bg-base:   #05050a;
  --bg-card:   rgba(255,255,255,.025);
  --bg-raised: rgba(255,255,255,.04);
  --bg-muted:  rgba(255,255,255,.07);
  --bg-input:  rgba(255,255,255,.04);

  --bd:        rgba(255,255,255,.07);
  --bd-2:      rgba(255,255,255,.13);
  --bd-focus:  rgba(249,115,22,.45);

  --tx:        #f1f0f5;
  --tx-2:      #8b8a9e;
  --tx-3:      #46455a;

  --orange:    #f97316;
  --or-dim:    rgba(249,115,22,.12);
  --or-bd:     rgba(249,115,22,.28);

  --card-shadow: 0 0 0 1px rgba(255,255,255,.06);
  --card-hover-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 32px rgba(0,0,0,.5);

  --nav-bg:    rgba(5,5,10,.84);
  --dc-bg:     #080b1a;
  --dc-bd:     rgba(88,101,242,.28);
}

/* ── Transition on theme switch ─────────────────────────────── */
.theme-transition, .theme-transition * {
  transition: background-color .22s, border-color .18s, color .18s, box-shadow .18s !important;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--tx);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font-family: var(--font-sans); color: var(--tx); }
input::placeholder, textarea::placeholder { color: var(--tx-3); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px var(--or-dim);
}
select option { background: var(--bg-base); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-muted); border-radius: 99px; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1060px; margin-inline: auto; padding-inline: 24px; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse    { 0%,100%{opacity:1}  50%{opacity:.3}}
@keyframes fade-up  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
@keyframes dc-glow  { 0%,100%{box-shadow:0 0 0 0 rgba(88,101,242,.45)} 60%{box-shadow:0 0 0 10px rgba(88,101,242,0)} }

.anim-fu   { animation: fade-up .45s cubic-bezier(.22,1,.36,1) both; }
.anim-fu-1 { animation-delay:.07s; }
.anim-fu-2 { animation-delay:.14s; }
.anim-fu-3 { animation-delay:.21s; }
.anim-fu-4 { animation-delay:.28s; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge-beta {
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 4px; border: 1px solid var(--or-bd);
  background: var(--or-dim); color: var(--orange);
}
.badge-beta--sm { font-size: 9px; padding: 1px 4px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; transition: all .15s; white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(.98); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 13px 28px; font-size: 15px; }
.btn--primary  { background: var(--orange); color: #fff; }
.btn--primary:hover { filter: brightness(.9); }
.btn--ghost { background: transparent; color: var(--tx-2); border: 1px solid var(--bd-2); }
.btn--ghost:hover { background: var(--bg-raised); color: var(--tx); }
.btn--subtle { background: var(--bg-raised); color: var(--tx-2); border: 1px solid var(--bd); }
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; }
.btn--danger  { background: #dc2626; color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.btn-icon {
  display: inline-flex; align-items: center; gap: 4px;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-raised); border: 1px solid var(--bd);
  cursor: pointer; font-size: 16px; justify-content: center;
  transition: all .15s; position: relative;
}
.btn-icon:hover { border-color: var(--bd-2); }
.btn-icon .badge-beta--sm { position: absolute; top: -4px; right: -4px; }

/* ── Pills / Tags ────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
}
.pill--heat { background: var(--heat-bg); color: var(--heat-color); border-color: var(--heat-bd); }
.pill--heat .pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--heat-color); flex-shrink: 0; }
.pill--cat  { background: color-mix(in srgb,var(--cat-color) 10%,transparent); color: var(--cat-color); border-color: color-mix(in srgb,var(--cat-color) 22%,transparent); }

.tag-mono {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 2px 7px; border-radius: 4px;
  background: var(--bg-raised); color: var(--tx-3); border: 1px solid var(--bd);
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 56px; border-bottom: 1px solid var(--bd);
  background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav__inner {
  max-width: 1060px; margin-inline: auto; padding-inline: 24px;
  height: 100%; display: flex; align-items: center; gap: 8px;
}
.nav__logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 900; letter-spacing: -.03em; color: var(--tx);
  white-space: nowrap;
}
.nav__logo-mark {
  width: 26px; height: 26px; border-radius: 6px; background: var(--orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav__links { display: flex; gap: 2px; margin-left: 4px; }
.nav__link {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--tx-3);
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--tx-2); background: var(--bg-raised); }
.nav__link.is-active { color: var(--tx); background: var(--bg-raised); font-weight: 700; border: 1px solid var(--bd); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__hamburger span { display: block; width: 20px; height: 1.5px; background: var(--tx-2); border-radius: 2px; }
.nav__mobile { display: none; flex-direction: column; border-top: 1px solid var(--bd); background: var(--bg-card); padding: 8px 24px 16px; }
.nav__mobile.is-open { display: flex; }
.nav__mobile-link { padding: 10px 0; font-size: 14px; color: var(--tx-2); border-bottom: 1px solid var(--bd); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 24px 72px; text-align: center;
  border-bottom: 1px solid var(--bd);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
[data-theme="dark"] .hero__grid { background-image: radial-gradient(circle,rgba(255,255,255,.03) 1px,transparent 1px); }
.hero__glow-1 {
  position: absolute; top: 30%; left: 60%; transform: translate(-50%,-50%);
  width: 640px; height: 440px;
  background: radial-gradient(ellipse, rgba(217,104,0,.07) 0%, transparent 65%);
  pointer-events: none;
}
[data-theme="dark"] .hero__glow-1 { background: radial-gradient(ellipse, rgba(249,115,22,.09) 0%, transparent 65%); }
.hero__glow-2 {
  position: absolute; top: 70%; left: 25%; transform: translate(-50%,-50%);
  width: 480px; height: 320px;
  background: radial-gradient(ellipse, rgba(88,101,242,.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero__content { position: relative; }
.hero__label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 99px;
  background: var(--or-dim); border: 1px solid var(--or-bd);
  font-size: 12px; font-weight: 600; color: var(--orange); margin-bottom: 28px;
}
.hero__label .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }
.hero__heading {
  font-size: clamp(30px, 5.5vw, 56px); font-weight: 900;
  line-height: 1.1; letter-spacing: -.035em; margin-bottom: 20px; color: var(--tx);
}
.hero__heading .grad {
  background: linear-gradient(120deg, var(--orange), #e07020 40%, #b85c00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .hero__heading .grad {
  background: linear-gradient(120deg, #f97316, #fb923c 40%, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__sub { font-size: 15px; color: var(--tx-2); line-height: 1.9; max-width: 500px; margin-inline: auto; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__stats { display: flex; justify-content: center; margin-top: 52px; }
.hero__stat { text-align: center; padding: 0 32px; border-right: 1px solid var(--bd); }
.hero__stat:last-child { border-right: none; }
.hero__stat-num { font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--tx); }
.hero__stat-lbl { font-size: 11px; color: var(--tx-3); margin-top: 3px; letter-spacing: .04em; }

/* ── Section heading ─────────────────────────────────────────── */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.sec-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 3px; }
.sec-head p  { font-size: 12px; color: var(--tx-3); }

/* ── Cards grid ─────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card-grid--works { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); align-items: start; }

/* ── Listing card ────────────────────────────────────────────── */
.listing-card {
  display: block; background: var(--bg-card);
  border: 1px solid var(--bd);
  border-left: 2.5px solid var(--heat-line, var(--bd));
  border-radius: var(--radius); padding: 18px 20px;
  cursor: pointer; transition: all .2s; color: inherit; text-decoration: none;
  box-shadow: var(--card-shadow);
}
.listing-card:hover {
  border-color: var(--bd-2);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.listing-card:hover .lcard__title { color: var(--orange); }
.lcard__head  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.lcard__badges{ display: flex; gap: 6px; flex-wrap: wrap; }
.lcard__time  { font-size: 11px; color: var(--tx-3); flex-shrink: 0; padding-top: 2px; }
.lcard__title { font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; color: var(--tx); transition: color .15s; }
.lcard__title .sample-label { font-size: 10px; font-weight: 700; color: var(--tx-3); background: var(--bg-raised); border: 1px solid var(--bd); border-radius: 4px; padding: 1px 5px; margin-right: 6px; vertical-align: middle; }
.lcard__desc  { font-size: 12px; color: var(--tx-3); line-height: 1.75; margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lcard__tags  { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.lcard__foot  { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--bd); }
.lcard__meta  { display: flex; gap: 12px; }
.lcard__meta-item { font-size: 12px; color: var(--tx-3); display: flex; align-items: center; gap: 4px; }
.lcard__author{ display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tx-3); }
.lcard__author-links { display: flex; gap: 5px; align-items: center; }
.lcard__author-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 600;
  background: var(--bg-raised); border: 1px solid var(--bd); color: var(--tx-3);
  transition: all .15s;
}
.lcard__author-link:hover { color: var(--tx-2); border-color: var(--bd-2); }

/* ── Work card ───────────────────────────────────────────────── */
.work-card {
  background: var(--bg-card); border: 1px solid var(--bd);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s; box-shadow: var(--card-shadow);
}
.work-card:hover { border-color: var(--bd-2); transform: translateY(-2px); box-shadow: var(--card-hover-shadow); }
.work-card__thumb { height: 76px; background: var(--bg-raised); display: flex; align-items: center; justify-content: center; font-size: 26px; border-bottom: 1px solid var(--bd); }
.work-card__body  { padding: 14px 16px; }
.work-card__row   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.work-card__title { font-size: 14px; font-weight: 700; color: var(--tx); }
.work-card__stars { font-size: 11px; color: var(--tx-3); }
.work-card__desc  { font-size: 12px; color: var(--tx-3); line-height: 1.7; margin-bottom: 10px; }
.work-card__tags  { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.work-card__foot  { display: flex; justify-content: space-between; align-items: center; }
.work-card__author{ display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tx-3); }

/* ── Avatar ─────────────────────────────────────────────────── */
.av {
  border-radius: 50%; background: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ── Discord blocks ──────────────────────────────────────────── */
.dc-banner-top { background: #5865f2; padding: 9px 24px; text-align: center; }
.dc-banner-top a { color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }

.dc-big {
  background: var(--dc-bg); border: 1px solid var(--dc-bd);
  border-radius: var(--radius-lg); padding: 44px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 28px; position: relative; overflow: hidden;
}
.dc-big::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(88,101,242,.06); pointer-events: none;
}
.dc-big__icon {
  background: #5865f2; border-radius: 12px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  animation: dc-glow 3s infinite;
}
.dc-big__header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dc-big__eyebrow { font-size: 11px; font-weight: 700; color: #818cf8; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.dc-big__title   { font-size: 20px; font-weight: 900; color: var(--tx); letter-spacing: -.02em; }
.dc-big__text    { font-size: 14px; color: var(--tx-2); line-height: 1.9; max-width: 500px; margin-bottom: 20px; }
.dc-big__stats   { display: flex; gap: 16px; flex-wrap: wrap; }
.dc-stat { background: var(--bg-raised); border: 1px solid var(--bd); border-radius: 10px; padding: 10px 16px; min-width: 90px; text-align: center; }
.dc-stat__lbl { font-size: 10px; color: var(--tx-3); margin-bottom: 3px; }
.dc-stat__num { font-size: 18px; font-weight: 900; color: var(--tx); font-variant-numeric: tabular-nums; }
.dc-big__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 10px; background: #5865f2; color: #fff;
  font-weight: 800; font-size: 15px; transition: background .15s; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(88,101,242,.3);
}
.dc-big__cta:hover { background: #4752c4; }

.dc-small {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  background: var(--dc-bg); border: 1px solid var(--dc-bd);
  border-radius: var(--radius); padding: 20px 24px;
}
.dc-small__icon { background: #5865f2; border-radius: 9px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dc-small__body { display: flex; align-items: center; gap: 12px; }
.dc-small__title{ font-size: 14px; font-weight: 800; color: var(--tx); margin-bottom: 3px; }
.dc-small__sub  { font-size: 12px; color: var(--tx-2); }

/* ── Why section ─────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.why-card {
  background: var(--bg-card); border: 1px solid var(--bd);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--card-shadow);
}
.why-card__icon {
  width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; font-size: 18px;
  background: color-mix(in srgb,var(--why-color) 10%,transparent);
  border: 1px solid color-mix(in srgb,var(--why-color) 22%,transparent);
}
.why-card h3 { font-size: 14px; font-weight: 800; color: var(--tx); margin-bottom: 7px; }
.why-card p  { font-size: 12px; color: var(--tx-3); line-height: 1.75; }

/* ── How it works ────────────────────────────────────────────── */
.steps-row { display: flex; gap: 0; }
.step-item {
  flex: 1; background: var(--bg-card); border: 1px solid var(--bd);
  border-right: none; padding: 18px 20px; box-shadow: var(--card-shadow);
}
.step-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step-item:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--bd); }
.step-item__num  { font-size: 10px; font-weight: 700; color: var(--tx-3); letter-spacing: .08em; margin-bottom: 8px; }
.step-item__title{ font-size: 13px; font-weight: 800; color: var(--tx); margin-bottom: 5px; }
.step-item__desc { font-size: 11px; color: var(--tx-3); line-height: 1.65; }

/* ── Filter bar ──────────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-card); border: 1px solid var(--bd);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  box-shadow: var(--card-shadow);
}
.filter-search { position: relative; flex: 1 1 200px; }
.filter-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--tx-3); }
.filter-search input { width: 100%; padding: 8px 12px 8px 32px; background: var(--bg-input); border: 1px solid var(--bd); border-radius: 7px; font-size: 13px; color: var(--tx); }
.filter-sep { width: 1px; height: 22px; background: var(--bd); flex-shrink: 0; }
.filter-group { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 12px; border-radius: var(--radius-sm); font-family: var(--font-sans);
  font-size: 12px; font-weight: 500; cursor: pointer; background: transparent;
  color: var(--tx-3); border: 1px solid var(--bd); transition: all .12s;
  display: inline-flex; align-items: center; gap: 5px;
}
.filter-btn:hover { color: var(--tx-2); border-color: var(--bd-2); }
.filter-btn.is-active { font-weight: 700; }

/* ── Panel (detail, form container) ─────────────────────────── */
.panel { background: var(--bg-card); border: 1px solid var(--bd); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.panel--top-accent { border-top-width: 3px; }
.panel__header { padding: 28px; border-bottom: 1px solid var(--bd); }
.panel__body   { padding: 24px 28px; }
.panel__footer { padding: 16px 28px; border-top: 1px solid var(--bd); display: flex; justify-content: space-between; align-items: center; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--tx-2); margin-bottom: 7px; letter-spacing: .01em; }
.form-label .req { color: var(--orange); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 14px; background: var(--bg-input);
  border: 1px solid var(--bd); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 14px; color: var(--tx);
  transition: border-color .15s, box-shadow .15s;
}
.form-textarea { resize: vertical; line-height: 1.75; min-height: 120px; }
.form-select   { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 32px; 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='%23a09eb2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-hint  { font-size: 11px; color: var(--tx-3); margin-top: 6px; line-height: 1.6; }
.form-error { background: rgba(220,38,38,.06); border: 1px solid rgba(220,38,38,.2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 20px; font-size: 13px; color: #dc2626; }
.form-error ul { padding-left: 16px; }
.form-error li { margin-bottom: 3px; }
.form-success { background: rgba(22,163,74,.07); border: 1px solid rgba(22,163,74,.2); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14px; font-weight: 700; color: #16a34a; text-align: center; }

.input-prefix {
  display: flex; align-items: center; background: var(--bg-input);
  border: 1px solid var(--bd); border-radius: var(--radius-sm); overflow: hidden;
}
.input-prefix__label { padding: 10px 10px; font-size: 12px; color: var(--tx-3); border-right: 1px solid var(--bd); white-space: nowrap; background: var(--bg-raised); }
.input-prefix .form-input { border: none; border-radius: 0; background: transparent; flex: 1; }
.input-prefix .form-input:focus { box-shadow: none; }
.input-prefix:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--or-dim); }

.role-group { display: flex; flex-wrap: wrap; gap: 7px; }
.role-btn {
  padding: 7px 14px; border-radius: var(--radius-sm); font-family: var(--font-sans);
  font-size: 12px; font-weight: 500; cursor: pointer; background: transparent;
  color: var(--tx-3); border: 1px solid var(--bd); transition: all .12s;
}
.role-btn.is-active { background: var(--or-dim); color: var(--orange); border-color: var(--or-bd); font-weight: 700; }

/* Step indicator */
.steps-ind { display: flex; align-items: center; margin-bottom: 32px; }
.step-ind { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.step-ind__num {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 800;
  background: var(--bg-raised); color: var(--tx-3); border: 1px solid var(--bd);
  transition: all .2s;
}
.step-ind.is-done   .step-ind__num { background: var(--or-dim); color: var(--orange); border-color: var(--or-bd); }
.step-ind.is-active .step-ind__num { background: var(--orange); color: #fff; border-color: var(--orange); }
.step-ind__lbl { font-size: 12px; font-weight: 500; color: var(--tx-3); transition: color .2s; }
.step-ind.is-active .step-ind__lbl { color: var(--tx); font-weight: 700; }
.step-ind__line { flex: 1; height: 1px; background: var(--bd); margin-inline: 12px; }

/* ── Detail meta ─────────────────────────────────────────────── */
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.detail-meta__item { background: var(--bg-raised); border: 1px solid var(--bd); border-radius: var(--radius-sm); padding: 12px 16px; }
.detail-meta__key { font-size: 10px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.detail-meta__val { font-size: 14px; font-weight: 700; color: var(--tx); }

.dc-flow { background: var(--dc-bg); border: 1px solid var(--dc-bd); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; }
.dc-flow__icon { background: #5865f2; border-radius: 7px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dc-flow__title { font-size: 13px; font-weight: 700; color: var(--tx); margin-bottom: 3px; }
.dc-flow__text  { font-size: 12px; color: var(--tx-2); line-height: 1.7; }

.author-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-raised); border: 1px solid var(--bd); margin-bottom: 20px; }
.author-row__name{ font-size: 13px; font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.author-row__sub { font-size: 11px; color: var(--tx-3); }
.author-row__links { margin-left: auto; display: flex; gap: 6px; }

/* ── Contact page ────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-card); border: 1px solid var(--bd);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--card-shadow);
}
.contact-card h2 { font-size: 18px; font-weight: 800; color: var(--tx); margin-bottom: 8px; letter-spacing: -.02em; }
.contact-card p  { font-size: 14px; color: var(--tx-2); line-height: 1.8; margin-bottom: 16px; }
.template-box {
  background: var(--bg-raised); border: 1px solid var(--bd); border-radius: var(--radius-sm);
  padding: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--tx-2);
  line-height: 1.8; white-space: pre-wrap; margin-bottom: 16px;
}
.contact-email-link { color: var(--orange); font-weight: 700; }

/* ── Page utils ──────────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-title  { font-size: 22px; font-weight: 900; color: var(--tx); letter-spacing: -.02em; margin-bottom: 4px; }
.page-sub    { font-size: 12px; color: var(--tx-3); }
.back-link   { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tx-3); margin-bottom: 28px; transition: color .15s; }
.back-link:hover { color: var(--tx-2); }
.empty-state { text-align: center; padding: 80px 0; color: var(--tx-3); }
.empty-state__icon { font-size: 36px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }
.sample-notice { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(217,119,6,.07); border: 1px solid rgba(217,119,6,.2); border-radius: var(--radius-sm); font-size: 12px; color: #b45309; margin-bottom: 16px; }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-page { max-width: 720px; padding-top: 48px; padding-bottom: 80px; }
.legal-header { margin-bottom: 32px; }
.legal-header h1 { font-size: 26px; font-weight: 900; color: var(--tx); letter-spacing: -.02em; margin-bottom: 8px; }
.legal-header p  { font-size: 12px; color: var(--tx-3); }
.legal-body section { border-bottom: 1px solid var(--bd); padding: 20px 0; }
.legal-body section:last-child { border-bottom: none; }
.legal-body h2  { font-size: 15px; font-weight: 800; color: var(--tx); margin-bottom: 10px; }
.legal-body h3  { font-size: 13px; font-weight: 700; color: var(--tx-2); margin: 12px 0 6px; }
.legal-body p   { font-size: 13px; color: var(--tx-2); line-height: 1.85; margin-bottom: 8px; }
.legal-body ul  { padding-left: 18px; }
.legal-body li  { font-size: 13px; color: var(--tx-2); line-height: 1.85; margin-bottom: 4px; }
.legal-important { background: rgba(220,38,38,.06); border: 1px solid rgba(220,38,38,.18); border-radius: var(--radius-sm); padding: 14px 16px; }
.legal-important h2 { color: #dc2626; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--bd); padding: 36px 24px 28px; margin-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer__brand p { font-size: 12px; color: var(--tx-3); line-height: 1.7; margin-top: 10px; max-width: 200px; }
.footer__nav-label { font-size: 11px; font-weight: 700; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display: block; }
.footer__nav-group a, .footer__contact-link { display: block; font-size: 13px; color: var(--tx-3); margin-bottom: 7px; transition: color .15s; }
.footer__nav-group a:hover, .footer__contact-link:hover { color: var(--tx-2); }
.footer__contact-note { font-size: 11px; color: var(--tx-3); line-height: 1.7; margin-top: 10px; }
.footer__contact-note a { color: var(--orange); font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--bd); font-size: 11px; color: var(--tx-3); }
.footer__bottom a { color: var(--orange); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* リンクとボタン群を非表示 */
  .nav__links { display: none; }
  .nav__actions .btn--primary,
  .nav__actions .btn--ghost,
  .nav__actions .btn--discord { display: none; }
  .nav__hamburger { display: flex; }
  /* ユーザーメニューのユーザー名テキストを非表示 */
  .nav__user-name { display: none; }
  /* ヘッダー内の余白を詰める */
  .nav__inner { padding-inline: 16px; gap: 4px; }
  .hero { padding: 56px 20px 48px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps-row { flex-direction: column; }
  .step-item { border-right: 1px solid var(--bd) !important; border-bottom: none; border-radius: 0 !important; }
  .step-item:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .step-item:last-child  { border-radius: 0 0 var(--radius) var(--radius) !important; border-bottom: 1px solid var(--bd) !important; }
  .dc-big { flex-direction: column; padding: 28px 24px; }
  .hero__stat { padding: 0 20px; }
}
@media (max-width: 480px) {
  .card-grid, .card-grid--works { grid-template-columns: 1fr !important; align-items: start; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 12px; align-items: center; }
  .hero__stat { border-right: none; border-bottom: 1px solid var(--bd); padding: 12px 32px; width: 100%; max-width: 200px; }
  .hero__stat:last-child { border-bottom: none; }
}

/* ── User menu dropdown ─────────────────────────────── */
.nav__user-menu { position: relative; }
.nav__user-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: var(--bg-raised); border: 1px solid var(--bd);
  cursor: pointer; font-family: var(--font-sans); font-size: 13px; color: var(--tx);
  transition: all .15s;
}
.nav__user-btn:hover { border-color: var(--bd-2); }
.nav__user-av {
  width: 24px; height: 24px; border-radius: 50%; background: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.nav__user-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-card); border: 1px solid var(--bd-2);
  border-radius: var(--radius); min-width: 170px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 200; padding: 4px 0;
}
.nav__dropdown.is-open { display: block; }
.nav__dropdown-item { display: block; padding: 9px 16px; font-size: 13px; color: var(--tx-2); text-decoration: none; transition: background .1s; }
.nav__dropdown-item:hover { background: var(--bg-raised); color: var(--tx); }
.nav__dropdown-item--btn { width:100%; text-align:left; background:none; border:none; cursor:pointer; font-family:var(--font-sans); color:var(--tx-2); }

/* ── Like / Interest ────────────────────────────────── */
.react-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--bd); background: transparent;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  color: var(--tx-3); cursor: pointer; transition: all .15s;
}
.react-btn:hover { border-color: var(--bd-2); color: var(--tx-2); }
.react-btn.is-active.like-btn     { background:rgba(239,68,68,.08); color:#ef4444; border-color:rgba(239,68,68,.25); }
.react-btn.is-active.interest-btn { background:rgba(37,99,235,.08); color:#2563eb; border-color:rgba(37,99,235,.25); }

/* ── Share / QR ─────────────────────────────────────── */
.share-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.share-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:6px 12px; border-radius:var(--radius-sm);
  border:1px solid var(--bd); background:transparent;
  font-size:12px; font-weight:600; color:var(--tx-3); cursor:pointer;
  font-family:var(--font-sans); transition:all .15s;
}
.share-btn:hover { border-color:var(--bd-2); color:var(--tx-2); }

/* ── Theme transition ───────────────────────────────── */
.theme-transition * { transition:background-color .22s,border-color .18s,color .18s,box-shadow .18s !important; }

/* ── Hero CTA buttons ───────────────────────────────── */
.hero-cta{display:inline-flex;align-items:center;gap:8px;padding:14px 26px;border-radius:9px;font-weight:800;font-size:15px;text-decoration:none;transition:all .15s;border:2px solid transparent;white-space:nowrap}
.hero-cta--primary{background:var(--orange);color:#fff;box-shadow:0 4px 20px var(--or-dim)}
.hero-cta--primary:hover{filter:brightness(.9);transform:translateY(-1px)}
.hero-cta--secondary{background:transparent;color:var(--tx);border-color:var(--bd-2)}
.hero-cta--secondary:hover{background:var(--bg-raised);border-color:var(--orange);color:var(--orange)}
.hero-cta--discord{background:#5865f2;color:#fff;box-shadow:0 4px 14px rgba(88,101,242,.3)}
.hero-cta--discord:hover{background:#4752c4;transform:translateY(-1px)}

/* ── User menu ──────────────────────────────────────── */
.nav__user-menu{position:relative}
.nav__user-btn{display:flex;align-items:center;gap:7px;padding:5px 10px;border-radius:var(--radius-sm);background:var(--bg-raised);border:1px solid var(--bd);cursor:pointer;font-family:var(--font-sans);font-size:13px;color:var(--tx);transition:all .15s}
.nav__user-btn:hover{border-color:var(--bd-2)}
.nav__user-av{width:24px;height:24px;border-radius:50%;background:var(--orange);display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff;flex-shrink:0}
.nav__user-name{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav__dropdown{display:none;position:absolute;top:calc(100% + 6px);right:0;background:var(--bg-card);border:1px solid var(--bd-2);border-radius:var(--radius);min-width:170px;box-shadow:0 8px 32px rgba(0,0,0,.12);z-index:200;padding:4px 0}
.nav__dropdown.is-open{display:block}
.nav__dropdown-item{display:block;padding:9px 16px;font-size:13px;color:var(--tx-2);text-decoration:none;transition:background .1s}
.nav__dropdown-item:hover{background:var(--bg-raised);color:var(--tx)}
.nav__dropdown-item--btn{width:100%;text-align:left;background:none;border:none;cursor:pointer;font-family:var(--font-sans);color:var(--tx-2)}

/* ── Like / Interest ────────────────────────────────── */
.react-btn{display:inline-flex;align-items:center;gap:5px;padding:7px 14px;border-radius:var(--radius-sm);border:1px solid var(--bd);background:transparent;font-family:var(--font-sans);font-size:13px;font-weight:600;color:var(--tx-3);cursor:pointer;transition:all .15s}
.react-btn:hover{border-color:var(--bd-2);color:var(--tx-2)}
.react-btn.is-active.like-btn{background:rgba(239,68,68,.08);color:#ef4444;border-color:rgba(239,68,68,.25)}
.react-btn.is-active.interest-btn{background:rgba(37,99,235,.08);color:#2563eb;border-color:rgba(37,99,235,.25)}

/* ── Share ──────────────────────────────────────────── */
.share-row{display:flex;gap:8px;flex-wrap:wrap}
.share-btn{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;border-radius:var(--radius-sm);border:1px solid var(--bd);background:transparent;font-size:12px;font-weight:600;color:var(--tx-3);cursor:pointer;font-family:var(--font-sans);transition:all .15s}
.share-btn:hover{border-color:var(--bd-2);color:var(--tx-2)}

/* ── Theme transition ───────────────────────────────── */
.theme-transition *{transition:background-color .22s,border-color .18s,color .18s,box-shadow .18s !important}

/* ── Misc ───────────────────────────────────────────── */
.mb-4{margin-bottom:16px}
@keyframes dc-glow{0%,100%{box-shadow:0 0 0 0 rgba(88,101,242,.45)}60%{box-shadow:0 0 0 10px rgba(88,101,242,0)}}

/* ── Hero CTA（メイン＋サブ2列） ────────────────────────────── */
.hero-cta-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 28px; border-radius: 14px;
  background: var(--orange); color: #fff; text-decoration: none;
  width: 100%; box-sizing: border-box; margin-bottom: 10px;
  box-shadow: 0 6px 30px rgba(215,80,0,.32); transition: all .18s;
}
.hero-cta-main:hover { filter: brightness(.92); transform: translateY(-2px); box-shadow: 0 10px 36px rgba(215,80,0,.4); }
.hero-cta-main__inner { display: flex; align-items: center; gap: 14px; }
.hero-cta-main__label { font-size: 21px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.hero-cta-main__sub { font-size: 12px; font-weight: 600; opacity: .85; margin-top: 3px; }

.hero-cta-sub {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: 10px; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.hero-cta-sub--post {
  background: transparent; color: var(--tx); border: 2px solid var(--bd-2);
}
.hero-cta-sub--post:hover { border-color: var(--orange); color: var(--orange); background: var(--or-dim); }
.hero-cta-sub--discord {
  background: #5865f2; color: #fff; box-shadow: 0 3px 12px rgba(88,101,242,.28);
}
.hero-cta-sub--discord:hover { background: #4752c4; transform: translateY(-1px); }

@media(max-width:480px) {
  .hero-cta-main { padding: 16px 20px; }
  .hero-cta-main__label { font-size: 17px; }
}

/* ════════════════════════════════════════════════════
   スマホ表示修正（オーバーフロー対策）
════════════════════════════════════════════════════ */

/* 基本: 横スクロール防止 */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

/* スタッツバー: スマホでは横スクロール可 */
@media(max-width: 640px) {
  /* Hero stats bar */
  .hero-stats-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    width: 100%;
  }

  /* stats bar items */
  .hero-stats-bar > div {
    min-width: 70px;
    flex-shrink: 0;
  }

  /* 特集カード: 1列 */
  .feature-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* nav ghost already handled above */

  /* Panel padding縮小 */
  .panel { border-radius: 8px; }
  .panel__body, .panel__header { padding: 16px; }

  /* コンテナの余白縮小 */
  .container { padding-left: 14px !important; padding-right: 14px !important; }

  /* Hero section */
  section.hero-section { padding: 48px 16px 40px; }

  /* Hero headline */
  .hero-headline { font-size: clamp(22px, 6vw, 40px) !important; }

  /* Hero CTA main button */
  .hero-cta-main { padding: 16px 18px; }
  .hero-cta-main__label { font-size: 17px; }

  /* 2カラムグリッドを1列に */
  [style*="grid-template-columns:1fr 320px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }

  /* form-row: 縦並び */
  .form-row, .form-row-3 { flex-direction: column !important; }
  .form-row > *, .form-row-3 > * { width: 100% !important; }

  /* Admin テーブル */
  table { font-size: 11px; }
  th, td { padding: 7px 8px !important; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  /* filter-search: モバイルでflexで縦伸びしないよう固定 */
  .filter-search { flex: none; width: 100%; }
  /* filter-sep: 縦区切り→横区切りに変更 */
  .filter-sep { width: 100%; height: 1px; }
  .filter-search { width: 100%; }

  /* Share row */
  .share-row { gap: 6px; }
  .share-btn, .react-btn { font-size: 11px; padding: 5px 10px; }

  /* Card grid: 1列 */
  .card-grid { grid-template-columns: 1fr !important; }

  /* Listing card */
  .listing-card { padding: 14px; }

  /* Dashboard stats */
  .dashboard-stats { grid-template-columns: repeat(2,1fr) !important; }
}

@media(max-width: 480px) {
  /* ヒーローのサブボタン: 縦並び */
  .hero-sub-row { grid-template-columns: 1fr !important; }

  /* stats bar: 2×3 */
  [style*="display:inline-flex"][style*="border-radius:10px"] {
    display: grid !important;
    grid-template-columns: repeat(3,1fr) !important;
    width: 100% !important;
  }
  [style*="display:inline-flex"][style*="border-radius:10px"] > div {
    border-right: none !important;
    border-bottom: 1px solid var(--bd);
  }
}

/* ── Discord フロー図解 ──────────────────────────────────────── */
.flow-steps {
  display: flex; align-items: flex-start; gap: 0;
  position: relative;
}
.flow-step {
  flex: 1; text-align: center; padding: 0 8px; position: relative;
}
.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -12px; top: 14px;
  font-size: 16px; color: var(--tx-3); font-weight: 700;
}
.flow-step__icon {
  font-size: 28px; margin-bottom: 8px; line-height: 1;
}
.flow-step__title {
  font-size: 12px; font-weight: 800; color: var(--tx); margin-bottom: 4px;
}
.flow-step__sub {
  font-size: 10px; color: var(--tx-3); line-height: 1.5;
}

@media(max-width: 640px) {
  .flow-steps {
    flex-direction: column; gap: 16px; align-items: stretch;
  }
  .flow-step { padding: 0; display: flex; align-items: center; gap: 14px; text-align: left; }
  .flow-step:not(:last-child)::after {
    content: '↓'; right: auto; top: auto;
    position: static; display: block; text-align: center;
    margin: -8px 0; font-size: 14px;
  }
  .flow-step__icon { font-size: 22px; margin: 0; flex-shrink: 0; }
  .flow-step__title { font-size: 13px; margin: 0; }
}
