:root {
  color-scheme: dark;
  --bg: #101319;
  --panel: #171b22;
  --panel-2: #1d222b;
  --line: #2c3440;
  --text: #e8edf4;
  --muted: #929eae;
  --accent: #ef9f43;
  --accent-2: #ffc46f;
  --header: #14181f;
  --hover-bg: #242b35;
  --hover-line: #4b586a;
  --shadow: 0 20px 50px rgb(0 0 0 / 28%);
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 80% 4%, rgb(239 159 67 / 9%), transparent 28rem),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid rgb(44 52 64 / 84%);
  background: rgb(20 24 31 / 88%);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d88931;
  border-radius: 9px;
  background: var(--accent);
  color: #24170a;
  font-size: 12px;
  font-weight: 900;
}
.header-links { display: flex; gap: 8px; }
.header-links a { padding: 8px 11px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.header-links a:hover { background: var(--hover-bg); color: var(--text); }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { padding: 92px 0 76px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.hero h1 span { display: block; text-wrap: balance; }
.hero-description { max-width: 650px; margin: 26px 0 0; color: #b5bfcc; font-size: 15px; line-height: 1.9; }
.hero-note {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(23 27 34 / 72%);
  color: var(--muted);
  font-size: 11px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #80c995; box-shadow: 0 0 0 4px rgb(128 201 149 / 10%); }

.tools-section { padding: 28px 0 94px; scroll-margin-top: 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2, .guide-copy h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(155deg, rgb(29 34 43 / 98%), rgb(23 27 34 / 98%));
  box-shadow: 0 1px 0 rgb(255 255 255 / 2%) inset;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { border-color: var(--hover-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.tool-icon { width: 58px; height: 58px; border-radius: 13px; box-shadow: 0 8px 22px rgb(0 0 0 / 24%); }
.tool-kind {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}
.card-body { flex: 1; padding: 20px; }
.card-body h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.card-body > p { min-height: 68px; margin: 11px 0 18px; color: #b5bfcc; font-size: 12px; line-height: 1.75; }
.feature-list { display: grid; gap: 8px; margin: 0; padding: 17px 0 0; border-top: 1px solid var(--line); list-style: none; }
.feature-list li { position: relative; padding-left: 16px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feature-list li::before { position: absolute; left: 0; color: var(--accent); content: "•"; }
.file-types { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.file-types span { padding: 4px 7px; border-radius: 5px; background: #11151b; color: #aab4c1; font: 9px ui-monospace, monospace; }
.card-footer { padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.last-opened { height: 15px; margin: 0 0 10px; color: #707c8c; font-size: 9px; }
.card-actions { display: grid; grid-template-columns: auto 1fr; gap: 7px; }
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}
.button.secondary { color: var(--muted); }
.button.secondary:hover { border-color: var(--hover-line); background: var(--hover-bg); color: var(--text); }
.button.primary { border-color: #d88931; background: var(--accent); color: #24170a; }
.button.primary:hover { background: var(--accent-2); }

.guide-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 54px;
  margin-bottom: 92px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  scroll-margin-top: 90px;
}
.guide-copy > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.guide-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-points > div { padding-left: 16px; border-left: 1px solid var(--line); }
.guide-points span { color: var(--accent); font: 10px ui-monospace, monospace; }
.guide-points strong { display: block; margin-top: 10px; font-size: 12px; }
.guide-points p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }

.site-footer {
  width: min(1180px, calc(100% - 48px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: #707c8c;
  font-size: 10px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-2); }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
  .card-body > p { min-height: 0; }
  .guide-section { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 16px; }
  .header-links { display: none; }
  main, .site-footer { width: min(100% - 28px, 1180px); }
  .hero { padding: 62px 0 54px; }
  .hero h1 { font-size: 32px; line-height: 1.24; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .guide-section { padding: 26px 20px; }
  .guide-points { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-card { transition: none; }
}
