@font-face {
  font-family: "JBM";
  src: url("/fonts/jbm.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --bg: #16161a;
  --panel: #1d1d23;
  --bar: #24242c;
  --line: #2e2e38;
  --text: #ebe8e1;
  --muted: #a7a4ae;
  --dim: #75737d;
  --accent: #f08a64;
  --ok: #7cf0a8;
  --err: #ff7b72;
  --mono: "JBM", ui-monospace, SFMono-Regular, Menlo, Consolas, "Hiragino Sans", "Noto Sans JP", monospace;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.mono { font-family: var(--mono); }
.prompt { color: var(--accent); font-family: var(--mono); font-weight: 700; }
.dim { color: var(--dim); }
.ok { color: var(--ok); }
.err { color: var(--err); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #16161a; padding: 6px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

.cursor { display: inline-block; width: .55em; height: 1.05em; background: var(--accent); vertical-align: -0.18em; margin-left: .25em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(22,22,26,.92); backdrop-filter: blur(8px); z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { font-family: var(--mono); font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo .cursor { width: .5em; }
nav { display: flex; gap: 20px; font-family: var(--mono); font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
nav a::before { content: "./"; color: var(--dim); }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* hero terminal */
.hero { padding: 56px 0 24px; }
.term { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.term-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; background: var(--bar); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 12px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.term-body { padding: 28px clamp(18px, 5vw, 48px) 36px; font-family: var(--mono); font-weight: 700; font-size: clamp(15px, 2.2vw, 19px); line-height: 1.75; }
.term-body p { margin: 0; }
.term-body .out { color: #cfccd5; margin-bottom: 14px; font-family: var(--sans); font-weight: 700; }
.term-body .big { font-size: clamp(32px, 7vw, 60px); line-height: 1.3; color: var(--text); margin: 6px 0 10px; letter-spacing: 0.03em; }
.term-body .sub { font-size: clamp(16px, 2.6vw, 22px); color: var(--muted); margin-bottom: 18px; }
.bar { display: inline-flex; gap: 4px; vertical-align: -2px; }
.bar i { width: 22px; height: 16px; background: #34343f; border-radius: 2px; }
.bar i.on { background: var(--ok); }
.term-body .ok { font-family: var(--mono); }

/* blocks */
.block { padding: 56px 0 8px; }
.block.first { padding-top: 48px; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.45; margin: 0 0 16px; letter-spacing: 0.02em; }
h2 { font-family: var(--sans); font-size: clamp(21px, 3.4vw, 26px); margin: 0 0 12px; }
h2 .prompt { margin-right: 6px; }
.lead { color: var(--muted); margin: 0 0 22px; }

/* todo list */
.todo { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.todo li { display: flex; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); }
.todo li:first-child { border-top: 0; }
.check { font-family: var(--mono); font-weight: 700; color: var(--dim); flex: none; line-height: 1.9; }
.todo .live .check { color: var(--ok); }
.todo-body { flex: 1; min-width: 0; }
.todo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.todo h3 { font-size: 18px; margin: 0; }
.todo h3 a { color: var(--text); }
.todo .soon h3 { color: var(--muted); font-weight: 600; }
.todo p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.status { flex: none; font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.live .status { color: #16161a; background: var(--ok); border-color: var(--ok); }

/* stack */
.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.stack > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stack dt { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 14px; }
.stack dt::before { content: "// "; color: var(--dim); }
.stack dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.8; }

/* git log */
.gitlog { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.gitlog li { border-bottom: 1px dashed var(--line); }
.gitlog a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 2px; text-decoration: none; color: var(--text); }
.gitlog a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.hash { font-family: var(--mono); color: #e5c07b; font-size: 14px; }
.gitlog time, .meta time { font-family: var(--mono); color: var(--dim); font-size: 14px; }
.draft { font-family: var(--mono); font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 6px; }
.empty { color: var(--muted); }
.more { font-family: var(--mono); }

/* follow */
.follow { padding-bottom: 72px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: #16161a; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* post */
.post .meta { margin: 0 0 8px; }
.prose { font-size: 17px; }
.prose h2 { margin: 48px 0 10px; }
.prose h2::before { content: "## "; color: var(--accent); font-family: var(--mono); }
.prose h3 { margin: 32px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin: 4px 0; }
.prose strong { color: #fff; }
.prose blockquote { margin: 0 0 20px; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { border: 0; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 36px 0; }
.post-foot { margin: 56px 0 40px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.post-foot p { margin: 0; }

/* about */
.info { margin: 0 0 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px; }
.info > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.info > div:first-child { border-top: 0; }
.info dt { color: var(--muted); font-size: 15px; }
.info dd { margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-top: 24px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 40px; }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; }
  .stack { grid-template-columns: 1fr; }
  .todo li { padding: 16px; gap: 12px; }
  .info > div { grid-template-columns: 1fr; gap: 0; }
  nav { gap: 14px; font-size: 14px; }
  nav a::before { content: ""; }
}

/* typing */
.cursor.typing { animation: none; }
.term-body .idle { color: var(--text); }

/* hero: 画面いっぱいのターミナル */
.hero { padding: 24px 0; min-height: calc(100svh - 61px); display: flex; align-items: center; }
.hero .wrap { max-width: 1320px; width: 100%; }
.hero .term { min-height: min(78svh, 760px); display: flex; flex-direction: column; }
.hero .term-body { flex: 1; display: flex; flex-direction: column; justify-content: center; font-size: clamp(15px, 1.7vw, 24px); padding: clamp(24px, 4vw, 64px) clamp(18px, 5vw, 80px); }
.hero .term-body { container-type: inline-size; }
.hero .term-body .big { font-size: min(11cqi, 92px); line-height: 1.25; margin: 10px 0 14px; white-space: nowrap; }
.hero .term-body .sub { font-size: clamp(16px, 2vw, 28px); }
.hero .bar i { width: clamp(22px, 2.2vw, 34px); height: clamp(16px, 1.5vw, 22px); }
.hero .term-bar { height: 42px; }
@media (min-width: 1100px) {
  .hero .term-body .big { font-size: min(6.4cqi, 96px); }
  .hero .term-body .big br { display: none; }
}
.site-header .wrap, .site-footer .wrap { max-width: 1320px; }
.scroll-hint { display: block; text-align: center; margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--dim); text-decoration: none; }
.scroll-hint:hover { color: var(--text); }

/* ===== 広いレイアウト ===== */
.block .wrap, .now .wrap { max-width: 1320px; }
.label { font-size: 13px; color: var(--dim); margin: 0 0 10px; letter-spacing: .04em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 2.4vw, 32px); }
.muted-text { color: var(--muted); }
.accent { color: var(--accent); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.sec-head .lead { margin: 0; }
.block { padding: clamp(48px, 7vw, 96px) 0 0; }

/* now */
.now { padding: 20px 0 0; }
.now-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.now-current { padding: 26px 30px; background: linear-gradient(135deg, rgba(240,138,100,.14), transparent 70%); border-right: 1px solid var(--line); }
.now-text { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; margin: 0; line-height: 1.5; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 0 0 rgba(124,240,168,.6); animation: pulse 2s infinite; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(124,240,168,0); } 100% { box-shadow: 0 0 0 0 rgba(124,240,168,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.now-log { padding: 26px 30px; }
.now-log ol { list-style: none; margin: 0; padding: 0; }
.now-log li { display: flex; gap: 16px; padding: 4px 0; font-size: 15.5px; }
.now-log time { color: var(--dim); font-size: 13.5px; flex: none; padding-top: 2px; }

/* bento */
.bento { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.feature { background: radial-gradient(120% 90% at 100% 0%, rgba(124,240,168,.10), transparent 55%), var(--panel); }
.feature-top { display: flex; justify-content: space-between; align-items: center; }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); margin: 6px 0 4px; }
.feature .en { font-size: 15px; color: var(--dim); margin-left: 8px; font-weight: 500; }
.feature-copy { font-size: clamp(19px, 2vw, 24px); font-weight: 700; margin: 0 0 6px; }
.live-badge { color: #16161a; background: var(--ok); border-color: var(--ok); }
.demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 22px 0 6px; }
.demo > div { border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.75; }
.demo p { margin: 0; }
.demo-in { background: #15151a; border: 1px dashed var(--line); color: var(--muted); }
.demo-out { background: #f4f1ea; color: #222; }
.demo-out strong { color: #111; }
.demo-label { font-size: 12px !important; color: var(--dim); margin-bottom: 6px !important; }
.demo-out .demo-label { color: #8a8378; }
.demo-arrow { align-self: center; color: var(--accent); font-size: 22px; padding: 0 !important; }
.side { display: grid; gap: 16px; align-content: start; }
.progress-card .big-num { font-size: clamp(56px, 6vw, 84px); font-weight: 800; line-height: 1; margin: 4px 0 14px; }
.progress-card p { margin: 0 0 8px; }
.soon-list { list-style: none; margin: 0; padding: 8px 24px; }
.soon-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px dashed var(--line); }
.soon-list li:first-child { border-top: 0; }
.soon-list .name { flex: 1; color: var(--muted); font-weight: 600; }

/* story */
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(32px, 5vw, 64px) 0; }
.quote { font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; line-height: 1.3; margin: 0; letter-spacing: .02em; }
.story-body p { margin: 0 0 18px; font-size: 17px; }
.story-body p:last-child { margin-bottom: 0; }

/* stack 4列 + tools */
.stack { grid-template-columns: repeat(4, 1fr); }
.tools { margin-top: 16px; border: 1px dashed var(--line); border-radius: 16px; padding: 20px 24px; }
.tools ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; }
.tools li { display: flex; flex-direction: column; }
.tool-k { font-size: 12px; color: var(--dim); }
.tool-n { font-size: 20px; font-weight: 800; }
.tool-d { font-size: 14px; color: var(--muted); }

/* wish */
.wish { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: end; background: linear-gradient(120deg, rgba(240,138,100,.20), rgba(240,138,100,.04) 60%), var(--panel); border-color: rgba(240,138,100,.35); }
.wish h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.4; margin: 0 0 10px; }
.wish p { margin: 0; }
.wish .actions { justify-content: flex-end; margin: 0; }

/* two-col: log + faq */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.faq details { border-bottom: 1px dashed var(--line); }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--mono); color: var(--accent); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.faq .a strong { color: var(--text); }

/* follow */
.follow { padding-bottom: 80px; }
.follow-card { text-align: center; }
.follow-card .actions { justify-content: center; }

@media (max-width: 960px) {
  .bento, .story-grid, .two-col, .wish, .now-grid { grid-template-columns: 1fr; }
  .now-current { border-right: 0; border-bottom: 1px solid var(--line); }
  .stack, .tools ul { grid-template-columns: repeat(2, 1fr); }
  .wish .actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .demo { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); justify-self: center; }
  .stack, .tools ul { grid-template-columns: 1fr; }
  .now-current, .now-log { padding: 20px; }
  .soon-list { padding: 4px 18px; }
}

.term-body .idle-out { color: var(--ok); font-family: var(--sans); font-weight: 700; min-height: 1.75em; }

/* ===== 打てるターミナル ===== */
.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; }
.term { cursor: text; }
.term a { cursor: pointer; }
.term-body.interactive { max-height: min(78svh, 760px); overflow-y: auto; justify-content: flex-start; }
.term-body .err-out { color: var(--err); }
.term-body .out a { color: var(--accent); }
.term-input { padding: 0 clamp(18px, 5vw, 80px) 26px; }
.term-input label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: clamp(15px, 1.7vw, 22px); }
.term-input input { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px dashed var(--line); color: var(--text); font: inherit; padding: 6px 2px; caret-color: var(--accent); }
.term-input input:focus { outline: none; border-bottom-color: var(--accent); }
.term-input input::placeholder { color: var(--dim); font-weight: 500; }
.term-hint { text-align: right; font-size: 12.5px; color: var(--dim); padding: 0 20px 14px; }

/* ===== あったらいいなボード ===== */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col { background: #19191e; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.col-h { display: flex; justify-content: space-between; margin: 0 4px 2px; font-weight: 700; font-size: 14px; }
.col-done .col-h span:first-child { color: var(--ok); }
.col-doing .col-h span:first-child { color: #e5c07b; }
.col-idea .col-h span:first-child { color: var(--accent); }
.note { display: block; border-radius: 10px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .15s; }
.note:hover { transform: translateY(-2px); }
.note p { margin: 0; }
.note-t { font-weight: 700; font-size: 15.5px; line-height: 1.6; }
.note-r { font-size: 13px; color: var(--muted); margin-top: 6px !important; }
.note-from { font-size: 12px; color: var(--dim); margin-top: 6px !important; }
.note-done { border-left: 3px solid var(--ok); }
.note-doing { border-left: 3px solid #e5c07b; }
.note-empty { border: 1px dashed rgba(240,138,100,.5); background: transparent; }
.note-empty .note-t { color: var(--muted); font-weight: 600; }
.note-empty .note-r { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .note { transition: none; } .note:hover { transform: none; } }

/* ===== 道具 ===== */
.tools-more { margin: 14px 0 0; }
.kind-h { margin-top: 36px; font-size: 20px; }
.stack-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.stack-list li { display: grid; grid-template-columns: 12em 1fr auto; gap: 8px 20px; align-items: center; padding: 14px 20px; border-top: 1px dashed var(--line); }
.stack-list li:first-child { border-top: 0; }
.stack-list .tool-n { font-size: 18px; }
.chip { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; margin: 2px 0 2px 6px; color: var(--muted); }
.small { font-size: 14px; margin-top: 28px; }
@media (max-width: 960px) { .board { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stack-list li { grid-template-columns: 1fr; gap: 2px; } .chip { margin: 2px 6px 2px 0; } }

/* 外部リンク（新しいタブで開く）には ↗ を付ける */
a[target="_blank"]:not(.btn)::after { content: "↗"; font-family: var(--mono); font-size: .8em; margin-left: .15em; text-decoration: none; display: inline-block; }
.btn[target="_blank"]::after { content: " ↗"; }
