/* =====================================================================
   Eizo Maps — 共通スタイル
   ダークテーマ / プロフェッショナル・スタイリッシュ
   ===================================================================== */

:root {
  --bg:       #0a0a0f;
  --surface:  #111118;
  --surface2: #18181f;
  --border:   #2a2a35;
  --accent:   #e8ff47;
  --accent2:  #ff6b35;
  --text:     #f0f0f5;
  --muted:    #6b6b80;

  --radius:   10px;
  --radius-s: 6px;
  --ease:     cubic-bezier(.22,.61,.36,1);
  --t:        .2s var(--ease);

  --maxw:     1180px;
  --header-h: 60px;

  --font-jp:   'Noto Sans JP', system-ui, -apple-system, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-disp: 'Bebas Neue', Impact, var(--font-jp);
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #0a0a0f; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- レイアウト ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 64px; }
.section--tight { padding-block: 40px; }
main { min-height: 60vh; }

/* ---------- タイポグラフィ ---------- */
h1, h2, h3, h4 { line-height: 1.4; letter-spacing: .02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(26px, 4.2vw, 40px); }
h2 { font-size: clamp(21px, 3vw, 28px); }
h3 { font-size: 17px; }
p  { margin: 0 0 1em; }
.lead { color: #c9c9d6; font-size: clamp(15px, 1.6vw, 17px); font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.num  { font-family: var(--font-disp); letter-spacing: .04em; line-height: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10,10,15,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ロゴは小文字を含むため Bebas Neue（大文字のみ）は使わない */
.logo {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
  display: inline-flex; align-items: baseline; gap: .28em;
  white-space: nowrap;
}
.logo b { color: var(--accent); font-weight: 700; }

.nav-toggle {
  width: 42px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-panel {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  display: none;
  z-index: 49;
}
.nav-panel[data-open="true"] { display: block; }
.nav-panel .wrap { padding-inline: 0; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-panel a {
  display: block; padding: 11px 12px;
  border-radius: var(--radius-s);
  color: #d5d5e0;
  transition: background var(--t), color var(--t);
}
.nav-panel a:hover { background: var(--surface2); color: var(--accent); }
.nav-panel hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.nav-meta { color: var(--muted); font-size: 12px; padding: 4px 12px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface2);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .5; pointer-events: none; }

.btn--primary {
  background: var(--accent); border-color: var(--accent); color: #0a0a0f; font-weight: 700;
}
.btn--primary:hover { background: #f2ff7a; border-color: #f2ff7a; color: #0a0a0f; }
.btn--ghost { background: transparent; }
.btn--danger { color: #ff8b6b; }
.btn--danger:hover { border-color: var(--accent2); color: var(--accent2); }
.btn--sm { padding: 7px 13px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- カード ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--t), background var(--t);
}
a.card:hover, .card--hover:hover { border-color: var(--accent); background: var(--surface2); }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- タグ・チップ ---------- */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  font-size: 12px; color: #c0c0cf;
  white-space: nowrap;
}
.tag--accent { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: #c0c0cf;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0a0a0f; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 評価表示 ---------- */
.rating { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.rating .score { font-family: var(--font-disp); font-size: 30px; color: var(--accent); line-height: 1; }
.rating .stars { color: var(--accent); letter-spacing: .08em; font-size: 13px; }
.rating .count { color: var(--muted); font-size: 12px; }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-family: var(--font-disp); font-size: 24px; line-height: 1; }
.stat .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- フォーム ---------- */
.field { display: block; margin-bottom: 18px; }
.field > .label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 500; color: #d5d5e0;
}
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-family: inherit; font-size: 14px;
  transition: border-color var(--t), background var(--t);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; background: #1c1c25; }
input::placeholder, textarea::placeholder { color: #4a4a5c; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--accent); flex: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- 通知・状態 ---------- */
.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.notice--error { border-left-color: var(--accent2); }
.notice--ok { border-left-color: #4ade80; }
.notice[hidden] { display: none; }

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: var(--radius-s);
  padding: 11px 20px;
  font-size: 14px;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  animation: toastin .25s var(--ease);
  max-width: calc(100vw - 40px);
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: var(--radius-s);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- サムネイル ---------- */
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface2);
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--border);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .badge {
  position: absolute; left: 8px; top: 8px;
  background: rgba(10,10,15,.82);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--border); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- アバター ---------- */
.avatar {
  width: 60px; height: 60px; flex: none;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  object-fit: cover;
  display: grid; place-items: center;
  font-family: var(--font-disp); font-size: 22px; color: var(--muted);
  overflow: hidden;
}
.avatar--lg { width: 88px; height: 88px; font-size: 30px; }

/* ---------- テーブル ---------- */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ---------- ヒーロー ---------- */
.hero { padding-block: clamp(56px, 10vw, 104px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: auto -10% -60% 40%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(232,255,71,.09), transparent);
  pointer-events: none;
}
.hero .inner { position: relative; max-width: 720px; }
.hero h1 { letter-spacing: .01em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding-block: 36px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .copy { margin-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }

/* ---------- 文書ページ ---------- */
.doc { max-width: 760px; }
.doc h2 { margin-top: 2em; font-size: 19px; }
.doc h3 { margin-top: 1.6em; font-size: 16px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.doc dt { color: var(--muted); font-size: 13px; }
.doc dd { margin: 0; }

/* ---------- ユーティリティ ---------- */
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.hidden, [hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { padding-inline: 16px; }
  .section { padding-block: 44px; }
  .card { padding: 16px; }
  .doc dl { grid-template-columns: 1fr; gap: 2px 0; }
  .doc dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 個別ユーティリティ（インラインstyleを使わないため） ---------- */
.f-note { margin-top: 8px; max-width: 32ch; }
.setup-warn { padding-top: 16px; }

/* ---------- クリエイター一覧 ---------- */
.search-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.filters { display: grid; gap: 14px; margin-top: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-row .label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.view-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-s); overflow: hidden; }
.view-switch button { padding: 8px 16px; background: transparent; border: 0; font-size: 13px; cursor: pointer; color: #c0c0cf; white-space: nowrap; transition: background var(--t), color var(--t); }
.view-switch button[aria-pressed="true"] { background: var(--accent); color: #0a0a0f; font-weight: 700; }

.creator-card { display: flex; gap: 14px; align-items: flex-start; }
.creator-card .body { min-width: 0; flex: 1; }
.creator-card .name { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.creator-card .headline { color: var(--muted); font-size: 13px; margin: 0 0 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- エリアビュー（簡易マップ） ---------- */
.area-map { display: grid; gap: 20px; }
.area-region { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; }
.area-region h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.area-pref-btn { position: relative; }
.area-pref-btn .n { font-family: var(--font-disp); font-size: 15px; margin-left: 8px; color: var(--accent); }
.area-pref-btn[data-empty="true"] { opacity: .32; pointer-events: none; }

/* ---------- ポートフォリオ ---------- */
.pf-item { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.pf-item .pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pf-title { font-weight: 700; margin: 0 0 4px; font-size: 15px; }
@media (max-width: 560px) { .pf-item { grid-template-columns: 1fr; } }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.share-url { font-family: var(--font-mono); font-size: 12px; color: var(--accent); word-break: break-all; }

.review-item { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.review-item:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.review-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; }
.row > .field { flex: 1 1 200px; margin-bottom: 0; }
.card > h2:first-child { margin-top: 0; }
.num + h3 { margin-top: 6px; }
.card .num { font-size: 30px; color: var(--accent); margin: 0; }

/* ---------- 評価スコアのスライダー ---------- */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  flex: 1 1 220px; min-width: 180px; height: 4px;
  background: var(--border); border-radius: 999px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 0; cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 0; cursor: pointer;
}
input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* ---------- 案件詳細 ---------- */
#statusBox .form-actions { margin-top: 16px; }
#messages .card p:last-child { margin-bottom: 0; white-space: pre-wrap; }

/* =====================================================================
   ストックページ（パスワード保護のポートフォリオ）
   ===================================================================== */

/* --- 一覧の1行（編集画面で使う） --- */
.row-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.row-item__main { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; min-width: 0; }
.row-item__title {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px;
}
.row-item__ops { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.row-item + .row-item { margin-top: 10px; }

.stock-edit { padding: 14px 16px; }
.stock-edit__body { margin-top: 12px; }
.stock-edit__body .field { margin-bottom: 0; }
.stock-edit__url { word-break: break-all; }

/* --- ロック画面 --- */
.lock { display: flex; justify-content: center; padding-block: clamp(24px, 6vw, 72px); }
.lock__card { width: 100%; max-width: 460px; padding: 28px 24px; }
.lock__who { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.lock__who h1 { font-size: clamp(20px, 3vw, 26px); margin: 2px 0; }
.lock__card .field { margin-bottom: 14px; }

/* --- 閲覧画面 --- */
.stock-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.stock-head__who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.stock-head__who h1 { font-size: clamp(22px, 3.4vw, 30px); margin: 2px 0; }
.stock-intro { margin-bottom: 18px; }
.stock-links { margin-bottom: 26px; }

.stock-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.stock-block--full { grid-column: 1 / -1; }
.stock-block--heading { margin-top: 18px; }
.stock-block--heading h2 {
  font-size: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.stock-note { white-space: normal; line-height: 1.9; }
.stock-src { display: inline-block; text-decoration: underline; }
.stock-contact { margin-top: 32px; }

@media (max-width: 720px) {
  .stock-grid { grid-template-columns: minmax(0, 1fr); }
  .stock-block--half { grid-column: 1 / -1; }
}

/* --- 動画の遅延読み込みカバー --- */
.embed--vertical { aspect-ratio: 9/16; max-width: 300px; margin-inline: auto; }
.embed__cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--surface2); color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.embed__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface2); }
.embed__play {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 15, .72); border: 1px solid var(--accent);
  color: var(--accent); font-size: 17px; padding-left: 3px;
  transition: transform var(--t);
}
.embed__cover:hover .embed__play { transform: scale(1.08); }
.embed__cover .badge {
  position: absolute; z-index: 1; left: 8px; bottom: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  padding: 3px 7px; border-radius: 4px;
  background: rgba(10, 10, 15, .78); border: 1px solid var(--border); color: var(--muted);
}
