
:root {
  --bg: #14110f; --bg2: #1b1714; --surface: #221d19; --surface2: #2b2520; --line: #3a322b;
  --ink: #f3eee6; --muted: #a89e92; --faint: #7d7469;
  --accent: #e4572e; --accent2: #f1c453; --accent-ink: #fff;
  --radius: 12px; --wrap: 1180px;
  --display: "Dela Gothic One", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.75; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---- ヘッダー ---- */
.topbar { background: #0d0b0a; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 32px; gap: 12px; }
.topbar a { text-decoration: none; color: var(--muted); }
.topbar a:hover { color: var(--accent2); }
.topbar .tagline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(20,17,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 18px rgba(228,87,46,.45); }
.logo b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .04em; line-height: 1; }
.logo b i { font-style: normal; color: var(--accent); }
.gnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.gnav::-webkit-scrollbar { display: none; }
.gnav a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.gnav a:hover { color: var(--ink); background: var(--surface); }
.gnav a.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; border: 0; font-size: 14px; cursor: pointer;
  font-family: inherit; line-height: 1.4; white-space: nowrap; transition: filter .15s, transform .15s, background .15s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface2); }
.btn.dark { background: #0d0b0a; box-shadow: inset 0 0 0 1px var(--line); }
.btn.danger { background: #b3261e; }
.btn.block { display: flex; width: 100%; }
.btn.lg { padding: 13px 26px; font-size: 15px; }

/* ---- 見出し ---- */
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--accent); }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0; letter-spacing: .04em; line-height: 1.3; }
.sec-head .en { font-size: 11px; letter-spacing: .22em; color: var(--accent2); font-weight: 700; }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; }
.sec-head .more:hover { color: var(--accent2); }

