/* dev.ctun.net — dev_ctun 公式ミニサイト */

:root {
  --bg: #FAFBF7;
  --ink: #1A2421;
  --sub: #5C6B66;
  --line: #DCE3DF;
  --panel: #EDF3EF;
  --accent: #0E7A5F;
  --accent-ink: #0A5C48;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── Header ── */
header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 20px 0;
}
.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand .at { color: var(--accent); }
nav { display: flex; gap: 20px; }
nav a {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--sub); text-decoration: none;
}
nav a:hover, nav a[aria-current="page"] { color: var(--accent-ink); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.hero .lede {
  margin-top: 20px;
  color: var(--sub);
  max-width: 34em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
}

/* signature: 9:16 の縦フレーム（このサイトの主は縦動画を作るツール） */
.frame916 {
  aspect-ratio: 9 / 16;
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: linear-gradient(175deg, var(--panel) 0%, var(--bg) 70%);
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--line);
}
.frame916 .telop {
  position: absolute; left: 10%; right: 10%; bottom: 18%;
  font-family: var(--display); font-weight: 700;
  font-size: 0.72rem; text-align: center;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 4px;
}
.frame916 .scenebar {
  position: absolute; left: 8%; right: 8%; top: 6%;
  height: 3px; background: var(--line); border-radius: 2px;
}
.frame916 .scenebar::after {
  content: ""; display: block; height: 100%; width: 40%;
  background: var(--accent); border-radius: 2px;
  animation: scene 9s ease-in-out infinite alternate;
}
@keyframes scene { from { width: 12%; } to { width: 88%; } }
.frame916 .waveform {
  position: absolute; left: 10%; right: 10%; bottom: 7%;
  display: flex; gap: 3px; align-items: flex-end; height: 16px;
}
.frame916 .waveform i {
  flex: 1; background: var(--accent); opacity: 0.55; border-radius: 1px;
}
.frame916 .waveform i:nth-child(odd) { height: 55%; }
.frame916 .waveform i:nth-child(even) { height: 100%; }
.frame916 .waveform i:nth-child(3n) { height: 30%; }

/* ── Sections ── */
section { padding: 40px 0; border-top: 1px solid var(--line); }
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.25rem; margin-bottom: 20px;
}
h3 { font-family: var(--display); font-weight: 500; font-size: 1.05rem; }

/* ツールカード（縦長比率でツールの成果物と響き合わせる） */
.tool-card {
  display: block;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 26px 28px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  max-width: 520px;
}
.tool-card:hover {
  box-shadow: 6px 6px 0 var(--line);
  transform: translate(-2px, -2px);
  color: var(--ink);
}
.tool-card .name {
  font-family: var(--mono); font-weight: 600; font-size: 1.05rem;
}
.tool-card .status {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 99px; padding: 1px 10px; margin-left: 10px;
  vertical-align: 2px;
}
.tool-card p { margin-top: 10px; color: var(--sub); font-size: 0.92rem; }

.link-list { list-style: none; }
.link-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.link-list .label {
  font-family: var(--mono); font-size: 0.78rem; color: var(--sub);
  display: inline-block; width: 7.5em;
}

/* ── 記事系ページ（privacy / tool 詳細） ── */
.doc { padding: 56px 0 24px; }
.doc h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.5;
}
.doc .meta {
  font-family: var(--mono); font-size: 0.78rem; color: var(--sub);
  margin-top: 10px;
}
.doc h2 { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc p, .doc ul, .doc table { margin-top: 14px; }
.doc ul { padding-left: 1.4em; }
.doc li { margin-top: 6px; }
.doc .note {
  background: var(--panel); border-radius: 10px;
  padding: 16px 20px; margin-top: 20px; font-size: 0.92rem;
}
.doc table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--panel); font-family: var(--display); font-weight: 500; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 28px 0 40px;
  font-family: var(--mono); font-size: 0.78rem; color: var(--sub);
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 44px; }
  .frame916 { width: 150px; margin: 0 auto; }
  .header-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
}
