/* AIプロンプト辞典 — 共通スタイル（トップ・投稿・規約・管理画面） */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f1f7;
  --border: #e2e4ee;
  --border-strong: #cfd2e0;
  --text: #181a25;
  --muted: #565b70;
  --faint: #868b9f;
  --accent: #6246ea;
  --accent-hover: #5236d8;
  --accent-2: #d6409f;
  --accent-soft: #efebff;
  --accent-text: #4a2fd2;
  --on-accent: #ffffff;
  --ok: #138a52;
  --ok-soft: #e2f5ea;
  --danger: #c93636;
  --danger-soft: #fdeaea;
  --warn-soft: #fff4dd;
  --warn-text: #7d4c00;
  --r18: #c92d63;
  --r18-soft: #fde8ef;
  --mark: #ffe680;
  --shadow: 0 1px 2px rgba(24, 26, 45, 0.04), 0 4px 14px rgba(24, 26, 45, 0.05);
  --radius: 14px;
  --header-h: 64px;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f15;
    --surface: #171922;
    --surface-2: #1f2230;
    --border: #2a2d3d;
    --border-strong: #3a3e52;
    --text: #eceef5;
    --muted: #a8adc2;
    --faint: #767b93;
    --accent: #8b77ff;
    --accent-hover: #9d8cff;
    --accent-2: #ff6fbf;
    --accent-soft: #241f43;
    --accent-text: #bfb2ff;
    --on-accent: #120d2b;
    --ok: #3ccf86;
    --ok-soft: #12301f;
    --danger: #ff7474;
    --danger-soft: #3a1717;
    --warn-soft: #36290f;
    --warn-text: #ffd27a;
    --r18: #ff7aa6;
    --r18-soft: #3a1626;
    --mark: #6b5a12;
    --shadow: none;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 56px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: var(--accent-text);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
mark {
  background: var(--mark);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 8px;
}
.sp {
  display: none;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-danger {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
  color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger-soft);
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-text);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- ヘッダー ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-in {
  max-width: 1440px; /* 2026-10-12 PC で左右の余白が空きすぎ（オーナー指摘）→ 1200 から広げた */
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.logo-text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.search {
  flex: 1;
  max-width: 620px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--faint);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input::placeholder {
  color: var(--faint);
}
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.search-kbd {
  position: absolute;
  right: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0 6px;
  line-height: 20px;
  pointer-events: none;
}
.search input:focus + .search-kbd,
.search input:not(:placeholder-shown) + .search-kbd {
  display: none;
}
.btn-post {
  flex: none;
  margin-left: auto;
  background: var(--accent);
  color: var(--on-accent);
}
.btn-post:hover {
  background: var(--accent-hover);
}

/* スマホ用のジャンル横スクロール */
.chips-row {
  display: none;
  gap: 8px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.chip.on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.chip svg {
  width: 14px;
  height: 14px;
}

/* ---------- レイアウト ---------- */
.layout {
  max-width: 1440px; /* 2026-10-12 PC で左右の余白が空きすぎ（オーナー指摘）→ 1200 から広げた */
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px;
}
main {
  min-width: 0;
  container: main / inline-size; /* トップの絵と文字の重ね方を、画面幅ではなく本文の幅で切り替える（下の「トップの顔のイラスト」） */
}
main:focus {
  outline: none;
}

/* サイドバー */
.side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-home,
.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.side-home {
  font-weight: 700;
  margin-bottom: 6px;
}
.side-link:hover,
.side-home:hover {
  background: var(--surface-2);
}
.side-link.on,
.side-home.on {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}
.side-link .cnt {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.side-link.on .cnt {
  color: var(--accent-text);
}
.side-group {
  margin-top: 10px;
}
.side-grp {
  margin: 0 0 2px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.side-link.is-r18 .cnt,
.side-link.r18-lock {
  color: var(--r18);
}
.side-link.r18-lock {
  justify-content: flex-start;
}
.side-mini {
  margin: 10px 12px 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--faint);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
.side-post {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}
.side-post:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- ホーム ---------- */
.hero {
  position: relative;
  padding: 34px 36px;
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent-2) 16%, transparent) 0%, transparent 55%),
    radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 36px;
  overflow: hidden;
}
/* 見出しの上の小さなラベル（h1 の一部・2026-10-12） */
.hero-eyebrow {
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
/* キャッチコピーの中の色を付ける語（「呪文」） */
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.85;
}
.hero-act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.hero-stats b {
  font-size: 17px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sec {
  margin-bottom: 34px;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.01em;
}
/* 見出しの左の色の帯（2026-10-12 デザイン刷新） */
.sec-title::before {
  content: '';
  flex: none;
  width: 4px;
  height: 1.05em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.sec-more {
  font-size: 13px;
  font-weight: 600;
}
.grp-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.grp-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.tile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
}
.tile-count {
  font-size: 12px;
  color: var(--muted);
}
.tile-subs {
  margin-top: 4px;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile.is-r18 .tile-count,
.tile-lock .tile-name,
.tile-lock .tile-count {
  color: var(--r18);
}
.tile-lock {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--r18) 40%, var(--border));
  background: var(--r18-soft);
}
.cta {
  margin-top: 10px;
  padding: 32px 26px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 60%),
    radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}