/* ---- サムネイル ---- */
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 64px; color: rgba(255,255,255,.9); text-shadow: 0 4px 18px rgba(0,0,0,.35); }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.ph-0 { background: linear-gradient(135deg, #e4572e, #7a1f3d); }
.ph-1 { background: linear-gradient(135deg, #2f6fdb, #1b1f5e); }
.ph-2 { background: linear-gradient(135deg, #1fa37a, #0f3d4a); }
.ph-3 { background: linear-gradient(135deg, #f1a23b, #a8431f); }
.ph-4 { background: linear-gradient(135deg, #8b4fd6, #2a1b5e); }
.ph-5 { background: linear-gradient(135deg, #d6457f, #4a1740); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 4px; line-height: 1.5; background: rgba(13,11,10,.82); color: var(--ink); }
.badge.game { background: #e4572e; color: #fff; }
.badge.app { background: #2f6fdb; color: #fff; }
.badge.web { background: #1fa37a; color: #fff; }
.badge.tool { background: #8b4fd6; color: #fff; }
.badge.pick { background: var(--accent2); color: #2a1c05; }
.badge.pr { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); color: var(--muted); }
.thumb .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }

/* ---- トップの特集枠 ---- */
.hero { padding: 28px 0 0; }
.feature-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.feature-side { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--surface2); min-height: 190px; }
.feature.main { min-height: 420px; }
.feature .media { position: absolute; inset: 0; }
.feature .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature:hover .media img { transform: scale(1.04); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,10,0) 30%, rgba(13,11,10,.55) 62%, rgba(13,11,10,.95) 100%); }
.feature .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; z-index: 2; }
.feature .badges { display: flex; gap: 6px; margin-bottom: 10px; }
.feature h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 900; }
.feature.main h3 { font-size: 30px; line-height: 1.3; letter-spacing: .01em; }
.feature p { margin: 6px 0 0; color: #d9d2c7; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature.main p { font-size: 15px; max-width: 40em; }

.brand-hero { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); padding: 56px 48px; background: radial-gradient(ellipse at 82% 50%, rgba(228,87,46,.38), transparent 58%), linear-gradient(135deg, #1f1915, #14110f); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.brand-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.3; margin: 0 0 16px; letter-spacing: .03em; }
.brand-hero h1 em { font-style: normal; color: var(--accent2); }
.brand-hero p { color: var(--muted); margin: 0 0 26px; max-width: 34em; font-size: 15px; }
.brand-hero .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.brand-hero .lantern { width: 220px; height: 220px; border-radius: 50%; box-shadow: 0 0 90px rgba(228,87,46,.55); }

.statbar { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; padding: 14px 22px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; color: var(--muted); align-items: center; }
.statbar b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--accent2); margin-right: 6px; }
.statbar .sp { margin-left: auto; }

/* ---- 2カラム ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.sidebar { display: grid; gap: 20px; position: sticky; top: 84px; margin-top: 44px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.box h3 { margin: 0 0 14px; font-size: 15px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.box h3::before { content: ""; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }
.box p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.box.glow { background: linear-gradient(160deg, #3a1d12, var(--surface) 62%); border-color: #5a2c1a; }
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13px; line-height: 1.6; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.catlist { list-style: none; margin: 0; padding: 0; }
.catlist a { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; text-decoration: none; border-bottom: 1px dashed var(--line); font-size: 14px; font-weight: 700; }
.catlist li:last-child a { border-bottom: 0; padding-bottom: 0; }
.catlist a:hover { color: var(--accent2); }
.catlist span { font-size: 12px; color: var(--muted); background: var(--surface2); border-radius: 999px; padding: 1px 10px; font-weight: 400; }

/* ---- カード ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.tabs a { text-decoration: none; padding: 6px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.card:hover .thumb img { transform: scale(1.05); }
.card-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 900; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; color: var(--faint); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.card .foot .pf { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { color: var(--muted); padding: 56px 20px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.pager { display: flex; justify-content: center; gap: 12px; margin: 36px 0 0; }

/* ---- 記事 ---- */
.crumbs { font-size: 12px; color: var(--faint); padding: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent2); }
.entry-head { padding: 18px 0 24px; }
.entry-head .badges { display: flex; gap: 6px; margin-bottom: 14px; }
.entry-head h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; margin: 0 0 10px; font-weight: 900; letter-spacing: .01em; }
.entry-head .lead { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.byline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.byline a { color: var(--accent2); text-decoration: none; }
.cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 8px; }
.cover .thumb { aspect-ratio: 1200 / 630; }
.cover .ph { font-size: 120px; }
article.entry { font-size: 16px; line-height: 1.95; }
article.entry h2 { font-size: 21px; margin: 44px 0 14px; padding: 10px 0 10px 16px; border-left: 5px solid var(--accent); line-height: 1.4; font-weight: 900; background: linear-gradient(90deg, var(--surface), transparent); }
article.entry p { margin: 0 0 18px; white-space: pre-line; }
article.entry > p:first-of-type { font-size: 17px; }
.highlights { list-style: none; padding: 20px 22px; margin: 26px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.highlights::before { content: "注目ポイント"; display: block; font-size: 12px; letter-spacing: .14em; color: var(--accent2); font-weight: 700; margin-bottom: 8px; }
.highlights li { padding: 4px 0 4px 26px; position: relative; font-weight: 700; }
.highlights li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; position: relative; }
.quote .who { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.quote p { margin: 0; font-size: 15px; white-space: pre-line; }
.note { font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; line-height: 1.8; }
.note a { color: var(--muted); }
.infobox dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 13px; }
.infobox dt { color: var(--faint); white-space: nowrap; }
.infobox dd { margin: 0; font-weight: 700; word-break: break-word; }
.infobox dd a { color: var(--accent2); text-decoration: none; }
.infobox .btn + .btn { margin-top: 10px; }

/* ---- 文章ページ ---- */
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; background: radial-gradient(ellipse at 90% 0%, rgba(228,87,46,.22), transparent 55%); }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; letter-spacing: .04em; }
.page-head p { color: var(--muted); margin: 0; }
.prose h1 { font-size: 26px; margin: 40px 0 10px; font-weight: 900; }
.prose h2 { font-size: 19px; margin: 40px 0 12px; padding-left: 14px; border-left: 5px solid var(--accent); font-weight: 900; line-height: 1.4; }
.prose p, .prose li { color: #ddd6cb; }
.prose a { color: var(--accent2); }
.prose ol.steps li { font-size: 15px; grid-template-columns: 30px 1fr; align-items: start; }
.prose ol.steps li::before { width: 30px; height: 30px; }

/* ---- フッター ---- */
main { padding-bottom: 64px; }
.cta-band { background: radial-gradient(ellipse at 50% 120%, rgba(228,87,46,.4), transparent 60%), var(--bg2); border-top: 1px solid var(--line); text-align: center; padding: 52px 20px; }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 10px; letter-spacing: .04em; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }
.site-footer { background: #0d0b0a; border-top: 1px solid var(--line); padding: 44px 0 28px; color: var(--muted); font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.site-footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .16em; color: var(--faint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--accent2); }
.site-footer .about { max-width: 30em; margin: 14px 0 0; line-height: 1.8; }
.copyright { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: 12px; color: var(--faint); }

/* ---- フォーム・管理画面 ---- */
h2.section { font-size: 17px; font-weight: 900; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
form.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=url], textarea, select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--ink); width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.flash { padding: 12px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--accent); margin: 18px 0; font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 400; font-size: 12px; }
table.list a { color: var(--accent2); }
pre.copy { white-space: pre-wrap; word-break: break-all; background: var(--bg2); padding: 12px 14px; border-radius: 8px; font: inherit; font-size: 13px; margin: 6px 0 0; user-select: all; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; margin-top: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .feature.main { min-height: 300px; }
  .feature.main h3 { font-size: 22px; }
  .brand-hero { grid-template-columns: 1fr; padding: 36px 24px; }
  .brand-hero .lantern { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .topbar .x { display: none; }
  .site-header .wrap { gap: 12px; height: 56px; }
  .site-header .btn { display: none; }
  .logo b { font-size: 18px; }
  .logo img { width: 32px; height: 32px; }
  .gnav a { padding: 8px 10px; font-size: 13px; }
  .feature-side { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card h3 { font-size: 14px; }
  .card p { display: none; }
  .statbar .sp { margin-left: 0; }
}