.cta-title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 18px;
}
.cta-text {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 一覧 ---------- */
.view-head {
  margin-bottom: 14px;
}
.crumbs {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 4px;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.view-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.view-sub {
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
}
.scope {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}
.sub span {
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.sub:hover {
  border-color: var(--accent);
}
.sub.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.sub.on span {
  color: inherit;
  opacity: 0.8;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.result-count {
  font-variant-numeric: tabular-nums;
}
.sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort select {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
}
/* 一覧は本文の幅に合わせたカードの格子（PC 3列・タブレット 2列・スマホ 1列）。2026-10-12 オーナー指摘「1件ずつがスペースを使いすぎ」。
   プロンプト・説明は省略せず、カードの中で折り返して全部見せる（同じ行のカードは高さをそろえ、ボタンは下にそろえる） */
.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 10px;
}
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 8px 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.item:hover {
  border-color: var(--border-strong);
}
.item-body {
  min-width: 0;
}
.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}
.tag-g {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.tag-g.is-r18 {
  background: var(--r18-soft);
  color: var(--r18);
}
.tag-user {
  background: var(--ok-soft);
  color: var(--ok);
}
.item-prompt {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.item-desc {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.item-note {
  margin: 6px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
/* コピー・回数・＋画像・報告はカードの下に横一列（報告は右端） */
.item-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.item-act .report-btn {
  margin-left: auto;
}
.item .copy {
  min-width: 0;
  height: 32px;
  padding: 0 14px;
  gap: 5px;
  font-size: 13px;
}
.item .copy svg {
  width: 16px;
  height: 16px;
}
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 104px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  white-space: nowrap;
}
.copy:hover {
  background: var(--accent-hover);
}
.copy:active {
  transform: scale(0.97);
}
.copy.done {
  background: var(--ok);
}
.copies {
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.more {
  display: flex;
  margin: 16px auto 0;
}
.loading {
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
}
.empty-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
}

/* ---------- フッター ---------- */
.foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.foot-in {
  max-width: 1440px; /* 2026-10-12 PC で左右の余白が空きすぎ（オーナー指摘）→ 1200 から広げた */
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.foot-name {
  margin: 0;
  font-weight: 700;
}
.foot-links {
  display: flex;
  gap: 18px;
}
.foot-links a {
  color: var(--muted);
}

/* ---------- 年齢確認 ---------- */
.age {
  border: 0;
  padding: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  width: min(440px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.age::backdrop {
  background: rgba(10, 10, 20, 0.55);
  backdrop-filter: blur(3px);
}
.age form {
  padding: 26px 24px 20px;
  text-align: center;
}
.age-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--r18-soft);
  color: var(--r18);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.age-title {
  margin: 0 0 8px;
  font-size: 19px;
}
.age-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.age-act {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.age-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- トースト ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.err {
  background: var(--danger);
  color: #fff;
}

/* ---------- 投稿・規約などの1カラムページ ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.page h1 {
  margin: 0 0 8px;
  font-size: 26px;
}
.page .lead {
  margin: 0 0 22px;
  color: var(--muted);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.field {
  margin-bottom: 18px;
}
.field > label,
.field > .label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.req,
.opt {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.req {
  background: var(--danger-soft);
  color: var(--danger);
}
.opt {
  background: var(--surface-2);
  color: var(--muted);
}
.hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}
.counter {
  margin-left: auto;
  font-weight: 400;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.counter.over {
  color: var(--danger);
  font-weight: 700;
}
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  font-size: 16px;
}
.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}
.textarea.mono {
  font-family: var(--mono);
  font-size: 15px;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field.bad .input,
.field.bad .select,
.field.bad .textarea {
  border-color: var(--danger);
}
.notice {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.notice.warn {
  background: var(--warn-soft);
  color: var(--warn-text);
}
.notice.info {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.notice.err {
  background: var(--danger-soft);
  color: var(--danger);
}
.notice.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.rules {
  margin: 0 0 20px;
  padding: 14px 18px 14px 34px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 13.5px;
  color: var(--muted);
}
.rules li + li {
  margin-top: 4px;
}
.done-box {
  text-align: center;
  padding: 30px 10px;
}
.done-box .big {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
}
.prose h2 {
  font-size: 18px;
  margin: 28px 0 8px;
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 14.5px;
}
.simple-top .top-in {
  justify-content: space-between;
}

/* ---------- スマホ ---------- */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 16px;
  }
  .side {
    display: none;
  }
  .chips-row {
    display: flex;
  }
  html {
    scroll-padding-top: calc(var(--header-h) + 100px);
  }
}
@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }
  .top-in {
    padding: 0 16px;
    gap: 10px;
  }
  .logo-text {
    display: none;
  }
  .search input {
    height: 40px;
    font-size: 16px;
    padding-right: 14px;
  }
  .search-kbd {
    display: none;
  }
  .btn-post {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }
  .btn-post span {
    display: none;
  }
  .layout,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding: 22px 18px;
  }
  .sp {
    display: inline;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tile {
    padding: 12px 13px;
  }
  .item-prompt {
    font-size: 14.5px;
  }
  /* 小分類は横スクロール1段にして、一覧をすぐ見せる */
  .subs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px 12px;
    padding: 0 16px;
  }
  .subs::-webkit-scrollbar {
    display: none;
  }
  .sub {
    flex: none;
  }
  .view-title {
    font-size: 22px;
  }
  .card {
    padding: 18px 16px;
  }
  .foot-in {
    padding: 20px 16px;
  }
}

/* ---------- 管理画面 ---------- */
.page.admin {
  max-width: 980px;
}
.btn-sm {
  min-height: 34px;
  padding: 4px 12px;
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.tab.on {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}
.badge {
  min-width: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.badge.muted {
  background: var(--surface-2);
  color: var(--muted);
}
.panel-hint {
  margin: 0 0 12px;
}
.edit {
  margin-bottom: 12px;
}
.edit .field {
  margin-bottom: 12px;
}
.edit .field > label {
  font-size: 12.5px;
  color: var(--muted);
}
.edit-meta {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--faint);
}
.edit .notice {
  margin: 0 0 12px;
}
.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.admin-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px;
  margin-bottom: 8px;
}
.arow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.arow-main {
  min-width: 0;
}
.arow .item-prompt {
  font-size: 14px;
}
.arow .item-desc {
  font-size: 13px;
}
.arow-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.glist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.grow {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; /* R18 の欄は 2026-10-12 に廃止（サイトで決まる） */
  gap: 8px;
  align-items: end;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.grow.card {
  grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}
.gcell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  color: var(--faint);
  min-width: 0;
}
.gcell .input {
  padding: 6px 10px;
  font-size: 14px;
}
.gcell.check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  padding-bottom: 8px;
}
.gslug {
  padding-bottom: 9px;
  overflow-wrap: anywhere;
}
.gact {
  flex-direction: row;
  gap: 6px;
}
.add-title {
  margin: 26px 0 10px;
}
@media (max-width: 760px) {
  .edit-grid,
  .admin-filter {
    grid-template-columns: minmax(0, 1fr);
  }
  .grow,
  .grow.card {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .gname,
  .ggrp,
  .gslug,
  .gact {
    grid-column: span 2;
  }
  .gname {
    grid-column: 2;
  }
  .gsort {
    grid-row: 1;
  }
  .simple-top .actions .btn {
    padding: 6px 12px;
    min-height: 36px;
    font-size: 13px;
  }
}

/* ---------- サンプル画像（2026-10-10） ---------- */
.item.has-img {
  grid-template-columns: 72px minmax(0, 1fr);
}
.item.has-img .thumb {
  grid-column: 1;
  grid-row: 1 / 3;
}
.item.has-img .item-body,
.item.has-img .item-act {
  grid-column: 2;
}
.thumb {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  width: 72px;
  height: 108px;
  flex: none;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.thumb:hover img {
  transform: scale(1.05);
}
.viewer {
  border: 0;
  padding: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.viewer::backdrop {
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(3px);
}
.viewer-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.viewer-img {
  background: var(--surface-2);
}
.viewer-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 32px);
  object-fit: contain;
}
.viewer-info {
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.viewer-info .item-desc {
  margin: 0 0 6px;
}
.viewer-note {
  margin: auto 0 0;
  font-size: 12px;
  color: var(--faint);
}
.viewer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
@media (max-width: 640px) {
  .thumb {
    width: 60px;
    height: 90px;
    border-radius: 8px;
  }
  .viewer-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .viewer-img img {
    max-height: 62vh;
  }
  .viewer-info {
    padding: 16px 16px 18px;
  }
  .viewer .copy,
  .detail .copy {
    width: auto;
    padding: 0 18px;
  }
  .viewer .copy span,
  .detail .copy span {
    display: inline;
  }
}
.arow.has-img {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

/* ---------- 投稿画像（2026-10-11） ---------- */
.upload-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.upload-pick:hover {
  border-color: var(--accent);
}
.upload-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-preview {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.upload-preview img {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
  flex: none;
}
.upload-info p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.upload-info b {
  color: var(--ok);
}
.edit-img {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.edit-img .thumb {
  width: 80px;
  height: 120px;
}
.edit-img-act {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.edit-img-act .hint {
  margin: 0;
}
.thumb-empty {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--faint);
  cursor: default;
  border: 1px dashed var(--border-strong);
}
.upload-btn {
  position: relative;
  overflow: hidden;
}
.upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ---------- 新しいジャンル・小分類（2026-10-11） ---------- */
.subbox {
  margin-top: 10px;
  padding: 14px 14px 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.subbox .field {
  margin-bottom: 12px;
}
#sub:not([hidden]) {
  margin-top: 8px;
}
.tag-pend {
  background: var(--warn-soft);
  color: var(--warn-text);
}

/* ---------- 報告（2026-10-11） ---------- */
.report-btn {
  padding: 2px 6px;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.report-btn:hover {
  color: var(--danger);
}
.report-btn:disabled {
  cursor: default;
  text-decoration: none;
  color: var(--faint);
}
.report-dlg {
  width: min(480px, calc(100vw - 32px));
}
.report-in {
  padding: 24px 22px 18px;
  text-align: left;
}
.report-in .item-prompt {
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 14px;
}
.rep-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.rep-label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
  font-size: 13px;
}
.report-in .age-act {
  margin-top: 16px;
}
.rep-group {
  margin-bottom: 18px;
}
.rep-head {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--danger);
}
.rep-list {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13.5px;
}
.rep-list li + li {
  margin-top: 6px;
}
.rep-comment {
  color: var(--muted);
  white-space: pre-line;
}
.rep-time {
  color: var(--faint);
  font-size: 12px;
}

/* ---------- 小分類順の見出し（2026-10-11） ---------- */
.list-sub {
  grid-column: 1 / -1; /* 小分類順の見出しは格子の横いっぱい */
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 2px 2px;
  font-size: 15px;
  font-weight: 800;
}
.list-sub:first-child {
  margin-top: 0;
}
.list-sub span {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}

/* ---------- プロンプトの個別ページ・一覧からのリンク（2026-10-12） ---------- */
.item-link {
  color: inherit;
  text-decoration: none;
}
.item-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
a.sub {
  color: inherit;
  text-decoration: none;
}
.viewer-more {
  font-size: 13px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.detail-img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}
.detail-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  cursor: default;
}
.detail-noimg p {
  margin: 0;
}
.detail-noimg .noimg-note {
  font-size: 12px;
  line-height: 1.6;
  max-width: 220px;
}
/* サンプル画像の投稿ページ（/sample）の投稿先 */
.sample-target {
  margin-bottom: 16px;
}
.sample-target .sample-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.sample-target .item-prompt {
  margin: 0 0 4px;
}
.sample-target .notice {
  margin-top: 12px;
}
/* 一覧の「＋画像」（画像のないプロンプトにサンプル画像を投稿する。2026-10-12） */
.sample-btn {
  padding: 2px 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.sample-btn:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.detail-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.detail-prompt {
  margin: 0;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.detail-desc {
  margin: 0;
  font-size: 16px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.detail-act {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 4px 0 0;
  font-size: 13px;
}
.detail-meta dt {
  color: var(--faint);
}
.detail-meta dd {
  margin: 0;
}
.detail-meta a {
  color: var(--accent-text);
}
.detail-howto {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.detail-howto code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
  }
  .detail-img {
    max-width: 260px;
    margin: 0 auto;
  }
  .detail-prompt {
    font-size: 18px;
  }
}

/* R18 サイトの年齢確認：確認するまで中身をぼかして触れなくする（app.js が html に age-gate を付ける）
   隠す（visibility: hidden）と検索エンジンが中身を読めなくなるため、ぼかしと濃い背景の確認画面にする（Google の成人向けサイトの案内に沿う） */
html.age-gate .top,
html.age-gate .layout,
html.age-gate .foot {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}
html.age-gate .age::backdrop {
  background: rgba(10, 10, 20, 0.88);
}

/* ---------- SEO 対策で足した部品（2026-10-12）：ジャンルの紹介文・ガイド ---------- */
.view-intro {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.side-guide {
  margin-top: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.guide-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.guide-links a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.guide-links a:hover {
  border-color: var(--accent);
}
.prose h3 {
  font-size: 16px;
  margin: 20px 0 6px;
}
.prose a {
  color: var(--accent-text);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.prose pre {
  margin: 10px 0 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 14px;
}
.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--surface-2);
  font-weight: 700;
}
.prose .table-wrap {
  overflow-x: auto;
}
.prose .note {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--warn-soft);
  color: var(--warn-text);
  font-size: 14px;
}
.guide-meta {
  margin: -14px 0 22px;
  font-size: 12.5px;
  color: var(--faint);
}
.guide-next {
  margin-top: 32px;
}
.detail-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-title .detail-prompt,
.detail-title .detail-desc {
  display: block;
}
.detail-title .detail-desc {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text);
}

/* ---------- 管理画面：お問い合わせ（2026-10-12） ---------- */
.contact-from {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.contact-from a {
  color: var(--accent-text);
}
.contact-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- トップの顔のイラスト（2026-10-12） ----------
   PC：イラストを枠いっぱいに敷き、左側を白くぼかしてキャッチコピーを重ねる（雑誌の表紙のように。顔は右寄りなので隠れない）
   スマホ・タブレット：イラストを上、キャッチコピーを下に */
.hero.has-visual {
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 0;
}
.hero-visual {
  position: absolute;
  inset: 0;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 22%;
  background: var(--surface-2);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--surface) 90%, transparent) 30%,
    color-mix(in srgb, var(--surface) 50%, transparent) 46%,
    transparent 64%
  );
}
.hero.has-visual .hero-body {
  position: relative;
  max-width: 500px;
  padding: 44px 48px;
}
/* 本文の幅が 880px より狭いとき（スマホ・タブレット・狭いウィンドウ）は重ねない（顔に文字がかかる） */
@container main (max-width: 880px) {
  .hero.has-visual {
    display: block;
    min-height: 0;
  }
  .hero-visual {
    position: relative;
  }
  .hero-visual img {
    height: auto;
    aspect-ratio: 1400 / 800;
    max-height: 360px;
  }
  .hero-visual::after {
    background: linear-gradient(180deg, transparent 60%, var(--surface) 100%);
  }
  .hero.has-visual .hero-body {
    max-width: none;
    padding: 6px 24px 26px;
  }
}
@media (max-width: 640px) {
  .hero.has-visual .hero-body {
    padding: 4px 16px 20px;
  }
}

/* ---------- ジャンルの代表イラスト（2026-10-12） ---------- */
.tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
/* 絵のあるカードは、絵を上に大きく（ギャラリーのように。2026-10-12 デザイン刷新） */
.tile.has-img {
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.tile-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--surface-2);
  transition: transform 0.3s;
}
.tile.has-img:hover .tile-img {
  transform: scale(1.04);
}
.tile.has-img .tile-text {
  padding: 10px 14px 13px;
}
.view-head.has-img {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.view-img {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  /* スマホはカードが2列なので、絵を少し横長にして縦に長くなりすぎないように */
  .tile-img {
    aspect-ratio: 4 / 3;
    object-position: 50% 25%;
  }
  .tile.has-img .tile-text {
    padding: 8px 12px 11px;
  }
  .view-head.has-img {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }
  .view-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }
}

/* ---------- 管理画面：サンプル画像の審査（2026-10-12） ---------- */
.sample-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.sample-img {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.sample-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}
.sample-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sample-info .item-prompt,
.sample-info .item-desc {
  margin: 0;
}
.sample-cur {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 640px) {
  .sample-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- サンプル画像の提供者のクレジット（2026-10-12） ---------- */
.credit {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}
.credit:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tag-credit {
  background: var(--accent-soft);
}
.viewer-credit {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.detail-change {
  margin: 0;
  font-size: 12.5px;
}
.detail-change a {
  color: var(--muted);
}
.sample-credit {
  margin: 0;
  font-size: 13px;
}
.edit-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.edit-credit .input {
  width: 200px;
  height: 34px;
  font-size: 13px;
}

/* ---------- 規約：情報の外部への送信の表（2026-10-12） ---------- */
.table-wrap {
  overflow-x: auto;
}
.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.terms-table th,
.terms-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.terms-table th {
  background: var(--surface-2);
  white-space: nowrap;
}
